Bus switch method based on CAN redundance

A bus switching and bus technology, applied in the field of CAN network communication, can solve the problems of reducing bus utilization, missing valid data frames, etc., to achieve the effect of improving bus utilization and ensuring reliability and correctness

Inactive Publication Date: 2009-11-18
ZHEJIANG UNIV +1
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Undoubtedly, during the period of waiting for timeout, nodes receiving data errors will miss a lot of valid data frames, reducing the bus utilization

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
  • Bus switch method based on CAN redundance
  • Bus switch method based on CAN redundance
  • Bus switch method based on CAN redundance

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] Embodiment 1, as figure 1 A dual CAN network is shown, using two sets of buses (i.e., bus A and bus B), and each set of buses includes complete bus cables, bus drivers, and bus controllers.

[0044] In order to realize the bus switching method based on CAN redundancy of the present invention in above-mentioned double CAN network, therefore need to carry out following processing:

[0045] When the sending node sending error count value exceeds a certain threshold, restart the CAN controller to resend. Restarting the CAN controller is mainly to clear some register errors in the controller; Then: if another bus is available, switch the bus and resend; if the other bus is not available, both buses will be disabled, and the node indicator light will be used to prompt the user, waiting for the user to detect the bus path of the node and recover in time.

[0046] When the receiving node receives an error count value exceeding a certain threshold: if another bus is available, ...

Embodiment 2

[0047] Embodiment 2, the bus switching method based on CAN redundancy that is carried out to the dual CAN network described in embodiment 1, two CAN buses are opened simultaneously, but at most only one bus sends data at a time, in order to avoid problems caused by asynchronous Received data error. Use the software buffer as the buffer pool for the user to send data. When the three hardware buffers of the node are free, put the data in the software buffer into the hardware buffer to send the data frame; set the threshold and timeout mechanism It is used to restart the CAN controller or switch the bus when there is a communication failure; use the on and off of the LED lights of each bus node to prompt the user for bus failure and restore the bus in time.

[0048] Specifically, follow the steps below:

[0049] 1), determine whether the node belongs to the sending node or the receiving node, if it belongs to the sending node, enter step 2), if it belongs to the receiving node, ...

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 bus switch method based on CAN redundance, comprising the steps: 1) judging nodes are sending nodes or receiving nodes; if being the sending nodes, entering the step 2); if being the receiving nodes, entering the step 5); 2) judging whether the sending nodes are sent overtime; if yes, entering the step 3); if not, entering the step 4); 3) retransmitting by a switch bus; 4) monitoring the sending nodes until overtime or receiving response frame of the receiving nodes; 5) judging whether the receiving nodes are sent overtime; if yes, entering the step 6); if not, entering the step 7); 6) using a broadcast switch bus to inform other node switch buses to retransmit data; 7) receiving the response frame sent by the nodes as the response for the sending nodes, and showing that the data is successfully sent and received. The method can ensure the reliable accuracy and real-time property of data reception.

Description

technical field [0001] The invention belongs to the technical field of CAN network communication, in particular to a bus switching method based on CAN redundancy. Background technique [0002] An effective way to solve CAN network reliability communication is to carry out different degrees of redundancy on the bus. Although CAN redundancy is a common method to solve the reliability of CAN network, no one has studied the bus switching method based on CAN redundancy. Many designers switch the bus when sending or receiving fails to cause a timeout. Undoubtedly, during the period of waiting for the timeout, the node receiving the wrong data will miss a lot of valid data frames, which reduces the bus utilization. However, a good bus switching method based on CAN redundancy should be able to make the receiving node miss data frames as little as possible, thereby improving the bus utilization rate, ensuring the correct and stable transmission of data in the CAN network, and enhan...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24H04L12/40H04L1/22
Inventor 吴朝晖吕攀周丽魏城炯张吕红赵民德
Owner ZHEJIANG UNIV
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