CN113660139B - V2X protocol consistency detection method based on multiple message layer communication - Google Patents

V2X protocol consistency detection method based on multiple message layer communication Download PDF

Info

Publication number
CN113660139B
CN113660139B CN202110940528.7A CN202110940528A CN113660139B CN 113660139 B CN113660139 B CN 113660139B CN 202110940528 A CN202110940528 A CN 202110940528A CN 113660139 B CN113660139 B CN 113660139B
Authority
CN
China
Prior art keywords
information
decoding
data
format
multiple message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110940528.7A
Other languages
Chinese (zh)
Other versions
CN113660139A (en
Inventor
蔡炎
宦涣
蔡慧星
杨春城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yunkong Zhihang Shanghai Automotive Technology Co ltd
Original Assignee
Yunkong Zhihang Shanghai Automotive Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yunkong Zhihang Shanghai Automotive Technology Co ltd filed Critical Yunkong Zhihang Shanghai Automotive Technology Co ltd
Priority to CN202110940528.7A priority Critical patent/CN113660139B/en
Publication of CN113660139A publication Critical patent/CN113660139A/en
Application granted granted Critical
Publication of CN113660139B publication Critical patent/CN113660139B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/24Testing correct operation
    • H04L1/242Testing correct operation by comparing a transmitted test signal with a locally generated replica
    • H04L1/244Testing correct operation by comparing a transmitted test signal with a locally generated replica test sequence generators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The application relates to the technical field of data transmission, in particular to a method for detecting consistency of V2X protocols based on multiple message layer communication, which comprises the steps of acquiring current V2X information, acquiring characteristic information matched with the V2X according to the V2X information, and acquiring equipment information matched with the characteristic information according to the characteristic information; analyzing the V2X information according to a protocol standard matched with the equipment information to form an analysis result; and displaying the V2X information and the analysis result.

Description

V2X protocol consistency detection method based on multiple message layer communication
Technical Field
The application relates to the technical field of data transmission, in particular to a V2X protocol consistency detection method based on multiple message layer communication.
Background
At present, V2X is still in an early development stage, and at present, multiple versions of V2X application layers and application data interaction standards and communication protocols exist in the industry, for example, TCSAE53-2017 commonly used in the industry of the first generation products has a new upgraded version TCSAE53-2020, and YDT3709-2020 released by the Ministry of industry and industry. Each V2X manufacturer also requires extensive testing during the functional development testing phase. When in the intelligent networking test area, because there are chips, modules, complete machine equipment of each family all to be different, communication problems such as unable analysis of message appears often between the equipment of different producers. The current main test and problem analysis mainly include packet capture by a device, exporting received V2X air interface data from the device, importing the data into a sandbox test tool for protocol consistency detection to verify whether the message conforms to a universal protocol standard, and providing data content analyzed according to a standard protocol. The sandbox test needs to export data after the packet is captured by the equipment, and the timeliness is lacked. And the air interface data of a specific device can be tested only, and the high-efficiency test of a large range and multiple devices is not supported.
Disclosure of Invention
Aiming at the defects of the prior art, the application provides a method for detecting consistency of V2X protocol based on multiple message layer communication, which specifically comprises the following steps:
on one hand, the application provides a method for detecting consistency of V2X protocol based on multiple message layer communication, wherein the method comprises the following steps:
acquiring current V2X information, acquiring characteristic information matched with the V2X according to the V2X information,
acquiring equipment information matched with the characteristic information according to the characteristic information;
analyzing the V2X information according to a protocol standard matched with the equipment information to form an analysis result;
and displaying the V2X information and the analysis result.
Preferably, the above method for detecting consistency of V2X protocols based on multiple message layer communications, wherein: analyzing the V2X information according to a protocol standard matched with the device information to form an analysis result specifically includes:
performing ASN1 format data decoding on the V2X information;
under the condition that ASN1 format data decoding is unsuccessful, partially decoding the V2X information; and displaying the processing result of the partial decoding;
and performing data format matching on the V2X information under the condition that the ASN1 format data is successfully decoded, and forming a matching result for outputting.
Preferably, the above method for detecting consistency of V2X protocols based on multiple message layer communications includes: under the condition that the decoding of the ASN1 format data is unsuccessful, partially decoding the V2X information; and displaying the processing result of the partial decoding specifically comprises:
under the condition that ASN1 format data decoding is unsuccessful, partially decoding the V2X information;
outputting first flag information in a state that the V2X information is successfully partially decoded;
and outputting second mark information under the state that the V2X information cannot be partially decoded.
Preferably, the above method for detecting consistency of V2X protocols based on multiple message layer communications includes: in the state that the decoding of the ASN1 format data is successful, performing data format matching on the V2X information, and forming a matching result to output specifically comprises the following steps:
forming decoding information under the condition that the decoding of the ASN1 format data is successful, and carrying out preset format check processing on the decoding information;
displaying the type of the V2X information under the condition that the decoded information does not pass the verification processing of a preset format;
forming storage data according to the decoding information in a state that the decoding information passes through the preset format verification processing, and performing rationality verification on the storage data;
outputting third mark information when the stored data fails to pass the rationality check;
and outputting fourth mark information when the stored data passes the rationality check.
Preferably, the above method for detecting consistency of V2X protocols based on multiple message layer communications, wherein: the predetermined format comprises any one format of BSM, RSM, RSI, MAP and SPAT formats.
Preferably, the above method for detecting consistency of V2X protocols based on multiple message layer communications, wherein: when the stored data passes the rationality check, outputting fourth flag information specifically includes:
performing JSON serialization processing on the storage data and performing anti-serialization analysis operation through rationality verification in a state that the storage data is matched with the RSI format data;
and forming the fourth mark information output under the state of failed analysis.
Preferably, the above method for detecting consistency of V2X protocols based on multiple message layer communications, wherein: the displaying of the V2X information and the analysis result specifically includes:
displaying the analysis result of the V2X information under the condition that the format of the V2X information is normal;
and highlighting abnormal data when the V2X information format is abnormal.
Preferably, the above method for detecting consistency of V2X protocols based on multiple message layer communications, wherein: further comprising:
and exporting a test log and outputting a complete statistical result of the test.
In another aspect, a computer readable storage medium, on which a computer program is stored, is characterized in that the program, when executed by a processor, implements a V2X protocol consistency detection method based on multiple message layer communication as described in any one of the above.
In another aspect, an electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements a method for detecting consistency of V2X protocols based on multiple message layer communication according to any one of the above descriptions when executing the computer program.
Compared with the prior art, the beneficial effect of this application is:
and decoding and analyzing the V2X information received in real time. For the message with the wrong format, information of the broadcasting equipment is given; for the message with correct format but abnormal V2X information content, the analyzed data content can be displayed, and the data item with wrong content can be highlighted; and for the message with normal format and data content, the analyzed data content is displayed.
Drawings
Fig. 1 is a schematic flowchart of a method for detecting consistency of V2X protocols based on multiple message layer communications according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for detecting consistency of V2X protocols based on multiple message layer communications according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for detecting consistency of V2X protocols based on multiple message layer communications according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in greater detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently, or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
As shown in fig. 1, a method for detecting consistency of V2X protocols based on multiple message layer communications is applied to V2X devices. Wherein, need to enter the serial number of the V2X equipment to be tested and with the IPV6 address data of V2X equipment before the test, include:
step S110, obtaining current V2X information, and obtaining characteristic information matched with the V2X according to the V2X information, wherein the characteristic information is IPV6 address data carried in the current V2X information.
Step S120, acquiring equipment information matched with the characteristic information according to the characteristic information;
step S130, analyzing the V2X information according to a protocol standard matched with the equipment information to form an analysis result; specifically, the method comprises the following steps of,
step S1301, performing ASN1 format data decoding on the V2X information;
step S1302, in a state that the decoding of the ASN1 format data is unsuccessful, performing partial decoding on the V2X information; and displaying the processing result of the partial decoding; in particular, the amount of the solvent to be used,
as shown in fig. 2, in step S13021, in a state where the decoding of the ASN1 format data is unsuccessful, the V2X information is partially decoded;
step 13022, outputting first flag information in the state that the V2X information is successfully partially decoded; the first flag information may be information related to an unresolvable field causing a decoding abort and a cause of a possible data abnormality.
Step S13023 outputs second flag information in the state that the V2X information cannot be partially decoded. The second flag information may be data critical errors and require manual analysis recommendations. The output means may be broadcasting V2X device information.
Step S1303, in a state where the ASN1 format data decoding is successful, performing data format matching on the V2X information, and forming a matching result for output.
As shown in fig. 3, step S13031 is to form decoding information in a state that the decoding of the ASN1 format data is successful, and perform predetermined format check processing on the decoding information; wherein the predetermined format comprises any one of BSM, RSM, RSI, MAP and SPAT formats.
Step 13032, displaying the V2X information type in a state that the decoded information does not pass the predetermined format verification processing;
step 13033, in a state that the decoded information passes through the check processing of the preset format, forming the stored data according to the decoded information, and performing the rationality check on the stored data;
step 13034, outputting third flag information when the stored data fails to pass the rationality check; the third flag information may be a specific reason and/or a reference reason that the rationality check fails.
Step 13035, outputting fourth flag information when the stored data passes the rationality check.
Step 130351, performing JSON serialization processing on the storage data and performing deserialization analysis operation through rationality check in the state that the storage data is matched with the RSI format data;
step S130352, forming the fourth flag information output in the state of failed analysis. The fourth flag information may be a cause of JSON serialization processing and deserialization parsing failure.
And step S140, displaying the V2X information and the analysis result. The V2X information may include a V2X device number, a V2X device location,
step 1401, displaying the analysis result of the V2X information in the state that the format of the V2X information is normal;
step S1402 highlights abnormal data when the V2X information format is abnormal.
And S150, exporting a test log and outputting a complete statistical result of the test. The statistical result comprises the statistics of the number of received messages, the types of the messages, the sources of the messages, format errors and abnormal data contents.
Example two
In another aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the program, when executed by a processor, implements a method for detecting consistency of V2X protocols based on multiple message layer communication, where the method specifically includes:
acquiring current V2X information, acquiring characteristic information matched with the V2X according to the V2X information,
acquiring equipment information matched with the characteristic information according to the characteristic information;
analyzing the V2X information according to a protocol standard matched with the equipment information to form an analysis result;
and displaying the V2X information and the analysis result.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage media" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the rendering method described above, and may also perform related operations in the rendering method provided in any embodiment of the present application.
EXAMPLE III
In another aspect, an embodiment of the present application provides an electronic device, where the rendering apparatus provided in the embodiment of the present application may be integrated in the electronic device. Fig. 4 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application. As shown in fig. 4, the present embodiment provides an electronic device 400, which includes: one or more processors 420; storage 410 to store one or more programs that, when executed by the one or more processors 420, cause the one or more processors 420 to implement:
a V2X protocol consistency detection method based on multiple message layer communication specifically comprises the following steps:
acquiring current V2X information, acquiring characteristic information matched with the V2X according to the V2X information,
acquiring equipment information matched with the characteristic information according to the characteristic information;
analyzing the V2X information according to a protocol standard matched with the equipment information to form an analysis result;
and displaying the V2X information and the analysis result.
As shown in fig. 4, the electronic device 400 includes a processor 420, a storage device 410, an input device 430, and an output device 440; the number of the processors 420 in the electronic device may be one or more, and one processor 420 is taken as an example in fig. 4; the processor 420, the storage device 410, the input device 430, and the output device 440 in the electronic apparatus may be connected by a bus or other means, and are exemplified by a bus 450 in fig. 4.
The storage device 410 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and module units, such as program instructions corresponding to the rendering method in the embodiment of the present application.
The storage device 410 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 410 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 410 may further include memory located remotely from processor 420, which may be connected via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 430 may be used to receive input numerals, character information, or voice information, and to generate key signal inputs related to user settings and function control of the electronic device. The output device 440 may include a display screen, speakers, etc.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A method for detecting consistency of V2X protocols based on multiple message layer communication is characterized by comprising the following steps:
acquiring current V2X information, acquiring characteristic information matched with the V2X information according to the V2X information,
acquiring equipment information matched with the characteristic information according to the characteristic information;
analyzing the V2X information according to a protocol standard matched with the equipment information to form an analysis result; the method specifically comprises the following steps:
performing ASN1 format data decoding on the V2X information;
under the condition that the decoding of the ASN1 format data is unsuccessful, partially decoding the V2X information; and displaying the processing result of the partial decoding; the method specifically comprises the following steps: under the condition that ASN1 format data decoding is unsuccessful, partially decoding the V2X information; outputting first flag information in a state that the V2X information is successfully partially decoded; outputting second flag information in a state that the V2X information cannot be partially decoded;
under the condition that the ASN1 format data decoding is successful, performing data format matching on the V2X information, and forming a matching result to be output; the method specifically comprises the following steps: forming decoding information under the condition that the decoding of the ASN1 format data is successful, and carrying out preset format check processing on the decoding information; displaying the type of the V2X information under the condition that the decoded information does not pass the verification processing of a preset format; forming storage data according to the decoding information in a state that the decoding information passes through the preset format verification processing, and performing rationality verification on the storage data; outputting third mark information when the stored data fails to pass the rationality check; outputting fourth mark information when the stored data passes rationality check;
and displaying the V2X information and the analysis result.
2. The V2X protocol consistency detection method based on multiple message layer communication according to claim 1, wherein the predetermined format comprises any one of BSM, RSM, RSI, MAP, and SPAT formats.
3. The method according to claim 2, wherein the step of outputting the fourth flag information after the stored data passes the rationality check specifically includes:
performing JSON serialization processing on the storage data and performing anti-serialization analysis operation through rationality verification in a state that the storage data is matched with the RSI format;
and forming the fourth mark information output under the state of failed analysis.
4. The method for detecting consistency of V2X protocols based on multiple message layer communications according to claim 1, wherein displaying the V2X information and the parsing result specifically comprises:
displaying the analysis result of the V2X information under the condition that the format of the V2X information is normal;
and highlighting abnormal data in the abnormal state of the V2X information format.
5. The method for detecting consistency of V2X protocols based on multiple message layer communications according to claim 1, further comprising:
and exporting a test log and outputting a complete statistical result of the test.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a V2X protocol conformance detection method according to any one of claims 1 to 5, based on multiple message layer communications.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for detecting consistency of V2X protocol based on multiple message layer communications according to any one of claims 1 to 5 when executing the computer program.
CN202110940528.7A 2021-08-17 2021-08-17 V2X protocol consistency detection method based on multiple message layer communication Active CN113660139B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110940528.7A CN113660139B (en) 2021-08-17 2021-08-17 V2X protocol consistency detection method based on multiple message layer communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110940528.7A CN113660139B (en) 2021-08-17 2021-08-17 V2X protocol consistency detection method based on multiple message layer communication

Publications (2)

Publication Number Publication Date
CN113660139A CN113660139A (en) 2021-11-16
CN113660139B true CN113660139B (en) 2023-02-07

Family

ID=78480412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110940528.7A Active CN113660139B (en) 2021-08-17 2021-08-17 V2X protocol consistency detection method based on multiple message layer communication

Country Status (1)

Country Link
CN (1) CN113660139B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117729138A (en) * 2024-02-08 2024-03-19 广州高新兴网联科技有限公司 Internet of vehicles protocol consistency test method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102395138A (en) * 2011-09-29 2012-03-28 中国科学技术大学 Protocol consistency test instrument and method of internet protocol version-6 (IPv6) over low-power wireless personal area network (LoWPAN)
CN110995548A (en) * 2020-03-04 2020-04-10 杭州云动智能汽车技术有限公司 Method for testing validity of V2X protocol under boundary working condition

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067617B (en) * 2018-08-27 2020-12-01 东软集团(北京)有限公司 V2X protocol consistency test method, device and system
US11548526B2 (en) * 2019-04-29 2023-01-10 Motional Ad Llc Systems and methods for implementing an autonomous vehicle response to sensor failure
CN110868336B (en) * 2019-11-11 2021-11-02 北京明略软件系统有限公司 Data management method, device and computer readable storage medium
CN112104596B (en) * 2020-06-29 2022-10-25 南斗六星系统集成有限公司 Data access method and system for aggregating multiple Internet of vehicles communication protocols

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102395138A (en) * 2011-09-29 2012-03-28 中国科学技术大学 Protocol consistency test instrument and method of internet protocol version-6 (IPv6) over low-power wireless personal area network (LoWPAN)
CN110995548A (en) * 2020-03-04 2020-04-10 杭州云动智能汽车技术有限公司 Method for testing validity of V2X protocol under boundary working condition

Also Published As

Publication number Publication date
CN113660139A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN107122258B (en) Method and equipment for checking state code of test interface
CN111159049B (en) Automatic interface testing method and system
CN106484611B (en) Fuzzy test method and device based on automatic protocol adaptation
CN111897724B (en) Automatic testing method and device suitable for cloud platform
CN109376088B (en) Automatic test system and automatic test method
CN112650685B (en) Automatic test method, device, electronic equipment and computer storage medium
JP5528640B2 (en) Exception processing test apparatus and method
CN107179971B (en) Automatic coding method and system for CAN bus fault processing
CN113660139B (en) V2X protocol consistency detection method based on multiple message layer communication
CN114064208A (en) Method and device for detecting application service state, electronic equipment and storage medium
CN115757483A (en) Automatic testing method and device, electronic equipment and storage medium
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN112367220B (en) Interface testing method and device, storage medium and electronic equipment
CN111949537A (en) Interface test method, device, equipment and medium
CN112131611B (en) Data correctness verification method, device, equipment, system and storage medium
CN113938412A (en) Protocol stack testing method and device, testing system and computer readable storage medium
CN112948195A (en) Interface testing method and device, electronic equipment and storage medium
CN113238940A (en) Interface test result comparison method, device, equipment and storage medium
CN111026667A (en) Script execution method and device and electronic equipment
CN112100078B (en) Method, device and equipment for generating interface test case
CN112737872B (en) ARINC664P7 end system cross-network testing system and method
CN116974932A (en) Interface testing method and device, electronic equipment and computer storage medium
CN117591426A (en) Bank transaction comparison method, device, equipment and readable storage medium
CN115542875A (en) Vehicle detection method based on SOA service and related equipment
CN115765896A (en) Method and system for automatically testing data items of ADS-B receiver

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 201805 room 2201, No. 888, Moyu South Road, Jiading District, Shanghai j879

Applicant after: Yunkong Zhihang (Shanghai) Automotive Technology Co.,Ltd.

Address before: 201805 room 2201, No. 888, Moyu South Road, Jiading District, Shanghai j879

Applicant before: Enlightenment cloud control (Shanghai) Automotive Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant