Multi-device controller area network (CAN) communication intelligent retransmission method

A CAN communication and multi-device technology, applied in the direction of error prevention/detection through transmission repetition, data exchange through path configuration, bus network, etc., can solve the problem of not considering real-time data update, signal logic confusion, equipment failure damage, etc. problems, to achieve the effect of overcoming the inability to guarantee real-time performance, reducing the burden on the CAN bus, and improving operational safety performance

Active Publication Date: 2012-10-24
HUNAN SUPER INFORMATION
View PDF2 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Suppose two nodes send data at the same time, the first 5 bits sent by node A are 10000, and the first 5 bits sent by node B are 10001. When the first 4 bits are sent, both nodes will think that they have sent successfully [because the first 4 bits are the same, so No error is reported, that is, the transmission is considered successful], but when the fifth bit is sent, the B node will lose the arbitration, because the priority of 0 is higher than the priority of 1, and the B node monitors that the bus is not 1, so it loses Arbitration, waiting to resend data
For CAN communication, assuming an arbitration error will also indicate that the transmission is complete, but in fact the data is not sent successfully, resulting in the failure of the current bus competition and abandoning the current transmission status, which in turn affects the error and failure of the communication system
[0004] At present, the arbitration error in CAN communication uses the wrong hardware retransmission method to solve the arbitration error problem, but there are unsafe factors. When the transmission is unsuccessful, it will continue to send until the transmission is successful.
In the process of CAN trying to send data, the mailbox is not updated (CAN communication uses the mailbox to send or receive data, the sent data and the received data are placed in the mailbox, once the bus is free, the data will be sent directly without the participation of the CPU) , which often leads to outdated data and misleads consumers, and is prone to misuse
[0005] Existing hardware retransmission mechanisms, such as figure 1 As shown, because the real-time update of data is not considered, the data that has not been successfully sent has been retransmitted. Once the retransmitted data that loses real-time performance is successfully sent, it is easy to cause signal logic confusion, and in severe cases, it will cause equipment failure and damage to personnel. casualties, therefore, it is necessary to improve the existing retransmission mechanism

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-device controller area network (CAN) communication intelligent retransmission method
  • Multi-device controller area network (CAN) communication intelligent retransmission method
  • Multi-device controller area network (CAN) communication intelligent retransmission method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] like figure 2 As shown, Mailbox 1 is used to send the data required by the normal logic, and Sending Mailbox 2 is used as the sending error resending mailbox. When mailbox 1 normally sends an error, start counting the number of sending errors, set a timeout sending timer, and stop sending after mailbox 2 is successfully sent, and clear the resend count. The simple logic is that mailbox 1 sends normally, and if the transmission fails, it will be sent to mailbox 2, and mailbox 2 will send within the specified time interval for the specified number of times.

[0038] The data synchronization problem is solved through the above implementation methods, because the data in the mailbox is updated before each retransmission, and the data update is consistent with the control data. The bus usage efficiency and bus domain are improved. In the case of limited interval time and times, the retransmission frame is not repeated and timed to compete, thus leaving more bus space for o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a multi-device controller area network (CAN) communication intelligent retransmission method. Two sending mail boxes are arranged in each of CAN controllers, the first mail box is used for sending messages according to normal logic requirements, and the second mail box is used for sending retransmitted messages due to errors; according to the CAN controllers in a network, by means of a timing mode or an event triggering mode, the first mail box is used for sending the messages generated according to normal logics to a CAN bus; if a plurality of the CAN controllers sendthe messages to the CAN bus at the same time, small message identifiers obtain bus data and finish sending, and large message identifiers exit from arbitration; and the CAN controllers failing to obtain the bus reload the data to the second mail boxes of the CAN controllers and then send the data to the CAN bus when the bus is free. A retransmission time limiting mechanism is used for preventing the data from being retransmitting unlimitedly. The multi-device CAN communication intelligent retransmission method is easy to implement and capable of guaranteeing the operation safety performance of a control system.

Description

technical field [0001] The invention relates to a multi-device CAN communication intelligent retransmission method. Background technique [0002] In practical applications, the data of CAN communication is basically real-time data. When multiple CAN communication devices are connected, because the CAN communication mechanism uses the producer and consumer [the consumer mode is the communication mode, in this mode you can Receive data] mode, each device can be a producer or a consumer, so there will be a bus arbitration problem when communicating with each other. When the CAN module sends data, it will also monitor the bus at the same time. When the actual situation When arbitration occurs, the system will automatically trigger the arbitration mechanism of the CAN bus for arbitration processing. [0003] Suppose two nodes send data at the same time, the first 5 bits sent by node A are 10000, and the first 5 bits sent by node B are 10001. When the first 4 bits are sent, both ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L1/08H04L12/40
Inventor 胡炎良陆坚戴侃李仲
Owner HUNAN SUPER INFORMATION
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products