Data communication method of redundant can bus communication system

A technology of CAN bus and communication system, which is applied in the field of data communication of redundant CAN bus communication system, can solve problems such as cold backup system is not suitable, time window setting cannot be infinitely large, data loss, etc., to solve disorder and data loss. Consistency issues, simple and reliable software implementation, and the effect of avoiding data shocks

Active Publication Date: 2020-03-24
中国船舶集团有限公司第七一一研究所
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, it has the following problems: (1) data loss and delayed transmission of data may occur during bus switching; (2) when the CAN bus used has a short-term interference or fault, the mechanism loses redundancy. Therefore, for real-time systems, cold standby systems are not suitable
However, this communication method has the following problems: (1) The setting of the time window cannot be infinitely large, and must be smaller than the prohibition time of the message, otherwise there will still be a problem of out-of-order; (2) In the limited time window, there may be The following situation occurs: when both CAN buses receive interference, it will cause a delay in the sending of bus messages, and the messages on both CAN buses exceed the set time window, and the messages will be discarded
Then, for real-time embedded systems, discarding important messages and delaying the receiving time of messages will have unpredictable and even destructive effects on the system
(3) Complicated in code implementation 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
  • Data communication method of redundant can bus communication system
  • Data communication method of redundant can bus communication system
  • Data communication method of redundant can bus communication system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0026] see figure 2 . According to a data communication method of a redundant CAN bus communication system according to an embodiment of the present invention, in order to prevent the data received by the receiving party from oscillating new and old data, a rolling counting (RollingCounter) mechanism is adopted at the sending end, and Filtering of data. In this embodiment, for PDO messages with the same ID, the first byte in the data field of the message is used for rolling counting, and the maximum value of the rolling counting value can be flexibly set. Every time the sender sends a frame of message, the scrolling count value is increased by 1, and the message containing the scrolling count value is sent on the two buses (ie figure 2 sent on the default bus and redundant bus in ). After the sending end is powered on or reset, it first...

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 data communication method of a redundant CAN bus communication system. The method comprises the following steps: a sending terminal sends PDO messages containing a scrolling count value a on two CAN buses; when the sending terminal sends the PDO messages with the same message ID, each time a frame of the PDO message is sent, the scrolling count value a is increased by 1, the initial value of a is 0, the upper limit value of a is N, and when a reaches N, the count is restarted from 1; an expectation counter is arranged at a receiving terminal, and the count value b of the expectation counter indicates the scrolling count value of the PDO message that is expected to be received; when receiving a frame of the PDO message sent by the sending terminal each time, the receiving terminal firstly judges whether the message is valid; if the message is valid and a is equal to 0, b is set to 1; if the message is valid and b is less than N, b is updated to b=a+1, and if b is equal to N, b is set to 1; and when the receiving terminal receives the invalid messages, the invalid messages are discarded, and b is maintained to be unchanged. According to the data communication method disclosed by the invention, the shock of the old and new data generated by the receiving terminal can be avoided.

Description

technical field [0001] The invention relates to field bus communication technology, in particular to a data communication method of a redundant CAN bus communication system. Background technique [0002] At present, CAN bus technology has been widely used in the field of industrial control. CAN bus is divided into physical layer, data link layer and application layer. Among them, the physical layer and the data link layer follow the CAN2.0 protocol specification. In 1992, the CIA organization was established, and one of its first tasks was to develop the CAN application layer protocol. Currently, the adopted protocol specifications include DeviceNet, CANOpen, etc. The CANOpen specification is an authoritative specification in the field of industrial control, which includes a series of documents. Among them, the most basic one is CANOpen301, which has been officially released and applied. In addition, CANOpen302 is a specification for floating master nodes, and CANOpen30...

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 Patents(China)
IPC IPC(8): H04L12/40
CPCH04L12/40182
Inventor 王君惠石磊金江善姜春宇张岳
Owner 中国船舶集团有限公司第七一一研究所
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