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

CAN bus baud rate self-adaption method based on dual systems and storage medium

A technology of CAN bus and baud rate, which is applied in the field of CAN bus, can solve the problems of long time, potential safety hazards, protection, etc., and achieve the effects of reducing potential safety hazards, ensuring convenience, and ensuring safety

Active Publication Date: 2020-08-21
XIAMEN YAXON NETWORKS CO LTD
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, there are some CAN bus baud rate adaptive methods, but some of these methods require adaptive matching for each application software at the application layer The code increases the unnecessary overhead of the system and is not convenient; some of them perform adaptive matching of baud rate at the bottom layer. A baud rate is used to search for matches, and this method of adaptive matching takes a lot of time
In addition, these methods do not provide security protection for the baud rate setting parameters determined during adaptive matching, and are vulnerable to attacks and cannot obtain the correct baud rate, which affects the normal communication between the device and the CAN bus, and there are security risks

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 bus baud rate self-adaption method based on dual systems and storage medium
  • CAN bus baud rate self-adaption method based on dual systems and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0076] Please refer to figure 2 , The first embodiment of the present invention is: a CAN bus baud rate self-adapting method, this method is based on the dual system of Trustzone technology.

[0077] Trustzone technology is a security extension function of the ARM processor. This technology can divide the hardware and software on the system equipment into two operating environments, one is a normal operating environment and the other is a trusted operating environment. The operating system running in the ordinary environment is called the ordinary operating system, and the operating system running in the trusted environment is called the secure operating system. The security dual system using TrustZone technology, one is the ordinary operating system GPOS, the other is the security operating system RTOS, and adopts the security monitoring module SMC, so that ARM is in the Monitor mode (monitoring mode) to switch between the dual systems.

[0078] In this method, under the general...

Embodiment 2

[0094] This embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiment, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:

[0095] The normal operating system initializes the baud rate, sets the CAN communication parameters according to the initialized baud rate, and sends data requests to the CAN bus;

[0096] If the CAN data transmission completion interrupt is not generated, switch to the safe operating system;

[0097] The secure operating system obtains a list of pre-stored baud rates;

[0098] Sequentially obtain a baud rate from the baud rate list;

[0099] Set CAN communication parameters according to the acquired baud rate, and send data requests to the CAN bus;

[0100] If a CAN data transmission completion interrupt is generated, the one baud rate is stored in the memory shared area, and the normal operating system is switched to;

[0101] The common operating system...

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 CAN bus baud rate self-adaption method based on double systems and a storage medium, and the method comprises the steps: enabling a common operating system to initialize a baud rate, setting CAN communication parameters according to the initialized baud rate, and transmitting a data request to a CAN bus; if the CAN data transmission completion interruption is not generated, switching to a secure operating system; enabling the secure operating system to acquire a pre-stored baud rate list; obtaining a baud rate from the baud rate list in sequence; setting CAN communication parameters according to the obtained baud rate, and sending a data request to a CAN bus; if CAN data transmission interruption is generated, storing the baud rate to a memory sharing area, and switching to a common operating system; and enabling the common operating system to set the Baud rate of the CAN bus according to the Baud rate in the memory sharing area. According to the invention, the matching convenience and safety can be ensured.

Description

Technical field [0001] The invention relates to the technical field of CAN bus, in particular to a dual-system-based CAN bus baud rate adaptive method and storage medium. Background technique [0002] CAN (Controller Area Network) bus is a serial communication network standardized by ISO that effectively supports distributed control or real-time control, and is one of the most widely used field buses. The baud rate is the basis to ensure the normal communication between the CAN bus and the nodes of the bus. If the baud rate does not match, the CAN bus and the node device cannot perform normal data transmission. However, the settings of each CAN bus baud rate cannot be the same, and each has its own choice. In order to ensure normal communication, it is very easy to have the adaptive matching function of baud rate without knowing the CAN bus baud rate. Needed. [0003] At present, there are some methods of CAN bus baud rate adaptation, but some of these methods need to have adapti...

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 Applications(China)
IPC IPC(8): H04L12/40
CPCH04L12/4013H04L12/40136H04L2012/40215Y02D30/50
Inventor 池炜宾罗明宇涂岩恺叶旭辉
Owner XIAMEN YAXON NETWORKS CO LTD