A TBOX power management automated test device, system and method
Through automated testing equipment, the combination of SOC main control chip and MCU auxiliary control chip is used to realize automated testing of TBOX power management, solving the problems of low manual testing efficiency and insufficient data, and improving testing efficiency and data integrity.
Patent Information
- Application Number
- CN202210067045.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-01-20
AI Technical Summary
In the existing technology, TBOX power management testing relies on manual operation, resulting in low test efficiency, incomplete scene coverage, insufficient test pressure and insufficient data, making it difficult to accurately count the power consumption and switching time of each power mode.
An automated test equipment including a SOC main control chip and an MCU auxiliary control chip is designed. It supports online and offline testing, communicates with the computer through a USB interface, and integrates 4G network modules, CAN and CANFD interfaces, multi-channel power control switch interfaces and simulations. Signal detection interface to realize automated full use case stress testing.
It realizes automated full-use case stress testing, improves testing efficiency, ensures full coverage of power management scenarios, adjustable test pressure, and provides sufficient test conclusion data.
Smart Images

Figure CN114416568B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of automatic testing of power management, and more specifically relates to a TBOX power management automatic testing device, system and method. Background Art
[0002] TBOX is a basic terminal for vehicle communication. In addition to providing a network for the vehicle, it also needs to communicate with the factory's backend server to realize functions such as remote vehicle control and vehicle condition query. In order to improve the response speed of remote vehicle control and vehicle condition query, TBOX power management has several levels of power modes, such as working mode, long connection mode, sleep mode, and shutdown. The power consumption of each mode of TBOX is different. In order to ensure that TBOX does not cause vehicle power feeding, it is necessary to switch between the various power modes of TBOX stably according to the design. At present, the main way to test TBOX power management is through manual testing. Since the entry and exit conditions and maintenance time of each power mode of TBOX are different, switching between modes requires a long wait. It is difficult to quickly cover all TBOX power management use cases through manual testing. In addition, manual testing cannot accurately count the power consumption of TBOX in each mode, the switching time of each mode, and the duration of each mode. Therefore, manual testing of TBOX power management has the following disadvantages: complex test bench, extremely low efficiency, incomplete scene coverage, low test pressure, and insufficient test conclusion data. Summary of the invention
[0003] To solve the above problems, the present invention provides a TBOX power management automated testing device, system and method, which can realize automated full-case stress testing of TBOX power management functions. The testing method supports online testing and offline testing, and has the advantages of simple test bench, high test efficiency, full coverage of power management scenarios, adjustable test pressure and sufficient test conclusion data.
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is as follows: a TBOX power management automatic test equipment, including a SOC main control chip and an MCU auxiliary control chip connected thereto; also including a display screen interface, a USB interface, and a communication interface connected to the SOC main control chip, an input power interface connected to the SOC main control chip and the MCU auxiliary control chip respectively through a power supply circuit, a CAN interface connected to the MCU auxiliary control chip through a CAN circuit, a switch interface connected to the MCU auxiliary control chip through a switch circuit, an analog input interface connected to the MCU auxiliary control chip through an analog input detection circuit, and an output power interface connected to the MCU auxiliary control chip through an output power detection circuit, wherein the output power detection circuit is also connected to the power supply circuit.
[0005] As an optimization, a 4G network module is also included, and the 4G network module is built into the SOC main control chip or externally mounted on the SOC main control chip.
[0006] As an optimization, the communication interface includes one or more of an I2C interface, an SPI interface, a UART interface and a USB communication interface.
[0007] As an optimization, the switch circuit uses a relay or a MOS tube as a switch control element, and adds an optical coupler isolation to the switch circuit.
[0008] As an optimization, the CAN circuit includes a CAN circuit and a CANFD circuit.
[0009] As an optimization, the power circuit is integrated with a power management chip, and the MCU is connected to the power management chip via SPI or I2C.
[0010] Based on the above test equipment, the present invention also provides a TBOX power management automatic test system, including the above test equipment and,
[0011] The display is a touch screen and is connected to the display interface;
[0012] A test computer or a test USB flash drive is connected to the USB interface;
[0013] A power supply connected to the input power interface;
[0014] The device under test is connected to the communication interface, the switch interface, the analog input interface and the output power interface respectively.
[0015] Based on the above test equipment and test system, the present invention also provides a TBOX power management automatic test method, comprising the following steps:
[0016] S1, the test device obtains the test case from the test computer or test USB flash drive in the test system;
[0017] S2, the test device executes the test case online or offline, and controls various states of the device under test according to the test conditions of the test case;
[0018] S3. Detect and obtain the status data of the device under test, and compare it with the expected results of the test case to obtain the test results.
[0019] As an optimization, S2 controls multiple states of the device under test, including power state, switch state, CAN state, and phone message state.
[0020] As an optimization, the state data of the device under test detected in S3 includes the power management state, which includes power supply power, analog signal state, and internal power mode state.
[0021] Compared with the prior art, the present invention has the following advantages:
[0022] a. Communicate with the host computer program via USB, support host computer online testing or import test cases for offline testing;
[0023] b. Import test cases through USB flash drive to perform offline testing and export offline test results;
[0024] c. Provide a controllable power output interface to power the device under test;
[0025] d. Integrated output power consumption detection to monitor the power consumption of the device under test;
[0026] e. Integrated 4G module, supports test phone text messages to wake up the device under test;
[0027] f. Provide CAN and CANFD interfaces, support CAN wake-up test of the device under test;
[0028] g. Provide USB, SPI, I2C, and UART communication interfaces to communicate with the device under test and obtain the power mode status of the device under test;
[0029] h. Provide multiple control switch interfaces with different powers, support testing ACC, ECALL and other hard-wired switches to wake up the device under test, and support controlling the power switch of the device under test;
[0030] i. Provide multiple analog signal detection interfaces with different voltages, supporting the detection of multiple analog signals of the device under test;
[0031] The test bench can realize the TBOX power management function of the full-case test of the test bench automation. The test method supports online testing and offline testing. It has the advantages of simple test bench, high test efficiency, full coverage of power management scenarios, adjustable test pressure and sufficient test conclusion data. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a test principle block diagram of the present invention;
[0033] Figure 2 It is a system block diagram of the present invention. DETAILED DESCRIPTION
[0034] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0035] Example: See Figure 1-Figure 2 ,
[0036] A TBOX power management automatic test device comprises a SOC main control chip and an MCU auxiliary control chip connected thereto; further comprising a display screen interface, a USB interface, and a communication interface connected to the SOC main control chip, an input power interface respectively connected to the SOC main control chip and the MCU auxiliary control chip through a power circuit, a CAN interface connected to the MCU auxiliary control chip through a CAN circuit, a switch interface connected to the MCU auxiliary control chip through a switch circuit, an analog input interface connected to the MCU auxiliary control chip through an analog input detection circuit, and an output power interface connected to the MCU auxiliary control chip through an output power detection circuit, wherein the output power detection circuit is also connected to the power circuit.
[0037] Based on the above test equipment, the present invention also provides a TBOX power management automatic test system, including the above test equipment and,
[0038] The display is a touch screen and is connected to the display interface;
[0039] A test computer or a test USB flash drive is connected to the USB interface;
[0040] A power supply connected to the input power interface;
[0041] The device under test is connected to the communication interface, the switch interface, the analog input interface and the output power interface respectively.
[0042] Based on the above test equipment and test system, the present invention also provides a TBOX power management automatic test method, which is characterized by comprising the following steps:
[0043] S1, the test device obtains the test case from the test computer or test USB flash drive in the test system;
[0044] S2, the test device executes the test case online or offline, and controls various states of the device under test according to the test conditions of the test case;
[0045] S3. Detect and obtain the status data of the device under test, and compare it with the expected results of the test case to obtain the test results.
[0046] Specifically, the test system of the present invention includes a test computer or U disk, a power supply, a display, an automated test equipment, and a device under test; the hardware of the automated test equipment mainly includes internal main modules and external hardware interfaces, the internal main modules include a 4G network module, a SOC main control chip, an MCU auxiliary control chip, a power circuit, an analog input detection circuit, a switch circuit, a CAN circuit, and an output power detection circuit. The actual form of the 4G network module can be built into the SOC or externally mounted on the SOC. The switch circuit can use a relay or a MOS tube as a switch control element, and the CAN circuit includes a CAN circuit and a CANFD circuit; the external hardware interface includes a display screen interface, a user-end USB interface, an input power interface, an analog input interface, a switch interface, an output power interface, a CAN interface, and a communication interface of the device under test. The CAN interface includes a CAN interface and a CANFD interface. The communication interface of the device under test includes an I2C interface, an SPI interface, a UART interface, and a USB interface. All common communication interfaces are reserved, and the actual use is subject to the communication interface of the device under test.
[0047] When in use, the automated test equipment is connected to the test host software or USB flash drive in the test computer to obtain test cases. When executing test cases, the various states of the device under test are controlled according to the test conditions of the test cases. The controllable states include power state, switch state, CAN state, and phone message state. The power management mode switching conditions of the device under test are met, and then the power management state of the device under test is detected. The detectable states include power supply power, analog signal state, and internal power mode state. The internal power mode state needs to be obtained through communication with the device under test. Finally, the power management state of the device under test is compared with the expected result of the test case to obtain the test result.
[0048] In this embodiment, the test system includes a test computer or a test USB flash drive, the test computer has built-in test host computer software, automated test equipment, a display, and a device under test. The test computer serves as the operating environment for the test host computer software and is connected to the automated test equipment through a USB harness, the USB flash drive is connected to the USB interface of the automated test equipment, the automated test equipment display is connected to the display interface of the automated test equipment through an LVDS or HDMI harness, the automated test equipment supplies power to the device under test through an output power interface, the switch harness to be tested of the device under test is connected to the switch interface of the automated test equipment, the analog signal harness to be tested of the device under test is connected to the analog input interface of the automated test equipment, the CAN signal harness of the device under test is connected to the CAN interface of the automated test equipment, and the communication interface harness of the device under test is connected to the communication interface of the automated test equipment, so as to realize power supply, communication, control, and detection between various components.
[0049] After the test computer is connected to the automated test equipment via a USB harness, the test host computer software can either control the automated test equipment online for testing or send test cases to the automated test equipment, which will then perform offline testing. When the online test is completed, the test host computer software can automatically generate a test report. When the offline test is completed, the test computer and the automated test equipment must be connected via a USB harness, and the test results must be exported from the automated test equipment to the test computer, which will then be analyzed and reported by the test host computer software.
[0050] The U disk is used for offline testing of the automated test equipment without the test computer, and the operation steps are as follows: 1. Save the test case to the test U disk; 2. Insert the test U disk into the USB interface of the automated test equipment; 3. (Method 1) The automated test equipment directly loads the test case in the test U disk; 3. (Method 2) Import and copy the test case in the test U disk to the internal storage space of the automated test equipment, and the automated test equipment loads the test case in the internal storage space; 4. After the test is completed, export the test results from the automated test equipment and save them to the test U disk; 5. Connect the test U disk to the test computer, use the test host computer software to analyze the test results, and generate a test report.
[0051] The automated testing equipment display provides a touch display function for the automated testing equipment.
[0052] The automated testing equipment is a separate hardware device, which internally includes a 4G network module, a SOC, an MCU, a power supply circuit, an analog input detection circuit, a switch circuit, a CAN circuit, and an output power detection circuit.
[0053] The actual form of the 4G network module can be built into the SOC or externally mounted on the SOC, and is used to support the automated test equipment to make calls and send text messages to the device under test.
[0054] The SOC serves as the main control chip of the automated test equipment, runs the Android or Linux system, and implements the main functional logic of the test equipment, including control of the 4G network module, communication with the test host computer software, test U disk file reading and writing, communication with the MCU, communication with the device under test through SPI, I2C, UART, USB, test case execution and test result generation, and providing UI interface display and operation.
[0055] The MCU, as an auxiliary control chip of the automated test equipment, runs a real-time operating system (such as RTOS) or a bare metal program to realize functions such as power control, power detection, CAN signal reception and transmission, switch circuit control, analog signal detection, and communication with the SOC. The power control is realized through the power management chip. The MCU controls the power management chip through the SPI or I2C interface to realize the control of the SOC power supply and output power. The MCU realizes power detection through a high-precision ADC combined with a power detection circuit. The MCU realizes the reception and transmission of CAN / CANFD signals through the CAN peripheral. The MCU controls relays or MOS tubes through GPIO to realize switch control. The MCU realizes analog signal detection through the ADC. The MCU communicates with the SOC through the SPI, UART or I2C communication interface.
[0056] The communication between the SOC and the MCU needs to realize the control of the SOC over the MCU functions and the acquisition of various states of the MCU, so as to ensure that the test main program running on the SOC can control the device under test and obtain the state of the device under test.
[0057] The power supply circuit includes a 220V AC input power supply to DC power supply circuit, a step-down voltage stabilization circuit of each chip in the circuit, and an output power supply control circuit. The output power supply can control the output voltage and current.
[0058] The analog input detection circuit supports detection of multiple analog signals with different voltages.
[0059] The switch circuit can use relays or MOS tubes as switch control elements to provide support for different power switch controls, and the circuit is added with optical coupler isolation.
[0060] The CAN circuit includes a CAN circuit and a CANFD circuit to support devices under test with different CAN interface requirements.
[0061] The output power detection circuit is connected to the output power supply, and high-precision voltage and current detection of the output power supply is achieved through a high-precision ADC and a current and voltage detection circuit.
[0062] The automated test equipment provides a display screen interface, a user USB interface, a power interface, an analog input interface, a switch interface, an output power interface, a CAN interface, and a communication interface of a device under test. The display screen interface may be an HDMI or LVDS interface. The user USB interface includes two USB interfaces connected to a test computer and a U disk. The power interface is used to power the device. The analog input interface is used to access analog signals of the device under test. The switch interface is used to access switches such as the power supply, ACC, and ECALL of the device under test. The CAN interface includes a CAN interface and a CANFD interface for accessing the CAN bus of the device under test. The communication interface of the device under test includes an I2C interface, an SPI interface, a UART interface, and a USB interface. According to the actual situation of the device under test, the device under test only needs to be connected to one communication interface of the automated test equipment. The automated test equipment establishes communication with the device under test through the communication interface. The device under test needs to cooperate internally to implement the logic of feedback of the power mode through the communication interface. The automated test equipment determines the test result based on the power mode status feedback by the device under test and the test case currently being executed.
[0063] The present invention,
[0064] a. Communicate with the host computer program via USB, support host computer online testing or import test cases for offline testing;
[0065] b. Import test cases through USB flash drive to perform offline testing and export offline test results;
[0066] c. Provide a controllable power output interface to power the device under test;
[0067] d. Integrated output power consumption detection to monitor the power consumption of the device under test;
[0068] e. Integrated 4G module, supports test phone text messages to wake up the device under test;
[0069] f. Provide CAN and CANFD interfaces, support CAN wake-up test of the device under test;
[0070] g. Provide USB, SPI, I2C, and UART communication interfaces to communicate with the device under test and obtain the power mode status of the device under test;
[0071] h. Provide multiple control switch interfaces with different powers, support testing ACC, ECALL and other hard-wired switches to wake up the device under test, and support controlling the power switch of the device under test;
[0072] i. Provide multiple analog signal detection interfaces with different voltages, supporting the detection of multiple analog signals of the device under test;
[0073] The test bench can realize the TBOX power management function of the full-case test of the test bench automation. The test method supports online testing and offline testing. It has the advantages of simple test bench, high test efficiency, full coverage of power management scenarios, adjustable test pressure and sufficient test conclusion data.
[0074] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.
Claims
1. A TBOX power management automated test device, characterized in that: Including, SOC main control chip and MCU auxiliary control chip connected to it; Also includes, Display screen interface connected to the SOC main control chip; USB interface, used to communicate with the computer host program via USB, supporting host computer online testing or importing test cases for offline testing, where test cases are imported through a USB flash drive for offline testing and exporting offline test results; A communication interface, used to communicate with the device under test and obtain the power mode status of the device under test; An input power interface connected to the SOC main control chip and the MCU auxiliary control chip respectively through a power circuit; The CAN interface connected to the MCU auxiliary control chip through the CAN circuit is used to support the test CAN wake-up of the device under test; The switch interface connected to the MCU auxiliary control chip through the switch circuit is used to support the test of ACC and ECALL hard-line switches to wake up the device under test and support the control of the power switch of the device under test; The analog input interface connected to the MCU auxiliary control chip through the analog input detection circuit is used to support the detection of multiple analog signals of the device under test; An output power interface connected to the MCU auxiliary control chip through an output power detection circuit is used to power the device under test; wherein the output power detection circuit is also connected to the power supply circuit to monitor the power consumption of the device under test; It also includes a 4G network module, which is built into the SOC main control chip or externally mounted on the SOC main control chip, and is used to support the test phone text message to wake up the device under test.
2. A TBOX power management automated test device according to claim 1, characterized in that: The communication interface includes one or more of an I2C interface, an SPI interface, a UART interface and a USB communication interface.
3. The TBOX power management automated test equipment according to claim 1, characterized in that: The switch circuit uses a relay or a MOS tube as a switch control element, and an optical coupler is added to the switch circuit.
4. The TBOX power management automated test equipment according to claim 1, characterized in that: The CAN circuit includes a CAN circuit and a CANFD circuit.
5. The TBOX power management automated test equipment according to claim 1, characterized in that: The power circuit is integrated with a power management chip, and the MCU is connected to the power management chip through SPI or I2C communication.
6. A TBOX power management automatic test system, characterized in that: comprising a test device as claimed in any one of claims 1 to 5 and, The display is a touch screen and is connected to the display interface; A test computer or a test USB flash drive is connected to the USB interface; A power supply connected to the input power interface; The device under test is connected to the communication interface, the switch interface, the analog input interface and the output power interface respectively.
7. A TBOX power management automated testing method, characterized in that: The following steps are included: S1. The test device according to any one of claims 1 to 5 obtains a test case from a test computer or a test USB flash drive in the test system according to claim 6; S2, the test device executes the test case online or offline, and controls various states of the device under test according to the test conditions of the test case; S3. Detect and obtain the status data of the device under test, and compare it with the expected results of the test case to obtain the test results.
8. A TBOX power management automated testing method according to claim 7, characterized in that: S2 controls the various states of the device under test, including power state, switch state, CAN state, and phone message state.
9. A TBOX power management automated testing method according to claim 7, characterized in that: The state data of the device under test detected in S3 includes a power management state, which includes power supply power, analog signal state and internal power mode state.
Citation Information
Patent Citations
Automatic GNSS (global navigation satellite system) vehicle-mounted terminal testing device
CN104579510A
Hardware-based remote battery management system and method
CN107369857A
T-Box (Telematics-Box) automatic testing method and system
CN108566323A
Monitoring system and method for power battery
CN110861530A
Test device and test method for vehicle body control product
CN110865634A
