A method, apparatus, electronic device, and storage medium for over-the-air (OTA) upgrades of vehicles.
By estimating and activating the detection data of relay vehicles in new energy vehicles, a connection channel is established, which solves the problems of low upgrade efficiency and safety of new energy vehicles in areas without network coverage, and realizes an efficient and safe upgrade process.
Patent Information
- Application Number
- CN202310784378.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-06-29
AI Technical Summary
When new energy vehicles cannot connect to cloud OTA servers for upgrades, especially in areas with concentrated vehicle populations, the upgrade efficiency is low and the security of the upgrade process cannot be guaranteed.
By acquiring detection data of OTA congestion zones, estimating the required number of relay vehicles, activating relay vehicles and assigning valid congestion identifiers, establishing a connection channel between relay vehicles and vehicles to be upgraded, sending information packets and updating the congestion identifier status, the upgrade efficiency and security are ensured.
It improves the efficiency of upgrading new energy vehicles in areas without network coverage, ensures the safety of the upgrade process, and reduces the operating costs of OEMs.
Smart Images

Figure CN116806045B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and more specifically to a vehicle OTA upgrade method, device, electronic device, and storage medium. Background Technology
[0002] New energy vehicles refer to automobiles that use unconventional vehicle fuels (or use conventional vehicle fuels but employ new onboard power systems) as their power source, integrating advanced technologies in vehicle power control and drive, resulting in vehicles with advanced technical principles and new technologies and structures. New energy vehicles include: hybrid electric vehicles, pure electric vehicles, fuel cell vehicles, hydrogen engine vehicles, as well as natural gas vehicles, alcohol-ether vehicles, etc.
[0003] With the development of vehicle-to-everything (V2X) technology, the number of software systems required for new energy vehicles is increasing. During software updates, new energy vehicles can download vehicle upgrade packages from cloud-based OTA servers using over-the-air (OTA) technology, and update the software system through these packages. However, in areas with no network coverage or signal, new energy vehicles cannot send upgrade package download requests to the cloud-based OTA server, resulting in the software system not being upgraded and updated in a timely manner. For example, Chinese patent CN202011110594.3 discloses a vehicle upgrade method, including the following steps: automatically forming a self-organizing network with surrounding vehicles; determining whether there is a target vehicle among the surrounding vehicles with a version higher than the current version of the vehicle to be upgraded; when the target vehicle exists, obtaining a differential upgrade package of the current version from the target vehicle through the self-organizing network; and upgrading the current version using the differential upgrade package. This invention solves the problem in existing technologies where the vehicle to be upgraded cannot connect to the backend server, thus preventing upgrades and achieving the technical effect of completing upgrades normally even with poor vehicle network signals. However, in areas with a high concentration of vehicles awaiting upgrades, the uncertainty of the number of surrounding vehicles and their dwell time can lead to a large number of vehicles failing to download the differential upgrade package from surrounding vehicles as needed. This compromises the upgrade efficiency of the vehicles. Therefore, the technical solution of this invention is not suitable for areas with a high concentration of vehicles awaiting upgrades, and the upgrade efficiency cannot be guaranteed. Furthermore, this technical solution does not effectively verify the identities of surrounding vehicles, thus failing to guarantee the security of the OTA upgrade process. Summary of the Invention
[0004] In view of the shortcomings of the prior art described above, this application provides a vehicle OTA upgrade method, device, electronic device and storage medium to solve the problems of not being able to guarantee the upgrade efficiency of the vehicle to be upgraded and the security of the OTA upgrade process.
[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0006] According to one aspect of the embodiments of this application, a vehicle OTA upgrade method is provided, comprising: acquiring detection data of an OTA congestion zone within a preset time period, the detection data including vehicle parameters and time parameters, the vehicle parameters including the total number of stationary vehicles, the total number of vehicles that have left, and the number of vehicles that have successfully completed the upgrade, the time parameters including the total time of information interaction between the vehicles that left and historical relay vehicles, the test time of historical relay vehicles for flashing the vehicle to be upgraded, the optimal time of historical relay vehicles for flashing the vehicle to be upgraded, and the predetermined time of historical relay vehicles for flashing the vehicle to be upgraded; estimating the number of relay vehicles required in the OTA congestion zone based on the vehicle parameters and time parameters; activating selectable vehicles based on the number of relay vehicles, so that the selectable vehicles obtain relay identity and a valid congestion identifier of the OTA congestion zone, the relay identity being associated with the congestion identifier, and the selectable vehicles that obtain relay identity serving as relay vehicles; establishing a connection channel between the relay vehicles with the same valid congestion identifier and the vehicle to be upgraded; sending corresponding information packets according to the connection channel; and updating the status of the valid congestion identifier to invalidate the relay identity of the relay vehicle.
[0007] In one embodiment of this application, establishing a connection channel between a relay vehicle and a vehicle to be upgraded that have the same valid blocking identifier includes: comparing the valid blocking identifier of the relay vehicle and the valid blocking identifier of the vehicle to be upgraded; if the valid blocking identifiers of the relay vehicle and the vehicle to be upgraded are the same, determining that the relay vehicle and the vehicle to be upgraded belong to the same local area network; and establishing a connection channel between the vehicle to be upgraded and the relay vehicle based on the supply and demand relationship between the vehicle to be upgraded and the relay vehicle, as well as the degree of matching between the data receiving bandwidth of the vehicle to be upgraded and the data sending bandwidth of the relay vehicle.
[0008] In one embodiment of this application, the selectable vehicles include operating vehicles and non-operating vehicles. After obtaining the number of relay vehicles and before the selectable vehicles are activated, the process includes: obtaining non-operating vehicles whose destination is the OTA congestion zone, the dwell time of the non-operating vehicles in the OTA congestion zone, and the OTA software packages, storage space, and transmission rates that the non-operating vehicles can provide; determining whether the dwell time, the OTA software packages, storage space, and transmission rates meet the upgrade requirements of the vehicle to be upgraded; if the dwell time, the OTA software packages, storage space, and transmission rates meet the upgrade requirements, activating the operating vehicles and the non-operating vehicles, the sum of the operating vehicles and the non-operating vehicles being equal to the number of relay vehicles; if the dwell time, the OTA software packages, storage space, and transmission rates do not meet the upgrade requirements, activating the operating vehicles according to the number of relay vehicles.
[0009] In one embodiment of this application, estimating the number of relay vehicles required within the OTA congestion zone based on the vehicle parameters and time parameters includes: calculating the number of remaining un-upgraded vehicles within the OTA congestion zone based on the vehicle parameters; calculating the flashing efficiency of the OTA congestion zone based on the total time and test time; and obtaining the number of relay vehicles required within the OTA congestion zone by combining the number of remaining un-upgraded vehicles, flashing efficiency, optimal time, and predetermined time.
[0010] In one embodiment of this application, calculating the number of remaining un-upgraded vehicles in the OTA congestion zone based on the vehicle parameters includes: calculating the ratio of the number of successfully upgraded vehicles to the total number of vehicles that have left the zone to obtain the successful upgrade efficiency of the OTA congestion zone; calculating the difference between 1 and the successful upgrade efficiency to obtain the unsuccessful upgrade efficiency of the OTA congestion zone; calculating the difference between the total number of stationary vehicles and the total number of vehicles that have left the zone to obtain the remaining number of vehicles in the OTA congestion zone; and calculating the product of the unsuccessful upgrade efficiency, the remaining number of vehicles, and a preset empirical parameter to obtain the remaining number of un-upgraded vehicles in the OTA congestion zone.
[0011] In one embodiment of this application, the number of relay vehicles required within the OTA congestion zone is obtained by combining the remaining number of unupgraded vehicles, the flashing efficiency, the optimal time, and the predetermined time. This includes: calculating the product of the flashing efficiency and the predetermined time to obtain a first product value; calculating the product of the optimal time and the remaining number of unupgraded vehicles to obtain a second product value; and calculating the ratio of the first product value to the second product value to obtain the number of relay vehicles required within the OTA congestion zone.
[0012] In one embodiment of this application, establishing a connection channel between the vehicle to be upgraded and the relay vehicle based on the supply and demand relationship between the vehicle to be upgraded and the relay vehicle, and the degree of matching between the data receiving bandwidth of the vehicle to be upgraded and the data sending bandwidth of the relay vehicle, includes: establishing a supply and demand relationship between the vehicle to be upgraded and the relay vehicle based on the OTA software package required by the vehicle to be upgraded and the OTA software package provided by the relay vehicle; adjusting the number of data receiving channels and the number of data sending channels according to the supply and demand relationship to update the data receiving bandwidth and the data sending bandwidth; and establishing a connection channel between the vehicle to be upgraded and the relay vehicle based on the difference between the data receiving bandwidth and the data sending bandwidth.
[0013] In one embodiment of this application, a supply-demand relationship is established between the vehicle to be upgraded and the relay vehicle based on the OTA software package required by the vehicle to be upgraded and the OTA software package provided by the relay vehicle. This includes: calculating the initial data receiving bandwidth of the vehicle to be upgraded based on a preset maximum receiving data bandwidth and the number of data receiving channels; calculating the initial data sending bandwidth of the relay vehicle based on a preset maximum sending data bandwidth and the number of data sending channels; connecting the vehicle to be upgraded and the relay vehicle one by one using the initial data receiving bandwidth and the initial data sending bandwidth; enabling the vehicle to be upgraded to obtain the relay vehicle that can provide the required OTA software package, and the relay vehicle to obtain the vehicle to be upgraded that needs to receive the OTA software package, through information interaction; and establishing a supply-demand relationship between the vehicle to be upgraded and the relay vehicle based on the required OTA software package.
[0014] In one embodiment of this application, adjusting the number of data receiving channels and the number of data sending channels according to the supply and demand relationship to update the data receiving bandwidth and data sending bandwidth includes: adjusting the number of data receiving channels according to the number of OTA software packages that the vehicle to be upgraded needs to receive; adjusting the number of data sending channels according to the number of OTA software packages that the relay vehicle needs to send; updating the data receiving bandwidth according to the maximum receiving data bandwidth and the adjusted number of data receiving channels; and updating the data sending bandwidth according to the maximum sending data bandwidth and the adjusted number of data sending channels.
[0015] In one embodiment of this application, establishing a connection channel between the vehicle to be upgraded and the relay vehicle based on the difference between the data receiving bandwidth and the data sending bandwidth includes: calculating the difference between the data receiving bandwidth of the vehicle to be upgraded and the data sending bandwidth of the corresponding relay vehicle; taking the absolute value of the difference; comparing the absolute value with a preset absolute value threshold; if the absolute value is less than the preset absolute value threshold, determining that the matching degree between the data receiving bandwidth and the data sending bandwidth meets the requirements; and establishing a connection between the corresponding vehicle to be upgraded and the relay vehicle.
[0016] In one embodiment of this application, adjusting the number of data receiving channels according to the number of OTA packages the vehicle to be upgraded needs to receive includes: if the number of OTA packages is greater than or equal to the preset number of data receiving channels, then the number of data receiving channels and the data receiving bandwidth remain unchanged, and OTA packages with a number greater than the preset number of data receiving channels enter the queuing sequence; if the number of OTA packages is less than the preset number of data receiving channels, then the number of data receiving channels is adjusted to the number of OTA packages.
[0017] In one embodiment of this application, adjusting the number of data transmission channels according to the number of OTA packages that the relay vehicle needs to send includes: if the number of OTA packages is greater than or equal to the preset number of data transmission channels, then the number of data transmission channels and the data transmission remain unchanged, and OTA packages with a number greater than the preset number of data transmission channels enter the queuing sequence; if the number of OTA packages is less than the preset number of data transmission channels, then the number of data transmission channels is adjusted to the number of OTA packages.
[0018] In one embodiment of this application, sending a corresponding information packet according to the connection channel includes: if the transmission rate of the connection channel is lower than a preset rate threshold, or the transmission duration of the connection channel exceeds a preset time threshold, or the bandwidth of the connection channel is less than a preset bandwidth threshold, disconnecting the connection channel; establishing a connection channel between the vehicle to be upgraded and the relay vehicle based on the supply and demand relationship between the vehicle to be upgraded and the relay vehicle, and the degree of matching between the data receiving bandwidth of the vehicle to be upgraded and the data sending bandwidth of the relay vehicle; and retransmitting the corresponding information packet; if the information packet has been sent, disconnecting the connection channel.
[0019] In one embodiment of this application, updating the status of the valid blocking identifier to invalidate the relay vehicle's relay identity includes: uploading interaction information between the relay vehicle and the vehicle to be upgraded; and updating the status of the valid blocking identifier to invalidate the relay vehicle's relay identity.
[0020] In one embodiment of this application, sending a corresponding information packet according to the connection channel includes: agreeing on a private key and encryption method during the transmission of the information packet by exchanging information between the operating vehicle and the vehicle to be upgraded according to a preset asymmetric encryption algorithm; encrypting the OTA software package and authentication key according to the agreed private key and encryption method to obtain an encrypted information packet;
[0021] The information packet is decrypted using the corresponding decryption method and private key to obtain the OTA software package and authentication key; after the OTA software package is securely authenticated using the authentication key, the OTA software package is upgraded; after the OTA software package and authentication key are successfully transmitted, the connection channel is disconnected.
[0022] In one embodiment of this application, sending a corresponding information packet according to the connection channel includes: exchanging information between the non-operational vehicle and the vehicle to be upgraded according to a preset asymmetric encryption algorithm, and agreeing on the private key and encryption method during the transmission of the information packet; encrypting the OTA software package according to the agreed private key and encryption method to obtain the encrypted information packet; decrypting the information packet according to the corresponding decryption method and private key to obtain the OTA software package; and disconnecting the connection channel after the OTA software package is successfully transmitted.
[0023] In one embodiment of this application, before obtaining the detection data of an OTA congestion zone within a preset time period, the method includes: dividing OTA geographical zones; collecting the average traffic of the OTA geographical zones within the preset time period; comparing the average traffic of the OTA geographical zones with a preset traffic threshold; if the average traffic is less than the preset traffic threshold, determining the OTA geographical zone as an OTA traffic cold zone; detecting the average parking time per vehicle and the average number of vehicles parked within the OTA traffic cold zone; if the average parking time per vehicle exceeds a preset duration threshold or the average number of vehicles parked exceeds a preset number of vehicles parked threshold, determining the OTA traffic cold zone as an OTA congestion zone; and assigning a valid congestion identifier to the OTA congestion zone.
[0024] According to one aspect of the embodiments of this application, the system includes: an acquisition module, configured to acquire detection data of an OTA congestion zone within a preset time period, the detection data including vehicle parameters and time parameters, the vehicle parameters including the total number of stationary vehicles, the total number of vehicles that have left the system, and the number of vehicles that have successfully completed the upgrade, the time parameters including the total time of information interaction between the vehicles that left the system and historical relay vehicles, the test time of historical relay vehicles for flashing the vehicle to be upgraded, the optimal time of historical relay vehicles for flashing the vehicle to be upgraded, and the predetermined time of historical relay vehicles for flashing the vehicle to be upgraded; and a relay vehicle number estimation module, configured to estimate the OTA congestion zone based on the vehicle parameters and time parameters. The system includes: the required number of relay vehicles; a relay vehicle activation module, used to activate selectable vehicles based on the number of relay vehicles, so that the selectable vehicles obtain relay identity and a valid blocking identifier for the OTA blocking zone, wherein the relay identity is associated with the blocking identifier, and the selectable vehicles that obtain relay identity serve as relay vehicles; a connection channel establishment module, used to establish a connection channel between the relay vehicles with the same valid blocking identifier and the vehicle to be upgraded; a packet sending module, used to send corresponding packets based on the connection channel; and a blocking identifier status update module, used to update the status of the valid blocking identifier so that the relay identity of the relay vehicle becomes invalid.
[0025] According to one aspect of the embodiments of this application, the device includes: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the vehicle OTA upgrade method as described above.
[0026] According to one aspect of the embodiments of this application, computer-readable instructions are stored thereon, which, when executed by a computer's processor, cause the computer to perform the vehicle OTA upgrade method as described above.
[0027] The beneficial effects of this invention are:
[0028] (1) Based on the vehicle parameters and time parameters in the OTA blockage zone, this invention estimates the number of relay vehicles required in the OTA blockage zone, meets the upgrade requirements of the vehicles to be upgraded in the OTA blockage zone, and ensures the upgrade efficiency and upgrade effect of the vehicles to be upgraded.
[0029] (2) By activating the relay vehicle and assigning a valid blocking identifier, the present invention enables the relay vehicle to be effectively verified, thus ensuring the security of the upgrade process of the vehicle to be upgraded through the relay vehicle.
[0030] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0031] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0032] Figure 1 This is a schematic diagram illustrating an exemplary system architecture as shown in an exemplary embodiment of this application;
[0033] Figure 2 This is a flowchart illustrating a vehicle OTA upgrade method in an exemplary embodiment of this application;
[0034] Figure 3 This is a schematic diagram of an OTA geographical single zone shown in an exemplary embodiment of this application;
[0035] Figure 4 This is a schematic diagram illustrating an OTA blocking single zone, as shown in an exemplary embodiment of this application;
[0036] Figure 5 This is a flowchart illustrating an exemplary embodiment of the OTA relay preparation process.
[0037] Figure 6 This is a flowchart illustrating an exemplary embodiment of the OTA relay flashing process.
[0038] Figure 7 A block diagram is shown that is suitable for implementing a vehicle OTA upgrade device according to embodiments of this application;
[0039] Figure 8 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0040] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0041] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0042] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0043] In this application, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0044] First, it should be noted that an OTA geographic zone is a square area of fixed size centered on a location where vehicles are concentrated, such as a parking garage, shopping mall, or stadium. OTA geographic zones can overlap.
[0045] The average traffic of an OTA geographical zone refers to the ratio of the total OTA traffic to the total upgrade time between the cloud OTA server and parked vehicles within a unit statistical time (adjustable), such as within a week or a month, within the scope of an OTA geographical zone. The unit of average traffic is Kb / s.
[0046] OTA traffic cold zones refer to geographical areas where the average traffic is below the traffic threshold.
[0047] An OTA congestion zone refers to an OTA traffic cold zone where the average parking time per vehicle exceeds a time threshold or the average total number of parked vehicles exceeds a parking quantity threshold.
[0048] Potential relay vehicles refer to vehicles with sufficient storage space and transmission capacity, which have completed the download of a specific version of the OTA software package and have retained the corresponding version of the OTA software package in their storage space. Relay vehicles can be private, non-commercial vehicles whose navigation destination is a single OTA-blocked area, or vehicles designated by the OEM's service team specifically for offline mass flashing.
[0049] A potential relay vehicle operated by an OEM refers to a vehicle that has a specific version of OTA software installed, contains the program to be flashed for the specific version of OTA software, and has completed the trial and testing process for the specific version of OTA software. The OEM has pre-configured the relay vehicle's identity authentication function, pre-agreed the authentication key for the specific version of OTA software, and pre-agreed the encryption method for information exchange between the relay vehicle and the vehicle to be upgraded.
[0050] Private non-commercial vehicles refer to vehicles equipped with a specific version of OTA software package, with a pre-agreed encryption method for information exchange between the relay vehicle and the vehicle to be upgraded.
[0051] A relay vehicle refers to a potential relay vehicle that has obtained relay vehicle identity authentication. This type of vehicle can act as a relay OTA server, replacing the cloud OTA server to provide OTA download authentication services and OTA download services.
[0052] The OTA blocking identifier is a temporary, unique, and vehicle identification number associated with the vehicle's VIN. It is obtained from the cloud OTA server before the relay vehicle enters the OTA blocking zone and becomes invalid after leaving the OTA blocking zone.
[0053] An OTA relay certificate is a digital certificate provided by a cloud-based OTA server to potential relay vehicles. It provides a unique, trusted, verifiable, and time-limited identity verification for the relay OTA server to the vehicle carrying the certificate. The OTA relay certificate is associated with the vehicle's VIN (Vehicle Identification Number).
[0054] An OTA-blocked single-zone LAN refers to a LAN composed of vehicles to be upgraded and relay vehicles that have the same valid OTA blocking identifier within an OTA-blocked single zone. The LAN can be formed by Wi-Fi, Bluetooth, or Zigbee, etc.
[0055] The technical solutions of this application involve OTA upgrades and related technologies, which are specifically illustrated through the following embodiments:
[0056] Figure 1 This is a schematic diagram illustrating an exemplary system architecture as shown in an exemplary embodiment of this application.
[0057] Reference Figure 1As shown, the system architecture may include a data acquisition device 101, a cloud-based OTA server 102, relay vehicles 103, and vehicles to be upgraded 104. The cloud-based OTA server 102 can be at least one of a desktop graphics processing unit (GPU) computer, a GPU computing cluster, or a neural network computer. Technical personnel can use this computer device 102 to acquire detection data of an OTA-blocked single zone within a preset time period, and estimate the number of relay vehicles required within the OTA-blocked single zone based on vehicle parameters and time parameters. The process of activating selectable vehicles based on the number of relay vehicles relies on the interaction between the cloud-based OTA server 102 and the relay vehicles 103. The establishment of a connection channel and the sending of corresponding information packets based on the connection channel rely on the interaction between the relay vehicles 103 and the vehicles to be upgraded 104. The process of updating the status of the effective blockage identifier relies on the interaction between the cloud-based OTA server 102 and the relay vehicles 103. The data acquisition device 101 is used to collect detection data and provide it to the cloud-based OTA server 102 for processing.
[0058] Indicatively, after acquiring the detection data from the data acquisition device 101, the cloud-based OTA server 102 obtains the detection data of the OTA congestion zone within a preset time period. Based on vehicle parameters and time parameters, it estimates the number of relay vehicles required within the OTA congestion zone. This process satisfies the upgrade requirements of the vehicles to be upgraded within the OTA congestion zone, ensuring upgrade efficiency and effectiveness. Then, the interaction between the cloud-based OTA server 102 and the relay vehicle 103 activates the selectable vehicle, ensuring the security of the upgrade process via the relay vehicle. The interaction between the relay vehicle 103 and the vehicle to be upgraded 104 establishes a connection channel and sends corresponding information packets based on the connection channel. Finally, the interaction between the cloud-based OTA server 102 and the relay vehicle 103 updates the effective congestion status.
[0059] It should be noted that the vehicle OTA upgrade method provided in this application embodiment is jointly executed by the cloud OTA server 102, the relay vehicle 103 and the vehicle to be upgraded 104. Accordingly, the vehicle OTA upgrade device is respectively set in the cloud OTA server 102, the relay vehicle 103 and the vehicle to be upgraded 104.
[0060] The implementation details of the technical solutions in the embodiments of this application are described in detail below:
[0061] Figure 2This is a flowchart illustrating an exemplary embodiment of a vehicle OTA upgrade method, which can be executed by a processing device. Figure 1 The combination shown is a cloud-based OTA server 102, a relay vehicle 103, and a vehicle to be upgraded 104. (Refer to...) Figure 2 As shown, the vehicle OTA upgrade method includes at least steps S210 to S260, which are detailed below:
[0062] In step S210, the detection data of the OTA blocking single area within a preset time period is obtained.
[0063] In one embodiment of this application, the detection data includes vehicle parameters and time parameters. The vehicle parameters include the total number of stationary vehicles, the total number of vehicles that have left, and the number of vehicles that have successfully left for upgrade. The time parameters include the total time for the vehicles that left to interact with the information of historical relay vehicles, the test time for historical relay vehicles to flash the vehicle to be upgraded, the optimal time for historical relay vehicles to flash the vehicle to be upgraded, and the predetermined time for historical relay vehicles to flash the vehicle to be upgraded.
[0064] Total number of parked vehicles C block_total This refers to the total number of vehicles remaining in a specific OTA congestion zone within a preset time period. This total number can be determined by analyzing the GPS location data of vehicles in the big data platform within the preset time period to determine whether they are within the OTA congestion zone. Total number of vehicles leaving (C) out_total The total number of vehicles that have successfully exited the OTA congestion zone can be determined by analyzing changes in vehicle GPS location data within a preset time period on a big data platform. For example, at least two time points within the preset time period are selected, with the time interval determined empirically. At the previous time point, the vehicle's GPS location data is within the OTA congestion zone, while at the next time point, it is outside the zone. This is used to determine if a vehicle has exited the OTA congestion zone. The number of vehicles that have successfully exited the upgrade zone is C. out_success The number of successfully upgraded vehicles that have left the OTA congestion zone is determined by whether the required OTA software package is complete within the vehicle. The total time for the vehicles leaving the congestion zone to exchange information with historical relay vehicles is T, where... n = {1, 2, ..., N}, N = C out_total , Δt n The interaction time between the nth vehicle exiting the OTA congestion zone and the historical relay vehicle can be determined by the start and end times of the interaction between the vehicle and the historical relay vehicle. The test time T for the historical relay vehicle to flash the vehicle to be upgraded. iThis refers to the time required for a historical relay vehicle to simultaneously flash i vehicles to be upgraded. This time can be obtained through actual testing or by looking up a table. The optimal time T for a historical relay vehicle to flash the vehicles to be upgraded is... X The optimal time for historical relay vehicles to simultaneously flash X vehicles awaiting upgrades is determined by the performance of the OEM's communication module. The scheduled time T for historical relay vehicles to flash the vehicles awaiting upgrades is also specified. input The recommended time for completing the flashing of the vehicle to be upgraded can be determined by experience values obtained from actual testing. In order to improve the upgrade effect of the vehicle to be upgraded, a vehicle with an idle time close to the experience value obtained from actual testing should be selected as a relay vehicle.
[0065] In step S220, the number of relay vehicles required within a single OTA congestion zone is estimated based on vehicle parameters and time parameters.
[0066] In this embodiment, after obtaining the required number of relay vehicles, the relay vehicles are activated according to the number of relay vehicles. This not only ensures the upgrade effect of the vehicles to be upgraded, but also saves the operating costs of the OEM.
[0067] In step S230, selectable vehicles are activated based on the number of relay vehicles, so that the selectable vehicles obtain relay identity and a valid blocking identifier for the OTA blocking single zone. The relay identity is associated with the blocking identifier, and the selectable vehicle that obtains the relay identity becomes a relay vehicle.
[0068] In this embodiment, when the difference between the idle time of an available vehicle and an empirical value of a predetermined time is within a predetermined range (the predetermined range can be set according to actual conditions), the vehicle is selected as a relay vehicle. The process of selecting a relay vehicle from the available vehicles can be designated by OEM staff. The designated relay vehicle actively initiates an activation request to the cloud OTA server. The activation request includes the relay vehicle's identity authentication information and VIN code. After receiving the relay vehicle's request and confirming its authentication information, the cloud OTA server sends an OTA relay certificate to the relay vehicle. The relay vehicle can then provide OTA software package download services for the vehicle to be upgraded, replacing the cloud OTA server. Alternatively, the cloud OTA server can filter the available vehicles. The cloud OTA server directly sends activation requests to the selected relay vehicles. After receiving the activation request from the cloud OTA server, the selected relay vehicles send their identity authentication information and VIN code to the cloud OTA server. After receiving the relay vehicle's request and confirming its authentication information, the cloud OTA server sends an OTA relay certificate to the relay vehicle. The relay vehicle can then provide OTA software package download services for the vehicle to be upgraded, replacing the cloud OTA server.
[0069] The principles by which OEM staff designate relay vehicles and the principles by which the cloud-based OTA server selects relay vehicles are both based on calculating the difference between the available vehicle's idle time and a predetermined time. If the difference is within a predetermined range, the available vehicle is selected as a relay vehicle. The cloud-based OTA server pre-stores the idle time of available vehicles.
[0070] In step S240, a connection channel is established between the relay vehicle and the vehicle to be upgraded that have the same valid blockage identifier.
[0071] In this embodiment, after determining that an OTA geographical zone is an OTA congestion zone, the cloud-based OTA server assigns a valid OTA congestion identifier to the congestion zone. Before the vehicle to be upgraded, whose navigation destination is an OTA congestion zone, enters the congestion zone, its valid OTA congestion identifier is obtained from the cloud-based OTA server. Just before the relay vehicle enters the congestion zone, its valid OTA congestion identifier is obtained from the cloud-based OTA server. By activating the relay vehicle and associating its OTA relay certificate with the valid congestion identifier, the relay vehicle's identity can be effectively verified, ensuring the security of the upgrade process for the vehicle to be upgraded via the relay vehicle.
[0072] In step S250, a corresponding information packet is sent according to the connection channel.
[0073] In this embodiment, the establishment of the connection channel facilitates the on-demand transmission of information packets between the vehicle to be upgraded and the relay vehicle, which helps to improve the efficiency of information packet transmission and avoids data redundancy that increases the transmission load of the local area network.
[0074] In step S260, the status of the valid blocking identifier is updated so that the relay vehicle's relay identity is invalidated.
[0075] In this embodiment, when the relay vehicle's working time reaches the time limit, the relay vehicle leaves the OTA blocking zone, and its valid blocking identifier becomes invalid, thus invalidating the relay vehicle's identity. This prevents relay vehicles that have lost their relay identity from impersonating others after leaving the OTA blocking zone, ensuring the legitimacy of the relay vehicle's identity.
[0076] In one embodiment of this application, establishing a connection channel between a relay vehicle and a vehicle to be upgraded that share the same valid congestion identifier includes:
[0077] The valid blockage identifiers of relay vehicles and vehicles to be upgraded are compared.
[0078] In one embodiment of this application, comparing the valid blocking identifier of the relay vehicle with the valid blocking identifier of the vehicle to be upgraded helps to verify the identity of the relay vehicle and ensures the legitimacy of the relay vehicle's identity.
[0079] If the relay vehicle and the vehicle to be upgraded have the same valid blocking identifier, it is determined that the relay vehicle and the vehicle to be upgraded belong to the same local area network.
[0080] In this embodiment, if the relay vehicle and the vehicle to be upgraded have the same valid blocking identifier, it indicates that the relay vehicle's identity is legitimate. If the relay vehicle's identity is legitimate, the relay vehicle and the vehicle to be upgraded form a local area network.
[0081] Based on the supply and demand relationship between the vehicle to be upgraded and the relay vehicle, and the degree of matching between the data receiving bandwidth of the vehicle to be upgraded and the data sending bandwidth of the relay vehicle, a connection channel is established between the vehicle to be upgraded and the relay vehicle.
[0082] In this embodiment, the establishment of the connection channel depends on the supply and demand relationship between the vehicle to be upgraded and the relay vehicle, as well as the degree of matching between the data receiving bandwidth and the data sending bandwidth. This not only avoids the transmission of redundant data between the vehicle to be upgraded and the relay vehicle, but also improves the transmission efficiency of information packets.
[0083] In one embodiment of this application, the selectable vehicles include operating vehicles and non-operating vehicles, and the process after obtaining the number of relay vehicles and before the selectable vehicles are activated includes:
[0084] Obtain information on non-operational vehicles destined for OTA congestion zones, the duration of their stay in OTA congestion zones, and the OTA software packages, storage space, and transmission rates available from these vehicles.
[0085] In this embodiment, the data of non-operating vehicles destined for an OTA congestion zone can be obtained through a GPS navigation search. The dwell time in the OTA congestion zone can be obtained from scenic area or hotel information searched in the same non-operating vehicle's GPS navigation. For example, the dwell time of the non-operating vehicle can be estimated based on the required sightseeing time for the scenic area or the check-in and check-out times for the hotel. The OTA software packages, storage space, and transmission rates available from the non-operating vehicle can be obtained through interaction between the non-operating vehicle and the cloud OTA server. For example, the cloud OTA server sends an inquiry request to the non-operating vehicle, the content of which includes the OTA software package version, remaining storage space, and transmission module available from the non-operating vehicle. The cloud OTA server determines the transmission rate based on the transmission module used by the non-operating vehicle.
[0086] Determine whether the dwell time, OTA package, storage space, and transmission rate meet the upgrade requirements of the vehicle to be upgraded.
[0087] In this embodiment, the dwell time, OTA software package version, storage space, and transmission rate of non-operational vehicles are compared with the scheduled upgrade time, specific OTA software package version, minimum storage space, and minimum transmission rate required for the vehicle to be upgraded. Through this screening process, non-operational vehicles that can replace cloud OTA servers as relay vehicles are identified.
[0088] If the dwell time, OTA package, storage space, and transmission rate meet the upgrade requirements, activate both operational and non-operational vehicles. The sum of operational and non-operational vehicles equals the number of relay vehicles.
[0089] In this embodiment, when non-operational vehicles meet the upgrade requirements of the vehicle to be upgraded, the number of operating vehicles is the difference between the number of relay vehicles and the number of non-operational vehicles. Therefore, the number of operating vehicles that the OEM needs to prepare will be reduced, thereby reducing the OEM's operating costs.
[0090] The activation process for non-operating vehicles includes: the cloud OTA server obtains the identity information of the non-operating vehicle through the historical information of a third-party certification authority or the non-operating vehicle as a relay vehicle. If the identity information of the non-operating vehicle is valid, the cloud OTA server sends an OTA relay certificate to the non-operating vehicle. Before the non-operating vehicle enters the OTA blocking zone, the cloud OTA server sends a valid OTA blocking identifier to the non-operating vehicle. The valid OTA blocking identifier and the OTA relay certificate identify the valid relay vehicle identity of the non-operating vehicle.
[0091] If the dwell time, OTA package, storage space, and transmission rate do not meet the upgrade requirements, activate the operating vehicle based on the number of relay vehicles.
[0092] In this embodiment, if the dwell time, OTA software package, storage space and transmission rate do not meet the upgrade requirements, the relay vehicles required for the OTA congestion zone are all composed of the OEM's operating vehicles.
[0093] In one embodiment of this application, estimating the number of relay vehicles required within a single OTA congestion zone based on vehicle parameters and time parameters includes:
[0094] Based on the vehicle parameters, calculate the number of remaining unupgraded vehicles in the OTA blocked zone.
[0095] In this embodiment, vehicle parameters are based on test values and historical records, which helps to improve the accuracy of estimating the number of remaining unupgraded vehicles.
[0096] Calculate the OTA blocking single-zone write efficiency based on the total time and test time.
[0097] In this embodiment, the write efficiency k i k i =T i / T, where i is a positive integer, the total time and test time are based on test values and historical records, which helps to improve the accuracy of the write efficiency estimation.
[0098] By combining the remaining number of unupgraded vehicles, flashing efficiency, optimal time, and scheduled time, the number of relay vehicles required in a single OTA-blocked zone can be obtained.
[0099] In this embodiment, the optimal time and the predetermined time are based on test values and historical records, which helps to improve the accuracy of estimating the required number of relay vehicles.
[0100] In one embodiment of this application, the number of remaining un-upgraded vehicles within an OTA-blocked single zone is calculated based on vehicle parameters, including:
[0101] The success rate of an OTA-blocked single zone is obtained by calculating the ratio of the number of vehicles that successfully completed the upgrade to the total number of vehicles that completed the upgrade.
[0102] In this embodiment, the efficiency p is successfully upgraded, and p = C. out_success / C out_total .
[0103] Calculate the difference between 1 and the successful upgrade efficiency to obtain the unsuccessful upgrade efficiency of a single OTA-blocked zone.
[0104] In this embodiment, the efficiency upgrade was unsuccessful, q = 1 - C. out_success / C out_total .
[0105] Calculate the difference between the total number of vehicles remaining and the total number of vehicles leaving to obtain the number of vehicles remaining in the OTA-blocked single area.
[0106] In this embodiment, the remaining number of vehicles C remain C remain =C block_total -C out_total .
[0107] The number of unupgraded vehicles remaining in the OTA-blocked zone is obtained by multiplying the efficiency of unsuccessful upgrades, the number of remaining vehicles, and preset empirical parameters.
[0108] In this embodiment, the empirical parameter g, g∈(0,1), and the remaining number of unupgraded vehicles C are... fail_total ,
[0109] C fail_total =q*g*C remain .
[0110] In one embodiment of this application, the number of relay vehicles required within an OTA-blocked single zone is obtained by combining the remaining number of unupgraded vehicles, flashing efficiency, optimal time, and predetermined time, including:
[0111] Calculate the product of the writing efficiency and the predetermined time to obtain the first product value.
[0112] In this embodiment, the first product value is P1, P1 = T input *k i .
[0113] Calculate the product of the optimal time and the number of remaining unupgraded vehicles to obtain the second product value.
[0114] In this embodiment, the second product value is P2, P2 = T X *C fail_total .
[0115] Calculate the ratio of the first product value to the second product value to obtain the number of relay vehicles required in a single OTA congestion zone.
[0116] In this embodiment, the required number of relay vehicles is Number, where Number = P1 / P2.
[0117] In one embodiment of this application, a connection channel between the vehicle to be upgraded and the relay vehicle is established based on the supply and demand relationship between the vehicle to be upgraded and the relay vehicle, as well as the degree of matching between the data receiving bandwidth of the vehicle to be upgraded and the data sending bandwidth of the relay vehicle. This includes:
[0118] Based on the OTA software packages required by the vehicle to be upgraded and the OTA software packages provided by the relay vehicle, a supply and demand relationship is established between the vehicle to be upgraded and the relay vehicle.
[0119] In this embodiment, the OTA software package can be a complete software package, a part of a software package, or a segmented OTA software module. Each OTA software module carries its own information, the ID of the previous OTA software module, the ID of the next OTA software module, and the total number of software modules. The IDs of the previous and next OTA software modules within each OTA software module are processed with special characters for easy identification. Each OTA software module can be combined into a complete OTA software package according to the order of its module IDs.
[0120] If the OTA package is a complete package, before establishing a supply and demand relationship, the vehicle to be upgraded determines the required OTA package version based on the existing OTA package version, and the relay vehicle determines the OTA package version that can be provided to the vehicle to be upgraded based on the storage situation in the storage space. The vehicle to be upgraded only establishes a connection with the relay vehicle that can provide the OTA package version, avoiding the generation of unnecessary connection channels and unnecessary interaction information between the vehicle to be upgraded and the relay vehicle.
[0121] If the OTA package is an OTA software module, before establishing a supply and demand relationship, the vehicle to be upgraded determines the missing OTA software module based on the existing OTA software modules, and the relay vehicle determines the OTA software module that can be provided to the vehicle to be upgraded based on the storage situation in the storage space. The vehicle to be upgraded only establishes a connection with the relay vehicle that can provide the OTA software module, avoiding the generation of unnecessary connection channels and unnecessary interactive information between the vehicle to be upgraded and the relay vehicle.
[0122] Based on supply and demand, the number of data receiving channels and data sending channels are adjusted to update the data receiving bandwidth and data sending bandwidth.
[0123] In this embodiment, since the OTA software package required by the vehicle to be upgraded and the OTA software package provided by the relay vehicle are changing in real time, the supply and demand relationship is also changing in real time. Therefore, the number of data receiving channels and the number of data sending channels also need to be adjusted in real time. Updating the corresponding data receiving bandwidth and data sending bandwidth according to the adjusted number of data receiving channels and data sending channels is beneficial to improving the transmission efficiency of the OTA software package.
[0124] Based on the difference between the data receiving bandwidth and the data sending bandwidth, a connection channel is established between the vehicle to be upgraded and the relay vehicle.
[0125] In this embodiment, establishing a connection channel based on the difference between the data receiving bandwidth and the data sending bandwidth can reduce the gap between the data receiving bandwidth and the data sending bandwidth, thereby improving the transmission efficiency of OTA software packages.
[0126] In one embodiment of this application, a supply and demand relationship is established between the vehicle to be upgraded and the relay vehicle based on the OTA software package required by the vehicle to be upgraded and the OTA software package provided by the relay vehicle, including:
[0127] The initial data receiving bandwidth of the vehicle to be upgraded is calculated based on the preset maximum receiving data bandwidth and the number of data receiving channels.
[0128] In this embodiment, the initial data receiving bandwidth is the ratio of the preset maximum receiving data bandwidth to the preset number of data receiving channels.
[0129] The initial data transmission bandwidth of the relay vehicle is calculated based on the preset maximum data transmission bandwidth and the number of data transmission channels.
[0130] In this embodiment, the initial data transmission bandwidth is the ratio of the preset maximum data transmission bandwidth to the preset number of data transmission channels.
[0131] The vehicles to be upgraded are connected to the relay vehicles one by one using the initial data receiving bandwidth and the initial data sending bandwidth.
[0132] In this embodiment, all vehicles to be upgraded establish a connection with the relay vehicle using the initial data receiving bandwidth, with the aim of obtaining the software modules and data transmission bandwidth provided by the relay vehicle.
[0133] Through information exchange, the vehicle to be upgraded obtains a relay vehicle that can provide the required OTA software package, while the relay vehicle obtains the vehicle to be upgraded that needs to receive the OTA software package.
[0134] In this embodiment, the vehicle to be upgraded identifies the missing OTA software packages and sends request data to the relay vehicles connected to it. The request data includes the relay vehicle's data transmission bandwidth, the currently available OTA software packages, and the total number of software packages. Upon receiving the request data, the relay vehicle sends feedback information to the vehicle to be upgraded. Based on the received feedback information, the vehicle to be upgraded sequentially determines which relay vehicles can obtain each missing OTA software package, and at the same time, the relay vehicles identify the vehicles to be upgraded that need to receive the OTA software packages.
[0135] Based on the required OTA software package, a supply and demand relationship is established between the vehicle to be upgraded and the relay vehicle.
[0136] In this embodiment, a supply and demand relationship is established between the relay vehicle that can provide the OTA package and the vehicle to be upgraded that needs the OTA package.
[0137] In one embodiment of this application, the number of data receiving channels and the number of data sending channels are adjusted according to supply and demand to update the data receiving bandwidth and data sending bandwidth, including:
[0138] The number of data receiving channels is adjusted based on the number of OTA packages that the vehicle to be upgraded needs to receive.
[0139] In this embodiment, the adjusted number of data receiving channels is the number of OTA software packages that the vehicle to be upgraded needs to receive.
[0140] The number of data transmission channels is adjusted based on the number of OTA packages that the relay vehicle needs to send.
[0141] In this embodiment, the adjusted number of data transmission channels is the number of OTA software packages that the relay vehicle needs to send.
[0142] Update the data receiving bandwidth based on the maximum receiving data bandwidth and the adjusted number of data receiving channels.
[0143] In this embodiment, the updated data receiving bandwidth is the ratio of the maximum receiving data bandwidth to the adjusted number of data receiving channels.
[0144] Update the data transmission bandwidth based on the maximum data transmission bandwidth and the adjusted number of data transmission channels.
[0145] In this embodiment, the updated data transmission bandwidth is the ratio of the maximum data transmission bandwidth to the adjusted number of data transmission channels.
[0146] In one embodiment of this application, a connection channel is established between the vehicle to be upgraded and the relay vehicle based on the difference between the data receiving bandwidth and the data sending bandwidth, including:
[0147] Calculate the difference between the data receiving bandwidth of the vehicle to be upgraded and the data sending bandwidth of the corresponding relay vehicle.
[0148] In this embodiment, after the vehicle to be upgraded obtains the data transmission bandwidth of the corresponding relay vehicle, the difference between the data reception bandwidth of the vehicle to be upgraded and the data transmission bandwidth of the relay vehicle is calculated.
[0149] In another embodiment of this application, after the vehicle to be upgraded obtains the data transmission bandwidth of the corresponding relay vehicle, the ratio between the data reception bandwidth of the vehicle to be upgraded and the data transmission bandwidth of the relay vehicle is calculated respectively.
[0150] Take the absolute value of the difference.
[0151] In this embodiment, the difference between the data receiving bandwidth and the data sending bandwidth is measured by the magnitude of the absolute value of the difference.
[0152] In another embodiment of this application, after calculating the ratio between the data receiving bandwidth and the data sending bandwidth, the difference between 1 and the ratio is calculated, and then the absolute value of the difference is taken.
[0153] The absolute value is compared with a preset absolute value threshold.
[0154] In this embodiment, the preset absolute value threshold can be set according to actual conditions or experience. There are two types of preset absolute value thresholds: one is set for the difference, and the other is set for the ratio.
[0155] If the absolute value is less than the preset absolute value threshold, it is determined that the matching degree between the data receiving bandwidth and the data sending bandwidth meets the requirements.
[0156] In this embodiment, the number of absolute values that meet the matching requirements may be 0, 1, or more.
[0157] Establish a connection between the vehicle to be upgraded and the relay vehicle.
[0158] In this embodiment, when there are multiple absolute values of matching degree that meet the requirements, the vehicle to be upgraded selects the vehicle to be upgraded and the relay vehicle corresponding to the smallest absolute value to establish a connection channel. When there is only one absolute value of matching degree that meets the requirements, the vehicle to be upgraded selects the unique corresponding relay vehicle to establish a connection channel. When there are zero absolute values of matching degree that meet the requirements, the connection request of the vehicle to be upgraded enters the queuing queue, waiting for bandwidth resources to be released before re-selecting a relay vehicle to establish a connection based on supply and demand. Through the above connection channel establishment process, the data transmission rate between the vehicle to be upgraded and the relay vehicle is guaranteed.
[0159] In one embodiment of this application, the number of data receiving channels is adjusted according to the number of OTA software packages that the vehicle to be upgraded needs to receive, including:
[0160] If the number of OTA packages is greater than or equal to the preset number of data receiving channels, the number of data receiving channels and the data receiving bandwidth remain unchanged, and OTA packages with a greater number of data receiving channels enter the queuing sequence.
[0161] In this embodiment, in order to ensure the transmission rate of the current connection channel, OTA software packages with a number greater than the preset number of data receiving channels enter the queuing sequence. After the bandwidth resources are released, the corresponding data sending bandwidth and data receiving bandwidth are updated according to the adjusted number of data sending channels and data receiving channels, and the connection channel is established according to the updated data sending bandwidth and data receiving bandwidth.
[0162] If the number of OTA packages is less than the preset number of data receiving channels, the number of data receiving channels will be adjusted to match the number of OTA packages.
[0163] In this embodiment, when the number of OTA software packages is less than the preset number of data receiving channels (where the number of data receiving channels is equal to the number of OTA software packages), and the data receiving bandwidth is the ratio of the maximum receiving data bandwidth to the number of OTA software packages, the data receiving bandwidth is dynamically adjusted based on the dynamic changes in the number of data receiving channels, thereby improving the data transmission rate.
[0164] In one embodiment of this application, the number of data transmission channels is adjusted according to the number of OTA software packages that the relay vehicle needs to send, including:
[0165] If the number of OTA packages is greater than or equal to the preset number of data transmission channels, the number of data transmission channels and data transmission remain unchanged, and OTA packages with more than the preset number of data transmission channels enter the queuing sequence.
[0166] In this embodiment, in order to ensure the transmission rate of the current connection channel, OTA software packages with a number greater than the preset number of data transmission channels enter the queuing sequence. After the bandwidth resources are released, the corresponding data transmission bandwidth and data reception bandwidth are updated according to the adjusted number of data transmission channels and the number of data reception channels, and the connection channel is established according to the updated data transmission bandwidth and data reception bandwidth.
[0167] If the number of OTA packages is less than the preset number of data transmission channels, the number of data transmission channels will be adjusted to match the number of OTA packages.
[0168] In this embodiment, when the number of OTA software packages is less than the preset number of data transmission channels (where the number of data transmission channels is equal to the number of OTA software packages), and the data transmission bandwidth is the ratio of the maximum data transmission bandwidth to the number of OTA software packages, the data transmission bandwidth is dynamically adjusted based on the dynamic changes in the number of data transmission channels, thereby improving the data transmission rate.
[0169] In one embodiment of this application, according to the connection channel, a corresponding information packet is sent, including:
[0170] If the transmission rate of the connection channel is lower than the preset rate threshold, or the transmission duration of the connection channel exceeds the preset time threshold, or the bandwidth of the connection channel is less than the preset bandwidth threshold, the connection channel is disconnected. Based on the supply and demand relationship between the vehicle to be upgraded and the relay vehicle, as well as the matching degree between the data receiving bandwidth of the vehicle to be upgraded and the data sending bandwidth of the relay vehicle, a connection channel between the vehicle to be upgraded and the relay vehicle is established, and the corresponding information packets are resent.
[0171] In this embodiment, the preset rate threshold, preset time threshold, and preset bandwidth threshold can all be set based on test values. When the transmission rate of the connection channel is lower than the preset rate threshold, the transmission duration of the connection channel exceeds the preset time threshold, or the bandwidth of the connection channel is less than the preset bandwidth threshold, the connection channel is disconnected. The purpose is to periodically clean up slow-transmission connections, release broadband resources, and prevent broadband resources from being ineffectively occupied.
[0172] If the data packet has been sent, disconnect the channel.
[0173] In this embodiment, during or after the transmission of information packets, both the vehicle to be upgraded and the relay vehicle need to periodically refresh the bandwidth to update the usage of bandwidth resources in a timely manner and establish a connection channel according to the new bandwidth resources.
[0174] In one embodiment of this application, updating the status of the valid blocking identifier to invalidate the relay vehicle's relay identity includes:
[0175] Upload the interaction information between the relay vehicle and the vehicle to be upgraded.
[0176] In this embodiment, the interaction information includes the log information of the OTA relay server. The log information includes the handshake history record between the relay vehicle and the vehicle to be upgraded (e.g., the connection time or disconnection time between the relay vehicle and the vehicle to be upgraded), the connection status (e.g., the transmission rate or reception rate between the relay vehicle and the vehicle to be upgraded), the OTA software package version, and the identifier of the vehicle to be upgraded that has successfully downloaded the OTA software package (e.g., the VIN code and blocking identifier of the vehicle to be upgraded).
[0177] Update the status of the valid blocking identifier to invalidate the relay vehicle's relay identity.
[0178] In this embodiment, after the status of the valid blocking identifier is updated to invalid, the OTA relay certificate is associated with the VIN code, and the OTA relay certificate becomes invalid, thereby invalidating the relay vehicle's relay identity.
[0179] In one embodiment of this application, according to the connection channel, a corresponding information packet is sent, including:
[0180] Based on a preset asymmetric encryption algorithm, information is exchanged between the operating vehicle and the vehicle to be upgraded, and the private key and encryption method are agreed upon during the transmission of information packets.
[0181] In this embodiment, the operating vehicle sends a request message to the vehicle to be upgraded, the request message including the private key and encryption method during the transmission of the information packet; after obtaining the private key and encryption method during the transmission of the information packet, the vehicle to be upgraded sends a confirmation message to the operating vehicle; after receiving the confirmation message from the vehicle to be upgraded, the operating vehicle sends a feedback message to the vehicle to be upgraded again to confirm the private key and encryption method during the transmission of the information packet.
[0182] Before sending a request, the operating vehicle encrypts it using an asymmetric encryption algorithm. Upon receiving the request, the vehicle to be upgraded first decrypts it to obtain the request information, then encrypts the confirmation information using the same asymmetric encryption algorithm. After receiving the confirmation information, the operating vehicle first decrypts it to obtain the confirmation information, then encrypts the feedback information using the same asymmetric encryption algorithm. The vehicle to be upgraded then decrypts the feedback information upon receiving it. The asymmetric encryption algorithm ensures the security of information exchange between the operating vehicle and the vehicle to be upgraded.
[0183] The asymmetric encryption algorithms used for both operational and upgrade-prospective vehicles are pre-ordered with the cloud-based OTA server before they enter the OTA blocking zone. These asymmetric encryption algorithms include, but are not limited to, RSA, Elgamal, Knapsack, Rabin, DH, and elliptic curve cryptography.
[0184] The OTA software package and authentication key are encrypted using the agreed private key and encryption method to obtain the encrypted information packet.
[0185] In this embodiment, the encryption method is a symmetric encryption algorithm, which includes, but is not limited to, DES encryption algorithm, 3DES encryption algorithm, TDEA encryption algorithm, Blowfish encryption algorithm, RC2 encryption algorithm, RC4 encryption algorithm, RC5 encryption algorithm, IDEA encryption algorithm and SKIPJACK encryption algorithm.
[0186] The information packet is decrypted using the appropriate decryption method and private key to obtain the OTA software package and authentication key.
[0187] In this embodiment, the corresponding decryption method is the reverse process of symmetric encryption. By encrypting the OTA software package and authentication key, the security of the OTA software package and authentication key during transmission is ensured.
[0188] After the OTA software package is securely authenticated using the authentication key, the OTA software package is upgraded.
[0189] In this embodiment, the OTA software package itself is obtained through symmetric or asymmetric encryption algorithms. Before upgrading, it needs to be authenticated with an authentication key to obtain the upgrade information of the OTA software package.
[0190] After the OTA package and authentication key are successfully transmitted, disconnect the connection channel.
[0191] In this embodiment, disconnecting the connection channel promptly after the OTA software package transmission is completed helps to release bandwidth resources and avoids the invalidation of bandwidth resources.
[0192] In one embodiment of this application, according to the connection channel, a corresponding information packet is sent, including:
[0193] Information is exchanged between non-operational vehicles and vehicles to be upgraded based on a preset asymmetric encryption algorithm, and the private key and encryption method are agreed upon during the transmission of information packets.
[0194] In this embodiment, a non-operating vehicle sends a request message to the vehicle to be upgraded. The request message includes the private key and encryption method used in the data packet transmission process. After obtaining the private key and encryption method used in the data packet transmission process, the vehicle to be upgraded sends a confirmation message to the operating vehicle. After receiving the confirmation message from the vehicle to be upgraded, the non-operating vehicle sends a feedback message to the vehicle to be upgraded again to confirm the private key and encryption method used in the data packet transmission process.
[0195] Before sending a request, non-operational vehicles must encrypt it using an asymmetric encryption algorithm. Upon receiving the request, the vehicle to be upgraded first decrypts it to obtain the request information, then encrypts the confirmation information using the same asymmetric encryption algorithm. After receiving the confirmation information, the non-operational vehicle first decrypts it to obtain the confirmation information, then encrypts the feedback information using the same asymmetric encryption algorithm. Finally, upon receiving the feedback information, the non-operational vehicle decrypts it again to obtain the feedback information. The asymmetric encryption algorithm ensures the security of information exchange between the non-operational vehicles and the vehicle to be upgraded.
[0196] The asymmetric encryption algorithms used for non-operational vehicles and vehicles awaiting upgrades are pre-ordered with the cloud OTA server before these vehicles enter the OTA blocking zone. Asymmetric encryption algorithms include, but are not limited to, RSA, Elgamal, Knapsack, Rabin, DH, and elliptic curve cryptography.
[0197] The OTA software package is encrypted using the agreed private key and encryption method to obtain the encrypted information packet.
[0198] In this embodiment, the encryption method is a symmetric encryption algorithm, which includes, but is not limited to, DES encryption algorithm, 3DES encryption algorithm, TDEA encryption algorithm, Blowfish encryption algorithm, RC2 encryption algorithm, RC4 encryption algorithm, RC5 encryption algorithm, IDEA encryption algorithm and SKIPJACK encryption algorithm.
[0199] The information packet is decrypted using the appropriate decryption method and private key to obtain the OTA software package.
[0200] In this embodiment, the corresponding decryption method is the reverse process of symmetric encryption. By encrypting the OTA software package, the security of the OTA software package during transmission is ensured.
[0201] After the OTA package is successfully transmitted, disconnect the connection channel.
[0202] In this embodiment, disconnecting the connection channel promptly after the OTA software package transmission is completed helps to release bandwidth resources and avoids the invalidation of bandwidth resources.
[0203] The vehicle to be upgraded cannot obtain an authentication key simply by downloading the OTA package from a non-commercial vehicle. Only after leaving the OTA congestion zone does it request the authentication key from the cloud OTA server. The cloud OTA server sends the corresponding authentication key based on the VIN code and OTA package version contained in the log information previously uploaded by the non-commercial vehicle. The vehicle to be upgraded then uses the authentication key to perform security authentication on the received OTA package. Only after successful authentication can the package be installed.
[0204] In one embodiment of this application, before obtaining the detection data of an OTA-blocked single area within a preset time period, the following steps are included:
[0205] Divide OTA into geographical regions.
[0206] In this embodiment, the OTA geographical zone is a defined square area. Figure 3 This is a schematic diagram illustrating a single geographic region of an OTA, as shown in an exemplary embodiment of this application. Figure 3 As shown, a single geographical zone is divided into square areas with sides of 100 meters. The area of a single geographical zone can be adjusted according to different division locations.
[0207] Collect the average traffic of a single geographic region for OTA within a preset time period.
[0208] In this embodiment, the preset time period can be a week or a month, etc., and the average traffic of an OTA geographical zone is the ratio of the total traffic of the cloud OTA server interacting with vehicles in the OTA geographical zone to the preset time period.
[0209] The average traffic of a single OTA geographic region is compared with a preset traffic threshold.
[0210] In this embodiment, the preset traffic threshold is an empirical value, which is usually set to 200kb / s.
[0211] If the average traffic is less than the preset traffic threshold, the OTA geographical area is determined to be an OTA traffic cold zone.
[0212] In this embodiment, after an OTA geographical zone is determined to be an OTA traffic cold zone, the OTA geographical zone obtains the OTA traffic cold zone identifier.
[0213] Detect the average parking time per vehicle and the average number of vehicles parked in the OTA traffic cold zone.
[0214] In this embodiment, the average number of parking spaces is the ratio of the total number of parking spaces to the preset time period. The parking locations of vehicles can be obtained based on GPS location data from a big data platform. The total number of parking spaces can be obtained by counting the number of vehicles whose parking locations are within the OTA geographic single zone within the preset time period. The average parking time per vehicle is the ratio of the total parking time of all vehicles to the total number of parking spaces. The parking time of each vehicle within the OTA geographic single zone is the time interval between the vehicle leaving the OTA geographic single zone and the vehicle entering the OTA geographic single zone.
[0215] If the average parking time per vehicle exceeds a preset time threshold or the average number of parked vehicles exceeds a preset number of parked vehicles threshold, the OTA traffic cold zone is determined to be an OTA congestion zone.
[0216] In this embodiment, the preset duration threshold is an empirical value, which is usually 12 hours; the preset parking quantity threshold is an empirical value, which is usually 100 vehicles. Figure 4 A schematic diagram illustrating an OTA blocking single zone is shown as an exemplary embodiment of this application, such as... Figure 4 As shown, relay vehicles about to enter the OTA blocking zone include both operational and non-operational vehicles. Before entering the OTA blocking zone, vehicles awaiting upgrades obtain a valid blocking identifier for that zone from the cloud OTA server. The number of vehicles leaving the OTA blocking zone includes both vehicles that have not completed the OTA upgrade and those that have. Vehicles that have not completed the OTA upgrade refer to those whose OTA software package download is incomplete. Vehicles that have completed the OTA upgrade refer to those whose OTA software package download is complete.
[0217] Assign a valid blocking identifier to the OTA blocking zone.
[0218] In this embodiment, the status of the blocking identifier is divided into valid and invalid. When the blocking identifier of the relay vehicle is valid, the relay vehicle can act as an OTA relay server to provide OTA software packages to the vehicle to be upgraded, replacing the cloud OTA server. When the blocking identifier of the relay vehicle is invalid, the relay vehicle's relay identity is invalidated, and it cannot act as an OTA relay server to provide OTA software packages to the vehicle to be upgraded.
[0219] Figure 5 This is a flowchart illustrating an exemplary embodiment of the OTA relay preparation process, as shown in the example below. Figure 5As shown, the cloud-based OTA server calculates the average traffic of a single OTA geographical area. If the average traffic of a single OTA geographical area is lower than a preset traffic threshold, the single OTA geographical area is determined to be an OTA traffic cold zone. If the average parking time of a single vehicle exceeds a preset time threshold or the average number of parked vehicles exceeds a preset number of parked vehicles threshold, the OTA traffic cold zone is determined to be an OTA congestion zone, and the cloud-based OTA server defines the OTA congestion zone.
[0220] In this embodiment, the relay vehicle needs to have sufficient storage space and transmission capacity, have completed a specific version of OTA (Over-The-Air) updates, and retain the corresponding OTA software version in its storage space. It can be a private, non-commercial vehicle whose navigation destination is a single OTA-blocked zone, or a commercial vehicle designated by the OEM's service team for offline mass flashing. Relay vehicles meeting the criteria are found by screening potential relay vehicles.
[0221] In this embodiment, the number of relay vehicles required for the blocked single zone is estimated based on the time parameters and vehicle parameters of the OTA blocking single zone. The estimation process is as described in step S220, and will not be repeated here.
[0222] In this embodiment, a formal relay vehicle is selected from the relay vehicles that meet the conditions, and an OTA relay certificate is issued.
[0223] The process of selecting official relay vehicles from qualified relay vehicles can be designated by OEM staff. The designated relay vehicle actively initiates an activation request to the cloud OTA server. The activation request includes the designated relay vehicle's identity authentication information and VIN code. After receiving the designated relay vehicle's request and confirming the relay vehicle's authentication information, the cloud OTA server sends an OTA relay certificate to the designated relay vehicle. The designated relay vehicle can then replace the cloud OTA server to provide OTA software package download services for the vehicles to be upgraded.
[0224] Alternatively, a cloud-based OTA server can be used to screen eligible relay vehicles. The cloud-based OTA server then directly sends activation requests to eligible relay vehicles. After receiving the activation request, the eligible relay vehicle sends its identity authentication information and VIN code to the cloud-based OTA server. After receiving the request from the relay vehicle and confirming its identity information, the cloud-based OTA server sends an OTA relay certificate to the authenticated relay vehicle. The authenticated relay vehicle can then replace the cloud-based OTA server to provide OTA software package download services for the vehicles to be upgraded.
[0225] The principles by which OEM staff designate relay vehicles and the principles by which the cloud-based OTA server selects relay vehicles are both based on calculating the difference between the idle time of a potential relay vehicle and an empirical value for a predetermined time. If the difference is within a predetermined range, the vehicle is selected as a relay vehicle. The cloud-based OTA server pre-stores the idle time of potential relay vehicles.
[0226] After the relay vehicle is activated, it can interact with the vehicle to be upgraded to perform the OTA software package download process.
[0227] Figure 6 This is a flowchart illustrating an exemplary embodiment of the OTA relay flashing process. For example... Figure 6 As shown, after the relay vehicle enters the OTA congestion zone, it connects with the vehicle to be upgraded via Wi-Fi, Bluetooth, or Zigbee to form a local area network.
[0228] In this embodiment, the process of the relay vehicle distributing the software package to the vehicle to be upgraded is as described in step S250, and will not be repeated here.
[0229] In this embodiment, after the OTA package is distributed to the vehicle to be upgraded, it is determined whether the relay vehicle is an operational vehicle. If the relay vehicle is an operational vehicle, the vehicle to be upgraded can directly obtain the authentication key for authenticating the OTA package from the operational vehicle, authenticate the OTA package, and then decompress and install the OTA package. If the relay vehicle is a non-operational vehicle, the vehicle to be upgraded can only obtain the OTA package from the non-operational vehicle. After the vehicle to be upgraded leaves the OTA blocking zone, it needs to connect to the cloud OTA server to obtain the authentication key corresponding to the version of the OTA package successfully downloaded by the vehicle to be upgraded. The cloud OTA server sends the corresponding authentication key to the vehicle to be upgraded based on the feedback log information (including the VIN code and package version number of the successfully downloaded OTA package) from the non-operational vehicle that left the OTA blocking zone. After authenticating the OTA package with the authentication key, the OTA package is decompressed and installed.
[0230] Before sending the authentication key to the vehicle to be upgraded, the cloud OTA server compares the VIN code in the log information with the VIN code of the vehicle to be upgraded. If the comparison is successful, the cloud OTA server sends the authentication key corresponding to the OTA software package version number to the vehicle to be upgraded.
[0231] This invention estimates the number of relay vehicles required within an OTA congestion zone based on vehicle and time parameters, thus meeting the upgrade needs of vehicles within the congestion zone and ensuring upgrade efficiency and effectiveness. By activating relay vehicles and assigning valid congestion identifiers, the identity of relay vehicles can be effectively verified, ensuring the security of the upgrade process via relay vehicles.
[0232] The following describes an embodiment of the apparatus described in this application, which can be used to execute the vehicle OTA upgrade method described in the above embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the vehicle OTA upgrade method described above.
[0233] Figure 7 This is a block diagram illustrating a vehicle OTA upgrade device according to an exemplary embodiment of this application. The device can be applied to… Figure 1 The implementation environment is shown, and the device is configured accordingly in the cloud OTA server 102, the relay vehicle 103, and the vehicle to be upgraded 104. This device can also be applied to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applicable.
[0234] like Figure 7 As shown, the exemplary vehicle OTA upgrade device includes: an acquisition module 701, a relay vehicle number estimation module 702, a relay vehicle activation module 703, a connection channel establishment module 704, an information packet sending module 705, and a blockage status update module 706.
[0235] The acquisition module 701 is used to acquire detection data of OTA blocking single area within a preset time period. The detection data includes vehicle parameters and time parameters. The vehicle parameters include the total number of stationary vehicles, the total number of vehicles that have left, and the number of vehicles that have successfully completed the upgrade. The time parameters include the total time of information interaction between the vehicles that left and the historical relay vehicles, the test time of the historical relay vehicles for flashing the vehicle to be upgraded, the optimal time of the historical relay vehicles for flashing the vehicle to be upgraded, and the scheduled time of the historical relay vehicles for flashing the vehicle to be upgraded.
[0236] The relay vehicle number estimation module 702 is used to estimate the number of relay vehicles required in a single OTA congestion zone based on vehicle parameters and time parameters.
[0237] The relay vehicle activation module 703 is used to activate selectable vehicles according to the number of relay vehicles, so that the selectable vehicles can obtain relay identity and a valid blocking identifier for the OTA blocking single zone. The relay identity is associated with the blocking identifier, and the selectable vehicle that obtains the relay identity becomes a relay vehicle.
[0238] The connection channel establishment module 704 is used to establish a connection channel between a relay vehicle and a vehicle to be upgraded that have the same valid blockage identifier.
[0239] The packet sending module 705 is used to send corresponding packets according to the connection channel.
[0240] The blocking identifier status update module 706 is used to update the status of valid blocking identifiers so that the relay vehicle's relay identity becomes invalid.
[0241] In one embodiment of this application, the detection data includes vehicle parameters and time parameters. The vehicle parameters include the total number of stationary vehicles, the total number of vehicles that have left, and the number of vehicles that have successfully left for upgrade. The time parameters include the total time for the vehicles that left to interact with the information of historical relay vehicles, the test time for historical relay vehicles to flash the vehicle to be upgraded, the optimal time for historical relay vehicles to flash the vehicle to be upgraded, and the predetermined time for historical relay vehicles to flash the vehicle to be upgraded.
[0242] Total number of parked vehicles C block_total This refers to the total number of vehicles remaining in a specific OTA congestion zone within a preset time period. This total number can be obtained by checking the GPS location data of the vehicles in the big data platform within the preset time period to see if they are located within that OTA congestion zone. Total number of vehicles leaving (C) out_total The total number of vehicles that have successfully exited the OTA congestion zone can be determined by analyzing changes in vehicle GPS location data within a preset time period on a big data platform. For example, at least two time points within the preset time period are selected, with the time interval determined empirically. At the previous time point, the vehicle's GPS location data is within the OTA congestion zone, while at the next time point, it is outside the zone. This is used to determine if a vehicle has exited the OTA congestion zone. The number of vehicles that have successfully exited the upgrade zone is C. out_success The number of successfully upgraded vehicles that have left the OTA congestion zone is determined by whether the required OTA software package is complete within the vehicle. The total time for the vehicles leaving the congestion zone to exchange information with historical relay vehicles is T, where... n = {1, 2, ..., N}, N = C out_total , Δt n The interaction time between the nth vehicle exiting the OTA congestion zone and the historical relay vehicle can be determined by the start and end times of the interaction between the vehicle and the historical relay vehicle. The test time T for the historical relay vehicle to flash the vehicle to be upgraded. i This refers to the time required for a historical relay vehicle to simultaneously flash i vehicles to be upgraded. This time can be obtained through actual testing or by looking up a table. The optimal time T for a historical relay vehicle to flash the vehicles to be upgraded is... XThe optimal time for historical relay vehicles to simultaneously flash X vehicles awaiting upgrades is determined by the OEM's communication capabilities. The scheduled time T for historical relay vehicles to flash the vehicles awaiting upgrades is also specified. input The recommended time for completing the flashing of the vehicle to be upgraded can be determined by experience values obtained from actual testing. In order to improve the upgrade effect of the vehicle to be upgraded, a vehicle with an idle time close to the experience value obtained from actual testing should be selected as a relay vehicle.
[0243] In this embodiment, after obtaining the required number of relay vehicles, the relay vehicles are activated according to the number of relay vehicles. This not only ensures the upgrade effect of the vehicles to be upgraded, but also saves the operating costs of the OEM.
[0244] In this embodiment, when the difference between the idle time of an available vehicle and an empirical value of a predetermined time is within a predetermined range (the predetermined range can be set according to actual conditions), the vehicle is selected as a relay vehicle. The process of selecting a relay vehicle from the available vehicles can be designated by OEM staff. The designated relay vehicle actively initiates an activation request to the cloud OTA server. The activation request includes the relay vehicle's identity authentication information and VIN code. After receiving the relay vehicle's request and confirming its authentication information, the cloud OTA server sends an OTA relay certificate to the relay vehicle. The relay vehicle can then provide OTA software package download services for the vehicle to be upgraded, replacing the cloud OTA server. Alternatively, the cloud OTA server can filter the available vehicles. The cloud OTA server directly sends activation requests to the selected relay vehicles. After receiving the activation request from the cloud OTA server, the selected relay vehicles send their identity authentication information and VIN code to the cloud OTA server. After receiving the relay vehicle's request and confirming its authentication information, the cloud OTA server sends an OTA relay certificate to the relay vehicle. The relay vehicle can then provide OTA software package download services for the vehicle to be upgraded, replacing the cloud OTA server.
[0245] The principles by which OEM staff designate relay vehicles and the principles by which the cloud-based OTA server selects relay vehicles are both based on calculating the difference between the available vehicle's idle time and an empirical value for a predetermined time. If the difference is within a predetermined range, the vehicle is selected as a relay vehicle. The cloud-based OTA server pre-stores the idle time of available vehicles.
[0246] In this embodiment, after determining that an OTA geographical zone is an OTA congestion zone, the cloud-based OTA server assigns a valid OTA congestion identifier to the congestion zone. Before the vehicle to be upgraded, whose navigation destination is an OTA congestion zone, enters the congestion zone, its valid OTA congestion identifier is obtained from the cloud-based OTA server. Just before the relay vehicle enters the congestion zone, its valid OTA congestion identifier is obtained from the cloud-based OTA server. By activating the relay vehicle and associating its OTA relay certificate with the valid congestion identifier, the relay vehicle's identity can be effectively verified, ensuring the security of the upgrade process for the vehicle to be upgraded via the relay vehicle.
[0247] In this embodiment, the establishment of the connection channel facilitates the on-demand transmission of information packets between the vehicle to be upgraded and the relay vehicle, which helps to improve the efficiency of information packet transmission and avoids data redundancy that increases the transmission load of the local area network.
[0248] In this embodiment, when the relay vehicle's working time reaches the time limit, the relay vehicle leaves the OTA blocking zone, and its valid blocking identifier becomes invalid, thus invalidating the relay vehicle's identity. This prevents relay vehicles that have lost their relay identity from impersonating others after leaving the OTA blocking zone, ensuring the legitimacy of the relay vehicle's identity.
[0249] It should be noted that the vehicle OTA upgrade device and the vehicle OTA upgrade method provided in the above embodiments belong to the same concept. The specific operation methods of each module and unit have been described in detail in the method embodiments and will not be repeated here. In practical applications, the vehicle OTA upgrade device provided in the above embodiments can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. This is not a limitation here.
[0250] According to one aspect of the embodiments of this application, it includes: one or more processors; and a storage device for storing one or more programs, which, when executed by one or more processors, cause the electronic device to implement the vehicle OTA upgrade method provided in the above embodiments.
[0251] Figure 8 A schematic diagram of a computer system suitable for implementing the embodiments of this application is shown. It should be noted that... Figure 8 The computer system 800 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0252] like Figure 8As shown, the computer system 800 includes a Central Processing Unit (CPU) 801, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, based on a program stored in Read-Only Memory (ROM) 802 or a program loaded from storage portion 808 into Random Access Memory (RAM) 803. The RAM 803 also stores various programs and data required for system operation. The CPU 801, ROM 802, and RAM 803 are interconnected via a bus 804. An Input / Output (I / O) interface 805 is also connected to the bus 804.
[0253] The following components are connected to I / O interface 805: an input section 806 including a keyboard, mouse, etc.; an output section 807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to I / O interface 805 as needed. A removable medium 811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 810 as needed so that computer programs read from it can be installed into storage section 808 as needed.
[0254] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 809, and / or installed from removable medium 811. When the computer program is executed by central processing unit (CPU) 801, it performs various functions defined in the system of this application.
[0255] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0256] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0257] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0258] Another aspect of this application provides a computer-readable storage medium storing computer-readable instructions that, when executed by a computer's processor, cause the computer to perform the vehicle OTA upgrade method provided in the various embodiments described above. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not incorporated into the electronic device.
[0259] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0260] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.
[0261] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0262] It should be understood that the above content is only a preferred exemplary embodiment of this application and is not intended to limit the implementation of this application. Those skilled in the art can easily make corresponding modifications or alterations based on the main concept and spirit of this application. Therefore, the scope of protection of this application should be determined by the scope of protection claimed in the claims.
Claims
1. A method for OTA (Over-The-Air) upgrade of a vehicle, characterized in that, include: Obtain detection data of OTA blocking single zone within a preset time period. The detection data includes vehicle parameters and time parameters. The vehicle parameters include the total number of stationary vehicles, the total number of vehicles that have left, and the number of vehicles that have successfully completed the upgrade. The time parameters include the total time of information interaction between the vehicles that left and the historical relay vehicles, the test time of the historical relay vehicles for flashing the vehicle to be upgraded, the optimal time of the historical relay vehicles for flashing the vehicle to be upgraded, and the scheduled time of the historical relay vehicles for flashing the vehicle to be upgraded. Based on the vehicle parameters and time parameters, estimate the number of relay vehicles required within the OTA congestion zone; Activate selectable vehicles based on the number of relay vehicles, so that the selectable vehicles obtain relay identity and a valid blocking identifier of the OTA blocking zone. The relay identity is associated with the blocking identifier, and the selectable vehicles that obtain relay identity are used as relay vehicles. Establish a connection channel between the relay vehicle and the vehicle to be upgraded, both of which share the same valid blockage identifier; According to the connection channel, send the corresponding information packet; The status of the valid blocking identifier is updated to invalidate the relay vehicle's relay identity.
2. The vehicle OTA upgrade method according to claim 1, characterized in that, Establishing a connection channel between the relay vehicle and the vehicle to be upgraded, both having the same valid blockage identifier, includes: The effective blockage identifier of the relay vehicle and the effective blockage identifier of the vehicle to be upgraded are compared; If the relay vehicle and the vehicle to be upgraded have the same valid blocking identifier, it is determined that the relay vehicle and the vehicle to be upgraded belong to the same local area network. Based on the supply and demand relationship between the vehicle to be upgraded and the relay vehicle, and the degree of matching between the data receiving bandwidth of the vehicle to be upgraded and the data sending bandwidth of the relay vehicle, a connection channel is established between the vehicle to be upgraded and the relay vehicle.
3. The vehicle OTA upgrade method according to claim 1, characterized in that, The selectable vehicles include both operational and non-operational vehicles, and the process after obtaining the number of relay vehicles and before the selectable vehicles are activated includes: Obtain information on non-operational vehicles whose destination is the OTA congestion zone, the duration of the non-operational vehicles' stay in the OTA congestion zone, and the OTA software packages, storage space, and transmission rates that the non-operational vehicles can provide. Determine whether the dwell time, the OTA package, the storage space, and the transmission rate meet the upgrade requirements of the vehicle to be upgraded; If the dwell time, the OTA package, the storage space, and the transmission rate meet the upgrade requirements, the operating vehicles and the non-operating vehicles are activated, and the sum of the operating vehicles and the non-operating vehicles is equal to the number of relay vehicles; If the dwell time, the OTA package, storage space, and transmission rate do not meet the upgrade requirements, the operating vehicle is activated based on the number of relay vehicles.
4. The vehicle OTA upgrade method according to claim 1, characterized in that, Based on the vehicle parameters and time parameters, estimate the number of relay vehicles required within the OTA congestion zone, including: Based on the vehicle parameters, calculate the number of remaining unupgraded vehicles in the OTA blocked zone; Calculate the OTA blocking single-zone write efficiency based on the total time and test time; By combining the remaining number of unupgraded vehicles, flashing efficiency, optimal time, and predetermined time, the number of relay vehicles required within the OTA-blocked single zone is obtained.
5. The vehicle OTA upgrade method according to claim 4, characterized in that, Based on the vehicle parameters, calculate the number of remaining unupgraded vehicles within the OTA blocking zone, including: The success rate of the OTA blocked single zone is obtained by calculating the ratio of the number of vehicles that successfully completed the upgrade to the total number of vehicles that completed the upgrade. Calculate the difference between 1 and the successful upgrade efficiency to obtain the unsuccessful upgrade efficiency of the OTA blocked single zone; The difference between the total number of vehicles that remain and the total number of vehicles that have left is calculated to obtain the number of vehicles remaining in the OTA blocked zone. The number of unupgraded vehicles remaining in the OTA-blocked zone is obtained by multiplying the unsuccessful upgrade efficiency, the number of remaining vehicles, and a preset empirical parameter.
6. The vehicle OTA upgrade method according to claim 4, characterized in that, Combining the remaining number of unupgraded vehicles, flashing efficiency, optimal time, and scheduled time, the number of relay vehicles required within the OTA congestion zone is obtained, including: Calculate the product of the writing efficiency and the predetermined time to obtain the first product value; Calculate the product of the optimal time and the number of remaining unupgraded vehicles to obtain the second product value; Calculate the ratio of the first product value to the second product value to obtain the number of relay vehicles required within the OTA blocking zone.
7. The vehicle OTA upgrade method according to claim 2, characterized in that, Based on the supply and demand relationship between the vehicle to be upgraded and the relay vehicle, and the degree of matching between the data receiving bandwidth of the vehicle to be upgraded and the data sending bandwidth of the relay vehicle, a connection channel is established between the vehicle to be upgraded and the relay vehicle, including: Based on the OTA software package required by the vehicle to be upgraded and the OTA software package provided by the relay vehicle, establish the supply and demand relationship between the vehicle to be upgraded and the relay vehicle; Based on the supply and demand relationship, the number of data receiving channels and the number of data sending channels are adjusted to update the data receiving bandwidth and data sending bandwidth; A connection channel is established between the vehicle to be upgraded and the relay vehicle based on the difference between the data receiving bandwidth and the data sending bandwidth.
8. The vehicle OTA upgrade method according to claim 7, characterized in that, Based on the OTA software package required by the vehicle to be upgraded and the OTA software package provided by the relay vehicle, a supply and demand relationship is established between the vehicle to be upgraded and the relay vehicle, including: The initial data receiving bandwidth of the vehicle to be upgraded is calculated based on the preset maximum receiving data bandwidth and the number of data receiving channels. The initial data transmission bandwidth of the relay vehicle is calculated based on the preset maximum data transmission bandwidth and the number of data transmission channels. Using the initial data receiving bandwidth and the initial data sending bandwidth, the vehicle to be upgraded is connected to the relay vehicle one by one; In a manner of information exchange, the vehicle to be upgraded obtains the relay vehicle that can provide the required OTA software package, while the relay vehicle obtains the vehicle to be upgraded that needs to receive the OTA software package; Based on the required OTA software package, a supply and demand relationship is established between the vehicle to be upgraded and the relay vehicle.
9. The vehicle OTA upgrade method according to claim 8, characterized in that, Based on the supply and demand relationship, the number of data receiving channels and the number of data sending channels are adjusted to update the data receiving bandwidth and data sending bandwidth, including: The number of data receiving channels is adjusted according to the number of OTA packages that the vehicle to be upgraded needs to receive; The number of data transmission channels is adjusted according to the number of OTA packages that the relay vehicle needs to send; The data receiving bandwidth is updated based on the maximum received data bandwidth and the adjusted number of data receiving channels; The data transmission bandwidth is updated based on the maximum data transmission bandwidth and the adjusted number of data transmission channels.
10. The vehicle OTA upgrade method according to claim 7, characterized in that, Based on the difference between the data receiving bandwidth and the data sending bandwidth, a connection channel is established between the vehicle to be upgraded and the relay vehicle, including: Calculate the difference between the data receiving bandwidth of the vehicle to be upgraded and the data transmitting bandwidth of the corresponding relay vehicle; Take the absolute value of the difference; The absolute value is compared with a preset absolute value threshold; If the absolute value is less than a preset absolute value threshold, it is determined that the matching degree between the data receiving bandwidth and the data sending bandwidth meets the requirements; A connection is established between the vehicle to be upgraded and the relay vehicle.
11. The vehicle OTA upgrade method according to claim 9, characterized in that, The number of data receiving channels is adjusted according to the number of OTA packages that the vehicle to be upgraded needs to receive, including: If the number of OTA packages is greater than or equal to the preset number of data receiving channels, then the number of data receiving channels and the data receiving bandwidth remain unchanged, and the OTA packages with a number greater than the preset number of data receiving channels enter the queuing sequence; If the number of OTA software packages is less than the preset number of data receiving channels, then the number of data receiving channels will be adjusted to the number of OTA software packages.
12. The vehicle OTA upgrade method according to claim 9, characterized in that, The number of data transmission channels is adjusted according to the number of OTA packages, including: If the number of OTA packages is greater than or equal to the preset number of data transmission channels, then the number of data transmission channels and the data transmission bandwidth remain unchanged, and the OTA packages with a number greater than the preset number of data transmission channels enter the queuing sequence; If the number of OTA packages is less than the preset number of data transmission channels, then the number of data transmission channels will be adjusted to the number of OTA packages.
13. The vehicle OTA upgrade method according to claim 1, characterized in that, According to the connection channel, send corresponding information packets, including: If the transmission rate of the connection channel is lower than a preset rate threshold, or the transmission duration of the connection channel exceeds a preset time threshold, or the bandwidth of the connection channel is less than a preset bandwidth threshold, the connection channel is disconnected. Based on the supply and demand relationship between the vehicle to be upgraded and the relay vehicle, and the degree of matching between the data receiving bandwidth of the vehicle to be upgraded and the data sending bandwidth of the relay vehicle, a connection channel between the vehicle to be upgraded and the relay vehicle is established, and the corresponding information packets are retransmitted. If the information packet has been sent, disconnect the connection channel.
14. The vehicle OTA upgrade method according to claim 1, characterized in that, Updating the status of the valid blocking identifier to invalidate the relay vehicle's relay identity includes: Upload the interaction information between the relay vehicle and the vehicle to be upgraded; Update the status of the valid blocking identifier to invalidate the relay vehicle's relay identity.
15. The vehicle OTA upgrade method according to claim 3, characterized in that, According to the connection channel, send corresponding information packets, including: Information is exchanged between the operating vehicle and the vehicle to be upgraded according to a preset asymmetric encryption algorithm, and the private key and encryption method are agreed upon during the transmission of the information packets. The OTA software package and authentication key are encrypted using the agreed private key and encryption method to obtain the encrypted information packet; The information packet is decrypted using the corresponding decryption method and private key to obtain the OTA software package and authentication key; After the OTA software package is securely authenticated using the authentication key, the OTA software package is upgraded. After the OTA software package and authentication key are successfully transmitted, the connection channel is disconnected.
16. The vehicle OTA upgrade method according to claim 3, characterized in that, According to the connection channel, send corresponding information packets, including: Information is exchanged between the non-operational vehicle and the vehicle to be upgraded according to a preset asymmetric encryption algorithm, and the private key and encryption method are agreed upon during the transmission of the information packets. The OTA software package is encrypted using the agreed private key and encryption method to obtain the encrypted information packet; The information packet is decrypted using the corresponding decryption method and private key to obtain the OTA software package; After the OTA software package is successfully transmitted, the connection channel is disconnected.
17. The vehicle OTA upgrade method according to any one of claims 1-16, characterized in that, Before obtaining the detection data of a single OTA-blocked area within a preset time period, the following is included: Divide OTA into geographical regions; Collect the average traffic of the OTA geographical zone within a preset time period; The average traffic of the OTA geographical zone is compared with a preset traffic threshold; If the average traffic is less than a preset traffic threshold, the OTA geographical zone is determined to be an OTA traffic cold zone. The average parking time per vehicle and the average number of vehicles parked in the OTA traffic cold zone were detected. If the average parking time per vehicle exceeds a preset time threshold or the average number of parked vehicles exceeds a preset number of parked vehicles threshold, the OTA traffic cold zone is determined to be an OTA congestion zone. Assign a valid blocking identifier to the OTA blocking zone.
18. A vehicle OTA upgrade device, characterized in that, include: The acquisition module is used to acquire detection data of OTA blocking single area within a preset time period. The detection data includes vehicle parameters and time parameters. The vehicle parameters include the total number of stationary vehicles, the total number of vehicles that have left, and the number of vehicles that have successfully completed the upgrade. The time parameters include the total time of information interaction between the vehicles that left and the historical relay vehicles, the test time of the historical relay vehicles for flashing the vehicle to be upgraded, the optimal time of the historical relay vehicles for flashing the vehicle to be upgraded, and the scheduled time of the historical relay vehicles for flashing the vehicle to be upgraded. The relay vehicle number estimation module is used to estimate the number of relay vehicles required in the OTA congestion zone based on the vehicle parameters and time parameters. A relay vehicle activation module is used to activate selectable vehicles according to the number of relay vehicles, so that the selectable vehicles obtain relay identity and a valid blocking identifier of the OTA blocking single zone. The relay identity is associated with the blocking identifier, and the selectable vehicle that obtains the relay identity is used as a relay vehicle. A connection channel establishment module is used to establish a connection channel between the relay vehicle and the vehicle to be upgraded, which have the same valid blockage identifier. The information packet sending module is used to send corresponding information packets according to the connection channel; A blocking identifier status update module is used to update the status of the valid blocking identifier so that the relay vehicle's relay identity becomes invalid.
19. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the vehicle OTA upgrade method as described in any one of claims 1 to 17.
20. A computer-readable storage medium, characterized in that, It stores computer-readable instructions that, when executed by the computer's processor, cause the computer to perform the vehicle OTA upgrade method according to any one of claims 1 to 17.
Citation Information
Patent Citations
Vehicle upgrading method and device, computer equipment and storage medium
CN112306538A
Vehicle region-specific software updates distribution
CN107632839A
Vehicle information interaction method, cloud equipment, vehicle and system
CN114900822A
