Vehicle-mounted data automatic testing device and method

Through vehicle-mounted data automated testing devices and methods, the host computer, bus collector, T-BOX and network connection platform are used to automatically process and analyze vehicle-mounted data, solving the consistency and accuracy problems in manual testing and achieving high efficiency and accuracy. Test results and quick problem location.

CN118784541APending Publication Date: 2024-10-15ZHIZI AUTOMOTIVE TECHNOLOGY CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411139222.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, the consistency and accuracy testing of the CAN bus data of the vehicle-mounted T-BOX and the platform-side analysis data relies on manual methods, which is prone to human errors, low test coverage and low efficiency.

Method used

Design an automated test device and method for vehicle-mounted data. Through the host computer, bus collector, T-BOX, car cloud server and network connection platform, the data field, platform analysis data and host computer self-analysis data are automatically processed and analyzed to generate Test reporting to avoid human factor errors and improve testing efficiency and coverage.

Benefits of technology

It achieves efficient and accurate automated testing of vehicle data, improves testing accuracy and efficiency, reduces the error rate in manual testing, and quickly locates problems through automatically generated reports.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784541A_ABST
    Figure CN118784541A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted data automatic testing device and method, and relates to the field of data automatic testing, in the device, a T-BOX combines data of all data fields to obtain a T-BOX combined code stream, a network connection platform analyzes the T-BOX combined code stream to obtain platform analysis data, and the platform analysis data is sent to the T-BOX combined code stream. And the upper computer performs self-analysis on the T-BOX combined code stream to obtain upper computer self-analysis data, and performs assertion comparison on the data field analysis data, the platform analysis data and the upper computer self-analysis data to obtain a test report. According to the vehicle-mounted data automatic testing method and device, the problems that errors caused by human factors are prone to occurring in the testing process, the testing coverage degree is low and the overall testing efficiency is low in a manual testing method are solved, automatic testing of vehicle-mounted data is achieved, the accuracy rate and the testing efficiency are improved, and the overall testing coverage rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated data testing, and in particular to an on-vehicle automated data testing device and method. Background Art

[0002] With the vigorous development of Internet of Vehicles technology, T-BOX (Telematics BOX), as an extremely important part of the Internet of Vehicles system, is an intelligent terminal that integrates vehicle body network and wireless communication. It plays a connecting role in the interaction and data transmission between vehicle-side data and cloud platform.

[0003] With the widespread application of vehicle-mounted T-BOX in the commercial vehicle industry and the continuous development of new energy technologies, some driving data and energy consumption data have become the common concerns of customers, which puts forward higher requirements on the consistency and accuracy of bus data transmitted by T-BOX and platform parsing data. At present, most of the consistency and accuracy tests for CAN bus data-T-BOX-platform parsing data are manual tests. These manual test methods are prone to human error during the test process, low test coverage and low overall test efficiency.

[0004] Therefore, there is an urgent need for an automated vehicle data testing method with high test efficiency, high accuracy and high test coverage. Summary of the invention

[0005] The purpose of this application is to provide an automated vehicle data testing device and method, which can perform automated testing on data field analysis data, platform analysis data and host computer self-analysis data, thereby avoiding human error and low test coverage during manual testing, improving accuracy, and increasing test efficiency and test coverage.

[0006] To achieve the above objectives, this application provides the following solutions: In a first aspect, the present application provides a vehicle-mounted data automation test device, including a host computer, a bus collector, a T-BOX, a vehicle cloud server, and a network connection platform; The host computer is used to send the data field data of the local test case to the bus collector; the local test case includes the vehicle bus data identifier, data field data, data field parsing data and test results; The bus collector is used to send data field data to T-BOX; T-BOX is used to combine all data field data to obtain T-BOX combined code stream; The car cloud server is used 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 used to parse the T-BOX combined code stream to obtain platform parsing data; The host computer is further used to: parse the T-BOX combined code stream to obtain host computer self-parsed data; The host computer is also used to: perform assertion comparison on the data field analysis data, platform analysis data and host computer self-analysis data to obtain a test report.

[0007] In a second aspect, the present application provides a method for automated testing of vehicle-mounted data, comprising: Obtaining a local test case; the local test case includes a vehicle bus data identifier, data field data, data field parsing data and a test result; Send all the data field data to the bus collector via the host computer; Send all the data field data to T-BOX via the bus collector; All data fields are combined through T-BOX to obtain T-BOX combined code stream; Send the T-BOX combined code stream to the Internet connection platform through the car cloud server; Parsing the T-BOX combined code stream through the Internet platform to obtain platform parsing data; The T-BOX combined code stream is parsed by the host computer to obtain the host computer self-parsing data; The host computer makes assertion comparison on the data field parsing data, platform parsing data and host computer self-parsing data to obtain a test report.

[0008] According to the specific embodiments provided in this application, this application discloses the following technical effects: The present application provides an automated vehicle data testing device and method, which combines all data field data through T-BOX to obtain a T-BOX combined code stream, parses the T-BOX combined code stream through a networked platform to obtain platform parsed data, performs assertion comparison on the data field parsed data, the platform parsed data and the upper computer self-parsed data to obtain a test report, thereby solving the problems that manual testing methods are prone to human error during the test process, low test coverage and low overall test efficiency, realizes automated vehicle data testing, and improves accuracy and test efficiency. The present application only needs to maintain automated test cases separately, and uses most abnormal item cases, thereby improving test coverage. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0010] Figure 1 A schematic diagram of functional modules of a vehicle-mounted data automatic testing device provided in one embodiment of the present application; Figure 2 A flowchart of an automated vehicle data testing method provided in accordance with an embodiment of the present application.

[0011] Reference numerals: Local test case—1; host computer—2; USB cable—3; bus collector—4; DB9 cable—5; power harness—6; AC power supply—7; T-BOX—8; car cloud server—9. DETAILED DESCRIPTION

[0012] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0013] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0014] In an exemplary embodiment, Figure 1 As shown, a vehicle-mounted data automatic testing device is provided, including a host computer 2, a bus collector 4, a T-BOX 8, a vehicle cloud server 9 and a network connection platform.

[0015] The host computer 2 is used to send the data field data of the local test case 1 to the bus collector 4; the local test case 1 includes the vehicle bus data identifier (ie, CANID), data field data, data field parsing data, and test results.

[0016] The host computer 2 includes a use case reading tool, a bus data receiving and sending tool, and a bus data parsing tool.

[0017] The test case reading tool is used to obtain local test case 1.

[0018] The bus data transceiver tool is used to send the data field data to the bus collector 4.

[0019] The bus data analysis tool is used to analyze the T-BOX8 combined code stream to obtain the 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.

[0020] Local test case 1 (i.e., simulated bus data) is a data table containing four parts: vehicle bus data identifier (CANID), data field data, data field parsing data, and test results. Local test case 1 is a test case in Excel format.

[0021] For example, a 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 parsing data is: ['start', 'pure electric', 'parking charging', 'working', 'neutral', 'with braking force', 'with driving force', 36047]; the parsing result is: PASS, PASS means the verification is passed.

[0022] The bus collector 4 sends the data field data to T-BOX 8. The bus collector 4 (ie, CAN box) is equipped with a USB data cable, and the message data (ie, data field data) required to be sent during the test is sent through the USB connection bus collector 4. The host computer 2 is connected to the bus collector 4 through a USB connection cable 3.

[0023] T-BOX8 is used to combine all data field data according to the protocol to obtain a T-BOX8 combined code stream. T-BOX8 transmits the T-BOX8 combined code stream to the car cloud service end 9 via Ethernet. T-BOX8 is connected to the car cloud service end 9 in the form of IP and port. T-BOX8 is equipped with 1 GPS antenna, 1 4G antenna and power harness 6 and combines the sent data field data.

[0024] The car cloud service terminal 9 is used to send the T-BOX8 combined code stream to the network platform. The network platform is used to parse the T-BOX8 combined code stream to obtain platform parsing data. The network platform receives and parses the reported bus data according to the written parsing function.

[0025] The host computer 2 is also used to: parse the T-BOX8 combined code stream to obtain the host computer self-parsed data. The host computer 2 obtains the T-BOX8 combined code stream from the car cloud service end 9 and performs self-parse according to the protocol to obtain the host computer self-parsed data.

[0026] The host computer 2 is also used 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.

[0027] The platform analyzes the original data reported by T-BOX8 to the car cloud server 9, that is, analyzes the T-BOX8 combined code stream forwarded by the car cloud server 9.

[0028] The upper computer self-parses the data by self-parse the T-BOX8 combined code stream forwarded by the car cloud service terminal 9 according to the protocol, that is, the original data reported by T-BOX8 to the car cloud service is parsed through encoding according to the protocol, and finally the data field parsing data, platform parsing data and upper computer self-parseing data in the simulated bus data are checked for consistency.

[0029] Assert and compare the data field analysis data, platform analysis data and host computer self-analysis data to obtain a test report, which includes: Perform consistency check on data field analysis data, platform analysis data and host computer self-analysis data to obtain test results; If the test results are consistent, the first test result is output, and the first test result indicates that the data field analysis data, the platform analysis data and the host computer self-analysis data are consistent. The first test result is used to indicate that this test has passed.

[0030] If the test result is inconsistent, the second test result is output. The second test result indicates that the data field parsing data, platform parsing data and host computer self-parsing data are inconsistent. The specific situation can be analyzed from the log. If the host computer self-parsing data is consistent with the platform parsing data and the host computer self-parsing data is inconsistent with the data field parsing data, it is highly likely that the TBOX data combination is wrong or not uploaded in time; if the host computer self-parsing data is consistent with the data field parsing data and the host computer self-parsing data is inconsistent with the platform parsing host computer, it is the platform parsing data error; if all three are inconsistent, it means that the terminal time calibration problem or the platform has no data update problem, resulting in inconsistent parsed original code streams. The second test result is used to indicate that this test failed.

[0031] The above test results can be used to quickly locate problematic components.

[0032] The vehicle-mounted data automatic test device further includes a power supply module, which is used to provide a direct current power supply, namely, an AC power supply 7, for the T-BOX 8.

[0033] The bus collector 4 is connected to the T-BOX 8 for communication via a DB9 connection line 5 .

[0034] Four male heads and two female heads are arranged on the DB9 connecting line 5. The two female heads are connected to the bus collector 4, and the four male heads are separated from the two female heads respectively, and the four male heads are connected to the CAN line of TBOX8.

[0035] After the T-BOX8 data is uploaded, the consistency of the vehicle-side and cloud-side data is ensured. The existing manual testing methods are obviously time-consuming and labor-intensive, so it is particularly important to find an automated testing method. Therefore, this application performs automated verification of accuracy and consistency, which can improve test efficiency and test coverage, greatly reduce the uncertainty caused by human factors during manual testing, and reduce the error rate of manual testing; the final test report can be automatically generated; the problem can be identified based on the output log, and the component where the problem is located can be quickly located.

[0036] The test environment and test execution steps in this application are as follows: Step 1: Prepare local test case 1 containing CANID, data field data, and data field parsing data in Excel format.

[0037] Step 2: The host computer 2 is connected to the bus collector 4 via a USB cable 3.

[0038] Step 3: The bus collector 4 is connected via the DB9 connecting cable 5 and the CAN cable led out of the T-BOX8 power harness 6.

[0039] Step 4: Connect the positive and negative electrodes of the power harness 6 of T-BOX 8 to the AC power supply 7.

[0040] Step 5: The host computer 2 sends the data field data of the local test case 1 to the bus collector 4 through the programmed program.

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

[0042] Step 7: T-BOX8 sends the received T-BOX8 combined code stream to the car cloud server 9 via Ethernet.

[0043] Step 8: The vehicle-cloud gateway (i.e., vehicle-cloud server 9) forwards the received T-BOX8 combined code stream to the network connection platform.

[0044] Step 9: The network connection platform parses the received T-BOX8 combined code stream to obtain platform parsing data.

[0045] Step 10: The host computer 2 analyzes the bus data after T-BOX8 combination through the prepared program to obtain the host computer self-analysis data.

[0046] Step 11: The host computer 2 obtains the data field analysis data in the use case through the programmed program.

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

[0048] Based on the same inventive concept, the embodiment of the present application also provides an on-board data automated testing method based on the on-board data automated testing device involved above. The implementation scheme for solving the problem provided by the method is similar to the implementation scheme recorded in the above-mentioned device, so the specific limitations in one or more on-board data automated testing method embodiments provided below can refer to the limitations of the on-board data automated testing device above, and will not be repeated here.

[0049] In an exemplary embodiment, Figure 2 As shown, a method for automatic testing of vehicle-mounted data is provided. In the embodiment of the present application, the method includes the following steps 101 to 107. Among them: Step 101: Obtain local test case 1; the local test case 1 includes a vehicle bus data identifier, data field data, data field parsing data and test results; Step 102: Send all the data field data to the bus collector 4 via the host computer 2; Step 103: Send all the data field data to T-BOX 8 via the bus collector 4; Step 104: Combine all data field data through T-BOX8 to obtain a T-BOX8 combined code stream; Step 105: Send the T-BOX8 combined code stream to the network connection platform through the car cloud server 9; Step 106: parsing the T-BOX8 combined code stream through the network connection platform to obtain platform parsing data; Step 107: The host computer 2 parses the T-BOX8 combined code stream to obtain the host computer self-parsed data; Step 108: The host computer 2 performs assertion comparison on the data field analysis data, the platform analysis data and the host computer self-analysis data to obtain a test report.

[0050] As an optional implementation, the host computer 2 is connected to the bus collector 4 through a USB connection line 3. The bus collector 4 is connected through a DB9 connection line 5 and a CAN line derived from a power harness 6 of the T-BOX 8.

[0051] In this embodiment, the DB9 connecting line 5 is provided with four male connectors and two female connectors.

[0052] The present application also provides an application scenario, which applies the above-mentioned vehicle-mounted data automated testing method. Specifically: The vehicle-mounted data automated testing method provided in this embodiment can be applied in the vehicle interconnection test scenario. The vehicle interconnection test scenario includes a test case acquisition link and an automated testing link; the local test case 1 enters the automated testing link from the test case acquisition link, and performs automated testing to obtain a test report. The vehicle-mounted data automated testing method provided in this embodiment belongs to the automated testing link. Specifically, in the automated testing process for the local test case 1, all data field data are combined by T-BOX8 to obtain a T-BOX8 combined code stream, the T-BOX8 combined code stream is parsed by the car cloud service to obtain platform parsing data, the T-BOX8 combined code stream is parsed by the host computer 2 to obtain the host computer self-parsing data, and the data field parsing data, the platform parsing data and the host computer self-parsing data are asserted and compared by the host computer 2 to obtain a test report.

[0053] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0054] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A vehicle data automatic testing device, characterized in that: The vehicle-mounted data automatic test device includes a host computer, a bus collector, a T-BOX, a vehicle cloud server and a network connection platform; The host computer is used to send the data field data of the local test case to the bus collector; the local test case includes the vehicle bus data identifier, data field data, data field parsing data and test results; The bus collector is used to send data field data to T-BOX; T-BOX is used to combine all data field data to obtain T-BOX combined code stream; The car cloud server is used 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 used to parse the T-BOX combined code stream to obtain platform parsing data; The host computer is further used to: parse the T-BOX combined code stream to obtain host computer self-parsed data; The host computer is also used to: perform assertion comparison on the data field analysis data, platform analysis data and host computer self-analysis data to obtain a test report.

2. The vehicle-mounted data automatic testing device according to claim 1, characterized in that: The vehicle-mounted data automatic test device also includes a power supply module, and the power supply module is used to provide a direct current power supply for the T-BOX.

3. The vehicle-mounted data automatic testing device according to claim 1, characterized in that: The host computer includes a use case reading tool, a bus data transceiver tool, and a bus data parsing tool; The test case reading tool is used to obtain local test cases; The bus data transceiver tool is used to send the data field data to the bus collector; The bus data analysis tool is used to analyze the T-BOX combined code stream to obtain the host computer self-analysis data.

4. The vehicle-mounted data automatic testing device according to claim 1, characterized in that: The host computer is connected to the bus collector through a USB cable.

5. The vehicle-mounted data automatic testing device according to claim 1, characterized in that: The bus collector is connected to the CAN line led out of the power harness of the T-BOX via a DB9 connecting line.

6. The vehicle-mounted data automatic testing device according to claim 5, characterized in that: The DB9 cable has four male connectors and two female connectors.

7. A method for automated testing of vehicle-mounted data, characterized in that: The vehicle-mounted data automatic testing method comprises: Obtaining a local test case; the local test case includes a vehicle bus data identifier, data field data, data field parsing data and a test result; Send all the data field data to the bus collector via the host computer; Send all the data field data to T-BOX via the bus collector; All data fields are combined through T-BOX to obtain T-BOX combined code stream; Send the T-BOX combined code stream to the Internet connection platform through the car cloud server; Parsing the T-BOX combined code stream through the Internet platform to obtain platform parsing data; The T-BOX combined code stream is parsed by the host computer to obtain the host computer self-parsing data; The host computer makes assertion comparison on the data field parsing data, platform parsing data and host computer self-parsing data to obtain a test report.

8. The vehicle-mounted data automated testing method according to claim 7, characterized in that: The host computer is connected to the bus collector through a USB cable.

9. The vehicle-mounted data automatic testing method according to claim 7, characterized in that: The bus collector is connected to the CAN line led out of the power harness of the T-BOX via a DB9 connecting line.

10. The vehicle-mounted data automatic testing method according to claim 9, characterized in that: The DB9 cable has four male connectors and two female connectors.

Citation Information

Cited By

  • Vehicle-mounted terminal remote debugging system and method

    CN121418452A

  • Vehicle terminal remote debugging system and method

    CN121418452B

  • Automated on-board data testing apparatus and method

    WO2026041011A1