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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

