Message transceiving method and system for car CAN bus gateway

A CAN bus, message transmission technology, applied in the direction of bus network, transmission system, digital transmission system, etc., can solve problems affecting economic and social benefits, increase system load, bus competition, etc., to improve economic and social benefits. Effectiveness, guaranteed consistency, high flexibility

Active Publication Date: 2017-03-22
SHANDONG ACAD OF SCI INST OF AUTOMATION
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The hardware receiving buffer and hardware sending buffer of the internal CAN controller of the low-cost MCU are very small. When a large number of messages appear on the CAN network in a short period of time, if the data in the hardware receiving buffer cannot be read in time and cleared flag bit, it will not be able to receive new messages
When the CAN gateway needs to forward a large number of messages in a short period of time, if the hardware sending buffer is full but there are still messages to be sent, if the messages cannot be forwarded in time, it may cause missed messages or inaccurate cycles mistake
If you choose an MCU with a relatively large hardware receiving buffer and hardware sending buffer for the CAN controller, it will increase the cost and affect economic and social benefits
[0005] Chinese invention patent: A method and device for sending CAN bus messages in a controller area network (application number: 201610064343.3), which introduces a method for configuring the message sending time of each CAN node, avoiding the simultaneous sending of multiple nodes Messages lead to bus cont

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
  • Message transceiving method and system for car CAN bus gateway
  • Message transceiving method and system for car CAN bus gateway
  • Message transceiving method and system for car CAN bus gateway

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0049] The present invention will be further described below in conjunction with the drawings and embodiments.

[0050] Such as figure 1 As shown,

[0051] 1. Define the software receiving buffer and the software sending buffer for the receiving and sending of CAN messages, establish a buffer management module, and send "received new message" to the buffer management module in the CAN controller interrupt service program. The "hardware sending buffer is not full" signal is used in the buffer management module to process the messages in the software receive buffer and send the messages in the software send buffer.

[0052] 2. The software receiving buffer and the software sending buffer are structure arrays, and the structure members include message ID, message length and message data. The length of the receiving array and the sending array is set according to the CAN network load rate to ensure that there will be no buffer overflow under the condition of normal CAN network communica...

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 message transceiving method and system for a car CAN bus gateway. The method comprises the steps of defining a software receiving buffer and a software transmitting buffer, wherein the software receiving buffer is managed by a message receiving interrupt service routine and a software receiving buffer management sub-module, the software transmitting buffer is managed by a message transmitting function, a message transmitting interrupt service routine and a software transmitting buffer management sub-module, and the software transmitting buffer management sub-module and the software receiving buffer management sub-module form a software buffer management module; in the software buffer management module, if a signal is received, judging whether the signal indicates that a new message is received or not, and if the signal indicates that the new message is received, entering the software receiving buffer management sub-module; otherwise, judging whether the received signal indicates that a hardware transmitting buffer is not full or not, and if the received signal indicates that the hardware transmitting buffer is not full, entering the software transmitting buffer management sub-module. According to the method and the system, through combination of the software buffer and the hardware buffer of a CAN controller, a message can be received in real time, and it is ensured that the message is not lost.

Description

technical field [0001] The invention belongs to the technical field of automotive electronics, and more specifically relates to a message sending and receiving method and system for an automotive CAN bus gateway. Background technique [0002] With the increase of automotive electronic components and the improvement of intelligence, the CAN bus system has become an important part of the car. According to the different requirements of functional division, topology design and real-time performance, automobiles generally design multiple CAN networks. The information exchange between CAN networks is realized by the gateway, which includes multiple CAN interfaces, accessing different CAN networks, and realizing the reception and forwarding of messages. Among all CAN network nodes, the gateway has the highest load from the perspective of message reception and transmission. [0003] The CAN network uses non-destructive arbitration to compete for the bus. Any node can send data to ...

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): H04L29/08H04L12/40
CPCH04L12/40078H04L67/12H04L2012/40273H04L2012/40215H04L67/568
Inventor 马建辉郭坤胡代荣侯冬冬刘源杨孙常青
Owner SHANDONG ACAD OF SCI INST OF AUTOMATION
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