A new energy vehicle cloud collaborative OTA upgrade optimization method
By dividing the upgrade package into commitment windows and processing them collaboratively in the cloud, the problems of repeated downloads and low recovery efficiency when communication is interrupted or partial ECU power is lost are solved, thus achieving a more efficient OTA upgrade process.
Patent Information
- Application Number
- CN202611191286.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-07
- Publication Date
- 2026-11-24
AI Technical Summary
Existing OTA technology is prone to problems such as repeated downloads and low recovery efficiency when communication is interrupted or a partial ECU is powered off.
The upgrade package is divided into commitment windows, and fragmented verification and recovery are performed through cloud collaboration to form a frozen window. A list of downloadable and upgradeable items is maintained, and breakpoint resume, local replay and remote retransmission recovery are performed. Forwarding tokens and activation tokens are issued to ensure reliable data transmission and processing.
It improves the continuity and reliability of the OTA upgrade process, reduces redundant processing, shortens recovery time, and reduces communication and storage overhead.
Smart Images

Figure CN123157236A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of remote software upgrade technology, and in particular to an OTA upgrade and optimization method for cloud-based collaborative operation of new energy vehicles. Background Technology
[0002] As the electronic and electrical architecture of new energy vehicles develops towards domain centralization and service orientation, the number of software versions of on-board ECUs continues to increase. Over-the-Air (OTA) upgrades for the entire vehicle have evolved from single-controller upgrades to a distributed upgrade approach involving cloud scheduling, on-board T-BOX, domain controllers, on-board ECUs, and edge nodes. Existing OTA technologies typically employ upgrade package fragment transmission, on-board T-BOX caching, and domain controller writing to a shadow area, activating the version upon meeting certain conditions to achieve remote software updates and feature iterations.
[0003] However, existing OTA technologies primarily focus on completing the upgrade package transmission and writing process, with insufficient consideration given to fragment-level trusted verification, partial missing data recovery, and coordinated control for unified submission across multiple domains. When communication is interrupted or a partial ECU experiences a power outage, issues such as repeated downloads and low recovery efficiency can easily arise. Summary of the Invention
[0004] In view of the aforementioned existing problems, the present invention is proposed.
[0005] Therefore, this invention provides an OTA upgrade optimization method for cloud-based collaborative new energy vehicles to solve the problem of repeated downloads and low recovery efficiency when communication is interrupted or a partial ECU is powered off.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution:
[0007] In a first aspect, the present invention provides an OTA upgrade and optimization method for new energy vehicles with cloud-based collaboration, comprising,
[0008] The cloud platform divides the upgrade package into commitment windows and issues a task list for each window.
[0009] The vehicle-mounted T-BOX creates a list of items to be downloaded based on the window task list, performs reception verification and window restoration on the fragments and repair fragments, and forms a frozen window;
[0010] The domain controller creates an upgrade list based on the window task list, writes the corresponding fragments of the frozen window into the target ECU shadow area, and performs breakpoint resume, local replay recovery and remote retransmission recovery based on the download list and the upgrade list.
[0011] The cloud issues forwarding tokens for frozen windows and issues activation tokens in the target domain based on the list of upgrades pending.
[0012] The domain controller performs a unified domain-level submission to the vehicle ECU based on the activation token and the window execution script, and performs isolation rollback on the frozen window corresponding to the failed domain when the submission fails.
[0013] As a preferred embodiment of the OTA upgrade optimization method for cloud-based collaborative new energy vehicles described in this invention, the specific steps for dividing the upgrade package into commitment windows are as follows:
[0014] The upgrade package is continuously split into fragments, and each fragment is assigned a sequence number.
[0015] According to the fragment sequence number, multiple consecutive fragments are divided into consecutive segments based on a fixed byte length to obtain commitment windows, and commitment window numbers are assigned to them.
[0016] As a preferred embodiment of the OTA upgrade optimization method for cloud-based collaborative new energy vehicles described in this invention, the window task list includes a commitment window number, a fragment commitment value directory, a window root identifier, a repair fragment generation rule, a list to be downloaded, a list to be upgraded, a window execution script, and a write mapping relationship between fragments and the vehicle ECU shadow area and the domain controller.
[0017] As a preferred embodiment of the OTA upgrade and optimization method for cloud-based collaborative new energy vehicles described in this invention, the sharded commitment value directory refers to the sharded commitment value directory generated by performing a hash operation on each shard in the cloud and based on random numbers and the Pedersen commitment calculation method.
[0018] The window root identifier refers to the process of constructing a Merkle tree by using all the piecewise commitment values within the same commitment window as leaf nodes, and using the root value of the Merkle tree as the window root identifier.
[0019] The repair patch generation rule refers to a set of rules for generating repair patches by linearly combining multiple patches within the same commitment window over a finite domain.
[0020] As a preferred embodiment of the OTA upgrade and optimization method for cloud-based collaborative new energy vehicles described in this invention, the specific steps for receiving and verifying fragments and repair fragments and restoring windows are as follows:
[0021] Perform a Pedersen commitment comparison on the fragments and repair fragments sent by the edge nodes;
[0022] When the recovery matrix formed by the verified fragments and repaired fragments in the current commitment window satisfies the full rank condition, window recovery is performed on the current commitment window.
[0023] As a preferred embodiment of the OTA upgrade and optimization method for cloud-based collaborative new energy vehicles described in this invention, the specific steps for forming the frozen window are as follows:
[0024] After the window is restored, when the restoration matrix formed by the verified fragments and the repaired fragments in the currently uncommitted window meets the full rank condition, the fragment commitment value and the window root identifier are recalculated for the fragments after the window is restored.
[0025] When the fragment commitment value comparison is re-executed on all recovered fragments and all pass, and when the recalculated window root identifier matches the window root identifier in the window task list, the vehicle T-BOX marks the current commitment window as frozen, forming a frozen window.
[0026] As a preferred embodiment of the OTA upgrade and optimization method for cloud-based collaboration of new energy vehicles described in this invention, the establishment of the download list refers to the vehicle-mounted T-BOX writing all fragments that have not yet been reliably received into the local download item record according to the committed window number and fragment sequence number, thus forming the download list;
[0027] The "list to be upgraded" refers to the set of fragment numbers that the domain controller has established based on fragment number and write mapping relationship, which are fragment numbers for which the write confirmation of the target ECU shadow area has not yet been completed.
[0028] As a preferred embodiment of the OTA upgrade optimization method for cloud-based collaborative new energy vehicles described in this invention, the specific steps for performing breakpoint resumption, local replay recovery, and remote retransmission recovery based on the download list and upgrade list are as follows.
[0029] After a communication interruption, the vehicle-mounted T-BOX generates a resume request for incomplete download segments based on the list of downloadable segments and sends it to the cloud after communication is restored.
[0030] After the target ECU is powered off, the domain controller determines the local playback set based on the download list and the upgrade list, the fragment sequence number that exists in the upgrade list but not in the download list;
[0031] The fragment sequence numbers that exist in both the upgrade list and the download list are determined as the remote retransmission set;
[0032] After power is restored, local replay recovery is performed on the local replay set first, and then remote retransmission recovery is performed on the remote retransmission set.
[0033] As a preferred embodiment of the OTA upgrade and optimization method for cloud-based collaborative new energy vehicles described in this invention, the cloud issues a forwarding token for the frozen window, and the specific steps are as follows:
[0034] Verify the task identifier, vehicle identification number, window number, and the root identifier of the frozen window;
[0035] A forwarding token is generated based on the window root identifier, and the forwarding token is issued using a digital signature method.
[0036] As a preferred embodiment of the OTA upgrade and optimization method for cloud-based collaborative new energy vehicles described in this invention, the specific steps for issuing activation tokens in the target domain based on the list of vehicles to be upgraded are as follows:
[0037] Based on the list of domains to be upgraded and the write status of the target domains, the cloud determines that all target domains are ready.
[0038] An activation token is generated based on the task identifier, vehicle identification number, target version number, and all prepared target domain identifiers, and then digitally signed and issued to the domain controller.
[0039] The beneficial effects of this invention are as follows: By organizing upgrade data into windows and forming frozen windows, data that has been verified and recovered can be retained and reused, avoiding repeated reception of the same data after fault recovery. By maintaining a download list and an upgrade list separately, fragments that have not been downloaded can be distinguished from fragments that have been downloaded but not written. Thus, during recovery, local replay is prioritized, and only necessary fragments are resumed or supplemented, reducing redundant processing, shortening recovery time, reducing communication and storage overhead, and improving the continuity and reliability of the OTA upgrade process. Attached Figure Description
[0040] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 A flowchart for OTA upgrade and optimization methods for cloud-based collaborative systems in new energy vehicles.
[0042] Figure 2 Flowchart for creating a commitment window and issuing tasks.
[0043] Figure 3 A flowchart for generating and writing recovery of the frozen window.
[0044] Figure 4 Flowchart for token issuance and submission rollback. Detailed Implementation
[0045] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0046] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0047] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0048] Reference Figures 1-4 This is one embodiment of the present invention, which provides an OTA upgrade and optimization method for new energy vehicles with cloud-based collaboration, including the following steps:
[0049] In this embodiment, a commitment window refers to a windowed data unit composed of continuous fragments, capable of independently completing integrity verification, missing data recovery, freeze marking, and write processing; a frozen window refers to a commitment window marked as frozen after passing fragment commitment value verification, window recovery, and window root identifier consistency verification; a download list refers to a set of fragment sequence numbers maintained by the vehicle T-BOX that have not yet completed trusted reception and freeze processing; a upgrade list refers to a set of fragment sequence numbers maintained by the domain controller that have not yet completed target ECU shadow area write confirmation; a local replay set refers to a set of fragment sequence numbers that exist in the upgrade list but not in the download list; a remote retransmission set refers to a set of fragment sequence numbers that exist in both the upgrade list and the download list; a forwarding token refers to a control credential that limits the collaborative distribution objects, time periods, and usage conditions of frozen windows; and an activation token refers to a submission control credential that limits the target domain version switching conditions and effective scope.
[0050] S1. The cloud will divide the upgrade package into commitment windows and issue a task list for each window.
[0051] After receiving the upgrade task, the cloud continuously splits the upgrade package according to a fixed byte length (in this embodiment, in the same upgrade task, the segments are divided according to a pre-set uniform byte length, such as 4KB. When the remaining data at the end of the upgrade package is less than a fixed segment size, the remaining data constitutes the last segment separately), obtains segments, assigns segment numbers, and summarizes them into a segment number list.
[0052] The cloud then divides multiple shards into multiple commitment windows according to their consecutive shard numbers (in this embodiment, the number of shards contained in each commitment window is a preset window shard number, which is set based on the available cache capacity of the vehicle T-BOX, the write throughput of the domain controller, and the bandwidth of the communication link; for example, each commitment window may contain 32, 64, or 128 shards). A commitment window is a set of consecutive shards that can independently complete verification, recovery, writing, and commit. The commitment window is formed by grouping consecutive shard sets.
[0053] It should be noted that in this embodiment, the committed window status includes unfrozen, frozen, and window write complete. "Frozen" means that the window has been restored and written to the read-only buffer; "window write complete" means that all slices in the frozen window have received write confirmation from the corresponding ECU.
[0054] The cloud performs a hash operation on each shard and generates a shard commitment value based on a random number and the Pedersen commitment calculation method. Specifically,
[0055] ;
[0056] In the formula, For the first The fragment commitment value of each fragment. and The two characters represent group generators and belong to the same cyclic group. For the first Each segment, For the first In this embodiment, the random number for each slice is at least 128 bits long, and each slice corresponds to a unique random number. In this embodiment, the data is pre-configured in the cloud and distributed to the vehicle-mounted T-BOX and domain controller. This refers to a hash function. In this embodiment, the hash function uses SHA-256, SM3, or a hash algorithm with equivalent security strength. This is a sharded index.
[0057] The Fragmented Commitment Value Directory is an index set formed by organizing and recording the fragmented commitment values corresponding to fragments according to the commitment window number and fragment sequence number.
[0058] For the same commitment window, all fragment commitment values within the commitment window are arranged in ascending order according to the fragment number and used as leaf nodes of the Merkle tree. Adjacent nodes are concatenated in the order of left node first and right node last, and then a preset hash operation is performed (in this embodiment, a fixed-length hash algorithm with the same hash function as the hash function in the fragment commitment value calculation is used). This process is iterated layer by layer until a unique root value is obtained. If the number of nodes in a certain layer is odd, the last node in the corresponding layer is copied, and the preset hash operation is performed again. The resulting unique root value is used as the window root identifier of the corresponding commitment window.
[0059] Arrange the root identifiers of all commitment windows in ascending order of commitment window number, and use them as leaf nodes of the upper-level Merkle tree. Calculate the root value layer by layer in the same way as the window root identifiers, and use the resulting root value as the root identifier of the entire package.
[0060] The cloud platform associates and aggregates task identifiers, commitment window numbers, fragment sequence number lists, fragment commitment value directories, repair fragment commitment value directories, window root identifiers, repair fragment generation rules, window execution scripts, and write mapping relationships from fragments to domain controllers and target ECU shadow areas according to the commitment window number, forming a window task list.
[0061] After receiving the task list of the window, the vehicle-mounted T-BOX parses the fragment sequence number list in the task entries of each committed window, and writes all fragments that have not yet been reliably received into the local download item record according to the committed window number and fragment sequence number, forming a download list. After receiving the task list of the window, the domain controller parses the complete fragment sequence number list and write mapping relationship in the task entries of each committed window, and registers each fragment sequence number with the corresponding target domain identifier, target ECU identifier, target partition identifier, and target write address, forming an upgrade list.
[0062] The restoration patch generation rule is a set of rules for constructing additional restoration patches around the same commitment window. The restoration patch generation rule is formed by pre-determining the combination relationship between the restoration patch number and the participating patch number.
[0063] The cloud generates one or more repair pieces for each commitment window according to the repair piece generation rules, and performs a hash operation on each repair piece. Then, it generates a repair piece commitment value using the same Pedersen commitment calculation method as the fragment commitment value. The repair piece commitment values are organized and recorded according to the commitment window number and repair piece sequence number to form a repair piece commitment value directory. The repair piece commitment value directory and the fragment commitment value directory are written into the window task list and sent to the vehicle T-BOX.
[0064] The window execution script is a pre-configured submission control description file distributed by the cloud. It is stored in a structured configuration file format and includes at least the task identifier, target domain identifier, submission order, corresponding ECU identifier, switching command type, command frame format, sending cycle, timeout retry count, and rollback trigger condition. The window execution script includes at least the receiving and writing control content and the submission and rollback control content. The version switching related submission and rollback commands can only be executed after the activation token verification is passed. In this embodiment, the task identifier is used to uniquely identify an OTA upgrade task and is formed by a combination of "vehicle identification code + target version number + task generation timestamp".
[0065] The cloud sends the window task list to the vehicle T-BOX and domain controller through an encrypted transmission channel, and pre-sets the corresponding committed window fragments to the edge nodes, thereby completing the unified preparation of the window task list and edge pre-set data.
[0066] It should be noted that by dividing the upgrade package into multiple sequential commitment windows and configuring commitment verification, repair and recovery, and execution control information for each commitment window, each commitment window can be processed independently during subsequent transmission, recovery, writing, and submission. This reduces the latency and resource consumption caused by repeated downloads and verifications at the whole package level, thereby achieving granular optimization of OTA upgrades.
[0067] S2. The vehicle-mounted T-BOX creates a list of items to be downloaded based on the window task list, performs reception verification and window restoration on the fragments and repair fragments, and forms a frozen window.
[0068] After receiving the window task list, the vehicle-mounted T-BOX (Telematics BOX, vehicle-mounted remote communication terminal, vehicle network terminal) first identifies the commitment window with the smallest window number in the list to be downloaded and whose frozen state is not frozen as the current unfulfilled commitment window. Then, it requests the corresponding data packets (fragmented data packets and repair fragment data packets) of the current unfulfilled commitment window from the edge node.
[0069] In this embodiment, the repair piece generation rule adopts the linear erasure code generation rule based on the linear combination of finite fields. For example, the finite field is selected as GF(2^8). For fragments within the same commitment window, the edge node performs a linear combination on multiple fragments in the finite field to generate the corresponding repair piece.
[0070] It should be noted that by processing the currently unfinished commitment windows one by one according to the window number sequence, the vehicle-mounted T-BOX can form a clear window progress boundary during the upgrade process. This makes it easier to locate the unfinished parts based on the list to be downloaded after communication interruption, thereby improving the efficiency of resuming interrupted downloads and reducing the complexity of state recovery.
[0071] The edge node returns fragmented data packets. Each fragmented data packet contains at least a task identifier, window number, fragment sequence number, fragment data, and a random number. After parsing the fragmented data packets, the vehicle-mounted T-BOX sequentially verifies the task identifier, window number, and fragment sequence number. Then, it performs a hash operation on the fragment data and performs a Pedersen commitment calculation based on the random number. The Pedersen commitment calculation result is then compared with the fragment commitment value with the same fragment sequence number in the fragment commitment value directory. If the Pedersen commitment calculation result is completely consistent with the fragment commitment value corresponding to the same task identifier, same commitment window number, and same fragment sequence number in the fragment commitment value directory, the fragment is written to the current incomplete commitment window cache; otherwise, the corresponding fragmented data packet is discarded, and the corresponding fragment sequence number is added to the re-request queue.
[0072] It should be noted that by performing commitment consistency verification before writing fragments to the currently incomplete commitment window buffer, erroneous or damaged fragments can be prevented from entering the subsequent window recovery and writing process, reducing the additional time consumption caused by invalid recovery and invalid writing, thereby improving the efficiency of OTA upgrade processing.
[0073] The edge node determines whether there are missing fragments in the currently incomplete commitment window based on the missing fragment request, duplicate request record, or window reception status receipt returned by the vehicle-mounted T-BOX. It then sends a repair fragment data packet according to the repair fragment generation rules. The repair fragment data packet contains at least a task identifier, window number, repair fragment sequence number, repair fragment data, a set of fragment sequence numbers involved in generating the repair fragment, a repair fragment random number, and encoding coefficients that correspond one-to-one with the fragment sequence number set. The vehicle-mounted T-BOX performs task identifier verification on the repair fragment data packet and performs Pedersen commitment verification according to the repair fragment commitment value directory. If the task identifier verification is correct and the repair fragment Pedersen commitment calculation result is completely consistent with the corresponding repair fragment commitment value in the repair fragment commitment value directory, the verification is considered successful. The verified repair fragment is added to the repair fragment pool, and the verified repair fragment is marked as invalid and discarded, and does not participate in the subsequent recovery matrix construction.
[0074] The repair fragment pool is a collection of repair fragments that have passed the commitment verification and are able to participate in the missing fragment recovery within the same commitment window. The repair fragment pool is formed by aggregating repair fragment data packets according to window number.
[0075] When the recovery matrix formed by the verified fragments in the current incomplete commitment window and the verified repair fragments in the repair fragment pool satisfies the full rank condition (in this embodiment, the satisfactory condition means that the coefficient matrix, which is composed of the unknowns corresponding to the current missing fragments and the set of coding coefficients corresponding to the verified repair fragments, has a rank equal to the number of current missing fragments, and when the rank of the coefficient matrix is equal to the number of current missing fragments, it indicates that the full rank condition is met), after the vehicle-mounted T-BOX completes the window recovery, it re-executes the fragment commitment value comparison for all recovered fragments (i.e., whether the fragment commitment value of the recovered fragment is consistent with the fragment commitment value of the original fragment in the commitment window; if consistent, the comparison is successful; otherwise, it is unsuccessful). When the fragment commitment value comparison is re-executed for all recovered fragments and all are successful, and when the recalculated window root identifier is consistent with the window root identifier in the window task list, the vehicle-mounted T-BOX marks the current commitment window as frozen, forming a frozen window, and sends the frozen window along with the corresponding commitment window number and window root identifier to the domain controller.
[0076] The recovery matrix consists of the unknown vector corresponding to the missing fragment, the linear combination coefficient matrix corresponding to the repair fragment, and the repair fragment data vector. When the rank of the coefficient matrix is equal to the current number of missing fragments, the vehicle-mounted T-BOX solves for the missing fragment data by performing matrix inversion on the recovery matrix within a finite domain and completes window recovery. The frozen window refers to the committed window that is copied to the read-only buffer and written to the frozen status bit after passing the verification of all fragment commitment values and the recalculated window root identifier is consistent with the window root identifier in the window task list. The frozen status bit includes at least the window number, frozen flag, frozen timestamp, and corresponding window root identifier.
[0077] It should be noted that the frozen window is saved in read-only mode after it is formed, which allows the restored window to be reused in subsequent ECU power-off, local replay, or collaborative distribution scenarios without having to re-execute download and verification, thereby improving the reuse efficiency of data already completed during OTA upgrades.
[0078] The vehicle-mounted T-BOX then removes all fragment sequence numbers from the download list within the frozen window and sends the frozen window to the domain controller in order of window number.
[0079] S3. The domain controller creates an upgrade list based on the window task list, writes the corresponding segments of the frozen window into the target ECU shadow area, and performs breakpoint resume, local replay recovery and remote retransmission recovery based on the download list and the upgrade list.
[0080] After receiving the frozen window, the domain controller first writes the frozen window and its corresponding committed window number and window root identifier into the domain controller's local read-only cache area, and then writes the fragments in the frozen window into the corresponding target ECU shadow area one by one according to the write mapping relationship in the window task list.
[0081] The domain controller's local read-only buffer is used to perform local replay recovery when the target ECU is powered off, interrupted during write, or restarted.
[0082] The upgrade list is a set of fragment numbers that the domain controller has established based on the fragment number list and write mapping relationship, and for which write confirmation for the target ECU's shadow area has not yet been completed. After the domain controller receives a write confirmation from the target ECU, it deletes the corresponding fragment number from the upgrade list.
[0083] After each shard is written, the domain controller receives a write confirmation from the corresponding vehicle ECU. When the write confirmation arrives, the corresponding shard number is removed from the list to be upgraded. When all shards in the frozen window have received write confirmations, the frozen window is marked as window write complete.
[0084] When communication between the vehicle-mounted T-BOX and the edge node is interrupted (in this embodiment, if the vehicle-mounted T-BOX does not receive fragment data packets or repair fragment data packets returned by the edge node within 100 ms for 10 consecutive retries, it is determined that communication is interrupted), the vehicle-mounted T-BOX generates a resume request for the unfinished downloaded fragments based on the list to be downloaded and sends it to the cloud after communication is restored. The cloud notifies the edge node to continue sending the unfinished downloaded fragments based on the resume request.
[0085] It should be noted that by recording the sequence number of fragments that have not yet been successfully received in the download list, it is possible to resume transmission only for the remaining incomplete fragments after communication is restored, without having to request the entire upgrade package again from the beginning, thereby optimizing the interruption resumption of the OTA transmission process.
[0086] When the vehicle ECU is powered off, the domain controller compares the list to be downloaded and the list to be upgraded. It determines the fragment sequence number that exists in the list to be upgraded but not in the list to be downloaded as the local replay set; and determines the fragment sequence number that exists in both the list to be upgraded and the list to be downloaded as the remote retransmission set.
[0087] After power is restored, the domain controller first reads the corresponding fragment of the local replay set from the local read-only cache of the domain controller and writes it again to the shadow area of the target ECU. Then, it requests the corresponding fragment of the set from the cloud or edge node via the vehicle T-BOX until the list to be upgraded and the list to be downloaded are updated.
[0088] S4. The cloud issues forwarding tokens for frozen windows and issues activation tokens in the target domain based on the list of upgrades to be implemented.
[0089] After receiving the information reported by the frozen window in the cloud, the task identifier, vehicle identification code, window number and window root identifier are checked and a forwarding token for the corresponding frozen window is generated.
[0090] The edge node is missing the same frozen window, which is determined by the window missing response returned by the edge cache node or the window dwell status issued by the cloud.
[0091] The forwarding token serves as a control credential that restricts the scope and time period of collaborative distribution within the frozen window. The forwarding token is generated by combining the task identifier, vehicle identification code, window number, window root identifier, allowed distribution time period, allowed number of connections, allowed range of receiving node identifiers, and validity period. It is issued by the cloud using a digital signature. Before performing window distribution, the vehicle-mounted T-BOX must verify the signature, validity period, window root identifier, and allowed range of receiving nodes of the forwarding token. Distribution can only proceed after verification. If verification fails (e.g., signature error, expired validity, inconsistent window root identifier, or outside the allowed receiving range), window distribution is prohibited.
[0092] The vehicle-mounted T-BOX only sends the corresponding freeze window to other vehicles to be upgraded when it holds a forwarding token and the edge node lacks the same freeze window. It does not perform window distribution when it does not hold a forwarding token or the root identifier of the freeze window is inconsistent.
[0093] The cloud continues to determine whether the target domain is ready based on the list of upgrades to be completed. Readiness is determined by the rule that "all shard numbers belonging to the target domain have been deleted from the list of upgrades to be completed and all vehicle ECUs involved in the target domain have returned write confirmations". At the same time, after each time the domain controller receives a write confirmation from a vehicle ECU, it reports the corresponding shard number deletion result and the target domain write status to the cloud. The cloud updates the readiness status of each target domain based on the reported results.
[0094] Once all target domains are ready, an activation token is generated in the cloud.
[0095] The activation token serves as a submission credential that restricts the timing and scope of version switching. It is generated by combining a task identifier, vehicle identification number, target version number, target domain identifier (if all components are ready), root packet identifier, issuance timestamp, and validity period. The activation token is digitally signed by the cloud and sent to the domain controller. Before executing the version switch, the domain controller verifies the activation token's digital signature, issuance time, validity period, root packet identifier, and task identifier. For activation tokens that have expired, failed signature verification, or whose task identifiers do not match, the domain controller refuses to execute the version switch to prevent token forgery and replay.
[0096] Before the domain controller receives the activation token, the frozen window remains in a read-only and distributable state. Only after the domain controller receives the activation token does the window execute the script and enter the version switching phase.
[0097] It should be noted that by separating collaborative distribution control from version activation control, and then activating them uniformly after all target domains are ready, the risk of upgrade failure caused by asynchronous cross-domain version switching can be reduced, and the consistency and overall success rate of OTA upgrades can be improved.
[0098] S5. The domain controller performs a unified domain-level submission to the vehicle ECU based on the activation token and the window execution script, and performs isolation rollback on the frozen window corresponding to the failed domain when the submission fails.
[0099] After receiving the activation token and completing the token verification, the domain controller generates a commit command sequence based on the target domain order, command type, message format, sending period, and retry count defined in the window execution script, and sends the commit switch command to the domain controller according to the sending period.
[0100] The domain controller then sends the commit switch command according to the target domain order given by the window execution script, so that the vehicle ECUs belonging to the target domain switch from the shadow area to the target version.
[0101] After receiving the commit confirmation from each target domain, the domain controller reads the version number of each target domain and performs a version consistency comparison. If the version consistency comparison result matches the target version number, the corresponding target domain is marked as successfully committed. If the version consistency comparison result does not match the target version number, the commit confirmation is missing, or the self-check after commit fails, the corresponding target domain is marked as a failed domain.
[0102] Among them, missing submission confirmation means that no submission confirmation corresponding to the target domain is received within the number of timeout retries specified by the window execution script; failure of self-test after submission means that when the ECU corresponding to the target domain performs self-test after switching to the target version, any self-test item returns an abnormal status; the preset self-test items include at least version number reading, startup status check and communication connectivity check.
[0103] Once the failure domain is determined, the domain controller only performs a rollback on the frozen window corresponding to the failure domain, causing the vehicle ECU of the failure domain to switch back to the original version partition. Since the upgrade images of each target domain are stored in an independent shadow area, and the version compatibility verification between target domains has been completed during the upgrade task generation stage, the target domains that are not marked as failure domains retain their target versions unchanged.
[0104] In this embodiment, "domain-level unified submission" refers to the process where, after the activation token verification is successful, the domain controller sends submission and switching commands to each target domain sequentially during the unified version switching phase, according to the target domain sequence number in the window execution script. When some target domains are successfully submitted and others fail, the corresponding target domains are marked as failed domains. The successfully submitted target domains retain their target versions, and only the failed domains are subjected to isolation rollback to reduce the resource waste caused by global rollback. During the upgrade task generation phase, the cloud pre-compiles version compatibility checks between target domains to ensure that the entire vehicle system still meets the compatibility operation requirements when some target domains retain their target versions.
[0105] After the rollback is completed, the domain controller reads the version number of the ECU corresponding to the failed domain and performs startup status checks and communication connectivity checks. If the operating conditions of the new energy vehicle are still not met after the rollback, the status of the failed domain is reported to the cloud and version activation is prohibited for the failed domain.
[0106] It should be noted that by performing isolation rollback only on the failed domains while keeping the target version of the non-failed domains unchanged, the impact of upgrade anomalies can be limited to the local domain range, avoiding the overall rollback of the upgraded parts of the vehicle due to single-domain anomalies, thereby optimizing the scope of impact of OTA upgrade failures.
[0107] This embodiment also provides a computer device applicable to the OTA upgrade and optimization method for cloud-based collaborative new energy vehicles, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to realize the OTA upgrade and optimization method for cloud-based collaborative new energy vehicles as proposed in the above embodiment.
[0108] The computer device can be a terminal, comprising a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0109] This embodiment also provides a storage medium storing a computer program. When executed by a processor, the program implements the OTA upgrade optimization method for cloud-based collaborative operation of new energy vehicles as proposed in the above embodiments. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0110] In summary, this invention organizes upgrade data into windows and forms frozen windows, allowing data that has been verified and recovered to be retained and reused, avoiding the repeated reception of the same data after fault recovery. By maintaining separate lists for download and upgrade, fragments that have not been downloaded are distinguished from those that have been downloaded but not yet written. Thus, during recovery, local replay is prioritized, and only necessary fragments are resumed or retransmitted, reducing redundant processing, shortening recovery time, reducing communication and storage overhead, and improving the continuity and reliability of the OTA upgrade process.
[0111] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A cloud-based collaborative OTA upgrade and optimization method for new energy vehicles, characterized in that: include, The cloud platform divides the upgrade package into commitment windows and issues a task list for each window. The vehicle-mounted T-BOX creates a list of items to be downloaded based on the window task list, performs reception verification and window restoration on the fragments and repair fragments, and forms a frozen window; The domain controller creates an upgrade list based on the window task list, writes the corresponding fragments of the frozen window into the target ECU shadow area, and performs breakpoint resume, local replay recovery and remote retransmission recovery based on the download list and the upgrade list. The cloud issues forwarding tokens for frozen windows and issues activation tokens in the target domain based on the list of upgrades pending. The domain controller performs a unified domain-level submission to the vehicle ECU based on the activation token and the window execution script, and performs isolation rollback on the frozen window corresponding to the failed domain when the submission fails.
2. The OTA upgrade and optimization method for new energy vehicles with cloud-based collaboration as described in claim 1, characterized in that: The specific steps for dividing the upgrade package into commitment windows are as follows. The upgrade package is continuously split into fragments, and each fragment is assigned a sequence number. According to the fragment sequence number, multiple consecutive fragments are divided into consecutive segments based on a fixed byte length to obtain commitment windows, and commitment window numbers are assigned to them.
3. The OTA upgrade and optimization method for new energy vehicles with cloud-based collaboration as described in claim 2, characterized in that: The window task list includes the committed window number, the fragment committed value directory, the window root identifier, the repair fragment generation rules, the list to be downloaded, the list to be upgraded, the window execution script, and the write mapping relationship between the fragments and the vehicle ECU shadow area and the domain controller.
4. The OTA upgrade and optimization method for new energy vehicles with cloud-based collaboration as described in claim 3, characterized in that: The shard commitment value directory refers to the directory generated by performing a hash operation on each shard in the cloud and based on random numbers and the Pedersen commitment calculation method. The window root identifier refers to the process of constructing a Merkle tree by using all the piecewise commitment values within the same commitment window as leaf nodes, and using the root value of the Merkle tree as the window root identifier. The repair patch generation rule refers to a set of rules for generating repair patches by linearly combining multiple patches within the same commitment window over a finite domain.
5. The OTA upgrade and optimization method for new energy vehicles with cloud-based collaboration as described in claim 4, characterized in that: The specific steps for receiving and verifying the fragments and repaired fragments and restoring the window are as follows: Perform a Pedersen commitment comparison on the fragments and repair fragments sent by the edge nodes; When the recovery matrix formed by the verified fragments and repaired fragments in the current commitment window satisfies the full rank condition, window recovery is performed on the current commitment window.
6. The OTA upgrade and optimization method for new energy vehicles with cloud-based collaboration as described in claim 5, characterized in that: The specific steps for forming the frozen window are as follows. After the window is restored, when the restoration matrix formed by the verified fragments and the repaired fragments in the currently uncommitted window meets the full rank condition, the fragment commitment value and the window root identifier are recalculated for the fragments after the window is restored. When the fragment commitment value comparison is re-executed on all recovered fragments and all pass, and when the recalculated window root identifier matches the window root identifier in the window task list, the vehicle T-BOX marks the current commitment window as frozen, forming a frozen window.
7. The OTA upgrade and optimization method for new energy vehicles with cloud-based collaboration as described in claim 6, characterized in that: The establishment of the download list refers to the vehicle-mounted T-BOX writing all fragments that have not yet been reliably received into the local download item record according to the commitment window number and fragment sequence number, thus forming the download list; The "list to be upgraded" refers to the set of fragment numbers that the domain controller has established based on fragment number and write mapping relationship, which are fragment numbers for which the write confirmation of the target ECU shadow area has not yet been completed.
8. The OTA upgrade and optimization method for new energy vehicles with cloud-based collaboration as described in claim 7, characterized in that: The steps for resuming interrupted downloads, local replay recovery, and remote retransmission recovery based on the download list and upgrade list are as follows. After a communication interruption, the vehicle-mounted T-BOX generates a resume request for incomplete download segments based on the list of downloadable segments and sends it to the cloud after communication is restored. After the target ECU is powered off, the domain controller determines the local playback set based on the download list and the upgrade list, the fragment sequence number that exists in the upgrade list but not in the download list; The fragment sequence numbers that exist in both the upgrade list and the download list are determined as the remote retransmission set; After power is restored, local replay recovery is performed on the local replay set first, and then remote retransmission recovery is performed on the remote retransmission set.
9. The OTA upgrade and optimization method for new energy vehicles with cloud-based collaboration as described in claim 8, characterized in that: The cloud-based system issues forwarding tokens for frozen windows, and the specific steps are as follows. Verify the task identifier, vehicle identification number, window number, and the root identifier of the frozen window; A forwarding token is generated based on the window root identifier, and the forwarding token is issued using a digital signature method.
10. The OTA upgrade and optimization method for new energy vehicles with cloud-based collaboration as described in claim 9, characterized in that: The specific steps for issuing activation tokens in the target domain based on the list of items to be upgraded are as follows. Based on the list of domains to be upgraded and the write status of the target domains, the cloud determines that all target domains are ready. An activation token is generated based on the task identifier, vehicle identification number, target version number, and all prepared target domain identifiers, and then digitally signed and issued to the domain controller.
