Upgrading method, device, equipment and storage medium based on location information
By using the location information-based upgrade method in the vehicle terminal system and selecting the appropriate edge cloud for OTA upgrade, the problems of excessive cloud server load and network congestion in the traditional OTA upgrade solution are solved, and a more stable upgrade process is achieved.
Patent Information
- Application Number
- CN202211641053.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-12-20
AI Technical Summary
In the traditional OTA upgrade solution, there are fewer network elements for the Internet of Vehicles, which leads to excessive load on the cloud server, network congestion, and even upgrade failure during large-volume, high-concurrency OTA upgrades of vehicles.
Using an upgrade method based on location information, by receiving the upgrade request from the vehicle, the edge cloud group is determined based on the location information, and the smooth weighted polling algorithm is used to select the first target edge cloud among multiple edge clouds, reducing the chance of it being continuously selected. probability to ensure effective transmission of upgraded resource packages.
It effectively reduces the instantaneous high load and downtime probability of the edge cloud when a large number of vehicle upgrade requests are made, ensuring the stability and success rate of the upgrade process.
Smart Images

Figure CN115987790B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, apparatus, device and storage medium for upgrading based on location information. Background Art
[0002] With the continuous integration of information technology, the Internet and the automotive industry, automotive network interconnection and intelligence have become an inevitable trend in the development of the automotive industry.
[0003] To meet the growing demand for intelligent vehicle terminals, current vehicle terminal systems are now equipped with applications and systems such as traffic-aware cruise control, autonomous driving, and video games. While these software enriches terminal functionality, they also require constant updates to ensure greater security and intelligence. Traditional over-the-air (OTA) upgrades involve the vehicle terminal accessing a cloud server, which then transmits OTA packages to the vehicle terminal via TCP.
[0004] However, there are relatively few network elements in the Internet of Vehicles at present. Once the vehicle computers are upgraded in large quantities and with high concurrency, it will inevitably cause excessive load on the cloud server, network congestion or even upgrade failure. Summary of the Invention
[0005] The present application provides an upgrade method, apparatus, device and storage medium based on location information, which are used to solve the problems of excessive cloud server load, network congestion and even upgrade failure in traditional OTA upgrade solutions.
[0006] In one aspect, the present application provides an upgrade method based on location information, comprising:
[0007] receiving an upgrade request sent by the vehicle computer, wherein the upgrade request includes an application identifier and location information;
[0008] Determining an edge cloud group according to the location information, wherein a plurality of edge clouds in the edge cloud group cover the location indicated by the location information;
[0009] Determining a first target edge cloud of this round from among the multiple edge clouds according to a smooth weighted round-robin algorithm, wherein the smooth weighted round-robin algorithm is used to reduce a probability of the first target edge cloud being continuously selected;
[0010] According to the application identifier, the upgrade resource package corresponding to the application identifier is stored on the first target edge cloud, so that the first target edge cloud sends the upgrade resource package to the vehicle computer to upgrade the application corresponding to the application identifier.
[0011] Optionally, determining the first target edge cloud of this round among the multiple edge clouds according to the smooth weighted round-robin algorithm includes:
[0012] Obtaining a configuration weight for each edge cloud, wherein the configuration weight is determined based on a current weight of each edge cloud after the second target edge cloud is selected in the previous round and an initial weight of each edge cloud;
[0013] According to the configuration weight of each edge cloud, the edge cloud corresponding to the maximum configuration weight is determined as the first target edge cloud.
[0014] Optionally, before obtaining the configuration weight of each edge cloud, the method further includes:
[0015] After the second target edge cloud is selected according to the maximum configuration weight in the previous round, the current weight of the second target edge cloud is determined according to the sum of the configuration weight of the second target edge cloud and the initial weight, and the current weights of other edge clouds in the edge cloud group remain unchanged;
[0016] The configuration weight of each edge cloud is determined according to the current weight of each edge cloud and the initial weight of each edge cloud.
[0017] Optionally, in the first round, the configuration weight of each edge cloud is the initial weight of each edge cloud.
[0018] Optionally, determining the edge cloud group according to the location information includes:
[0019] Obtaining the tracking area code of the vehicle computer according to the location information of the vehicle computer;
[0020] Determine the edge cloud group identification value using a hash mapping algorithm based on the tracking area code of the vehicle computer;
[0021] Obtain the edge cloud group indicated by the edge cloud group identification value.
[0022] Optionally, after storing the upgrade resource package corresponding to the application identifier on the first target edge cloud according to the application identifier, the method further includes:
[0023] Obtaining a resumable transmission request sent by the first target edge cloud, the resumable transmission request being used to indicate a transmission problem between the vehicle computer and the first target edge cloud; the resumable transmission request including the upgrade resource package, download progress information, and location information of the vehicle computer;
[0024] performing a step of determining a third target edge cloud in the new edge cloud group based on the location information;
[0025] The upgrade resource package and the download progress information are transmitted to the third target edge cloud, so that the third target edge cloud transmits the upgrade resource package breakpoints to the vehicle computer.
[0026] Optionally, the first target edge cloud determines that there is a transmission problem based on the fact that the distance between the first target edge cloud and the vehicle computer is greater than a preset distance and the transmission signal strength between the first target edge cloud and the vehicle computer is less than a preset strength.
[0027] Optionally, before receiving the upgrade request sent by the vehicle computer, the process includes:
[0028] receiving a detection request sent by the vehicle computer, wherein the detection request includes an application identifier;
[0029] Determine the latest version of the application corresponding to the application identifier according to the application identifier;
[0030] The latest version number of the application is sent to the vehicle computer, so that the vehicle computer determines to upgrade the application according to the latest version number.
[0031] On the other hand, the present application provides an upgrade device based on location information, comprising:
[0032] A receiving module, configured to receive an upgrade request sent by the vehicle computer, wherein the upgrade request includes an application identifier and location information;
[0033] A first determining module is configured to determine an edge cloud group based on the location information, wherein a plurality of edge clouds in the edge cloud group cover a location indicated by the location information;
[0034] A second determination module is configured to determine a first target edge cloud of this round from among the multiple edge clouds according to a smooth weighted round-robin algorithm, wherein the smooth weighted round-robin algorithm is configured to reduce a probability of the first target edge cloud being continuously selected;
[0035] A storage module is used to store the upgrade resource package corresponding to the application identifier on the first target edge cloud according to the application identifier, so that the first target edge cloud sends the upgrade resource package to the vehicle computer to upgrade the application corresponding to the application identifier.
[0036] In one possible implementation, the second determining module is specifically configured to:
[0037] Obtaining a configuration weight for each edge cloud, wherein the configuration weight is determined based on a current weight of each edge cloud after the second target edge cloud is selected in the previous round and an initial weight of each edge cloud;
[0038] According to the configuration weight of each edge cloud, the edge cloud corresponding to the maximum configuration weight is determined as the first target edge cloud.
[0039] In one possible implementation, the second determining module is specifically configured to:
[0040] After the second target edge cloud is selected according to the maximum configuration weight in the previous round, the current weight of the second target edge cloud is determined according to the sum of the configuration weight of the second target edge cloud and the initial weight, and the current weights of other edge clouds in the edge cloud group remain unchanged;
[0041] The configuration weight of each edge cloud is determined according to the current weight of each edge cloud and the initial weight of each edge cloud.
[0042] In one possible implementation, in the first round, the configuration weight of each edge cloud is the initial weight of each edge cloud.
[0043] In one possible implementation, the first determining module is specifically configured to:
[0044] Obtaining the tracking area code of the vehicle computer according to the location information of the vehicle computer;
[0045] Determine the edge cloud group identification value using a hash mapping algorithm based on the tracking area code of the vehicle computer;
[0046] Obtain the edge cloud group indicated by the edge cloud group identification value.
[0047] In one possible implementation, the first determining module is specifically configured to:
[0048] Obtaining a resumable transmission request sent by the first target edge cloud, the resumable transmission request being used to indicate a transmission problem between the vehicle computer and the first target edge cloud; the resumable transmission request including the upgrade resource package, download progress information, and location information of the vehicle computer;
[0049] performing a step of determining a third target edge cloud in the new edge cloud group based on the location information;
[0050] The upgrade resource package and the download progress information are transmitted to the third target edge cloud, so that the third target edge cloud transmits the upgrade resource package breakpoints to the vehicle computer.
[0051] In one possible implementation, the first target edge cloud determines that there is a transmission problem based on the fact that the distance between the first target edge cloud and the vehicle computer is greater than a preset distance and the transmission signal strength between the first target edge cloud and the vehicle computer is less than a preset strength.
[0052] In one possible implementation, the receiving module is specifically configured to:
[0053] receiving a detection request sent by the vehicle computer, wherein the detection request includes an application identifier;
[0054] Determine the latest version of the application corresponding to the application identifier according to the application identifier;
[0055] The latest version number of the application is sent to the vehicle computer, so that the vehicle computer determines to upgrade the application according to the latest version number.
[0056] According to a third aspect of the present application, an electronic device is provided, including:
[0057] processor and memory;
[0058] Memory stores computer-executable instructions;
[0059] The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs any one of the methods in the first aspect.
[0060] In a fourth aspect of the present application, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement a method for determining a driver for a hardware peripheral as described in any one of the first aspects.
[0061] This embodiment provides a location-based upgrade method, apparatus, device, and storage medium. The method receives an upgrade request from a vehicle computer, the upgrade request including an application identifier and location information; determines an edge cloud group based on the location information; determines the first target edge cloud for this round among multiple edge clouds based on a smooth weighted round-robin algorithm; and stores the upgrade resource package corresponding to the application identifier on the first target edge cloud based on the application identifier, so that the first target edge cloud sends the upgrade resource package to the vehicle computer to upgrade the application corresponding to the application identifier. When processing requests from the vehicle computer, the cloud server uses a smooth weighted round-robin algorithm to reduce the probability of the first target edge cloud being continuously selected during the upgrade process, thereby resolving the probability of edge cloud downtime caused by instantaneous high load when a large number of vehicle computer upgrade requests are received. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0063] Figure 1 A diagram showing a specific application scenario of the location information-based upgrade method provided in this application;
[0064] Figure 2 The upgrade method based on location information provided in this application embodiment Figure 1 ;
[0065] Figure 3The upgrade method based on location information provided in this application embodiment Figure 2 ;
[0066] Figure 4 The upgrade method based on location information provided in this application embodiment Figure 3 ;
[0067] Figure 5 A schematic diagram of the structure of an upgrade device based on location information provided in an embodiment of the present application;
[0068] Figure 6 This is a hardware structure diagram of the location information-based upgrade device provided in an embodiment of the present application.
[0069] Description of reference numerals:
[0070] 101-car A;
[0071] 102-car computer B;
[0072] 103-car computer C;
[0073] 104-base station A;
[0074] 105-base station B;
[0075] 106-base station C;
[0076] 107-Edge Cloud A;
[0077] 108-Edge Cloud B;
[0078] 109-Edge Cloud Scheduler;
[0079] 110-Cloud server.
[0080] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0081] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0082] Figure 1This is a specific application scenario diagram of the location information-based upgrade method provided by this application. Figure 1 As shown, the application scenario includes: car machine A101, car machine B102, car machine C103, base station A104, base station B105, base station C106, edge cloud A107, edge cloud B108, edge cloud scheduler 109 and cloud server 110. Among them, car machine A101, car machine B102 and car machine C103 are connected to edge cloud A107 and edge cloud B108 through base station A104, base station B105 and base station C106 respectively. The edge cloud scheduler 109 is responsible for the allocation problem of the two edge clouds, that is, through which edge cloud the upgrade resource package on the cloud server 110 is transmitted to the car machine. Here, when the car machine needs to resume the transmission, the edge cloud A107 and the edge cloud B108 will communicate to ensure that the process of the car machine obtaining the upgrade resource package will not be interrupted.
[0083] The edge cloud scheduler is primarily responsible for identifying an edge cloud from multiple edge clouds to transmit the upgrade resource package to the vehicle computer when the cloud server receives an upgrade request from the vehicle computer. The edge cloud scheduler typically uses a weighted round-robin algorithm. For example, as shown in Table 1, assuming there are three edge clouds, each time an upgrade request is received, the edge cloud scheduler selects an edge cloud based on the configured weight to transmit the upgrade resource package to the vehicle computer. The configured weight is the weight set for the edge cloud. After confirming the configured weight, the edge cloud with the largest configured weight is selected and its weight is reduced by one. The weights of the remaining two edge clouds remain unchanged.
[0084] Table 1
[0085]
[0086] From the data in Table 1, we can see that the scheduling order of the edge cloud is {MEC1, MEC2, MEC3, MEC1, MEC1, MEC1, MEC1}. For MEC1 with strong load capacity, the 4th to 7th OTA upgrades will continuously request MEC1, resulting in instantaneous high load, which increases the probability of edge cloud MEC1 system crash.
[0087] This application provides an upgrade method based on location information. After the cloud server receives the upgrade request sent by the vehicle computer, it first determines the edge cloud group based on the vehicle computer location information, then uses the smooth weighted polling algorithm to determine the first target edge cloud, and then stores the level resource package on the first target edge cloud.
[0088] The specific process is shown in Table 2. After determining a group of edge clouds based on location information, the initial weight of each edge cloud is determined based on its load capacity. In the first round, the configured weight of the edge cloud is the initial weight. The sum of the initial weights for the edge cloud group is also determined. Before the cloud server receives the first upgrade request, assume there is a group of edge clouds MEC = {MEC1, MEC2, MEC3}, with default weights W = {5, 1, 1}, initial current weights CW = {5, 1, 1}, and a default weight sum weightSum = 7. After receiving the first upgrade request, MEC1 is determined to have the highest weight among MEC1, MEC2, and MEC3, and is therefore selected as the target edge cloud to respond to this request. Subsequently, to prepare for the next upgrade request, the initial weight sum weightSum7 is subtracted from the target edge cloud's weight. This results in the current weights of MEC1, MEC2, and MEC3 being {-2, 1, 1}. Adding the initial weight CW to the current weight (i.e., {5, 1, 1}) yields the next round of configuration weights W = {3, 2, 2}, and so on, until the current weights CW all become {0, 0, 0}. Table 2 shows that the edge cloud scheduling order is {MEC1, MEC1, MEC2, MEC1, MEC3, MEC1, MEC1}, which is smoother and fairer for MEC1 and significantly reduces the probability of system downtime caused by instantaneous high loads.
[0089] Table 2
[0090]
[0091] The location information-based upgrade method provided in this application is intended to solve the above technical problems in the prior art.
[0092] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0093] Figure 2 The upgrade method based on location information provided in this application embodiment Figure 1 .like Figure 2 As shown, the method of this embodiment is applied to a cloud server, including:
[0094] S201, receiving an upgrade request sent by the vehicle computer, the upgrade request including an application identifier and location information;
[0095] In this embodiment, the cloud server is responsible for receiving the upgrade request from the vehicle computer. When the vehicle computer sends an upgrade request, it will carry the application identifier and location information. Among them, the application identifier is used by the cloud server to determine the upgrade resource package corresponding to the application that needs to be upgraded. The location information is used by the cloud server to determine the edge cloud group. The edge cloud group determined according to the location information will cover the location indicated by the vehicle computer location information. The location information generally includes a tracking area code (TAC), which defines the area to which the cell belongs. A tracking area can cover one or more cells. Tracking Area is a new concept established by the system for client location management. When the client is idle, the core network can know the tracking area in which the client is located. At the same time, when the idle client needs to be paged, it must be paged in all cells in the tracking area where the client is registered.
[0096] In this embodiment, the prerequisite for the vehicle computer to send an upgrade request to the cloud server is that the vehicle computer determines that the current application is no longer the latest version. There are many ways for the vehicle computer to determine whether the current application version is the latest.
[0097] Optionally, before receiving the upgrade request sent by the vehicle computer, the following steps are included:
[0098] Receive a detection request sent by the vehicle computer, the detection request including an application identifier;
[0099] According to the application identifier, determine the latest version of the application corresponding to the application identifier;
[0100] Send the latest version of the application to the vehicle computer so that the vehicle computer can determine to upgrade the application based on the latest version.
[0101] In this embodiment, before sending an upgrade request to the cloud server, the vehicle computer will send a detection request to the cloud server to determine whether the version of the application installed on the vehicle computer is the latest version. The detection request includes an application identifier. After receiving the detection request, the cloud server parses it, obtains the latest application version number corresponding to the application identifier, and then sends it to the vehicle computer. After receiving the response from the cloud service, the vehicle computer parses the latest application version number corresponding to the application identifier and compares it with the application version on the local computer to determine that the application on the local computer is not the latest version and needs to be upgraded. The advantage of this is that the vehicle computer decides whether to update the application while saving the vehicle computer's memory.
[0102] S202: Determine an edge cloud group based on the location information, where multiple edge clouds in the edge cloud group cover the location indicated by the location information;
[0103] In this embodiment, after receiving the upgrade request, the cloud server must first determine a group of edge clouds that cover the location of the vehicle computer. This determination process can be completed by the edge cloud scheduler. The edge cloud scheduler can also determine the edge cloud group in various ways.
[0104] In one possible practice, the edge cloud group is determined based on the location information:
[0105] According to the location information of the vehicle computer, obtain the tracking area code of the vehicle computer;
[0106] According to the tracking area code of the vehicle computer, the edge cloud group identification value is determined using the hash mapping algorithm;
[0107] Gets the edge cloud group indicated by the edge cloud group ID value.
[0108] In this embodiment, the cloud server uses a hash mapping algorithm based on TAC information to select a group of edge clouds. Based on the location information in the upgrade request, the cloud server can determine the tracking area code of the vehicle computer. Then, using the hash mapping algorithm on the tracking area code, it determines the identification value of a group of edge clouds, and thus determines the edge cloud group corresponding to the identification value. The specific mapping algorithm is as follows:
[0109] MEC=HASH(TAC)ModN
[0110] Where MEC is an edge cloud pointer pointing to a group of edge clouds with different weights maintained by the edge cloud scheduler, MEC = {MEC1, MEC2, …, MECi}; N is the number of edge cloud groups maintained by the edge cloud scheduler, and i is the number of edge clouds in an edge cloud group. Those skilled in the art will appreciate that the above-mentioned operation of determining the edge cloud group based on the vehicle's location can be performed by the edge cloud scheduler in the cloud server or by other components in the cloud server. The method for determining the edge cloud group is not limited to the hash mapping algorithm.
[0111] S203. Determine a first target edge cloud for this round from among multiple edge clouds according to a smooth weighted round-robin algorithm, where the smooth weighted round-robin algorithm is used to reduce the probability of the first target edge cloud being continuously selected.
[0112] In this embodiment, based on the edge cloud group determined in the above steps, the cloud server uses a smooth weighted polling algorithm to determine the first target edge cloud in the edge cloud group. The first target edge cloud is the edge cloud that responds to the vehicle computer upgrade request in this round. The process has been described before and will not be repeated here. It can be seen that the use of a smooth weighted polling algorithm will reduce the probability of a single edge cloud being continuously selected compared to the use of an ordinary weighted polling algorithm. In this way, when a large number of vehicle computers send upgrade requests, the possibility of high-load congestion caused by frequent access to the edge cloud can be reduced.
[0113] S204: According to the application identifier, the upgrade resource package corresponding to the application identifier is stored on the first target edge cloud, so that the first target edge cloud sends the upgrade resource package to the vehicle computer to upgrade the application corresponding to the application identifier.
[0114] In this embodiment, after determining the first target edge cloud, the cloud server needs to transmit the upgrade resource package that needs to be transmitted to the vehicle computer to the first target edge cloud for storage, and then the first target edge cloud transmits it to the vehicle computer.
[0115] During the transmission of the upgrade resource package, the location of the vehicle computer is usually dynamic. Therefore, when the transmission upgrade process of the first target edge cloud is blocked due to the change of the vehicle computer's location, the cloud server can reselect an edge cloud group based on the location information and then determine a new target edge cloud to complete the transmission of the upgrade resource package.
[0116] This embodiment provides an upgrade method based on location information. The method receives an upgrade request from a vehicle computer, the upgrade request including an application identifier and location information; determines an edge cloud group based on the location information; determines the first target edge cloud for this round from multiple edge clouds based on a smooth weighted round-robin algorithm; and stores the upgrade resource package corresponding to the application identifier on the first target edge cloud based on the application identifier, so that the first target edge cloud sends the upgrade resource package to the vehicle computer to upgrade the application corresponding to the application identifier. When processing requests from the vehicle computer, the cloud server uses a smooth weighted round-robin algorithm to reduce the probability of the first target edge cloud being continuously selected during the upgrade process, thereby eliminating the possibility of edge cloud downtime caused by instantaneous high load when a large number of vehicle computer upgrade requests are received.
[0117] Figure 3 The upgrade method based on location information provided in this application embodiment Figure 2 .like Figure 3 As shown, the method of this embodiment is Figure 2 Based on the illustrated embodiment, a process in which the cloud server determines the first target edge cloud of this round among multiple edge clouds according to the smooth weighted polling algorithm is described in detail.
[0118] S301. After selecting the second target edge cloud according to the maximum configuration weight in the previous round, determine the current weight of the second target edge cloud according to the sum of the configuration weight of the second target edge cloud and the initial weight. The current weights of other edge clouds in the edge cloud group remain unchanged.
[0119] In this embodiment, the second target edge cloud is the target edge cloud corresponding to the maximum configuration weight selected in the previous round. The first target edge cloud and the second target edge cloud can be the same edge cloud or different edge clouds. As shown in Table 2, the target edge cloud for the first upgrade request is MEC1, and the target edge cloud for the second upgrade request is MEC1. In this case, the first target edge cloud and the second target edge cloud are the same edge cloud; while the target edge cloud for the third upgrade request is MEC2. In this case, relative to the second upgrade request, the target edge cloud for the third upgrade request is the first target edge cloud. In this case, the first target edge cloud and the second target edge cloud are different edge clouds.
[0120] In practice, in a typical weighted round-robin algorithm, when an edge cloud is selected, its current weight decreases accordingly. As shown in Table 1, each time a target edge cloud is determined, the current weight of the edge cloud with the largest configuration weight decreases by 1. This is because the configuration weight actually reflects the load capacity of the corresponding edge cloud. Therefore, after responding to an upgrade request, the edge cloud's load capacity also decreases accordingly.
[0121] In the smoothed weighted round-robin algorithm, the current weight of the second target edge cloud is determined by the sum of its configured weight and initial weight. This means that the decrease in the load capacity of the second target edge cloud is reflected by subtracting the sum of the initial weight from the configured weight. As shown in Table 2, the significant decrease in the current weight of the second target edge cloud, combined with the unchanged current weights of the other edge clouds in the edge cloud group, reduces the probability of the second target edge cloud being selected in the next round.
[0122] S302: Determine the configuration weight of each edge cloud based on the current weight of each edge cloud and the initial weight of each edge cloud;
[0123] In this embodiment, the configuration weight of each edge cloud is determined by adding the current weight of each edge cloud to the initial weight of each edge cloud. This operation is to reconcile the difference caused by subtracting the sum of the initial weights from the second target edge cloud in the previous round. Too large a difference will weaken the correlation between the configuration weight and the load capacity of each edge cloud. As shown in Table 2, after the second upgrade request is processed, the current weight is {-4, 2, 2}. At this time, as the edge cloud with the largest load capacity, the current weight of MEC1 cannot reflect its load capacity. After adding the initial weight {5, 1, 1}, its configuration weight is 1. This does not change its position as the smallest in the current configuration weight, avoiding the operation of MEC1 being selected as the second target edge cloud again.
[0124] Optionally, in the first round, the configuration weight of each edge cloud is the initial weight of each edge cloud.
[0125] In this embodiment, in order to reflect the load capacity of each edge cloud, the initial weight of each edge cloud is determined according to the load capacity of each edge cloud. At the same time, in the first round, the initial weight of each edge cloud is used as the configuration weight of each edge cloud.
[0126] S303: Obtain a configuration weight of each edge cloud, where the configuration weight is determined based on the current weight of each edge cloud after the second target edge cloud is selected in the previous round and the initial weight of each edge cloud;
[0127] S304: According to the configuration weight of each edge cloud, determine the edge cloud corresponding to the maximum configuration weight as the first target edge cloud.
[0128] In this embodiment, each time a new upgrade request is received, the first target edge cloud is determined based on the configured weight, rather than the current weight, because the current weight, as a transition parameter after the second target edge cloud is determined, cannot truly reflect the load capacity corresponding to each edge cloud.
[0129] This embodiment provides an upgrade method based on location information. The method determines the current weight of the second target edge cloud based on the sum of the configuration weight and the initial weight of the second target edge cloud after selecting the second target edge cloud in the previous round according to the maximum configuration weight. The current weights of other edge clouds in the edge cloud group remain unchanged. The method determines the configuration weight of each edge cloud based on the current weight and the initial weight of each edge cloud. The method obtains the configuration weight of each edge cloud, wherein the configuration weight is determined based on the current weight and the initial weight of each edge cloud after the second target edge cloud was selected in the previous round. The method determines the edge cloud corresponding to the maximum configuration weight as the first target edge cloud based on the configuration weight of each edge cloud. This method effectively reduces the probability of the second target edge cloud being selected again by using the sum of the initial weights of each edge cloud. The method uses the initial weight of each edge cloud to effectively balance the configuration weights by considering the impact of the load capacity of each edge cloud, making each target edge cloud selection smoother and fairer, and greatly reducing the probability of system downtime caused by instantaneous high load.
[0130] Figure 4 The upgrade method based on location information provided in this application embodiment Figure 2 .like Figure 4 As shown, the method of this embodiment is applied to the cloud server. Figure 2 Based on the illustrated embodiment, a detailed description is given of the process of processing the breakpoint resume request sent by the first target edge cloud after the upgrade resource package corresponding to the application identifier is stored on the first target edge cloud.
[0131] S401: Obtain a resumable transmission request sent by a first target edge cloud, where the resumable transmission request is used to indicate that there is a problem with the transmission between the vehicle computer and the first target edge cloud; the resumable transmission request includes an upgrade resource package, download progress information, and location information of the vehicle computer;
[0132] In this embodiment, the position of the vehicle computer will change due to the movement of the vehicle. Therefore, when the position of the vehicle computer moves to the edge of the edge cloud coverage, transmission problems will occur, resulting in low transmission efficiency or transmission failure. At this time, the first target edge cloud will send a breakpoint resume request to the cloud server. Breakpoint resume means that when downloading or uploading client software, the download or upload task (a file or a compressed package) is artificially divided into several parts, and each part is uploaded or downloaded using a thread. If a network failure occurs, the unfinished part can be continued from the part that has been uploaded or downloaded, without having to upload or download from the beginning.
[0133] The first target edge cloud sends a power-download resumable request in the hope that the cloud server will reselect a new edge cloud to deliver the upgrade resource package based on the vehicle's location information. Therefore, the power-download resumable request includes the upgrade resource package, download progress information, and the vehicle's location information.
[0134] Optionally, the first target edge cloud determines that there is a transmission problem based on the fact that the distance between the first target edge cloud and the vehicle computer is greater than a preset distance and the transmission signal strength between the first target edge cloud and the vehicle computer is less than a preset strength.
[0135] Because transmission signal strength is inversely proportional to distance, when the vehicle's position moves to the edge of the edge cloud's coverage area, the transmission signal strength between the first target edge cloud and the vehicle will weaken, and transmission efficiency will decrease. Therefore, a preset distance and preset strength are set. When the distance between the vehicle and the first target edge cloud is greater than the preset distance, and the transmission signal strength is less than the preset strength, it is determined that there is a transmission problem.
[0136] S402: determining a third target edge cloud in the new edge cloud group based on the location information;
[0137] In this embodiment, because the location of the vehicle computer has changed, the cloud server needs to re-determine the edge cloud group based on the tracking area code in the vehicle computer location information, and then use the smooth weighted algorithm to determine the third target edge cloud from the new edge cloud group.
[0138] S403: Transmit the upgrade resource package and download progress information to the third target edge cloud, so that the third target edge cloud transmits the upgrade resource package breakpoints to the vehicle computer.
[0139] In this embodiment, after the third target edge cloud is determined, the cloud server transmits the upgrade edge package and download progress information in the resume request to the third target edge cloud, so that the third target edge cloud can transmit the upgrade resource package that has not been transmitted to the vehicle computer according to the download progress information.
[0140] Those skilled in the art will understand that once the third target edge cloud establishes a connection with the vehicle computer, the connection between the first target edge cloud and the vehicle computer will be disconnected. After each target edge cloud establishes a connection with the vehicle computer, if the transmission of the upgrade resource package is not completed, that is, if a transmission problem occurs, a breakpoint resume request will be sent to the cloud server until the transmission of the upgrade resource package is completed.
[0141] This embodiment provides a location-based upgrade method. The method obtains a breakpoint-resume download request from a first target edge cloud; determines a third target edge cloud within a new edge cloud group based on the location information; and transmits the upgrade resource package and download progress information to the third target edge cloud, so that the third target edge cloud transmits the upgrade resource package to the vehicle computer. By using breakpoint-resume downloading, if the upgrade resource package transmission fails due to a change in the vehicle computer's location, the method requests the cloud server to reselect a target edge cloud to complete the transmission, thereby achieving uninterrupted downloading while the vehicle is moving.
[0142] Figure 5 This is a schematic diagram of the structure of an upgrade device based on location information provided in an embodiment of the present application. The device of this embodiment can be in the form of software and / or hardware. Figure 5 As shown, an embodiment of the present application provides an upgrade device 500 based on location information, including a receiving module 501, a first determining module 502, a second determining module 503 and a storage module 504.
[0143] The receiving module 501 is used to receive an upgrade request sent by the vehicle computer, where the upgrade request includes an application identifier and location information;
[0144] A first determining module 502 is configured to determine an edge cloud group based on the location information, wherein a plurality of edge clouds in the edge cloud group cover a location indicated by the location information;
[0145] A second determination module 503 is configured to determine a first target edge cloud of this round from among multiple edge clouds according to a smooth weighted round-robin algorithm, where the smooth weighted round-robin algorithm is configured to reduce a probability of the first target edge cloud being continuously selected;
[0146] The storage module 504 is used to store the upgrade resource package corresponding to the application identifier on the first target edge cloud according to the application identifier, so that the first target edge cloud sends the upgrade resource package to the vehicle computer to upgrade the application corresponding to the application identifier.
[0147] In one possible implementation, the second determining module is specifically configured to:
[0148] Obtaining a configuration weight for each edge cloud, where the configuration weight is determined based on the current weight of each edge cloud after the second target edge cloud is selected in the previous round and the initial weight of each edge cloud;
[0149] According to the configuration weight of each edge cloud, the edge cloud corresponding to the maximum configuration weight is determined as the first target edge cloud.
[0150] In one possible implementation, the second determining module is specifically configured to:
[0151] After the second target edge cloud is selected according to the maximum configuration weight in the previous round, the current weight of the second target edge cloud is determined according to the sum of the configuration weight of the second target edge cloud and the initial weight. The current weights of other edge clouds in the edge cloud group remain unchanged.
[0152] According to the current weight of each edge cloud and the initial weight of each edge cloud, the configuration weight of each edge cloud is determined.
[0153] In one possible implementation, in the first round, the configuration weight of each edge cloud is the initial weight of each edge cloud.
[0154] In one possible implementation, the first determining module is specifically configured to:
[0155] According to the location information of the vehicle computer, obtain the tracking area code of the vehicle computer;
[0156] According to the tracking area code of the vehicle computer, the edge cloud group identification value is determined using the hash mapping algorithm;
[0157] Gets the edge cloud group indicated by the edge cloud group ID value.
[0158] In one possible implementation, the first determining module is specifically configured to:
[0159] Obtain a resumable transmission request sent by the first target edge cloud, where the resumable transmission request is used to indicate that there is a problem with the transmission between the vehicle computer and the first target edge cloud; the resumable transmission request includes an upgrade resource package, download progress information, and location information of the vehicle computer;
[0160] performing the step of determining a third target edge cloud in the new edge cloud group based on the location information;
[0161] The upgrade resource package and download progress information are transmitted to the third target edge cloud, so that the third target edge cloud transmits the upgrade resource package breakpoints to the vehicle computer.
[0162] In one possible implementation, the first target edge cloud determines that there is a transmission problem based on the distance between the first target edge cloud and the vehicle computer being greater than a preset distance and the transmission signal strength between the first target edge cloud and the vehicle computer being less than a preset strength.
[0163] In one possible implementation, the receiving module is specifically configured to:
[0164] Receive a detection request sent by the vehicle computer, the detection request including an application identifier;
[0165] According to the application identifier, determine the latest version of the application corresponding to the application identifier;
[0166] Send the latest version of the application to the vehicle computer so that the vehicle computer can determine to upgrade the application based on the latest version.
[0167] The device for upgrading based on location information provided in this embodiment can be used to execute the above method embodiments. Its implementation principles and technical effects are similar and will not be described in detail in this embodiment.
[0168] Figure 6 This is a hardware structure diagram of the upgrade device based on location information provided in the embodiment of this application. Figure 6 As shown, the location information-based upgrade device 600 includes:
[0169] Processor 601 and memory 602;
[0170] Memory stores computer-executable instructions;
[0171] The processor executes the computer-executable instructions stored in the memory 602 , so that the electronic device executes the above-mentioned location information-based upgrading method.
[0172] It should be understood that the processor 601 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), or application-specific integrated circuits (ASIC). A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The memory 602 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk, or an optical disk.
[0173] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement an upgrade method based on location information.
[0174] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0175] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. An upgrade method based on location information, It is characterized in that Applied to a cloud server, the features include: Receiving an upgrade request sent by the vehicle computer, the upgrade request including an application identifier and location information; Determine an edge cloud group according to the location information, wherein a plurality of edge clouds in the edge cloud group cover the location indicated by the location information; Determine a first target edge cloud of this round from among the multiple edge clouds according to a smooth weighted round-robin algorithm, wherein the smooth weighted round-robin algorithm is used to reduce the probability that the first target edge cloud is continuously selected; According to the application identifier, storing the upgrade resource package corresponding to the application identifier on the first target edge cloud, so that the first target edge cloud sends the upgrade resource package to the vehicle computer to upgrade the application corresponding to the application identifier; The method further comprises: After storing the upgrade resource package corresponding to the application identifier on the first target edge cloud according to the application identifier, obtaining a breakpoint resume request sent by the first target edge cloud, wherein the breakpoint resume request is used to indicate that there is a problem in the transmission between the vehicle computer and the first target edge cloud; The breakpoint resume request includes the upgrade resource package, download progress information and location information of the vehicle computer; executing the step of determining a third target edge cloud in the new edge cloud group according to the location information; The upgrade resource package and the download progress information are transmitted to the third target edge cloud, so that the third target edge cloud transmits the upgrade resource package breakpoints to the vehicle computer.
2. The method according to claim 1, It is characterized in that The step of determining the first target edge cloud of this round from among the plurality of edge clouds according to the smooth weighted polling algorithm comprises: Obtaining a configuration weight of each edge cloud, wherein the configuration weight is determined according to a current weight of each edge cloud after the second target edge cloud is selected in the previous round and an initial weight of each edge cloud; According to the configuration weight of each edge cloud, the edge cloud corresponding to the maximum configuration weight is determined as the first target edge cloud.
3. The method according to claim 2, It is characterized in that Before obtaining the configuration weight of each edge cloud, the method further includes: After the second target edge cloud is selected according to the maximum configuration weight in the previous round, the current weight of the second target edge cloud is determined according to the sum of the configuration weight and the initial weight of the second target edge cloud, and the current weights of other edge clouds in the edge cloud group remain unchanged; The configuration weight of each edge cloud is determined according to the current weight of each edge cloud and the initial weight of each edge cloud.
4. The method according to claim 2, It is characterized in that In the first round, the configured weight of each edge cloud is the initial weight of each edge cloud.
5. The method according to claim 1, It is characterized in that The step of determining the edge cloud group according to the location information includes: According to the location information of the vehicle computer, obtaining the tracking area code of the vehicle computer; According to the tracking area code of the vehicle computer, a hash mapping algorithm is used to determine the edge cloud group identification value; Obtain the edge cloud group indicated by the edge cloud group identification value.
6. The method according to claim 1, It is characterized in that The first target edge cloud determines that there is a transmission problem based on that the distance between the first target edge cloud and the vehicle computer is greater than a preset distance and the transmission signal strength between the first target edge cloud and the vehicle computer is less than a preset strength.
7. The method according to claim 1, It is characterized in that Before receiving the upgrade request sent by the vehicle computer, the method includes: Receiving a detection request sent by the vehicle computer, wherein the detection request includes an application identifier; According to the application identifier, determine the latest version number of the application corresponding to the application identifier; The latest version number of the application is sent to the vehicle computer, so that the vehicle computer determines to upgrade the application according to the latest version number.
8. An upgrade device based on location information, It is characterized in that Applied to cloud servers, including: A receiving module, used to receive an upgrade request sent by the vehicle computer, wherein the upgrade request includes an application identifier and location information; A first determining module, configured to determine an edge cloud group according to the location information, wherein a plurality of edge clouds in the edge cloud group cover a location indicated by the location information; A second determination module, configured to determine a first target edge cloud of this round from among the plurality of edge clouds according to a smooth weighted round-robin algorithm, wherein the smooth weighted round-robin algorithm is configured to reduce a probability that the first target edge cloud is continuously selected; A storage module, configured to store the upgrade resource package corresponding to the application identifier on a first target edge cloud according to the application identifier, so that the first target edge cloud sends the upgrade resource package to the vehicle computer to upgrade the application corresponding to the application identifier; After storing the upgrade resource package corresponding to the application identifier on the first target edge cloud according to the application identifier, the first determining module is specifically used to: Obtaining a breakpoint resume request sent by the first target edge cloud, where the breakpoint resume request is used to indicate that there is a problem in the transmission between the vehicle computer and the first target edge cloud; The breakpoint resume request includes the upgrade resource package, download progress information and location information of the vehicle computer; executing the step of determining a third target edge cloud in the new edge cloud group according to the location information; The upgrade resource package and the download progress information are transmitted to the third target edge cloud, so that the third target edge cloud transmits the upgrade resource package breakpoints to the vehicle computer.
9. An electronic device, include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement an upgrade method based on location information as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Over-the-air downloading method and system based on Internet of Vehicles, equipment and medium
CN112333659A
Management and control method, device and equipment of simulcast system and simulcast system
CN114553964A
