CN112769767A - Vehicle-mounted Ethernet SOME/IP protocol data analysis method, device, medium and system - Google Patents

Vehicle-mounted Ethernet SOME/IP protocol data analysis method, device, medium and system Download PDF

Info

Publication number
CN112769767A
CN112769767A CN202011540272.2A CN202011540272A CN112769767A CN 112769767 A CN112769767 A CN 112769767A CN 202011540272 A CN202011540272 A CN 202011540272A CN 112769767 A CN112769767 A CN 112769767A
Authority
CN
China
Prior art keywords
data
vehicle
protocol
elements
array
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.)
Granted
Application number
CN202011540272.2A
Other languages
Chinese (zh)
Other versions
CN112769767B (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.)
Human Horizons Shanghai Internet Technology Co Ltd
Original Assignee
Human Horizons Shanghai Internet 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 Human Horizons Shanghai Internet Technology Co Ltd filed Critical Human Horizons Shanghai Internet Technology Co Ltd
Priority to CN202011540272.2A priority Critical patent/CN112769767B/en
Publication of CN112769767A publication Critical patent/CN112769767A/en
Application granted granted Critical
Publication of CN112769767B publication Critical patent/CN112769767B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a method for analyzing vehicle-mounted Ethernet SOME/IP protocol data, which comprises the following steps: acquiring protocol data sent by a vehicle, wherein the protocol data is binary data; determining a data structure of elements in the protocol data according to the SOME/IP protocol structure, and forming a multi-difference conversion tree according to the corresponding data structure; performing deserialization processing on elements in the multi-difference conversion tree to obtain a configuration data conversion relation; and sending the configuration data conversion relation to a vehicle so that the vehicle can analyze the protocol data according to the configuration data conversion relation and update the configuration. The embodiment of the invention also provides a device, a medium and a system for analyzing vehicle-mounted Ethernet SOME/IP protocol data, which can effectively solve the problems that in the prior art, only under the condition of a C language protocol stack, the SOMEIP protocol can be used for communication, so that the SOMEIP protocol has larger limitation and small application range when the SOMEIP protocol is used for communication in a vehicle-mounted Ethernet system.

Description

Vehicle-mounted Ethernet SOME/IP protocol data analysis method, device, medium and system
Technical Field
The invention relates to the technical field of data communication, in particular to a method, a device, a medium and a system for analyzing vehicle-mounted Ethernet SOME/IP protocol data.
Background
In the prior art, a significant amount of the SOMEIP protocol (Scalable service-organized middlewaover IP) is used in the vehicle-mounted ECU device to perform data communication of the vehicle-mounted ethernet, and protocol data transmission, reception and processing need to be performed according to a protocol format defined by the SOMEIP. However, since the SOME/IP matrix structure is a code definition structure in C language, the SOMEIP protocol can be used for communication only in the case of C language protocol stack, so that the SOMEIP protocol has a large limitation when the vehicle-mounted ethernet system performs communication, and the application range is small.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a medium and a system for analyzing vehicle-mounted Ethernet SOME/IP protocol data, which can effectively solve the problems that in the prior art, only under the condition of a C language protocol stack, the SOME protocol can be used for communication, so that the SOME protocol has larger limitation and small application range when the vehicle-mounted Ethernet system is used for communication.
An embodiment of the present invention provides a method for analyzing vehicle-mounted ethernet SOME/IP protocol data, including:
acquiring protocol data sent by a vehicle, wherein the protocol data is binary data;
determining a data structure of elements in the protocol data according to the SOME/IP protocol structure, and forming a multi-difference conversion tree according to the corresponding data structure;
performing deserialization processing on elements in the multi-difference conversion tree to obtain a configuration data conversion relation; wherein configuring the data transformation relationship comprises: analyzing results corresponding to all elements in the protocol data;
and sending the configuration data conversion relation to a vehicle so that the vehicle analyzes the protocol data according to the configuration data conversion relation and performs configuration updating according to an analysis result.
As an improvement of the above solution, the data structure of the elements in the protocol data includes: structure, array, base type, and string.
As an improvement of the above scheme, the method obtains a corresponding data structure through the following steps to form a multi-difference transformation tree, and specifically includes:
and carrying out preset iterative processing on elements of which the data structures are structural bodies or arrays in the protocol data until the data structures are basic types or character strings so as to form the multi-difference conversion tree.
As an improvement of the above scheme, the deserializing the elements in the multi-difference transformation tree to obtain the configuration data transformation relationship specifically includes:
performing deserialization processing on elements of all data structures in the multi-difference conversion tree which are basic types or character strings to obtain corresponding analysis results;
and forming a configuration data conversion relation according to the elements in the multi-difference conversion tree and the corresponding analysis results.
As an improvement of the above scheme, the performing corresponding deserialization processing according to the data structure of the elements in the multi-difference transformation tree to obtain a corresponding analysis result specifically includes:
when the data structure is a basic type, searching an deserialization rule corresponding to the current basic type according to a preset basic data type table, and performing deserialization processing according to the searched deserialization rule to obtain a corresponding physical value;
and when the data structure is a character string, performing deserialization processing on the byte length of the current element according to a preset encoding deserialization method to obtain a corresponding physical value.
As an improvement of the above, the method further comprises: when the data structure is an array, determining a corresponding array type according to the number of times of matching use of elements in the array, and determining a corresponding iteration type according to the array type; wherein the iteration types include: dynamic iteration and static iteration.
As an improvement of the above scheme, when the data structure is an array, determining a corresponding array type according to the number of times of matching use of elements in the array, and determining a corresponding iteration type according to the array type; wherein the iteration types include: the dynamic iteration and the static iteration specifically comprise:
when the data structure is an array, the array type is a dynamic array according to the condition that the number of times of matching use of elements in the array is 0, and the corresponding iteration type is dynamic iteration;
when the data structure is an array, the number of times of matching use of elements in the array is not 0, the array type is a static array, the corresponding iteration type is static iteration, and the number of times of iteration of the array is determined according to the number of the elements of the current array.
Another embodiment of the present invention correspondingly provides an apparatus for analyzing SOME/IP protocol data of a vehicle-mounted ethernet, including:
the acquisition module is used for acquiring protocol data sent by the vehicle; wherein the protocol data is binary data;
the conversion module is used for determining a data structure of elements in the protocol data according to the SOME/IP protocol structure and forming a multi-difference conversion tree according to the corresponding data structure;
the processing module is used for performing deserialization processing on the elements in the multi-difference conversion tree to obtain a configuration data conversion relation; wherein configuring the data transformation relationship comprises: analyzing results corresponding to all elements in the protocol data;
and the configuration updating module is used for sending the configuration data conversion relation to the vehicle so as to enable the vehicle to analyze the protocol data according to the configuration data conversion relation and perform configuration updating according to an analysis result.
Another embodiment of the present invention provides a storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program runs, a device where the computer-readable storage medium is located is controlled to execute the method for analyzing SOME/IP protocol data of a vehicle-mounted ethernet according to the above-mentioned embodiment of the present invention.
Another embodiment of the present invention provides a data interaction system for a vehicle-mounted ethernet, including: the vehicle and the SOME/IP protocol data analysis system; the system for analyzing the vehicle-mounted Ethernet SOME/IP protocol data comprises a processor, a memory and a computer program which is stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for analyzing the vehicle-mounted Ethernet SOME/IP protocol data is realized;
and the data communication end of the vehicle is connected with the data communication end of the SOME/IP protocol data analysis system.
Compared with the prior art, the method, the device, the medium and the system for analyzing the vehicle-mounted Ethernet SOME/IP protocol data disclosed by the embodiment of the invention judge the data structure of the protocol data by acquiring the protocol data sent by the vehicle, form a multi-difference conversion tree according to the data structure, perform anti-sequence processing on elements in the multi-difference conversion tree to obtain a configuration data conversion relation, and send the configuration data conversion relation to the vehicle, so that the vehicle can directly analyze the protocol data according to the configuration data conversion relation, and thus, the configuration of the vehicle 2 is updated. Therefore, by identifying the data structure of the protocol data, the protocol data is represented in the form of a multi-difference conversion tree, and then the elements in the multi-difference conversion tree are deserialized, so that the SOME/IP directly analyzes the binary data body of the SOME/IP according to the configuration data conversion relation under the condition that a C language protocol stack is not used, thereby being separated from the C language limitation, further being realized by the development language of any operable binary data and characters, and further leading the SOMEIP protocol to have wider application range when the vehicle-mounted Ethernet system carries out communication. Meanwhile, the vehicle can be configured and updated only by receiving the analysis result of the protocol data, calculation at the vehicle end is not needed, and data processing pressure at the vehicle end is reduced.
Drawings
Fig. 1 is a schematic flowchart of a method for parsing data in a vehicle-mounted ethernet SOME/IP protocol according to an embodiment of the present invention;
FIG. 2 is a diagram of the SOME/IP protocol structure provided by an embodiment of the invention;
FIG. 3 is a diagram illustrating the dimension reduction of structured data into unstructured data, according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a data structure forming a multi-differential transformation tree according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating step S30 of a method for parsing data in a vehicle ethernet SOME/IP protocol according to an embodiment of the present invention;
FIG. 6 is a table of basic data types provided by an embodiment of the present invention;
FIG. 7 is a configuration data transformation relation table provided by an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a device for parsing data in a vehicle ethernet SOME/IP protocol according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a vehicle-mounted ethernet data interaction system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 to 7, which are schematic flow diagrams of a method for parsing vehicle-mounted ethernet SOME/IP protocol data according to an embodiment of the present invention.
The analysis method for the vehicle-mounted ethernet SOME/IP protocol data provided by this embodiment may be executed by a control terminal for analyzing the vehicle-mounted ethernet SOME/IP protocol data. In this embodiment, the control end for analyzing the vehicle-mounted ethernet SOME/IP protocol data is preferably an analyzing system 1 (even a cloud server, etc.) for vehicle-mounted ethernet SOME/IP protocol data, the analyzing system 1 for vehicle-mounted ethernet SOME/IP protocol data may be implemented in a software and/or hardware manner, and the analyzing system 1 for vehicle-mounted ethernet SOME/IP protocol data may be formed by two or more physical entities or may be formed by one physical entity. In this embodiment, the analysis system 1 for the vehicle-mounted ethernet SOME/IP protocol data is used as a cloud server for description.
The analysis system 1 of the vehicle-mounted Ethernet SOME/IP protocol data acquires the protocol data of the vehicle 2, and the analysis system 1 of the vehicle-mounted Ethernet SOME/IP protocol data analyzes the received protocol data and sends an analysis result to the vehicle 2. It should be noted that the above-mentioned various information may be directly transmitted to the analysis system 1 for the vehicle-mounted ethernet SOME/IP protocol data, or may be transmitted to another information processing device first, and then the information processing device transmits the processed information to the analysis system 1 for the vehicle-mounted ethernet SOME/IP protocol data.
Referring to fig. 1, an embodiment of the present invention provides a method for analyzing vehicle-mounted ethernet SOME/IP protocol data, including:
s10, acquiring the protocol data sent by the vehicle 2, wherein the protocol data is binary data.
The vehicle 2 receives the communication data (i.e., structured data), removes the attribute field of the structure, reduces the dimension of the structure to unstructured data of a binary data type, and transmits the unstructured data to the analysis system for analysis. It can be understood that, because the protocol data uploaded by the vehicle 2 is unstructured data, the network consumption of the vehicle 2 in uploading data is effectively reduced.
S20, determining the data structure of the elements in the protocol data according to the SOME/IP protocol structure, and forming a multi-difference conversion tree according to the corresponding data structure.
Wherein the data structure of the elements in the protocol data comprises: structure, array, base type, and string. Specifically, referring to fig. 2-4, it can be known through the SOME/IP protocol structure that each protocol data corresponds to one PayloadStruct to form a multi-difference transformation tree. It should be noted that the SOME/IP data structure satisfies the rule design of AUDOSAR SOME/IP Protocol Specification. Therefore, the protocol data is expressed in the form of a multi-difference conversion tree, and the data structure is subjected to dimension reduction and is sorted in the order, so that the data structure can be identified by a program, and an administrator can update the configuration conveniently.
S30, performing deserialization processing on the elements in the multi-difference conversion tree to obtain a configuration data conversion relation; wherein configuring the data transformation relationship comprises: and analyzing results corresponding to all elements in the protocol data.
It should be noted that Deserialization (Deserialization) refers to a process of reconstructing a binary string into a data structure or object according to the same rule. In this embodiment, the configuration data conversion relationship is a configuration data conversion relationship table stored in any medium, and may be in other forms. The program reading and updating are facilitated, and meanwhile, the configuration updating by an administrator is facilitated.
And S40, sending the configuration data conversion relation to the vehicle 2, so that the vehicle 2 analyzes the protocol data according to the configuration data conversion relation, and performs configuration updating according to the analysis result.
Specifically, the vehicle 2 uploads the protocol data to the analysis system for analysis to obtain a corresponding configuration data conversion relation table, and the configuration data conversion relation table is sent to the vehicle 2, so that the vehicle 2 can directly analyze binary data according to the configuration data conversion relation table, and thus the configuration of the vehicle 2 is updated without calculation at the vehicle 2, the data processing pressure of the vehicle 2 is reduced, and the running speed of the vehicle 2 is increased.
In summary, by acquiring the protocol data sent by the vehicle 2, determining a data structure of the protocol data, forming a difference conversion tree according to the data structure, performing anti-sequence processing on elements in the difference conversion tree to obtain a configuration data conversion relationship, and sending the configuration data conversion relationship to the vehicle 2, the vehicle 2 can directly analyze the protocol data according to the configuration data conversion relationship, thereby updating the configuration of the vehicle 2. Therefore, by identifying the data structure of the protocol data, the protocol data is represented in the form of a multi-difference conversion tree, and then the elements in the multi-difference conversion tree are deserialized, so that the SOME/IP directly analyzes the binary data body of the SOME/IP according to the configuration data conversion relation under the condition that a C language protocol stack is not used, thereby being separated from the C language limitation, further being realized by the development language of any operable binary data and characters, and further leading the SOMEIP protocol to have wider application range when the vehicle-mounted Ethernet system carries out communication. Meanwhile, the vehicle 2 can be configured and updated only by receiving the analysis result of the protocol data, calculation at the vehicle 2 end is not needed, and data processing pressure at the vehicle end is reduced.
In an alternative embodiment, the method obtains a corresponding data structure to form a multi-difference transformation tree through the following steps, and step S20 specifically includes:
and S200, performing preset iterative processing on elements of which the data structures are structural bodies or arrays in the protocol data until the data structures are basic types or character strings to form the multi-difference conversion tree.
3-4, the structure represents a set of elements of different types, and the array represents a set of elements of the same type. Because only the basic type or the character string can be directly deserialized, the data structure is required to be an element of a structural body or an array for iterative processing until the data structure is the basic type or the character string.
In an optional embodiment, the step S30 specifically includes performing deserialization on the elements in the multi-difference transformation tree to obtain the configuration data transformation relationship:
referring to fig. 5, in S300, deserializing all elements of the data structure in the multi-difference transform tree, which are basic types or character strings, to obtain corresponding parsing results.
Further, when the data structure is the basic type, searching the deserialization rule corresponding to the current basic type according to a preset basic data type table, and performing deserialization processing according to the found deserialization rule to obtain a corresponding physical value;
and when the data structure is a character string, performing deserialization processing on the byte length of the current element according to a preset encoding deserialization method to obtain a corresponding physical value.
In this embodiment, after the protocol data is converted into the multi-difference conversion tree, all elements of the data structure as the basic type or character string are deserialized. Referring to fig. 6, when the data structure is the basic type, the deserialization process is performed according to the deserialization rule in the basic data type table to obtain the corresponding physical value. And when the data structure is a character string, performing deserialization processing on the byte length of the current element according to a UTF-8 encoding deserialization method to obtain a corresponding physical value, storing the physical value of the element into a corresponding set, and sending the physical value of the element to the vehicles 2 one by one so as to enable the vehicles 2 to perform configuration updating.
S301, forming a configuration data conversion relation according to the elements in the multi-difference conversion tree and the corresponding analysis results.
In this embodiment, before the data structure is an iteration of an element of a structure or an array, the structure is created into a < key, value > set, and the array is created into a < value > set, where the sets are all used for storing corresponding analysis results. It should be noted that key is a key, and value is a value. Namely, the corresponding value can be queried through the key.
Illustratively, the parsing system creates a set for elements of a structure or an array, performs deserialization on the iterated basic types or character strings after protocol data is expressed in the form of a differencing transformation tree to obtain a parsing result, matches the parsing result with the elements, and stores the parsing result and the elements in a corresponding set to form a configuration data transformation relation table. For example, referring to fig. 7, the configuration data conversion relationship table includes: sequence number, level, data structure, base type, and name. Generating a configuration data conversion relation table by the following method:
1. sequence number: sequencing the serial numbers of the elements in the pre-sequences of the multi-difference conversion tree; 2. grade: elements are hierarchical in a multi-difference transform tree; 3. data structure: the method comprises the following steps of dividing the data into a structure body, an array, a basic type and a character string; 4. the basic type: obtaining according to a basic data type table; 5. name: element names.
In an optional embodiment, the method further comprises:
when the data structure is an array, determining a corresponding array type according to the number of times of matching use of elements in the array, and determining a corresponding iteration type according to the array type; wherein the iteration types include: dynamic iteration and static iteration.
Further, when the data structure is an array, determining a corresponding array type according to the number of times of matching use of elements in the array, and determining a corresponding iteration type according to the array type; wherein the iteration types include: the dynamic iteration and the static iteration specifically comprise:
when the data structure is an array, the array type is a dynamic array according to the condition that the number of times of matching use of elements in the array is 0, and the corresponding iteration type is dynamic iteration.
When the data structure is an array, the number of times of matching use of elements in the array is not 0, the array type is a static array, the corresponding iteration type is static iteration, and the number of times of iteration of the array is determined according to the number of the elements of the current array.
In this embodiment, in the process of identifying the data structure, the element of the data structure that is an array is determined, and the number of times of matching use with the element in the array is determined. And if the matching use times is 0, the dynamic array is obtained, and the iteration type corresponding to the dynamic array is dynamic iteration. And if the matching use times are more than 0, the static state is obtained, the iteration type corresponding to the static array is static iteration, and the number of the elements of the iteration time array is large.
Illustratively, referring to fig. 7, the configuration data conversion relationship table includes: sequence number, level, data structure, base type, iteration number, and name. Generating a configuration data conversion relation table by the following method: 1. sequence number: sequencing the serial numbers of the elements in the pre-sequences of the multi-difference conversion tree; 2. grade: elements are hierarchical in a multi-difference transform tree; 3. data structure: the method comprises the following steps of dividing the data into a structure body, an array, a basic type and a character string; 4. the basic type: obtaining according to a basic data type table; 5. name: the name of the element; 6. the iteration times are the number of array elements. Therefore, after the analysis system sends the configuration data conversion relation table to the vehicle 2, the vehicle end can analyze the protocol data only through the configuration data conversion relation table, the C language limitation is removed, and the method can be further realized by development languages of any operable binary data and characters.
Fig. 8 is a schematic structural diagram of an apparatus for parsing data in a vehicle ethernet SOME/IP protocol according to an embodiment of the present invention.
An embodiment of the present invention correspondingly provides an apparatus for analyzing vehicle-mounted ethernet SOME/IP protocol data, including:
an obtaining module 10, configured to obtain protocol data sent by the vehicle 2; wherein the protocol data is binary data.
The conversion module 20 is configured to determine a data structure of an element in the protocol data according to the SOME/IP protocol structure, and form a multi-difference conversion tree according to the corresponding data structure.
A processing module 30, configured to perform deserialization processing on the elements in the multi-difference transformation tree to obtain a configuration data transformation relationship; wherein configuring the data transformation relationship comprises: and analyzing results corresponding to all elements in the protocol data.
And the configuration updating module 40 is configured to send the configuration data conversion relationship to the vehicle 2, so that the vehicle 2 analyzes the protocol data according to the configuration data conversion relationship, and performs configuration updating according to an analysis result.
The embodiment of the invention provides a vehicle-mounted Ethernet SOME/IP protocol data analysis device, which judges a data structure of protocol data by acquiring the protocol data sent by a vehicle 2, forms a multi-difference conversion tree according to the data structure, performs anti-sequence processing on elements in the multi-difference conversion tree to obtain a configuration data conversion relation, and sends the configuration data conversion relation to the vehicle 2, so that the vehicle 2 can directly analyze the protocol data according to the configuration data conversion relation, and the configuration of the vehicle 2 is updated. Therefore, by identifying the data structure of the protocol data, the protocol data is represented in the form of a multi-difference conversion tree, and then the elements in the multi-difference conversion tree are deserialized, so that the SOME/IP directly analyzes the binary data body of the SOME/IP according to the configuration data conversion relation under the condition that a C language protocol stack is not used, thereby being separated from the C language limitation, further being realized by the development language of any operable binary data and characters, and further leading the SOMEIP protocol to have wider application range when the vehicle-mounted Ethernet system carries out communication. Meanwhile, the vehicle 2 can be configured and updated only by receiving the analysis result of the protocol data, calculation at the vehicle end is not needed, and data processing pressure at the vehicle end is reduced.
Fig. 9 is a schematic diagram of a data interaction system of a vehicle ethernet according to an embodiment of the present invention. The data interaction system of the vehicle-mounted Ethernet of the embodiment comprises: a vehicle 2 and an analysis system 1 of SOME/IP protocol data; the system 1 for analyzing vehicle-mounted ethernet SOME/IP protocol data includes a processor 11, a memory 12, and a computer program stored in the memory 12 and configured to be executed by the processor 11, where the processor 11 implements the method for analyzing vehicle-mounted ethernet SOME/IP protocol data according to the embodiment of the present invention when executing the computer program, or implements the functions of each module/unit in each device embodiment when executing the computer program.
And the data communication end of the vehicle 2 is connected with the data communication end of the SOME/IP protocol data analysis system 1.
In the present embodiment, the SOME/IP protocol data analysis system 1 is described as a cloud server. The vehicle 2 uploads the protocol data to a cloud server for analysis, the cloud server judges a data structure of the protocol data after acquiring the protocol data, preset iterative processing is carried out on elements of which the data structure is a structural body or an array until the data structure is a basic type or a character string, then, all elements of which the data structure is the basic type or the character string are subjected to anti-sequence processing to obtain a corresponding analysis result so as to form a configuration data conversion relation, and then, the configuration data conversion relation is sent to the vehicle 2, so that the vehicle 2 can directly analyze the protocol data according to the configuration data conversion relation, and the configuration of the vehicle 2 is updated according to the analysis result.
The embodiment of the invention provides a data interaction system of a vehicle-mounted Ethernet, protocol data are uploaded to an analysis system 1 of SOME/IP protocol data through a vehicle 2 and are analyzed to obtain a corresponding configuration data conversion relation, and after the vehicle 2 receives the configuration data conversion relation, binary data can be directly analyzed without using a C language protocol stack, so that the C language restriction is separated, and further the data interaction system can be realized by development languages of any operable binary data and characters. The vehicle 2 can perform configuration update on the vehicle 2 only by receiving the analysis result of the protocol data, calculation is not needed in the vehicle 2, the data processing pressure of the vehicle 2 is reduced, and meanwhile, only the protocol data (namely, non-structural data) is uploaded, so that the uploading network consumption of the vehicle 2 is reduced.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the SOME/IP protocol data parsing system 1.
The SOME/IP protocol data analysis system 1 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The SOME/IP protocol data parsing system 1 may include, but is not limited to, a processor 11 and a memory 12. It will be understood by those skilled in the art that the schematic diagram is merely an example of the SOME/IP protocol data parsing system 1, and does not constitute a limitation of the SOME/IP protocol data parsing system 1, and may include more or less components than those shown, or combine SOME components, or different components, for example, the SOME/IP protocol data parsing system 1 may further include input and output devices, network access devices, buses, etc.
The Processor 11 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor is a control center of the SOME/IP protocol data parsing system 1, and various interfaces and lines are used for connecting various parts of the whole SOME/IP protocol data parsing system 1.
The memory 12 may be used to store the computer programs and/or modules, and the processor implements various functions of the SOME/IP protocol data parsing system 1 by running or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. The memory 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the integrated module/unit of the SOME/IP protocol data parsing system 1 may be stored in a computer readable storage medium if it is implemented in the form of software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A method for analyzing vehicle-mounted Ethernet SOME/IP protocol data is characterized by comprising the following steps:
acquiring protocol data sent by a vehicle, wherein the protocol data is binary data;
determining a data structure of elements in the protocol data according to the SOME/IP protocol structure, and forming a multi-difference conversion tree according to the corresponding data structure;
performing deserialization processing on elements in the multi-difference conversion tree to obtain a configuration data conversion relation; wherein configuring the data transformation relationship comprises: analyzing results corresponding to all elements in the protocol data;
and sending the configuration data conversion relation to a vehicle so that the vehicle analyzes the protocol data according to the configuration data conversion relation and performs configuration updating according to an analysis result.
2. The parsing method for vehicle ethernet SOME/IP protocol data according to claim 1, wherein the data structure of the elements in the protocol data comprises: structure, array, base type, and string.
3. The method for parsing data of the vehicle-mounted ethernet SOME/IP protocol according to claim 2, wherein the method obtains the corresponding data structure by the following steps to form a multi-difference transformation tree, and specifically comprises:
and carrying out preset iterative processing on elements of which the data structures are structural bodies or arrays in the protocol data until the data structures are basic types or character strings so as to form the multi-difference conversion tree.
4. The method for analyzing vehicle-mounted ethernet SOME/IP protocol data according to claim 3, wherein the deserializing of the elements in the multi-difference transformation tree is performed to obtain the configuration data transformation relationship, specifically comprising:
performing deserialization processing on elements of all data structures in the multi-difference conversion tree which are basic types or character strings to obtain corresponding analysis results;
and forming a configuration data conversion relation according to the elements in the multi-difference conversion tree and the corresponding analysis results.
5. The method for parsing data according to the vehicle-mounted ethernet SOME/IP protocol of claim 4, wherein the performing corresponding deserialization according to the data structure of the elements in the multi-difference transformation tree to obtain the corresponding parsing result specifically comprises:
when the data structure is a basic type, searching an deserialization rule corresponding to the current basic type according to a preset basic data type table, and performing deserialization processing according to the searched deserialization rule to obtain a corresponding physical value;
and when the data structure is a character string, performing deserialization processing on the byte length of the current element according to a preset encoding deserialization method to obtain a corresponding physical value.
6. The parsing method for vehicle ethernet SOME/IP protocol data according to claim 3, wherein said method further comprises:
when the data structure is an array, determining a corresponding array type according to the number of times of matching use of elements in the array, and determining a corresponding iteration type according to the array type; wherein the iteration types include: dynamic iteration and static iteration.
7. The method for parsing data of the vehicle-mounted ethernet SOME/IP protocol according to claim 6, wherein when the data structure is an array, determining the corresponding iteration type according to the number of times of the elements in the array, specifically comprises:
when the data structure is an array, the array type is a dynamic array according to the condition that the number of times of matching use of elements in the array is 0, and the corresponding iteration type is dynamic iteration;
when the data structure is an array, the number of times of matching use of elements in the array is not 0, the array type is a static array, the corresponding iteration type is static iteration, and the number of times of iteration of the array is determined according to the number of the elements of the current array.
8. A vehicle-mounted Ethernet SOME/IP protocol data analysis device is characterized by comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring protocol data sent by a vehicle, and the protocol data is binary data;
the conversion module is used for determining a data structure of elements in the protocol data according to the SOME/IP protocol structure and forming a multi-difference conversion tree according to the corresponding data structure;
the processing module is used for performing deserialization processing on the elements in the multi-difference conversion tree to obtain a configuration data conversion relation; wherein configuring the data transformation relationship comprises: analyzing results corresponding to all elements in the protocol data;
and the configuration updating module is used for sending the configuration data conversion relation to the vehicle so as to enable the vehicle to analyze the protocol data according to the configuration data conversion relation and perform configuration updating according to an analysis result.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program, wherein the computer program, when running, controls an apparatus in which the computer-readable storage medium is located to execute the method for resolving ethernet-on-vehicle SOME/IP protocol data according to any one of claims 1 to 7.
10. A data interaction system of a vehicle-mounted Ethernet is characterized by comprising: the vehicle and the SOME/IP protocol data analysis system; the system for analyzing the SOME/IP protocol data comprises: a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the parsing method of the vehicle ethernet SOME/IP protocol data according to any one of claims 1 to 7 when executing the computer program;
and the data communication end of the vehicle is connected with the data communication end of the SOME/IP protocol data analysis system.
CN202011540272.2A 2020-12-23 2020-12-23 Vehicle-mounted Ethernet SOME/IP protocol data analysis method, device, medium and system Active CN112769767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011540272.2A CN112769767B (en) 2020-12-23 2020-12-23 Vehicle-mounted Ethernet SOME/IP protocol data analysis method, device, medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011540272.2A CN112769767B (en) 2020-12-23 2020-12-23 Vehicle-mounted Ethernet SOME/IP protocol data analysis method, device, medium and system

Publications (2)

Publication Number Publication Date
CN112769767A true CN112769767A (en) 2021-05-07
CN112769767B CN112769767B (en) 2022-06-14

Family

ID=75695821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011540272.2A Active CN112769767B (en) 2020-12-23 2020-12-23 Vehicle-mounted Ethernet SOME/IP protocol data analysis method, device, medium and system

Country Status (1)

Country Link
CN (1) CN112769767B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608738A (en) * 2021-07-23 2021-11-05 成都航盛智行科技有限公司 Automobile service system based on someip instrument data
CN114268666A (en) * 2021-12-08 2022-04-01 东软睿驰汽车技术(沈阳)有限公司 Universal domain controller, vehicle and interactive system supporting service oriented architecture SOA
CN114647429A (en) * 2022-03-18 2022-06-21 重庆长安汽车股份有限公司 Terminal function updating method based on AI intelligent assistant scene action protocol

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016037540A1 (en) * 2014-09-10 2016-03-17 烽火通信科技股份有限公司 Network element network management service configuration adaptation system and method based on pb and xpath
DE102015215480A1 (en) * 2015-08-13 2017-02-16 Robert Bosch Gmbh Method and device for transmitting a message in a vehicle
CN108810000A (en) * 2018-06-20 2018-11-13 北京经纬恒润科技有限公司 A kind of method and device of formation sequence and unserializing API
WO2019123447A1 (en) * 2017-12-24 2019-06-27 Arilou Information Security Technologies Ltd. System and method for tunnel-based malware detection
CN110083088A (en) * 2019-03-29 2019-08-02 上海赫千电子科技有限公司 Signal controls conversion equipment and signal controls conversion method
US20190268420A1 (en) * 2018-02-27 2019-08-29 Excelfore Corporation Broker-based bus protocol and multi-client architecture
CN110460621A (en) * 2019-09-10 2019-11-15 上海怿星电子科技有限公司 A kind of industry ethernet based on SOME/IP agreement and CAN bus data transfer device and system
CN110497920A (en) * 2019-08-29 2019-11-26 华人运通(江苏)技术有限公司 Signal processing method, apparatus and system
WO2020094346A1 (en) * 2018-11-07 2020-05-14 Volkswagen Aktiengesellschaft Data switching device and data switching method for a vehicle, device and method for a vehicle component of a vehicle, and computer program
CN111475149A (en) * 2020-04-03 2020-07-31 爱瑟福信息科技(上海)有限公司 Method and system for realizing SOMEIP communication intermediate layer code
CN111478898A (en) * 2020-04-03 2020-07-31 爱瑟福信息科技(上海)有限公司 Method and system for serializing and deserializing SOMEIP protocol communication data

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016037540A1 (en) * 2014-09-10 2016-03-17 烽火通信科技股份有限公司 Network element network management service configuration adaptation system and method based on pb and xpath
DE102015215480A1 (en) * 2015-08-13 2017-02-16 Robert Bosch Gmbh Method and device for transmitting a message in a vehicle
WO2019123447A1 (en) * 2017-12-24 2019-06-27 Arilou Information Security Technologies Ltd. System and method for tunnel-based malware detection
US20190268420A1 (en) * 2018-02-27 2019-08-29 Excelfore Corporation Broker-based bus protocol and multi-client architecture
CN108810000A (en) * 2018-06-20 2018-11-13 北京经纬恒润科技有限公司 A kind of method and device of formation sequence and unserializing API
WO2020094346A1 (en) * 2018-11-07 2020-05-14 Volkswagen Aktiengesellschaft Data switching device and data switching method for a vehicle, device and method for a vehicle component of a vehicle, and computer program
CN110083088A (en) * 2019-03-29 2019-08-02 上海赫千电子科技有限公司 Signal controls conversion equipment and signal controls conversion method
CN110497920A (en) * 2019-08-29 2019-11-26 华人运通(江苏)技术有限公司 Signal processing method, apparatus and system
CN110460621A (en) * 2019-09-10 2019-11-15 上海怿星电子科技有限公司 A kind of industry ethernet based on SOME/IP agreement and CAN bus data transfer device and system
CN111475149A (en) * 2020-04-03 2020-07-31 爱瑟福信息科技(上海)有限公司 Method and system for realizing SOMEIP communication intermediate layer code
CN111478898A (en) * 2020-04-03 2020-07-31 爱瑟福信息科技(上海)有限公司 Method and system for serializing and deserializing SOMEIP protocol communication data

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608738A (en) * 2021-07-23 2021-11-05 成都航盛智行科技有限公司 Automobile service system based on someip instrument data
CN113608738B (en) * 2021-07-23 2023-12-12 成都航盛智行科技有限公司 Automobile service system based on someip instrument data
CN114268666A (en) * 2021-12-08 2022-04-01 东软睿驰汽车技术(沈阳)有限公司 Universal domain controller, vehicle and interactive system supporting service oriented architecture SOA
CN114268666B (en) * 2021-12-08 2024-05-03 东软睿驰汽车技术(沈阳)有限公司 Universal domain controller supporting Service Oriented Architecture (SOA), vehicle and interaction system
CN114647429A (en) * 2022-03-18 2022-06-21 重庆长安汽车股份有限公司 Terminal function updating method based on AI intelligent assistant scene action protocol
CN114647429B (en) * 2022-03-18 2024-09-17 重庆长安汽车股份有限公司 Terminal function updating method based on AI intelligent assistant scene action protocol

Also Published As

Publication number Publication date
CN112769767B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN112769767B (en) Vehicle-mounted Ethernet SOME/IP protocol data analysis method, device, medium and system
CN109343857B (en) Method, apparatus and storage medium for deploying machine learning model on line
CN109117209B (en) Serialization and deserialization method and device
CN112104664B (en) Protocol conversion method, device and equipment for data of Internet of things
CN108334609B (en) Method, device, equipment and storage medium for realizing JSON format data access in Oracle
CN111309863B (en) Natural language question-answering method and device based on knowledge graph
CN114090671A (en) Data import method and device, electronic equipment and storage medium
CN112102840B (en) Semantic recognition method, semantic recognition device, terminal and storage medium
CN115630618A (en) Intelligent scene editing method, system, equipment and medium for PDF document
CN112988753A (en) Data searching method and device
CN115774750A (en) Database lake entering configuration method and system, electronic equipment and storage medium
CN111949793A (en) User intention identification method and device and terminal equipment
CN112883088B (en) Data processing method, device, equipment and storage medium
CN110555178B (en) Data proxy method and device
CN110569243B (en) Data query method, data query plug-in and data query server
CN110795915B (en) Method, system, device and computer readable storage medium for modifying xml files in batches
CN115730589A (en) News propagation path generation method based on word vector and related device
CN112130860B (en) JSON object analysis method and device, electronic equipment and storage medium
CN113392250A (en) Vector diagram retrieval method and system based on deep learning
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN111782608A (en) Automatic file generation method and device, electronic equipment and storage medium
CN111459411A (en) Data migration method, device, equipment and storage medium
CN111782479A (en) Log processing method and device, electronic equipment and computer readable storage medium
CN115994151B (en) Data request changing method, device, electronic equipment and computer readable medium
CN117235236B (en) Dialogue method, dialogue device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant