Configurable CAN bus protocol transceiving test method and system

A technology of CAN bus and test method, which is applied in the field of CAN bus protocol sending and receiving test method and system, can solve problems such as single form, fixed length of remote control frame response frame, and inability to satisfy users' quick response, so as to improve response rate and test efficiency , the effect of shortening the response time

Active Publication Date: 2020-02-14
CHINA ELECTRONIS TECH INSTR CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, the inventors of the present disclosure have found that (1) the length of the remote control frame and its response frame is relatively fixed, and its form is single, which often cannot meet the diverse testing requirements of users; The time difference for sending the response frame) is required. Generally, the receiving end uploads the data to the host computer after receiving the request frame, and the host computer completes the response operation after corresponding judgment processing. This response mechanism sometimes cannot meet the needs of users for quick responses.

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
  • Configurable CAN bus protocol transceiving test method and system
  • Configurable CAN bus protocol transceiving test method and system
  • Configurable CAN bus protocol transceiving test method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] Such as figure 1 As shown, Embodiment 1 of the present disclosure provides a configurable CAN bus protocol transceiver test method, including the test of the simulated sending end, specifically:

[0041] (1-1) Set the request frame, including data such as frame ID, frame type, frame length, and frame data. If the length of the request frame data exceeds the maximum length of the data frame defined in the protocol, the request frame data will be split into multiple single frames. frame;

[0042] (1-2) Send the request frame, write the configured request frame into the sending buffer, and set the cyclic sending or single sending;

[0043] (1-3) Receive the response frame, analyze the first response single frame received to determine the type of the entire response frame, if it is multiple frames, frame according to the frame structure;

[0044] (1-4) compare the response data, compare the received response frame with the standard response frame, and obtain the test resu...

Embodiment 2

[0047] Such as figure 1 As shown, Embodiment 2 of the present disclosure provides a configurable CAN bus protocol transceiver test method, including the test of the simulated receiving end, specifically:

[0048] (4-1) The enabling of the frame ID is set, only the enabling frame ID can respond, and the frame ID not enabling does not respond even if it receives the corresponding request frame;

[0049] (4-2) set the response frame, including frame ID, frame type, frame length and frame data, if the response frame data length exceeds the maximum length of the data frame defined in the agreement, then the response frame data is split into multiple single frames;

[0050] (4-3) Wait for the request frame, judge whether the frame ID is enabled or not after receiving it, ignore it if it is not enabled, and respond if it is enabled;

[0051] (4-4) The response time is less than 2 milliseconds, the FPGA directly generates a hardware interrupt signal, enters the interrupt handler, par...

Embodiment 3

[0060] Embodiment 3 of the present disclosure provides a configurable CAN bus protocol transceiver test system, including at least an analog sending device and an analog receiving device, and the analog sending device adopts the configurable CAN bus protocol transceiver described in Embodiment 1 of the present disclosure The testing method is used for testing, and the simulated receiving device is tested using the configurable CAN bus protocol transceiver testing method described in Embodiment 2 of the present disclosure.

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 provides a configurable CAN bus protocol transceiving test method and a configurable CAN bus protocol transceiving test system. A standard data frame defined by a CAN bus protocol is used so that the data length of a request frame or a response frame can be randomly set within a certain range, and if the data length of the request frame or the response frame exceeds the data frame length defined in the protocol, the data of the request frame or the response frame is split into a plurality of single frames to be sent; if multiple frames are received, frame splicing operation is carried out according to the frame content, multiple single frames are combined into a complete request frame or response frame, then response processing is carried out, and a user can change corresponding frame parameters in real time according to needs in the testing process; meanwhile, hardware interrupt signals are directly generated through the FPGA, a series of operations such as frame splicing and response frame sending are performed in an interrupt program, data uploading is not performed, response time is effectively shortened, and it can be guaranteed that the response time is shorterthan 2 milliseconds.

Description

technical field [0001] The present disclosure relates to the field of CAN bus protocol transceiver testing technology, in particular to a configurable CAN bus protocol transceiver testing method and system. Background technique [0002] The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art. [0003] CAN (Controller Area Network) belongs to the field bus category and is a serial bus communication network that effectively supports distributed control and real-time control. CAN was proposed by Bosch in Germany in the late 1980s. The initial motivation for the proposal was to realize the communication of modern and large electronic devices, reduce the use of signal lines, and design a single network bus to which all peripheral devices are connected. CAN bus has the advantages of high data transmission rate, strong anti-electromagnetic interference ability, high reliability, and perfect...

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
CPCH04L12/40078H04L43/18H04L43/50H04L2012/40215
Inventor 臧人霖高利杰胡亚平黄文南
Owner CHINA ELECTRONIS TECH INSTR 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