TBOX test method and device, equipment and storage medium
Through the automated TBOX testing method, data is generated and uploaded based on the test items, and data is captured and compared from the national standard platform, the existing TBOX testing is solved, and the rapid and accurate test results are achieved.
Patent Information
- Application Number
- CN202510035907.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-01-09
AI Technical Summary
The existing TBOX testing methods take a long time and are not accurate enough, making it difficult to ensure the accuracy of the test.
By determining the test items of TBOX, the corresponding first target data is generated, and the TBOX is controlled to upload the data to the national standard platform, the corresponding second target data is captured from the national standard platform, and the test results are generated based on the second target data and test standards.
The TBOX test is automated, which significantly improves the test speed and accuracy and reduces manpower investment.
Smart Images

Figure CN119996243A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle testing technology, and in particular to a TBOX testing method, device, equipment and storage medium. Background Art
[0002] TBOX (Telematics BOX) is an in-vehicle communication module used to connect vehicles to the Internet and provide functions such as remote control, vehicle monitoring and vehicle diagnosis. In the TBOX functional test, GB 32960 is a mandatory test that every TBOX must pass. When performing the test, the tester needs to manually send the message information to be tested to TBOX. TBOX uploads the message information to the enterprise GB platform, and then captures the message information uploaded by TBOX from the enterprise GB platform. The tester splits the captured message information and compares it with the data actually uploaded by TBOX. The test process is time-consuming, and manual data splitting and comparison cannot guarantee the accuracy of the test.
[0003] Therefore, how to improve the testing speed and accuracy of TBOX is a problem that those skilled in the art need to solve. Summary of the invention
[0004] The present application provides a TBOX testing method, device, equipment and storage medium to improve the testing speed and accuracy of TBOX.
[0005] In a first aspect, the present application provides a TBOX testing method, comprising:
[0006] Determine the test items for TBOX;
[0007] Generate corresponding first target data according to the test item;
[0008] Controlling the TBOX to upload the first target data to the national standard platform;
[0009] The second target data corresponding to the test item is captured from the national standard platform, and a test result is generated according to the second target data and a test standard; the test standard is a test standard corresponding to the test item.
[0010] Optionally, if the test item is a login data test, the step of capturing second target data corresponding to the test item from the national standard platform and generating a test result according to the second target data and the test standard includes:
[0011] Collecting first login data from the TBOX;
[0012] Capture the second login data from the national standard platform;
[0013] A test result is generated according to the first login data and the second login data.
[0014] Optionally, if the test item is a data reporting period test, the capturing of second target data corresponding to the test item from the national standard platform and generating a test result according to the second target data and the test standard includes:
[0015] Capture each first test data from the national standard platform; the first test data is the data reported by the TBOX to the national standard platform;
[0016] Calculate the data reporting period according to the reporting time of each first test data;
[0017] The data reporting period is compared with the reporting period standard to generate a test result.
[0018] Optionally, if the test item is a data reissue mechanism test, the capturing of second target data corresponding to the test item from the national standard platform and generating a test result according to the second target data and the test standard includes:
[0019] Capture reissue data from the national standard platform; the reissue data is data uploaded to the national standard platform after the TBOX meets the reissue mechanism triggering condition;
[0020] The reissued data is compared with the data reissue mechanism standard to generate a test result.
[0021] Optionally, if the test item is a test for triggering a third-level alarm, the step of capturing second target data corresponding to the test item from the national standard platform and generating a test result according to the second target data and the test standard includes:
[0022] Capture second test data from the national standard platform; wherein the second test data is data uploaded to the national standard platform after the TBOX is triggered to trigger the third level alarm, and the second test data includes: pre-alarm data within a first predetermined time before the alarm is triggered, and post-alarm data within a second predetermined time after the alarm is triggered;
[0023] Determine a first data upload mechanism for the pre-alarm data, and determine a second data upload mechanism for the post-alarm data;
[0024] Generate a test result according to the first data upload mechanism, the second data upload mechanism and the data upload mechanism standard.
[0025] Optionally, if the test item is a data consistency test, generating corresponding first target data according to the test item includes:
[0026] The first national standard data is generated according to the national standard data comparison table and the CANOE tool; the first national standard data is the whole vehicle data uploaded by the TBOX to the national standard platform.
[0027] Optionally, the capturing of second target data corresponding to the test item from the national standard platform, and generating a test result according to the second target data and the test standard, includes:
[0028] Collecting the first national standard data from the TBOX;
[0029] Capture second national standard data from the national standard platform; the second national standard data is the whole vehicle data uploaded by the TBOX and received by the national standard platform;
[0030] The first national standard data is compared with the second national standard data, and a test result is generated according to the comparison result.
[0031] In a second aspect, the present application provides a TBOX testing device, comprising:
[0032] A determination module is used to determine the test items of TBOX;
[0033] A data generating module, used to generate corresponding first target data according to the test item;
[0034] A control module, used for controlling the TBOX to upload the first target data to the national standard platform;
[0035] The result generation module is used to capture the second target data corresponding to the test item from the national standard platform, and generate a test result according to the second target data and the test standard; the test standard is the test standard corresponding to the test item.
[0036] In a third aspect, the present application provides an electronic device, including:
[0037] A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of the TBOX test method of the present application through the computer program.
[0038] In a fourth aspect, the present application further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the steps of the above-mentioned TBOX test method of the present application.
[0039] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the present application provides a TBOX test solution, which first needs to determine the test items of TBOX, then generate the corresponding first target data according to the test items, and control TBOX to upload the first target data to the national standard platform; after grabbing the second target data corresponding to the test items from the national standard platform, the test results can be generated according to the second target data and the test standard; the test standard is the test standard corresponding to the test item. It can be seen that the present application can automatically generate the corresponding first target data according to the test items, automatically upload it to the national standard platform through TBOX, and automatically generate the test results according to the test standards and the second target data grabbed from the national standard platform. The whole process does not require the participation of test personnel to realize the automated testing of the test items, thereby improving the test speed and accuracy of TBOX. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0043] Figure 1 A schematic diagram of a TBOX testing method provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of the structure of a TBOX test system provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of another TBOX testing method provided in an embodiment of the present application;
[0046] Figure 4 A schematic diagram of another TBOX testing method provided in an embodiment of the present application;
[0047] Figure 5 A schematic diagram of another TBOX testing method provided in an embodiment of the present application;
[0048] Figure 6 A schematic diagram of another TBOX testing method provided in an embodiment of the present application;
[0049] Figure 7 A schematic diagram of another TBOX testing method provided in an embodiment of the present application;
[0050] Figure 8 A schematic diagram of a test process provided in an embodiment of the present application;
[0051] Fig. 9 A schematic diagram of the structure of a TBOX testing device provided in an embodiment of the present application;
[0052] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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 making creative work are within the scope of protection of this application.
[0054] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0055] The present embodiment provides a TBOX testing method, device, equipment and storage medium to improve the testing speed and accuracy of the TBOX.
[0056] See also Figure 1 , Figure 1 A schematic diagram of a TBOX testing method provided in an embodiment of the present application, the method specifically comprises the following steps:
[0057] S101, determine the test items of TBOX;
[0058] In this embodiment, the test item is a test performed on the TBOX, and the type of the test item can be determined according to actual needs. For example, the test item can be: login data test, information reporting cycle test, data reissue mechanism test, triggering three-level alarm test, data consistency test, etc., which are not specifically limited here.
[0059] S102, generating corresponding first target data according to the test item;
[0060] In the present application, the first target data is the data that needs to be uploaded to the national standard platform. Since different test items need to upload different data to the national standard platform, the present application needs to generate the corresponding first target data according to the test item when generating the first target data. For example: if the test item is a login data test, the first target data generated at this time is the login data, and the login data includes: login time, ICCID (Integrate circuit card identity) of TBOX, etc.; if the test item is an information reporting cycle test, the first target data generated at this time is the test data, and the test data can be the whole vehicle data to be reported, and the whole vehicle data can include at least one of the following data: vehicle status, charging status, operating mode, vehicle speed, cumulative mileage, total voltage, total current, SOS (Self-Organized Safety, emergency rescue data), DC-DC ((Direct Current to Direct Current, DC-DC converter) status, driving force, braking force and gear, insulation resistance, accelerator pedal travel value, brake pedal travel value, etc.
[0061] S103, controlling TBOX to upload the first target data to the national standard platform;
[0062] In this embodiment, after determining the first target data corresponding to the test item, it is necessary to control TBOX to upload the first target data to the national standard platform. The national standard platform is a vehicle monitoring platform provided for national standard 32960. After the application generates the corresponding first target data according to the test item, it is necessary to upload the first target data to the national standard platform to generate the test result.
[0063] In addition, when this application controls TBOX to upload the first target data to the national standard platform, if TBOX must meet a certain condition before uploading the first target data, then it is necessary to control TBOX to meet the corresponding condition before uploading the first target data through TBOX. For example: the test item is a data reissue mechanism test, and the first target data is the reissue data. At this time, TBOX needs to meet the reissue mechanism trigger condition before uploading the reissue data to the national standard platform. Therefore, when this application is testing the data reissue mechanism, it is necessary to control TBOX to enter flight mode to meet the reissue mechanism trigger condition, and then upload the reissue data to the national standard platform through TBOX.
[0064] S104, capturing second target data corresponding to the test item from the national standard platform, and generating a test result according to the second target data and the test standard; the test standard is a test standard corresponding to the test item.
[0065] In the present application, the second target data is data captured from the national standard platform, and different second target data need to be obtained for different test items. In addition, different test items have different test standards. Therefore, after the present application captures the second target data corresponding to the test item from the national standard platform, it is necessary to obtain the final test result according to the test standard corresponding to the test item. For example: if the test item is a login data test, the second target data captured from the national standard platform is the login data, and the test standard for the login data test is: the login data recorded in TBOX. If the login data captured from the national standard platform is the same as the login data collected from TBOX, the test is successful, otherwise, the test fails; if the test item is an information reporting cycle test, the second target data captured from the national standard platform is each test data uploaded by TBOX, and the test standard for the information reporting cycle test is the reporting cycle standard. If the information reporting cycle calculated by each test data is the same as the reporting cycle standard, the test is successful, otherwise, the test fails.
[0066] See also Figure 2, is a schematic diagram of the structure of a TBOX test system provided by an embodiment of the present invention, the system comprising: a host computer, a TBOX controller, an antenna, a national standard platform and a programmable power supply. Among them, the host computer controls the programmable power supply to power the TBOX controller, the host computer sends the first target data to the TBOX controller, and the TBOX controller sends the first target data to the national standard platform through the antenna. In addition, a python script is set in the host computer, and the python script can perform automated testing by executing the above S101-S104. The TBOX controller needs to complete registration on the enterprise national standard platform in advance, and can upload relevant data normally. For test items such as data structure and sending mechanism, the TBOX controller can be controlled by Python script to make corresponding test prerequisites, and the data of the national standard platform can be captured in real time, and the captured data can be analyzed and judged to obtain the test results.
[0067] In summary, this application can generate the first target data according to the test items, automatically upload it to the national standard platform through TBOX, and automatically generate the test results according to the test standards and the second target data captured from the national standard platform. The entire process does not require the participation of testers to realize the automated testing of the test items, improves the testing speed and accuracy of TBOX, greatly reduces manpower investment, and is highly reproducible, which ensures that new energy vehicles pass the 32960 national standard certification.
[0068] See also Figure 3 , Figure 3 A flow chart of another TBOX testing method provided in an embodiment of the present application, the method specifically comprises the following steps:
[0069] S201, determine the test item of TBOX; the test item is a login data test;
[0070] S202, generating corresponding first login data according to the test item;
[0071] S203, controlling TBOX to upload the first login data to the national standard platform;
[0072] S204, collecting the first login data from TBOX, and grabbing the second login data from the national standard platform;
[0073] S205: Generate a test result according to the first login data and the second login data.
[0074] Before testing, this application first needs to arrange the test environment, including arranging the TBOX controller, debugging the network platform environment, confirming that the platform link can be uploaded normally, correctly parsing the uploaded message, debugging the program-controlled power supply, etc. If the test item is a login data test, the first target data generated is the login data, which includes: login time, ICCID of TBOX, etc. Before executing the test, you first need to control the program-controlled power supply to connect to the KL30 / KL15 power supply through the python script of the host computer. The program-controlled power supply is a device that controls the output voltage and current through programming, which is used to power the TBOX. KL30 is the power supply of the ECU (electronic Control Unit, electronic controller), that is, the battery, which provides the working voltage for the ECU; KL15 is used to indicate the engine ignition status, and also represents the signal that the vehicle key is twisted to start the car. After the TBOX starts to connect to the network, the first login data is uploaded to the national standard platform.
[0075] After uploading the first login data to the national standard platform, the application needs to use a python script to obtain login data from TBOX and the national standard platform respectively. In order to distinguish, the login data collected from TBOX is referred to as the first login data in this embodiment, and the login data captured from the national standard platform is referred to as the second login data. If the login time and ICCID in the first login data are the same as the login time and ICCID in the second login data, the test is successful, otherwise the test fails. In addition, the second login data captured from the national standard platform by the application also includes the first login serial number. At this time, in order to test the login serial number, the python script can control the program-controlled power supply to cut off KL15, so that TBOX enters a dormant state, and then connects TBOX to KL15 power, so that TBOX restarts and connects to the network, and then uploads login data to the national standard platform again. At this time, the python script captures the login data from the national standard platform again, obtains the second login serial number in the login data, and if the second login serial number is 1 greater than the first login serial number, the test is successful, otherwise the test fails.
[0076] From the above, it can be seen that when testing the login data, the present application can collect the first login data from TBOX and grab the second login data from the national standard platform, and quickly and accurately obtain the test result of the login data by comparing whether the first login data and the second login data are the same.
[0077] See also Figure 4 , Figure 4 A flow chart of another TBOX testing method provided in an embodiment of the present application, the method specifically comprises the following steps:
[0078] S301, determine the test item of TBOX; the test item is a data reporting cycle test;
[0079] S302, generating corresponding first test data according to the test item;
[0080] S303, controlling TBOX to upload the first test data to the national standard platform;
[0081] S304, capturing first test data from the national standard platform; the first test data is data reported by TBOX to the national standard platform;
[0082] S305, calculating a data reporting period according to the reporting time of each first test data;
[0083] S306: Compare the data reporting period with the reporting period standard to generate a test result.
[0084] In the present application, if the test item is a data reporting cycle test, TBOX needs to upload each first test data to the national standard platform, and then capture each first test data from the national standard platform through a python script. The first test data records the reporting time, which is the time when TBOX reports the corresponding test data to the national standard platform; the number of the first test data can be set according to actual needs, as long as the reporting cycle can be calculated according to the reporting time of each first test data; in the present application, the data capture time can be set, and each first test data will continue to be captured from the national standard platform during the data capture time, such as: setting the data capture time to 5 minutes, then this application will continue to capture each first test data from the national standard platform within these 5 minutes.
[0085] After capturing each first test data, the application can calculate the data reporting cycle according to the reporting time of each first test data. For example, if the reporting time interval of each first test data is 1 second, it means that the data reporting cycle is 1 time / second. Then the data reporting cycle is compared with the reporting cycle standard. If the data reporting cycle is the same as the reporting cycle standard, the test is successful, otherwise, the test fails.
[0086] From the above, it can be seen that when testing the data reporting cycle, the present application can calculate the reporting cycle based on the first test data captured from the national standard platform, and compare it with the reporting cycle standard, so as to quickly and accurately obtain the test results of the data reporting cycle.
[0087] See also Figure 5 , Figure 5 A flow chart of another TBOX testing method provided in an embodiment of the present application, the method specifically comprises the following steps:
[0088] S401, determine the test item of TBOX; the test item is a data resending mechanism test;
[0089] S402, generating corresponding reissue data according to the test items;
[0090] S403, control TBOX to upload the reissue data to the national standard platform;
[0091] S404, fetch reissue data from the national standard platform; the reissue data is data uploaded to the national standard platform after TBOX meets the reissue mechanism triggering conditions;
[0092] S405: Compare the reissued data with the data reissue mechanism standard to generate a test result.
[0093] In this application, if TBOX meets the triggering conditions of the reissue mechanism, TBOX will upload the reissue data to the national standard platform. The triggering conditions of the reissue mechanism are: flight mode and disconnection of KL30. If the python script controls TBOX to enter flight mode, after TBOX enters flight mode, the reissue data will be uploaded to the national standard platform. The python script grabs the reissue data from the national standard platform and determines whether the reissue data meets the reissue mechanism standard. If it meets the reissue mechanism standard, the test is successful, otherwise the test fails; after the test, the python script controls TBOX to exit flight mode and controls the program-controlled power supply to disconnect KL30. At this time, TBOX will upload the reissue data to the national standard platform. The python script grabs the reissue data from the national standard platform and determines whether the reissue data meets the reissue mechanism standard. If it meets the reissue mechanism standard, the test is successful, otherwise the test fails. Among them, the reissue mechanism standard includes: the upload period of the reissue data, the content format of the reissue data, the data content of the reissue data and other information, which are not specifically limited here.
[0094] In summary, it can be seen that when testing the data reissue mechanism, the python script can control TBOX to meet the triggering conditions of the reissue mechanism. After meeting the triggering conditions of the reissue mechanism, TBOX will upload the reissue data to the national standard platform, and compare the reissue data with the data reissue mechanism standard to achieve fast and accurate test results of the data reissue mechanism.
[0095] See also Figure 6 , Figure 6 A flow chart of another TBOX testing method provided in an embodiment of the present application, the method specifically comprises the following steps:
[0096] S501, determine the test item of TBOX; the test item is to trigger the third-level alarm test;
[0097] S502, generating corresponding second test data according to the test item;
[0098] S503, controlling TBOX to upload the second test data to the national standard platform;
[0099] S504, capturing second test data from the national standard platform; wherein the second test data is data uploaded to the national standard platform after the TBOX is triggered to trigger the third level alarm, and the second test data includes: pre-alarm data within a first predetermined time before the alarm is triggered, and post-alarm data within a second predetermined time after the alarm is triggered;
[0100] S505, determining a first data upload mechanism for pre-alarm data, and determining a second data upload mechanism for post-alarm data;
[0101] S506: Generate a test result according to the first data upload mechanism, the second data upload mechanism and the data upload mechanism standard.
[0102] In this embodiment, if the test item is to trigger a level 3 alarm test, the python script can be used to control the TBOX to trigger a level 3 alarm. The test data uploaded by the TBOX after the level 3 alarm is triggered includes: pre-alarm data within the first predetermined time before the alarm is triggered, and post-alarm data within the second predetermined time after the alarm is triggered. The pre-alarm data is uploaded according to the data reissue mechanism, and its upload period is the data reissue period. The post-alarm data is uploaded according to the normal upload mechanism, and its upload period is the normal upload period. Therefore, in the application, the data upload mechanism standard is: pre-alarm data is uploaded using the data reissue mechanism, and post-alarm data is uploaded using the normal upload mechanism.
[0103] After the application captures the pre-alarm data and post-alarm data from the national standard platform, the first data upload mechanism of the pre-alarm data and the second data upload mechanism of the post-alarm data can be determined through the upload cycle, upload content and other information, and the first data upload mechanism and the second data upload mechanism are compared with the data upload mechanism standard to obtain the test result, that is: if the first data upload mechanism is a data reissue mechanism, and the second data upload mechanism is a normal upload mechanism, the test is successful, otherwise the test fails. In this embodiment, according to the provisions of the national standard 32960 specification document, the first predetermined time length and the second predetermined time length can be set to 30 seconds, and the data reissue cycle can be set to 1 time / second.
[0104] In summary, when testing the triggering of the third-level alarm, this application can capture the data uploaded by TBOX before and after the triggering of the third-level alarm from the national standard platform, and compare it with the data upload mechanism standard to achieve fast and accurate test results.
[0105] See also Figure 7 , Figure 7 A flow chart of another TBOX testing method provided in an embodiment of the present application, the method specifically comprises the following steps:
[0106] S601, determine the test item of TBOX; the test item is data consistency test;
[0107] S602, generating first national standard data according to the national standard data comparison table and the CANOE tool; the first national standard data is the vehicle data uploaded by the TBOX to the national standard platform;
[0108] S603, controlling TBOX to upload the first national standard data to the national standard platform;
[0109] S604, collecting first national standard data from TBOX; capturing second national standard data from the national standard platform; the second national standard data is the whole vehicle data uploaded by TBOX and received by the national standard platform;
[0110] S605: Compare the first national standard data with the second national standard data, and generate a test result according to the comparison result.
[0111] In this application, before conducting data consistency testing, it is necessary to first arrange the test environment, including arranging the TBOX controller, debugging the network platform environment, confirming that the platform link can be uploaded normally, and the uploaded message is parsed correctly, etc. The first national standard data can be set to be reported once every ten seconds. The first national standard data is vehicle data, including at least one of the following data: vehicle status, charging status, operating mode, vehicle speed, cumulative mileage, total voltage, total current, SOS, DC-DC status, driving force, braking force and gear, insulation resistance, accelerator pedal travel value, brake pedal travel value. In addition, the first national standard data is generated according to the national standard data comparison table and the CANOE tool. The national standard data comparison table records the signals, messages, data maximum values, data minimum values, data invalid values, etc. required for TBOX to transmit the whole vehicle data. The above data is imported into the capl script of the CANOE tool. The capl script automatically generates a testcase after recognition. The CANOE tool automatically generates the first national standard data according to the testcase and sends it to TBOX, so that TBOX generates the corresponding data message according to the first national standard data and uploads it to the national standard platform.
[0112] The national standard platform receives the data message uploaded by TBOX, and the national standard data in the data message is called the second national standard data. The python script grabs the second national standard data from the national standard platform and compares it with the first national standard data. If the first national standard data is the same as the second national standard data, the test is successful, otherwise the test fails. After performing various tests on TBOX, this application can generate a test report, which records the test process, test data, test time, test results and other information for reference for subsequent analysis.
[0113] See also Figure 8 , Figure 8A test flow diagram is provided for an embodiment of the present application. It can be seen from the figure that the host computer first generates a testcase through the national standard data comparison table, and sends a bus signal corresponding to the data to be tested to the TBOX controller through the CANOE tool, and the bus signal is the whole vehicle data; the TBOX controller uploads the corresponding national standard data to the national standard platform, and the host computer captures the national standard data message uploaded by the TBOX controller from the national standard platform in real time, and compares it with the corresponding national standard data uploaded by the TBOX controller to obtain the test result.
[0114] In summary, it can be seen that the present application can automatically generate national standard data according to the national standard data comparison table and CANOE tool and upload it to the national standard platform, thereby realizing the rapid generation of vehicle data and improving the test speed; and, after obtaining the national standard data from TBOX and the national standard platform respectively, the present application compares the national standard data to achieve fast and accurate data consistency test results.
[0115] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of a TBOX testing device provided in an embodiment of the present application, the device specifically comprises:
[0116] A determination module 11, used to determine the test items of TBOX;
[0117] A data generating module 12, configured to generate corresponding first target data according to the test item;
[0118] A control module 13, used for controlling the TBOX to upload the first target data to the national standard platform;
[0119] The result generating module 14 is used to capture the second target data corresponding to the test item from the national standard platform, and generate a test result according to the second target data and the test standard; the test standard is the test standard corresponding to the test item.
[0120] As an optional embodiment, the result generation module includes:
[0121] A first collecting unit, used for collecting first login data from the TBOX when the test item is a login data test;
[0122] A first capture unit, used for capturing second login data from the national standard platform;
[0123] The first generating unit is used to generate a test result according to the first login data and the second login data.
[0124] As an optional embodiment, the result generation module includes:
[0125] A second capture unit is used to capture each first test data from the national standard platform when the test item is a data reporting period test; the first test data is the data reported by the TBOX to the national standard platform;
[0126] A calculation unit, used for calculating a data reporting period according to a reporting time of each first test data;
[0127] The second generating unit is used to compare the data reporting period with the reporting period standard to generate a test result.
[0128] As an optional embodiment, the result generation module includes:
[0129] A third capture unit is used to capture reissue data from the national standard platform when the test item is a data reissue mechanism test; the reissue data is data uploaded to the national standard platform after the TBOX meets the reissue mechanism triggering condition;
[0130] The third generating unit is used to compare the reissued data with the data reissue mechanism standard to generate a test result.
[0131] As an optional embodiment, the result generation module includes:
[0132] A fourth capture unit is used to capture second test data from the national standard platform when the test item is a test for triggering a third-level alarm; wherein the second test data is data uploaded to the national standard platform after the TBOX is triggered to trigger a third-level alarm, and the second test data includes: pre-alarm data within a first predetermined time period before the alarm is triggered, and post-alarm data within a second predetermined time period after the alarm is triggered;
[0133] A determination unit, configured to determine a first data upload mechanism for the pre-alarm data and a second data upload mechanism for the post-alarm data;
[0134] The fourth generating unit is used to generate a test result according to the first data upload mechanism, the second data upload mechanism and the data upload mechanism standard.
[0135] As an optional embodiment, the data generating module is specifically used for:
[0136] If the test item is a data consistency test, the first national standard data is generated according to the national standard data comparison table and the CANOE tool; the first national standard data is the whole vehicle data uploaded by the TBOX to the national standard platform.
[0137] As an optional embodiment, the result generation module includes:
[0138] A second collection unit, used for collecting the first national standard data from the TBOX;
[0139] A fifth grabbing unit, used to grab second national standard data from the national standard platform; the second national standard data is the whole vehicle data uploaded by the TBOX and received by the national standard platform;
[0140] The fifth generating unit is used to compare the first national standard data with the second national standard data, and generate a test result according to the comparison result.
[0141] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0142] See also Fig.10 , Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, the electronic device specifically includes:
[0143] A processor 21, a memory 22, and a computer program stored in the memory 22 and executable on the processor 21. The processor 21 executes the steps of the TBOX testing method described in any of the above method embodiments through the computer program.
[0144] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0145] The memory 22 may include one or more computer-readable storage media, which may be non-transitory. The memory 22 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 22 is at least used to store the following computer program 221, wherein the computer program can implement the relevant steps in the TBOX test method disclosed in any of the aforementioned embodiments after being loaded and executed by the processor 21. In addition, the resources stored in the memory 22 may also include an operating system 222 and data 223, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 222 may include Windows, Unix, Linux, etc.
[0146] In some embodiments, the electronic device may further include a display screen 23 , an input / output interface 24 , a communication interface 25 , a sensor 26 , a power source 27 , and a communication bus 28 .
[0147] certainly, Fig.10 The structure of the electronic device shown does not constitute a limitation on the electronic device in the embodiments of the present application. In actual applications, the electronic device may include Fig.10 More or fewer components than shown, or combinations of certain components.
[0148] In another exemplary embodiment, a computer storage medium is also provided, and when the program instructions are executed by a processor, the steps of the TBOX test method described in any of the above method embodiments are implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0149] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0150] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0151] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A TBOX testing method, characterized in that: include: Determine the test items for TBOX; Generate corresponding first target data according to the test item; Controlling the TBOX to upload the first target data to the national standard platform; The second target data corresponding to the test item is captured from the national standard platform, and a test result is generated according to the second target data and a test standard; the test standard is a test standard corresponding to the test item.
2. The TBOX testing method according to claim 1, characterized in that: If the test item is a login data test, the method of capturing second target data corresponding to the test item from the national standard platform and generating a test result according to the second target data and the test standard includes: Collecting first login data from the TBOX; Capture the second login data from the national standard platform; A test result is generated according to the first login data and the second login data.
3. The TBOX testing method according to claim 1, characterized in that: If the test item is a data reporting period test, the method of capturing second target data corresponding to the test item from the national standard platform and generating a test result according to the second target data and the test standard includes: Capture each first test data from the national standard platform; the first test data is the data reported by the TBOX to the national standard platform; Calculate the data reporting period according to the reporting time of each first test data; The data reporting period is compared with the reporting period standard to generate a test result.
4. The TBOX testing method according to claim 1, characterized in that: If the test item is a data reissue mechanism test, the method of capturing second target data corresponding to the test item from the national standard platform and generating a test result according to the second target data and the test standard includes: Capture reissue data from the national standard platform; the reissue data is data uploaded to the national standard platform after the TBOX meets the reissue mechanism triggering condition; The reissued data is compared with the data reissue mechanism standard to generate a test result.
5. The TBOX testing method according to claim 1, characterized in that: If the test item is a test that triggers a level 3 alarm, the method of capturing second target data corresponding to the test item from the national standard platform and generating a test result according to the second target data and the test standard includes: Capture second test data from the national standard platform; wherein the second test data is data uploaded to the national standard platform after the TBOX is triggered to trigger the third level alarm, and the second test data includes: pre-alarm data within a first predetermined time before the alarm is triggered, and post-alarm data within a second predetermined time after the alarm is triggered; Determine a first data upload mechanism for the pre-alarm data, and determine a second data upload mechanism for the post-alarm data; Generate a test result according to the first data upload mechanism, the second data upload mechanism and the data upload mechanism standard.
6. The TBOX testing method according to claim 1, characterized in that: If the test item is a data consistency test, generating corresponding first target data according to the test item includes: The first national standard data is generated according to the national standard data comparison table and the CANOE tool; the first national standard data is the whole vehicle data uploaded by the TBOX to the national standard platform.
7. The TBOX testing method according to claim 6, characterized in that: The capturing of second target data corresponding to the test item from the national standard platform, and generating a test result according to the second target data and the test standard, includes: Collecting the first national standard data from the TBOX; Capture second national standard data from the national standard platform; the second national standard data is the whole vehicle data uploaded by the TBOX and received by the national standard platform; The first national standard data is compared with the second national standard data, and a test result is generated according to the comparison result.
8. A TBOX testing device, characterized in that: include: A determination module is used to determine the test items of TBOX; A data generating module, used to generate corresponding first target data according to the test item; A control module, used for controlling the TBOX to upload the first target data to the national standard platform; The result generation module is used to capture the second target data corresponding to the test item from the national standard platform, and generate a test result according to the second target data and the test standard; the test standard is the test standard corresponding to the test item.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of the TBOX testing method according to any one of claims 1 to 7 of the present application through the computer program.
10. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the steps of the TBOX testing method described in any one of claims 1 to 7 of the present application.
Citation Information
Patent Citations
TBOX automatic testing method and device realized in cascading mode
CN112203251A
Method for rapidly carrying out new energy automobile national standard data conformance simulation detection
CN112462742A
Vehicle-mounted remote communication box testing method and system
CN113691422A
Tbox message verification method and device, electronic equipment and storage medium
CN115914433A
TBOX automatic test method and device, electronic equipment and storage medium
CN116016268A