Automated on-board data testing apparatus and method

By designing an automated testing device for vehicle data, and utilizing the collaborative work of a host computer, bus data collector, T-BOX, vehicle cloud server, and connected platform, the problems of human error and low coverage in vehicle T-BOX data testing were solved, achieving efficient and accurate test results.

WO2026041011A1PCT designated stage Publication Date: 2026-02-26ZHIZI AUTOMOTIVE TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/115658
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-08-20
Filing Date
2025-08-19
Publication Date
2026-02-26

AI Technical Summary

Technical Problem

In existing technologies, the consistency and accuracy testing of CAN bus data and platform parsing data of vehicle-mounted T-BOX mainly relies on manual methods, which suffers from human error, low test coverage, and low efficiency.

Method used

An automated testing device for vehicle data was designed, comprising a host computer, a bus data acquisition unit, a T-BOX, a vehicle cloud server, and a connected platform. Through the collaborative work of these components, automated testing of data field data is achieved, including data combination, parsing, assertion comparison, and generation of test reports.

Benefits of technology

It improves the accuracy and efficiency of testing, reduces the error rate caused by human factors, increases test coverage, can quickly locate problems, and generate automatically generated test reports.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025115658_26022026_PF_FP_ABST
    Figure CN2025115658_26022026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of automated data testing. Disclosed are an automated on-board data testing apparatus and method. In the apparatus, a T-BOX combines data of all data fields to obtain a T-BOX combined code stream; a connected vehicle platform parses the T-BOX combined code stream to obtain platform parsing data; an upper computer performs auto-parsing on the T-BOX combined code stream to obtain upper-computer auto-parsing data; and assertion comparison is performed on the data-field parsing data, the platform parsing data and the upper-computer auto-parsing data, so as to obtain a test report. The problems of manual testing methods being prone to causing human-induced errors during testing, the test coverage being low and the overall testing efficiency being low are solved, the automated testing of on-board data is realized, the accuracy and testing efficiency are improved, and the overall test coverage rate is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Vehicle-mounted data automatic testing device and method

[0001] The present application claims priority to Chinese Patent Application No. 2024111392221, filed on August 20, 2024. The present application incorporates the entirety of the aforementioned Chinese Patent Application. TECHNICAL FIELD

[0002] The present application relates to the field of data automatic testing, in particular to a vehicle-mounted data automatic testing device and method. BACKGROUND

[0003] With the vigorous development of vehicle networking technology, T-BOX (Telematics BOX) as an extremely important part of the vehicle networking system is an intelligent terminal integrating vehicle body network and wireless communication, and plays a connecting role in the interaction and data transmission between vehicle-end data and cloud platform.

[0004] With the widespread application of vehicle-mounted T-BOX, in the commercial vehicle industry, with the continuous development of new energy technology, some driving data and energy consumption data are generally concerned by customers, which puts forward higher requirements for the consistency and accuracy of T-BOX transmitted bus data and platform parsed data. At present, most of the consistency and accuracy testing of CAN bus data-T-BOX-platform parsed data is manual testing, which is prone to human error in the testing process, has low test coverage and low overall test efficiency.

[0005] Therefore, there is an urgent need for a vehicle-mounted data automatic testing method with high test efficiency, high accuracy and high test coverage. SUMMARY

[0006] The purpose of the present application is to provide a vehicle-mounted data automatic testing device and method, which can automatically test data field parsed data, platform parsed data and host computer self-parsed data, avoid human error and low test coverage in manual testing, improve accuracy, and have high test efficiency and test coverage.

[0007] To achieve the above-mentioned purpose, the present application provides the following solutions:

[0008] In a first aspect, the present application provides a vehicle-mounted data automatic testing device, comprising a host computer, a bus collector, a T-BOX, a vehicle cloud server and a networked platform.

[0009] The host computer is configured to send data field data of a local test case to the bus collector; the local test case comprises an automobile bus data identifier, data field data, data field parsed data and a test result.

[0010] The bus collector is configured to send the data field data to the T-BOX.

[0011] The T-BOX is configured to combine all the data field data to obtain a T-BOX combined code stream.

[0012] The vehicle cloud server is configured to receive the T-BOX combined code stream and send the T-BOX combined code stream to the networked platform.

[0013] The networked platform is configured to analyze the T-BOX combined code stream to obtain platform analysis data.

[0014] The host computer is further configured to analyze the T-BOX combined code stream to obtain host computer self-analysis data.

[0015] The host computer is further configured to compare the data field analysis data, the platform analysis data and the host computer self-analysis data by assertion to obtain a test report.

[0016] In a second aspect, the application provides a vehicle-mounted data automatic testing method, comprising:

[0017] Obtaining a local test case; the local test case comprises an automobile bus data identifier, data field data, data field analysis data and a test result.

[0018] Sending all the data field data to the bus collector through the host computer.

[0019] Sending all the data field data to the T-BOX through the bus collector.

[0020] Combining all the data field data through the T-BOX to obtain a T-BOX combined code stream.

[0021] Sending the T-BOX combined code stream to the networked platform through the vehicle cloud server.

[0022] Analyzing the T-BOX combined code stream through the networked platform to obtain platform analysis data.

[0023] Analyzing the T-BOX combined code stream through the host computer to obtain host computer self-analysis data.

[0024] Comparing the data field analysis data, the platform analysis data and the host computer self-analysis data by assertion through the host computer to obtain a test report.

[0025] According to the specific embodiments provided by the application, the following technical effects are disclosed:

[0026] The application provides a vehicle-mounted data automatic test device and method, all data field data are combined through a T-BOX to obtain a T-BOX combined code stream, the T-BOX combined code stream is analyzed through a network connection platform to obtain platform analysis data, the data field analysis data, the platform analysis data and host computer self-analysis data are compared through assertion to obtain a test report, the problems of human error in the test process, low test coverage and low overall test efficiency of the artificial test method are solved, the vehicle-mounted data automatic test is realized, the accuracy and test efficiency are improved, the application only needs to maintain the automatic test case alone, and the test coverage is improved by using most abnormal item cases. BRIEF DESCRIPTION OF DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiments will be briefly introduced below. Obviously, the drawings in the following description only constitute some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0028] Fig. 1 is a functional module schematic diagram of a vehicle-mounted data automatic test device provided by an embodiment of the present application;

[0029] Fig. 2 is a flow schematic diagram of a vehicle-mounted data automatic test method provided by an embodiment of the present application.

[0030] Reference signs: local test case-1; host computer-2; USB connecting line-3; bus collector-4; DB9 connecting line-5; power line bundle-6; AC power supply-7; T-BOX-8; vehicle cloud server-9. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments only constitute some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0032] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application will be further described in detail below with reference to the drawings and specific embodiments.

[0033] In an exemplary embodiment, as shown in Fig. 1, a vehicle-mounted data automatic test device is provided, which includes a host computer 2, a bus collector 4, a T-BOX 8, a vehicle cloud server 9 and a network connection platform.

[0034] The host computer 2 is configured to send the data field data of the local test case 1 to the bus collector 4; the local test case 1 includes a vehicle bus data identifier (i.e., CAN ID), data field data, data field analysis data, and a test result.

[0035] The host computer 2 includes a test case reading tool, a bus data transceiving tool, and a bus data analysis tool.

[0036] The test case reading tool is configured to obtain the local test case 1.

[0037] The bus data transceiving tool is configured to send the data field data to the bus collector 4.

[0038] The bus data analysis tool is configured to analyze the T-BOX 8 combined code stream to obtain host computer self-analysis data. The host computer 2 sends data to obtain the data field data in the local test case 1 and sends the data to the bus collector 4 through python-can.

[0039] The local test case 1 (i.e., simulated bus data) is a data table including a vehicle bus data identifier (CAN ID), data field data, data field analysis data, and a test result. The local test case 1 is an Excel-formatted test case.

[0040] For example, a certain local test case 1 is as follows: the vehicle bus data identifier is 0x1CFF9F27; the data field data is: [0x01, 0x01, 0x01, 0x01, 0x30, 0xCF, 0x8C, 0x00]; the data field analysis data is: [′start′, ′pure electric′, ′parking charging′, ′work′, ′neutral′, ′braking force′, ′driving force′, 36047]; and the analysis result is PASS, indicating that the verification is passed.

[0041] The bus collector 4 sends the data field data to the T-BOX 8. The bus collector 4 (i.e., CAN box) is provided with a USB data line, and the bus collector 4 sends the message data (i.e., data field data) required to be sent during the test through the USB connection. The host computer 2 is in communication connection with the bus collector 4 through the USB connection line 3.

[0042] The T-BOX 8 is configured to combine all the data field data according to a protocol to obtain a T-BOX 8 combined code stream. The T-BOX 8 transmits the T-BOX 8 combined code stream to the vehicle cloud server 9 through Ethernet. The T-BOX 8 is connected to the vehicle cloud server 9 in the form of IP and port, and the T-BOX 8 is provided with one GPS antenna and one 4G antenna and a power line bundle 6 and combines the data field data to be sent.

[0043] The vehicle cloud server 9 is configured to send the T-BOX 8 combined code stream to the networked platform. The networked platform is configured to analyze the T-BOX 8 combined code stream to obtain platform analysis data. The networked platform receives and analyzes the reported bus data according to the written analysis function.

[0044] The host computer 2 is further configured to analyze the T-BOX 8 combined code stream to obtain host computer self-analysis data. The host computer 2 obtains the T-BOX 8 combined code stream from the vehicle cloud server 9 and analyzes it according to the protocol to obtain host computer self-analysis data.

[0045] The host computer 2 is further configured to perform assertion comparison on the data field analysis data, the platform analysis data, and the host computer self-analysis data to obtain a test report.

[0046] The platform analysis data is the analysis of the original data reported by the T-BOX 8 to the vehicle cloud server 9, i.e., the analysis of the T-BOX 8 combined code stream forwarded by the vehicle cloud server 9.

[0047] The host computer self-analysis data is the self-analysis of the T-BOX 8 combined code stream forwarded by the vehicle cloud server 9 according to the protocol, i.e., the analysis of the original data reported by the T-BOX 8 to the vehicle cloud server according to the protocol through encoding. Finally, the data field analysis data, the platform analysis data, and the host computer self-analysis data in the simulated bus data are checked for consistency.

[0048] The assertion comparison on the data field analysis data, the platform analysis data, and the host computer self-analysis data to obtain a test report includes the following steps:

[0049] Consistency checking of the data field analysis data, the platform analysis data, and the host computer self-analysis data to obtain a test result.

[0050] If the test result is consistent, a first test result is output, indicating that the data field analysis data, the platform analysis data, and the host computer self-analysis data are consistent, and the first test result indicates that the current test is passed.

[0051] If the test result is inconsistent, a second test result is output, indicating that the data field analysis data, the platform analysis data, and the host computer self-analysis data are inconsistent. The specific situation can be analyzed from the log. If the host computer self-analysis data and the platform analysis data are consistent and the host computer self-analysis data is inconsistent with the data field analysis data, it is highly likely that the TBOX data combination is incorrect or not uploaded in time. If the host computer self-analysis data and the data field analysis data are consistent and the host computer self-analysis data is inconsistent with the platform analysis data, it is a platform analysis data error. If all three are inconsistent, it indicates that the terminal time correction problem or the platform data update problem causes the inconsistency of the analyzed original code stream. The second test result indicates that the current test is failed.

[0052] The problem component can be quickly located through the above test results.

[0053] The vehicle-mounted data automatic test device further comprises a power module configured to provide DC power, i.e., AC power 7, for the T-BOX 8.

[0054] The bus collector 4 is communicatively connected to the T-BOX 8 through the DB9 connecting line 5.

[0055] The DB9 connecting line 5 is provided with four male heads and two female heads. The two female heads are connected to the bus collector 4, and the four male heads are branched from the two female heads and connected to the CAN line of the T-BOX 8.

[0056] After the data of the T-BOX 8 is uploaded, the consistency of the data at the vehicle end and the cloud end is ensured. The current manual test method is obviously time-consuming and laborious, and it is particularly important to find an automatic test method. Therefore, the accuracy and consistency verification automatic verification is performed in the present application, which can improve the test efficiency and test coverage, greatly reduce the uncertain factors caused by human factors in the manual test process, reduce the error rate of manual test; the final test report can be automatically generated; the problem can be attributed according to the output log, and the problem component can be quickly located.

[0057] In the present application, the test environment and the test steps are as follows:

[0058] Step 1: Prepare a local test case 1 containing CANID, data field data, and data field analysis data in the format of excel.

[0059] Step 2: The host computer 2 is connected to the bus collector 4 through the USB connecting line 3.

[0060] Step 3: The bus collector 4 is connected to the CAN line of the T-BOX 8 power harness 6 through the DB9 connecting line 5.

[0061] Step 4: The positive and negative poles of the T-BOX 8 power harness 6 are connected to the AC power 7.

[0062] Step 5: The host computer 2 sends the data field data of the local test case 1 to the bus collector 4 through the program that has been written.

[0063] Step 6: The bus collector 4 receives the data sent in step 5 and forwards it to the T-BOX 8.

[0064] Step 7: The T-BOX 8 sends the received T-BOX 8 combined code stream to the vehicle cloud server 9 through Ethernet.

[0065] Step 8: The vehicle cloud gateway (i.e., the vehicle cloud server 9) forwards the received T-BOX 8 combined code stream to the networked platform.

[0066] Step 9: The networked platform parses the received T-BOX 8 combined code stream to obtain platform parsed data.

[0067] Step 10: The host computer 2 parses the T-BOX 8 combined bus data through the prepared program to obtain host computer self-parsed data.

[0068] Step 11: The host computer 2 obtains the data field parsed data in the use case through the prepared program.

[0069] Step 12: The host computer 2 compares the platform parsed data, the host computer self-parsed data, and the data field parsed data in the use case through the prepared program, and automatically generates a test report through the prepared program.

[0070] Based on the same inventive concept, the embodiments of the present application also provide a vehicle-mounted data automatic testing method based on the vehicle-mounted data automatic testing device described above. The implementation scheme for solving the problem provided by the method is similar to the implementation scheme described in the device, so the specific limitations in one or more vehicle-mounted data automatic testing method embodiments provided below can refer to the limitations of the vehicle-mounted data automatic testing device described above, which will not be repeated here.

[0071] In an exemplary embodiment, as shown in FIG. 2, a vehicle-mounted data automatic testing method is provided, which includes the following steps 101 to 107 in the embodiments of the present application. Wherein:

[0072] Step 101: Obtain a local test case 1; the local test case 1 includes an automobile bus data identifier, data field data, data field parsed data, and a test result;

[0073] Step 102: Send all the data field data to the bus collector 4 through the host computer 2;

[0074] Step 103: Send all the data field data to the T-BOX 8 through the bus collector 4;

[0075] Step 104: Combine all the data field data through the T-BOX 8 to obtain a T-BOX 8 combined code stream;

[0076] Step 105: Send the T-BOX 8 combined code stream to the networked platform through the vehicle cloud server 9;

[0077] Step 106: Parse the T-BOX 8 combined code stream through the networked platform to obtain platform parsed data;

[0078] Step 107: The host computer 2 parses the T-BOX 8 combined code stream to obtain host computer self-parsing data;

[0079] Step 108: The host computer 2 performs assertion comparison on the data field parsing data, platform parsing data and host computer self-parsing data to obtain a test report.

[0080] As an optional implementation, the host computer 2 is connected to the bus collector 4 through the USB connection line 3. The bus collector 4 is connected through the DB9 connection line 5 and the CAN line led out by the power line bundle 6 of the T-BOX 8.

[0081] In this implementation, four male heads and two female heads are arranged on the DB9 connection line 5.

[0082] The application further provides an application scenario of the vehicle-mounted data automatic test method. Specifically, the vehicle-mounted data automatic test method can be applied in a car interconnection test scenario. The car interconnection test scenario includes a test case acquisition link and an automatic test link. The local test case 1 enters the automatic test link from the test case acquisition link to perform automatic test to obtain a test report. The vehicle-mounted data automatic test method belongs to the automatic test link. Specifically, in the automatic test process of the local test case 1, all data field data are combined by the T-BOX 8 to obtain a T-BOX 8 combined code stream. The T-BOX 8 combined code stream is parsed by the car cloud service to obtain platform parsing data. The T-BOX 8 combined code stream is parsed by the host computer 2 to obtain host computer self-parsing data. The data field parsing data, the platform parsing data and the host computer self-parsing data are subjected to assertion comparison by the host computer 2 to obtain a test report.

[0083] The technical features of the above embodiments can be combined in any manner. To make the description concise, not all possible combinations of the technical features in the above embodiments are described, however, as long as the combinations of the technical features do not exist contradictions, they shall be considered as the scope of the present application.

[0084] The principles and implementation modes of the present application are described by using specific examples. The above description of the embodiments is only used to help understand the method and its core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application scope can be changed. In conclusion, the content of the present application should not be understood as a limitation.

Claims

1. An in-vehicle data automated testing device, characterized by, The vehicle-mounted data automatic testing device comprises an upper computer, a bus collector, a T-BOX, a vehicle cloud server and a network connection platform. The upper computer is configured to send data field data of a local test case to the bus collector; the local test case comprises an automobile bus data identifier, data field data, data field analysis data and a test result. The bus collector is configured to send the data field data to the T-BOX. The T-BOX is configured to combine all the data field data to obtain a T-BOX combined code stream. The vehicle cloud server is configured to receive the T-BOX combined code stream and send the T-BOX combined code stream to the network connection platform. The network connection platform is configured to analyze the T-BOX combined code stream to obtain platform analysis data. The upper computer is further configured to analyze the T-BOX combined code stream to obtain upper computer self-analysis data. The upper computer is further configured to compare the data field analysis data, the platform analysis data and the upper computer self-analysis data by assertion to obtain a test report.

2. The on-board data automated test apparatus of claim 1, wherein, The vehicle-mounted data automatic testing device further comprises a power module configured to provide direct current power for the T-BOX.

3. The on-board data automated test apparatus of claim 1, wherein, The upper computer comprises a case reading tool, a bus data transceiving tool and a bus data analysis tool. The case reading tool is configured to obtain a local test case. The bus data transceiving tool is configured to send the data field data to the bus collector. The bus data analysis tool is configured to analyze the T-BOX combined code stream to obtain upper computer self-analysis data.

4. The on-board data automated test apparatus of claim 1, wherein, The upper computer is connected to the bus collector through a USB connection line.

5. The on-board data automated test apparatus of claim 1, wherein, The bus collector is connected to the T-BOX through a DB9 connection line and a CAN line led out from a power harness of the T-BOX.

6. The on-board data automated test apparatus of claim 5, wherein, The DB9 connection line is provided with four male heads and two female heads.

7. A method for automated testing of in-vehicle data, the method comprising: The vehicle-mounted data automatic testing method comprises: obtaining a local test case; the local test case comprises an automobile bus data identifier, data field data, data field analysis data and a test result; sending all the data field data to the bus collector through the upper computer; sending all the data field data to the T-BOX through the bus collector; combining all the data field data through the T-BOX to obtain a T-BOX combined code stream; sending the T-BOX combined code stream to the network connection platform through the vehicle cloud server; analyzing the T-BOX combined code stream through the network connection platform to obtain platform analysis data; analyzing the T-BOX combined code stream through the upper computer to obtain upper computer self-analysis data; comparing the data field analysis data, the platform analysis data and the upper computer self-analysis data through the upper computer by assertion to obtain a test report.

8. The vehicle onboard data automated testing method of claim 7, wherein, The upper computer is connected to the bus collector through a USB connection line.

9. The vehicle data automated testing method of claim 7, wherein, The bus collector is connected to the T-BOX through a DB9 connection line and a CAN line led out from a power harness of the T-BOX.

10. The vehicle data automated testing method of claim 9, wherein, The DB9 connection line is provided with four male heads and two female heads.

Citation Information

Patent Citations

  • Automatic testing system and method for automatic driving controller

    CN112306042A

  • Vehicle-mounted terminal software real vehicle testing method and system

    CN113190454A

  • Test method and test system for vehicle-mounted terminal

    CN114844811A

  • Remote CAN bus automatic test system and method

    CN115190041A

  • Vehicle-mounted data automatic testing device and method

    CN118784541A