CN112650196A - CAN network automatic test box and use method thereof - Google Patents

CAN network automatic test box and use method thereof Download PDF

Info

Publication number
CN112650196A
CN112650196A CN202011510935.6A CN202011510935A CN112650196A CN 112650196 A CN112650196 A CN 112650196A CN 202011510935 A CN202011510935 A CN 202011510935A CN 112650196 A CN112650196 A CN 112650196A
Authority
CN
China
Prior art keywords
module
test
mcu chip
serial port
box
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
CN202011510935.6A
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.)
Chery Automobile Co Ltd
Lion Automotive Technology Nanjing Co Ltd
Wuhu Lion Automotive Technologies Co Ltd
Original Assignee
Chery Automobile Co Ltd
Lion Automotive Technology Nanjing Co Ltd
Wuhu Lion Automotive Technologies 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 Chery Automobile Co Ltd, Lion Automotive Technology Nanjing Co Ltd, Wuhu Lion Automotive Technologies Co Ltd filed Critical Chery Automobile Co Ltd
Priority to CN202011510935.6A priority Critical patent/CN112650196A/en
Publication of CN112650196A publication Critical patent/CN112650196A/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/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • 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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a CAN network automatic test box and a use method thereof, wherein the test box comprises a box body and a control module arranged in the box body, the control module comprises an MCU chip module, a storage module and a serial port-to-CAN BUS module, the MCU chip module is respectively connected to the storage module and the serial port-to-CAN BUS module, a CAN network message test software script file is arranged in the storage module, the MCU chip module reads, accesses and runs the script file after starting test, sends test information according to the content of the script file and outputs the test information to the serial port-to-CAN BUS module through a serial port of the MCU chip module, and the CAN BUS module converts the serial port information into CAN information and sends the CAN information to a device to be tested. The test box is low in cost, reliable in equipment operation, simple in use and operation and free of excessive resource occupation.

Description

CAN network automatic test box and use method thereof
Technical Field
The invention belongs to the field of automobile electronic performance test experimental tools, and particularly relates to a CAN network automatic test box and a use method thereof.
Background
In the automobile electronic CAN network message test, a computer is required to be connected frequently to send CAN message tests to a test terminal, and if the CAN network signal pressure test is executed, computer use resources are occupied. The testing delays the use of resources of a computer, which is not satisfactory for large-scale testing. In addition, no independent testing tool or equipment CAN be used for testing the CAN network messages in the prior art, and a testing box is designed based on the CAN network message testing method and the testing box for testing the CAN network messages.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a CAN network automatic test box which is used for realizing the test of automobile electronic CAN network messages and CAN greatly save the occupation of a computer by adopting special equipment.
In order to achieve the purpose, the invention adopts the technical scheme that: the utility model provides an automatic test box of CAN network, box body and the control module of setting in the box body, control module includes MCU chip module, storage module, serial ports commentaries on classics CAN BUS module, MCU chip module is connected to storage module, serial ports commentaries on classics CAN BUS module respectively, set up CAN network message test software script file in the storage module, MCU chip module reads and deposits and operate script file after starting the test, sends test information according to script file content to the serial ports end through MCU chip module is exported to serial ports commentaries on classics CAN BUS module, and CAN BUS module converts serial ports information into CAN information and sends to the equipment that awaits measuring.
The box body is provided with an execution/stop key, and the execution/stop key is connected with the MCU chip module and used for sending an execution or stop signal to the MCU chip module to start and close the test box.
The storage module comprises a built-in register ROM and/or a peripheral storage device, and the register ROM and the peripheral storage device are respectively connected with the MCU chip module.
The peripheral storage device is connected with a peripheral reading device arranged in the box body, and the peripheral reading device is connected with the MCU chip module and used for reading script files in the peripheral storage device according to control signals of the MCU chip module.
The built-in register ROM is connected to an external terminal through a USB module, and the external terminal writes the script file into the built-in register.
The serial port-to-CAN BUS module is an RS232 serial port-to-CAN BUS module or an RS485 serial port-to-CAN BUS module.
The serial port-to-CAN BUS module is used for being connected to equipment to be tested through the interface.
The power management module is arranged in the box body and connected with the MCU chip module, and converts a power supply outside the box body into a power supply required by the work of the MCU chip module.
A use method of a CAN network automation equipment test box comprises the following steps:
1) writing a script file for CAN network test into a register ROM through a computer or connecting an external storage device in which the script file is stored in advance with an external reading device;
2) connecting an external power supply to the power supply management module;
3) connecting the serial port-to-CAN BUS module with a terminal to be tested;
4) pressing an execution/stop key to enter a test step;
5) after the test is started, the tester judges the test according to the working state of the automobile electronics;
6) and after the test is finished, pressing an execution/stop key to finish the test.
The invention has the advantages that: the method has the advantages of reducing dependence on computer test, low cost, reliable equipment operation, suitability for large-scale rapid test, simple use and operation and no occupation of excessive resources.
Drawings
The contents of the expressions in the various figures of the present specification and the labels in the figures are briefly described as follows:
FIG. 1 is a schematic view of a test cassette of the present invention.
In fig. 1: 1 is a shell of a CAN network signal automatic test box,
2 is a power supply management module for power supply,
3 is a USB communication interface module which is provided with a USB communication interface,
4 is a register ROM module which is,
5 is an MCU chip (like STM32),
6 is rs232/485 serial port-to-CAN BUS module,
the reference numeral 7 denotes an operation switch,
8 is a peripheral reading module
And 9 is a terminal to be tested.
Detailed Description
The following description of preferred embodiments of the invention will be made in further detail with reference to the accompanying drawings.
As shown in fig. 1, a CAN network automation test box comprises a box body and a control module arranged in the box body, wherein the control module comprises an MCU chip module, a storage module and a serial port-to-CAN BUS module, and the MCU chip module is respectively connected to the storage module and the serial port-to-CAN BUS module;
the storage module is internally provided with a CAN network message test software script file, wherein the test script file refers to that software which is originally operated by a computer end is integrated into the script file and is put into an MCU chip to operate, and the code language mode may be adjusted according to the type of the MCU chip, for example, the computer end software language is converted into a C language which CAN be realized by a singlechip. The MCU chip module reads, accesses and runs the script file after starting test, sends test information according to the content of the script file, and outputs the test information to the serial port-to-CAN BUS module through the serial port end of the MCU chip module, and the CAN BUS module converts the serial port information into CAN information and sends the CAN information to the equipment to be tested.
The storage module comprises a built-in register ROM and/or a peripheral storage device, and the register ROM and the peripheral storage device are respectively connected with the MCU chip module.
The peripheral storage device is connected with a peripheral reading device arranged in the box body, and the peripheral reading device is connected with the MCU chip module and used for reading script files in the peripheral storage device according to control signals of the MCU chip module.
The built-in register ROM is connected to an external terminal through a USB module, and the external terminal writes the script file into the built-in register. The external terminal is generally a computer, and software developed by the computer is written into the corresponding ROM.
The MCU chip takes a singlechip chip as an example, and after the development of the computer end is finished, the program script is burnt into the singlechip through the USB. The single chip microcomputer executes the script file compiled by the C language, sends out a corresponding CAN test signal according to a control instruction of the file, and converts a serial port signal sent out by the single chip microcomputer into a corresponding CAN signal to be transmitted to the automobile electronic equipment to be tested through conversion.
The serial port-to-CAN BUS module is an RS232 serial port-to-CAN BUS module or an RS485 serial port-to-CAN BUS module. And selecting the specific interface serial port type of the MCU chip for use. The box body is provided with an interface for outputting CAN test signals, and the serial port-to-CAN BUS module is connected to the equipment to be tested through the interface.
The box body is provided with an execution/stop key, the key adopts an electronic key, and after being pressed, the key can trigger to send a level signal to the singlechip, and then the singlechip executes or suspends the test process. The execution/stop key is connected with the MCU chip module and used for sending an execution or stop signal to the MCU chip module to start and close the test box.
The power management module is arranged in the box body and connected with the MCU chip module, and converts a power supply outside the box body into a power supply required by the work of the MCU chip module. Taking the 12V power as an example, the 12V power is connected to the power management system, and the power management system
A use method of a CAN network automation equipment test box comprises the following steps:
1) writing a script file for CAN network test into a register ROM through a computer or connecting an external storage device in which the script file is stored in advance with an external reading device;
2) connecting an external power supply to the power supply management module;
3) connecting the serial port-to-CAN BUS module with a terminal to be tested;
4) pressing an execution/stop key to enter a test step;
5) after the test is started, the tester judges the test according to the working state of the automobile electronics; the test box mainly realizes the sending of a control signal test signal, and then a tester can judge a test result by observing the working state of automobile electronics according to test contents;
6) and after the test is finished, pressing an execution/stop key to finish the test.
The CAN network signal test box is a test method which is originally used for continuously sending CAN messages through a computer or manually and is improved into a test method which CAN be independently executed by a readable script. The general method is that the test is connected to an external power supply, and then a CAN message sending test script file which needs to be executed in advance is led into a register (memory) of a test box (or stored in an external memory such as a U disk and an SD card) through a computer USB, when the test box is executed, the script text file content stored in the register (or the inserted external memory such as the U disk and the SD card) is automatically read, and the test script is automatically executed, and the CAN message is sent to a test terminal. The currently designed test box only executes the message sending according to the script content, but cannot autonomously judge the test result judgment after the message sending, and needs to judge the test result after the message sending through other auxiliary test tools or people.
The CAN network signal automatic test box comprises a material USB interface module, a power supply module, an MCU chip (such as STM32), a register ROM, and an rs232/485 serial port-to-CAN BUS module.
When the testing device is used, a designed testing step script file is firstly guided into a register ROM of the testing box (or stored in an external memory such as a U disk and an SD card) through a USB interface module of the testing box, the script is executed through keys, after an MCU chip (such as STM32) receives an execution signal, the MCU chip starts to read a script file in the register ROM (or an inserted external memory such as a U disk and an SD card), and executes an instruction and transfers serial port information to an rs232/485 serial port-to-CAN BUS module, and the rs232/485 serial port-to-CAN BUS module transfers the serial port information to a CAN signal and sends the CAN signal to a terminal to be tested.
After the method is adopted, the test CAN be carried out in a mode of being frequently connected and sent by a computer, and the CAN signal pressure test CAN be directly and independently executed by running a self-designed script.
After the patent is adopted, the cost is low, the equipment operation is reliable, the use and the operation are simple, and excessive resources are not occupied.
The operation process is as shown in figure 1: the testing box is firstly connected with a power supply 2 (the power supply is a 12-voltage power supply), then a computer guides a designed script file of the testing step into a register ROM 4 of the testing box through a USB interface module 3 of the testing box (or the script file CAN be stored in a peripheral storage device of a U disk or an SD card, and then the peripheral storage device is inserted into a peripheral reading module 8), an operation key 7 is pressed down, a MCU chip (such as an STM32) starts to read the script file in the register ROM 4 (or reads the script file in the peripheral storage device of the peripheral reading module 8) after receiving an execution signal, an instruction is executed and a serial port message is transferred to an rs232/485 serial port-to-CAN BUS module 6, and the rs232/485 serial port-to-CAN BUS module 6 converts the serial port message into a CAN signal and sends the CAN signal to a terminal 9 to be tested.
It is clear that the specific implementation of the invention is not restricted to the above-described embodiments, but that various insubstantial modifications of the inventive process concept and technical solutions are within the scope of protection of the invention.

Claims (9)

1. The utility model provides a CAN network automation test box which characterized in that: the control module in the box body, control module includes MCU chip module, storage module, serial ports commentaries on classics CAN BUS module, MCU chip module is connected to storage module, serial ports commentaries on classics CAN BUS module respectively, set up CAN network message test software script file in the storage module, MCU chip module reads and deposits and operates script file after the start test, sends test information according to script file content to serial ports end through MCU chip module exports to serial ports commentaries on classics CAN BUS module, and CAN BUS module converts serial ports information into CAN information and sends to the equipment that awaits measuring.
2. The CAN network automation test box of claim 1, characterized in that: the box body is provided with an execution/stop key, and the execution/stop key is connected with the MCU chip module and used for sending an execution or stop signal to the MCU chip module to start and close the test box.
3. The CAN network automation test cartridge of claim 1 or 2, characterized in that: the storage module comprises a built-in register ROM and/or a peripheral storage device, and the register ROM and the peripheral storage device are respectively connected with the MCU chip module.
4. The CAN network automation test box of claim 3, characterized in that: the peripheral storage device is connected with a peripheral reading device arranged in the box body, and the peripheral reading device is connected with the MCU chip module and used for reading script files in the peripheral storage device according to control signals of the MCU chip module.
5. The CAN network automation device test box of claim 3, wherein: the built-in register ROM is connected to an external terminal through a USB module, and the external terminal writes the script file into the built-in register.
6. The CAN network automation device test box of any one of claims 1 to 5, wherein: the serial port-to-CAN BUS module is an RS232 serial port-to-CAN BUS module or an RS485 serial port-to-CAN BUS module.
7. The CAN network automation device test box of any one of claims 1 to 5, wherein: the serial port-to-CAN BUS module is used for being connected to equipment to be tested through the interface.
8. The CAN network automation device test box of any one of claims 1 to 5, wherein: the power management module is arranged in the box body and connected with the MCU chip module, and converts a power supply outside the box body into a power supply required by the work of the MCU chip module.
9. The use of the CAN network automation device test cartridge of any one of claims 1 to 8, characterized in that: comprises that
1) Writing a script file for CAN network test into a register ROM through a computer or connecting an external storage device in which the script file is stored in advance with an external reading device;
2) connecting an external power supply to the power supply management module;
3) connecting the serial port-to-CAN BUS module with a terminal to be tested;
4) pressing an execution/stop key to enter a test step;
5) after the test is started, the tester judges the test according to the working state of the automobile electronics;
6) and after the test is finished, pressing an execution/stop key to finish the test.
CN202011510935.6A 2020-12-18 2020-12-18 CAN network automatic test box and use method thereof Pending CN112650196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011510935.6A CN112650196A (en) 2020-12-18 2020-12-18 CAN network automatic test box and use method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011510935.6A CN112650196A (en) 2020-12-18 2020-12-18 CAN network automatic test box and use method thereof

Publications (1)

Publication Number Publication Date
CN112650196A true CN112650196A (en) 2021-04-13

Family

ID=75358358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011510935.6A Pending CN112650196A (en) 2020-12-18 2020-12-18 CAN network automatic test box and use method thereof

Country Status (1)

Country Link
CN (1) CN112650196A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113655773A (en) * 2021-07-19 2021-11-16 东风汽车集团股份有限公司 Vehicle machine system communication serial port pressure testing system and method
CN113721583A (en) * 2021-08-06 2021-11-30 深圳市浩科智联科技有限公司 CAN bus test tool for simulating automobile CAN bus function test

Citations (5)

* 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
CN206480061U (en) * 2017-01-11 2017-09-08 昆明理工大学 A kind of automobile CAN-bus data recording equipment
CN207924030U (en) * 2017-12-08 2018-09-28 延锋伟世通电子科技(南京)有限公司 Automobile instrument automatic test box
CN208847234U (en) * 2018-08-28 2019-05-10 武汉蓝星科技股份有限公司 A kind of automated detection system of intelligent instruments in vehicles

Patent Citations (5)

* 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
CN206480061U (en) * 2017-01-11 2017-09-08 昆明理工大学 A kind of automobile CAN-bus data recording equipment
CN207924030U (en) * 2017-12-08 2018-09-28 延锋伟世通电子科技(南京)有限公司 Automobile instrument automatic test box
CN208847234U (en) * 2018-08-28 2019-05-10 武汉蓝星科技股份有限公司 A kind of automated detection system of intelligent instruments in vehicles

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113655773A (en) * 2021-07-19 2021-11-16 东风汽车集团股份有限公司 Vehicle machine system communication serial port pressure testing system and method
CN113655773B (en) * 2021-07-19 2023-02-28 东风汽车集团股份有限公司 Vehicle machine system communication serial port pressure testing system and method
CN113721583A (en) * 2021-08-06 2021-11-30 深圳市浩科智联科技有限公司 CAN bus test tool for simulating automobile CAN bus function test

Similar Documents

Publication Publication Date Title
CN112650196A (en) CAN network automatic test box and use method thereof
CN202041845U (en) Vehicle-mounted CAN (Control Area Network) bus system test and control analysis platform
CN102063747B (en) CAN data logger
CN211787061U (en) USB interface function detection equipment
CN101992733A (en) Automobile fault real-time prompt system
CN112269754A (en) LPC bus EMC extension device based on FPGA
CN104298231A (en) Diagnostic equipment for multiple controllers of vehicle
CN1108561C (en) Error automatic detection device and method of personal digilal assistant device
CN208110030U (en) A kind of communication test plate of ammeter communication module
CN111597137A (en) Dynamic debugging method, device and system based on SPI protocol
CN201199329Y (en) Vehicle-mounted fault diagnostic device for automobile
CN201497911U (en) Real-time vehicle failure prompting system
CN210835674U (en) ECU data acquisition equipment based on CAN bus
CN107704417A (en) The method and its communication system to be communicated with equipment under test
CN201535950U (en) Handheld bar code meter reading machine
CN209785059U (en) Bluetooth recharging system based on mobile terminal
CN110032085B (en) Multi-debugging mode circuit suitable for special processor and monitoring simulation method thereof
CN208621928U (en) A kind of control device sent for CAN signal processing
CN217305838U (en) Storage device for car machine running log
CN114880269B (en) Board ID configuration and identification method, microcontroller and control system
CN114780425B (en) Method for designing hardware-in-loop automatic test case of whole vehicle controller
CN201130373Y (en) Apparatus for converting ARINC429 device into USB interface
CN219891652U (en) SSD switching device and SSD debugging system
CN218350999U (en) RF function test system based on broadcast mode
CN212906143U (en) Device, computer mainboard and equipment of conveniently changing EC

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: 20210413

RJ01 Rejection of invention patent application after publication