Software implementation method for real-time reception of multi-channel CAN messages

A receiving method and signal technology, applied to electrical components, data exchange through path configuration, bus network, etc., can solve the problems of untimely information update, time-consuming, complex processing, etc.

Active Publication Date: 2021-02-26
LONGHAI TEV AUTOMOTIVE ELECTRONICS RES INST CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the existing CAN is receiving, it often needs to wait for all the information to be sent before updating the data, which causes the information update to be untimely
At the same time, after receiving all the information, classify according to each ID. If the received information is large, the processing will be complicated and it will take a lot of time.

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
  • Software implementation method for real-time reception of multi-channel CAN messages
  • Software implementation method for real-time reception of multi-channel CAN messages
  • Software implementation method for real-time reception of multi-channel CAN messages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with 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 creative work fall within the protection scope of the present invention.

[0027] A CAN receiving method, using 29 of the CAN extended frame as the identifier, creating multiple receiving buffers according to the priority of the CAN ID, for receiving messages with different priorities, and the size of the buffer is determined by the actual application. It is determined by the physical quantity. The subscript of each cache array corresponds to the CAN ID under the priority level one by one, which is realized by the following formula:

[0028] i...

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

A CAN receiving method, using 29 of the CAN extended frame as the identifier, creating multiple receiving buffers according to the priority of the CAN ID, for receiving messages with different priorities, and the size of the buffer is determined by the actual application. The subscript of each cache array corresponds to the CAN ID under the priority one by one. CAN is set to receive interrupts. Every time a frame of message is received, the priority of the CAN ID and the formula of the corresponding relationship are used to update the cache. data is updated. The technical scheme of the present invention adopts the method of updating the cache for storing CAN messages in time after receiving a frame of CAN messages, so as to receive CAN messages in a fast and timely manner, and at the same time classify and process the received signals according to the communication protocol during the receiving process This makes the data structure clearer and the message parsing more organized.

Description

technical field [0001] The invention belongs to the technical field of automotive electronics, and in particular relates to a software implementation method for real-time reception of multi-channel CAN messages. Background technique [0002] There are multiple signal frames on the CAN bus, and different signal frames represent different physical meanings, and each signal frame has a unique ID. When engineers are sending and receiving CAN bus, they need to classify CAN signals according to their different IDs in order to better analyze and extract CAN messages. When the existing CAN is receiving, it often needs to wait for all the information to be sent before updating the data, which causes the information update to be untimely. At the same time, after all the information is received, it is classified according to each ID. If the received information is large, the processing will be complicated and take a lot of time. [0003] Therefore, a new CAN receiving method is neede...

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/40006H04L12/40078H04L2012/40215
Inventor 陈淑娟陈宝龙符小军陈少棠
Owner LONGHAI TEV AUTOMOTIVE ELECTRONICS RES INST CO LTD
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