Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 contention and too dense messages
This method can improve the distribution of bus messages on the time axis and reduce the requirements for the CAN controller hardware buffer, but this method needs to analyze the bus baud rate, the priority and cycle of all messages in the network, not only need Each CAN node implements this method, and the flexibility is very poor. Once a node is added or reduced due to changes in the network topology, it will affect the entire design
[0006] Chinese invention patent: data transmission method between CAN bus gateway controller and CAN bus (application number: 200710075363.1), using the method of periodically scanning the data buffer to determine whether there is a data packet to be sent, in many cases, there is no need The sent data packets are still periodically scanned at this time, which will waste valuable computing resources of the embedded system
In addition, if the scan cycle time is set longer, the short-period messages that need to be forwarded will not meet the cycle accuracy requirements, and if the scan cycle time is set shorter, the system load will be increased

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

Embodiment Construction

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

[0050] Such as figure 1 as shown,

[0051] 1. Define the software receiving buffer and the software sending buffer respectively for the receiving and sending of CAN messages, establish a buffer management module, and send "new message received" or The "hardware sending buffer is not full" signal, in the buffer management module, processes the messages in the software receiving buffer and sends the messages in the software sending buffer.

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

[0053] 3. Array elements are addresse...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products