CN113721583A - CAN bus test tool for simulating automobile CAN bus function test - Google Patents

CAN bus test tool for simulating automobile CAN bus function test Download PDF

Info

Publication number
CN113721583A
CN113721583A CN202110901747.4A CN202110901747A CN113721583A CN 113721583 A CN113721583 A CN 113721583A CN 202110901747 A CN202110901747 A CN 202110901747A CN 113721583 A CN113721583 A CN 113721583A
Authority
CN
China
Prior art keywords
bus
data
test
serial port
key
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
Application number
CN202110901747.4A
Other languages
Chinese (zh)
Inventor
魏钦淋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Haoke Zhilian Technology Co ltd
Original Assignee
Shenzhen Haoke Zhilian Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Haoke Zhilian Technology Co ltd filed Critical Shenzhen Haoke Zhilian Technology Co ltd
Priority to CN202110901747.4A priority Critical patent/CN113721583A/en
Publication of CN113721583A publication Critical patent/CN113721583A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0259Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
    • G05B23/0262Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)

Abstract

The invention provides a CAN bus test tool for simulating the function test of an automobile CAN bus, which comprises a test box and a computer end, wherein the test box comprises a power management module, a key input module, a serial port debugging interface, an MCU and a CAN bus interface, the MCU is respectively connected with the power management module, the key input module, the serial port debugging interface and the CAN bus interface, the key input module simulates the function of the CAN bus by using keys, the CAN bus interface is used for being connected with the CAN bus to be tested, the computer end is provided with the debugging tool, the computer end is connected with the serial port debugging interface through the computer serial port interface, and the test of the CAN bus is realized through the debugging tool. The invention has the beneficial effects that: under the condition that the CAN bus is not installed on the automobile, the CAN bus testing tool CAN simulate the automobile CAN bus to test, and the test is very convenient, so that the working efficiency is improved.

Description

CAN bus test tool for simulating automobile CAN bus function test
Technical Field
The invention relates to the technical field of testing, in particular to a CAN bus testing tool for simulating the function test of an automobile CAN bus.
Background
At present, most of automobile control equipment adopts a CAN bus to transmit data, the quality of the function of a product to be tested CAN be verified only on a real automobile, a large amount of time is wasted by repeated loading verification, and the period of producing the product and researching and developing the product is prolonged.
Disclosure of Invention
In order to solve the problems of difficulty in testing in the production process and product verification in the product development process, the invention provides a CAN bus testing tool, and the product research and development and production efficiency are improved.
The invention provides a CAN bus test tool for simulating the function test of an automobile CAN bus, which comprises a test box and a computer end, wherein the test box comprises a power management module, a key input module, a serial port debugging interface, an MCU and a CAN bus interface, the MCU is respectively connected with the power management module, the key input module, the serial port debugging interface and the CAN bus interface, the key input module simulates the function of the CAN bus by using keys, the CAN bus interface is used for being connected with the CAN bus to be tested, the computer end is provided with the debugging tool, the computer end is connected with the serial port debugging interface through the computer serial port interface, and the test of the CAN bus is realized through the debugging tool.
As a further improvement of the invention, the number of the CAN bus interfaces is two, namely a CAN1 bus interface and a CAN2 bus interface.
As a further improvement of the invention, the test box further comprises an LED lamp indicating module, and the LED lamp indicating module is connected with the MCU.
As a further improvement of the invention, a debugging tool is opened at the computer end, receives data through a serial port, analyzes the data of the interaction between the equipment terminal and the test box, and finds out related logic problems, thereby completing the CAN bus test.
As a further improvement of the invention, the keys of the key input module comprise an ACC shifting switch, a reverse shifting switch and a headlamp shifting switch, and the ACC shifting switch, the reverse shifting switch and the headlamp shifting switch are respectively used for simulating the switch states of an ACC, a reverse and a headlamp of an automobile.
As a further improvement of the present invention, the key input module further comprises a volume up key, a volume down key, a previous song key, a next song key, a bluetooth phone key, and an exit key, and the volume up key, the volume down key, the previous song key, the next song key, the bluetooth phone key, and the exit key respectively simulate the volume up, volume down, previous song, next song, bluetooth phone, and exit functions of a vehicle's side control key.
As a further improvement of the invention, when a tire pressure sensor and a temperature sensor are arranged in the automobile, the test box simulates the temperature change of the automobile tire, and the temperature data is simulated by software and sent to the equipment terminal at regular time, so that the corresponding function can be realized, the automatic detection function is realized, and the test efficiency is improved.
The invention has the beneficial effects that: under the condition that the CAN bus is not installed on the automobile, the CAN bus testing tool CAN simulate the automobile CAN bus to test, and the test is very convenient, so that the working efficiency is improved.
Drawings
Fig. 1 is a schematic block diagram of the present invention.
Detailed Description
As shown in fig. 1, the invention discloses a CAN bus testing tool for simulating a CAN bus function test of an automobile, which comprises a testing box and a computer terminal, wherein the testing box comprises a power management module, a key input module, a serial port debugging interface, an MCU and a CAN bus interface, the MCU is respectively connected with the power management module, the key input module, the serial port debugging interface and the CAN bus interface, the CAN bus interface is used for being connected with a CAN bus to be tested, the computer terminal is provided with a debugging tool, the computer terminal is connected with the serial port debugging interface through a computer serial port interface, and the testing of the CAN bus is realized through the debugging tool.
The two CAN bus interfaces are respectively a CAN1 bus interface and a CAN2 bus interface, CAN simultaneously simulate 2 independent CAN buses, CAN test automobile controls with 2 CAN buses, and have different data contents and baud rates of the CAN buses. The test is very convenient, thereby improving the working efficiency.
The test box also comprises an LED lamp indicating module, and the LED lamp indicating module is connected with the MCU.
The data is analyzed through the debugging tool at the computer end, and the data CAN be printed through the serial port when the related CAN bus data needs to be printed in the test process, so that the problems CAN be analyzed and searched more intuitively.
The realization method of the invention is as follows:
step 1: the serial port debugging interface is connected with the computer serial port interface, so that the hardware connection between the test box and the computer end is realized.
Step 2: the print serial protocol is defined as follows:
the serial port displays and receives a data protocol description of the CAN bus: debugging tool of MCU- > PC
(3) CAN extended frame
Receiving CAN bus data (16 system)
ExtId IDE RTR DLC DATA
18FFC325 1 0 08 00 00 00 00 00 00 00 00
The serial port protocol is as follows:
Figure BDA0003200015550000031
(4) CAN standard frame
Receiving CAN bus data (16 system)
StdId IDE RTR DLC DATA
322 0 0 08 00 00 00 00 00 00 00 00
The serial port protocol is as follows:
Figure BDA0003200015550000032
(II) serial port display sending CAN bus data protocol description: debugging tool- > MCU of PC
(3) CAN extended frame
CAN bus data of transmission (16 system)
ExtId IDE RTR DLC DATA
0CFE6CEE 1 0 08 00 00 00 00 00 00 00 00
The serial port protocol is as follows:
Figure BDA0003200015550000041
(4) CAN standard frame
CAN bus data of transmission (16 system)
StdId IDE RTR DLC DATA
135 0 0 08 00 00 00 00 00 00 00 00
The serial port protocol is as follows:
Figure BDA0003200015550000042
and 3, step 3: and (3) opening a debugging tool (software) at the computer end, and carrying out communication protocol matching (setting serial port numbers, baud rates and the like) on the debugging tool at the computer end and a test box (CAN bus test tool).
And 4, step 4: the debugging tool receives data through a serial port, stores the data in an EXCEL table, analyzes data of interaction between the equipment terminal and a test box (CAN bus testing tool), finds out related logic problems, accelerates debugging efficiency and accordingly completes CAN bus testing.
The device terminal can be a central control platform of an automobile, or a 360-machine terminal, or a terminal device such as a t box.
2. And the key of the key input module is used for simulating the CAN bus function to replace loading.
(1) There are 6 toggle switches: the vehicle body related switch states can be simulated: ACC, reverse, headlight, etc.
The implementation method comprises the following steps:
(a) ACC on and off are achieved as follows:
testing the ACC ON function, firstly pulling the ACC pulling switch to an ON position, and testing box simulation data as follows:
ExtId IDE RTR DLC DATA
18FFC325 1 0 08 00 00 00 04 00 00 00 00
the ACC OFF function is tested, firstly, the ACC pulling switch is pulled to the OFF position, and the simulation data of the test box are as follows:
ExtId IDE RTR DLC DATA
18FFC325 1 0 08 00 00 00 00 00 00 00 00
(b) the reversing on and off are realized as follows:
the test gets into the function of backing a car, pulls the toggle switch that backs a car to the ON position at first, and test box analog data is as follows:
ExtId IDE RTR DLC DATA
18FFDA21 1 0 08 00 00 00 00 40 00 00 00
after the tested automobile equipment receives the CAN bus data, corresponding functions are implemented.
The test is gone back to the function of backing a car, at first pulls out the toggle switch of backing a car to the OFF position, and the test box analog data is as follows:
ExtId IDE RTR DLC DATA
18FFDA21 1 0 08 00 00 00 00 00 00 00 00
after the tested automobile equipment receives the CAN bus data, corresponding functions are implemented.
(c) And the on and off of the headlamp are realized as follows:
the test headlight opens the function, pulls out headlight shifting switch at first to the ON position, and the test box analog data is as follows:
ExtId IDE RTR DLC DATA
18FFDA21 1 0 08 01 00 00 00 40 00 00 00
after the tested automobile equipment receives the CAN bus data, corresponding functions are implemented.
The method comprises the following steps of testing the turning-OFF function of a headlamp, firstly, turning OFF a headlamp turning switch to an OFF position, and testing box simulation data as follows:
ExtId IDE RTR DLC DATA
18FFDA21 1 0 08 00 00 00 00 00 00 00 00
after the tested automobile equipment receives the CAN bus data, corresponding functions are implemented.
(2) There are 6 tact buttons: the square control key can be simulated: volume up, volume down, previous song, next song, bluetooth phone, exit, etc.
The method for realizing the simulation of the square control key comprises the following steps:
(a) the volume plus key is implemented as follows:
ExtId IDE RTR DLC DATA
18FFC325 1 0 08 4100000000000000 volume down
18FFC325 1 0 08 000000000000 volume reduction
After the tested automobile equipment receives the CAN bus data, corresponding functions are implemented.
(b) The volume down key is implemented as follows:
ExtId IDE RTR DLC DATA
18FFC325 1 0 08 4000004000000000 volume plus press
18FFC325 1 0 08 000000000000 volume up and down
After the tested automobile equipment receives the CAN bus data, corresponding functions are implemented.
(c) The implementation of the previous song key is as follows:
ExtId IDE RTR DLC DATA
18FFC325 1 0 08 4400000000000000 the last song is pressed
18FFC325 1 0 08 Opening of the last song 000000000000
After the tested automobile equipment receives the CAN bus data, corresponding functions are implemented.
(d) The next song key is implemented as follows:
ExtId IDE RTR DLC DATA
18FFC325 1 0 08 4000010000000000 Next song pressing
18FFC325 1 0 08 Release of the next song 000000000000
After the tested automobile equipment receives the CAN bus data, corresponding functions are implemented.
(e) Implementation of bluetooth phone keys is as follows:
Figure BDA0003200015550000061
Figure BDA0003200015550000071
after the tested automobile equipment receives the CAN bus data, corresponding functions are implemented.
(f) The exit key is implemented as follows:
ExtId IDE RTR DLC DATA
18FFC325 1 0 08 4000000004000000 Exit Press
18FFC325 1 0 08 000000000000 exit release
After the tested automobile equipment receives the CAN bus data, corresponding functions are implemented.
3. Simulating the functions of the internal part sensor of the vehicle:
when the tire pressure and temperature sensors are arranged in the automobile, the test box simulates the temperature change of the automobile tire, and the temperature data is sent to the equipment terminal at regular time by software simulation, so that the corresponding function can be realized, the automatic detection function is realized, and the test efficiency is improved.
(a) The method for realizing the automatic detection of the simulated tire pressure display information comprises the following steps:
Figure BDA0003200015550000072
(b) the method for realizing the automatic detection of the temperature information inside and outside the simulated vehicle comprises the following steps:
Figure BDA0003200015550000073
Figure BDA0003200015550000081
the foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (9)

1. The utility model provides a CAN bus test tool of simulation car CAN bus function test which characterized in that: the testing box comprises a power management module, a key input module, a serial port debugging interface, an MCU (micro controller unit) and a CAN (controller area network) bus interface, wherein the MCU is respectively connected with the power management module, the key input module, the serial port debugging interface and the CAN bus interface, the key input module simulates the CAN bus function by keys, the CAN bus interface is used for being connected with a CAN bus to be tested, a debugging tool is installed at the computer end, and the computer end is connected with the serial port debugging interface by the computer serial port interface and realizes the testing of the CAN bus by the debugging tool.
2. The CAN bus test tool of claim 1, wherein: the number of the CAN bus interfaces is two, and the two CAN bus interfaces are respectively a CAN1 bus interface and a CAN2 bus interface.
3. The CAN bus test tool of claim 1, wherein: the test box also comprises an LED lamp indicating module, and the LED lamp indicating module is connected with the MCU.
4. The CAN bus test tool of claim 1, wherein: and opening a debugging tool at the computer end, receiving data by the debugging tool through a serial port, analyzing the data of the interaction between the equipment terminal and the test box, and finding out related logic problems so as to finish the CAN bus test.
5. The CAN bus test tool of claim 1, wherein: in the test process, when CAN bus data needs to be printed, the CAN bus data CAN be printed through a serial port, and the printing serial port protocol is defined as follows:
the serial port displays the received data protocol description of the CAN bus: MCU- > debugging tool
(1) CAN extended frame
Receiving CAN bus data (16 system)
ExtId IDE RTR DLC DATA 18FFC325 1 0 08 00 00 00 00 00 00 00 00
The serial port protocol is as follows:
Figure RE-FDA0003335602850000011
Figure RE-FDA0003335602850000021
(2) CAN standard frame
Receiving CAN bus data (16 system)
StdId IDE RTR DLC DATA 322 0 0 08 00 00 00 00 00 00 00 00
The serial port protocol is as follows:
Figure RE-FDA0003335602850000022
6. the CAN bus test tool of claim 5, wherein: the serial display sends CAN bus data protocol description: debugging tool- > MCU
(1) CAN extended frame
CAN bus data of transmission (16 system)
ExtId IDE RTR DLC DATA 0CFE6CEE 1 0 08 00 00 00 00 00 00 00 00
The serial port protocol is as follows:
Figure RE-FDA0003335602850000023
Figure RE-FDA0003335602850000031
(2) CAN standard frame
CAN bus data of transmission (16 system)
StdId IDE RTR DLC DATA 135 0 0 08 00 00 00 00 00 00 00 00
The serial port protocol is as follows:
Figure RE-FDA0003335602850000032
7. the CAN bus test tool of claim 1, wherein: the keys of the key input module comprise an ACC shifting switch, a backing shifting switch and a headlamp shifting switch, and the ACC shifting switch, the backing shifting switch and the headlamp shifting switch are used for respectively simulating the switch states of an ACC, a backing and a headlamp of an automobile.
8. The CAN bus test tool of claim 7, wherein: the key input module further comprises a volume increasing key, a volume decreasing key, a previous song key, a next song key, a Bluetooth telephone key and an exiting key, and the volume increasing, the volume decreasing, the previous song key, the next song key, the Bluetooth telephone key and the exiting key respectively simulate the volume increasing, the volume decreasing, the previous song, the next song and the Bluetooth telephone functions of a square control key of an automobile and the exiting function.
9. The CAN bus test tool of claim 1, wherein: when a tire pressure sensor and a temperature sensor are arranged in an automobile, the test box simulates the temperature change of the automobile tire, and the temperature data is sent to the equipment terminal at regular time by software simulation change, so that the corresponding function can be realized, the automatic detection function is realized, and the test efficiency is improved.
CN202110901747.4A 2021-08-06 2021-08-06 CAN bus test tool for simulating automobile CAN bus function test Pending CN113721583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110901747.4A CN113721583A (en) 2021-08-06 2021-08-06 CAN bus test tool for simulating automobile CAN bus function test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110901747.4A CN113721583A (en) 2021-08-06 2021-08-06 CAN bus test tool for simulating automobile CAN bus function test

Publications (1)

Publication Number Publication Date
CN113721583A true CN113721583A (en) 2021-11-30

Family

ID=78675066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110901747.4A Pending CN113721583A (en) 2021-08-06 2021-08-06 CAN bus test tool for simulating automobile CAN bus function test

Country Status (1)

Country Link
CN (1) CN113721583A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060036907A1 (en) * 2004-08-11 2006-02-16 Emc Corporation Area-and product-independent test automation system and method for automatically synchronizing tests of multiple devices
CN203894578U (en) * 2013-12-26 2014-10-22 中国第一汽车股份有限公司 Portable automobile bus test communication tool
CN204322944U (en) * 2014-11-11 2015-05-13 中国电子科技集团公司第三十八研究所 Portable tyre pressure sensor radio diagnostic device
CN205901768U (en) * 2016-08-05 2017-01-18 上海文迅电子有限公司 Multi -functional bus device testing arrangement
CN106843091A (en) * 2017-04-10 2017-06-13 秦皇岛翼维思航空线缆有限公司 The CAN test system and method for testing of comprehensive cable tester
CN107070746A (en) * 2017-04-10 2017-08-18 秦皇岛翼维思航空线缆有限公司 A kind of comprehensive cable tester and its method of testing
CN206658216U (en) * 2017-04-17 2017-11-21 成都大学 A kind of debugging apparatus of vehicle-mounted information service system
CN112650196A (en) * 2020-12-18 2021-04-13 雄狮汽车科技(南京)有限公司 CAN network automatic test box and use method thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060036907A1 (en) * 2004-08-11 2006-02-16 Emc Corporation Area-and product-independent test automation system and method for automatically synchronizing tests of multiple devices
CN203894578U (en) * 2013-12-26 2014-10-22 中国第一汽车股份有限公司 Portable automobile bus test communication tool
CN204322944U (en) * 2014-11-11 2015-05-13 中国电子科技集团公司第三十八研究所 Portable tyre pressure sensor radio diagnostic device
CN205901768U (en) * 2016-08-05 2017-01-18 上海文迅电子有限公司 Multi -functional bus device testing arrangement
CN106843091A (en) * 2017-04-10 2017-06-13 秦皇岛翼维思航空线缆有限公司 The CAN test system and method for testing of comprehensive cable tester
CN107070746A (en) * 2017-04-10 2017-08-18 秦皇岛翼维思航空线缆有限公司 A kind of comprehensive cable tester and its method of testing
CN206658216U (en) * 2017-04-17 2017-11-21 成都大学 A kind of debugging apparatus of vehicle-mounted information service system
CN112650196A (en) * 2020-12-18 2021-04-13 雄狮汽车科技(南京)有限公司 CAN network automatic test box and use method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜兴华等: "基于STM32的CAN总线测试平台设计", 《仪器仪表标准化与计量》 *

Similar Documents

Publication Publication Date Title
CN101895394B (en) Implementation method and the device thereof of exchanges data is carried out with OBD diagnose connector
CN201707605U (en) Embedded automobile OBD (On-Board Diagnostics) fault diagnosing device
CN206400286U (en) A kind of test system based on hardware in loop equipment
CN103543399A (en) Car CAN bus module fully-automatic detection system and method based on PCI board card
CN111221326A (en) System and method for realizing hardware-in-loop test control based on Simulink real-time simulation system
CN204576254U (en) Driver's simulator stand that a kind of remote power controls
CN112362362A (en) Offline whole vehicle logic test system and test method
CN102866701A (en) Automobile fault diagnosis system applying touch control key technology
CN113721583A (en) CAN bus test tool for simulating automobile CAN bus function test
CN215954135U (en) Test tool, vehicle control system and vehicle
CN107843796A (en) Armored vehicle chassis electronic equipment detection means
CN111413891A (en) PTC controller hardware-in-loop simulation system
CN104699594A (en) Test method and test equipment
CN202975792U (en) Miniature code reading card capable of supporting full-system diagnosis function
CN201235753Y (en) Combined meter of automobile
CN101165674A (en) Palm computer for automobile failure diagnosis
CN211669543U (en) HIL test system suitable for mixed operation system
CN101526806A (en) Multifunctional data acquiring-outputting teaching experimental device and control method thereof
CN107791756A (en) Integrated PEPS system for monitoring pressure in tyre coupling learning device and method
CN215987019U (en) Vehicle-mounted domain controller module testing equipment
CN206658216U (en) A kind of debugging apparatus of vehicle-mounted information service system
CN113848864A (en) Automatic test equipment of vehicle-mounted domain controller module
CN113805566A (en) Detection method and system for integrated driving assistance system controller
CN209851990U (en) Four-wheel aligner
CN112964478A (en) Automobile diagnosis equipment for automobile users

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211130

RJ01 Rejection of invention patent application after publication