CN111143139A - System for measuring millisecond-level response time of CAN bus product - Google Patents
System for measuring millisecond-level response time of CAN bus product Download PDFInfo
- Publication number
- CN111143139A CN111143139A CN201911167012.2A CN201911167012A CN111143139A CN 111143139 A CN111143139 A CN 111143139A CN 201911167012 A CN201911167012 A CN 201911167012A CN 111143139 A CN111143139 A CN 111143139A
- Authority
- CN
- China
- Prior art keywords
- module
- test
- product
- response time
- instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
Abstract
The invention relates to a system for measuring millisecond-level response time of a CAN bus product, belonging to the field of industrial control design; the device comprises a product to be tested, a calculation conversion module, a test module, a first timing module, a second timing module, a command return analysis module and a response time calculation module; the method is specially used for solving the problem of CAN bus products and is applied to measuring the condition that various tested devices give back order response within millisecond time; judging the time difference between the first time and the second time to obtain the reaction time of the tested equipment, wherein the unit is 0.1 millisecond; the invention provides a relatively accurate method, which meets the requirement of applying a CAN bus product to test and measure the response time of the tested equipment with the order less than or equal to millisecond.
Description
Technical Field
The invention belongs to the field of industrial control design, and relates to a system for measuring millisecond-level response time of a CAN bus product.
Background
The CAN is a short name of a controller area network and is one of field buses which are most widely applied internationally. The CAN bus communication has strong real-time performance and short development period, and is one of the most promising field buses. At present, the CAN products on the market generally call library functions packaged in advance by various programming languages or software, so that calling CAN equipment CAN be realized to realize communication among other equipment.
However, when the CAN bus is applied to the communication of the device for testing the millisecond reaction time, if the programming language or software is used to call the computer system time as the sending or receiving time of the CAN bus instruction, the system time is very inaccurate because the system time is the time for taking the instruction out of the memory of the computer system, and is not the time for actually reaching the CAN device by the CAN instruction. The time difference can not be particularly used for testing the command returning time of the tested equipment with millisecond command returning, serious overtime can be caused, and multiple experiments prove that the shortest overtime time can reach 1-2 milliseconds. Even if the test software of the CAN product is adopted, such as the CANTest program of Guangzhou Yongyuan electronic company, when the transmitted command within 1ms of the tested equipment is measured, the measured result deviates 2-3 milliseconds, which is seriously distorted.
Disclosure of Invention
The technical problem solved by the invention is as follows: the system for measuring millisecond response time of the CAN bus product overcomes the defects of the prior art, and meets the requirement of applying the CAN bus product to test and measure the response time of the millisecond-level tested equipment
The technical scheme of the invention is as follows:
a system for measuring millisecond response time of a command return of a CAN bus product comprises a product to be measured, a calculation conversion module, a test module, a first timing module, a second timing module, a command return analysis module and a response time calculation module;
and (3) products to be tested: sending self state signals to a calculation conversion module in real time; receiving a test signal transmitted by a first timing module; performing an action according to the test signal; after the execution action is finished, generating a state feedback signal; sending the state feedback signal to a second timing module;
a calculation conversion module: receiving a self state signal transmitted by a product to be detected; judging the self state signal, and according to the judgment result, not acting or sending a test instruction to the test module;
a test module: receiving a test instruction transmitted by the calculation conversion module, generating a test signal, and transmitting the test signal to the first timing module;
a first timing module: receiving a test signal transmitted by a test module; starting timing, and sending the current first time to a response time calculation module; meanwhile, sending a test signal to a product to be tested;
a second timing module: receiving a state feedback signal transmitted by a product to be detected; starting timing, and sending the current second moment to a response time calculation module; meanwhile, the state feedback signal is sent to a command return analysis module;
the return order analysis module: receiving a state feedback signal transmitted by the second timing module; judging the state feedback signal, and finishing the test or generating a retest instruction according to the judgment result; sending the retest instruction to the test module; performing cycle testing again;
a response time calculation module: receiving a first moment transmitted by a first timing module; receiving a second moment transmitted by a second timing module; judging the time difference between the second moment and the first moment; and judging whether the product to be detected is normal or not.
In the system for measuring millisecond-level command response time on the CAN bus product, the self state signal is a CAN command; the method for judging the self state signal by the calculation conversion module is to judge the zone bit of the CAN instruction data area.
In the system for measuring millisecond-level back-order response time of the CAN bus product, the zone bit of the CAN command data area is 0 or 1; when the flag bit is 0, the self-checking of the product to be tested is not finished, the test cannot be carried out, and the calculation conversion module does not act; when the flag bit is 1, the self-checking of the product to be tested is completed, and the calculation conversion module generates a test instruction; and sending the test instruction to the test module.
In the system for measuring millisecond-level echo response time of the CAN bus product, the content of the test signal is to perform opening or closing operation on one function switch of a product to be tested.
In the system for measuring millisecond-level command response time on the CAN bus product, the state feedback signal is a CAN command; the method for judging the state feedback signal by the command return analysis module is to judge the zone bit of the CAN instruction data area.
In the system for measuring millisecond-level back-order response time of the CAN bus product, the zone bit of the CAN command data area is 0 or 1; when the flag bit is 0, the state feedback signal is normal, and the test is finished; when the flag bit is 1, an error occurs in the test process, and the command return analysis module generates a retest command; and sending the retest instruction to the test module.
In the system for measuring millisecond-level response time of the CAN bus product, when the time difference between the second moment and the first moment is less than or equal to 1ms, the product to be measured is considered to be normal; otherwise, the product to be detected is considered to be abnormal.
Compared with the prior art, the invention has the beneficial effects that:
(1) the invention adopts the zone bit of the CAN instruction data area to judge and simulate the sending time or the receiving time as the instruction, thereby effectively solving the millisecond delay caused by calling the local system time of the computer as the time for sending the instruction or receiving the instruction by using programs written in various languages, and effectively solving the problem of large time distortion of the response time of applying the CAN bus to the tested equipment with the order of less than or equal to millisecond;
(2) the invention uses simple modules to form a test system of millisecond-level response time; the method and the device solve the defect that the time test is very inaccurate because the traditional method CAN only use programming language or software to call the time of a computer system as the sending or receiving time of the CAN bus instruction, ensure the accuracy of timing and save the cost.
Drawings
FIG. 1 is a schematic diagram of a callback response time system according to the present invention.
Detailed Description
The invention is further illustrated by the following examples.
The invention provides a system for measuring millisecond response time of a CAN bus product, which is an accurate measuring means and meets the requirement of applying the CAN bus product to test and measure the response time of a millisecond tested device
As shown in fig. 1, the millisecond-level callback response time system mainly includes a product to be tested, a calculation conversion module, a test module, a first timing module, a second timing module, a callback analysis module, and a response time calculation module;
and (3) products to be tested: sending self state signals to a calculation conversion module in real time; the self state signal is a CAN instruction; the method for judging the self state signal by the calculation conversion module is to judge the zone bit of the CAN instruction data area. Receiving a test signal transmitted by a first timing module; performing an action according to the test signal; after the execution action is finished, generating a state feedback signal; sending the state feedback signal to a second timing module;
a calculation conversion module: receiving a self state signal transmitted by a product to be detected; judging the self state signal, and according to the judgment result, not acting or sending a test instruction to the test module; the zone bit of the CAN instruction data area is 0 or 1; when the flag bit is 0, the self-checking of the product to be tested is not finished, the test cannot be carried out, and the calculation conversion module does not act; when the flag bit is 1, the self-checking of the product to be tested is completed, and the calculation conversion module generates a test instruction; and sending the test instruction to the test module.
A test module: receiving a test instruction transmitted by the calculation conversion module, generating a test signal, and transmitting the test signal to the first timing module; the content of the test signal is to carry out opening or closing operation on one functional switch of the product to be tested.
A first timing module: receiving a test signal transmitted by a test module; starting timing, and sending the current first time to a response time calculation module; meanwhile, sending a test signal to a product to be tested;
a second timing module: receiving a state feedback signal transmitted by a product to be detected; starting timing, and sending the current second moment to a response time calculation module; meanwhile, the state feedback signal is sent to a command return analysis module; the state feedback signal is a CAN command; the method for judging the state feedback signal by the command return analysis module is to judge the zone bit of the CAN instruction data area.
The return order analysis module: receiving a state feedback signal transmitted by the second timing module; judging the state feedback signal, and finishing the test or generating a retest instruction according to the judgment result; sending the retest instruction to the test module; performing cycle testing again; the zone bit of the CAN instruction data area is 0 or 1; when the flag bit is 0, the state feedback signal is normal, and the test is finished; when the flag bit is 1, an error occurs in the test process, and the command return analysis module generates a retest command; and sending the retest instruction to the test module.
A response time calculation module: receiving a first moment transmitted by a first timing module; receiving a second moment transmitted by a second timing module; judging the time difference between the second moment and the first moment; and judging whether the product to be detected is normal or not. When the time difference between the second moment and the first moment is less than or equal to 1ms, the product to be detected is considered to be normal; otherwise, the product to be detected is considered to be abnormal.
Although the present invention has been described with reference to the preferred embodiments, it is not intended to limit the present invention, and those skilled in the art can make variations and modifications of the present invention without departing from the spirit and scope of the present invention by using the methods and technical contents disclosed above.
Claims (7)
1. A system for measuring millisecond-level echo response time of a CAN bus product is characterized in that: the device comprises a product to be tested, a calculation conversion module, a test module, a first timing module, a second timing module, a command return analysis module and a response time calculation module;
and (3) products to be tested: sending self state signals to a calculation conversion module in real time; receiving a test signal transmitted by a first timing module; performing an action according to the test signal; after the execution action is finished, generating a state feedback signal; sending the state feedback signal to a second timing module;
a calculation conversion module: receiving a self state signal transmitted by a product to be detected; judging the self state signal, and according to the judgment result, not acting or sending a test instruction to the test module;
a test module: receiving a test instruction transmitted by the calculation conversion module, generating a test signal, and transmitting the test signal to the first timing module;
a first timing module: receiving a test signal transmitted by a test module; starting timing, and sending the current first time to a response time calculation module; meanwhile, sending a test signal to a product to be tested;
a second timing module: receiving a state feedback signal transmitted by a product to be detected; starting timing, and sending the current second moment to a response time calculation module; meanwhile, the state feedback signal is sent to a command return analysis module;
the return order analysis module: receiving a state feedback signal transmitted by the second timing module; judging the state feedback signal, and finishing the test or generating a retest instruction according to the judgment result; sending the retest instruction to the test module; performing cycle testing again;
a response time calculation module: receiving a first moment transmitted by a first timing module; receiving a second moment transmitted by a second timing module; judging the time difference between the second moment and the first moment; and judging whether the product to be detected is normal or not.
2. The CAN bus product millisecond echo response time system of claim 1, wherein: the self state signal is a CAN instruction; the method for judging the self state signal by the calculation conversion module is to judge the zone bit of the CAN instruction data area.
3. The CAN bus product millisecond echo response time system of claim 2, wherein: the zone bit of the CAN instruction data area is 0 or 1; when the flag bit is 0, the self-checking of the product to be tested is not finished, the test cannot be carried out, and the calculation conversion module does not act; when the flag bit is 1, the self-checking of the product to be tested is completed, and the calculation conversion module generates a test instruction; and sending the test instruction to the test module.
4. The system of claim 3 for measuring millisecond echo response time of the CAN bus product, wherein: the content of the test signal is to perform opening or closing operation on one functional switch of a product to be tested.
5. The system of claim 4 for measuring millisecond echo response time of the CAN bus product, wherein: the state feedback signal is a CAN instruction; the method for judging the state feedback signal by the command return analysis module is to judge the zone bit of the CAN instruction data area.
6. The system of claim 5 for measuring millisecond echo response time of the CAN bus product, wherein: the zone bit of the CAN instruction data area is 0 or 1; when the flag bit is 0, the state feedback signal is normal, and the test is finished; when the flag bit is 1, an error occurs in the test process, and the command return analysis module generates a retest command; and sending the retest instruction to the test module.
7. The system of claim 6 wherein the CAN bus product measures millisecond echo response time, further comprising: when the time difference between the second moment and the first moment is less than or equal to 1ms, the product to be detected is considered to be normal; otherwise, the product to be detected is considered to be abnormal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911167012.2A CN111143139A (en) | 2019-11-25 | 2019-11-25 | System for measuring millisecond-level response time of CAN bus product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911167012.2A CN111143139A (en) | 2019-11-25 | 2019-11-25 | System for measuring millisecond-level response time of CAN bus product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111143139A true CN111143139A (en) | 2020-05-12 |
Family
ID=70516686
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911167012.2A Pending CN111143139A (en) | 2019-11-25 | 2019-11-25 | System for measuring millisecond-level response time of CAN bus product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111143139A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116242414A (en) * | 2023-05-12 | 2023-06-09 | 深圳深浦电气有限公司 | Response time detection system and detection device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008050607A1 (en) * | 2006-10-25 | 2008-05-02 | Advantest Corporation | Tester, driver comparator chip, response measuring device, calibration method, and calibration device |
CN105468523A (en) * | 2015-11-20 | 2016-04-06 | 广东欧珀移动通信有限公司 | Automatic testing method and device of mobile terminal response time |
CN106569236A (en) * | 2016-10-28 | 2017-04-19 | 湖南国科防务电子科技有限公司 | Satellite navigation carrier real time closed loop feedback test method |
CN206740935U (en) * | 2017-02-22 | 2017-12-12 | 广州致远电子股份有限公司 | A kind of transient response testing device of CAN servomotor |
US20180152364A1 (en) * | 2016-11-25 | 2018-05-31 | Hyundai Motor Company | Method and apparatus for analyzing signal delay time based on controller area network burst analysis |
CN108732443A (en) * | 2018-05-21 | 2018-11-02 | 湖北三江航天万峰科技发展有限公司 | A kind of Auto-Test System and method based on Linux |
CN109344078A (en) * | 2018-10-29 | 2019-02-15 | 北京京航计算通讯研究所 | Using the embedded real-time operating system time performance test method of FPGA |
CN109388125A (en) * | 2018-09-28 | 2019-02-26 | 惠州市德赛西威汽车电子股份有限公司 | A kind of automobile instrument automatic fault detection system and method |
CN110412379A (en) * | 2019-07-31 | 2019-11-05 | 惠州市德赛西威汽车电子股份有限公司 | A kind of test method of instrument function response time |
-
2019
- 2019-11-25 CN CN201911167012.2A patent/CN111143139A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008050607A1 (en) * | 2006-10-25 | 2008-05-02 | Advantest Corporation | Tester, driver comparator chip, response measuring device, calibration method, and calibration device |
CN105468523A (en) * | 2015-11-20 | 2016-04-06 | 广东欧珀移动通信有限公司 | Automatic testing method and device of mobile terminal response time |
CN106569236A (en) * | 2016-10-28 | 2017-04-19 | 湖南国科防务电子科技有限公司 | Satellite navigation carrier real time closed loop feedback test method |
US20180152364A1 (en) * | 2016-11-25 | 2018-05-31 | Hyundai Motor Company | Method and apparatus for analyzing signal delay time based on controller area network burst analysis |
CN206740935U (en) * | 2017-02-22 | 2017-12-12 | 广州致远电子股份有限公司 | A kind of transient response testing device of CAN servomotor |
CN108732443A (en) * | 2018-05-21 | 2018-11-02 | 湖北三江航天万峰科技发展有限公司 | A kind of Auto-Test System and method based on Linux |
CN109388125A (en) * | 2018-09-28 | 2019-02-26 | 惠州市德赛西威汽车电子股份有限公司 | A kind of automobile instrument automatic fault detection system and method |
CN109344078A (en) * | 2018-10-29 | 2019-02-15 | 北京京航计算通讯研究所 | Using the embedded real-time operating system time performance test method of FPGA |
CN110412379A (en) * | 2019-07-31 | 2019-11-05 | 惠州市德赛西威汽车电子股份有限公司 | A kind of test method of instrument function response time |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116242414A (en) * | 2023-05-12 | 2023-06-09 | 深圳深浦电气有限公司 | Response time detection system and detection device |
CN116242414B (en) * | 2023-05-12 | 2023-08-11 | 深圳深浦电气有限公司 | Response time detection system and detection device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230375639A1 (en) | Bbu fault diagnosis method and apparatus, electronic device, and storage medium | |
JP5452250B2 (en) | Method and operating unit for adjusting a control device | |
CN107239374B (en) | Device and method for realizing DDR interface automatic read-write test based on FPGA | |
CN103077114B (en) | Based on the automated testing method of temperature measuring equipment communication protocol | |
CN110632410A (en) | Intelligent debugging system for automatic equipment of intelligent substation and application method thereof | |
CN109344078B (en) | Time performance test method for embedded real-time operating system applying FPGA | |
CN111143139A (en) | System for measuring millisecond-level response time of CAN bus product | |
CN105893251A (en) | Test method and system of time required for starting intelligent terminal APP | |
CN110954855B (en) | Method and system for testing time measurement precision of digital relay protection tester | |
CN206740935U (en) | A kind of transient response testing device of CAN servomotor | |
CN104297664A (en) | Mainboard time sequence measuring device and method | |
CN113253704B (en) | Simulation test method, device and system for vehicle ECU and electronic equipment | |
CN100493005C (en) | Communication network test system for entire car of fuel cell car based on TTCAN | |
CN108271018B (en) | Space camera electronics emulation test system | |
CN111273156B (en) | Online test system for GaN millimeter wave power amplifier chip | |
CN103577290A (en) | Test script playback rhythm control method and system | |
CN1952904A (en) | A testing method and system for timer in embedded system | |
CN115729217A (en) | Test system for controlling full link of thyristor converter valve | |
CN107844110B (en) | Fault data recording system for current transformer | |
CN110825064B (en) | Testing method and device for pure electric vehicle anti-theft system and storage medium | |
CN207822351U (en) | A kind of integral type fire monitoring GAFES | |
CN111443687A (en) | Method for testing response time of power plant decentralized control system | |
CN101621341B (en) | Automatic debugging method of wireless dispatch communication station | |
CN105450818B (en) | mobile terminal power consumption current measuring method and device | |
CN114143232B (en) | Method and system for testing power action time of energy storage station based on communication signal message |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |