A vehicle message testing method, system and storage medium

By generating and sending standard-compliant message test data and utilizing closed-loop communication equipment, the problem of incomplete message set testing in cooperative intelligent transportation systems was solved, achieving efficient, accurate, and fully covered automated testing, and simplifying the testing process.

CN115493854BActive Publication Date: 2025-10-24CHINA AUTOMOTIVE INNOVATION CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211142438.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-20
Publication Date
2025-10-24
Estimated Expiration
2042-09-20

AI Technical Summary

Technical Problem

In existing technologies, cooperative intelligent transportation systems lack comprehensive testing of message sets for the application layer of vehicle communication systems and application data interaction standards, making it difficult to guarantee the accuracy and consistency of communication data, and the testing process is inconvenient.

Method used

This invention provides a method and system for testing vehicle messages. By generating standard-compliant message test data and utilizing closed-loop communication between a first test device, the device under test, and a second test device, it achieves fully automated testing of message sets covering the application layer of cooperative intelligent transportation systems, vehicle communication systems, and application data interaction standards. It supports diverse generation methods and customized test schemes.

Benefits of technology

It achieves fully automated testing of message sets of cooperative intelligent transportation systems, reducing testing difficulty, improving testing accuracy and efficiency, supporting polling tests of multiple message sets and individual configurations, and reducing human error.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115493854B_ABST
    Figure CN115493854B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a vehicle message test method, system and storage medium. The method comprises: generating message test data, the message test data being used to test any message in a preset message set, the preset message set comprising all message subsets conforming to target standards at each stage, the target standards being cooperative intelligent transport systems, vehicle communication system application layer and application data interaction standards; sending the message test data to a device under test to trigger the device under test to send the message test data to a second test device based on an application under test, the second test device being used to transparently transmit received data to the first test device; and obtaining a test result corresponding to the application under test in the device under test based on the message test data and data received from the second test device. The present disclosure can realize full-coverage automatic testing of the message set and message structure of the standards in the field of cooperative intelligent transport systems.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of cooperative intelligent transportation system, and particularly relates to a vehicle message testing method and system and a storage medium. BACKGROUND

[0002] In recent years, the automobile industry has undergone earth-shattering changes. Under the guidance of industry self-development and related policies, the new generation of automobiles and transportation systems are developing towards networking and intelligentization.

[0003] Among them, the cooperative intelligent transportation system is an intelligent transportation system that realizes intelligent cooperation and coordination between vehicles and infrastructure, between vehicles and vehicles, and between vehicles and people through information interaction between people, vehicles and roads. Through information interaction between each subsystem in the system, various applications such as road safety, traffic efficiency and information services are realized. Therefore, a set of application data interaction standards must be established between vehicles of different manufacturers and between these vehicles and the road infrastructure within the range they can reach to realize interconnection. The widely used and recognized standard in the related field is the cooperative intelligent transportation system, vehicle communication system application layer and application data interaction standard (first stage) and (second stage), which strictly defines 14 related message sets.

[0004] In order to ensure the accuracy and consistency of communication data, it is necessary to perfect the test of related message sets and message structures. SUMMARY

[0005] In order to solve at least one of the above technical problems, the present disclosure provides a vehicle message testing method, system and computer readable storage medium.

[0006] According to some embodiments of the present disclosure, a vehicle message testing method is provided, which comprises: generating message test data, the message test data being used to test any message in a preset message set, the preset message set comprising all message subsets conforming to target standards at each stage, the target standards being cooperative intelligent transportation system, vehicle communication system application layer and application data interaction standard; sending the message test data to a to-be-tested device to trigger the to-be-tested device to send the message test data to a second test device based on a to-be-tested application, the second test device being used to transparently transmit the received data to the first test device; and obtaining a test result corresponding to the to-be-tested application in the to-be-tested device based on the message test data and the data received from the second test device.

[0007] In some possible implementation, before the message test data is generated, the method further includes: displaying a test data configuration interface, the test data configuration interface including a message subset selection control; in response to a triggering instruction of the message subset selection control, determining at least one target message subset; and the message test data is generated based on the at least one target message subset.

[0008] In some possible implementation, the test data configuration interface further includes a generation mode selection control; and the message test data is generated based on the at least one target message subset, including: in a case where the generation mode selection control indicates a first generation mode, generating a template file conforming to a standard corresponding to the at least one target message subset, and obtaining the message test data based on an editing result of the template file, the first generation mode representing that the message test data is generated in a customized manner; and in a case where the generation mode selection control indicates a second generation mode, obtaining data generation reference information, and automatically generating the message test data conforming to the standard corresponding to the at least one target message subset based on the data generation reference information, the second generation mode representing that the message test data is automatically generated in a random manner.

[0009] In some possible implementation, the standard corresponding to the at least one target message subset includes at least one of a data name, a data value, and a data nesting relationship; and the data generation reference information includes at least one of a data range and a parameter of a data model conforming to the standard corresponding to the at least one target message subset, the data model including a linked list or a union.

[0010] In some possible implementation, before the message test data is generated, the method further includes: displaying a control parameter configuration interface; in a case where a time control in the control parameter configuration interface is triggered, obtaining a test duration parameter, the test duration parameter being used to limit a test duration; and in a case where a data volume control in the control parameter configuration interface is triggered, obtaining a test data volume parameter, the test data volume parameter being used to limit an upper limit value of the generated message test data.

[0011] In some possible implementation, the message test data is sent to the device under test to trigger the device under test to send the message test data to a second test device based on a to-be-tested application, including: the message test data is sent to the device under test through a wireless local area network to trigger the device under test to send the message test data to the second test device based on the to-be-tested application; and the second test device is configured to receive data sent by the device under test through an air interface, and transmit the received data to the first test device through a wireless local area network.

[0012] In some possible implementation manners, the to-be-tested device is configured to send, to the to-be-tested application, message test data of the first test device to the to-be-tested device in an interface format of the to-be-tested application; and the to-be-tested application is configured to send the received message test data to the second test device through an air interface.

[0013] In some possible implementation manners, the test result corresponding to the to-be-tested application in the to-be-tested device is obtained based on the message test data and the data received from the second test device, including: in a case where the data received from the second test device is consistent with the message test data, the test result indicates that the communication is normal; and in a case where the data received from the second test device is inconsistent with the message test data, the test result indicates that the communication is not normal.

[0014] According to some embodiments of the present disclosure, a vehicle message test system is provided, and the system includes a first test device, a second test device, and a to-be-tested device, and the system is applicable to the vehicle message test method in any one of the above embodiments.

[0015] According to some embodiments of the present disclosure, a computer readable storage medium is provided, and the computer readable storage medium stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by a processor to implement the vehicle message test method in any one of the above embodiments.

[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

[0017] The present disclosure has the following beneficial effects:

[0018] The first test device of the present disclosure can generate message test data conforming to all message sets of the cooperative intelligent transport system, the application layer of the vehicle communication system, and the application data interaction standard of the vehicle communication system, and send the message test data to the to-be-tested device, and then send the message test data to the second test device based on the to-be-tested application on the to-be-tested device, and then send the message test data to the first test device based on the second test device, and the first test device can obtain a test result based on the test data generated by itself and the test data received. Through the above method, the present disclosure can realize full-coverage automatic testing of the message sets of the cooperative intelligent transport system, the application layer of the vehicle communication system, and the application data interaction standard of the vehicle communication system. Meanwhile, through customization of the message test data and the test scheme, polling testing of multiple message sets can be realized, and each message set can be configured individually, the message test data generation mode is diversified, and the test automatic stop condition is optional.

[0019] Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the drawings. BRIEF DESCRIPTION OF DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art and the advantages thereof, the drawings required to be used in the embodiments or prior art description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present specification, and other drawings can be obtained by those skilled in the art without creative effort based on these drawings.

[0021] Figure 1 A flowchart of a vehicle message test method according to an embodiment of the present disclosure is shown;

[0022] Figure 2 A flowchart of a method for generating message test data according to an embodiment of the present disclosure is shown;

[0023] Figure 3 A schematic diagram of a test data configuration interface according to an embodiment of the present disclosure is shown;

[0024] Figure 4 A flowchart of a method for generating message test data according to a first generation mode according to an embodiment of the present disclosure is shown;

[0025] Figure 5 A flowchart of a method for generating message test data according to a second generation mode according to an embodiment of the present disclosure is shown;

[0026] Figure 6 A schematic diagram of a control parameter configuration interface according to an embodiment of the present disclosure is shown;

[0027] Figure 7 A schematic diagram of a framework of a vehicle message test system according to an embodiment of the present disclosure is shown;

[0028] Figure 8 A flowchart of a first test device according to an embodiment of the present disclosure is shown;

[0029] Figure 9 A flowchart of a device under test according to an embodiment of the present disclosure is shown;

[0030] Figure 10 A flowchart of a second test device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present specification will be described clearly and completely in the embodiments of the present specification in combination with the drawings in the embodiments of the present specification. Obviously, the described embodiments are only some of the embodiments of the present specification, rather than all the embodiments. Based on the embodiments in the present specification, all other embodiments obtained by those skilled in the art without creative work belong to the scope of protection of the present application.

[0032] It should be noted that the terms "first", "second" and the like in the description and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or server including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0033] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the drawings represent functionally the same or similar elements. Although various aspects of the embodiments are illustrated in the drawings, the drawings are not necessarily drawn to scale unless specifically indicated.

[0034] The word "exemplary" is used herein in the sense of being an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.

[0035] The term "and / or", merely used as a descriptive correlation between associated objects, means that there can be three relationships, for example, A and / or B, which can mean that A exists alone, A and B exist together, and B exists alone. In addition, the term "at least one" herein means any one of the plurality or any combination of at least two of the plurality, for example, including at least one of A, B and C can mean including any one or more elements selected from the set consisting of A, B and C.

[0036] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the specific embodiments below. Those skilled in the art should understand that the present disclosure can also be implemented without some specific details. In some examples, methods, means, elements and circuits well known to those skilled in the art are not described in detail, in order to highlight the main idea of the present disclosure.

[0037] The Cooperative Intelligent Transport System, the application layer of the vehicle communication system, and the application data interaction standard standardize the communication in the related field, and in order to ensure the accuracy and consistency of the communication data, the related message set meeting the above interaction standard needs to be tested, but at present, only part of the message set has been tested, and the full coverage test of the related message set has not been realized, and meanwhile, the acquisition of the test data of the related message set and the test process are inconvenient and imperfect in actual application. Therefore, the embodiments of the present disclosure provide a vehicle message test method, a system, and a computer readable storage medium, which are used to realize the full coverage test of the related message set, reduce the difficulty of acquiring the test data of the related message set, improve the automation of the test, and facilitate the use of the test personnel.

[0038] Figure 1 A flowchart of a vehicle message test method according to an embodiment of the present disclosure is shown as follows, Figure 1 The method includes the following steps.

[0039] S101: generating message test data, the message test data is used to test any message in a preset message set, the preset message set includes all message subsets meeting the target standard in each stage, and the target standard is the Cooperative Intelligent Transport System, the application layer of the vehicle communication system, and the application data interaction standard.

[0040] The message test data of the present disclosure can be a conventional type of data, a linked list type of data, or a joint type of data, the preset message set of the present disclosure can be the Basic Safety Message (BSM) of the vehicle, the Map Message (MAP) of the vehicle, the Roadside Safety Message (RSM) of the vehicle, the Signal Light Message (SPAT) of the vehicle, the traffic event information and traffic sign information (RS I) published by the roadside unit to the surrounding vehicle unit, the private message format (TEST) for testing, the correction information (RTCM), the message (RSC) for vehicle cooperation or guidance by the roadside unit, the perception sharing message (SSM) of the traffic participant, the road obstacle, and the traffic event, the vehicle intention and request message (VIR), the message (PAM) of the internal map of the station, the basic safety message (PSM) of the vulnerable traffic participant (pedestrian, non-motor vehicle), the connectionless vehicle fleet management message (CLPMM), and the vehicle payment message (VPM) of the vehicle, and the Cooperative Intelligent Transport System, the application layer of the vehicle communication system, and the application data interaction standard of the present disclosure mainly refer to the Cooperative Intelligent Transport System, the application layer of the vehicle communication system, and the application data interaction standard numbered T / CSAE 53-2020 and T / CSAE 157-2020.

[0041] In an embodiment, the tester selects a message set to be tested in the current test according to test requirements, the message set is VPM from 14 message sets conforming to the Cooperative Intelligent Transport System, Vehicle Communication System Application Layer and Application Data Interaction Standard published by the Society of Automotive Engineers of China, and the first test device generates corresponding message test data according to the selected message set VPM.

[0042] In some embodiments of the present disclosure, the generating the message test data further includes the steps of: Figure 2

[0043] S201: Display a test data configuration interface.

[0044] In an embodiment of the present disclosure, the test data configuration interface is as shown in Figure 3 The interface includes a message subset selection control and a generation mode selection control.

[0045] S202: Select a message subset to be tested in the message subset selection control.

[0046] As can be seen from the above, the message subset selection control can select at least one message subset for testing, and the selectable message subset of the message selection control includes the above-mentioned 14 message sets conforming to the Cooperative Intelligent Transport System, Vehicle Communication System Application Layer and Application Data Interaction Standard published by the Society of Automotive Engineers of China.

[0047] In some embodiments, the message subset selection control can be composed of sub-controls corresponding to the 14 message sets, and the tester can select a message set by triggering the sub-control corresponding to the message set.

[0048] S203: Select a generation mode in the generation mode selection control.

[0049] In an embodiment of the present disclosure, the tester selects a generation mode in the generation mode selection control of the test data configuration interface, and the first test device generates message test data corresponding to the message subset selected in the previous step based on the generation mode selected by the tester.

[0050] In some other embodiments of the present disclosure, the indication result of the generation mode selection control includes a first generation mode and a second generation mode, and the first test device generates corresponding message test data based on the first generation mode or the second generation mode. The first generation mode means that the message test data is specified in a custom manner, and the second generation mode means that the message test data is automatically generated in a random manner. As shown in Figure 4 When the indication result of the generation mode selection control is the first generation mode, the first test device generates a standard template file corresponding to the target message subset based on the target message subset determined in the previous step, and obtains corresponding message test data based on the editing result of the template file.​Figure 5 As shown, when the result of the generation mode selection control indicates the second generation mode, the first test device acquires data generation reference information and automatically generates message test data conforming to the standard corresponding to the target message subset based on the data generation reference information.

[0051] S204: Generate message test data based on the selected message subset and the generation mode.

[0052] In a specific embodiment, the message subset selected by the test personnel is message set A, which represents any message subset of the 14 message sets, and the selected generation mode is the first generation mode. The first test device generates message test data corresponding to message set A based on message set A and the first generation mode as follows: the first test device generates structured data of message set A conforming to the cooperative intelligent transportation system, application layer and application data interaction standard for vehicle communication systems published by the Society of Automotive Engineers of China, and then generates an XML file (XML can be used to mark data and define data types) corresponding to message set A according to the data name, data value and data nesting relationship in the generated structured data. At this time, the XML file is the template file, and the test personnel can edit the template file, i.e., the XML file, at this time, including setting specified data and other operations, to obtain message test data corresponding to message set A in this test.

[0053] In some embodiments, the XML file can be parsed and displayed by the first test device, and the test personnel can see the detailed information of the structured data contained in the XML on the display interface and can also edit it.

[0054] In another specific embodiment, the message subset selected by the test personnel is message set B, which represents any message subset of the 14 message sets, and the selected generation mode is the second generation mode. The first test device generates message test data corresponding to message set B based on message set B and the second generation mode as follows: the test personnel sets data generation reference information according to test requirements. In this embodiment, the data generation reference information includes data range and parameters of a data model conforming to the standard corresponding to message set B. The data model includes a linked list or a union. Specifically, for regular data, the maximum value, minimum value and random value can be set, the linked list data can be set to the maximum value, minimum value and random value of the linked list number, and the union data can be set to the unique value and random value. The first test device automatically generates message test data corresponding to message set B based on the data generation reference information.

[0055] From the above, through S201 to S204, the tester can select the message set to be tested based on the message subset selection control in the test data configuration interface, and specify the generation mode of the message test data based on the generation mode selection control, which can enable the tester to visually interact with the first test device, and also diversify the message test data generation mode to meet different testing requirements.

[0056] S102: Send the message test data to the device under test to trigger the device under test to send the message test data to the second test device based on the application under test, and the second test device is configured to transmit the received data to the first test device.

[0057] In an embodiment, the tester selects a message subset C, and the generation mode of the message subset C is the first generation mode. The first test device generates the corresponding message test data based on the message subset C and the first generation mode, and then sends the message test data to the device under test through a wireless local area network. After receiving the message test data, the device under test sends the message test data to the application under test according to the interface format of the application under test. After receiving the message test data, the application under test sends the data to the second test device through the air interface. The second test device is also configured with the same application under test as the device under test. After receiving the data sent by the application under test of the device under test through the air interface, the second test device transmits the received data to the first test device through a wireless local area network.

[0058] S103: Based on the message test data and the data received from the second test device, the test result corresponding to the application under test in the device under test is obtained.

[0059] The first test device compares the data sent by the second test device through the wireless local area network with the message test data. If the two data are consistent, the test result indicates that the communication is normal. If the two data are inconsistent, the test result indicates that the communication is not normal.

[0060] In a specific embodiment, the application to be tested is a V2X module in the field of vehicle communication. V2X, i.e. Vehicle to Everything / Vehicle to X, is a vehicle wireless communication technology, which is intended to be centered on vehicles, to communicate with surrounding vehicles, devices and base stations, so as to obtain real-time traffic information such as real-time road conditions, road information and pedestrian information, so as to improve driving safety, reduce congestion, improve traffic efficiency and provide vehicle entertainment information, and is a key technology of future intelligent transportation systems. The first test device generates relevant message test data according to test requirements, and sends the message test data to the device to be tested through a wireless local area network. The device to be tested sends the message test data to the V2X module according to the communication interface format of the V2X module. The V2X module sends the message test data to the V2X module of the second test device through the air interface. The second test device transmits the received data to the first test device through the wireless local area network. The first test device compares the message test data with the data transmitted by the second test device, and determines whether the communication of the V2X module is normal. When the comparison result is inconsistent, it indicates that the communication between the V2X modules is not normal. When the comparison result is consistent, it indicates that the communication between the V2X modules is normal, and the test result of the application to be tested on the device to be tested is obtained.

[0061] As can be seen from the above, the first test device and the device to be tested transmit data through a wireless local area network. The wireless local area network has good data transmission effect and high data transmission accuracy, which can ensure that the message test data sent by the first test device to the device to be tested is correct. The device to be tested and the second test device transmit data through the application to be tested. The second test device and the first test device transmit data through a wireless local area network, which can also ensure the accuracy of data transmission. Therefore, when the comparison result of the first test device is inconsistent, it indicates that the data transmission between the device to be tested and the second test device is incorrect. The device to be tested and the second test data communicate based on the application to be tested, which indicates that the test result of the application to be tested is based on the communication of the target message subset selected in the test. Conversely, when the comparison result of the first test device is consistent, it indicates that the communication is normal.

[0062] In some embodiments of the present disclosure, as Figure 6 Before generating the message test data, the following steps are further included: displaying a control parameter configuration interface, the control parameter configuration interface including a time control and a data volume control. When the time control in the control parameter configuration interface is triggered, a test duration parameter is obtained, which is used to limit the test duration. When the data volume control in the control parameter configuration interface is triggered, a test data volume parameter is obtained, which is used to limit the upper limit value of the generated message test data.

[0063] In a specific embodiment, the tester triggers the time control, sets the test duration to 10 minutes, and the test is automatically stopped when the test duration reaches 10 minutes.

[0064] In another specific embodiment, the tester triggers the data volume control, sets the upper limit of the generated message test data to 100, and the first test device generates 100 test data. After the test of the 100 test data is completed, the test is automatically stopped.

[0065] Through the time control and the data volume control, the tester can set the test stop condition according to the test requirements before the test starts. When the test stop condition is reached, the test is automatically stopped, and the tester does not need to frequently operate during the test. Therefore, the automated test provided by the present disclosure is convenient for the tester to use in practice, and has high practicability.

[0066] Figure 7 A frame diagram of a vehicle message test system according to an embodiment of the present disclosure is shown. As shown in the figure, the vehicle message test system provided by the present disclosure includes a first test device, a device under test, and a second test device. The system provided by the present disclosure is suitable for the vehicle message test method of any one of the above embodiments provided by the present disclosure. As shown in the figure, the communication mode between the first test device and the device under test is a wireless local area network, the communication mode between the device under test and the second test device is air interface communication, and the communication mode between the second test device and the first test device is a wireless local area network. Through the system, the above message test data can be generated by the first test device, sent to the device under test through the wireless local area network, sent to the second test data by the device under test through the air interface communication, and finally returned to the first test device through the wireless local area network by the second test device. In this way, a closed loop of data transmission is completed, and the test result is obtained by comparing the sent and received data by the first test device.

[0067] The working processes of the first test device, the device under test, and the second test device will be described in detail below. Figure 8 , 9 , 10

[0068] As Figure 8As shown, this is a functional flow chart of the first test device. First, the first test device determines a target message subset; second, determines a generation mode. When the generation mode is the first generation mode, a template file of the target message subset is generated, and the template file is edited to generate message test data for the target message subset. When the generation mode is the second generation mode, data generation reference information is obtained, and corresponding message test data is generated based on the selected target message subset and the data generation reference information; third, control parameters are set. When the time control is triggered, the maximum test duration can be set. When the test duration reaches the maximum duration, the test automatically stops. When the data volume control is triggered, the maximum test data volume can be set. When the message test data reaches the maximum data volume, the test automatically stops; in the third step, the generated message test data is sent to the device under test via a wireless local area network; fourth, the data sent by the second test device is received via the wireless local area network; fifth, the received data is compared with the generated message test data to obtain a test result. When the received data is consistent with the generated message test data, the test result indicates that the communication is normal. When the received data is inconsistent with the generated message test data, the test result indicates that the communication is abnormal.

[0069] like Figure 9 As shown in the figure, it is a functional flow chart of the device under test. First, the device under test receives the message test data sent by the first test device through the wireless local area network; second, the device under test transmits the received message test data to the application under test according to the communication format of the application under test located on the device under test; third, the application under test sends the message test data to the second test device through the air interface.

[0070] like Figure 10 As shown, this is a functional flow chart of the second test device. First, the second test device receives data sent by the test application on the device to be tested through the application to be tested and the air interface configured thereon; second, the second test device transparently transmits the received data to the first test device through the wireless local area network.

[0071] To facilitate understanding of the technical solution of the present disclosure and highlight the ease of operation of the test system provided by the present disclosure, a specific embodiment is given below from the perspective of a tester:

[0072] Testers will test the communication functionality of the V2X module in the vehicle-to-everything (V2X) field, based on 14 related message sets strictly defined by cooperative intelligent transportation systems, vehicle-to-vehicle communication system application layers, and application data exchange standards.

[0073] The tester sets up a test environment, connects the first test device to the device under test via a wireless LAN, confirms that the air interface communication function between the device under test and the second test device is normal, and connects the second test device to the first test device via a wireless LAN;

[0074] The tester operates the first test device to generate message test data, the first test device displays a test data configuration interface, the test data configuration interface includes a message subset selection control, the tester selects message sets D and E as target message subsets for this test on the message subset selection control, the message set D and the message set E represent any message subset of the above-mentioned 14 message sets, the first test device determines the target message subset in response to the triggering instruction of the message subset selection control, then the tester selects a generation mode on the test data interface generation mode selection control, the generation mode selected by the tester for the message set D is a first generation mode, the first test device generates corresponding message test data based on the message set D and the first generation mode, including: the first test device generates structure data of the message set D in accordance with the cooperative intelligent transportation system, the application layer of the vehicle communication system, and the application data interaction standard published by the Society of Automotive Engineers of China, and the above-mentioned first test device generates an XML file corresponding to the message subset according to the data name, data value, and data nesting relationship in the generated structure data, at this time, the XML file is the above-mentioned template file, the tester can edit the above-mentioned template file, i.e., the XML file, at this time, including setting specified data and other operations, to obtain the message test data corresponding to the message set D in this test, the generation mode selected by the tester for the message set E is a second generation mode, the tester sets data generation reference information according to the test requirements, in this embodiment, the data generation reference information includes data range and parameters of a data model conforming to the standard corresponding to the message set E, the above-mentioned data model includes a linked list or a joint body, specifically, for regular data, the maximum value, the minimum value, and the random value can be set, the linked list type data can set the maximum value, the minimum value, and the random value of the linked list number, and the joint body type data can set the unique value and the random value. The first test device automatically generates message test data corresponding to the message set E according to the above-mentioned data generation reference information, thus, the message test data corresponding to the message sets D and E is generated;

[0075] The tester operates the first test device to set a test stop condition, the first test device displays a control parameter configuration interface, the control parameter configuration interface includes a time control and a data volume control, the tester sets the test duration to 5 minutes on the time control for the message set D, the test for the message set D will automatically stop when the test duration reaches 5 minutes, the tester sets the maximum test volume of the message test data to 30 on the data volume control for the message set E, the test for the message set E will automatically stop when the test data volume reaches 30;

[0076] The tester performs network configuration to determine the IP address and the port number of the device under test, facilitating communication between the first test device and the device under test, and to determine the IP address and the port number of the first test device, facilitating communication between the second test device and the first test device;

[0077] After the above operation is completed, the tester can perform a test run, the tester clicks the start key on the first test device to start the test, the first test device responds to the start key, sends the message test data corresponding to the message set D to the to-be-tested device through the wireless local area network and the IP address and port number of the to-be-tested device, after the to-be-tested device receives the message test data, sends the message test data to the V2X module on it according to the communication format of the V2X module, the V2X module sends the received message test data to the V2X module on the second test device through the air interface, the second test device sends the received message test data to the first test device through the wireless local area network, and the above-mentioned closed-loop operation of data transmission is repeated until the test time reaches 5 minutes, the test of the message set D is automatically stopped, the test of the message set E is started, the message test data corresponding to the message set E is sent to the to-be-tested device through the wireless local area network and the IP address and port number of the to-be-tested device, after the to-be-tested device receives the message test data, the message test data is sent to the V2X module on it according to the communication format of the V2X module, the V2X module sends the received message test data to the V2X module on the second test device through the air interface, the second test device sends the received message test data to the first test device through the wireless local area network, and the above-mentioned closed-loop operation of data transmission is repeated until the test data reaches 30, the test of the message set E is automatically stopped. The first test device compares the data sent by the second test device with the message test data generated under the operation of the tester, that is, the data communication result of the V2X module based on the message set D and E is obtained, when the comparison result is consistent, the test result indicates that the data communication result of the V2X module based on the message set D or E is normal at this time, and when the comparison result is inconsistent, the test result indicates that the data communication result of the V2X module based on the message set D or E is abnormal at this time.

[0078] From the above embodiment, the tester can generate the message test data of the 14 related message sets in accordance with the test requirements on the first test device, and the message test data is in accordance with the strict definition of the 14 related message sets in the C-ITS, the application layer of the vehicle communication system and the application data interaction standard, meanwhile, the tester can independently set the generation mode of the test data and the test automatic stop condition, and the tester can select multiple message sets at one time according to the test requirements, and the message test data generation mode and the test termination condition of each message set can be configured independently, and in the case of selecting multiple message sets at one time, the polling test of the message sets can be realized. For the test results, the tester can also obtain the test results on the first test device intuitively, and the tester can complete the communication test of any message set automatically by interacting with the first test device based on the vehicle message test method and the system provided by the present disclosure, which is very convenient for the tester, and is conducive to reducing the workload and difficulty of the tester, and the reasonable use of the related equipment greatly improves the test amount of the message data per unit time, and another advantage of the automation is that the errors caused by manual participation can be reduced.

[0079] On the basis of the above-mentioned embodiments of the vehicle message test method, another embodiment of the present disclosure provides a storage medium including a stored computer program, wherein when the computer program runs, the device where the storage medium is located performs the vehicle message test method of any embodiment of the present disclosure.

[0080] The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium can be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (a non-exhaustive list) of the computer readable storage medium include a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a hole and protrusion structure, and any suitable combination of the above. The computer readable storage medium used herein is not to be interpreted as a transitory signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (for example, an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.

[0081] The computer readable program instructions can also be loaded onto a computer or other programmable information processing apparatus to cause a series of operations to be performed on the computer or other programmable information processing apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable information processing apparatus implement the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0082] Computer readable program instructions for carrying out operations of the present disclosure can be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) can execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present disclosure.

[0083] Various aspects of the disclosure have been described in connection with the example methods, apparatus and computer program products of the disclosure, various aspects of the disclosure have been described in connection with flow diagrams and / or block diagrams. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer readable program instructions.

[0084] These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions can also be stored in a computer readable storage medium that can include a non-transitory computer readable storage medium that can be a computer- readable storage medium having no data, programs, program modules, e.g., instructions for operation, or digital content stored thereon or therein for a short time or not at all. The computer readable storage medium can also have instructions stored thereon or therein which may

[0085] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0086] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0087] In summary, the present disclosure provides a vehicle message test method, system and computer readable storage medium. The message test data is generated, and is used to test any message in a preset message set. The preset message set includes all message subsets that meet target standards at each stage. The target standards are cooperative intelligent transportation systems, vehicle communication system application layer and application data interaction standards. The message test data is sent to a device under test to trigger the device under test to send the message test data to a second test device based on an application under test. The second test device is used to transparently transmit the received data to the first test device. Based on the message test data and the data received from the second test device, a test result corresponding to the application under test in the device under test is obtained. The technical solution of the present disclosure can flexibly complete full-coverage automatic testing of 14 message sets in combination with test requirements based on the message set of the field standard and the data test system composed of the first test device, the device under test and the second test device provided by the present disclosure. At the same time, it is convenient for the tester to operate, and can also avoid manual errors in the test process to a certain extent.

[0088] The embodiments of the present disclosure have been described above, and the description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes are obvious to those skilled in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles, practical applications or technical improvements in the market of the embodiments, or to enable other ordinary skilled persons in the art to understand the embodiments disclosed herein.

Claims

1. A method of testing a vehicle message, characterized by, The method is applied to a first test device, and the method comprises: displaying a test data configuration interface, the test data configuration interface comprising a message subset selection control and a generation mode selection control; in response to a triggering instruction for the message subset selection control, determining at least one target message subset, the target message subset representing any message subset in a preset message set; displaying a control parameter configuration interface; in a case where a time control in the control parameter configuration interface is triggered, obtaining a test duration parameter; in a case where a data volume control in the control parameter configuration interface is triggered, obtaining a test data volume parameter; generating message test data based on the test data volume parameter, the message test data being used to test any message in the preset message set, the preset message set comprising all message subsets that meet target standards at various stages, the target standards being Cooperative Intelligent Transport Systems, Vehicle Communication System Application Layer, and Application Data Interaction Standards; the generating of the message test data comprising: in a case where the generation mode selection control indicates a second generation mode, obtaining data generation reference information, and automatically generating the message test data that meets the standards corresponding to the at least one target message subset based on the data generation reference information, the second generation mode representing automatic generation of the message test data in a random manner; sending the message test data to a device under test, to trigger the device under test to send the message test data to a second test device based on an application under test, the second test device being used to transparently transmit received data to the first test device; based on the message test data and data received from the second test device, obtaining a test result corresponding to the application under test in the device under test; real-time monitoring of the test duration, and automatic stopping of the test when the test duration reaches the test duration parameter.

2. The method of claim 1, wherein, The test data configuration interface further comprises a generation mode selection control; the generating of the message test data comprises: in a case where the generation mode selection control indicates a first generation mode, generating a template file that meets the standards corresponding to the at least one target message subset, and obtaining the message test data based on an editing result of the template file, the first generation mode representing generation of the message test data in a customized manner.

3. The method of claim 2, wherein, The standards corresponding to the at least one target message subset comprise at least one of the following: data name, data value, and data nesting relationship; The data generation reference information comprises at least one of the following: data range, and parameters of a data model that meets the standards corresponding to the at least one target message subset, the data model comprising a linked list or a union.

4. The method according to any one of claims 1 to 3, characterized in that, The sending of the message test data to the device under test, to trigger the device under test to send the message test data to the second test device based on the application under test, comprises: sending the message test data to the device under test through a wireless local area network, to trigger the device under test to send the message test data to the second test device based on the application under test. The second test device is configured to receive the data sent by the to-be-tested device through an air interface, and transmit the received data to the first test device through a wireless local area network.

5. The method according to any one of claims 1 to 3, characterized in that, The triggering the to-be-tested device to send the message test data to the second test device based on the to-be-tested application comprises: The to-be-tested device is configured to send the message test data sent by the first test device to the to-be-tested application according to an interface format of the to-be-tested application. The to-be-tested application is configured to send the received message test data to the second test device through an air interface.

6. The method according to any one of claims 1 to 3, characterized in that, The obtaining of the test result corresponding to the to-be-tested application in the to-be-tested device based on the message test data and the data received from the second test device comprises: In a case where the data received from the second test device is consistent with the message test data, the test result indicates that the communication is normal. In a case where the data received from the second test device is inconsistent with the message test data, the test result indicates that the communication is not normal.

7. A vehicle message testing system, characterized by The system comprises a first test device, a second test device, and a to-be-tested device, and is suitable for the vehicle message test method in any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the vehicle message test method in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Simple heavy-duty vehicle remote terminal data transmission consistency verification device and method

    CN114039775A

  • Integrated tester and integrated testing method for media server

    CN1756200A