Vehicle-mounted SOTA upgrading method based on streaming decompression

Through streaming decompression and decryption technology, it solves the problems of data security threats, transmission errors and processor overload in SOTA upgrades, achieves efficient and secure software updates, reduces downtime and improves success rate, optimizes bandwidth utilization and reduces Hardware dependencies.

CN118573567APending Publication Date: 2024-08-30YANGZHOU HANGSHENG TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410980367.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing SOTA upgrade technology has problems such as data security threats, transmission errors, insufficient verification mechanisms, high network bandwidth consumption, overloaded processors and system restarts that affect user experience.

Method used

Adopt the in-vehicle SOTA upgrade method based on streaming decompression to optimize the configuration and data transmission of servers and clients through packaging, encryption, signature, fragmentation processing, streaming decompression and decryption, caching, integrity verification, system backup and rollback mechanisms process to achieve safe, stable and efficient software updates.

Benefits of technology

Reduce downtime, improve update success rate, optimize bandwidth utilization, enhance security, reduce hardware dependence, ensure stable system performance, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573567A
    Figure CN118573567A
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted SOTA upgrading method based on streaming decompression in the technical field of automotive electronics and communication. The vehicle-mounted SOTA upgrading method comprises the following steps: step 1, configuring a server of a far-end SOTA; step 2, receiving and verifying by the client; step 3, updating the client; and step 4, performing exception handling. In the updating process, the vehicle can continue to run, most functions are kept to be normally used, and the downtime caused by updating is shortened; according to the method, updating packets are transmitted and applied step by step in stages, errors occurring in the updating process are detected and corrected in real time, the updating success rate and stability are improved, the transmission rate of the updating packets is dynamically adjusted, bandwidth utilization is optimized according to the current network condition, and it is ensured that updating can be efficiently completed under different network conditions; data of each updating stage can be verified and encrypted step by step, the security of transmission and application processes is ensured, and data tampering and hostile attacks are prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a vehicle-mounted SOTA upgrade method based on streaming decompression in the field of automotive electronics and communication technology. Background Art

[0002] Currently in the automotive electronics industry, SOTA (Software Over The Air) technology can remotely update and upgrade vehicle software through wireless communication networks, and allows automakers and software developers to push new software versions or patches to vehicles through remote connections when the vehicle is operating normally, without having to take the vehicle to a workshop or garage for manual updates (such as Figure 7 At the same time, this technology also has certain defects and risks. These mainly include three aspects: 1. Security and stability 1.1 Data security threats: Since the SOTA upgrade process is highly dependent on the Internet, there is a risk of data being intercepted, tampered with, or forged on the data transmission path. Malicious third parties may send malware or damaged update packages to vehicles through man-in-the-middle attacks, which seriously threatens vehicle information security and driving safety.

[0003] 1.2, Transmission Error: In a complex network environment, data transmission may be affected by a variety of factors, resulting in transmission interruption, packet loss or data reassembly errors. If these problems are not properly handled, they will directly lead to software upgrade failure or vehicle system abnormalities.

[0004] 1.3. Insufficient verification mechanism: Some existing SOTA systems lack an effective data verification mechanism and cannot ensure that the received update packages are complete and have not been tampered with, which increases uncertainty in the upgrade process.

[0005] 2. Network bandwidth consumption 2.1. Large data volume transmission: Vehicle software update packages often contain a large amount of code and data. Transmitting this data at one time will take up a lot of network bandwidth resources. In high-concurrency upgrade scenarios, bandwidth pressure will increase further, which may cause network congestion or slow upgrade speed.

[0006] 2.2, Uneven bandwidth distribution: Network infrastructure conditions vary in different regions, and bandwidth resources are unevenly distributed. In areas with tight bandwidth resources, the SOTA upgrade process may be seriously affected or even fail to proceed smoothly.

[0007] 3. Processor Load 3.1, Data processing pressure: During the upgrade process, the vehicle processor needs to perform a large number of data processing tasks, including data reception, analysis, verification, system restart and recovery, etc. These operations will significantly increase the processor load and affect the performance of the vehicle computer and the normal operation of other vehicle functions.

[0008] 3.2 Resource competition: When the vehicle runs multiple applications or performs other high-load operations at the same time, the processor resources will face more intense competition. Performing SOTA upgrades in this situation may cause the upgrade process to be slow or fail.

[0009] 3.3, System restart impact: After the upgrade is completed, the vehicle system usually needs to be restarted to load the new software version. This process will temporarily interrupt some or all functions of the vehicle and have a certain impact on the user experience. Summary of the invention

[0010] The purpose of the present invention is to provide a vehicle-mounted SOTA upgrade method based on streaming decompression, which reduces downtime, improves update success rate, optimizes bandwidth utilization, enhances security, real-time adjustment and optimizes to reduce hardware dependence.

[0011] To achieve the above object, the present invention provides a vehicle-mounted SOTA upgrade method based on streaming decompression, comprising the following steps: Step 1: Configure the remote SOTA server: including packaging, encryption, signing, sharding and server optimization settings for update content; Step 2, client reception and verification: including data reception, caching, integrity verification, streaming decompression, streaming decryption and data signature verification; Step 3, client update; Step 4: Exception handling.

[0012] As a further improvement of the present invention, the specific content of step 1 is as follows: Step 1.1, use a professional ZIP tool to package the software update content into multiple independent update data packages. Each data package contains a complete Local File Header, which contains the key information required to identify and decompress the data package; Step 1.2, sign each update data packet and encrypt the update package using the AES symmetric encryption algorithm to prevent the data from being stolen or tampered with during transmission; Step 1.3, configure the load balancer and content distribution network to optimize the server settings so that requests can be processed efficiently during multi-user upgrades.

[0013] Step 1.4, the update package is fragmented, wherein the fragment size and the unique identifier are determined according to the information in the Local File Header.

[0014] Step 1.5: Use HTTP / HTTPS protocol for data transmission to ensure data security and integrity. On this basis, introduce HTTP Range header to implement breakpoint resume function to ensure that the transmission can be continued from the interruption point when it is interrupted.

[0015] As a further improvement of the present invention, the specific content of step 2 is as follows: Step 2.1, set up a cache mechanism: configure a dedicated cache area on the vehicle side to store the fragment update data packets received from the server. This cache area ensures the orderliness and integrity of the data and provides a basis for subsequent decompression and decryption operations; Step 2.2, integrity verification: Use the MD5 hash algorithm to verify the integrity of each received data slice. By calculating the MD5 value of the data slice and comparing it with the checksum provided by the server, ensure that the data has not been tampered with or damaged during transmission. If the verification fails, re-request the corresponding data slice; Step 2.3, use streaming decompression technology to search and parse the Local File Header of each received fragment, and parse out the required signature information, Data Descriptor offset, and Compress Method algorithm information; Step 2.4: Verify the signature of each decrypted data packet to ensure that the data has not been tampered with.

[0016] As a further improvement of the present invention, the streaming decompression technology in step 2.2 is specifically as follows: By writing key information to the Local File Header data of each file, you can decompress the file data of each data file. The Local File Header data format includes the key information of the signature metadata signature, the Compress Method compression algorithm, the Compressed Size compressed file size, the Uncompressed Size uncompressed file size, the CRC-32 file cyclic redundancy check value, and the File name. The requirements of the streaming decompression technology are the decompression algorithm, the calculated size value, and the CRC-32 value. First, determine the unique identification of each data packet, and the signature metadata signature is an identification number, whose data content is some binary numbers, and its function is to identify the identity of each data packet; The Compress Method indicates the algorithm used to compress the data block, and the corresponding algorithm needs to be used for decompression; the Compressed Size and UnCompressed Size can help determine the end address of the file and the offset of the DataDescriptor.

[0017] As a further improvement of the present invention, the streaming decompression technology in step 2.3 is specifically as follows: The key information required by this technology is the strength of the encryption algorithm and the salt value; Obtaining the actual encryption algorithm: Additional extended data is stored in the ExtraField of the Local File Header. The information in the Extra Field mainly includes Signature (Extra Data signature), AES Encryption strength (AES encryption strength), and Actual compression Method (actual compression method).

[0018] Salt value: In cryptography, salt is an additional random data used to enhance the security of passwords. In stream encryption algorithms, salt is used to initialize the encryption algorithm to ensure that each encryption uses a different initial state. The key information of salt is stored at the head and tail of File Data.

[0019] As a further improvement of the present invention, the specific content of step 3 is as follows.

[0020] Step 3.1, System backup: Create a system snapshot or backup the current system status to roll back in case of update failure; Step 3.2, vehicle status detection: detect whether the vehicle is currently in a safe state, and perform updates in a safe state; Step 3.3, module update: write the new software into the target storage area to replace the old version of the software; Step 3.4, system restart: After the update is complete, restart the corresponding module or the entire system to make the new software take effect.

[0021] As a further improvement of the present invention, the specific content of step 4 is as follows: Rollback strategy: When an update failure or system abnormality is detected, the rollback mechanism is automatically triggered to restore the system to the previous state.

[0022] Compared with the prior art, the beneficial effects of the present invention are that, during the update process, the vehicle can continue to run and maintain normal use of most functions, reducing the downtime caused by the update; the update package is gradually transmitted and applied in stages, and errors occurring during the update process are detected and corrected in real time, thereby improving the success rate and stability of the update; the transmission rate of the update package is dynamically adjusted, and bandwidth utilization is optimized according to the current network conditions, ensuring that the update can be efficiently completed under different network conditions; the data of each update stage can be verified and encrypted in steps to ensure the security of the transmission and application process and prevent data tampering and malicious attacks; during the update process, the update content can be adjusted and optimized according to real-time feedback to ensure a stable system performance peak and rational use of resources; no large-capacity local storage space is required to store the entire update package, and gradual download and installation reduce dependence on the vehicle's local storage hardware. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is the format of the file data structure required in an upgrade of the present invention.

[0024] Figure 2 It is a schematic diagram of the streaming decompression technology of the present invention.

[0025] Figure 3 It is a schematic diagram of the streaming decryption technology of the present invention.

[0026] Figure 4 It is a schematic diagram of the key information storage of the salt of the present invention.

[0027] Figure 5 This is the internal timing diagram of a streaming SOTA upgrade of the present invention.

[0028] Figure 6 The present invention is a flow chart of the SOTA upgrade of the in-vehicle navigation system by streaming decompression.

[0029] Figure 7 It is a schematic diagram of a common decompression method in the prior art. DETAILED DESCRIPTION

[0030] The present invention is further described below in conjunction with the accompanying drawings: like Figure 1-5 The vehicle-mounted SOTA upgrade method based on streaming decompression shown includes the following steps: Step 1: Configure the remote SOTA server: including packaging, encryption, signing, sharding and server optimization settings for update content; Step 1.1, use a professional ZIP tool to package the software update content into multiple independent update data packages. Each data package contains a complete Local File Header, which contains the key information required to identify and decompress the data package; Step 1.2, sign each update data packet and encrypt the update package using the AES symmetric encryption algorithm to prevent the data from being stolen or tampered with during transmission; Step 1.3, configure the load balancer and content distribution network to optimize the server settings so that requests can be processed efficiently during multi-user upgrades.

[0031] Step 1.4, the update package is fragmented, wherein the fragment size and the unique identifier are determined according to the information in the Local File Header.

[0032] Step 1.5: Use HTTP / HTTPS protocol for data transmission to ensure data security and integrity. On this basis, introduce HTTP Range header to implement breakpoint resume function to ensure that the transmission can be continued from the interruption point when it is interrupted.

[0033] Step 2, client reception and verification: including data reception, caching, integrity verification, streaming decompression, streaming decryption and data signature verification; Step 2.1, set up a cache mechanism: configure a dedicated cache area on the vehicle side to store the fragment update data packets received from the server. This cache area ensures the orderliness and integrity of the data and provides a basis for subsequent decompression and decryption operations; Step 2.2, integrity verification: Use the MD5 hash algorithm to verify the integrity of each received data slice. By calculating the MD5 value of the data slice and comparing it with the checksum provided by the server, ensure that the data has not been tampered with or damaged during transmission. If the verification fails, re-request the corresponding data slice; The streaming decompression technology is as follows: By writing key information to the Local File Header data of each file, you can decompress the file data of each data file. The Local File Header data format includes the key information of the signature metadata signature, the Compress Method compression algorithm, the Compressed Size compressed file size, the Uncompressed Size uncompressed file size, the CRC-32 file cyclic redundancy check value, and the File name. The requirements of the streaming decompression technology are the decompression algorithm, the calculated size value, and the CRC-32 value. First, determine the unique identification of each data packet, and the signature metadata signature is an identification number, whose data content is some binary numbers, and its function is to identify the identity of each data packet; The Compress Method indicates the algorithm used to compress the data block, and the corresponding algorithm needs to be used for decompression; the Compressed Size and UnCompressed Size can help determine the end address of the file and the offset of the DataDescriptor.

[0034] Step 2.3, use streaming decompression technology to search and parse the Local File Header of each received fragment, and parse out the required signature information, Data Descriptor offset, and Compress Method algorithm information; The streaming decompression technology is as follows: The key information required by this technology is the strength of the encryption algorithm and the salt value; Obtaining the actual encryption algorithm: Additional extended data is stored in the ExtraField of the Local File Header. The information in the Extra Field mainly includes Signature (Extra Data signature), AES Encryption strength (AES encryption strength), and Actual compression Method (actual compression method).

[0035] Salt value: In cryptography, salt is an additional random data used to enhance the security of passwords. In stream encryption algorithms, salt is used to initialize the encryption algorithm to ensure that each encryption uses a different initial state. The key information of salt is stored at the head and tail of File Data.

[0036] Step 2.4: Verify the signature of each decrypted data packet to ensure that the data has not been tampered with.

[0037] Step 3, client update; Step 3.1, System backup: Create a system snapshot or backup the current system status to roll back in case of update failure; Step 3.2, vehicle status detection: detect whether the vehicle is currently in a safe state, and perform updates in a safe state; Step 3.3, module update: write the new software into the target storage area to replace the old version of the software; Step 3.4, system restart: After the update is complete, restart the corresponding module or the entire system to make the new software take effect.

[0038] Step 4: Exception handling.

[0039] Rollback strategy: When an update failure or system abnormality is detected, the rollback mechanism is automatically triggered to restore the system to the previous state.

[0040] The working principle of the present invention is to optimize the decompression mode during the vehicle-mounted SOTA upgrade process, and adopt a more flexible, better performance consumption, higher stability and security streaming decompression technology.

[0041] like Figure 1 Shown is the format of the file data structure required in an upgrade.

[0042] Common decompression methods such as Figure 6 The main purpose of the code shown here is to find the File Header in the Central Directory data block. The offset of the LocalFile Header and the related information of the File Data are read from the File Header, and the CRC-32 stored in the File Header is used for verification to ensure the integrity of the decompressed data.

[0043] Streaming decompression technology such as Figure 2 As shown, The common decompression method strongly relies on the tail data block Central Directory, and to obtain this data block, the entire SOTA upgrade package file must be downloaded. Therefore, in order to achieve segmented decompression and on-demand decompression, the streaming decompression technology needs to be improved in the following two steps: 1. Decompression based on Local File Header data block By writing key information to the Local File Header data of each file, the file data of each data file can be decompressed. Figure 3 The following is the data format of Local File Header, where the key information includes signature (metadata signature), Compress Method (compression algorithm), Compressed Size (compressed file size), Uncompressed Size (uncompressed file size), CRC-32 (cyclic redundancy check value of the file), and File name. The main requirements of streaming decompression technology are decompression algorithm, calculated size value, and verification of CRC-32 value.

[0044] First, determine the unique identification of each data packet, and the signature (metadata signature) is an identification number, whose general data content is some binary numbers, and its main function is to identify the identity of each data packet.

[0045] The Compress Method indicates the algorithm used to compress the data block, and the corresponding algorithm needs to be used for decompression; the Compressed Size and UnCompressed Size can help determine the end address of the file and the offset of the DataDescriptor.

[0046] By optimizing the traditional method, the reliance on the Central Directory data block at the end of the entire package is changed to using the information in the Local File Header data block in each package. This improvement eliminates the need to wait for the entire upgrade package data to be downloaded before processing. Instead, each data packet can be decompressed immediately after downloading, and the next data packet can be downloaded at the same time, thus achieving streaming processing.

[0047] 2. Improvement of decryption method This method uses streaming decryption technology, and the key information required by this technology is the strength of the encryption algorithm, salt (salt value), etc.

[0048] Obtaining the real encryption algorithm: Figure 3 It can be seen that some additional extended data is stored in the Extra Field of Local FileHeader. The information in the Extra Field mainly includes Signature (Extra Data signature), AES Encryption strength (AES encryption strength) and Actual compress Method (actual compression algorithm).

[0049] Salt: In cryptography, salt is an additional random data used to enhance the security of a password. In a stream encryption algorithm, salt is used to initialize the encryption algorithm to ensure that each encryption uses a different initial state. Figure 4 As shown, the key information of salt is stored at the head and tail of File Data.

[0050] Through the application of streaming decryption technology, the user experience can be significantly improved in terms of resource usage, timeliness, and incremental expansion, as well as the fault tolerance during upgrades.

[0051] like Figure 5The figure shows the internal timing diagram of a streaming SOTA upgrade, which subdivides the complete upgrade package into n independent data packets. This method allows the system to perform download and decompression operations in parallel, that is, after each data packet is downloaded immediately, the decompression process is started immediately without waiting for the entire upgrade package to be completely downloaded. By directly utilizing the key information in the Local FileHeader of the ZIP format (including Compress Method, Compressed Size, Uncompressed Size, CRC-32 checksum, and File name), the system can dynamically handle the decompression of each data packet.

[0052] Taking the SOTA upgrade of the vehicle navigation system as an example, the specific instructions are as follows (such as Figure 6 As shown in the figure): It is divided into four main steps: configuring the remote SOTA server, client reception and verification, client update and exception handling.

[0053] Step 1: Configure the remote SOTA server 1.1 Package update content: First, use the zip tool to package the map content and navigation algorithm content into multiple update data packets containing Local File Header. These data packets will be used for subsequent encryption and transmission.

[0054] 1.2 Encryption and Signature: Sign each update data packet and encrypt the data update package using the AES symmetric encryption algorithm to prevent the data from being stolen or tampered with during transmission.

[0055] 1.3 Server optimization: Configure the load balancer and content delivery network (CDN) to optimize the server settings so that requests can be processed efficiently during the multi-user upgrade process.

[0056] 1.4 Fragmentation processing: According to the information in the Local File Header, the update package is fragmented, and the fragment size and unique identifier are determined to ensure that each data packet can be processed independently.

[0057] 1.5 Data transmission: Use HTTP / HTTPS protocol for data transmission to ensure data security and integrity. Introduce HTTP Range header to implement breakpoint resume function to ensure that the transmission can be continued from the interruption point when it is interrupted.

[0058] Step 2: Client receives and verifies 2.1 Data caching and integrity verification: Set up a cache area on the vehicle side to store the received fragmented data, ensure the orderliness of the data, and use the MD5 algorithm to verify the integrity of each fragment.

[0059] 2.2 Streaming Decompression Technology 2.2.1 Reading Local File Header: The front of each compressed file contains the Local File Header. This header contains metadata of the compressed file, such as the signature, compression algorithm, file size before and after compression, CRC-32 checksum, and file name. When receiving each data packet, first read and parse the Local File Header to obtain this key information.

[0060] 2.2.2 Parse Local File Header Parsing key data: Signature (metadata signature): used to uniquely identify each data packet, it is an identification number, usually some binary numbers.

[0061] Compress Method: Indicates the compression algorithm used for the data block. The same algorithm must be used when decompressing. Compressed Size: Used to determine the end position of the file data. Uncompressed Size: Used to determine the size of the data after decompression. CRC-32: Used to verify the integrity of the decompressed data. File name: The name of the file, used for file saving.

[0062] 2.2.3 Data fragmentation and ordered reception Receiving fragmented data: Divide the entire update package into multiple data packets, each of which contains a complete LocalFile Header. Receive these fragmented data in sequence in the client buffer area, and perform MD5 verification on each fragment to ensure data integrity.

[0063] 2.2.4 Gradually decompress data Gradual decompression: Decompress the data step by step according to the parsed compression algorithm and size information. During the data reception process, after receiving a complete data packet, it is immediately decompressed using the parsed compression algorithm without waiting for the entire update package to be downloaded. The decompressed data is written to the target file and the CRC-32 checksum is used for integrity verification to ensure that the data has not been tampered with.

[0064] 2.2.5 Streaming Decryption Streaming decryption: The Extra Field of the Local File Header contains information such as the strength of the encryption algorithm and the salt value. Use this information for streaming decryption. Salt is used to initialize the encryption algorithm to ensure that each encryption uses a different initial state. Before decompression, the received encrypted data is decrypted and then decompressed.

[0065] 2.2.6 Error handling and breakpoint resume Error handling: During the data transmission process, if any error is detected (such as data verification failure), the client needs to re-request the data segment. Use the HTTP Range header to implement the breakpoint resume function. If the transmission is interrupted, the client can continue the transmission from the interruption point to avoid repeated downloads.

[0066] 2.2.7 Integrate the decompressed data Data integration: After all shard data is decompressed, all decompressed data is integrated to ensure the integrity and order of the file. During the entire decompression process, the client continuously updates the file status to ensure data consistency.

[0067] 2.2.8 Subsequent processing Update and restart: After the decompression is complete, make a system backup to ensure that you can roll back if the update fails.

[0068] Detect vehicle status and perform software updates in a safe state. Write new software to the target storage area, replace the old version of software, and restart the corresponding module or system to make the new software effective.

[0069] The details of the upgrade process are as follows: 1. Application of streaming decompression technology The common decompression method relies on the Central Directory data block at the end, while the streaming decompression technology decompresses each data file by writing key information to the Local File Header data at the head of each file. This method can decompress without downloading the entire upgrade package file, thereby improving the efficiency of decompression and installation.

[0070] 2. Application of streaming decryption technology Streaming decryption technology makes the decryption process more efficient and secure by storing key information such as the strength of the encryption algorithm and the salt value in the Extra Field of the Local File Header. The salt value is used to initialize the encryption algorithm to ensure that each encryption uses a different initial state, thereby improving security.

[0071] In this embodiment, the efficiency and security of the SOTA upgrade of the vehicle navigation system are significantly improved through streaming decompression and streaming decryption technology. During the entire upgrade process, the integrity and security of data transmission are ensured, and the stability of the system is guaranteed through system backup and rollback mechanisms. This technical solution not only improves the user experience, but also provides an efficient and reliable solution for the remote upgrade of the vehicle system. Through efficient streaming decompression technology, the file can be gradually decompressed during the gradual reception of data, avoiding the limitation of the traditional method that the decompression must wait until the entire file is downloaded. The present invention has the following beneficial effects: 1. Less downtime Compared with traditional SOTA technology, SOTA under the streaming decompression algorithm allows the vehicle to continue running during the update process and maintain most functions normal use, reducing the downtime caused by the update.

[0072] 2. High update success rate Compared with traditional SOTA technology, SOTA under the streaming decompression algorithm gradually transmits and applies update packages in stages, detects and corrects errors that occur during the update process in real time, and improves the success rate and stability of the update.

[0073] 3. Optimize bandwidth utilization Compared with traditional SOTA technology, SOTA under the streaming decompression algorithm dynamically adjusts the transmission rate of update packages, optimizes bandwidth utilization according to the current network conditions, and ensures that updates can be completed efficiently under different network conditions.

[0074] 4. Enhanced security SOTA under the streaming decompression algorithm can verify and encrypt data in each update stage in steps, ensuring the security of the transmission and application process and preventing data tampering and malicious attacks.

[0075] 5. Real-time adjustment and optimization Compared with traditional SOTA technology, SOTA under the streaming decompression algorithm can adjust and optimize the update content according to real-time feedback during the update process, ensuring the stability of system performance peaks and rational use of resources.

[0076] 6. Reduce hardware dependence Compared with traditional SOTA technology, SOTA under the streaming decompression algorithm does not require a large amount of local storage space to store the entire update package. The gradual download and installation reduces the dependence on the vehicle's local storage hardware.

[0077] The present invention is not limited to the above-mentioned embodiments. On the basis of the technical solution disclosed herein, technicians in this field can make some substitutions and deformations to some technical features therein according to the disclosed technical content without creative labor, and these substitutions and deformations are all within the protection scope of the present invention.

Claims

1. A vehicle-mounted SOTA upgrade method based on streaming decompression, characterized in that: The following steps are included: Step 1: Configure the remote SOTA server: including packaging, encryption, signing, sharding and server optimization settings for update content; Step 2, client reception and verification: including data reception, caching, integrity verification, streaming decompression, streaming decryption and data signature verification; Step 3, client update; Step 4: Exception handling.

2. According to claim 1, a vehicle-mounted SOTA upgrade method based on streaming decompression is characterized in that: The specific contents of step 1 are as follows: Step 1.1, use a professional ZIP tool to package the software update content into multiple independent update data packages. Each data package contains a complete Local File Header, which contains the key information required to identify and decompress the data package; Step 1.2, sign each update data packet and encrypt the update package using the AES symmetric encryption algorithm to prevent the data from being stolen or tampered with during transmission; Step 1.3, configure the load balancer and content distribution network to optimize the server settings so that requests can be processed efficiently during multi-user upgrades; Step 1.4, fragment the update package, wherein the fragment size and unique identifier are determined according to the information in the Local File Header; Step 1.5: Use HTTP / HTTPS protocol for data transmission to ensure data security and integrity. On this basis, introduce HTTP Range header to implement breakpoint resume function to ensure that the transmission can be continued from the interruption point when it is interrupted.

3. According to claim 2, a vehicle-mounted SOTA upgrade method based on streaming decompression is characterized in that: The specific contents of step 2 are as follows: Step 2.1, set up a cache mechanism: configure a dedicated cache area on the vehicle side to store the fragment update data packets received from the server. This cache area ensures the orderliness and integrity of the data and provides a basis for subsequent decompression and decryption operations; Step 2.2, integrity verification: Use the MD5 hash algorithm to verify the integrity of each received data slice. By calculating the MD5 value of the data slice and comparing it with the checksum provided by the server, ensure that the data has not been tampered with or damaged during transmission. If the verification fails, re-request the corresponding data slice; Step 2.3, use streaming decompression technology to search and parse the Local File Header of each received fragment, and parse out the required signature information, Data Descriptor offset, and Compress Method algorithm information; Step 2.4: Verify the signature of each decrypted data packet to ensure that the data has not been tampered with.

4. According to claim 3, a vehicle-mounted SOTA upgrade method based on streaming decompression is characterized in that: The streaming decompression technology in step 2.2 is as follows: By writing key information to the Local File Header data of each file, you can decompress the file data of each data file. The Local File Header data format includes the key information of the signature metadata signature, the Compress Method compression algorithm, the Compressed Size compressed file size, the Uncompressed Size uncompressed file size, the CRC-32 file cyclic redundancy check value, and the File name. The requirements of the streaming decompression technology are the decompression algorithm, the calculated size value, and the CRC-32 value. First, determine the unique identification of each data packet, and the signature metadata signature is an identification number, whose data content is some binary numbers, and its function is to identify the identity of each data packet; The Compress Method indicates the algorithm used to compress the data block, and the corresponding algorithm needs to be used for decompression; the Compressed Size and UnCompressed Size can help determine the end address of the file and the offset of the DataDescriptor.

5. According to claim 4, a vehicle-mounted SOTA upgrade method based on streaming decompression is characterized in that: The streaming decompression technology in step 2.3 is as follows: The key information required by this technology is the strength of the encryption algorithm and the salt value; Acquisition of the actual encryption algorithm: Additional extended data is stored in the Extra Field of the Local File Header. The information in the Extra Field mainly includes Signature (Extra Data signature), AES Encryption strength (AES encryption strength), and Actual compression Method (actual compression method). Salt value: In cryptography, salt is an additional random data used to enhance the security of passwords. In stream encryption algorithms, salt is used to initialize the encryption algorithm to ensure that each encryption uses a different initial state. The key information of salt is stored at the head and tail of File Data.

6. The vehicle-mounted SOTA upgrade method based on streaming decompression according to claim 5 is characterized in that: The specific contents of step 3 are as follows; Step 3.1, System backup: Create a system snapshot or backup the current system status to roll back in case of update failure; Step 3.2, vehicle status detection: detect whether the vehicle is currently in a safe state, and perform updates in a safe state; Step 3.3, module update: write the new software into the target storage area to replace the old version of the software; Step 3.4, system restart: After the update is complete, restart the corresponding module or the entire system to make the new software take effect.

7. The vehicle-mounted SOTA upgrade method based on streaming decompression according to claim 6 is characterized in that: The specific contents of step 4 are as follows: Rollback strategy: When an update failure or system abnormality is detected, the rollback mechanism is automatically triggered to restore the system to the previous state.

Citation Information

Cited By

  • Process management method and management platform for infotainment system

    CN120935163A