Unlock instant, AI-driven research and patent intelligence for your innovation.

CAN message sending method and device

A technology of message sending and CAN bus, which is applied in the field of controller area network, and can solve the problem of not being able to obtain the right to use the CAN bus

Active Publication Date: 2016-10-26
NEW H3C TECH CO LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, the frame ID only contains the address of the node. When the address of each node in the CAN network is fixed, especially when the number of nodes is large, it may happen that the node with the small address always obtains the right to use the CAN bus, and the node with the large address cannot always obtain the right to use the CAN bus. The situation of the right to use the CAN bus

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
  • CAN message sending method and device
  • CAN message sending method and device
  • CAN message sending method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to prevent a certain node in the CAN network from occupying the CAN bus for a long time, the embodiment of the present invention provides a CAN message sending method and device.

[0022] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0023] It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawin...

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 provides a CAN message sending method and a CAN message sending device. The CAN message sending method and the CAN message sending device are applied to a node in a CAN network. The method includes the following steps that: when it is monitored that a CAN bus is an idle state, a first CAN message is sent; when a second CAN message sent by another node is detected, whether a first frame ID field in the first CAN message is smaller than a second frame ID field in the second CAN message is judged; and if the first frame ID field in the first CAN message is smaller than the second frame ID field in the second CAN message, and a bit in the first frame f ID field is the last bit in a locally-saved frame ID field, a third CAN message carrying data is sent, after the third CAN message carrying data is sent successfully, the first priority value of the locally-saved frame ID field is increased; and if the first frame ID field in the first CAN message is not smaller than the second frame ID field in the second CAN message, and the bit in the first frame ID field is the last bit in the locally-saved frame ID field, the number of failures is saved, and a currently-saved first priority value is decreased according to the currently-saved number of failures. With the method and device of the invention adopted, a certain node in the CAN network can be prevented from occupying the CAN bus for a long time.

Description

technical field [0001] The invention relates to the technical field of controller local area networks, in particular to a CAN message sending method and device. Background technique [0002] CAN (Controller Area Network, Controller Area Network) is one of the most widely used field buses in the world. The CAN network can include multiple nodes. The structure of the CAN network is bus type, and each node on the CAN network can monitor all communications on the CAN bus. Such as figure 1 As shown, the CAN network may include node 1, node 2, node 3...node n. Wherein, each node is connected through the CAN bus, and each node can monitor all communications on the CAN bus. For example, when node 1 sends a CAN message, all other nodes can sense that the CAN bus is currently in a busy state. [0003] CAN messages can include frame start, frame ID, and data information, etc. In practical applications, at any time, only one node in the CAN network is allowed to occupy the CAN bus ...

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): H04L12/24H04L12/26H04L12/803H04L12/833G06F13/16H04L47/31
CPCH04L41/0823H04L43/08H04L47/125H04L47/2458G06F13/1605H04L2012/40215
Inventor 张元
Owner NEW H3C TECH CO LTD