Method for analyzing and triggering controller area network (CAN) bus

A local area network bus and controller technology, applied in the direction of bus network, data exchange network, data exchange through path configuration, etc., can solve the problem of not being able to effectively capture bus information, and achieve the effect of facilitating interpretation of bus information and improving debugging efficiency.

Inactive Publication Date: 2012-02-15
SOUTHEAST UNIV
View PDF3 Cites 44 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the CAN bus, information such as frame header, identifier (address), data length code, data, CRC and frame tail, and a small amount of other control bits a

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
  • Method for analyzing and triggering controller area network (CAN) bus
  • Method for analyzing and triggering controller area network (CAN) bus
  • Method for analyzing and triggering controller area network (CAN) bus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The specific implementation method of the present invention will be described below with CAN_L in the CAN bus differential 2-wire interface as the input signal in conjunction with the accompanying drawings.

[0040] Assume that the CAN bus baud rate set by the user is 500kbps, the identifier adopts a standard 11-bit identifier, and the transmission is a data frame (RTR bit is 0), and 2 data bytes are transmitted. The frame format is as attached figure 1 As shown, the sampling frequency is 5 times of the baud rate, that is, N is 5.

[0041] According to the baud rate set by the user and the selected N value, the generated sampling clock frequency is 500k×5=2.5M. The signal to be tested is first converted into a digital signal through an analog-to-digital converter, and the sampling clock generator generates a 2.5MHz The clock is sent to the sampling module to extract the digital signal. After the extraction, the signal is divided into two channels: one is sent to the ac...

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 method for analyzing and triggering a controller area network (CAN) bus, which can provide a triggering and decoding function of a CAN bus for a measuring instrument. The method comprises the following steps of: converting a CAN bus signal to be measured into a digital signal through an analog-to-digital converter; generating, by a sampling clock generator, sampling clock of corresponding frequency to a snapshot module to snapshot the digital signal according to baud rate set by a user; converting, by a digital comparator, into 0/1 value and then transmitting to a decoding module to extract frame information; transmitting to a comparative trigger module to compare with a trigger condition set by the user; and if the trigger condition is met, generating a trigger signal to an acquisition control module to control acquisition and storage of the signal after snapshot. The frame information output by the decoding module can be transmitted to a subsequent processing module together with acquired and stored waveform information so as to be used for further analysis processing. By adopting the method, the acquisition of an interesting CAN bus event of the measuring instrument is facilitated, interruption of the CAN bus information of the user is facilitated, and debugging efficiency of the CAN bus is increased.

Description

technical field [0001] The invention relates to a method for analyzing and triggering a controller local area network bus signal in a measuring instrument, in particular to an analysis and triggering method for a controller local area network bus signal in a digital oscilloscope. Background technique [0002] The Controller Area Network (CAN) bus is a layered serial data communication protocol specially developed by Bosch in the 1980s to serve as a communication bus between devices in an electrically noisy environment. In the CAN bus, information such as frame header, identifier (address), data length code, data, CRC and frame tail, and a small amount of other control bits are transmitted serially on one wire. The traditional trigger method of measuring instruments (such as edge trigger) cannot effectively capture bus information. Therefore, it is necessary to equip the measuring instrument with a special CAN bus signal analysis and trigger method, analyze and extract the f...

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): H04L12/26H04L12/40
Inventor 高礼忠叶少朋罗伟
Owner SOUTHEAST UNIV
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