OTA upgrading method and device based on ring network architecture

By adopting the ring network architecture and the Ethernet data link layer encapsulation protocol in the OTA upgrade, the upgrade data packet is directly transmitted at the Ethernet link layer, which solves the problems of low OTA upgrade efficiency and success rate in the existing technology, and achieves a more Efficient data transfer and upgrade process.

CN118659969APending Publication Date: 2024-09-17CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410708453.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The OTA upgrade method in the existing technology is time-consuming and expensive in message assembly or encapsulation, and the data transmission efficiency is low. The upgrade efficiency and success rate need to be further improved.

Method used

Using the OTA upgrade method based on ring network architecture, a ring topology network structure is formed between the upgraded main control and upgraded sub-controllers, the target communication transmission path and alternative paths are determined, and the preset Ethernet data link layer encapsulation is used The protocol directly carries the upgrade data packet on the Ethernet data link layer, reducing the encapsulation and decapsulation process of the TCP and IP layers.

Benefits of technology

It improves the communication transmission flexibility and efficiency of OTA upgrade, reduces the overhead of message assembly and decapsulation, and increases the data transmission volume, thus improving the efficiency and success rate of OTA upgrade.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659969A
    Figure CN118659969A
Patent Text Reader

Abstract

The invention relates to the field of new energy vehicles, and provides an OTA upgrading method and device based on a ring network architecture. The method comprises the following steps: determining a target upgrading component; based on the ring network architecture, determining a target communication transmission path and an alternative communication transmission path corresponding to the target upgrade component; obtaining an upgrade data packet corresponding to the target upgrade component, and packaging the upgrade data packet into an upgrade communication message based on a preset Ethernet data link layer packaging protocol; and transmitting the upgrading communication message to the target upgrading component through the target communication transmission path, so that the target upgrading component is upgraded according to the upgrading communication message. According to the method and the device, the time consumption of frequent encapsulation and deencapsulation of the message can be reduced, the overhead of message assembly and deencapsulation is reduced, the data transmission quantity is increased, and the OTA upgrading efficiency and the success rate can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of new energy vehicles, and in particular to an OTA upgrade method and device based on a ring network architecture. Background Art

[0002] OTA (Over the Air Technology) has gradually evolved from the previous "function-oriented" OTA to the "service-oriented" OTA. SOA (Service-Oriented Architecture) provides a strong support capability and foundation for OTA. With the development of software-defined cars and the realization of SOA architecture, the potential of OTA upgrades can be better utilized, the difficulty of OTA upgrades can be reduced, and the efficiency of OTA upgrades can be improved.

[0003] SOME / IP (Scalable service-oriented Middleware over IP) is a service-oriented automotive Ethernet communication protocol. This protocol is located above the transport layer and is an application communication protocol. SOME / IP carries OTA upgrade messages to implement SOA communication. The transmission performance of SOME / IP directly affects the transmission performance of OTA upgrade messages in the communication network.

[0004] In the related technology, when using SOME / IP to carry OTA upgrade messages to realize SOA communication, it is necessary to transmit and analyze data through TCP / UDP, IP, and MAC layer encapsulation and decapsulation. In this process, if a problem occurs in any link, it will cause the message assembly or decapsulation to fail, and each layer of encapsulation and decapsulation requires a certain amount of time and encapsulation overhead, resulting in large encapsulation overhead, reduced data payload, less transmitted data, and low transmission efficiency. In addition, the upgrade efficiency and upgrade success rate of traditional OTA upgrade methods still need to be further improved. Summary of the invention

[0005] In view of this, an embodiment of the present application provides an OTA upgrade method and device based on a ring network architecture to solve the problems in the prior art that message assembly or encapsulation takes a long time, has high overhead, has a small data payload, has a small data transmission volume and low transmission efficiency, as well as how to further improve the upgrade efficiency and upgrade success rate.

[0006] In a first aspect of an embodiment of the present application, an OTA upgrade method based on a ring network architecture is provided, wherein the ring network architecture includes N upgrade master controls and M upgrade sub-controls, where M is an integer ≥ 2; wherein each upgrade master control and each upgrade sub-control are connected to at least one electronic control unit; each upgrade master control is connected to at least two upgrade sub-controls to form a first ring topology network structure; the M upgrade sub-controls are connected to form a second ring topology network structure; when N = 1, the upgrade master control is an upgrade master control; when N is an integer ≥ 2, the N upgrade master controls include an upgrade master control and N-1 upgrade sub-master controls, and the upgrade master control and the N-1 upgrade sub-master controls are connected to form an open-loop network structure or a closed-loop network structure;

[0007] The OTA upgrade method is used to upgrade the master control, including the following steps:

[0008] Determine the target upgrade components;

[0009] Based on the ring network architecture, determine the target communication transmission path and the alternative communication transmission path corresponding to the target upgrade component;

[0010] Obtain an upgrade data packet corresponding to the target upgrade component, and encapsulate the upgrade data packet into an upgrade communication message based on a preset Ethernet data link layer encapsulation protocol;

[0011] The upgrade communication message is transmitted to the target upgrade component through the target communication transmission path, so that the target upgrade component is upgraded according to the upgrade communication message.

[0012] According to a second aspect of the embodiment of the present application, an OTA upgrade device based on a ring network architecture is provided, comprising:

[0013] A component determination module is configured to determine a target upgrade component;

[0014] A path determination module is configured to determine a target communication transmission path and an alternative communication transmission path corresponding to a target upgrade component based on a ring network architecture;

[0015] The message encapsulation module is configured to obtain an upgrade data packet corresponding to the target upgrade component, and encapsulate the upgrade data packet into an upgrade communication message based on a preset Ethernet data link layer encapsulation protocol;

[0016] The message transmission module is configured to transmit the upgrade communication message to the target upgrade component through the target communication transmission path, so that the target upgrade component is upgraded according to the upgrade communication message.

[0017] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0018] According to a fourth aspect of an embodiment of the present application, a readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0019] Compared with the prior art, the embodiments of the present application have at least the following beneficial effects: on the one hand, OTA upgrade is realized based on the ring network architecture, which supports SOA service, and fully expands the communication transmission path between the upgrade master control and the target upgrade component, improves the communication transmission flexibility and communication transmission efficiency of the upgrade master control for OTA upgrade of the target upgrade component, and improves the efficiency and success rate of OTA upgrade. On the other hand, by encapsulating the upgrade data packet through the preset Ethernet data link layer encapsulation protocol, the upgrade data packet (SOME / IP message) can be directly carried on the data link layer of the Ethernet, bypassing the layers of encapsulation and unpacking of TCP and IP, which can reduce the time consumption of frequent encapsulation and unpacking of messages, reduce the overhead of message assembly and unpacking, and at the same time increase the data payload and increase the data transmission volume, thereby improving the data transmission efficiency, and then improving the efficiency of OTA upgrade. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1 It is a schematic diagram of the first application scenario provided by the embodiment of the present application;

[0022] Figure 2 is a schematic diagram of a second application scenario provided in an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of a third application scenario provided in an embodiment of the present application;

[0024] Figure 4 It is a schematic diagram of the structure of a standardized service system built on SOA provided in an embodiment of the present application;

[0025] Figure 5 It is a schematic diagram of a component network topology structure based on SOA architecture provided in an embodiment of the present application;

[0026] Figure 6 It is a flowchart of an OTA upgrade method based on a ring network architecture provided in an embodiment of the present application;

[0027] Figure 7 It is a structural diagram of an in-vehicle Ethernet communication protocol provided in an embodiment of the present application;

[0028] Figure 8 It is a schematic diagram comparing the existing message encapsulation method provided in the embodiment of the present application with the message encapsulation method of the present application;

[0029] Fig. 9 This is a schematic diagram of the interaction process between a server and a client based on an SOA architecture provided in an embodiment of the present application;

[0030] Fig.10 It is a schematic diagram of a data frame structure of an Ethernet data link layer encapsulation protocol provided in an embodiment of the present application;

[0031] Fig.11 It is a schematic diagram of an OTA upgrade scenario based on a ring network architecture provided in an embodiment of the present application;

[0032] Fig.12 This is a schematic diagram of message format conversion provided by an embodiment of the present application;

[0033] Fig.13 It is a schematic diagram of another OTA upgrade scenario based on a ring network architecture provided in an embodiment of the present application;

[0034] Fig.14 It is a schematic diagram of another OTA upgrade scenario based on the ring network architecture provided in an embodiment of the present application;

[0035] Fig.15 It is a structural diagram of an OTA upgrade device based on a ring network architecture provided in an embodiment of the present application;

[0036] Fig.16 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0038] An OTA upgrade method and device based on a ring network architecture according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0039] Figure 11 is a schematic diagram of the first application scenario provided by the embodiment of the present application. The application scenario may include an upgrade server 10 and a vehicle end 20; wherein a ring network architecture (an electronic and electrical architecture) supporting SOA service is deployed on the vehicle end 20. Figure 1 As an example, the ring network architecture includes one upgrade main control (i.e., N=1) and four upgrade sub-controls (i.e., M=4). Among them, each upgrade main control and each upgrade sub-control are connected to at least one electronic control unit; for example, the upgrade main control (for the upgrade master main control) can be connected to ECU0'-1...ECU0'-n, a total of n electronic control units (ECU). Upgrade sub-control 1 can be connected to ECU1-1...ECU1-n, a total of n electronic control units (ECU); upgrade sub-control 2 can be connected to ECU2-1...ECU2-n, a total of n electronic control units (ECU); upgrade sub-control 3 can be connected to ECU3-1...ECU3-n, a total of n electronic control units (ECU); upgrade sub-control 4 can be connected to ECU4-1...ECU4-n, a total of n electronic control units (ECU). Each upgrade main control is connected to at least two upgrade sub-controls to form a first ring topology network structure; for example, the upgrade main control is connected to upgrade sub-control 1 and upgrade sub-control 2 to form a first ring topology network structure 1, that is, the upgrade main control Upgrade sub-control 1 Upgrade sub-control 2 Upgrade the main control; the upgraded main control is connected with the upgraded sub-control 3 and the upgraded sub-control 4 to form a first ring topology network structure 2, that is, the upgraded main control Upgrade sub-control 3 Upgrade sub-control M Upgrade the main control. The four upgraded sub-controllers are connected to form a second ring topology network structure; for example, upgraded sub-controller 1, upgraded sub-controller 2, upgraded sub-controller 3, and upgraded sub-controller 4 are connected to form a second ring topology network structure, that is, upgraded sub-controller 1 Upgrade sub-control 2 Upgrade sub-control 3 Upgrade sub-control 4 Upgrade sub-control 1.

[0040] Figure 2 1 is a schematic diagram of a second application scenario provided by an embodiment of the present application. The application scenario may include an upgrade server 10 and a vehicle end 20; wherein a ring network architecture supporting SOA service is deployed on the vehicle end 20. Figure 2 , as an example, with the above Figure 1The main difference from the first scenario is that the ring network architecture includes two upgrade master controllers (i.e., N=2) and four upgrade sub-controllers (i.e., M=4). The N upgrade master controllers include an upgrade master controller and an upgrade sub-master controller 1. The upgrade master controller and the upgrade sub-master controller are connected to form an open-loop network structure, i.e., the upgrade master controller Upgrade the secondary master controller 1.

[0041] Figure 3 1 is a schematic diagram of a third application scenario provided by an embodiment of the present application. The application scenario may include an upgrade server 10 and a vehicle end 20; wherein a ring network architecture supporting SOA service is deployed on the vehicle end 20. Figure 3 , as an example, with the above Figure 1 The main difference from the first scenario is that the ring network architecture includes three upgrade master controls (i.e., N=3), four upgrade sub-controls (i.e., M=4), the N upgrade master controls include one upgrade master control and two upgrade sub-master controls (respectively, upgrade sub-master control 1 and upgrade sub-master control 2), and the upgrade master control and the upgrade sub-master control are connected to form a closed-loop network structure, i.e., the upgrade master control Upgrade the secondary master 1 Upgrade the secondary controller 2 Upgrade the master control.

[0042] In the embodiment of the present application, the upgrade master control can be the smart cockpit (or cockpit domain controller) (Cockpit Domain Controller, referred to as "CDC") of the vehicle end 20, the upgrade sub-master control can be the vehicle controller (or vehicle domain controller) (VDC) of the vehicle end 20, and the upgrade sub-control can be the vehicle integration gateway (or vehicle integration unit) (Vehicle Integration Unit, referred to as "VIU") of the vehicle end 20. The upgrade master control, upgrade sub-master control, and upgrade sub-control can be connected through 100M / 1000M Ethernet; the upgrade master control, upgrade sub-master control, and upgrade sub-control can be connected to each ECU under it through Ethernet or CAN bus. The upgrade master control and upgrade sub-master control are both provided with WiFi module and SIM module, wherein the WiFi module is connected to the first OTA platform 101 in the upgrade server 10 through WiFi; the SIM module (also referred to as SIM card) is connected to the second OTA platform 102 in the upgrade server 10 through 4G / 5G network.

[0043] The upgrade server 10 may include a first OTA platform 101 and a second OTA platform 102. The first OTA platform 101 and the second OTA platform 102 both synchronously store upgrade files and version information of various components of the vehicle end 10. The first OTA platform 101 and the second OTA platform 102 may both operate and manage upgrade files and version information of various components of the vehicle end 10.

[0044] The upgrade master controller carries the OTA upgrade master controller (hereinafter referred to as "UMC master ”), the upgrade sub-master controller carries the OTA upgrade sub-master controller (hereinafter referred to as “UMC second ”), the upgrade sub-controller carries the OTA upgrade sub-controller (hereinafter referred to as “UMC branch ”). Each ECU connected to the upgrade master control, upgrade sub-master control, and upgrade sub-controller carries an OTA upgrade slave control (hereinafter referred to as “US”).

[0045] Figure 4 This is a schematic diagram of the structure of a standardized service system based on SOA provided by an embodiment of the present application. Figure 4 The entire SOA architecture builds a system that decouples software and hardware, completes the abstraction and adaptation of services, and establishes a standardized service system, which may include: scalable electronic and electrical architecture, also called computing and communication architecture, scalable hardware computing platform, operating system kernel, device abstraction layer, atomic service layer, application and composite service layer. This six-layer architecture design achieves the decoupling of software, hardware, and vehicle platform, which is specifically reflected in the following points: 1) Development based on standard services can increase the iteration speed of applications and allow product managers to be more deeply involved in the product development process; 2) The layered architecture design facilitates layered testing and verification, reduces the pressure of integration testing, discovers problems more fully, and increases the speed of version release; 3) It is easy to form a division of labor between product lines and platform lines. The product line is responsible for specific vehicle projects, and the platform line is responsible for building a technical middle platform; 4) The scalable hardware computing platform is compatible with a variety of sensors and external devices, and supports chip and hardware upgrades; 5) The scalable computing and communication architecture can speed up vehicle development. The platform can quickly adapt to new models. The layered structure minimizes the differences between models and can reduce the pressure of maintaining multiple product lines in the later stage.

[0046] In the SOA architecture, nodes on the network open their resources to other participants on the network in the form of independent services, and other participants use resources in a standard way. Unlike the traditional point-to-point architecture, the SOA architecture is composed of loosely coupled, highly interoperable application services (or atomic services). SOA is an idea and a design method, and the carrier of SOA is a design of a communication mechanism, which is often implemented using SOME / IP. The SOME / IP protocol is a service-oriented communication middleware that provides a standard service interface for the client / server communication mechanism of automotive Ethernet.

[0047] Figure 5 This is a schematic diagram of the component network topology structure based on the SOA architecture provided by the embodiment of the present application. Figure 5 , the components (such as UMC) built on the SOA architecture in this application embodiment master 、UMC second 、UMC branch Atomic service layer, device abstraction layer, middleware, operating system and hardware layer are included in the hardware layer. The hardware layers between various components are connected through Ethernet.

[0048] Figure 6 It is a flow chart of an OTA upgrade method based on a ring network architecture provided in an embodiment of the present application. Figure 6 The OTA upgrade method based on the ring network architecture can be Figure 1 to Figure 3 The upgrade master controller in the system is used to execute the upgrade. Figure 6 As shown, the OTA upgrade method based on the ring network architecture may specifically include the following steps:

[0049] Step S601, determining a target upgrade component.

[0050] The target upgrade component is the component that needs OTA upgrade, which can be the upgrade master control, upgrade sub-master control, upgrade sub-control or the electronic control unit they are connected to in the ring network architecture. For example, the target upgrade component can be Figure 1 ECU1-n connected under the upgraded sub-controller 1.

[0051] The number of target upgrade components can be one, two, or more than two.

[0052] The upgrade master controller can determine the target upgrade component through the received OTA subscription message. As an example, when ECU1-n connected to upgrade sub-controller 1 has an OTA upgrade requirement, ECU1-n can send an OTA subscription message to the upgrade master controller through upgrade sub-controller 1. The OTA subscription message includes the identification information or address information of ECU1-n. In this way, the upgrade master controller can determine the target upgrade component as ECU1-n through the OTA subscription message.

[0053] Step S602: Based on the ring network architecture, determine a target communication transmission path and an alternative communication transmission path corresponding to the target upgrade component.

[0054] The target communication transmission path, also known as the primary communication channel or primary channel line, is the UMC master The first order communication channel with the target upgrade component.

[0055] The alternative communication transmission path, also known as the protection channel or protection channel line, is a UMC master A second sequential communication channel with the target upgrade component. When the target communication transmission path fails or the network quality is poor, an alternative communication transmission path can be enabled to ensure UMC master Normal communication with the target upgrade component to improve the success rate of OTA upgrade.

[0056] The path start node and path end node of the target communication transmission path and the alternative communication transmission path are the same, and the path start node is UMC master ,The end nodes of the path are all the target upgrade components.

[0057] Step S603: Get the upgrade data packet corresponding to the target upgrade component, and encapsulate the upgrade data packet into an upgrade communication message based on a preset Ethernet data link layer encapsulation protocol.

[0058] An upgrade package is usually the upgrade file of the latest version required by the target upgrade component.

[0059] As an example, see Figure 1 ,UMC master A 4G / 5G network communication connection can be established with the second OTA platform 102 of the upgrade service 10 through its SIM module, and then a file download request is sent to the second OTA platform 102. The file download request includes the identification information of the target upgrade component and the upgrade file version information. The second OTA platform 102 responds to the file download request and sends an upgrade data packet (SOME / IP message) corresponding to the identification information of the target upgrade component and the upgrade file version information to the UMC. master .UMC master After receiving the upgrade data packet, the upgrade data packet is encapsulated into an upgrade communication message based on a preset Ethernet data link layer encapsulation protocol.

[0060] See also Figure 7 and Figure 8Since all ECUs in the car that support Ethernet communication protocols are in the same network segment, SOME / IP messages can be directly carried on Ethernet Layer 2 (i.e., link layer) for communication transmission. In this way, the encapsulation and decapsulation of TCP and IP can be bypassed, thereby reducing the time consumption of frequent encapsulation and decapsulation of messages, reducing the overhead of message assembly and decapsulation, and at the same time increasing the data payload and data transmission volume, thereby improving data transmission efficiency, and further improving the efficiency of OTA upgrades.

[0061] See also Fig. 9 SOME / IP (Scalable service-oriented MiddlewarE over IP) refers to scalable service-oriented middleware based on IP. It is a service-oriented automotive Ethernet communication protocol, which is located above the transport layer TCP / UDP and is compatible with the basic software development platform currently being discussed internationally. The SOME / IP protocol adopts the C / S (Client / Server) communication architecture, where the Server is the service provider and the Client is the service consumer. According to the service interface type, the Remote Procedure Call mechanism is used to enable data to be transmitted in the network through data serialization and deserialization. The dynamic configuration of services is achieved through the available service discovery SD (Service Discovery) mechanism.

[0062] Step S604: Transmit the upgrade communication message to the target upgrade component through the target communication transmission path, so that the target upgrade component is upgraded according to the upgrade communication message.

[0063] The technical solution provided by the embodiment of the present application, on the one hand, realizes OTA upgrade based on the ring network architecture, the ring network architecture supports SOA service, and fully expands the communication transmission path between the upgrade master control and the target upgrade component, improves the communication transmission flexibility and communication transmission efficiency of the upgrade master control for OTA upgrade of the target upgrade component, and improves the efficiency and success rate of OTA upgrade. On the other hand, by encapsulating the upgrade data packet through the preset Ethernet data link layer encapsulation protocol, the upgrade data packet (SOME / IP message) can be directly carried on the data link layer of Ethernet, bypassing the layers of TCP and IP encapsulation and unpacking, which can reduce the time consumption of frequent message encapsulation and unpacking, reduce the overhead of message assembly and unpacking, and at the same time increase the data payload and increase the data transmission volume, thereby improving the data transmission efficiency, and then improving the efficiency of OTA upgrade.

[0064] In some embodiments, based on the ring network architecture, determining a target communication transmission path and an alternative communication transmission path corresponding to a target upgrade component includes:

[0065] In the ring network architecture, search for all reachable communication transmission paths with the upgrade master controller as the path start node and the target upgrade component as the path end node, where the number of reachable communication transmission paths is K, and K is an integer ≥ 1;

[0066] One of the K reachable communication transmission paths is selected as the target communication transmission path, and the remaining K-1 reachable communication transmission paths are determined as candidate communication transmission paths.

[0067] As an example, see Figure 1 Assume that the target upgrade component is ECU1-n attached to upgrade sub-controller 1, and upgrade sub-controller 1 is recorded as UMC branch1 , Upgrade sub-controller 2 is recorded as UMC branch2 , Upgrade sub-controller 3 is recorded as UMC branch3 , upgrade sub-controller 4 and record it as UMC branch4 .UMC master Can be based on Figure 1 The ring network architecture shown in the figure is searched with UMC master All reachable communication transmission paths with the path starting node and the target upgrade component (i.e. ECU1-n) as the path end node; some search results are as follows: Reachable communication transmission path ①: UMC master →UMC branch1 →ECU1-n; accessible communication transmission path②: UMC master →UMC branch2 →UMC branch1 →ECU1-n; accessible communication transmission path ③: UMC master →UMC branch4 →UMC branch1 →ECU1-n; accessible communication transmission path④: UMC master →UMC branch3 →UMC branch4 →UMC branch1 →ECU1-n; accessible communication transmission path ⑤: UMC master →UMC branch3 →UMC branch2 →UMC branch1 →ECU1-n; accessible communication transmission path ⑥: UMC master →UMC branch4 →UMC branch3 →UMC branch2 →UMC branch1 →ECU1-n; accessible communication transmission path ⑦: UMC master →UMC branch2 →UMC branch3 →UMC branch4→UMC branch1 →ECU1-n.

[0068] The shortest path among all reachable communication transmission paths can be used as the target communication transmission path, and the remaining reachable communication transmission paths can be determined as candidate communication transmission paths. If the shortest paths include at least two, then one of the shortest paths can be arbitrarily selected as the target communication transmission path.

[0069] In the above example, the reachable communication transmission path ① may be determined as the target communication transmission path, and the remaining reachable communication transmission paths ② to ⑦ may be determined as candidate communication transmission paths.

[0070] By taking the shortest path as the target communication transmission path and giving priority to using the target communication transmission path for communication transmission during the transmission of the upgrade communication message, the efficiency of OTA upgrade can be improved.

[0071] In some embodiments, the data frame structure of the Ethernet data link layer encapsulation protocol includes an Ethernet header and a SOME / IP data field;

[0072] The Ethernet header includes a destination address field, a source address field and a virtual local area network field, and the virtual local area network field includes a protocol identification field, a service priority field and a virtual local area network identifier field;

[0073] The SOME / IP data domain includes a SOME / IP header, a configuration information field and an upgrade data area; wherein the configuration information field includes a communication protocol tag field, an upgrade partition tag field, a channel configuration field, a primary channel field and a backup channel field; the primary channel field is used to characterize a target communication transmission path, and the backup channel field is used to characterize an alternative communication transmission path; the upgrade data area is used to carry upgrade data packets.

[0074] Fig.10 It is a schematic diagram of a data frame structure of an Ethernet data link layer encapsulation protocol provided in an embodiment of the present application.

[0075] See also Fig.10 The data frame structure of the Ethernet data link layer encapsulation protocol of the embodiment of the present application includes an Ethernet header (EthHead) and a SOME / IP data field (or data field). The Ethernet header includes a destination address field, a source address field, and a virtual local area network field. The destination address field is used to represent the address information (MAC address) of the target upgrade component. The source address field is used to represent the address information (MAC address) of the upgrade master control.

[0076] It should be noted that when the target upgrade component is an ECU mounted under the upgrade master controller, upgrade sub-master controller or upgrade sub-controller, the destination address field can be used to represent the address information of the upgrade master controller, upgrade sub-master controller or upgrade sub-controller to which the target upgrade component is mounted.

[0077] Exemplarily, the formats of the destination address field and the source address field are as follows: the unicast address of VBOX (vehicle remote communication module) can be expressed as: 00-00-00-00-01-00; the unicast address of VDC can be expressed as: 00-00-00-00-02-00; ADC (ADASDomain The unicast address of ECU (Intelligent Controller, Intelligent Driving) can be expressed as: 00-00-00-00-03-00; the unicast address of CDC can be expressed as: 00-00-00-00-04-00; the unicast address of VIU1 (upgraded sub-control 1) can be expressed as: 00-00-00-00-05-00; the unicast address of VIU2 (upgraded sub-control 2) can be expressed as: 00-00-00-00-06-00; the unicast address of VIU3 (upgraded sub-control 3) can be expressed as: 00-00-00-00-07-00; the unicast address of VIU4 (upgraded sub-control 4) can be expressed as: 00-00-00-00-08-00; the unicast addresses of other ECUs can be expressed as: 00-00-00-00-09-00~00-00-00-00-ff-00. The broadcast address of all ECUs can be expressed as: ff-ff-ff-ff-ff-ff. For the multicast addresses of VBOX, VDC, etc., the least significant bit of the first byte is 1. For example, the multicast address of VBOX can be expressed as: 01-00-00-00-01-00.

[0078] The virtual local area network field (VLAN field) includes a protocol identification field, a service priority field, and a virtual local area network identifier field. The protocol identification field is related to the type field in the Ethernet header. The service priority field is used to characterize the transmission priority of the upgrade communication message. For example, numbers 0 to 7 can be set to represent different service priorities. The larger the value, the higher the service priority. 7 represents the highest service priority, and 0 represents the lowest service priority. Generally, the higher the transmission priority, the higher the importance of the upgrade communication message. Therefore, the corresponding service priority field can be configured according to the importance of the upgrade communication message. The virtual local area network identifier field is used to characterize the virtual local area network identifier (VLAN ID) of the target upgrade component.

[0079] The SOME / IP header includes a server ID field, a data length field, a client ID field, a version number, an interface version, a message type, and a response code. The server ID field is used to characterize different services, and different services have different corresponding service IDs. The client ID field is used to characterize the identification ID of the target upgrade component. For example, the identification ID of VBOX can be configured as 0; the identification ID of VDC can be configured as 1; the identification ID of ADC can be configured as 2; the identification ID of CDC can be configured as 3; the identification ID of VIU1 can be configured as 4; the identification ID of VIU2 can be configured as 5; the identification ID of VIU3 can be configured as 6; the identification ID of VIU4 can be configured as 7; the identification IDs of other ECUs that support ETH can be configured as 8 to ffff. The message type is used to characterize the message response status. For example, 0 means a response is required, and 1 means no response.

[0080] The configuration information field includes a communication protocol tag field, an upgrade partition tag field, a channel configuration field, a primary channel field, and a backup channel field. The communication protocol tag field is used to represent the communication protocol tag supported by the target upgrade component. The upgrade partition tag field is used to represent the A / B partition tag supported by the target upgrade component, where the A partition can represent the running partition and the B partition can represent the backup partition. The channel configuration field is used to represent whether the protection channel is configured. For example, 0 means that the protection channel is not configured; 1 means that the protection channel is manually configured; 2 means that the protection channel is automatically selected.

[0081] In some embodiments, the number of target upgrade components is one; the target communication transmission path corresponding to the target upgrade component includes a path start node, W path intermediate nodes and a path end node; wherein the path start node is the upgrade master control, and the path end node is the target upgrade component; W is an integer ≥ 1, and the path intermediate node is the upgrade sub-master control or the upgrade sub-controller;

[0082] Transmitting the upgrade communication message to the target upgrade component through the target communication transmission path, so that the target upgrade component is upgraded according to the upgrade communication message, including:

[0083] Determine the component type attribute corresponding to the target upgrade component according to the communication protocol tag field;

[0084] If it is determined based on the component type attribute that the target upgrade component is a first type component, and W=1, a message conversion instruction is sent to the intermediate node of the path to control the intermediate node of the path to convert the upgrade communication message according to the communication protocol tag field to obtain a converted upgrade communication message, and the converted upgrade communication message is transmitted to the target upgrade component, so that the target upgrade component is upgraded according to the converted upgrade communication message;

[0085] If the target upgrade component is determined to be a first type component based on the component type attribute, and W≥2, a message conversion instruction is sent to the first path intermediate node adjacent to the path start node to control the path intermediate node to convert the upgrade communication message according to the communication protocol tag field to obtain a converted upgrade communication message, and the converted upgrade communication message is sent to the i-th path intermediate node to the W-th path intermediate node in sequence, and then the W-th path intermediate node transmits the converted upgrade communication message to the target upgrade component, so that the target upgrade component is upgraded according to the converted upgrade communication message; wherein i is an integer ≤W.

[0086] See also Figure 2 and Fig.11 , assuming that the upgraded main controller is CDC, the upgraded secondary controller is VDC, the upgraded sub-controller 1, upgraded sub-controller 2, upgraded sub-controller 3 and upgraded sub-controller 4 are VIU1, VIU2, VIU3 and VIU4 respectively; the target upgraded component is ECU1-n mounted under VIU1.

[0087] The upgrade master control CDC can determine the component type attribute of the ECU1-n according to the communication protocol tag field in the upgrade communication file corresponding to the ECU1-n. The component type attribute is used to characterize which communication protocol the target upgrade component supports. For example, if the component type attribute is DOIP, then the target upgrade component supports the DOIP communication protocol.

[0088] The first type of component generally refers to a component that does not support SOME / IP messages.

[0089] In the first case, if the upgrade master control CDC determines that the target upgrade component is a first type component based on the component type attribute, that is, a component that does not support SOME / IP messages, and W=1, for example, the target communication transmission path is CDC→VIU1, and VIU1 is the path intermediate node of the target communication transmission path, then a message conversion instruction can be sent to the path intermediate node VIU1 to control VIU1 to convert the upgrade communication message according to the communication protocol tag field to obtain a converted upgrade communication message. As an example, please refer to Fig.12 VIU1 can refer to Fig.12 The message conversion method converts the upgrade communication message (such as SOME / IP message) corresponding to ECU1-n into a CAN message to obtain a converted upgrade communication message. Then the converted upgrade communication message is forwarded to ECU1-n. After receiving the converted upgrade communication message, ECU1-n returns a CAN response message to VIU1, and VIU1 refers to Fig.12 The CAN response message is converted into a SOME / IP response message by using the message conversion method in the embodiment, and then the SOME / IP response message is transmitted to the CDC. The ECU1-n is upgraded according to the converted upgrade communication message.

[0090] The message format of the upgrade communication message of CDC→VIU1 is as follows: VIU1 unicast address (destination address field): 00-00-00-00-05-00; CDC unicast address (source address field): 00-00-00-00-04-00; TPID (i.e., protocol identification field): 0x8100; service priority field: 3; virtual local area network identifier field (i.e., VLAN ID): 100; server ID: 0x0201 (indicating OTA service); data length field: XXX (LEN); client ID: 3 (indicating CDC). Communication protocol tag field in the configuration information field: 1 (indicating support for DOIP protocol); upgrade partition tag field: 1 (indicating support for A / B partitions); channel configuration field: 0 (indicating that no protection channel is configured); main channel field: [CDC→VIU1]; standby channel field: [0]; upgrade data area: upgrade data in the upgrade data packet.

[0091] In the second case, if the upgrade master control CDC determines that the target upgrade component is a first type component based on the component type attribute, that is, a component that does not support SOME / IP messages, and W=2, for example, the target communication transmission path is CDC→VIU4→VIU1→ECU1-n; VIU4 and VIU1 are the path intermediate nodes of the target communication transmission path, then a message conversion instruction can be sent to the first path intermediate node adjacent to the path start node, that is, VIU4, to control VIU4 to convert the upgrade communication message according to the communication protocol tag field to obtain a converted upgrade communication message. As an example, please refer to Fig.11 VIU4 can refer to Fig.11 The message conversion method converts the upgrade communication message (such as SOME / IP message) corresponding to ECU1-n into a CAN message to obtain a converted upgrade communication message. Then, the converted upgrade communication message is transmitted to the next path intermediate node VIU1, and then VIU1 forwards the converted upgrade communication message to ECU1-n. After receiving the converted upgrade communication message, ECU1-n returns a CAN response message to VIU1, and VIU1 transmits the CAN response message to VIU4, which refers to Fig.11 The CAN response message is converted into a SOME / IP response message by using the message conversion method in the embodiment, and then the SOME / IP response message is transmitted to the CDC. The ECU1-n is upgraded according to the converted upgrade communication message.

[0092] In some embodiments, if the target upgrade component is determined to be a second type component based on the component type attribute, the first link connectivity state of the target communication transmission path and the second link connectivity state of the alternative communication transmission path are determined; if the first link connectivity state is an abnormal state and the second link connectivity state is a normal state, the upgrade communication message is transmitted to the target upgrade component through the alternative communication transmission path, so that the target upgrade component is upgraded according to the upgrade communication message.

[0093] The second type of component refers to a component that supports SOME / IP messages.

[0094] As an example, see Figure 2 and Fig.13 , assuming that the target upgrade component is VDC (upgrade secondary master 1), VDC can subscribe to the OTA upgrade service from the upgrade server 10 through CDC (upgrade master); VDC can also subscribe to the OTA upgrade service directly from the upgrade server 10. Assuming that VDC subscribes to the OTA upgrade service from the server 10 through CDC, if the upgrade master CDC determines that the target upgrade component VDC is a second type component based on the component type attribute, that is, a component that supports SOME / IP messages; the configured target communication transmission path is: CDC→VIU4→VIU1→VDC; the configured alternative communication transmission path is: CDC→VIU3→VIU2→VDC. CDC monitors the first link connectivity status of the target communication transmission path and the second link connectivity status of the alternative communication transmission path. The first link connectivity status is used to characterize the link on / off status and network communication quality of the target communication transmission path. The second link connectivity status is used to characterize the link on / off status and network communication quality of the alternative communication transmission path.

[0095] If CDC confirms that the connectivity status of the first link is abnormal (such as a transmission failure, etc.) and the connectivity status of the second link is normal (i.e., normal connectivity), then switch to use the alternative communication transmission path CDC→VIU3→VIU2→VDC to transmit the upgrade communication message to the target upgrade component VDC.

[0096] CDC can monitor the connectivity status of the first link and the second link in real time during the entire file transfer process. If it is detected that the connectivity status of the first link has returned to normal, it can switch back to using the target communication transmission path CDC→VIU4→VIU1→VDC to transmit the upgrade communication message to the target upgrade component VDC.

[0097] Among them, the message format of the upgrade communication message of the target communication transmission path CDC→VIU4→VIU1→VDC is as follows: VDC unicast address (destination address field): 00-00-00-00-02-00; CDC unicast address (source address field): 00-00-00-00-04-00; TPID (ie, protocol identification field): 0x8100; service priority field: 5; virtual local area network identifier field (ie, VLAN ID): 100; server ID: 0x0201 (indicating OTA service); data length field: XXX (LEN); client ID: 3 (indicating CDC). Communication protocol mark field in the configuration information field: 1 (indicating support for DOIP protocol); upgrade partition mark field: 1 (indicating support for A / B partitions); channel configuration field: 1 or 2 (indicating manual or automatic selection of configuration protection channels); main channel field: [CDC→VIU4→VIU1→VDC]; standby channel field: [CDC→VIU3→VIU2→VDC]; upgrade data area: upgrade data in the upgrade data packet.

[0098] By configuring a protection channel, you can ensure the normal sending and receiving of upgrade communication files during the OTA upgrade process, which is helpful to improve the success rate of OTA upgrades.

[0099] In some embodiments, the number of target upgrade components includes at least two, at least two target upgrade components have an upgrade dependency relationship, and at least two target upgrade components have the same target communication transmission path;

[0100] Transmitting the upgrade communication message to the target upgrade component through the target communication transmission path, so that the target upgrade component is upgraded according to the upgrade communication message, including:

[0101] If the target communication transmission channel is in a congested state, determining the service priorities of at least two target upgrade components according to the service priority field in the upgrade communication message corresponding to each target upgrade component;

[0102] Based on the current bandwidth size and service priority of the target communication transmission channel, determine the priority target upgrade component and its priority transmission upgrade message, and the inferior target upgrade component and its inferior transmission upgrade message;

[0103] The priority transmission upgrade message is transmitted to the priority target upgrade component through the target communication transmission path, so that the priority target upgrade component is upgraded according to the priority transmission upgrade message.

[0104] An upgrade dependency means that at least two target upgrade components depend on synchronous upgrade.

[0105] As an example, see Figure 2 and Fig.13, assuming that the target upgrade components are VIU1 and VDC, VIU1 and VDC have an upgrade dependency, that is, the upgrade of VIU1 depends on the upgrade of VDC, and the upgrade of VDC depends on the upgrade of VIU1. The target communication transmission path corresponding to VIU1 is CDC→VIU4→VIU1; the target communication transmission path corresponding to VDC is CDC→VIU4→VIU1→VDC, which completely covers the target communication transmission path corresponding to VIU1. At this time, it can be regarded that the target communication transmission paths of VIU1 and VDC are the same.

[0106] If CDC detects that the target communication transmission channel is in a congested state, that is, the current bandwidth of the target communication transmission channel is insufficient to meet the simultaneous transmission of the upgrade communication file 1 corresponding to VIU1 and the upgrade communication file 2 corresponding to VDC. At this time, CDC can extract the service priority field 1 in the upgrade communication file 1 of VIU1 and the service priority field 2 in the upgrade communication file 2 of VDC; then compare the numbers between the service priority field 1 and the service priority field 2, and then determine the priority target upgrade component and its priority transmission upgrade message according to the comparison result. Exemplarily, if the number of the service priority field 1 is "3" and the number of the service priority field 2 is "5", then VDC can be determined as the priority target upgrade component, and its corresponding upgrade communication file 2 is the priority transmission upgrade message; VIU1 is determined as the inferior target upgrade component, and its corresponding upgrade communication file 1 is the inferior transmission upgrade message. Next, CDC preferentially transmits the upgrade communication file 2 through the target communication transmission path CDC→VIU4→VIU1→VDC.

[0107] The embodiment of the present application can realize parallel upgrade and flashing of multiple target upgrade components (also referred to as target ECU components) by one OTA master control (upgrade master control). This method has great advantages for target ECU components whose upgrade packages are not too large and for ECU components that are dependent on each other for synchronous upgrade. When multiple upgrade communication messages pass through the same communication channel, but the current bandwidth of the communication channel is insufficient, the "service priority field (priority: 0 to 7, the larger the value, the higher the priority)" can be set in the transmission message (upgrade communication message) according to the importance of the target ECU component. When the bandwidth is congested, the upgrade data messages with lower priority levels are blocked or discarded to ensure that high-priority data messages pass through.

[0108] In some embodiments, based on the current bandwidth size and service priority of the target communication transmission channel, after determining the priority target upgrade component and its priority transmission upgrade message, the inferior target upgrade component and its inferior transmission upgrade message, it also includes:

[0109] Determine an alternative communication transmission path corresponding to the inferior target upgrade component;

[0110] The subordinated transmission upgrade message is transmitted to the subordinated target upgrade component through the alternative communication transmission path, so that the subordinated target upgrade component is upgraded according to the subordinated transmission upgrade message.

[0111] For ease of understanding, the above example is continued to be used. If VDC is the priority target upgrade component, VIU1 is the subordinate target upgrade component, and the bandwidth of the target communication transmission path CDC→VIU4→VIU1→VDC is insufficient, and only the transmission of the upgrade communication file 2 is allowed to pass, CDC can determine the alternative communication transmission path corresponding to the subordinate target upgrade component based on the ring network architecture of the embodiment of the present application. For example, determine that the alternative communication transmission path of VIU1 is CDC→VIU3→VIU2→VIU1, and then the upgrade communication file 1 can be transmitted to VIU1 through the alternative communication transmission path CDC→VIU3→VIU2→VIU1.

[0112] This is helpful to improve the OTA upgrade efficiency and success rate of at least two target upgrade components with upgrade dependency.

[0113] In some embodiments, the number of target upgrade components includes at least two, and the upgrade data packages corresponding to at least two target upgrade components are the same;

[0114] Transmitting the upgrade communication message to the target upgrade component through the target communication transmission path includes:

[0115] Extracting a virtual local area network identifier field corresponding to each target upgrade component;

[0116] If the virtual local area network identifier fields are the same, the upgrade communication message is broadcast based on the virtual local area network identifier in all target communication transmission paths.

[0117] As an example, see Fig.14, assuming that the target upgrade components are VIU1~VIU4, VIU1~VIU4 subscribe to the OTA upgrade service through CDC as the upgrade master control, and the upgrade data packets of VIU1~VIU4 are the same. At this time, CDC can extract the virtual local area network identifier field (VLAN ID) corresponding to VIU1~VIU4. The virtual local area network identifier field of VIU1~VIU4 is VLAN300, that is, the VLAN ID is the same. In all target communication transmission paths of VIU1~VIU4, the upgrade communication message is broadcast based on VLAN300. Since the VLAN ID of VIU1~VIU4 is the same (VLAN300), and the VLAN ID of other ECU components is different, broadcasting is used in VLAN300 here, and other VLAN IDs cannot receive the upgrade communication message. In this way, one OTA master control (upgrade master control) can use the same upgrade communication message to upgrade and flash the target ECU components for multiple target ECU components (target upgrade components).

[0118] The message format of the upgrade communication message is as follows: broadcast address (destination address field): FF-FF-FF-FF-FF-FF; CDC unicast address (source address field): 00-00-00-00-04-00; TPID (i.e., protocol identification field): 0x8100; service priority field: 5; virtual local area network identifier field (i.e., VLAN ID): 300; server ID: 0x0201 (indicating OTA service); data length field: XXX (LEN); client ID: 3 (indicating CDC). Communication protocol tag field in the configuration information field: 1 (indicating support for DOIP protocol); upgrade partition tag field: 1 (indicating support for A / B partitions); channel configuration field: 0 (indicating that no protection channel is configured); main channel field: [CDC→VIU4, CDC→VIU4→VIU1, CDC→VIU3, CDC→VIU3→VIU2]; standby channel field: [0]; upgrade data area: upgrade data in the upgrade data packet.

[0119] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0120] In summary, the technical solution provided by the embodiment of the present application has the following advantages:

[0121] 1) Based on SOA service-oriented design, layered design and software and hardware decoupling are implemented, making it easier to iterate and update software functions.

[0122] 2) Support OTA master control (upgrade master control) to upgrade one or more ECU components (target upgrade components) at the same time, which can greatly improve the upgrade efficiency.

[0123] 3) Taking advantage of the fact that all Ethernet-supported ECU components in the car are in the same network segment, the SOME / IP messages are directly carried on the Ethernet Layer 2 (data link layer) for communication transmission, bypassing the TCP and IP encapsulation, increasing the transmitted data messages, and bypassing the TCP and IP decapsulation. The transmission efficiency is higher and the data volume is larger, which is conducive to improving the OTA upgrade efficiency.

[0124] 4) Through different configurations of the VLAN field, the upgrade master can upgrade one or more ECUs and select the priority, making the configuration more flexible. For example, by configuring the service priority field, it is supported to ensure that high-priority ECUs are upgraded first when the link is congested when upgrading multiple ECUs.

[0125] 5) By designing a ring network architecture, the OTA master control (upgrade master control) is supported to upgrade ECU parts through multiple paths, thereby improving upgrade efficiency, and multi-channel transmission provides channel protection.

[0126] 6) Support SOA architecture vehicle Ethernet SOMEIP / DOIP communication upgrade.

[0127] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0128] Fig.15 Schematic diagram of an OTA upgrade device based on a ring network architecture provided in an embodiment of the present application. Fig.15 As shown, the OTA upgrade device based on the ring network architecture includes:

[0129] The component determination module 1501 is configured to determine a target upgrade component;

[0130] The path determination module 1502 is configured to determine a target communication transmission path and an alternative communication transmission path corresponding to a target upgrade component based on the ring network architecture;

[0131] The message encapsulation module 1503 is configured to obtain an upgrade data packet corresponding to the target upgrade component from the upgrade server, and encapsulate the upgrade data packet into an upgrade communication message based on a preset Ethernet data link layer encapsulation protocol;

[0132] The message transmission module 1504 is configured to transmit the upgrade communication message to the target upgrade component through the target communication transmission path, so that the target upgrade component is upgraded according to the upgrade communication message.

[0133] In some embodiments, the path determination module 1502 includes:

[0134] The search unit is configured to search, in the ring network architecture, all reachable communication transmission paths with the upgrade master controller as the path start node and the target upgrade component as the path end node, wherein the number of reachable communication transmission paths is K, and K is an integer ≥ 1;

[0135] The path determination unit is configured to select one of the K reachable communication transmission paths as the target communication transmission path, and determine the remaining K-1 reachable communication transmission paths as candidate communication transmission paths.

[0136] In some embodiments, the data frame structure of the Ethernet data link layer encapsulation protocol includes an Ethernet header and a SOME / IP data field;

[0137] The Ethernet header includes a destination address field, a source address field and a virtual local area network field, and the virtual local area network field includes a protocol identification field, a service priority field and a virtual local area network identifier field;

[0138] The SOME / IP data domain includes a SOME / IP header, a configuration information field and an upgrade data area; wherein the configuration information field includes a communication protocol tag field, an upgrade partition tag field, a channel configuration field, a primary channel field and a backup channel field; the primary channel field is used to characterize a target communication transmission path, and the backup channel field is used to characterize an alternative communication transmission path; the upgrade data area is used to carry upgrade data packets.

[0139] In some embodiments, the number of target upgrade components is one; the target communication transmission path corresponding to the target upgrade component includes a path start node, W path intermediate nodes and a path end node; wherein the path start node is the upgrade master control, and the path end node is the target upgrade component; W is an integer ≥ 1, and the path intermediate node is the upgrade sub-master control or the upgrade sub-controller. The above-mentioned message transmission module 1804 includes:

[0140] An attribute determination unit, configured to determine a component type attribute corresponding to a target upgrade component according to a communication protocol tag field;

[0141] The first control unit is configured to send a message conversion instruction to the path intermediate node if it is determined based on the component type attribute that the target upgrade component is a first type component and W=1, so as to control the path intermediate node to perform message conversion on the upgrade communication message according to the communication protocol tag field to obtain a converted upgrade communication message, and transmit the converted upgrade communication message to the target upgrade component, so that the target upgrade component is upgraded according to the converted upgrade communication message;

[0142] The second control unit is configured to send a message conversion instruction to the first path intermediate node adjacent to the path start node if it is determined based on the component type attribute that the target upgrade component is a first type component, and W≥2, so as to control the path intermediate node to perform message conversion on the upgrade communication message according to the communication protocol tag field to obtain a converted upgrade communication message, and send the converted upgrade communication message to the i-th path intermediate node to the W-th path intermediate node in sequence, and then the W-th path intermediate node transmits the converted upgrade communication message to the target upgrade component, so that the target upgrade component is upgraded according to the converted upgrade communication message; wherein i is an integer ≤W.

[0143] In some embodiments, the message transmission module 1504 further includes:

[0144] a state determination unit configured to determine a first link connectivity state of a target communication transmission path and a second link connectivity state of an alternative communication transmission path if the target upgrade component is determined to be a second type component based on the component type attribute;

[0145] The transmission unit is configured to transmit the upgrade communication message to the target upgrade component through the alternative communication transmission path if the first link connectivity state is abnormal and the second link connectivity state is normal, so that the target upgrade component is upgraded according to the upgrade communication message.

[0146] In some embodiments, the number of target upgrade components includes at least two, at least two target upgrade components have an upgrade dependency relationship, and at least two target upgrade components have the same target communication transmission path. The above-mentioned message transmission module 1504 includes:

[0147] A first determining unit is configured to determine the service priorities of at least two target upgrade components according to a service priority field in an upgrade communication message corresponding to each target upgrade component if the target communication transmission channel is in a congested state;

[0148] A second determination unit is configured to determine a priority target upgrade component and its priority transmission upgrade message, a subordinated target upgrade component and its subordinated transmission upgrade message based on the current bandwidth size and service priority of the target communication transmission channel;

[0149] The first message transmission unit is configured to transmit the priority transmission upgrade message to the priority target upgrade component through the target communication transmission path, so that the priority target upgrade component is upgraded according to the priority transmission upgrade message.

[0150] In some embodiments, the message transmission module 1504 includes:

[0151] A third determining unit is configured to determine an alternative communication transmission path corresponding to the inferior target upgrade component;

[0152] The second message transmission unit is configured to transmit the subordinated transmission upgrade message to the subordinated target upgrade component through the alternative communication transmission path, so that the subordinated target upgrade component is upgraded according to the subordinated transmission upgrade message.

[0153] In some embodiments, the number of target upgrade components includes at least two, and the upgrade data packets corresponding to at least two target upgrade components are the same. The above-mentioned message transmission module 1504 includes:

[0154] An extraction unit, configured to extract a virtual local area network identifier field corresponding to each target upgrade component;

[0155] The broadcast unit is configured to broadcast the upgrade communication message based on the virtual local area network identifier in all target communication transmission paths if the virtual local area network identifier fields are the same.

[0156] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0157] Fig.16 Schematic diagram of an electronic device 16 provided in an embodiment of the present application. Fig.16 As shown, the electronic device 16 of this embodiment includes: a processor 1601, a memory 1602, and a computer program 1603 stored in the memory 1602 and executable on the processor 1601. When the processor 1601 executes the computer program 1603, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 1601 executes the computer program 1603, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0158] The electronic device 16 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 16 may include, but is not limited to, a processor 1601 and a memory 1602. Those skilled in the art will appreciate that Fig.16 The electronic device 16 is merely an example and does not limit the electronic device 16 , and may include more or less components than those shown in the figure, or different components.

[0159] Processor 1601 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0160] The memory 1602 may be an internal storage unit of the electronic device 16, for example, a hard disk or memory of the electronic device 16. The memory 1602 may also be an external storage device of the electronic device 16, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the electronic device 16. The memory 1602 may also include both an internal storage unit of the electronic device 16 and an external storage device. The memory 1602 is used to store computer programs and other programs and data required by the electronic device.

[0161] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0162] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium (e.g., a computer-readable storage medium). Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. Computer-readable storage media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0163] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An OTA upgrade method based on a ring network architecture, characterized in that: The ring network architecture includes N upgraded main controls and M upgraded sub-controls, where M is an integer ≥ 2; wherein each of the upgraded main controls and each of the upgraded sub-controls are connected to at least one electronic control unit; each of the upgraded main controls is connected to at least two of the upgraded sub-controls to form a first ring topology network structure; the M upgraded sub-controls are connected to form a second ring topology network structure; when N=1, the upgraded main control is an upgraded master main control; when N is an integer ≥ 2, the N upgraded main controls include an upgraded master main control and N-1 upgraded sub-main controls, and the upgraded master main control is connected to the N-1 upgraded sub-main controls to form an open-loop network structure or a closed-loop network structure; The OTA upgrade method is applied to the upgrade master control, and comprises the following steps: Determine the target upgrade components; Based on the ring network architecture, determining a target communication transmission path and an alternative communication transmission path corresponding to the target upgrade component; Obtaining an upgrade data packet corresponding to the target upgrade component, and encapsulating the upgrade data packet into an upgrade communication message based on a preset Ethernet data link layer encapsulation protocol; The upgrade communication message is transmitted to the target upgrade component through the target communication transmission path, so that the target upgrade component is upgraded according to the upgrade communication message.

2. The method according to claim 1, characterized in that Based on the ring network architecture, determining a target communication transmission path and an alternative communication transmission path corresponding to the target upgrade component includes: In the ring network architecture, searching for all reachable communication transmission paths with the upgrade master controller as the path start node and the target upgrade component as the path end node, wherein the number of the reachable communication transmission paths is K, and K is an integer ≥ 1; One of the K reachable communication transmission paths is selected as a target communication transmission path, and the remaining K-1 reachable communication transmission paths are determined as candidate communication transmission paths.

3. The method according to claim 2, characterized in that The data frame structure of the Ethernet data link layer encapsulation protocol includes an Ethernet header and a SOME / IP data field; The Ethernet header includes a destination address field, a source address field and a virtual local area network field, and the virtual local area network field includes a protocol identification field, a service priority field and a virtual local area network identifier field; The SOME / IP data domain includes a SOME / IP header, a configuration information field and an upgrade data area; wherein the configuration information field includes a communication protocol tag field, an upgrade partition tag field, a channel configuration field, a primary channel field and a backup channel field; the primary channel field is used to characterize the target communication transmission path, and the backup channel field is used to characterize the alternative communication transmission path; the upgrade data area is used to carry the upgrade data packet.

4. The method according to claim 3, characterized in that The number of the target upgrade component is one; the target communication transmission path corresponding to the target upgrade component includes a path start node, W path intermediate nodes and a path end node; wherein the path start node is the upgrade master control, and the path end node is the target upgrade component; W is an integer ≥ 1, and the path intermediate node is an upgrade secondary master control or an upgrade sub-controller; Transmitting the upgrade communication message to the target upgrade component through the target communication transmission path so that the target upgrade component is upgraded according to the upgrade communication message, including: Determining a component type attribute corresponding to the target upgrade component according to the communication protocol tag field; If it is determined based on the component type attribute that the target upgrade component is a first type component, and W=1, a message conversion instruction is sent to the path intermediate node to control the path intermediate node to perform message conversion on the upgrade communication message according to the communication protocol tag field to obtain a converted upgrade communication message, and transmit the converted upgrade communication message to the target upgrade component, so that the target upgrade component is upgraded according to the converted upgrade communication message; If the target upgrade component is determined to be a first type component based on the component type attribute, and W≥2, a message conversion instruction is sent to the first path intermediate node adjacent to the path start node to control the path intermediate node to perform message conversion on the upgrade communication message according to the communication protocol tag field to obtain a converted upgrade communication message, and the converted upgrade communication message is sent to the i-th path intermediate node to the W-th path intermediate node in sequence, and then the W-th path intermediate node transmits the converted upgrade communication message to the target upgrade component, so that the target upgrade component is upgraded according to the converted upgrade communication message; wherein i is an integer ≤W.

5. The method according to claim 4, characterized in that After determining the component type attribute corresponding to the target upgrade component according to the communication protocol tag field, the method further includes: If it is determined based on the component type attribute that the target upgrade component is a second type component, determining a first link connectivity state of the target communication transmission path and a second link connectivity state of the alternative communication transmission path; If the first link connectivity state is abnormal and the second link connectivity state is normal, the upgrade communication message is transmitted to the target upgrade component through the alternative communication transmission path, so that the target upgrade component is upgraded according to the upgrade communication message.

6. The method according to claim 3, characterized in that The number of the target upgrade components includes at least two, at least two of the target upgrade components have an upgrade dependency relationship, and at least two of the target upgrade components correspond to the same target communication transmission path; Transmitting the upgrade communication message to the target upgrade component through the target communication transmission path so that the target upgrade component is upgraded according to the upgrade communication message, including: If the target communication transmission channel is in a congested state, determining the service priorities of at least two target upgrade components according to the service priority field in the upgrade communication message corresponding to each target upgrade component; Based on the current bandwidth size of the target communication transmission channel and the service priority, determine the priority target upgrade component and its priority transmission upgrade message, the inferior target upgrade component and its inferior transmission upgrade message; The priority transmission upgrade message is transmitted to the priority target upgrade component through the target communication transmission path, so that the priority target upgrade component is upgraded according to the priority transmission upgrade message.

7. The method according to claim 6, characterized in that After determining the priority target upgrade component and its priority transmission upgrade message, the inferior target upgrade component and its inferior transmission upgrade message based on the current bandwidth size of the target communication transmission channel and the service priority, the method further includes: Determine an alternative communication transmission path corresponding to the inferior target upgrade component; The subordinated transmission upgrade message is transmitted to the subordinated target upgrade component through the alternative communication transmission path, so that the subordinated target upgrade component is upgraded according to the subordinated transmission upgrade message.

8. The method according to claim 3, characterized in that The number of the target upgrade components includes at least two, and the upgrade data packets corresponding to at least two of the target upgrade components are the same; Transmitting the upgrade communication message to the target upgrade component through the target communication transmission path includes: Extracting a virtual local area network identifier field corresponding to each target upgrade component; If the virtual local area network identifier fields are the same, the upgrade communication message is broadcast based on the virtual local area network identifier in all target communication transmission paths.

9. An OTA upgrade device based on a ring network architecture, characterized in that: include: A component determination module is configured to determine a target upgrade component; A path determination module is configured to determine a target communication transmission path and an alternative communication transmission path corresponding to the target upgrade component based on a ring network architecture; A message encapsulation module is configured to obtain an upgrade data packet corresponding to the target upgrade component, and encapsulate the upgrade data packet into an upgrade communication message based on a preset Ethernet data link layer encapsulation protocol; The message transmission module is configured to transmit the upgrade communication message to the target upgrade component through the target communication transmission path, so that the target upgrade component is upgraded according to the upgrade communication message.

10. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Communication message processing method and processing device

    CN119155366A