OTA upgrading method and system for driver side

Through V2V communication and vehicle behavior monitoring, distributed upgrade links are established, which solves the problems of upgrade server load and network dependence in traditional OTA upgrade methods, improves the upgrade speed and efficiency of online ride-hailing fleets, and ensures the security of the upgrade process. and continuity.

CN118612209APending Publication Date: 2024-09-06BEIJING BAILONG MAYUN TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the online ride-hailing industry, the traditional OTA upgrade method relies on direct communication between the vehicle and the server, causing the server load and network bandwidth to become bottlenecks in large-scale vehicle upgrade scenarios, affecting the timeliness and success rate of the upgrade, especially in vehicle upgrade scenarios. When network coverage is unstable during the move, it further increases the complexity and risk of upgrades.

Method used

Through the V2V communication mechanism, the behavior monitoring and real-time data transmission performance index between vehicles are used to establish distributed upgrade links. Upgrade packages are directly transmitted between vehicles, reducing dependence on the central server. The SHA-256 encryption hash function is used Ensure data integrity and perform rollback operations in case of transmission exceptions.

Benefits of technology

It effectively disperses the data transmission load, improves the upgrade speed and efficiency, reduces the risk of upgrade failure due to server response delays or network congestion, and ensures the security and continuity of the upgrade process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612209A
    Figure CN118612209A
Patent Text Reader

Abstract

The invention provides an OTA upgrading method and system for a driver side, and relates to the technical field of online car-hailing system upgrading, a direct communication link is established between vehicles through a V2V communication mechanism of the vehicles and behavior monitoring of the vehicles, the load of data transmission is effectively dispersed, and the data transmission efficiency is improved. According to the method and the system, the possible bottleneck of a central server under a high-load condition is avoided, and in a vehicle-intensive scene such as an online car-hailing fleet, a distributed transmission mechanism remarkably improves the data distribution speed and efficiency because a vehicle can receive an upgrade package from a nearest'neighbor 'vehicle which completes upgrade instead of depending on a single upgrade server, so that the upgrade efficiency is greatly improved. The mechanism not only accelerates the upgrading speed, but also reduces the upgrading failure risk caused by server response delay or network congestion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of online car-hailing system upgrades, and specifically to an OTA upgrade method and system for a driver side. Background Art

[0002] In the online car-hailing industry, a company usually has many vehicles of the same model, mainly because standardized models can reduce maintenance costs and spare parts inventory requirements and improve overall operational efficiency. Among the models commonly used in online car-hailing, vehicles with V2V (Vehicle to Vehicle Communication) technology can share information such as location, speed and road conditions in real time, which helps to predict potential traffic risks and take avoidance measures in advance, thereby improving the safety of passengers. In addition, V2V communication can also optimize the coordinated driving between vehicles, reduce traffic congestion and improve overall traffic efficiency. Vehicles with OTA (Over The Air) upgrade function provide online car-hailing companies with convenient vehicle management. Through remote wireless updates, companies can quickly fix software vulnerabilities, add new features, or adjust vehicle settings according to regulatory changes without recalling the vehicle to the service center. This not only reduces maintenance costs and time, but also ensures that the vehicle always runs in the best condition and provides stable and reliable services. Therefore, the vehicles of online car-hailing companies generally have V2V communication and OTA upgrade functions, and the models are relatively single.

[0003] In the prior art, OTA upgrades usually rely on direct communication between vehicles and their upgrade servers. In online ride-hailing services, there is a common situation where vehicles of the same model and batch are concentrated. If traditional methods are used for upgrades, in large-scale vehicle upgrade scenarios, the load of the upgrade server and the network bandwidth may become bottlenecks, affecting the timeliness and success rate of the upgrade. In addition, vehicles may encounter unstable network coverage during movement, further exacerbating the complexity and risk of the upgrade operation. Therefore, developing a method that can use vehicle-to-vehicle (V2V) communication for OTA upgrades is of great significance for improving upgrade efficiency, reducing network dependence and enhancing the flexibility of the upgrade process.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention

[0005] The purpose of the present invention is to provide an OTA upgrade method and system for the driver side to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] An OTA upgrade method for a driver side, the specific steps include:

[0008] The contents of the OTA upgrade package are hashed using the SHA-256 cryptographic hash function to obtain the verification hash value corresponding to the upgrade package, and the verification hash value is stored in the OTA upgrade server. When the vehicle receives the upgrade package, it also receives the verification hash value of the upgrade package and stores it in the vehicle memory;

[0009] Monitor the behavior information of vehicles that have received the upgrade package and the behavior information of vehicles to be upgraded via OTA in real time, and generate a vehicle behavior index of the vehicles to be upgraded via OTA based on the behavior information of the two types of vehicles, wherein the behavior information of the vehicles includes the speed, location data and communication network speed of the vehicle configuration;

[0010] The vehicle behavior index is compared with the vehicle communication threshold to determine whether communication between vehicles is allowed. If allowed, the vehicle to be OTA upgraded synchronously receives the verification hash value inside the OTA upgrade server and the verification hash value stored in the vehicle that has received the upgrade package, and verifies the two verification hash values ​​to determine whether they are equal;

[0011] If the two verification hash values ​​are equal, the vehicle that has received the upgrade package sends the upgrade package to the corresponding vehicle to be OTA upgraded through V2V communication, and monitors the distance data and vehicle terminal usage data of the two vehicles in real time, and generates a real-time transmission performance index based on the real-time distance data and vehicle terminal usage data of the two vehicles. The vehicle terminal usage data includes the CPU utilization and memory utilization of the vehicle computer;

[0012] The transmission performance index is compared with the transmission performance threshold to determine whether there is a transmission anomaly. If there is a transmission anomaly, the OTA upgraded vehicle performs a rollback operation to restore to the state before the upgrade and deletes all received data.

[0013] Furthermore, the specific method of using the SHA-256 hash function to hash the contents of the OTA upgrade package is as follows:

[0014] Calculate the data length of the OTA upgrade package and ensure that the data length is a multiple of 512 bits. If it is not satisfied, add 0 to the end of the data of the OTA upgrade package until the data length of the OTA upgrade package is a multiple of 512 bits.

[0015] Split the OTA upgrade package data with confirmed length into multiple 512-bit blocks, using the predefined 8 32-bit words as the initial hash value;

[0016] Each 512-bit data block is further decomposed into 16 32-bit words and expanded to 64 32-bit words as sub-word blocks by copying the existing 16 words until 64 words are reached;

[0017] Using 8 initial hash values, perform 64 rounds of logic processing on each 32-bit word. After each round, combine the obtained hash value with the hash value of the previous round to update the hash value.

[0018] The hash value obtained from the processing result of each sub-block is used as the initial value of the next sub-block, and the logical processing is repeated for 64 rounds until all sub-blocks are processed;

[0019] Get the final hash value after all sub-word blocks are processed, and concatenate the eight 32-bit final hash values ​​to form a 256-bit check hash value.

[0020] Furthermore, the logic processing is performed using the logic function within the SHA-256 cryptographic hash function, and the logic functions between adjacent rounds of logic processing are different. After each round, when the obtained hash value is combined with the hash value of the previous round, the obtained hash value is added to the hash value of the previous round.

[0021] Furthermore, the location data is the longitude and latitude of the vehicle, and the specific logic for generating the vehicle behavior index of the vehicle to be OTA upgraded is:

[0022] Obtain the behavior information of all vehicles that have received the upgrade package within a distance range of K kilometers from the vehicle to be upgraded via OTA, number the vehicles that have received the upgrade package, and calculate the distance between them and the vehicle to be upgraded via OTA based on the location data. The formula used is:

[0023]

[0024] Among them, d i The distance between the vehicle numbered i that has received the upgrade package and the vehicle to be upgraded by OTA within the range of K kilometers, in kilometers, lat i and lon i The longitude and latitude data of the vehicle numbered i, in degrees, lat o and lon o Δlat is the longitude and latitude data of the vehicle to be OTA upgraded, in degrees. ij and Δlon ij The first intermediate coefficient and the second intermediate coefficient of the vehicle numbered i, R is the radius of the earth in kilometers;

[0025] The vehicle behavior index is generated based on the distance to the vehicle to be OTA upgraded, the speed and location data of the vehicle that has received the upgrade package and the vehicle to be OTA upgraded, and the communication network speed of the vehicle configuration. The formula is:

[0026]

[0027]

[0028] Among them, Cz i represents the vehicle behavior index between the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded, v i and v o They represent the driving speeds of the vehicle numbered i that has received the upgrade package and the vehicle to be upgraded via OTA, respectively. i and p o represents the communication network speed of the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded, respectively, f(v i + o ) is a function of relative velocity.

[0029] Furthermore, the specific logic for comparing the vehicle behavior index with the vehicle communication threshold to determine whether to allow communication between vehicles is as follows:

[0030] If Cz i ≥Cz y , then the vehicle numbered i that has received the upgrade package is allowed to communicate with the vehicle to be OTA upgraded;

[0031] If Cz i <z y , the vehicle numbered i that has received the upgrade package is not allowed to communicate with the vehicle to be OTA upgraded.

[0032] Among them, Cz y represents the vehicle communication threshold, and Cz y >0, when there are multiple vehicles that are allowed to communicate with the vehicle to be OTA upgraded, only the vehicle with the largest vehicle behavior index that has received the upgrade package is allowed to communicate with the vehicle to be OTA upgraded, and other vehicles are not allowed to communicate.

[0033] Furthermore, the equality of the two check hash values ​​indicates that all the bits of the two check hash values ​​are identical one-to-one. The specific logic for generating the real-time transmission performance index is as follows:

[0034]

[0035] Among them, Cxz i() represents the real-time transmission performance index between the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded at time t, P i () and E i () respectively represent the CPU utilization and memory utilization of the real-time on-board computer of the vehicle numbered i that has received the upgrade package at time t when transmitting the upgrade package, P o () and E o () respectively represent the CPU utilization and memory utilization of the real-time on-board computer of the vehicle to be OTA upgraded when receiving the upgrade package at time t, α and β are the CPU utilization weight and memory utilization weight respectively, and α+β=1, 0<<β, t is the real-time value of data transmission between the vehicle that has received the upgrade package and the vehicle to be OTA upgraded, d i () represents the real-time distance data between the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded at time t.

[0036] Furthermore, the specific logic for determining whether there is a transmission anomaly is as follows:

[0037] When Cxz i ()≥Cx y , it means that there is a transmission anomaly at time t. The OTA upgraded vehicle will immediately perform a rollback operation to restore to the state before the upgrade and delete all received data. i () <Cx y , indicating normal transmission at time t, where Cx y Indicates the transmission performance threshold.

[0038] Furthermore, the specific logic of the rollback operation for the vehicle to be OTA upgraded is as follows:

[0039] When the OTA upgraded vehicle receives the verification hash value, it automatically backs up the software and configuration status of the current vehicle system, and when it is determined that a rollback operation is required;

[0040] Load software and configuration data from a previously created backup to apply the backed-up software and configuration data to the system, overwriting the current settings;

[0041] Delete all data received after the start of receiving the verification hash value.

[0042] The present invention further provides an OTA upgrade system for a driver side, wherein the OTA upgrade system is used to execute the above-mentioned OTA upgrade method for a driver side, including:

[0043] The key generation module is used to hash the contents of the OTA upgrade package using the SHA-256 cryptographic hash function to obtain the verification hash value corresponding to the upgrade package, and store the verification hash value in the OTA upgrade server. When the vehicle receives the upgrade package, it also receives the verification hash value of the upgrade package and stores it in the vehicle memory;

[0044] A data acquisition module is used to monitor in real time the behavior information of vehicles that have received the upgrade package and the behavior information of vehicles to be upgraded via OTA, and to generate a vehicle behavior index of the vehicle to be upgraded via OTA based on the behavior information of the two types of vehicles, wherein the behavior information of the vehicle includes the speed and location data of the vehicle and the communication network speed configured for the vehicle;

[0045] The data verification module is used to compare the vehicle behavior index with the vehicle communication threshold to determine whether communication between vehicles is allowed. If allowed, the vehicle to be OTA upgraded will synchronously receive the verification hash value inside the OTA upgrade server and the verification hash value stored in the vehicle that has received the upgrade package, and verify the two verification hash values ​​to determine whether they are equal;

[0046] The data transmission module is used to send the upgrade package to the corresponding vehicle to be OTA upgraded through V2V communication when the two verification hash values ​​are equal, and monitor the distance data and vehicle terminal usage data of the two vehicles in real time, and generate a real-time transmission performance index based on the real-time distance data and vehicle terminal usage data of the two vehicles, wherein the vehicle terminal usage data includes the CPU utilization rate and memory utilization rate of the vehicle computer;

[0047] The anomaly detection module is used to compare the transmission performance index with the transmission performance threshold to determine whether there is a transmission anomaly. If there is a transmission anomaly, the OTA upgraded vehicle performs a rollback operation to restore to the state before the upgrade and deletes all received data.

[0048] Compared with the prior art, the present invention has the following beneficial effects:

[0049] The present invention establishes a direct communication link between vehicles through the vehicle-to-vehicle communication mechanism and vehicle behavior monitoring, effectively dispersing the load of data transmission and avoiding the bottleneck that may occur in the central server under high load conditions. In scenarios with dense vehicles such as online car-hailing fleets, the distributed transmission mechanism significantly improves the speed and efficiency of data distribution, because vehicles can receive upgrade packages from the nearest "neighbor" vehicle that has completed the upgrade, rather than relying on a single upgrade server. This mechanism not only speeds up the upgrade speed, but also reduces the risk of upgrade failure caused by server response delays or network congestion.

[0050] The present invention introduces a real-time monitoring mechanism for vehicle behavior index and transmission performance index. These indexes are calculated based on key parameters such as vehicle speed, position, communication network speed, and CPU and memory utilization of the on-board computer. By real-time monitoring of the vehicle's behavior information and generating the vehicle behavior index, the most suitable upgrade timing and conditions can be evaluated and selected, reducing the risk of upgrade failure due to poor vehicle condition. Through these indexes, by real-time monitoring of the distance between the two vehicles and the usage data of the on-board terminal, the system can promptly detect and handle abnormal situations in the transmission process, such as restoring to the state before the upgrade through automatic rollback operations, ensuring the safe operation of the vehicle system, not only protecting the vehicle from potential system failures, but also ensuring the continuity and integrity of the upgrade process. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a schematic diagram of the overall method flow of the present invention;

[0052] Figure 2 It is a schematic diagram of the overall system structure of the present invention. DETAILED DESCRIPTION

[0053] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0054] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0055] Example:

[0056] See also Figure 1 , the present invention provides a technical solution:

[0057] An OTA upgrade method for a driver side, the specific steps include:

[0058] Step 1: Use the SHA-256 encrypted hash function to hash the contents of the OTA upgrade package to obtain the verification hash value corresponding to the upgrade package, and store the verification hash value inside the OTA upgrade server. When the vehicle receives the upgrade package, it also receives the verification hash value of the upgrade package and stores it in the vehicle's memory.

[0059] Through SHA-256 hash processing, the integrity of the upgrade package during transmission can be ensured. The receiving vehicle can quickly verify whether the upgrade package has been tampered with or damaged during transmission by comparing the hash value of the received upgrade package with the verification hash value stored in the vehicle memory.

[0060] SHA-256 is a widely recognized cryptographic hash algorithm with high security strength. Using SHA-256 can prevent malicious attackers from compromising vehicle systems by tampering with the contents of upgrade packages. Since the integrity of upgrade packages can be quickly verified, vehicles can ensure that only upgrade packages that have not been tampered with are installed, thereby improving the success rate of upgrades and the stability of the system. The use of SHA-256 hash processing steps not only enhances the security and integrity of data transmission, but also provides a solid foundation for V2V communication and monitoring mechanisms.

[0061] In this embodiment, the specific method of using the SHA-256 hash function to hash the contents of the OTA upgrade package is as follows:

[0062] Calculate the data length of the OTA upgrade package and ensure that the data length is a multiple of 512 bits. If it is not satisfied, add 0 to the data header of the OTA upgrade package until the data length of the OTA upgrade package is a multiple of 512 bits. By ensuring that the data length is a multiple of 512 bits and accurately dividing the data blocks, the accuracy and consistency of the hash calculation are guaranteed. This precise data processing helps to generate reliable verification hash values.

[0063] The OTA upgrade package data with confirmed length is divided into multiple 512-bit blocks. Using the predefined 8 32-bit words as the initial hash value, each 512-bit data block is further decomposed into 16 32-bit words and expanded to 64 32-bit words as sub-word blocks. The expansion method is to copy the existing 16 words until 64 words are reached.

[0064] Using 8 initial hash values, perform 64 rounds of logic processing on each 32-bit word. After each round, combine the obtained hash value with the hash value of the previous round to update the hash value.

[0065] The hash value obtained from the processing result of each sub-block is used as the initial value of the next sub-block, and 64 rounds of logical processing are repeated until all sub-blocks are processed.

[0066] Get the final hash value after all sub-word blocks are processed, and concatenate the eight 32-bit final hash values ​​to form a 256-bit check hash value.

[0067] The SHA-256 hash function can generate a unique fixed-length (256-bit) hash value for the OTA upgrade package. Any small change to the content of the upgrade package will result in a huge change in the hash value, which is called the avalanche effect. Therefore, this method provides strong verification of data integrity and ensures that the data has not been tampered with during transmission or storage. Although SHA-256 is based on complex mathematical principles, it is still very fast to execute on modern computing devices. Therefore, it can provide reliable security protection for OTA upgrade packages without affecting system performance.

[0068] In this embodiment, the use of the SHA-256 hash processing step can promote the implementation of the overall solution because it fundamentally improves the data credibility and system security during the OTA upgrade process. The SHA-256 hash function defines a sequence of 64 constants, which are used with each sub-word block (512-bit block) processed. SHA-256 also defines 8 initial hash values ​​​​that can be obtained based on the decimal part of the square root of the first 8 prime numbers (2 to 19). 32-bit words, the logical processing methods include bit operations including bitwise AND, bitwise NOT, bitwise XOR, addition, as well as rotation and right shift.

[0069] Furthermore, the logic processing is performed using the logic function within the SHA-256 cryptographic hash function, and the logic functions between adjacent rounds of logic processing are different. After each round, when the obtained hash value is combined with the hash value of the previous round, the obtained hash value is added to the hash value of the previous round.

[0070] In this embodiment, the logic function operation includes bitwise operations and modular addition operations. Bitwise operations include AND, OR, XOR and NOT. By accumulating the hash value after each round, it is ensured that slight changes in information can be quickly diffused to the entire hash value. To ensure that every small part of the change can have a big impact on the final result, SHA-256 significantly increases the computational complexity required to construct a collision by introducing different logic processing and accumulating hash values ​​in each round, thereby improving the ability to resist collisions. A collision attack refers to finding two different inputs that produce the same output hash value.

[0071] Step 2: Monitor in real time the behavior information of vehicles that have received the upgrade package and the behavior information of vehicles to be upgraded via OTA. Based on the behavior information of the two types of vehicles, generate a vehicle behavior index for the vehicles to be upgraded via OTA. The vehicle behavior information includes the vehicle's speed, location data, and the communication network speed configured for the vehicle.

[0072] In this embodiment, the location data is the longitude and latitude of the vehicle, and the specific logic for generating the vehicle behavior index of the vehicle to be OTA upgraded is:

[0073] Obtain the behavior information of all vehicles that have received the upgrade package within a distance range of K kilometers from the vehicle to be upgraded via OTA, number the vehicles that have received the upgrade package, and calculate the distance between them and the vehicle to be upgraded via OTA based on the location data. The formula used is:

[0074]

[0075] Among them, d i The distance between the vehicle numbered i that has received the upgrade package and the vehicle to be upgraded by OTA within the range of K kilometers, in kilometers, lat i and lon i The longitude and latitude data of the vehicle numbered i, in degrees, lat o and lon o Δlat is the longitude and latitude data of the vehicle to be OTA upgraded, in degrees. ij and Δlon ij The first intermediate coefficient and the second intermediate coefficient of the vehicle numbered i, R is the radius of the earth in kilometers.

[0076] By using precise latitude and longitude data to calculate the distance, the relative positions between vehicles can be evaluated more accurately. This embodiment takes into account the curvature of the earth and uses the Haversine formula. This distance is not just the straight-line distance between the two vehicles, but is closer to the actual driving or traveling distance.

[0077] The vehicle behavior index is generated based on the distance between the vehicle that has received the upgrade package and the vehicle to be upgraded via OTA, as well as the speed, location data and communication network speed of the vehicle that has received the upgrade package and the vehicle to be upgraded via OTA, and the formula used is:

[0078]

[0079]

[0080] Among them, Cz i represents the vehicle behavior index between the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded, v i and v o They represent the speed of the vehicle numbered i that has received the upgrade package and the vehicle to be upgraded via OTA, in kilometers per hour, respectively. i and p oThey represent the communication network speeds of the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded, respectively.

[0081] f(v i + o ) is a function of relative velocity.

[0082] The vehicle behavior index combines several key factors, including speed, location, and communication network speed. The generated vehicle behavior index is multi-dimensional and can fully reflect the real-time behavior status of each vehicle. By considering the communication network speed, data is transmitted between vehicles with better network conditions to improve upgrade efficiency and reduce interference. By monitoring the vehicle speed in real time, potential risks can be assessed before OTA upgrades. Vehicles should not be upgraded while moving, thereby ensuring the safety of the upgrade process. The distance between vehicles directly affects the calculation results of the vehicle behavior index. The greater the distance, the smaller the overall vehicle behavior index may be.

[0083] The greater the distance between vehicles, the lower the efficiency of their communication tends to be, because signal attenuation or transmission delay leads to a decrease in communication quality, so the corresponding vehicle behavior index is smaller. In this embodiment, the communication network speed configured for the vehicle is the maximum downlink data transmission rate supported by the modem of the corresponding vehicle, and the rate is measured in Mbps (megabits per second).

[0084] The vehicle behavior index reflects the communication quality of V2V communication between the vehicle that has received the upgrade package and the vehicle to be OTA upgraded, and determines whether there are conditions for V2V communication. The larger the value, the better the communication quality and conditions. Therefore, the smaller the distance between the vehicles, the higher the communication efficiency and the smaller the signal attenuation. Therefore, the larger the vehicle behavior index is. When constructing this formula, the minimum value between the communication network speeds of the vehicle that has received the upgrade package and the vehicle to be OTA upgraded is considered, because the two need to receive and send data at the same time. According to the barrel effect, the poor communication network speed determines the network conditions. Therefore, the larger the minimum value between the two, the larger the corresponding vehicle behavior index. In this embodiment, among the two vehicles that may perform V2V communication, if one of the vehicles is moving, the relative speed function is 0, and the corresponding vehicle behavior index is always 0. If both vehicles are not moving, the relative speed function is 1, and the vehicle behavior index is greater than 0. Only when it is ensured that both vehicles are not moving, V2V communication is considered to ensure safety.

[0085] Step 3: Compare the vehicle behavior index and the vehicle communication threshold to determine whether communication between vehicles is allowed. If allowed, the vehicle to be OTA upgraded synchronously receives the verification hash value inside the OTA upgrade server and the verification hash value stored in the vehicle that has received the upgrade package, and verifies the two verification hash values ​​to determine whether they are equal.

[0086] It can dynamically and intelligently manage communication permissions between vehicles to ensure the security and efficiency of the OTA upgrade process. By comparing the vehicle behavior index with the vehicle communication threshold, it can decide whether to allow the vehicle to communicate based on the vehicle's actual operating status and network conditions. This dynamic decision-making mechanism avoids communication when the network is unstable or the vehicle is in a high-risk state, thereby reducing potential risks in the communication process and improving the security of communication.

[0087] By dynamically comparing the vehicle behavior index and the vehicle communication threshold, it is ensured that communication is performed only when the vehicle is in good condition and the network environment is stable, avoiding unnecessary communication, such as no communication when the vehicle is moving. Under the premise of allowing communication, by comparing the verification hash values ​​inside the server and the vehicle, it is ensured that the received upgrade package has not been tampered with, thereby ensuring the integrity and accuracy of the upgrade data.

[0088] By dynamically managing communication permissions, the timeliness and necessity of communication are ensured, providing a stable and secure communication environment for subsequent OTA upgrade steps. When communication is allowed, the integrity of the upgrade package is further ensured by comparing the verification hash values, providing data protection for the smooth progress of the upgrade process.

[0089] In this embodiment, the specific logic for comparing the vehicle behavior index with the vehicle communication threshold to determine whether to allow communication between vehicles is as follows:

[0090] If Cz i ≥Cz y , then the vehicle numbered i that has received the upgrade package is allowed to communicate with the vehicle to be OTA upgraded;

[0091] If Cz i <z y , the vehicle numbered i that has received the upgrade package is not allowed to communicate with the vehicle to be OTA upgraded.

[0092] Among them, Cz y represents the vehicle communication threshold, and Cz y >0, when there are multiple vehicles that are allowed to communicate with the vehicle to be OTA upgraded, only the vehicle with the largest vehicle behavior index that has received the upgrade package is allowed to communicate with the vehicle to be OTA upgraded, and other vehicles are not allowed to communicate.

[0093] When multiple vehicles meet the communication conditions, the system selects the vehicle with the largest vehicle behavior index for communication, ensuring efficient use of communication resources. This priority management mechanism ensures that when there is surplus communication resources, the vehicle with the best performance is used for communication first, improving the overall efficiency and quality of communication. Through priority management, efficient use of communication resources is ensured, communication efficiency is improved, and faster and more reliable communication support is provided for subsequent OTA upgrade steps.

[0094] Step 4: If the two verification hash values ​​are equal, the vehicle that has received the upgrade package sends the upgrade package to the corresponding vehicle to be OTA upgraded through V2V communication, and monitors the distance data and vehicle terminal usage data of the two vehicles in real time, and generates a real-time transmission performance index based on the real-time distance data and vehicle terminal usage data of the two vehicles. The vehicle terminal usage data includes the CPU utilization and memory utilization of the vehicle computer.

[0095] By real-time monitoring of the distance data between the two vehicles and the usage data of the on-board terminals, the system can dynamically adjust the communication strategy to ensure data transmission under the best network and computing resource conditions. The transmission performance index generated based on real-time data can intuitively reflect the quality of the current communication status and provide instant feedback to the system for rapid response and adjustment.

[0096] In this embodiment, the distance data of the two vehicles is obtained by real-time monitoring of the geographic coordinate information of the two vehicles. The distance is calculated by the geographic coordinate information using the method disclosed in the embodiment above. The equality of the two check hash values ​​indicates that all the digits of the two check hash values ​​are the same one-to-one. The specific logic for generating the real-time transmission performance index is as follows:

[0097]

[0098] Among them, Cxz i () represents the real-time transmission performance index between the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded at time t, P i () and E i () respectively represent the CPU utilization and memory utilization of the real-time on-board computer of the vehicle numbered i that has received the upgrade package at time t when transmitting the upgrade package, P o () and E o () respectively represent the CPU utilization and memory utilization of the real-time on-board computer of the vehicle to be OTA upgraded when receiving the upgrade package at time t, α and β are the CPU utilization weight and memory utilization weight respectively, and α+β=1, 0<<β, t is the real-time value of data transmission between the vehicle that has received the upgrade package and the vehicle to be OTA upgraded, d i() represents the real-time distance data between the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded at time t.

[0099] The impact of distance on transmission performance. The longer the distance, the lower the transmission performance. Therefore, it is expressed in reciprocal form, that is, the longer the distance, the larger the denominator and the smaller the transmission performance index. The maximum value of the weighted sum of resource utilization in the two vehicles is taken during calculation. Distance is an important factor affecting the quality of wireless communication. The longer the distance, the more severe the signal attenuation. Therefore, the transmission performance index is reduced in reciprocal form to reflect the negative impact of distance on communication quality. The utilization of CPU and memory reflects the degree of computing resource tension of the vehicle. Excessive utilization will cause data processing delays and affect the real-time and stability of data transmission.

[0100] CxD i () reflects the data transmission efficiency and stability between the two vehicles that are transmitting data packets at time t. The larger the transmission performance index, the higher the data transmission efficiency and stability between the vehicle that has received the upgrade package and the vehicle to be OTA upgraded. The closer the distance, the faster the data transmission speed and the smaller the interference. Therefore, the larger the transmission performance index, this formula reflects the vehicle system processing data by combining the maximum comprehensive situation of the CPU utilization and memory utilization of the on-board computers of the two vehicles. According to the barrel effect, α*P i ()+β*E i () and α*P o ()+β*E o () If the data is larger, it means that the system workload is heavier, which will cause the data processing speed to decrease and affect the stability of data transmission.

[0101] α*P i ()+β*E i () and α*P o ()+β*E o () reflects the resource utilization of the vehicle system, that is, the degree of computing resource tension of the vehicle. If the utilization is too high, it may cause data processing delays and affect the real-time and stability of data transmission. The importance of the two resources is taken into account in a weighted form. In the formula for calculating the real-time transmission performance index, the weight of memory utilization is set to be greater than the weight of CPU utilization. Because OTA upgrades involve a large amount of data reading, writing and temporary storage, the demand for memory is high. The fast response and sufficient capacity of memory are the key to ensuring smooth data processing. Memory access speed and availability are performance bottlenecks. If memory resources are insufficient, even if the CPU processing power is strong, performance will be degraded due to waiting for memory data.

[0102] Therefore, a higher weight is given to memory utilization in the formula. In the vehicle OTA upgrade application scenario, the adequacy of memory resources may have a more critical impact on system performance than CPU utilization. This weight allocation strategy helps to more accurately evaluate and optimize the real-time transmission performance of the system. The transmission performance index changes dynamically and can reflect the current transmission status in real time, facilitating real-time adjustment and optimization of the system.

[0103] Step 5: Compare the transmission performance index with the transmission performance threshold to determine whether there is a transmission anomaly. If there is a transmission anomaly, the OTA upgraded vehicle performs a rollback operation to restore to the state before the upgrade and deletes all received data.

[0104] In this embodiment, the specific logic for determining whether there is a transmission anomaly is as follows:

[0105] When Cxz i ()≥Cx y , it means that there is a transmission anomaly at time t. The OTA upgraded vehicle will immediately perform a rollback operation to restore to the state before the upgrade and delete all received data. i () <Cx y , indicating normal transmission at time t, where Cx y Indicates the transmission performance threshold.

[0106] By real-time monitoring of the transmission performance index and comparing it with the transmission performance threshold, transmission anomalies can be discovered in a timely manner. Once an anomaly is detected, a rollback operation is immediately performed to ensure that the system can quickly recover to the stable state before the upgrade, thereby avoiding system failure or data corruption caused by upgrade failure. After detecting a transmission anomaly, deleting all received data can prevent potential erroneous data from being applied to the system, further protecting the integrity and security of the system. Rapid rollback and data deletion operations can limit the impact of the failure, prevent the problem from spreading to the entire system or network, and reduce the complexity and cost of fault repair.

[0107] Furthermore, the specific logic of the rollback operation for the vehicle to be OTA upgraded is as follows:

[0108] When the OTA upgraded vehicle receives the verification hash value, it automatically backs up the software and configuration status of the current vehicle system. When it is determined that a rollback operation is required;

[0109] Load software and configuration data from a previously created backup to apply the backed-up software and configuration data to the system, overwriting the current settings;

[0110] Delete all data received after the start of receiving the verification hash value.

[0111] At the beginning of the OTA upgrade, the vehicle will receive a verification hash value, which is used to verify the integrity and correctness of the data packet to be received. At the same time as the verification hash value is received, a backup process will be automatically triggered to completely back up the current vehicle system's software and configuration status (including operating system, applications, system settings, etc.) to a secure storage area. This backup is the key to the rollback operation, ensuring that it can be restored to the state before the upgrade when the upgrade fails. During the OTA upgrade process, the system will continuously monitor the transmission performance index, such as memory utilization, CPU utilization, etc., and compare it with the preset threshold. If the transmission performance index exceeds the threshold or the verification hash value verification fails, the system will determine that the transmission is abnormal and a rollback operation is required.

[0112] Once the decision to perform a rollback is made, the system will load the software and configuration data from the previously created backup, apply the backed-up software and configuration data to the system, overwrite the current settings, and restore to the state before the upgrade. The system will delete all received data after the moment it starts receiving the verification hash value to ensure that these potentially problematic data do not affect the stability and security of the system.

[0113] The logical design of this rollback operation ensures that during the OTA upgrade process, once an abnormality is detected, the system can quickly and effectively restore to the stable state before the upgrade. Through automatic backup and rapid rollback, the impact of upgrade failure on the vehicle system can be minimized, ensuring the safety and stable operation of the vehicle. At the same time, deleting abnormal data further ensures the cleanliness and security of the system and prevents potential erroneous data from being retained in the system. This design improves the system's fault tolerance and recovery capabilities and enhances the reliability and security of the entire OTA upgrade process.

[0114] In this embodiment, a direct communication link is established between vehicles through the vehicle's V2V communication mechanism and vehicle behavior monitoring, which effectively disperses the data transmission load and avoids bottlenecks that may occur on the central server under high load conditions. In scenarios with dense vehicles such as online car-hailing fleets, the distributed transmission mechanism significantly improves the speed and efficiency of data distribution, because vehicles can receive upgrade packages from the nearest "neighbor" vehicle that has completed the upgrade, rather than relying on a single upgrade server. This mechanism not only speeds up the upgrade, but also reduces the risk of upgrade failure due to server response delays or network congestion.

[0115] In this embodiment, a real-time monitoring mechanism for the vehicle behavior index and the transmission performance index is introduced. These indices are calculated based on key parameters such as the vehicle's speed, position, communication network speed, and CPU and memory utilization of the on-board computer. By real-time monitoring of the vehicle's behavior information and generating the vehicle behavior index, the most appropriate time and conditions for upgrading can be evaluated and selected, reducing the risk of upgrade failure due to poor vehicle condition. Through these indices, by real-time monitoring of the distance between the two vehicles and the usage data of the on-board terminal, the system can promptly detect and handle abnormal situations in the transmission process, such as restoring to the state before the upgrade through automatic rollback operations, thereby ensuring the safe operation of the vehicle system, not only protecting the vehicle from potential system failures, but also ensuring the continuity and integrity of the upgrade process.

[0116] See also Figure 2 The present invention further provides an OTA upgrade system for a driver side, wherein the OTA upgrade system is used to execute the above-mentioned OTA upgrade method for a driver side, including:

[0117] The key generation module is used to hash the contents of the OTA upgrade package using the SHA-256 cryptographic hash function to obtain the verification hash value corresponding to the upgrade package, and store the verification hash value in the OTA upgrade server. When the vehicle receives the upgrade package, it also receives the verification hash value of the upgrade package and stores it in the vehicle memory;

[0118] A data acquisition module is used to monitor in real time the behavior information of vehicles that have received the upgrade package and the behavior information of vehicles to be upgraded via OTA, and to generate a vehicle behavior index of the vehicle to be upgraded via OTA based on the behavior information of the two types of vehicles, wherein the behavior information of the vehicle includes the speed and location data of the vehicle and the communication network speed configured for the vehicle;

[0119] The data verification module is used to compare the vehicle behavior index with the vehicle communication threshold to determine whether communication between vehicles is allowed. If allowed, the vehicle to be OTA upgraded will synchronously receive the verification hash value inside the OTA upgrade server and the verification hash value stored in the vehicle that has received the upgrade package, and verify the two verification hash values ​​to determine whether they are equal;

[0120] The data transmission module is used to send the upgrade package to the corresponding vehicle to be OTA upgraded through V2V communication when the two verification hash values ​​are equal, and monitor the distance data and vehicle terminal usage data of the two vehicles in real time, and generate a real-time transmission performance index based on the real-time distance data and vehicle terminal usage data of the two vehicles, wherein the vehicle terminal usage data includes the CPU utilization rate and memory utilization rate of the vehicle computer;

[0121] The anomaly detection module is used to compare the transmission performance index with the transmission performance threshold to determine whether there is a transmission anomaly. If there is a transmission anomaly, the OTA upgraded vehicle performs a rollback operation to restore to the state before the upgrade and deletes all received data.

[0122] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0123] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software methods depends on the specific application and design constraints of the technical solution.

[0124] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0125] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. An OTA upgrade method for a driver, characterized in that: The specific steps include: The contents of the OTA upgrade package are hashed using the SHA-256 cryptographic hash function to obtain the verification hash value corresponding to the upgrade package, and the verification hash value is stored in the OTA upgrade server. When the vehicle receives the upgrade package, it also receives the verification hash value of the upgrade package and stores it in the vehicle memory; Monitor the behavior information of vehicles that have received the upgrade package and the behavior information of vehicles to be upgraded via OTA in real time, and generate a vehicle behavior index of the vehicles to be upgraded via OTA based on the behavior information of the two types of vehicles, wherein the behavior information of the vehicles includes the speed, location data and communication network speed of the vehicle configuration; The vehicle behavior index is compared with the vehicle communication threshold to determine whether communication between vehicles is allowed. If allowed, the vehicle to be OTA upgraded synchronously receives the verification hash value inside the OTA upgrade server and the verification hash value stored in the vehicle that has received the upgrade package, and verifies the two verification hash values ​​to determine whether they are equal; If the two verification hash values ​​are equal, the vehicle that has received the upgrade package sends the upgrade package to the corresponding vehicle to be OTA upgraded through V2V communication, and monitors the distance data and vehicle terminal usage data of the two vehicles in real time, and generates a real-time transmission performance index based on the real-time distance data and vehicle terminal usage data of the two vehicles. The vehicle terminal usage data includes the CPU utilization and memory utilization of the vehicle computer; The transmission performance index is compared with the transmission performance threshold to determine whether there is a transmission anomaly. If there is a transmission anomaly, the OTA upgraded vehicle performs a rollback operation to restore to the state before the upgrade and deletes all received data.

2. The OTA upgrade method for a driver terminal according to claim 1, characterized in that: The specific method of using the SHA-256 hash function to hash the contents of the OTA upgrade package is as follows: Calculate the data length of the OTA upgrade package and ensure that the data length is a multiple of 512 bits. If it is not satisfied, add 0 to the end of the data of the OTA upgrade package until the data length of the OTA upgrade package is a multiple of 512 bits. Split the OTA upgrade package data with confirmed length into multiple 512-bit blocks, using the predefined 8 32-bit words as the initial hash value; Each 512-bit data block is further decomposed into 16 32-bit words and expanded to 64 32-bit words as sub-word blocks by copying the existing 16 words until 64 words are reached; Using 8 initial hash values, perform 64 rounds of logic processing on each 32-bit word. After each round, combine the obtained hash value with the hash value of the previous round to update the hash value. The hash value obtained from the processing result of each sub-block is used as the initial value of the next sub-block, and the logical processing is repeated for 64 rounds until all sub-blocks are processed; Get the final hash value after all sub-word blocks are processed, and concatenate the eight 32-bit final hash values ​​to form a 256-bit check hash value.

3. The OTA upgrade method for the driver side according to claim 2, characterized in that: The logic processing is performed using the logic function within the SHA-256 encrypted hash function, and the logic functions of adjacent rounds of logic processing are different. After each round, when the obtained hash value is combined with the hash value of the previous round, the obtained hash value is added to the hash value of the previous round.

4. The OTA upgrade method for a driver terminal according to claim 1, characterized in that: The location data is the longitude and latitude of the vehicle. The specific logic for generating the vehicle behavior index of the vehicle to be OTA upgraded is: Obtain the behavior information of all vehicles that have received the upgrade package within a distance range of K kilometers from the vehicle to be upgraded via OTA, number the vehicles that have received the upgrade package, and calculate the distance between them and the vehicle to be upgraded via OTA based on the location data. The formula used is: Among them, d i The distance between the vehicle numbered i that has received the upgrade package and the vehicle to be upgraded by OTA within the range of K kilometers, in kilometers, lat i and lon i The longitude and latitude data of the vehicle numbered i, in degrees, lat o and lon o Δlat is the longitude and latitude data of the vehicle to be OTA upgraded, in degrees. ij and Δlon ij The first intermediate coefficient and the second intermediate coefficient of the vehicle numbered i, R is the radius of the earth in kilometers; The vehicle behavior index is generated based on the distance to the vehicle to be OTA upgraded, the speed and location data of the vehicle that has received the upgrade package and the vehicle to be OTA upgraded, and the communication network speed of the vehicle configuration. The formula is: Among them, Cz i represents the vehicle behavior index between the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded, v i and v o They represent the driving speeds of the vehicle numbered i that has received the upgrade package and the vehicle to be upgraded via OTA, respectively. i and p o represents the communication network speed of the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded, respectively, f(v i +v o ) is a function of relative velocity.

5. The OTA upgrade method for the driver side according to claim 4, characterized in that: The specific logic for comparing the vehicle behavior index and the vehicle communication threshold to determine whether to allow communication between vehicles is as follows: If Cz i ≥Cz y , then the vehicle numbered i that has received the upgrade package is allowed to communicate with the vehicle to be OTA upgraded; If Cz i <Cz y , the vehicle numbered i that has received the upgrade package is not allowed to communicate with the vehicle to be OTA upgraded. Among them, Cz y represents the vehicle communication threshold, and Cz y >0, when there are multiple vehicles that are allowed to communicate with the vehicle to be OTA upgraded, only the vehicle with the largest vehicle behavior index that has received the upgrade package is allowed to communicate with the vehicle to be OTA upgraded, and other vehicles are not allowed to communicate.

6. The OTA upgrade method for a driver terminal according to claim 1, characterized in that: The equality of the two check hash values ​​indicates that all the bits of the two check hash values ​​are identical one by one. The specific logic for generating the real-time transmission performance index is as follows: Among them, Cxz i (t) represents the real-time transmission performance index between the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded at time t, P i (t) and E i (t) respectively represent the CPU utilization and memory utilization of the real-time on-board computer of the vehicle numbered i that has received the upgrade package at time t when transmitting the upgrade package, P o (t) and E o (t) represents the CPU utilization and memory utilization of the real-time on-board computer of the vehicle to be OTA upgraded when receiving the upgrade package at time t, α and β represent the CPU utilization weight and memory utilization weight respectively, and α+β=1, 0<α<β, t is the real-time value of data transmission between the vehicle that has received the upgrade package and the vehicle to be OTA upgraded, d i (t) represents the real-time distance data between the vehicle numbered i that has received the upgrade package and the vehicle to be OTA upgraded at time t.

7. The OTA upgrade method for the driver side according to claim 6, characterized in that: The specific logic for determining whether there is a transmission anomaly is as follows: When Cxz i (t)≥Cx y , it means that there is a transmission anomaly at time t. The OTA upgraded vehicle will immediately perform a rollback operation to restore to the state before the upgrade and delete all received data. i (t) <Cx y , indicating normal transmission at time t, where Cx y Indicates the transmission performance threshold.

8. The OTA upgrade method for a driver terminal according to claim 1, characterized in that: The specific logic of the rollback operation for the vehicle to be OTA upgraded is as follows: When the OTA upgraded vehicle receives the verification hash value, it automatically backs up the software and configuration status of the current vehicle system, and when it is determined that a rollback operation is required; Load software and configuration data from a previously created backup to apply the backed-up software and configuration data to the system, overwriting the current settings; Delete all data received after the start of receiving the verification hash value.

9. An OTA upgrade system for a driver, characterized in that: The OTA upgrade system is used to execute the OTA upgrade method for the driver side according to any one of claims 1 to 8, including: The key generation module is used to hash the contents of the OTA upgrade package using the SHA-256 cryptographic hash function to obtain the verification hash value corresponding to the upgrade package, and store the verification hash value in the OTA upgrade server. When the vehicle receives the upgrade package, it also receives the verification hash value of the upgrade package and stores it in the vehicle memory; A data acquisition module is used to monitor in real time the behavior information of vehicles that have received the upgrade package and the behavior information of vehicles to be upgraded via OTA, and to generate a vehicle behavior index of the vehicle to be upgraded via OTA based on the behavior information of the two types of vehicles, wherein the behavior information of the vehicle includes the speed and location data of the vehicle and the communication network speed configured for the vehicle; The data verification module is used to compare the vehicle behavior index with the vehicle communication threshold to determine whether communication between vehicles is allowed. If allowed, the vehicle to be OTA upgraded will synchronously receive the verification hash value inside the OTA upgrade server and the verification hash value stored in the vehicle that has received the upgrade package, and verify the two verification hash values ​​to determine whether they are equal; The data transmission module is used to send the upgrade package to the corresponding vehicle to be OTA upgraded through V2V communication when the two verification hash values ​​are equal, and monitor the distance data and vehicle terminal usage data of the two vehicles in real time, and generate a real-time transmission performance index based on the real-time distance data and vehicle terminal usage data of the two vehicles, wherein the vehicle terminal usage data includes the CPU utilization rate and memory utilization rate of the vehicle computer; The anomaly detection module is used to compare the transmission performance index with the transmission performance threshold to determine whether there is a transmission anomaly. If there is a transmission anomaly, the OTA upgraded vehicle performs a rollback operation to restore to the state before the upgrade and deletes all received data.

Citation Information

Cited By

  • Updating system and method that prevent unauthorized modification of information

    US12811796B2