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

A configurable method and system for sending and receiving test of can bus protocol

A CAN bus and test method technology, applied in the field of CAN bus protocol transceiver test method and system, can solve the problems of fixed length of remote control frame response frame, single form, unable to meet the user's quick response, etc., to shorten the response time and improve the response rate , the effect of improving test efficiency

Active Publication Date: 2021-10-08
CHINA ELECTRONIS TECH INSTR CO LTD
View PDF0 Cites 0 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
  • A configurable method and system for sending and receiving test of can bus protocol
  • A configurable method and system for sending and receiving test of can bus protocol
  • A configurable method and system for sending and receiving test of can bus protocol

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, at least including 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 present disclosure provides a configurable CAN bus protocol sending and receiving test method and system. Using the standard data frame defined by the CAN bus protocol, the data length of the request frame or response frame can be arbitrarily set within a certain range. If the request frame or response frame data If the length exceeds the data frame length defined in the protocol, the request frame or response frame data will be split into multiple single frames and sent; if multiple frames are received, the frame operation will be performed according to the frame content, and multiple single frames will be combined into one The complete request frame or response frame is then processed for response. During the test, the user can immediately change the corresponding frame parameters according to the needs; at the same time, the present disclosure directly generates hardware interrupt signals through the FPGA, and carries out frame-building and response frame transmission in the interrupt program. A series of operations, without data upload, effectively shortens the response time, and can ensure that the response time is less than 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
Patent Type & Authority Patents(China)
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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products