A vehicle automatic upgrade system

Through the multi-layer architecture of cloud servers and CDN servers and the use of split modules, the problem of network congestion in smart vehicle OTA upgrades is solved, efficient and safe upgrade package transmission is achieved, and the user experience is improved.

CN118233301BActive Publication Date: 2024-08-30HANGZHOU YOUGE NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410395924.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-02
Publication Date
2024-08-30
Estimated Expiration
2044-04-02

AI Technical Summary

Technical Problem

Existing OTA upgrade technology for smart vehicles can easily cause network congestion during the upgrade package download process, reduce server response speed and download efficiency, and affect user experience.

Method used

Adopting a multi-layer network architecture of cloud servers and CDN servers, the judgment module monitors network bandwidth and the number of accesses, triggers the splitting module to evenly split the upgrade packets and sends them in parallel, and uses sequence tags to ensure the integrity of packet reassembly and ensure the integrity of packet reassembly when the network is unstable. Switch to the alternative CDN server.

Benefits of technology

This avoids CDN server overload and network congestion during peak hours, improves transmission efficiency and security, and ensures the integrity of the upgrade package and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118233301B
    Figure CN118233301B
Patent Text Reader

Abstract

The present application discloses a vehicle automatic upgrade system, including a cloud server, a vehicle control terminal and several CDN servers, wherein the cloud server receives the upgrade information sent by the vehicle control terminal, determines the first upgrade package corresponding to the upgrade information and the storage location information in the CDN server; selects a target CDN server from the CDN servers whose location distance from the vehicle control terminal is within a preset range; the vehicle control terminal establishes a connection with the access interface of the target CDN server; the CDN server includes a judgment module and a splitting module, wherein the judgment module obtains an access IP address list and the number of accesses, and when the number of accesses is greater than the access threshold, determines whether to trigger the splitting module according to the network bandwidth and the total size of all first upgrade packages; the splitting module evenly splits the first upgrade package corresponding to each vehicle control terminal according to the network bandwidth to obtain several sub-upgrade packages, and sends the corresponding sub-upgrade packages to all vehicle control terminals in parallel. Thus, the efficiency and safety of vehicle upgrades can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle systems, and in particular to an automatic vehicle upgrade system. Background Art

[0002] An intelligent vehicle is a comprehensive system that integrates environmental perception, planning and decision-making, and multi-level assisted driving. It uses computers, modern sensors, information fusion, communications, artificial intelligence, and automatic control technologies, and integrates a large amount of artificial intelligence software. In order to continuously improve the safety, reliability, and comfort of intelligent vehicles, software upgrades have become the norm for intelligent vehicles. At present, the upgrade technology is mainly Over The Air (OTA), which uses a two-layer network architecture of vehicle-upgrade center for remote upgrades. For example, vehicles with OTA functions can upgrade the vehicle ECU (Electronic Control Unit) online through the Internet to optimize and upgrade ECU performance.

[0003] At present, when downloading ECU OTA upgrade packages, it is usually achieved by directly connecting the TSP platform to the vehicle side, and downloading the OTA upgrade package through a long connection service channel established between the TSP server and the vehicle side. This method will not only affect the data transmission on the TSP side during the upgrade package download process, but also affect the overall download rate of the upgrade package. In addition, when multiple vehicles in different regions are downloading upgrade packages at the same time, network congestion is likely to occur, which reduces the server's response speed and makes the download efficiency low, thus causing a bad upgrade experience. Summary of the invention

[0004] The present application provides a vehicle automatic upgrade system, which can improve the efficiency and safety of vehicle upgrades.

[0005] The present application provides a vehicle automatic upgrade system, including a cloud server, a vehicle control terminal and several CDN servers, the cloud server is connected to the several CDN servers respectively, and the cloud server is connected to the vehicle control terminal;

[0006] The cloud server includes an upgrade package storage unit, an upgrade control unit and a key management unit; the upgrade package storage unit is used to store the upgrade packages of all devices and the version information corresponding to all the upgrade packages; the key management unit is used to encrypt the upgrade package using the preset first key data to generate a ciphertext upgrade package, and use the preset second key data to sign the ciphertext upgrade package to obtain signature information, and transmit the first upgrade package consisting of the ciphertext upgrade package and the corresponding signature information to the upgrade control unit; the upgrade control unit is used to synchronize the first upgrade package to each CDN server;

[0007] The CDN server is provided with an access interface, and each CDN server's access interface corresponds to a unique access address;

[0008] The cloud server is configured to: receive the upgrade information sent by the vehicle-mounted control terminal, determine the first upgrade package corresponding to the upgrade information and the storage location information of the first upgrade package in the target CDN server, the target CDN server is determined by the upgrade information sent by the vehicle-mounted control terminal; send the access address of the target CDN server and the storage location information of the first upgrade package corresponding to the upgrade information in the target CDN server to the vehicle-mounted control terminal;

[0009] The vehicle-mounted control terminal establishes a connection with the access interface of the target CDN server according to the received access address of the target CDN server and the storage location information of the first upgrade package corresponding to the upgrade information on the target CDN server, and synchronizes the storage location information of the first upgrade package corresponding to the upgrade information on the target CDN server to the access interface of the target CDN server;

[0010] The CDN server also includes a judgment module and a splitting module. When the CDN server is determined as a target CDN server, the judgment module is used to monitor in real time the vehicle-mounted control terminals that establish a connection with the access interface at the same time point, and obtain an access IP address list. The access IP address list includes IP addresses of several vehicle-mounted control terminals that establish a connection with the target CDN server.

[0011] The judgment module is also used to count the number of accesses. When the number of accesses is greater than the access threshold, it is determined whether to trigger the splitting module based on the available network bandwidth and the size of all first upgrade packages corresponding to the access IP address list. The number of accesses is the number of IP addresses in the access IP address list.

[0012] The splitting module is used to evenly split the first upgrade package corresponding to each vehicle-mounted control terminal into a plurality of sub-upgrade packages according to the current network bandwidth, and send the corresponding sub-upgrade packages to all vehicle-mounted control terminals in parallel.

[0013] Preferably, the target CDN server is determined according to the upgrade information sent by the vehicle-mounted control terminal, including:

[0014] According to the IP address of the vehicle control terminal sending the upgrade information, the location information of the vehicle control terminal is obtained; among several CDN servers, according to the CDN servers whose location distances to the vehicle control terminal are within a preset range, a candidate CDN server list is obtained; and the CDN server with the best current operating status is selected as the target CDN server in the candidate CDN server list.

[0015] Preferably, the judgment module judges whether to trigger the splitting module according to the available network bandwidth and the size of the first upgrade package corresponding to all IP addresses in the access IP address list, including:

[0016] The total transmission time of all first upgrade packages is obtained using the following formula: T = ΣSi*N / B, where T is the total transmission time of all first upgrade packages, N is the number of accesses, and N is also the number of first upgrade packages, because each access IP address corresponds to a first upgrade package, ΣSi is the sum of the sizes of all first upgrade packages, B is the available network bandwidth size, and i represents from 1 to N; if the total transmission time T is greater than the time threshold, the splitting module is triggered.

[0017] Preferably, the splitting module is used to evenly split the first upgrade package corresponding to each vehicle-mounted control terminal into a plurality of sub-upgrade packages according to the current network bandwidth, and send the corresponding sub-upgrade packages to all vehicle-mounted control terminals in parallel, including:

[0018] According to the current network bandwidth, determine the total size A of all sub-upgrade packages transmitted in parallel;

[0019] According to the number of accesses N and the total size A of all upgrade packages transmitted in parallel, determine the size a of the sub-upgrade package that each vehicle-mounted control terminal can receive in one parallel transmission of the target CDN server, where a=A / N;

[0020] Based on the first upgrade package corresponding to each vehicle-mounted control terminal, and according to the sub-upgrade package size a, obtaining the number of splits corresponding to the first upgrade package of each vehicle-mounted control terminal;

[0021] Based on the split quantity corresponding to each first upgrade package, the first upgrade package is evenly split to obtain a plurality of sub-upgrade packages.

[0022] Preferably, the splitting module is further configured to: sequentially affix serial number labels to the multiple sub-upgrade packages obtained by splitting each first upgrade package in the order of splitting, and the representation of the serial label is set to "m / M", where m is the splitting order of the sub-upgrade packages, and M is the total number of sub-upgrade packages corresponding to the first upgrade package; and sequentially send all the sub-upgrade packages to the corresponding vehicle-mounted control terminal in the order of splitting until all the sub-upgrade packages are sent;

[0023] The vehicle-mounted control terminal is also configured to: receive the sub-upgrade packages transmitted by the target CDN server in sequence, and reassemble several sub-upgrade packages according to the sequence tags to obtain the corresponding first upgrade package; use the first key data synchronized to the vehicle-mounted control terminal by the cloud server to verify the signature information in the first upgrade package, and if the verification passes, use the second key data synchronized to the vehicle-mounted control terminal by the cloud server to decrypt the ciphertext upgrade package in the first upgrade package to obtain the upgrade package corresponding to the vehicle-mounted control terminal.

[0024] Preferably, the cloud server is also configured to: determine the IP address of the vehicle-mounted control terminal matched to the target CDN server as an IP address verification group, and synchronize it to the target CDN server; the judgment module of the CDN server is also configured to: perform security detection on each IP address in the access IP address list according to the IP address verification group to obtain a valid IP address list; mark the IP addresses that do not exist in the IP address verification group as invalid addresses, and remove the invalid addresses from the access IP address list to obtain a valid IP address list; replace the old access IP address list with the valid IP address list to obtain a new access IP address list.

[0025] Preferably, the target CDN server is also used to assign a unique session ID to the corresponding vehicle-mounted control terminal in the access IP address list, and the session ID is associated with the vehicle identity information of the vehicle-mounted control terminal; the vehicle-mounted control terminal is used to send a verification instruction to the target CDN server after receiving each sub-upgrade package, and the verification instruction includes the session ID corresponding to the vehicle-mounted control terminal and the serial tag of the received sub-upgrade package.

[0026] Preferably, the CDN server further comprises a monitoring module, which is configured to: receive and store the verification instruction sent by the vehicle-mounted control terminal, record the sequence tag of the latest confirmed sub-upgrade package corresponding to each session ID, and monitor the receiving progress of the vehicle-mounted control terminal in real time;

[0027] The monitoring module also includes a timing mechanism, which starts the timing mechanism whenever a sub-upgrade package is sent to the vehicle-mounted control terminal, stops the timing mechanism when the latest verification instruction is received, monitors the waiting time of the timing mechanism in real time, and marks the corresponding session ID as a "potential interruption object" when the waiting time is greater than a preset first time window, and determines that the sub-upgrade package that has not received the verification instruction in the first time window is the first sub-upgrade package;

[0028] The monitoring module is also used to retransmit the first sub-upgrade package to the vehicle-mounted control terminal corresponding to the session ID marked as a "potential interruption object", and monitor the waiting time of the timing mechanism in real time. When the waiting time is greater than the preset second time window, the corresponding session ID is marked as an "interruption object", and the sub-upgrade package that has not received the verification instruction in the second time window is determined as the second sub-upgrade package, wherein the second time window is greater than the first time window.

[0029] Preferably, the cloud server is further configured to: select a CDN server with the second best current running status in the candidate CDN server list as a candidate CDN server; send the access address of the candidate CDN server to the vehicle-mounted control terminal, and the vehicle-mounted control terminal establishes a connection with the candidate CDN server according to the received access address of the candidate CDN server;

[0030] The target CDN server is also configured to: when a session ID marked as an "interruption object" is detected, obtain the alternative CDN server of the vehicle control terminal corresponding to the session ID marked as an "interruption object" through the cloud server, and synchronize the second sub-upgrade package corresponding to the vehicle control terminal to the alternative CDN server, and the alternative CDN server is used to transmit the received second sub-upgrade package to the corresponding vehicle control terminal.

[0031] Preferably, the vehicle-mounted control terminal is also used to confirm whether the target CDN server and the alternative CDN server have successfully transmitted all sub-upgrade packages to the vehicle-mounted control terminal based on the sequence tags of all received sub-upgrade packages; if not, the sequence tags of the sub-upgrade packages that failed to be transmitted are determined based on the sequence tags of the received sub-upgrade packages, and the sequence tags of the sub-upgrade packages that failed to be transmitted are packaged into feedback information and sent to the cloud server; the cloud server establishes a fault log for the corresponding vehicle-mounted control terminal based on the received feedback information.

[0032] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0033] The judgment module is used to determine whether to trigger the splitting module according to the size of the available network bandwidth and the size of all the first upgrade packages. The splitting module is used to evenly split the first upgrade package according to the current network bandwidth size to obtain several sub-upgrade packages, and the sub-packages are sent to the vehicle control terminal in sequence according to the splitting order. This can avoid network congestion, low transmission efficiency and other problems caused by overloading of a target CDN server at the same time point during a peak period.

[0034] By setting the representation form of the sequence tag, it is possible to avoid the situation where the vehicle-mounted control terminal is unable to restore and reorganize the first upgrade package after receiving several sub-upgrade packages due to fluctuations in the bandwidth network. It is also possible to determine whether all the sub-upgrade packages have been received, thereby avoiding the omission of individual sub-upgrade packages, which would cause the upgrade failure of some devices.

[0035] By introducing an alternative CDN server, when the target CDN server encounters network instability and other problems when transmitting sub-upgrade packages to the vehicle-mounted control terminal, the sub-upgrade packages that have not received the verification instruction within the second time window can be seamlessly switched to the alternative CDN server for transmission, thereby ensuring that the vehicle-mounted control terminal can successfully complete the download of all sub-upgrade packages. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A structural block diagram of a vehicle automatic upgrade system according to an embodiment of the present invention;

[0037] Figure 2 Schematic diagram of the structure of the vehicle automatic upgrade system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] To facilitate the understanding of the present invention, the present application will be described more comprehensively below with reference to the relevant drawings; the drawings show preferred embodiments of the present invention, but the present invention can be implemented in many different forms and is not limited to the embodiments described herein; on the contrary, the purpose of providing these embodiments is to enable a more thorough and comprehensive understanding of the disclosed content of the present invention.

[0039] It should be noted that the terms “vertical”, “horizontal”, “up”, “down”, “left”, “right” and similar expressions used in this document are only for illustrative purposes and do not represent the only implementation method.

[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which the present invention belongs; the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the term "and / or" used herein includes any and all combinations of one or more related listed items.

[0041] Embodiment 1

[0042] In large urban areas, there may be a large number of vehicles in different areas downloading upgrade packages, resulting in congestion in the communication transmission network, thereby reducing the response speed of the cloud server and affecting the vehicle's upgrade experience. In an embodiment of the present invention, a short-connection upgrade service is provided to the vehicle through multiple CDN servers distributed in different geographical locations. However, during a peak upgrade period, a large number of vehicles in the same area send upgrade information to the cloud server almost at the same time, which may cause some CDN servers to be overloaded, especially when a large number of vehicles choose the same CDN server.

[0043] Figure 1 It is a structural schematic diagram of a vehicle automatic upgrade system according to an embodiment of the present invention.

[0044] like Figure 1 As shown, a vehicle automatic upgrade system includes a cloud server, a vehicle control terminal and several CDN servers. Figure 1 Only one CDN server and one vehicle-mounted control terminal are given as examples.

[0045] Specifically, the cloud server is connected to several CDN servers through network communication, and the cloud server is connected to the vehicle-mounted control terminal through network communication.

[0046] In some embodiments, reference Figure 2 As shown, the vehicle automatic upgrade system specifically includes:

[0047] The cloud server includes an upgrade package storage unit, an upgrade control unit and a key management unit;

[0048] The upgrade package storage unit is used to store the upgrade packages of all devices and the version information corresponding to all the upgrade packages; the key management unit is used to encrypt the upgrade package using the preset first key data to generate a ciphertext upgrade package, and use the preset second key data to sign the ciphertext upgrade package to obtain signature information, and transmit the first upgrade package consisting of the ciphertext upgrade package and the corresponding signature information to the upgrade control unit; the upgrade control unit is used to synchronize the first upgrade package to each CDN server;

[0049] The vehicle-mounted control terminal is connected to several CDN servers through network communication. The vehicle-mounted control terminal can be the electronic control unit ECU of the vehicle, which is used to receive and download the first upgrade package transmitted by the CDN server to automatically upgrade the vehicle.

[0050] The CDN server is provided with an access interface. Each access interface of the CDN server corresponds to an access address, so that the vehicle-mounted control terminal can identify the target CDN server for downloading the upgrade package.

[0051] The following describes the process of implementing vehicle upgrade by the vehicle automatic upgrade system of an embodiment of the present application.

[0052] The vehicle control terminal is configured to send upgrade information to the cloud server.

[0053] The cloud server is configured to: receive the upgrade information sent by the vehicle-mounted control terminal, and determine the first upgrade package corresponding to the upgrade information and the storage location information of the first upgrade package in several CDN servers according to the received upgrade information.

[0054] The upgrade information includes vehicle identity information, identification information of the device to be upgraded, and current version information of the device to be upgraded; specifically, the cloud server obtains the latest version information of the device to be upgraded in the upgrade package storage unit according to the identification information of the device to be upgraded, compares the latest version information with the current version information, obtains a list of target upgrade devices, the target upgrade device list includes the identification information of the target upgrade devices, and determines the first upgrade package according to the latest version information corresponding to the target upgrade devices. The upgrade information and the vehicle identity information present a one-to-one relationship, that is, each vehicle control terminal corresponding to the vehicle identity information corresponds to an upgrade information and a first upgrade package corresponding to the upgrade information.

[0055] The cloud server is also configured to: obtain the location information of the vehicle control terminal according to the IP address of the vehicle control terminal sending the upgrade information; obtain a list of candidate CDN servers according to the CDN servers whose location distance from the vehicle control terminal is within a preset range among several CDN servers; select the CDN server with the best current operating status as the target CDN server in the candidate CDN server list; and send the access address of the target CDN server and the storage location information of the first upgrade package corresponding to the upgrade information in the target CDN server to the vehicle control terminal. Among them, the target CDN server and the upgrade information present a one-to-many or one-to-one relationship, that is, the upgrade information of multiple vehicle control terminals may be matched to the same target CDN server.

[0056] The vehicle-mounted control terminal establishes a connection with the access interface of the target CDN server based on the received access address of the target CDN server and the storage location information of the first upgrade package corresponding to the upgrade information on the target CDN server, and synchronizes the storage location information of the first upgrade package corresponding to the upgrade information on the target CDN server to the access interface of the target CDN server.

[0057] The CDN server is also configured as follows: the CDN server also includes a judgment module and a splitting module. When the CDN server is determined as the target CDN server, the judgment module is used to monitor in real time the vehicle-mounted control terminal that establishes a connection with the access interface at the same time point to obtain an access IP address list; wherein the access IP address list includes the IP addresses of several vehicle-mounted control terminals.

[0058] The judgment module is also used to count the number of accesses. When the number of accesses is greater than the access threshold, it is determined whether to trigger the splitting module based on the available network bandwidth and the size of all first upgrade packages corresponding to the access IP address list. The number of accesses is the number of IP addresses in the access IP address list. The IP address and the vehicle control terminal have a one-to-one relationship, and each vehicle control terminal corresponds to a first upgrade package.

[0059] The judgment module judges whether to trigger the splitting module according to the available network bandwidth and the size of the first upgrade package corresponding to all IP addresses in the access IP address list, specifically including:

[0060] A1. Use the following formula to get the total transmission time of all first upgrade packages: T = ΣSi*N / B, where T is the total transmission time of all first upgrade packages, N is the number of accesses, and N is also the number of first upgrade packages, because each access IP address corresponds to a first upgrade package, ΣSi is the sum of the sizes of all first upgrade packages, B is the available network bandwidth, and i represents from 1 to N;

[0061] A2. If the total transmission time T is greater than the time threshold, it means that based on the current network bandwidth and the size of all first upgrade packages that need to be transmitted, the transmission efficiency is not high, and the transmission may be stuck or fail, so the splitting module needs to be triggered.

[0062] The split module configuration is:

[0063] According to the current network bandwidth, the first upgrade package corresponding to each vehicle-mounted control terminal is evenly split into a plurality of sub-upgrade packages, and the corresponding sub-upgrade packages are sent to all vehicle-mounted control terminals in parallel.

[0064] Specifically, they include:

[0065] B1. Determine the total size A of all sub-upgrade packages to be transmitted in parallel based on the current network bandwidth. The total size A of the upgrade packages must be within the allowable range of the current network bandwidth to ensure transmission stability and efficiency.

[0066] B2. Determine the size a of the sub-upgrade package that each vehicle-mounted control terminal can receive in one parallel transmission of the target CDN server according to the access number N and the total size A of all upgrade packages transmitted in parallel, where a=A / N;

[0067] B3. Based on the first upgrade package corresponding to each vehicle-mounted control terminal, and according to the sub-upgrade package size a, obtain the number of splits corresponding to the first upgrade package of each vehicle-mounted control terminal;

[0068] B4. Based on the number of splits corresponding to each first upgrade package, evenly split the first upgrade package to obtain a plurality of sub-upgrade packages.

[0069] The splitting module is also configured to: affix serial number labels to the several sub-upgrade packages obtained by splitting each first upgrade package in the order of splitting, and the representation of the sequence label is set to "m / M", where m is the splitting order of the sub-upgrade packages, and M is the total number of sub-upgrade packages corresponding to the first upgrade package; and send all the sub-upgrade packages to the corresponding vehicle-mounted control terminal in the order of splitting until all the sub-upgrade packages are sent.

[0070] By setting the representation form of the sequence tag, it is possible to avoid the situation where the vehicle-mounted control terminal is unable to restore and reorganize the first upgrade package after receiving several sub-upgrade packages due to fluctuations in the bandwidth network. It is also possible to determine whether all the sub-upgrade packages have been received, thereby avoiding the omission of individual sub-upgrade packages, which would cause the upgrade failure of some devices.

[0071] The vehicle-mounted control terminal is also configured to: receive the sub-upgrade packages transmitted by the target CDN server in sequence, and reassemble several sub-upgrade packages according to the sequence tags to obtain the corresponding first upgrade package; use the first key data synchronized to the vehicle-mounted control terminal from the cloud server to verify the signature information in the first upgrade package, if the verification passes, use the second key data synchronized to the vehicle-mounted control terminal from the cloud server to decrypt the ciphertext upgrade package in the first upgrade package to obtain the upgrade package corresponding to the vehicle-mounted control terminal; the vehicle-mounted control terminal uses the upgrade package to execute the vehicle installation and upgrade operation.

[0072] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:

[0073] The upgrade information is sent to the cloud server through the vehicle-mounted control terminal, and the cloud server returns the access address of the target CDN server to the vehicle-mounted control terminal. In this way, a short connection is used for data transmission between the vehicle-mounted control terminal and the cloud server, thereby improving the efficiency of the first upgrade package download process. Since the first upgrade package is downloaded by the target CDN server determined according to the geographical location, the problem of low download efficiency caused by the region, bandwidth and server is solved, and the high-efficiency transmission of the first upgrade package is achieved, thereby improving the user experience, and during the upgrade package download process, the integrity and security of the upgrade package are ensured by encryption.

[0074] The judgment module is used to determine whether to trigger the splitting module according to the size of the available network bandwidth and the size of all the first upgrade packages. The splitting module is used to evenly split the first upgrade package according to the current network bandwidth size to obtain several sub-upgrade packages, and the sub-packages are sent to the vehicle control terminal in sequence according to the splitting order. This can avoid network congestion, low transmission efficiency and other problems caused by overloading of a target CDN server at the same time point during a peak period.

[0075] By setting the representation form of the sequence tag, it is possible to avoid the situation where the vehicle-mounted control terminal is unable to restore and reorganize the first upgrade package after receiving several sub-upgrade packages due to fluctuations in the bandwidth network. It is also possible to determine whether all the sub-upgrade packages have been received, thereby avoiding the omission of individual sub-upgrade packages, which would cause the upgrade failure of some devices.

[0076] Embodiment 2

[0077] In Example 1, the cloud server receives the upgrade information sent by the vehicle-mounted control terminal, and matches it with the corresponding target CDN server according to the location information of the vehicle-mounted control terminal, thereby realizing regional diversion division for all vehicles that need to be upgraded. However, the CDN server directly transmits the upgrade package according to the vehicle-mounted control terminal that has a pre-established connection with its access interface. However, it does not take into account the possibility that a malicious vehicle-mounted control terminal may attempt to connect to the access interface of the CDN server to attack or steal data. The forced connection of the vehicle-mounted control terminal that is not authorized by the cloud server or does not meet the requirements of the target CDN server leads to transmission confusion and inefficiency.

[0078] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.

[0079] The cloud server is also configured to: determine the IP address of the vehicle control terminal matched to the target CDN server as an IP address verification group, and synchronize it to the target CDN server.

[0080] The judgment module of the CDN server is also used to perform security checks on each IP address in the access IP address list according to the IP address verification group to obtain a valid IP address list; specifically, the IP addresses that do not exist in the IP address verification group are marked as invalid addresses, and the invalid addresses are removed from the access IP address list to obtain a valid IP address list; the valid IP address list replaces the old access IP address list to obtain a new access IP address list.

[0081] It should be noted that the IP address verification group and the access IP address list are dynamically updated, and different vehicle-mounted control terminals send upgrade information to the cloud server at different time points.

[0082] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:

[0083] Through the judgment module in the CDN server, security checks are performed on each IP address in the access IP address list, which can effectively eliminate some IP addresses that are not authorized by the cloud server or have forced connections with the target CDN server, thereby improving the security and orderliness of the transmission process.

[0084] Embodiment 3

[0085] In the above embodiment, during the splitting and transmission of the first upgrade package by the CDN server, since the vehicle may be in an unstable network environment, such as in a city or a village, there may be network instability or other force majeure factors, resulting in an interruption or failure in the transmission of a sub-upgrade package of a certain vehicle-mounted control terminal, thereby causing the overall upgrade to be interrupted due to a single point failure, and relying on a single CDN server for the transmission of the sub-upgrade package. Once the server encounters network congestion, it will affect the upgrade process of all vehicle-mounted control terminals that rely on the server.

[0086] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.

[0087] The target CDN server is also used to assign a unique session ID to each corresponding vehicle control terminal in the access IP address list. The session ID is associated with the vehicle identity information of the vehicle control terminal for tracking and troubleshooting when necessary.

[0088] The vehicle-mounted control terminal is also used to send a verification instruction to the target CDN server immediately after receiving each sub-upgrade package. The verification instruction includes the session ID corresponding to the vehicle-mounted control terminal and the sequence tag of the received sub-upgrade package.

[0089] The CDN server also includes a monitoring module, which is configured to: receive and store verification instructions sent by the vehicle-mounted control terminal, record the sequence tag of the latest confirmed sub-upgrade package corresponding to each session ID, and monitor the receiving progress of the vehicle-mounted control terminal in real time, so as to accurately identify the location that needs to be retransmitted when the transmission of the sub-upgrade package is interrupted or fails.

[0090] The monitoring module also includes a timing mechanism, which starts each time a sub-upgrade package is sent to the vehicle-mounted control terminal, stops when the latest verification instruction is received, and monitors the waiting time of the timing mechanism in real time. When the waiting time is greater than the preset first time window, the corresponding session ID is marked as a "potential interrupt object", and the sub-upgrade package that has not received the verification instruction in the first time window is determined to be the first sub-upgrade package.

[0091] The target CDN server is further used to retransmit the first sub-upgrade package to the vehicle control terminal corresponding to the session ID marked as a "potential interruption object", monitor the waiting time of the timing mechanism in real time, and when the waiting time is greater than a preset second time window, mark the corresponding session ID as an "interruption object", and determine the sub-upgrade package that has not received the verification instruction in the second time window as the second sub-upgrade package. The second time window is greater than the first time window.

[0092] The cloud server is also configured to: select the CDN server with the best current operating status as the target CDN server in the candidate CDN server list, and select the CDN server with the second best current operating status as the alternative CDN server; send the access address of the alternative CDN server to the vehicle-mounted control terminal, and the vehicle-mounted control terminal establishes a connection with the alternative CDN server based on the received access address of the alternative CDN server.

[0093] The target CDN server is also configured to: when a session ID marked as "interruption object" is detected, obtain the alternative CDN server of the vehicle control terminal corresponding to the session ID marked as "interruption object" through the cloud server, and synchronize the second sub-upgrade package corresponding to the vehicle control terminal to the alternative CDN server, and the alternative CDN server is used to transmit the received second sub-upgrade package to the corresponding vehicle control terminal.

[0094] The vehicle-mounted control terminal is also used to confirm whether the target CDN server and the alternative CDN server have successfully transmitted all sub-upgrade packages to the vehicle-mounted control terminal based on the sequence tags of all received sub-upgrade packages. If not, the sequence tags of the sub-upgrade packages that failed to be transmitted are determined based on the sequence tags of the received sub-upgrade packages, and the sequence tags of the sub-upgrade packages that failed to be transmitted are packaged into feedback information and sent to the cloud server. The cloud server establishes a fault log for the corresponding vehicle-mounted control terminal based on the received feedback information.

[0095] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:

[0096] By introducing an alternative CDN server, when the target CDN server encounters network instability and other problems when transmitting sub-upgrade packages to the vehicle-mounted control terminal, the sub-upgrade packages that have not received the verification instruction within the second time window can be seamlessly switched to the alternative CDN server for transmission, thereby ensuring that the vehicle-mounted control terminal can successfully complete the download of all sub-upgrade packages.

[0097] The monitoring module can track the transmission status of each sub-upgrade package corresponding to each session ID in real time through a timing mechanism and real-time storage and verification instructions. Once a potential interruption risk is found, it can quickly retransmit the first sub-upgrade package and switch to an alternative CDN server when it is determined to be an interruption object, ensuring the continuity and integrity of the upgrade process.

[0098] By associating the session ID with the sub-upgrade package sequence tag, the CDN server can accurately identify the specific location of transmission failure or interruption, avoiding unnecessary retransmission and waste of resources. The cloud server also creates a fault log that provides valuable data support for subsequent troubleshooting.

[0099] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A vehicle automatic upgrade system, characterized in that: It includes a cloud server, an on-board control terminal and several CDN servers, the cloud server is connected to the several CDN servers respectively, and the cloud server is connected to the on-board control terminal; The cloud server includes an upgrade package storage unit, an upgrade control unit and a key management unit; The upgrade package storage unit is used to store the upgrade packages of all devices and the version information corresponding to all the upgrade packages; the key management unit is used to encrypt the upgrade package using the preset first key data to generate a ciphertext upgrade package, and use the preset second key data to sign the ciphertext upgrade package to obtain signature information, and transmit the first upgrade package consisting of the ciphertext upgrade package and the corresponding signature information to the upgrade control unit; the upgrade control unit is used to synchronize the first upgrade package to each CDN server; The CDN server is provided with an access interface, and each CDN server's access interface corresponds to a unique access address; The cloud server is configured to: receive the upgrade information sent by the vehicle control terminal, determine the first upgrade package corresponding to the upgrade information and the storage location information of the first upgrade package in the target CDN server, and the target CDN server is determined by the upgrade information sent by the vehicle control terminal; Sending the access address of the target CDN server and the storage location information of the first upgrade package corresponding to the upgrade information on the target CDN server to the vehicle-mounted control terminal; The vehicle-mounted control terminal establishes a connection with the access interface of the target CDN server according to the received access address of the target CDN server and the storage location information of the first upgrade package corresponding to the upgrade information on the target CDN server, and synchronizes the storage location information of the first upgrade package corresponding to the upgrade information on the target CDN server to the access interface of the target CDN server; The CDN server also includes a judgment module and a splitting module. When the CDN server is determined as a target CDN server, the judgment module is used to monitor in real time the vehicle-mounted control terminals that establish a connection with the access interface at the same time point, and obtain an access IP address list. The access IP address list includes IP addresses of several vehicle-mounted control terminals that establish a connection with the target CDN server. The judgment module is also used to count the number of accesses. When the number of accesses is greater than the access threshold, it is determined whether to trigger the splitting module based on the available network bandwidth and the size of all first upgrade packages corresponding to the access IP address list. The number of accesses is the number of IP addresses in the access IP address list. The splitting module is used to evenly split the first upgrade package corresponding to each vehicle-mounted control terminal into a plurality of sub-upgrade packages according to the current network bandwidth, and send the corresponding sub-upgrade packages to all vehicle-mounted control terminals in parallel; The judging module judges whether to trigger the splitting module according to the available network bandwidth and the size of the first upgrade package corresponding to all IP addresses in the access IP address list, including: The total transmission time of all first upgrade packages is obtained using the following formula: T = ΣSi*N / B, where T is the total transmission time of all first upgrade packages, N is the number of accesses, and N is also the number of first upgrade packages, because each access IP address corresponds to a first upgrade package, ΣSi is the sum of the sizes of all first upgrade packages, B is the available network bandwidth size, and i represents from 1 to N; if the total transmission time T is greater than the time threshold, the splitting module is triggered.

2. The vehicle automatic upgrade system according to claim 1, characterized in that: The target CDN server is determined according to the upgrade information sent by the vehicle-mounted control terminal, including: According to the IP address of the vehicle control terminal sending the upgrade information, the location information of the vehicle control terminal is obtained; among several CDN servers, according to the CDN servers whose location distances to the vehicle control terminal are within a preset range, a candidate CDN server list is obtained; and the CDN server with the best current operating status is selected as the target CDN server in the candidate CDN server list.

3. The vehicle automatic upgrade system according to claim 1, characterized in that: The splitting module is used to evenly split the first upgrade package corresponding to each vehicle-mounted control terminal into a plurality of sub-upgrade packages according to the current network bandwidth, and send the corresponding sub-upgrade packages to all vehicle-mounted control terminals in parallel, including: According to the current network bandwidth, determine the total size A of all sub-upgrade packages transmitted in parallel; According to the number of accesses N and the total size A of all upgrade packages transmitted in parallel, determine the size a of the sub-upgrade package that each vehicle-mounted control terminal can receive in one parallel transmission of the target CDN server, where a=A / N; Based on the first upgrade package corresponding to each vehicle-mounted control terminal, and according to the sub-upgrade package size a, obtaining the number of splits corresponding to the first upgrade package of each vehicle-mounted control terminal; Based on the split quantity corresponding to each first upgrade package, the first upgrade package is evenly split to obtain a plurality of sub-upgrade packages.

4. The vehicle automatic upgrade system according to claim 2, characterized in that: The splitting module is further configured to: sequentially label the sub-upgrade packages obtained by splitting each first upgrade package with serial number labels in the splitting order, wherein the representation form of the serial number labels is set to "m / M", where m is the splitting order of the sub-upgrade packages, and M is the total number of sub-upgrade packages corresponding to the first upgrade package; and sequentially send all the sub-upgrade packages to the corresponding vehicle-mounted control terminal in the splitting order until all the sub-upgrade packages are sent; The vehicle-mounted control terminal is also configured to: receive the sub-upgrade packages transmitted by the target CDN server in sequence, and reassemble several sub-upgrade packages according to the sequence tags to obtain the corresponding first upgrade package; use the first key data synchronized to the vehicle-mounted control terminal by the cloud server to verify the signature information in the first upgrade package, and if the verification passes, use the second key data synchronized to the vehicle-mounted control terminal by the cloud server to decrypt the ciphertext upgrade package in the first upgrade package to obtain the upgrade package corresponding to the vehicle-mounted control terminal.

5. The vehicle automatic upgrade system as claimed in claim 2, characterized in that: The cloud server is also configured to: determine the IP address of the vehicle-mounted control terminal matched to the target CDN server as an IP address verification group, and synchronize it to the target CDN server; the judgment module of the CDN server is also configured to: perform security detection on each IP address in the access IP address list according to the IP address verification group to obtain a valid IP address list; mark the IP addresses that do not exist in the IP address verification group as invalid addresses, and remove the invalid addresses from the access IP address list to obtain a valid IP address list; replace the old access IP address list with the valid IP address list to obtain a new access IP address list.

6. The vehicle automatic upgrade system as claimed in claim 3, characterized in that: The target CDN server is also used to assign a unique session ID to the corresponding vehicle control terminal in the access IP address list, and the session ID is associated with the vehicle identity information of the vehicle control terminal; the vehicle control terminal is used to send a verification instruction to the target CDN server after receiving each sub-upgrade package, and the verification instruction includes the session ID corresponding to the vehicle control terminal and the sequence tag of the received sub-upgrade package.

7. The vehicle automatic upgrade system according to claim 6, characterized in that: The CDN server further includes a monitoring module, which is configured to: receive and store the verification instruction sent by the vehicle-mounted control terminal, record the sequence tag of the latest confirmed sub-upgrade package corresponding to each session ID, and monitor the receiving progress of the vehicle-mounted control terminal in real time; The monitoring module also includes a timing mechanism, which starts the timing mechanism every time a sub-upgrade package is sent to the vehicle-mounted control terminal, stops the timing mechanism when the latest verification instruction is received, and monitors the waiting time of the timing mechanism in real time. When the waiting time is greater than a preset first time window, the corresponding session ID is marked as a "potential interruption object", and the sub-upgrade package that has not received the verification instruction in the first time window is determined to be the first sub-upgrade package; The monitoring module is also used to retransmit the first sub-upgrade package to the vehicle-mounted control terminal corresponding to the session ID marked as a "potential interruption object", and monitor the waiting time of the timing mechanism in real time. When the waiting time is greater than the preset second time window, the corresponding session ID is marked as an "interruption object", and the sub-upgrade package that has not received the verification instruction in the second time window is determined as the second sub-upgrade package, wherein the second time window is greater than the first time window.

8. The vehicle automatic upgrade system as claimed in claim 7, characterized in that: The cloud server is further configured to: select a CDN server with the second best current running status as a candidate CDN server in the candidate CDN server list; send an access address of the candidate CDN server to the vehicle-mounted control terminal, and the vehicle-mounted control terminal establishes a connection with the candidate CDN server according to the received access address of the candidate CDN server; The target CDN server is also configured to: when a session ID marked as "interruption object" is detected, obtain the alternative CDN server of the vehicle control terminal corresponding to the session ID marked as "interruption object" through the cloud server, and synchronize the second sub-upgrade package corresponding to the vehicle control terminal to the alternative CDN server, and the alternative CDN server is used to transmit the received second sub-upgrade package to the corresponding vehicle control terminal.

9. The vehicle automatic upgrade system as claimed in claim 8, characterized in that: The vehicle-mounted control terminal is also used to confirm whether the target CDN server and the alternative CDN server have successfully transmitted all the sub-upgrade packages to the vehicle-mounted control terminal based on the sequence tags of all the received sub-upgrade packages. If not, the sequence tags of the sub-upgrade packages that failed to be transmitted are determined based on the sequence tags of the received sub-upgrade packages, and the sequence tags of the sub-upgrade packages that failed to be transmitted are packaged into feedback information and sent to the cloud server. The cloud server establishes a fault log for the corresponding vehicle-mounted control terminal based on the received feedback information.

Citation Information

Patent Citations

  • Multi-source and multithread software upgrading method and system

    CN104915227A

  • OTA upgrade package downloading method and device, vehicle end and server

    CN111510485A

  • Vehicle-mounted system installation package downloading method, electronic equipment and storage medium

    CN113031978A