Vehicle-mounted equipment host testing system and method

By designing a vehicle-mounted equipment host test system and using MCU chips to implement automated testing, the problems of low detection efficiency and poor accuracy of vehicle-mounted equipment in the existing technology have been solved, and efficient and accurate automated testing has been achieved.

CN118625009APending Publication Date: 2024-09-10HENAN LANXIN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410534648.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, the detection of vehicle-mounted equipment mainly relies on manual labor. There are problems such as the difficulty of test case design, long test cycle, low test efficiency, difficulty in finding the cause of the fault, and the untraceability of the test process.

Method used

A vehicle-mounted equipment host test system is designed, including a chassis, a motherboard, a program-controlled power supply and an electronic load. The circuit structure on the motherboard includes a power supply unit, a main control unit, an interface unit and a PHY unit. Automated testing is realized through the MCU chip and interface data is supported. A large amount of stress testing, interface load size testing, etc. have improved testing efficiency and accuracy.

Benefits of technology

It realizes unattended automated testing, improves testing efficiency and accuracy, simplifies the circuit structure, and reduces component costs and assembly complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625009A
    Figure CN118625009A
Patent Text Reader

Abstract

The invention belongs to the technical field of vehicle-mounted equipment detection, and particularly relates to a vehicle-mounted equipment host testing system and method.The vehicle-mounted equipment host testing system comprises a case, a mainboard, a programmable power supply and an electronic load, the mainboard, the programmable power supply and the electronic load are arranged in the case, and a circuit structure on the mainboard comprises a power supply unit, a main control unit, an interface unit and a PHY unit; the power supply unit realizes voltage conversion to supply power to the mainboard, the programmable power supply and the electronic load; the main control unit is connected with a programmable power supply and an electronic load, adjusts the power supply voltage, current and load of the equipment to be tested, and has the functions of working temperature acquisition and information storage; the interface unit comprises an external interface provided by the system for equipment to be tested and an internal interface provided by the system for the interior of the system, the main control unit communicates with the equipment to be tested through the external interface, and the main control unit is connected with the programmable power supply, the electronic load and the network switch through the internal interface; and the PHY unit provides a base plate 100M network bus for the mainboard. According to the invention, automatic testing is realized, and testing efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of vehicle-mounted equipment detection, and in particular relates to a vehicle-mounted equipment host testing system and method. Background Art

[0002] The EMU train control dynamic monitoring system and its derivative products mainly include: train control equipment dynamic monitoring system (DMS), EMU driver operation information analysis system (EOAS), main locomotive shunting operation safety auxiliary protection system (LSP) and rail vehicle shunting operation safety auxiliary protection system (GDK).

[0003] In order to detect various common interface functions of DMS / EOAS / LSP / GDK vehicle-mounted equipment, most of them are currently completed manually by testers, which has problems such as difficulty in designing test cases, long test cycles, low test efficiency, difficulty in finding fault causes, and inability to trace the test process. Summary of the invention

[0004] The purpose of the present invention is to address the problems existing in the prior art and to propose a vehicle-mounted device host testing system and method, which can perform stress testing of the interface data volume of the vehicle-mounted device host, interface load size testing, etc., to achieve automated testing and improve test efficiency and accuracy.

[0005] To achieve the above purpose, the technical solution adopted is:

[0006] A vehicle-mounted device host test system comprises a chassis and a mainboard, a programmable power supply and an electronic load inside the chassis, wherein the circuit structure on the mainboard comprises a power supply unit, a main control unit, an interface unit and a PHY unit; the power supply unit realizes voltage conversion to supply power to the mainboard, the programmable power supply and the electronic load, and at the same time introduces a voltage from the programmable power supply to provide a high-level output for a switch output signal; the main control unit is connected with the programmable power supply and the electronic load, adjusts the power supply voltage, current and load size of the device under test, and has the function of collecting working temperature and storing information; the interface unit comprises an external interface provided by the system to the device under test and an internal interface provided by the system to the system, the main control unit communicates with the device under test through the external interface, and the main control unit is connected to the programmable power supply, the electronic load and the network switch through the internal interface; the PHY unit provides a bottom plate 100M network bus for the mainboard.

[0007] According to the vehicle-mounted device host test system of the present invention, further, the main control unit includes an MCU chip, the MCU chip is connected to the debugging interface through the USART interface, the MCU chip is connected to the programming interface through the SWD interface, the MCU chip is connected to the clock circuit through the OSC interface, and the MCU chip is connected to the debugging interface through the USART interface. 2The C interfaces are respectively connected to an external storage chip, a temperature monitoring chip and an IO expansion chip, and the MCU chip is also connected to a reset circuit and a power decoupling circuit.

[0008] According to the vehicle-mounted equipment host test system of the present invention, further, the MCU chip is connected to the FPGA, serial port chip and network chip through its own parallel port; the MCU chip communicates with the signal generating chip through SPI; the MCU chip uses 4 GPIO pins as system status indication pins, and reserves 4 GPIO pins as key input interfaces and 4 GPIO pins as indication output interfaces; and uses 2 GPIO pins as cable ID detection.

[0009] According to the vehicle-mounted device host testing system of the present invention, further, the MCU chip is externally connected to the PHY unit via the RMII interface.

[0010] According to the vehicle-mounted equipment host test system of the present invention, further, the external interface of the interface unit is a 48-pin socket 09062486834222, including 3 RS485 communications, 2 RS422 communications, 1 RS232 communication, 2 CAN communications, 1 NET communication, 1 audio output, 1 MVB signal, 2 switch inputs and 8 switch output signals, and provides cable ID detection.

[0011] According to the vehicle-mounted equipment host test system of the present invention, further, the interface unit also includes an RS485 chip, an RS422 chip, an RS232 chip, a CAN chip and an isolation chip, and the MVB signal is simulated and implemented by communicating with the MAX3088 chip using FPGA; the 3-way RS485 communication part of the interface is connected to the serial port chip through 3 RS485 chips and 3 isolation chips; the 2-way RS422 communication part of the interface is connected to the serial port chip through 2 RS422 chips and 2 isolation chips; the 1-way RS232 communication part of the interface is connected to the serial port chip through 1 RS232 chip and 1 isolation chip; the 2-way CAN communication part of the interface is connected to the MCU chip through 2 CAN chips; the 1-way NET communication part of the interface is connected to the network chip; the 1-way audio output part of the interface is connected to the signal generating chip through an operational amplifier; the 2-way switch input and 8-way switch output signal parts of the interface are connected to the IO expansion chip through optocouplers; the interface cable ID detection part is directly connected to the GPIO pin of the MCU chip.

[0012] According to the vehicle-mounted equipment host test system of the present invention, further, the internal interface of the interface unit includes 3 DB9 sockets and 1 RJ45 socket, the 2 DB9 sockets connected to the programmable power supply are connected to the MCU chip through the RS232 chip and the isolation chip, the 1 DB9 socket connected to the electronic load is connected to the MCU chip through the isolation chip, and the 1 RJ45 socket connected to the network switch is connected to the PHY unit.

[0013] According to the vehicle-mounted device host testing system of the present invention, further, the PHY unit uses a DP83848I chip.

[0014] According to the vehicle-mounted equipment host test system of the present invention, further, the power supply unit includes a SY8120I power supply chip and an IB1205XT-1WR3 power supply chip, the DC12V power supply is divided into 5 routes, 1 route of power supply is converted into 3.3V by the SY8120I power supply chip, and the other 4 routes of power supply are converted into 5V by the IB1205XT-1WR3 power supply chip; the power supply unit also includes a switching circuit, which uses a relay to distribute the two-way controlled power supply.

[0015] A vehicle-mounted device host testing method is implemented based on the vehicle-mounted device host testing system as described above, and the method comprises:

[0016] Initialization of motherboard hardware and software resources;

[0017] One LED indicator on the MCU chip driver panel is used to indicate the program running status;

[0018] The test system performs cable ID detection, and after the detection cable is correctly connected, it supplies power to the device under test and identifies the device under test. The host computer matches the required test scenario according to the type of device under test and provides the data required for the test.

[0019] After receiving the data from the host computer through the internal interface, the test system performs data verification. After the verification passes, the data is parsed to obtain the relevant parameters for the test. After the parsing is completed, the test is sent in the main loop;

[0020] The test system checks whether each port currently has data to be sent out based on the results of communication with the host computer. If there is data to be sent out, it will be sent. After sending, the internal interface will be used to synchronously send the content of the data sent out to the host computer for the host computer to verify whether the data sent by the test is consistent with the data received by the device under test and transferred to the host computer.

[0021] The beneficial effects achieved by adopting the above technical solution are:

[0022] A vehicle-mounted device host test system of the present invention is designed with an internal interface of the system itself and an external interface with the device to be tested. The host computer sends the required test signal to the test system through the internal interface, and the test system sends data to the device to be tested through the external interface to realize the automatic test interface function. The test content includes pressure test of power supply adaptation range, pressure test of interface data volume, interface load size test, frequent power on and off test, etc. The present invention realizes unattended automated testing, improves test efficiency, and the test results are accurate and reliable. In addition, the circuit structure design of the present invention is simple, components are easy to purchase, assembly is simple, and manufacturing cost is low. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings of the embodiments of the present invention, wherein the drawings are only used to illustrate some embodiments of the present invention, but not to limit all embodiments of the present invention thereto.

[0024] Figure 1 It is a framework diagram of a vehicle-mounted device host test system according to an embodiment of the present invention;

[0025] Figure 2 is a principle block diagram of a main control unit according to an embodiment of the present invention;

[0026] Figure 3 is a principle block diagram of an interface unit according to an embodiment of the present invention;

[0027] Figure 4 is a principle block diagram of a PHY unit according to an embodiment of the present invention;

[0028] Figure 5 This is a power-on timing diagram of DP83848 according to an embodiment of the present invention;

[0029] Figure 6 This is a reset timing diagram of DP83848 according to an embodiment of the present invention;

[0030] Figure 7 This is a recommended circuit diagram of the network interface of DP83848 according to an embodiment of the present invention;

[0031] Figure 8 is a PHY chip reset control circuit diagram of an embodiment of the present invention;

[0032] Fig. 9 is a principle block diagram of a power supply unit according to an embodiment of the present invention;

[0033] Fig.10 It is a flow chart of sending data through an external interface implemented in the present invention. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings of specific embodiments of the present invention to clearly and completely describe the exemplary scheme of the embodiment of the present invention. Unless otherwise defined, the technical terms or scientific terms used in the present invention should be the common meanings understood by people with ordinary skills in the field.

[0035] like Figure 1 As shown, the vehicle-mounted equipment host test system of this embodiment includes a chassis and a mainboard, a programmable power supply, an electronic load and a network switch inside the chassis. Preferably, the chassis is a 19-inch standard rack-mounted 2U chassis that complies with the IEC standard. The chassis is composed of stretched aluminum profiles and aluminum alloy plates through fasteners, screws and other accessories. The exterior surface of the chassis is sandblasted and anodized, and the appearance is exquisite; the joints of the chassis parts are all conductively treated, and the rear panel is designed with reserved grounding holes to ensure reliable grounding of the chassis.

[0036] The mainboard is fixed with M3×8 cross pan head screws, and the assembly is simple. The circuit structure on the mainboard includes a power supply unit, a main control unit, an interface unit and a PHY unit. The power supply unit mainly realizes the voltage conversion function. Through the external input of 12V, it is converted into the required voltage for the circuit through the buck-boost chip. At the same time, a voltage is introduced by the programmable power supply to provide a high-level output for the switch output signal. The main control unit is connected with a programmable power supply and an electronic load, which can accurately adjust the power supply voltage, current and load size of the device under test. At the same time, it has the function of collecting and storing information of the working temperature, and can be sent to the network switch through NET. The interface unit includes an external interface provided by the system to the device under test and an internal interface provided by the system to the system. The main control unit communicates with the device under test through the external interface, and the main control unit is connected to the programmable power supply, electronic load and network switch through the internal interface. The PHY unit consists of a PHY chip and its peripheral circuits. The MCU chip communicates with it through the RMII interface to realize the extended 100M network. In addition, the reset and power supply of the PHY chip are controlled by the MCU chip.

[0037] (1) Main control unit

[0038] like Figure 2 As shown, the main control unit includes an MCU chip, a debugging interface, a programming interface, a clock circuit, a storage chip, a temperature monitoring chip, an IO expansion chip, a reset circuit, a power decoupling circuit, a parallel communication interface (FPGA, a serial port chip, a network chip) and a signal generation chip.

[0039] The MCU chip uses STM32F407 (GD32F407), which is the core of the motherboard's control, signal acquisition, and data communication. The chip has an operating voltage of 3.3V and has rich peripheral resources, which can meet system needs through expansion.

[0040] The parallel port of the MCU chip is expanded to an Ethernet interface PHY chip W5300, and the communication is carried out through the FSMC bus. W5300 works in 16-bit working mode, the IO port working voltage is 3.3V, the core working voltage is 1.8V, and its communication rate can reach 100Mbps. When designing the circuit, the 16-bit CPU data line is connected to the 16-bit data line of W5300; the address lines A0-A9 are connected to the W5300 address lines A0-A9; the FSMC read and write signals are connected to the W5300 read and write signals, and the chip select signal uses the FSMC PSRAM function block FSMC_NE2 to generate the chip select signal, and its read and write start address is 0x64000000. Since W5300 needs an external signal to reset, the reset pin of W5300 is connected to the PF9 pin of the CPU processor, and the 18th pin BIT16EN of W5300 is connected to +3.3V through a 1k resistor, so that W5300 works in 16-bit data bus width mode. The chip's TEST_MODE[3:0] is grounded to make the chip work in normal operation internal PHY mode. The 65th pin interrupt signal of W5300 is connected to the PF8 pin of the CPU to detect the interrupt signal of W5300. It uses a 25MHz crystal connected to the 95th and 96th pins of W5300, and a 20pF matching filter capacitor is added externally. OPMODE[2:0] is grounded to make W5300 work in normal operation mode. The 90th pin is connected to the status indicator and an LED light is connected externally as an indication. The 1st pin is externally connected to a 12.3k external resistor and connected to ground. The 1.8V operating voltage required by W5300 is provided by the 1.8V operating voltage generated by itself. The digital 1.8V and analog 1.8V power supplies are isolated by a magnetic bead and 10uF and 0.1uF filter capacitors are added to the power output line.

[0041] At the same time, the MCU chip is connected to the FPGA through the parallel port to simulate the MVB signal and provide an MVB test interface to the outside. The FPGA is an A3PN060 chip with 60K gates, 18kbits RAM, 4 4608-bit blocks, 2 I / O groups, and 96 maximum user I / Os.

[0042] The MCU chip communicates with the serial port chip through its own parallel port. The serial port chip uses CH438. CH438 is an 8UART chip that contains eight asynchronous serial ports compatible with 16C550 or 16C750. It supports a communication baud rate of up to 4Mbps and can complete the expansion of parallel port to serial port. It is used for RS485, RS422, and RS232 communication with the device under test.

[0043] The MCU chip communicates with the signal generating chip through SPI. The signal generating chip uses AD9837A to generate an audio signal, which is amplified by an operational amplifier and output through an external interface for use by the device under test.

[0044] The MCU chip uses three serial ports, two of which are converted to 232 communication through the chip MAX232, which are used for the mainboard to communicate within the system and control the programmable power supply and electronic load.

[0045] The MCU chip has its own Ethernet MAC controller, which can be connected to an external PHY chip (DP83848I) through the RMII interface to expand 100M Ethernet for communication with network switches.

[0046] The MCU chip uses two GPIO pins as cable ID detection. According to the binary coding rules, it can support four ID detections. The address line is pulled up at the interface. By connecting different devices to be tested, the level changes to identify the cable ID, which is used to distinguish the device to be tested and the test function.

[0047] To meet the requirements of intelligent maintenance of factory information, the MCU chip uses I 2 C interface external storage chip, the storage chip uses MC24C02 memory, can read and write system name, hardware version, device number, factory date and other identification through instructions. 2 C interface communicates with the IO expansion chip. The chip uses CH422. CH422 can provide 8 bidirectional input and output pins and 4 general output pins to complete IO expansion and complete the input and output functions of external switch signals.

[0048] MCU chip through I 2 The C interface is connected to an external temperature monitoring chip, which is TMP75. The MCU chip is connected to the debugging interface through the USART interface for debugging and printing system information. The MCU chip is connected to the programming interface through the SWD interface for chip program burning, which is implemented using the Xifei 2001S-05P socket. The MCU chip is connected to the clock circuit through the OSC interface to provide a clock signal for the motherboard. The MCU chip is also connected to a reset circuit and a power decoupling circuit.

[0049] The MCU chip uses 4 GPIO pins as system status indication pins, and adopts current sinking design. When the pin state is low, the corresponding indicator light is on, and when the pin state is high, the indicator light is off. There are 4 GPIO pins reserved as key input interfaces and 4 GPIO pins as indication output interfaces.

[0050] (2) Interface unit

[0051] 2.1 External Interface

[0052] like Figure 3 As shown, the external interface is a 48-pin socket 09062486834222, which is used to connect the device under test. It includes 3 RS485 communications, 2 RS422 communications, 1 RS232 communication, 2 CAN communications, 1 NET communication, 1 audio output, 1 MVB signal, 2 switch inputs and 8 switch output signals. It also provides cable ID detection to identify the device under test and the required test functions.

[0053] The interface unit also includes RS485 chip, RS422 chip, RS232 chip, CAN chip and isolation chip. The MVB signal is simulated by FPGA and MAX3088 chip communication. The working voltage of MAX3088 chip is 5V and the maximum communication rate is 10Mbps. The 3-way RS485 communication part of the interface is connected to the serial port chip (CH438) through 3 RS485 chips and 3 isolation chips. The RS485 chip is MAX485, which is a half-duplex device with an operating voltage of 5V and a baud rate of up to 2.5Mbps. The 2-way RS422 communication part of the interface is connected to the serial port chip (CH438) through 2 RS422 chips and 2 isolation chips. The RS422 chip uses ISL8488, which is a full-duplex device with an operating voltage of 5V and a baud rate limit of 0.25Mbps. The RS232 communication part of the interface 1 is connected to the serial port chip (CH438) through an RS232 chip and an isolation chip. The RS232 chip uses the MAX232 chip, with an operating voltage of 5V and a baud rate of up to 200kbps. The CAN communication part of the interface 2 is connected to the MCU through two CAN chips. The CAN chip uses the SN65HVD230D, with an operating voltage of 3.3V and a baud rate of up to 1Mbps. The NET communication part of the interface 1 is connected to the network chip (W5300); the audio output part of the interface 1 is connected to the signal generation chip (AD9837A) through an operational amplifier.

[0054] In addition, in order to meet the isolation design requirements, the isolation chips selected are Rongpai isolation chips π140U60, π131U60, π122U31, etc. The main differences are the number of channels and channel directions.

[0055] The interface's 2-way switch input and 8-way switch output signal parts are connected to the IO expansion chip (CH422) through optocouplers. They are mainly used for switch input and output detection of the device under test. The switch part is isolated by optocoupler MOS.

[0056] The interface cable ID detection pins have fixed pull-up and pull-down resistors, and the interface is directly connected to the IO pins of the MCU chip. When different devices under test are connected, the levels of these IO pins will change, which is used to implement the ID detection of the device under test.

[0057] 2.2 Internal Interface

[0058] like Figure 3 As shown in the figure, the internal interface includes 3 DB9 sockets and 1 RJ45 socket. The DB9 socket mainly realizes RS232 and serial port communication between the mainboard and the programmable power supply and electronic load. Two RS232 channels are used to control the output of the programmable power supply, and the other channel uses TTL level output to control the load size. Each channel and these three channels are isolated from the mainboard. The RJ45 socket realizes the communication between the mainboard and the network switch.

[0059] The interface unit circuit must include necessary electrical safety protection, including but not limited to TVS tubes, varistors, gas discharge tubes, etc.

[0060] (3) PHY unit

[0061] The PHY unit completes the communication between the mainboard and the network switch. Figure 4 As shown, the PHY unit uses TI's DP83848I chip, which has industrial-grade temperature, good network consistency, 3.3V working power supply, and supports both MII and RMII interfaces. In this example, the DP83848I communicates with the MCU chip using the RMII interface. At the same time, in order to enhance the network's anti-interference ability, an external network ESD and network transformer are connected to the backplane bus to achieve network communication with the MCU chip.

[0062] In order to conveniently check the communication status of the board, connection and data transmission indicators are preset, which can intuitively show the connection and communication status between the current board and other bottom board network devices. The LINK indicator is always on to indicate that the network connection is successful, and the ACT indicator flashes to indicate that data is currently being sent or received.

[0063] In addition, to ensure that the chip can work reliably, the reset pin is connected to an external voltage monitoring chip and also to the output pin of the MCU chip. When communication is abnormal, the MCU chip can perform a reset process. Figure 5 and Figure 6 The power-on and reset timing of DP83848I is given. In addition, DP83848I is a current-driven type, and the impedance matching of the network differential line pair must be paid attention to. The recommended circuit of the network interface is as follows Figure 7 shown.

[0064] Optionally, the PHY chip reset uses a power failure detection chip to perform power detection, and the hardware circuit provides a reset signal. The chip action control is connected to the MCU chip through an IO, and can be controlled by the MCU chip to reset according to the command. Figure 8 The PHY chip reset control circuit is given.

[0065] The software is implemented using Ethernet layered design. The PHY chip DP83848 implements the physical layer, the MAC controller of the MCU chip implements the data link layer, and the LWIP lightweight TCP / IP protocol stack is transplanted to implement the functions of the network layer and transport layer. The application layer is implemented according to business requirements and communication protocols.

[0066] (4) Power supply unit

[0067] like Fig. 9 As shown, the mainboard is powered by the power supply interface and converted into various voltages to power the mainboard; at the same time, the mainboard is designed with a switching circuit, which is controlled by the MCU chip. When two circuit-controlled power supplies are input, the MCU chip determines which one is used to power the device under test and which one is used as the switch high level according to the condition of the device under test. The power supply interface is an 8-pin interface, using the "connector KF2EDGKRM-3.5 2*4".

[0068] The working power supply of the mainboard is the DC12V power supply input by the power supply interface, which is connected in series with an anti-reverse polarity diode (ss34) and a self-recovery fuse (1A, model SMD2920B100TF) to prevent the power short circuit from affecting other units, and is connected to SMBJ14CA for overvoltage protection; then an LC filter circuit is connected in series.

[0069] The working voltage 12V power supply is divided into 5 channels: 1 channel power supply is converted into 3.3V through the SY8120I power chip to provide working voltage for MCU, FPGA, PHY and peripheral circuits, among which the working voltage of PHY and peripheral circuits is controlled by the MCU chip through MOS tubes.

[0070] The other 4 power supplies are converted to 5V by the IB1205XT-1WR3 power chip, which can provide a maximum current of 200mA. One of them is used to power external interfaces (RS485, RS422, RS232), and the other three are used to power programmable power and electronic load control interfaces (each needs to be isolated). One of the 5V is converted to ±12V to power the operational amplifier INA134 for audio output amplification.

[0071] Switching circuit: The switching circuit is implemented by relays, which are used to distribute the input program-controlled power supply voltage, determine the power supply of the device under test and the high-level output of the switch quantity. The relay uses G6B-2114P-US, with a maximum current of 5A, but the supported voltage is AC 250VAC or 30VDC, so when switching, you need to disconnect the power supply first, and switching with power on is not allowed.

[0072] Based on the above vehicle-mounted device host testing system, this embodiment also provides a vehicle-mounted device host testing method, which includes the following steps:

[0073] Step S101: Initialization of mainboard hardware and software resources.

[0074] After the mainboard is powered on, it will first initialize the system clock, GPIO, FSMC, SPI, timer, serial UART, RS485 and CAN communication interface, network interface, external interrupt, external W5300, read chip ID, read chip FLASH space size, watchdog, etc.

[0075] Step S102, the MCU chip drives an LED indicator on the panel to indicate the program running status. The timer is set to detect the LED status every 500ms. When the program runs normally, the LED indicator flashes at a frequency of 1Hz. The working status of the LED indicator is shown in Table 1.

[0076] Table 1

[0077]

[0078] Step S103: The test system performs cable ID detection, supplies power to the device under test after the detection cable is correctly connected, and identifies the device under test. The host computer matches the required test scenario according to the type of the device under test and provides the data required for the test.

[0079] Step S104: After the test system receives the data from the host computer through the internal interface, it performs data verification. After the verification is passed, the data is parsed to obtain the relevant parameters for the test. The first step is to initialize the relevant communication interface according to the test data interface type and number in the data frame. The second step is to update the time length and data transmission frequency of the interface test. The third step is to temporarily store the data used for the test. After the analysis is completed, the detection and transmission are completed in the main loop.

[0080] Step S105: The test system checks whether each port has data to be sent out according to the result of communication with the host computer. If there is data to be sent out, it will be sent. After sending, the internal interface will be used to synchronously send the data content sent out to the host computer for the host computer to verify whether the data sent by the test is consistent with the data received by the device under test and transferred to the host computer. The process is as follows: Fig.10 shown.

[0081] Furthermore, when the external interface receives business data, it is cached locally, and in the main loop, it is checked whether each port has received the business data. If the business data is received, it is sent to the host computer via UDP.

[0082] The test system can provide several tests for the device under test: pressure test of power adaptability range, pressure test of interface data volume, interface load size test, and frequent power on and off test. It can also calculate the dynamic consumption of the device based on the relevant test process data. The test data is fed back to the host computer, which generates a detailed test report.

[0083] The preferred embodiments for implementing the present invention have been described in detail above, but it should be understood that the role of these embodiments is only to exemplify, and is not intended to limit the scope, applicability or configuration of the present invention in any way. The protection scope of the present invention is defined by the attached claims and their equivalents. A person of ordinary skill in the art can make many changes to the above embodiments under the guidance of the present invention, and these changes all fall within the protection scope of the present invention.

Claims

1. A vehicle-mounted device host testing system, characterized in that: It comprises a chassis and a mainboard, a programmable power supply and an electronic load inside the chassis, wherein the circuit structure on the mainboard comprises a power supply unit, a main control unit, an interface unit and a PHY unit; the power supply unit realizes voltage conversion to supply power to the mainboard, the programmable power supply and the electronic load, and at the same time, a voltage is introduced by the programmable power supply to provide a high-level output for the switch output signal; the main control unit is connected with the programmable power supply and the electronic load, and adjusts the power supply voltage, current and load size of the device under test, and has the function of collecting and storing information of the working temperature; the interface unit comprises an external interface provided by the system to the device under test and an internal interface provided by the system to the system, the main control unit communicates with the device under test through the external interface, and the main control unit is connected to the programmable power supply, the electronic load and the network switch through the internal interface; the PHY unit provides a bottom plate 100M network bus for the mainboard.

2. The vehicle-mounted device host test system according to claim 1, characterized in that: The main control unit includes an MCU chip, the MCU chip is connected to the debugging interface through the USART interface, the MCU chip is connected to the programming interface through the SWD interface, the MCU chip is connected to the clock circuit through the OSC interface, and the MCU chip is connected to the I 2 The C interfaces are respectively connected to an external storage chip, a temperature monitoring chip and an IO expansion chip, and the MCU chip is also connected to a reset circuit and a power decoupling circuit.

3. The vehicle-mounted device host test system according to claim 2, characterized in that: The MCU chip is connected to the FPGA, serial port chip and network chip through its own parallel port; the MCU chip communicates with the signal generating chip through SPI; the MCU chip uses 4 GPIO pins as system status indication pins, and reserves 4 GPIO pins as key input interfaces and 4 GPIO pins as indication output interfaces; and uses 2 GPIO pins as cable ID detection.

4. The vehicle-mounted device host test system according to claim 2, characterized in that: The MCU chip is externally connected to the PHY unit via the RMII interface.

5. The vehicle-mounted device host testing system according to claim 3, characterized in that: The external interface of the interface unit is a 48-pin socket 09062486834222, including 3 RS485 communications, 2 RS422 communications, 1 RS232 communication, 2 CAN communications, 1 NET communication, 1 audio output, 1 MVB signal, 2 switch inputs and 8 switch output signals, and provides cable ID detection.

6. The vehicle-mounted device host test system according to claim 5, characterized in that: The interface unit also includes an RS485 chip, an RS422 chip, an RS232 chip, a CAN chip and an isolation chip. The MVB signal is simulated and realized by communicating with the MAX3088 chip using FPGA; the 3-way RS485 communication part of the interface is connected to the serial port chip through 3 RS485 chips and 3 isolation chips; the 2-way RS422 communication part of the interface is connected to the serial port chip through 2 RS422 chips and 2 isolation chips; the 1-way RS232 communication part of the interface is connected to the serial port chip through 1 RS232 chip and 1 isolation chip; the 2-way CAN communication part of the interface is connected to the MCU chip through 2 CAN chips; the 1-way NET communication part of the interface is connected to the network chip; the 1-way audio output part of the interface is connected to the signal generation chip through an operational amplifier; the 2-way switch input and 8-way switch output signal parts of the interface are connected to the IO expansion chip through an optical coupler; and the interface cable ID detection part is directly connected to the GPIO pin of the MCU chip.

7. The vehicle-mounted device host testing system according to claim 2, characterized in that: The internal interface of the interface unit includes three DB9 sockets and one RJ45 socket. The two DB9 sockets connected to the programmable power supply are connected to the MCU chip through the RS232 chip and the isolation chip. The one DB9 socket connected to the electronic load is connected to the MCU chip through the isolation chip. The one RJ45 socket connected to the network switch is connected to the PHY unit.

8. The vehicle-mounted device host testing system according to claim 1, characterized in that: The PHY unit uses the DP83848I chip.

9. The vehicle-mounted device host testing system according to claim 1, characterized in that: The power supply unit includes a SY8120I power chip and an IB1205XT-1WR3 power chip. The DC12V power supply is divided into five routes. One route is converted into 3.3V by the SY8120I power chip, and the other four routes are converted into 5V by the IB1205XT-1WR3 power chip. The power supply unit also includes a switching circuit, which uses a relay to distribute the two-way controlled power supply.

10. A vehicle-mounted device host testing method, characterized in that: Based on the vehicle-mounted device host test system according to any one of claims 1 to 9, the method comprises: Initialization of motherboard hardware and software resources; One LED indicator on the MCU chip driver panel is used to indicate the program running status; The test system performs cable ID detection, and after the detection cable is correctly connected, it supplies power to the device under test and identifies the device under test. The host computer matches the required test scenario according to the type of device under test and provides the data required for the test. After receiving the data from the host computer through the internal interface, the test system performs data verification. After the verification passes, the data is parsed to obtain the relevant parameters for the test. After the parsing is completed, the test is sent in the main loop; The test system checks whether each port currently has data to be sent out based on the results of communication with the host computer. If there is data to be sent out, it will be sent. After sending, the internal interface will be used to synchronously send the content of the data sent out to the host computer for the host computer to verify whether the data sent by the test is consistent with the data received by the device under test and transferred to the host computer.