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

CAN bus baud rate self-adaptive setting method

A CAN bus, baud rate technology, applied in the field of CAN bus baud rate adaptive setting, can solve problems such as CAN bus interference, CAN bus paralysis, reset, etc., to achieve the effect of improving efficiency

Inactive Publication Date: 2019-05-17
四川安控科技股份有限公司
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, when a controller node is abnormal, it may cause a constant reset phenomenon
This phenomenon can cause serious interference to the CAN bus, causing frame loss on the CAN bus, and possibly causing the CAN bus to be paralyzed.

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-adaptive setting method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0016] The flow chart of a kind of CAN bus baud rate adaptive setting method in the embodiment of the present invention is as follows figure 1 As shown, the method includes:

[0017] S101, setting the initial baud rate of the CAN bus;

[0018] S102. Real-time monitoring of all data frames on the CAN bus;

[0019] S103, if the data frame on the CAN bus is detected within the set first time threshold, the baud rate is set successfully, and the adaptive setting is completed; otherwise, turn to S104;

[0020] S104, reduce the baud rate according to the set step size, and turn to S102;

[0021] S105. If no data frame on the CAN bus is detected within the set second time threshold, reset the CAN controller and go to S101.

[0022] In this embodiment, step S101 is used to set the initial baud rate of the CAN bus. The initial baud rate is generally set higher, s...

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-adaptive setting method. According to the method, all data frames on the CAN bus are monitored in real time, whether setting of the Baud rate of the CAN bus is successful or not is judged according to whether the data frames are monitored, if not, the Baud rate is gradually reduced according to the step length till the data frames are monitored, andself-adaptive setting of the Baud rate of the CAN bus is achieved. According to the invention, by adopting a broadcast receiving mode, no CAN identifier data frame is filtered, and all data frames onthe CAN bus are monitored, so that the efficiency of setting the baud rate of the CAN bus is greatly improved; the CAN bus controller also has the CAN controller fault monitoring and automatic resetting functions, and if the data frame on the CAN bus is not monitored within the set time, the Baud rate self-adaptive setting process is executed again after the CAN controller is reset.

Description

technical field [0001] The invention belongs to the technical field of embedded computer CAN bus, in particular to a CAN bus baud rate self-adaptive setting method. Background technique [0002] In industrial application sites, it is the general trend for various embedded computers to realize interconnection. During the use of various field buses, the CAN bus has been widely used in various industrial sites due to its advantages of strong anti-interference, long transmission distance and low maintenance cost. According to the actual industrial field use scene, when the number of CAN controller nodes is small, the baud rate of the CAN bus can be set to 1Mbit / s to increase the transmission rate; and when the number of CAN controller nodes is large, the baud rate of 1Mbit / s If it cannot meet the requirements of use, serious frame loss will occur, so it is necessary to reduce the baud rate of the CAN bus, such as 500Kbit / s or 250Kbit / s. [0003] At present, baud rate adaptive ...

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
Inventor 李永成龚攀卢铭卓明俞凌
Owner 四川安控科技股份有限公司
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