Method for serialization and deserialization of some / ip protocol in a communication network

By adding the serialization protocol field information supported by the node to the SOME/IP-SD message, the appropriate serialization protocol can be dynamically selected, which solves the problems of low efficiency and poor compatibility of the SOME/IP protocol and improves the data transmission efficiency and readability of vehicle and vehicle-to-cloud communication.

CN123164099APending Publication Date: 2026-11-24ROBERT BOSCH GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510680142.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

The existing SOME/IP protocol's serialization mechanism has low processing efficiency, and the serialized data is unreadable and has poor compatibility, which limits its application in vehicle communication.

Method used

Add the serialization protocol field information supported by the node to the option array of the SOME/IP-SD message, dynamically select the appropriate serialization protocol, and transmit data according to data requirements and node support.

Benefits of technology

It improves the data transmission efficiency of the SOME/IP protocol in vehicle communication and vehicle-to-cloud communication networks, and enhances data readability and cross-platform compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164099A_ABST
    Figure CN123164099A_ABST
Patent Text Reader

Abstract

Embodiments of this application provide a method for serialization of the SOME / IP protocol in a communication network, comprising: a first node to transmit data broadcasting a SOME / IP-SD message to each other node in the communication network, and receiving a SOME / IP-SD message from each other node in the communication network, wherein the option array of the message includes field information about the serialization protocol supported by the corresponding node; the first node determining the serialization protocol of the communication network based on the received SOME / IP-SD message and the requirement information of the data to be transmitted; the first node serializing the data to be transmitted using the determined serialization protocol; and the first node sending the serialized message data to a second node to receive data via the SOME / IP protocol. According to this application, the data transmission efficiency of the SOME / IP protocol in vehicular communication networks and / or vehicle-to-cloud communication networks is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data communication, and more particularly to a method for serializing the SOME / IP protocol in a communication network, a data transmitting device, a method for deserializing the SOME / IP protocol in a communication network, a data receiving device, an electronic control unit, a cloud server, and a computer program product for assisting in implementing the steps of the method according to this application. Background Technology

[0002] With the rapid development of intelligent connected vehicles, not only has the amount of data to be transmitted between sensors and controllers installed inside the vehicle increased significantly, but the amount of data transmitted between the vehicle and cloud servers has also increased dramatically. To meet the demands of large data transmission volumes, in-vehicle Ethernet has been introduced for in-vehicle data communication and data communication between the vehicle and cloud servers. The SOME / IP protocol (Scalable Service-Oriented Middleware Over IP) is a commonly used application layer protocol for in-vehicle Ethernet, requiring data transmission, reception, and processing to adhere to the protocol format defined by SOME / IP. However, the serialization mechanism built into the SOME / IP protocol has low processing efficiency, the serialized data is in an unreadable binary format, has poor compatibility, and is not supported across platforms. This greatly limits the application of the SOME / IP protocol in in-vehicle communication.

[0003] Therefore, the current serialization mechanism of the SOME / IP protocol has room for improvement. Summary of the Invention

[0004] The purpose of this application is to provide a method for serializing the SOME / IP protocol in a communication network, a data transmitting device, a method for deserializing the SOME / IP protocol in a communication network, a data receiving device, an electronic control unit, a cloud server, and a computer program product, so as to at least partially solve the problems in the prior art.

[0005] According to a first aspect of this application, a method for serializing the SOME / IP protocol in a communication network is provided, the method comprising:

[0006] - The first node to send data can broadcast SOME / IP-SD messages to other nodes in the communication network and receive SOME / IP-SD messages from other nodes in the communication network. The option array of the SOME / IP-SD message includes field information about the serialization protocols supported by the corresponding nodes.

[0007] - The first node can determine the serialization protocol of the communication network based on the received SOME / IP-SD message and the requirement information of the data to be transmitted;

[0008] - The first node can serialize the data to be transmitted using a determined serialization protocol, wherein the serialized message data includes field information about the serialization protocol used; and

[0009] - The first node can send serialized message data to the second node that is receiving data via the SOME / IP protocol.

[0010] The core concept of this application includes at least the following: when using the SOME / IP protocol for data transmission in an in-vehicle communication network and / or a vehicle-to-cloud communication network, adding field information about the serialization protocol supported by the corresponding node to the option array of the SOME / IP-SD message broadcast by each node. This allows for dynamic adjustment of the adapted serialization protocol based on the serialization protocol supported by each node and the requirements of the data to be transmitted, effectively improving the data transmission efficiency of the SOME / IP protocol in the in-vehicle communication network and / or the vehicle-to-cloud communication network.

[0011] According to a second aspect of this application, a data transmission apparatus is provided for performing a serialization method for the SOME / IP protocol in a communication network according to this application, wherein the data transmission apparatus includes, for example, an electronic control unit and / or a cloud server.

[0012] According to a third aspect of this application, a method for deserializing the SOME / IP protocol in a communication network is provided, the method comprising:

[0013] - In response to serialized message data received from the data transmission device according to this application, the second node may determine the serialization protocol based on the field information in the message data regarding the serialization protocol used, and use the determined serialization protocol to deserialize the received message data.

[0014] According to a fourth aspect of this application, a data receiving apparatus is provided for performing a method for deserialization of the SOME / IP protocol in a communication network according to this application, wherein the data receiving apparatus includes, for example, an electronic control unit and / or a cloud server.

[0015] According to a fifth aspect of this application, an electronic control unit is provided, the electronic control unit comprising:

[0016] - At least one onboard processor; and

[0017] - An on-board memory storing program instructions executable by the at least one on-board processor, which, when executed by the at least one on-board processor, implement the method according to this application.

[0018] According to a sixth aspect of this application, a cloud server is provided, the cloud server comprising:

[0019] - At least one cloud processor; and

[0020] - A cloud storage device storing program instructions executable by the at least one cloud processor, which, when executed by the at least one cloud processor, implement the method according to this application.

[0021] According to a seventh aspect of this application, a computer program product, such as a computer-readable program carrier, is provided, comprising computer program instructions that, when executed by a processor, assist in implementing the steps of the method according to this application. Attached Figure Description

[0022] The principles, features, and advantages of this application will be better understood below with reference to the accompanying drawings. The drawings include:

[0023] Figure 1 A flowchart illustrating a method for serializing the SOME / IP protocol in a communication network according to an exemplary embodiment of this application is shown.

[0024] Figure 2 A schematic diagram of a communication network according to an exemplary embodiment of this application is shown;

[0025] Figure 3 A schematic diagram of a SOME / IP message according to an exemplary embodiment of this application is shown;

[0026] Figure 4 A schematic diagram of a communication network according to another exemplary embodiment of this application is shown;

[0027] Figure 5 A schematic diagram of a communication network according to another exemplary embodiment of this application is shown; and

[0028] Figure 6 A flowchart illustrating a method for deserializing the SOME / IP protocol in a communication network according to an exemplary embodiment of this application is shown. Detailed Implementation

[0029] To make the technical problems to be solved, the technical solutions, and the beneficial technical effects of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and several exemplary embodiments. It should be understood that the specific embodiments described herein are only for explaining this application and are not intended to limit the scope of protection of this application.

[0030] Figure 1 A flowchart illustrating a method for serializing the SOME / IP protocol in a communication network according to an exemplary embodiment of this application is shown. The following exemplary embodiments describe the method according to this application in more detail.

[0031] like Figure 1 As shown, the method may include steps S1 to S4. In step S1, the first node 1, which is to send data, may broadcast SOME / IP-SD messages to other nodes in the communication network and receive SOME / IP-SD messages from other nodes in the communication network. The option array of the SOME / IP-SD message may include field information about the serialization protocols supported by the corresponding nodes. In the current embodiment of this application, the data sending device 1, or the server—that is, the first node 1, which is to send data—executes the method for serialization of the SOME / IP protocol in the communication network, for the purpose of... Figure 3 The application scenario diagram shows data being sent to the data receiving device 2, or the client—that is, the second node 2 to receive data.

[0032] During the initialization of the communication network, each node in the network broadcasts SOME / IP-SD messages to all other nodes in the network except itself. This is used to locate service instances, check if service instances are running, and perform publish / subscribe processing. For example... Figure 2 A schematic diagram of a communication network according to an exemplary embodiment of this application is shown. The communication network includes a first node 1 to send data, a second node 2 to receive data, and a fourth node 4. As indicated by the arrows, the first node 1, the second node 2, and the fourth node 4 broadcast SOME / IP-SD messages to each other. Figure 3A schematic diagram of a SOME / IP message according to an exemplary embodiment of this application is shown. The SOME / IP message consists of data blocks A to F, where data block A represents an identifier bit, data block B represents a reserved bit, data block C represents the length of the Entries Array, and data block D represents the content of the Entries Array, which contains key information such as service provision and subscription during the service discovery process. Considering the low efficiency of the serialization mechanism built into the SOME / IP protocol, in order to achieve dynamic selection of the serialization protocol during data transmission, fields regarding the serialization protocols supported by the corresponding node can be added to the Options Array of the SOME / IP-SD message broadcast by the node. The serialization protocols may include one or more of the following protocols: SOME / IP protocol, Protobuf protocol, JSON protocol, and XML protocol, etc., where data block E represents the length of the Options Array, and data block F represents the content of the Options Array. Before the first node 1 sends data, the first node 1, as the data provider, can receive SOME / IP-SD messages from all other nodes in the communication network besides the first node 1.

[0033] In step S2, the first node 1 determines the serialization protocol of the communication network based on the received SOME / IP-SD message and the requirements of the data to be transmitted. Here, the requirements of the data to be transmitted may include the data volume, and / or the real-time requirements, and / or the readability requirements, etc. Under different data transmission requirements, the serialization protocol that best matches the current data to be transmitted can be dynamically selected. The selection of a serialization protocol is explained below in conjunction with the advantages and disadvantages of different serialization protocols.

[0034] The SOME / IP protocol's built-in serialization protocol uses binary format encoding, resulting in extremely fast serialization and deserialization speeds with low computational resource overhead. The serialized data length is also minimal due to its compact binary format, making SOME / IP a suitable serialization protocol for scenarios with high real-time data transmission requirements. However, SOME / IP handles complex data structures and generates large data packets during serialization, leading to lower data processing efficiency. Furthermore, the binary format data serialized via SOME / IP is unreadable, has low version compatibility, and is only compatible with SOME / IP systems, lacking cross-platform support (e.g., Windows, Linux, Android, iOS). It also does not support programming languages ​​such as C++, Python, and Java, and requires encryption through protocols such as transport layer security.

[0035] The Protobuf protocol is a platform- and language-independent serialization protocol. It also uses binary encoding, resulting in fast serialization and deserialization speeds. Furthermore, it reduces the length of serialized data through efficient compression and lowers computational resource requirements through efficient parsing. Therefore, Protobuf is a suitable serialization protocol for large data transfer volumes. While data serialized using Protobuf is unreadable due to its binary format and requires encryption through protocols such as transport layer security, it boasts high version compatibility, cross-platform support, and compatibility with programming languages ​​such as C++, Python, and Java.

[0036] Data serialized using the SOME / IP or Protobuf protocols is unreadable binary data. When readable serialized data is required, JSON or XML protocols can be chosen. JSON serialization requires string parsing, and deserialization requires string conversion, resulting in slower serialization and deserialization speeds and higher computational resource costs. JSON serialized data is readable due to its text format, has a larger data length due to string tags, high version compatibility, cross-platform support, and supports embedded JSON web encryption. XML serialization requires tag-based parsing, and deserialization requires character-by-character parsing, making it the slowest and most computationally expensive protocol. XML serialized data has the highest readability due to its hierarchical structure, the largest data length due to redundant XML tags, high version compatibility, cross-platform support, and supports embedded XML encryption.

[0037] Furthermore, considering that the data types to be transmitted may change dynamically, and nodes in the communication network may be added or removed, the first node 1 can dynamically select a serialization protocol that is compatible with the current broadcast information and the current data to be transmitted based on the received SOME / IP-SD message and the requirements of the data to be transmitted during the data transmission process, instead of always using a fixed serialization protocol.

[0038] like Figure 4A schematic diagram of a communication network according to another exemplary embodiment of this application is shown. A third node 3 is newly added to the communication network. The third node 3 can send broadcast information about the serialization protocol supported by the third node 3 to other nodes in the communication network other than the third node 3, including the first node 1, the second node 2 and the fourth node 4, as well as the services that the third node 3 needs to subscribe to or publish. Thus, the first node 1, which is to send data, can adjust the selected serialization protocol based on the serialization protocol supported by the newly added third node 3. For example, node 1 supports SOME / IP, Protobuf, and XML protocols, while nodes 2 and 4 only support SOME / IP and Protobuf. Before node 3 joins the communication network, node 1 can choose either SOME / IP or Protobuf as the serialization protocol based on the requirements of the data to be transmitted. For instance, it might choose Protobuf when the amount of data to be transmitted is large, or choose the cross-platform supported Protobuf protocol when data received by node 2 needs to be further forwarded to the cloud server, or choose SOME / IP when the real-time requirements of the data to be transmitted are high, and so on. After node 3 joins the communication network, node 3, for example, only supports SOME / IP, thus node 1 can only use SOME / IP as the serialization protocol. For example, when a third node 3 needs to send data, the third node 3 can also request the SOME / IP-SD message from other nodes in the communication network besides itself. Thus, the third node 3 can dynamically select the serialization protocol that best matches the current SOME / IP-SD message and the current data to be transmitted based on the received SOME / IP-SD message and the request information of the data to be transmitted.

[0039] like Figure 5 A schematic diagram of a communication network according to another exemplary embodiment of this application is shown. A fourth node 4 exits the communication network. The first node 1 can determine the serialization protocol of the communication network based on the SOME / IP-SD messages received from the remaining nodes in the communication network (excluding the fourth node 4) and the request information of the data to be transmitted. For example, the fourth node 4 only supports the SOME / IP protocol, while the remaining first node 1 and second node 2 support both the SOME / IP and Protobuf protocols. After the fourth node 4 exits the communication network, the first node 1 can select either the SOME / IP or Protobuf protocol as the serialization protocol based on the request information of the data to be transmitted, instead of consistently using the SOME / IP protocol.

[0040] In step S3, the first node 1 can serialize the data to be transmitted using the determined serialization protocol. The serialized message data includes field information about the serialization protocol used. Considering that the serialization protocol used may be dynamically adjusted during data transmission, to ensure that the second node 2 can successfully perform the deserialization process of the received data, field information about the serialization protocol used can be added to the serialized message data.

[0041] In step S4, the first node 1 can send serialized message data to the second node 2, which is receiving data, via the SOME / IP protocol. Here, the first node 1 can broadcast the serialized message data to all other nodes in the communication network, or it can send the serialized message data only to the second node 2, which has subscribed to the data to be transmitted, thereby completing the data transmission process of the communication network.

[0042] According to this application, when using the SOME / IP protocol for data transmission in an in-vehicle communication network and / or a vehicle-to-cloud communication network, a field information about the serialization protocol supported by the corresponding node is added to the option array of the SOME / IP-SD message broadcast by each node. This allows for dynamic adjustment of the adapted serialization protocol based on the serialization protocol supported by each node and the requirements of the data to be transmitted, effectively improving the data transmission efficiency of the SOME / IP protocol in in-vehicle communication networks and / or vehicle-to-cloud communication networks.

[0043] The above describes the data serialization process performed by data sending device 1—that is, first node 1. The serialized message data sent will be received by data receiving device 2—that is, second node 2. After receiving the serialized message data, second node 2 can execute the deserialization method for the SOME / IP protocol in the communication network.

[0044] Here, the methods for serializing and deserializing the SOME / IP protocol in a communication network can be applied to in-vehicle communication networks between different electronic control units (ECUs) of a vehicle. Specifically, both the data transmitting device 1 and the data receiving device 2 are ECUs of the vehicle. Each ECU includes at least one in-vehicle processor and an in-vehicle memory. The in-vehicle memory stores program instructions executable by the at least one in-vehicle processor. When these program instructions are executed by the at least one in-vehicle processor, the methods for serializing and deserializing the SOME / IP protocol in the communication network are implemented. For example, the ECU may include in-vehicle system control units such as an engine control unit, a transmission control unit, an electronic stability control system control unit, an anti-lock braking system control unit, an electronic power steering system control unit, a body system control unit, an in-vehicle multimedia system control unit, and / or a navigation system control unit. It may also include ECUs integrated into in-vehicle sensors (e.g., in-vehicle cameras, millimeter-wave radar, lidar, tire pressure sensors, gyroscope sensors, and / or accelerometers), which are used to fuse and analyze data collected by the in-vehicle sensors. For example, during vehicle operation, the electronic control unit integrated in the vehicle sensors can serialize the data obtained through fusion processing and analysis via the SOME / IP protocol and send it to vehicle system control units such as the engine control unit, transmission control unit, electronic stability control system control unit, anti-lock braking system control unit, electronic power steering system control unit, and / or body system control unit to perform corresponding vehicle control functions.

[0045] The methods for serializing and deserializing the SOME / IP protocol in a communication network can also be applied to vehicle-to-cloud communication networks between a vehicle's electronic control unit (ECU) and a cloud server. This includes application scenarios where the ECU sends data to the cloud server—that is, data sending device 1 is the vehicle's ECU and data receiving device 2 is the cloud server—and application scenarios where the cloud server sends data to the ECU—that is, data sending device 1 is the cloud server and data receiving device 2 is the vehicle's ECU. The cloud server may include at least one cloud processor and a cloud memory. The cloud memory stores program instructions executable by the at least one cloud processor. When the program instructions are executed by the at least one cloud processor, the methods for serializing and deserializing the SOME / IP protocol in a communication network are implemented.

[0046] For example, after a vehicle connects to the internet, the cloud server joins the communication network and sends SOME / IP-SD messages to the vehicle's electronic control unit (ECU). Based on the received SOME / IP-SD messages, the ECU determines that the cloud server supports the Protobuf protocol—a protocol that is easy to integrate on the server side, has high compression efficiency, and saves network resources. Therefore, the ECU can use the Protobuf protocol to serialize vehicle operating data—including vehicle speed information, vehicle operation information, acceleration information, and / or steering angle information—and upload it to the cloud server. The cloud server can then use the Protobuf protocol to serialize navigation information and send it to the vehicle's navigation system control unit, or to serialize multimedia data requested by the vehicle and send it to the vehicle's in-vehicle multimedia system control unit. After the vehicle disconnects from the internet, the cloud server disconnects from the communication network, and the ECU can resume using the SOME / IP protocol to serialize the data to be sent and transmit data between the vehicle's ECUs.

[0047] Next, the method for deserialization of the SOME / IP protocol in a communication network, performed by the data receiving device 2, will be described in detail. Figure 6 A flowchart illustrating a method for deserializing the SOME / IP protocol in a communication network according to another exemplary embodiment of this application is shown.

[0048] like Figure 6 As shown, the method may include step S1'. In step S1', in response to serialized message data received from the data sending device 1 according to this application, the second node 2 may determine the serialization protocol based on the field information of the serialization protocol used in the message data, and use the determined serialization protocol to deserialize the received message data. It is understood that the serialization protocol determined based on the field information is always equal to the serialization protocol used in the serialization process of the message data. Thus, the data receiving device 2—that is, the second node 2—can smoothly execute the deserialization process of each segment of message data, especially when dynamically selecting the serialization protocol during the serialization process, it can adjust the corresponding serialization protocol in a timely manner during the deserialization process.

[0049] In addition, it should be noted that the step numbers described herein do not necessarily represent the order of steps, but are merely a reference numeral. The order may be changed depending on the specific circumstances, as long as the technical objective of this application can be achieved.

[0050] It should be understood that the terms “first,” “second,” “third,” etc., used in this document are for descriptive purposes only and should not be construed as indicating or implying relative importance, nor should they be construed as implicitly specifying the number of technical features indicated.

[0051] If an embodiment includes an "and / or" association between a first feature and a second feature, it should be interpreted as follows: according to one implementation, the embodiment has not only the first feature but also the second feature; according to another implementation, the embodiment has either only the first feature or only the second feature.

[0052] Although specific embodiments have been described above, these embodiments are not intended to limit the scope of this application, even when only a single embodiment is described with respect to a particular feature. The feature examples provided in this application are intended for illustrative purposes and not for limitation, unless otherwise stated. In practice, multiple features may be combined with each other as needed and where technically feasible. Various substitutions, modifications, and alterations are also conceived without departing from the spirit and scope of this application.

Claims

1. A method for serialization of the SOME / IP protocol in a communication network, the method comprising: The first node to send data broadcasts SOME / IP-SD messages to all other nodes in the communication network and receives SOME / IP-SD messages from all other nodes in the communication network. The option array of the SOME / IP-SD message includes field information about the serialization protocols supported by the corresponding node. The first node determines the serialization protocol of the communication network based on the received SOME / IP-SD message and the request information of the data to be transmitted; The first node serializes the data to be transmitted using the determined serialization protocol, wherein the serialized message data includes field information about the serialization protocol used; and The first node sends serialized message data to the second node that is receiving data via the SOME / IP protocol.

2. The method according to claim 1, wherein, During data transmission, the first node dynamically selects a serialization protocol that is compatible with the current SOME / IP-SD message and the current data to be transmitted based on the requirements of the SOME / IP-SD message and the data to be transmitted.

3. The method according to claim 2, wherein, When a third node joins the communication network, the third node sends the SOME / IP-SD message to other nodes in the communication network besides itself, and requests the SOME / IP-SD message from other nodes in the communication network besides itself.

4. The method according to claim 2, wherein, In the event that the fourth node exits the communication network, the first node determines the serialization protocol of the communication network based on the SOME / IP-SD messages and the request information of the data to be transmitted received from the remaining nodes in the communication network other than the fourth node.

5. The method according to any one of claims 1 to 4, wherein, The requirements for the data to be transmitted include the amount of data to be transmitted, and / or the real-time requirements of the data to be transmitted, and / or the readability requirements of the data to be transmitted.

6. The method according to any one of claims 1 to 5, wherein, The serialization protocol includes one or more of the following protocols: SOME / IP protocol, Protobuf protocol, JSON protocol, and XML protocol.

7. A data transmitting apparatus (1), said data transmitting apparatus (1) being configured to perform the method according to any one of the preceding claims, wherein, The data transmission device (1) includes, for example, an electronic control unit and / or a cloud server.

8. A method for deserialization of the SOME / IP protocol in a communication network, the method comprising: In response to the serialized message data received from the data transmission device (1) according to claim 7, the second node determines the serialization protocol based on the field information of the message data regarding the serialization protocol used, and uses the determined serialization protocol to deserialize the received message data.

9. A data receiving device (2), said data receiving device (2) being configured to perform the method according to claim 8, wherein, The data receiving device (2) may include, for example, an electronic control unit and / or a cloud server.

10. An electronic control unit, the electronic control unit comprising: At least one in-vehicle processor; and An on-board memory storing program instructions executable by the at least one on-board processor, which, when executed by the at least one on-board processor, implement the method according to any one of claims 1 to 6 and 8.

11. The electronic control unit according to claim 10, wherein, The electronic control unit includes an engine control unit, a transmission control unit, an electronic stability control system control unit, an anti-lock braking system control unit, an electronic power steering system control unit, a body system control unit, an in-vehicle multimedia system control unit, a navigation system control unit, and / or electronic control units integrated in in-vehicle sensors, wherein the in-vehicle sensors include in-vehicle cameras, millimeter-wave radar, lidar, tire pressure sensors, gyroscope sensors, and / or acceleration sensors.

12. A cloud server, the cloud server comprising: At least one cloud processor; and A cloud storage device storing program instructions executable by the at least one cloud processor, which, when executed by the at least one cloud processor, implements the method according to any one of claims 1 to 6 and 8.

13. A computer program product, such as a computer-readable program carrier, comprising computer program instructions that, when executed by a processor, assist in implementing the steps of the method according to any one of claims 1 to 6 and 8.