C-v2x protocol stack air interface packet capturing test method, test device and storage medium
By using a C-V2X protocol stack air interface packet capture testing device and method, air interface data packets can be directly captured from the network layer of the vehicle unit and decoded and displayed. This solves the problem of difficult message set location in development testing, achieves efficient test result analysis, and improves testing efficiency.
Patent Information
- Application Number
- CN202111417727.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-25
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2041-11-25
AI Technical Summary
During the development and testing of the C-V2X vehicle-road cooperative system, the development and testing personnel were unable to quickly and accurately locate problems in the message set, resulting in low testing efficiency.
This invention provides a C-V2X protocol stack air interface packet capture testing device and method. It captures air interface data packets directly from the network layer of the vehicle unit through the communication layer, and decodes and displays them through the message layer and application layer, thereby reducing packet loss rate and improving the accuracy of test results. Testers can directly view and manipulate message sets.
It improves the accuracy of packet loss rate in test results, helps developers and debuggers quickly analyze message sets, reduces development and debugging time, and improves testing efficiency.
Smart Images

Figure CN116170773B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle networking technology, and in particular to a C-V2X protocol stack air interface packet capture test method, test device and storage medium. Background Technology
[0002] In the 5G era, everything will be interconnected. People, things, and objects can connect via wireless networks, and C-V2X vehicle-to-everything (C-V2X) technology is gradually becoming mainstream. C-V2X is a wireless communication technology that studies the communication between vehicles, between vehicles and objects, and between vehicles and people, and it plays an important role in safe driving.
[0003] In the C-V2X vehicle-to-infrastructure (V2I) system, "intelligent vehicles" and "smart roads" are involved. "Intelligent vehicles" are achieved by installing On-Board Units (OBUs) on the vehicles. The OBUs collect, process, analyze, and predict information in real time, and output the results to the vehicle control unit, which then intervenes in the vehicle's driving behavior. "Smart roads" achieve comprehensive perception and prediction of the traffic environment through a roadside system composed of roadside equipment and Roadside Units (RSUs). Roadside equipment such as traffic sensing devices, V2X traffic signal controllers, and AIoT traffic lights send various data to the RSUs, which perform unified analysis and prediction. The RSUs then push the results back to the vehicle's OBUs via the C-V2X protocol stack, thus enabling road-to-vehicle communication and providing comprehensive environmental perception results for V2I-assisted autonomous driving.
[0004] During the development and testing of C-V2X vehicle-road cooperative systems, various issues such as GPS drift, inaccurate MAP message set delivery, and packet loss from the roadside system often cause the vehicle-side scenarios to fail to trigger. This makes it difficult for development and testing personnel to quickly and accurately locate the problems in the message sets, resulting in low testing efficiency. Summary of the Invention
[0005] In view of this, it is necessary to provide a C-V2X protocol stack air interface packet capture test method, test device and storage medium to solve the technical problems of low test efficiency in the existing technology, which make it impossible for development and test personnel to quickly and accurately locate the message set in the C-V2X vehicle-road cooperative system.
[0006] To achieve the above objectives, one embodiment of the present invention provides a C-V2X protocol stack air interface packet capture testing device, the testing device comprising:
[0007] The communication layer is used to capture air interface data packets from the network layer of the vehicle unit from the terminal under test and transmit the air interface data packets to the message layer, wherein the air interface data packets are formed by message set encoding of data sensed by the sensing device of the terminal under test;
[0008] The message layer, connected to the communication layer, is used to decode the air interface data packets to obtain the corresponding message set;
[0009] The application layer, connected to the message layer, is used to perform corresponding operations on the message set according to the operation instructions given by the tester.
[0010] The display layer, connected to the application layer, is used to display the operation results of the message set.
[0011] Optionally, the message layer's decoding process for the air interface data packet includes:
[0012] The air interface data packet is subjected to a first conversion process to obtain DSMP data;
[0013] The DSMP data is then subjected to a second transformation process to obtain SPDU data;
[0014] The SPDU data is then subjected to a third transformation process to obtain BSM or DAS data.
[0015] The BSM or DAS data is decoded to obtain the message set corresponding to the air interface data packet.
[0016] Optionally, the communication layer, message layer, application layer, and display layer are independent of each other, and each of the communication layer, message layer, application layer, and display layer is assigned a thread when the test device is working.
[0017] Optionally, the application layer includes:
[0018] A filtering unit is used to receive filtering conditions input by the tester, filter the message set based on the filtering conditions, and display the filtering results through the display layer.
[0019] A storage unit is used to store the received message set; and / or
[0020] A playback unit is used to play back the captured message set through the display unit.
[0021] Optionally, the display layer includes:
[0022] A message set display box is used to display the message set;
[0023] The message set detail display box is used to display detailed information about each message in the message set; and
[0024] The raw data display box is used to display the air interface data packet.
[0025] Optionally, the network layer of the vehicle-mounted unit supports parallel access of multiple test devices.
[0026] Optionally, the vehicle-mounted unit connected to the communication layer includes:
[0027] The hardware layer is used to remove the header from PC5 data packets from the terminal under test and transmit the header-removed PC5 data packets to the hardware abstraction layer.
[0028] A hardware abstraction layer, connected to the hardware layer, is used to adapt the received PC5 data packets to obtain air interface data packets corresponding to the PC5 data packets, and to transmit the air interface data packets to the network layer.
[0029] The network layer, connected to the hardware abstraction layer and the communication layer, is used to send the received air interface data packets to the test device.
[0030] Optionally, the communication layer of the test device and the network layer of the vehicle unit communicate via SOCKTET.
[0031] Optionally, the terminal under test transmits the PC5 data packet to the vehicle unit via dedicated short-range communication.
[0032] Optionally, the message set includes BSM messages, SPAT messages, MAP messages, RSI messages, and RSM messages.
[0033] Another embodiment of the present invention provides a method for testing C-V2X protocol stack over-the-air packet capture, comprising the following steps:
[0034] The air interface data packets from the terminal under test are captured from the network layer of the vehicle unit and transmitted to the message layer. The air interface data packets are formed by encoding a message set of data sensed by the sensing device of the terminal under test.
[0035] The air interface data packets are de-signed and decoded to obtain the corresponding message set;
[0036] Perform corresponding operations on the message set according to the operation instructions given by the tester, and display the operation results of the message set.
[0037] Optionally, the steps of the message layer in designing and decoding the air interface data packets include:
[0038] The air interface data packet is processed by removing the header to obtain SPDU data;
[0039] The SPDU data is de-signed to obtain message set data containing message set and DAS data;
[0040] The message set data is decoded to obtain the message set contained in the air interface data packet.
[0041] Optionally, the test method further includes:
[0042] The system receives the filtering conditions input by the tester, filters the message set based on the filtering conditions, and displays the filtering results through the display layer.
[0043] Save the received message set; and / or
[0044] The captured message set is replayed through the display unit.
[0045] Another embodiment of the present invention provides a computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to execute the C-V2X protocol stack air interface packet capture test method as described above.
[0046] Compared with existing technologies, the C-V2X protocol stack air interface packet capture testing device proposed in this embodiment of the invention captures air interface data packets directly from the network layer of the vehicle unit through the communication layer, reducing packet loss in the transmission of air interface data packets from the network layer to the application layer in the vehicle unit, and improving the accuracy of the packet loss rate in the test results. At the same time, testers can directly view the captured message set on the testing device and perform various operations on the message set by inputting operation commands to assist in the quick and convenient analysis of the message set. This can help development and debugging personnel to quickly analyze the message set on-site, reduce development and debugging time, and improve testing efficiency. Attached Figure Description
[0047] Figure 1 This is a test schematic diagram of a C-V2X vehicle-road cooperative system in the prior art.
[0048] Figure 2 This is a schematic diagram illustrating the working principle of the C-V2X protocol stack air interface packet capture testing device of the present invention during testing.
[0049] Figure 3 This is a schematic diagram illustrating the principle of the C-V2X protocol stack air interface packet capture testing device of the present invention during multi-user testing.
[0050] Figure 4 This is a schematic diagram of an embodiment of the air interface packet capture test of the C-V2X protocol stack of the present invention.
[0051] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0052] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0053] The technical terms used in the various embodiments of the C-V2X protocol stack air interface packet capture test method, test device and storage medium of the present invention are explained as follows:
[0054] RSU: Roadside Unit;
[0055] OBU: Onboard Unit;
[0056] V2X: Communication between vehicles and everything else;
[0057] PC: Computer;
[0058] GPS: High-precision maps;
[0059] RSM: Roadside Safety Message Dataset, usually issued by the Roadside Safety Unit (RSU), is used for the identification of dynamic events, such as accidents ahead, road closures, etc.
[0060] BSM: Basic Security Message Dataset, mainly includes GPS, speed, heading angle, steering acceleration, hazard lights, etc., and is mostly used for data interaction in V2V scenarios;
[0061] SPAT: Traffic light phase timing message set data, also sent by RSU. The roadside RSU integrates signal controllers and is used for vehicle speed guidance, green wave push scenarios, etc.
[0062] RSI: Roadside Information Message Set data, also issued by RSU and distributed by the platform, is mostly used in V2I scenarios, i.e. static event information such as road construction, speed limit signs, and overspeed warnings;
[0063] MAP: Map message dataset. Map messages are used together with SPAT messages. A MAP message can describe an intersection and also correspond to the traffic lights at that intersection.
[0064] socket: A socket is an interface through which applications communicate using network protocols;
[0065] PC5: Direct communication;
[0066] DSA: Announcement message for Dedicated Short Range Communication Service;
[0067] DSM: Dedicated Short Range Communication Short Message Service;
[0068] DSMP: Dedicated Short Range Communication Short Message Protocol;
[0069] SPDU: Session Layer Protocol Data Unit.
[0070] Please refer to Figure 1 , Figure 1This is a test schematic diagram for testing vehicle-to-infrastructure cooperative systems communicating via the C-V2X protocol stack in existing technologies. Figure 1 As shown, the vehicle-to-everything (V2X) cooperative system includes a terminal under test (DUT) and an on-board unit (OBU). During testing, the DUT transmits test data to the OBU via short-range communication. When the OBU's physical access layer receives the test data, it processes the data through the network layer by adding headers, length, and checksums. The processed test data is then transmitted to the message layer, which is part of the V2X protocol stack and primarily parses the data. The message layer transmits the parsed data to the application layer, which logs the received test data. Testers can then analyze the logs to determine if there are any issues such as packet loss or inaccurate data received by the OBU. However, Figure 1 In the test method shown, packet loss may occur during the transmission of test data from the physical access layer to the application layer, thus failing to accurately reflect the true packet loss rate of the on-board unit (OBU). At the same time, testers cannot directly view the test data received by the OBU in real time, resulting in development and testing personnel being unable to quickly and accurately locate problems in the test data, leading to low testing efficiency.
[0071] Example 1
[0072] To address the aforementioned problems, this invention provides a C-V2X protocol stack air interface packet capture and testing device 100, such as... Figure 2 As shown, the test device 100 includes a communication layer 101, a message layer 102, an application layer 103, and a display layer 104. The communication layer 101 captures air interface data packets from the network layer of the vehicle unit from the terminal under test and transmits these packets to the message layer 102. The air interface data packets are encoded from message sets formed by data sensed by the sensing devices of the terminal under test. The message layer 102, connected to the communication layer 101, decodes the air interface data packets to obtain the corresponding message sets. The application layer 103, connected to the message layer 102, performs corresponding operations on the message sets according to the operator's instructions. The display layer 104, connected to the application layer 103, displays the operation results of the message sets.
[0073] Compared with existing technologies, the C-V2X protocol stack air interface packet capture testing device in this embodiment of the invention captures air interface data packets directly from the network layer of the vehicle unit through the communication layer, reducing packet loss in the transmission of air interface data packets from the network layer to the application layer in the vehicle unit, and improving the accuracy of the packet loss rate in the test results. At the same time, testers can directly view the captured message set on the testing device and perform various operations on the message set by inputting operation commands to assist in the quick and convenient analysis of the message set. This can help development and debugging personnel to quickly analyze the message set on-site, reduce development and debugging time, and improve testing efficiency.
[0074] In some embodiments, the test device 100 is a PC terminal. The communication layer 101, message layer 102, application layer 103, and display layer 104 are independent of each other, and each layer of the communication layer 101, message layer 102, application layer 103, and display layer 104 is allocated one thread when the test device 100 is working. That is, the code of each layer of the PC terminal adopts a layered management approach. This layered management approach is conducive to the rapid development of the test device, and when test developers need to make personalized requirements, they only need to modify the corresponding layer. At the same time, allocating one thread to each layer can make full use of the hardware processing power of the PC terminal, without having to worry about the computing power of the on-board unit (OBU), reducing the lag caused by excessive data.
[0075] In some embodiments, the communication layer 101 is specifically a socket communication layer, that is, the test device 100 connects to the network layer of the vehicle unit through socket communication to listen to the air interface data packets of the vehicle unit's network layer. Preferably, the air interface data packets are transmitted from the terminal under test to the vehicle unit and processed by the hardware layer and hardware abstraction layer of the vehicle unit.
[0076] In this design, message layer 102 maintains relative independence in designing and decoding air interface data packets. Message layer 102 only provides interfaces for designing and decoding externally, so developers do not need to concern themselves with the internal content of message layer 102, enabling rapid portability. In some embodiments, the message set includes BSM messages, SPAT messages, MAP messages, RSI messages, and RSM messages.
[0077] In some embodiments, the application layer 103 is responsible for filtering, processing, saving, and replaying the message set obtained after decoding by the message layer 102. Accordingly, the application layer 103 may include one or more of a filtering unit, a saving unit, and a replay unit.
[0078] Specifically, the filtering unit receives the filtering conditions input by the tester, filters the message set based on these conditions, and displays the filtering results through the display layer. It should be noted that the filtering of the message set is based on the keywords involved in different messages. For example, the tester can enter the name of the message or data item to be filtered in the filter input box. The filtering unit filters the message set based on the tester's input filtering conditions, and then the tester can obtain the messages or data items of interest. By setting up the filtering unit, testers can quickly view or analyze certain data messages, improving testing efficiency. The saving unit saves the received message set. By saving the message set on the testing device, it is beneficial for testers to analyze or replay it later. The playback unit is used to replay the captured message set through the display unit; that is, testers can replay the captured message set in the playback interface, making it convenient for developers to view at any time.
[0079] In some embodiments, the display layer 104 comprises three main parts: a message set display box, a message set detail display box, and a raw data display box. Wherein:
[0080] The message set display box is used to display the message set; by displaying the captured message set, testers can quickly determine whether there is packet loss.
[0081] The message set detailed display box is used to display detailed information about each message in the message set. The detailed information for each message includes the values and hierarchical structure of each field. By displaying the detailed information for each message, testers can better determine whether the messages sent by the terminal under test are accurate; and
[0082] The raw data display box is used to display the air interface data packets. By displaying the captured raw data, developers can collect it for code debugging.
[0083] Please refer to this again. Figure 2 ,like Figure 2 As shown, the vehicle-road cooperative system includes a test terminal 20 and an on-board unit 30, and the test device 100 is a PC terminal. The test terminal 20 and the on-board unit 30 are connected via a dedicated short-range communication network, and the network layer of the on-board unit 30 communicates with the test device 100 via socket communication.
[0084] like Figure 3As shown, the terminal under test 20 supporting C-V2X protocol stack communication includes an application layer, an application data interaction service layer, a security service layer, a network layer, a hardware abstraction layer (adaptation layer), and a hardware layer. The terminal under test 20 can be a roadside unit (RSU), an on-board unit (OBU), or any other device capable of providing data to the on-board unit 30. The terminal under test 20 communicates with the on-board unit 30 using the C-V2X protocol stack. The working principle of the terminal under test 20 is as follows:
[0085] 1. After the tested terminal 20 senses surrounding information through its own sensing devices, the application layer fills the message set with DAS data to obtain message set data containing both the message set and DAS data, and then transmits it to the application data interaction service layer. For example, when the tested terminal 20 is an in-vehicle unit, the surrounding information sensed by the tested terminal 20 through its own sensing devices can come from the vehicle's own CAN communication, the GPS module, or the 5G module.
[0086] 2. The application data interaction service layer encodes the message set data and sends the encoded message set data to the security service layer.
[0087] 3. The security service layer signs the message set data with digital security signatures and certificates, and then sends the signed message set data SPDU to the network layer.
[0088] 4. The network layer adds a header to the signed message set data SPDU. For example, adding a DSMPHeader to the message set data SPDU turns it into DSMP data, and then passes the DSMP data to the hardware abstraction layer (adaptation layer).
[0089] 5. The Hardware Abstraction Layer (Adaptation Layer) adds an adaptation layer header and an access layer header to the DSMP data, which then becomes access layer data. The resulting access layer data is then passed to the Hardware Layer (Access Layer).
[0090] 6. The hardware layer (access layer) converts the access layer data into PC5 data packets, which are then sent to the vehicle unit 30 by the hardware chip via dedicated short-range communication.
[0091] Please refer to this again. Figure 2The vehicle-mounted unit 30, which supports C-V2X protocol stack communication, also includes an application layer, an application data interaction service layer, a security service layer, a network layer, a hardware abstraction layer (adaptation layer), and a hardware layer. The hardware layer is used to remove headers from PC5 data packets from the terminal under test and transmit the resulting access layer data to the hardware abstraction layer. The hardware abstraction layer, connected to the hardware layer, removes the adapter layer header and access layer header from the access layer data to obtain DSMP data corresponding to the PC5 data packets. This DSMP data is the air interface data packet mentioned in this application, and the air interface data packet is transmitted to the network layer. The network layer, connected to the hardware abstraction layer and the communication layer of the test device, is used to send the received air interface data packets to the test device 100. When the test device 100 performs testing, the operating principle of the vehicle-mounted unit 30 is as follows:
[0092] 1. The vehicle unit 30 transmits the PC5 data packets received from the test terminal 20 via dedicated short-range communication to the hardware layer (access layer).
[0093] 2. After removing the header from the PC5 data packet, the hardware layer (access layer) transmits the resulting access layer data to the hardware abstraction layer (adaptation layer).
[0094] 3. The Hardware Abstraction Layer (Adaptation Layer) removes the adapter layer header and access layer header from the access layer data to obtain DSMP data, and transmits the DSMP data to the network layer. This DSMP data is the air interface data packet.
[0095] 4. After receiving the air interface data packet, the network layer forwards the air interface data packet to the test device 100 through socket communication.
[0096] When the testing device 100 receives the air interface data packet from the vehicle unit 30, the working principle of the testing device 100 is as follows:
[0097] 1. After the communication layer captures the air interface data packet through socket communication, it transmits the air interface data packet to the message layer.
[0098] 2. The message layer designs and decodes the air interface data packets to obtain a message set. Specifically, the process of designing and decoding the captured air interface data packets by the message layer includes the following steps:
[0099] (1) Remove the header from the air interface data packet to obtain SPDU data;
[0100] (2) The SPDU data is de-signed to obtain message set data containing message set and DAS data;
[0101] (3) Decode the message set data to obtain the message set contained in the air interface data packet.
[0102] 3. The application layer performs various design operations such as filtering, saving, and statistics based on the message set parsed by the message layer;
[0103] 4. The display layer is mainly used for human-computer interaction, displaying the corresponding message set and filtering results based on the input of specific filtering conditions.
[0104] and Figure 1 Compared with existing testing methods, the testing device 100 in this embodiment captures air interface data packets composed of message sets from the network layer of the vehicle unit 30. This not only reduces packet loss when test data is transmitted from the network layer to the application layer in the vehicle unit, improving the accuracy of the packet loss rate in the test results, but also helps development and debugging personnel to quickly analyze message sets on-site and improve testing efficiency.
[0105] Meanwhile, since the memory of the vehicle unit 30 is limited, printing logs will consume a lot of memory of the vehicle unit 30, increasing the pressure on the vehicle unit 30. However, in this embodiment, the vehicle unit 30 is no longer required to print logs during testing, so the memory size of the vehicle unit 30 can be reduced to a large extent, thereby reducing costs.
[0106] and, Figure 1 In the existing testing methods shown, when you want to filter certain messages in the message set, you need to manually modify the code. However, in this embodiment, no code modification is required. Testers can directly input the filtering conditions on the testing device 100, which avoids the modification risks that may be caused by modifying the code and is also convenient for testers to operate.
[0107] Furthermore, when the testing device 100 disclosed in this embodiment performs testing, the test data sent by the terminal under test 20 is the real data perceived by the terminal under test 20, which helps developers to simulate and speeds up the development process.
[0108] In some embodiments, to conduct testing more efficiently, the vehicle-mounted unit 30 is used as a server, and its network layer supports parallel access by multiple test devices 100. This allows multiple testers to perform debugging or testing simultaneously, shortening the testing cycle and improving testing efficiency. The specific principle is as follows: Figure 3 As shown.
[0109] Example 2
[0110] This invention also provides a method for testing the air interface packet capture of the C-V2X protocol stack, such as... Figure 4 As shown, it includes the following steps:
[0111] Step S101: Capture air interface data packets from the tested terminal from the network layer of the vehicle unit and transmit the air interface data packets to the message layer. The air interface data packets are formed by encoding the message set formed by the data sensed by the sensing device of the tested terminal.
[0112] Step S102 involves designing and decoding the air interface data packets at the message layer to obtain the corresponding message set. Specifically, the steps for designing and decoding the air interface data packets at the message layer include: removing the header from the air interface data packets to obtain SPDU data; designing the SPDU data to obtain message set data containing the message set and DAS data; and decoding the message set data to obtain the message set contained in the air interface data packets.
[0113] Step S103: Perform corresponding operations on the message set according to the tester's operation instructions and display the operation results of the message set.
[0114] Compared with existing technologies, the C-V2X protocol stack air interface packet capture test method in this embodiment of the invention captures air interface data packets directly from the network layer of the vehicle unit through the communication layer. This reduces packet loss in the transmission of air interface data packets from the network layer to the application layer in the vehicle unit, and improves the accuracy of the packet loss rate in the test results. At the same time, testers can directly view the captured message set and perform various operations on the message set by inputting operation commands to assist in the quick and convenient analysis of the message set. This can help development and debugging personnel to quickly analyze the message set on-site, reduce development and debugging time, and improve testing efficiency.
[0115] In addition, in some other embodiments, the C-V2X protocol stack air interface packet capture test method further includes the following steps:
[0116] It receives filtering conditions input by testers, filters the message set based on the filtering conditions, and displays the filtering results through the display layer.
[0117] Save the received message set; and / or
[0118] The captured message set is played back through the display unit.
[0119] It should be noted that the C-V2X protocol stack air interface packet capture test method in this embodiment is the same in principle as the C-V2X protocol stack air interface packet capture test device shown in Embodiment 1, and will not be described in detail here.
[0120] Example 3
[0121] This embodiment provides a computer-readable storage medium storing multiple instructions adapted for loading by a processor to execute the C-V2X protocol stack air interface packet capture test method shown above.
[0122] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0123] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A C-V2X protocol stack air interface packet capture and testing device, characterized in that, The testing apparatus includes: The communication layer is used to capture air interface data packets from the network layer of the vehicle unit from the terminal under test and transmit the air interface data packets to the message layer, wherein the air interface data packets are formed by encoding a message set of data sensed by the sensing device of the terminal under test. The message layer, connected to the communication layer, is used to design and decode the air interface data packets to obtain the corresponding message set; The application layer, connected to the message layer, is used to perform corresponding operations on the message set according to the operation instructions given by the tester. The display layer, connected to the application layer, is used to display the operation results of the message set; The communication layer is specifically the socket communication layer, that is, the test device connects to the network layer of the vehicle unit through socket communication to listen to the air interface data packets of the vehicle unit's network layer; The air interface data packet is transmitted from the terminal under test to the vehicle unit and processed by the hardware layer and hardware abstraction layer of the vehicle unit.
2. The C-V2X protocol stack air interface packet capture and testing device according to claim 1, characterized in that, The message layer performs designing and decoding processing on the air interface data packets, including: The air interface data packet is processed by removing the header to obtain SPDU data; The SPDU data is de-signed to obtain message set data containing message set and DSA data; The message set data is decoded to obtain the message set contained in the air interface data packet.
3. The C-V2X protocol stack air interface packet capture and testing device according to claim 1, characterized in that, The communication layer, message layer, application layer, and display layer are independent of each other, and each of the communication layer, message layer, application layer, and display layer is assigned a thread when the test device is working.
4. The C-V2X protocol stack air interface packet capture and testing device according to claim 1, characterized in that, The application layer includes: A filtering unit is used to receive filtering conditions input by the tester, filter the message set based on the filtering conditions, and display the filtering results through the display layer. A storage unit is used to store the received message set; and / or The playback unit is used to play back the captured message set through the display layer.
5. The C-V2X protocol stack air interface packet capture and testing device according to claim 1, characterized in that, The display layer includes: A message set display box is used to display the message set; The message set details display box is used to display detailed information about each message in the message set; as well as The raw data display box is used to display the air interface data packet.
6. The C-V2X protocol stack air interface packet capture and testing device according to claim 1, characterized in that, The vehicle-mounted unit connected to the communication layer includes: The hardware layer is used to remove the header from PC5 data packets from the terminal under test and transmit the header-removed PC5 data packets to the hardware abstraction layer. A hardware abstraction layer, connected to the hardware layer, is used to adapt the received PC5 data packets to obtain air interface data packets corresponding to the PC5 data packets, and to transmit the air interface data packets to the network layer. The network layer, connected to the hardware abstraction layer and the communication layer, is used to send the received air interface data packets to the test device.
7. A method for testing the air interface packet capture of a C-V2X protocol stack, characterized in that, Includes the following steps: The system connects to the network layer of the vehicle unit via socket communication, captures air interface data packets from the network layer of the vehicle unit, and transmits the air interface data packets to the message layer. The air interface data packets are encoded by a message set formed by the data sensed by the sensing device of the terminal under test, and are transmitted by the terminal under test to the vehicle unit, and are processed by the hardware layer and hardware abstraction layer of the vehicle unit. The air interface data packets are de-signed and decoded to obtain the corresponding message set; Perform corresponding operations on the message set according to the operation instructions given by the tester, and display the operation results of the message set.
8. The C-V2X protocol stack air interface packet capture test method according to claim 7, characterized in that, The steps for the message layer to design and decode the air interface data packets include: The air interface data packet is processed by removing the header to obtain SPDU data; The SPDU data is de-signed to obtain message set data containing message set and DSA data; The message set data is decoded to obtain the message set contained in the air interface data packet.
9. The C-V2X protocol stack air interface packet capture test method according to claim 7, characterized in that, The testing method also includes: The system receives the filtering conditions input by the tester, filters the message set based on the filtering conditions, and displays the filtering results through the display layer. Save the received message set; and / or The captured message set is replayed through the display layer.
10. A computer-readable storage medium, characterized in that, The storage medium stores multiple instructions, which are adapted to be loaded by a processor to execute the C-V2X protocol stack air interface packet capture test method according to any one of claims 7 to 9.
Citation Information
Patent Citations
Communication method and device of C-V2X protocol stack
CN111615078A
V2X message collection device and method
CN112020020A
Data transmission test method and device, electronic equipment and medium
CN113132183A