OTA upgrading method, device and equipment based on dynamic distribution and storage medium

By adopting the dynamic distribution OTA upgrade method in the Internet of Vehicles OTA upgrade system, virtual service bearers are deployed and upgrade packets are sent to virtual service bearers, the problems of low efficiency of OTA upgrades and waste of resources in the existing technology are solved, and more efficient downloading and resource utilization are achieved.

CN119512589AActive Publication Date: 2025-02-25CHINA MOBILE M2M +1

Patent Information

Application Number
CN202411353975.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-02-25
Estimated Expiration
2044-09-26

AI Technical Summary

Technical Problem

The existing OTA upgrade method of Internet of Vehicles causes hundreds of thousands or even millions of devices to access the CDN server at the same time, resulting in a decrease in download speed or failure in downloading. It also requires the CDN server to occupy resources when the OTA upgrade is not carried out, which has the problem of low download efficiency and wasting system resources.

Method used

The OTA upgrade method based on dynamic distribution is adopted, by sending an upgrade request to the target terminal, receiving location information, determining the target upgrade configuration information, deploying a virtual service bearer and sending the upgrade packet to the virtual service bearer, so that the target terminal can obtain the upgrade packet from the virtual service bearer and complete the upgrade.

Benefits of technology

It improves the download efficiency and resource utilization rate during the OTA upgrade process, avoids the terminal's direct access to the upgrade server and affects the download speed, and reasonably allocates system server resources, reducing resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512589A_ABST
    Figure CN119512589A_ABST
Patent Text Reader

Abstract

The invention discloses an OTA upgrading method and device based on dynamic distribution, equipment and a storage medium, and belongs to the field of Internet of Things. The method is applied to an OTA upgrading system, and comprises the following steps: acquiring an upgrading request sent to a target terminal and receiving position information of the target terminal sent by the target terminal in response to the upgrading request; the method comprises the steps of determining target upgrade configuration information corresponding to upgrade information and position information, then deploying a virtual service bearer based on the target upgrade configuration information, and finally sending an upgrade package to the virtual service bearer, so that a target terminal obtains the upgrade package from the virtual service bearer and completes upgrade. The downloading efficiency and the resource utilization rate in the OTA upgrading process can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of Internet of Things, and in particular, relates to an OTA upgrade method, device, equipment, computer-readable storage medium and computer program product based on dynamic distribution. Background Art

[0002] Over The Air (OTA) technology is a technology that remotely manages terminal devices and Subscriber Identity Module (SIM) card data through the air interface of mobile communications. Through OTA technology, it is possible to remotely upgrade terminal devices, update software, repair faults, etc. Specifically, when a vehicle equipped with a vehicle terminal needs to update software, the vehicle terminal will automatically update the software remotely through OTA technology.

[0003] The existing OTA upgrade method for the Internet of Vehicles generally uploads the upgrade package to the OTA upgrade server, which pushes it to the Content Delivery Network (CDN) server on the Internet. When the upgrade request is initiated through the OTA upgrade system, the vehicle terminal responds to the upgrade request and accesses the corresponding uniform resource locator (URL), which is resolved to the CDN server by the Domain Name System (DNS) on the Internet, and the OTA upgrade is completed after obtaining the corresponding upgrade package. The OTA upgrade method in the prior art will cause hundreds of thousands or even millions of devices to access the CDN server at the same time, resulting in a decrease in download speed or download failure. Moreover, when the OTA upgrade is not performed, the CDN server needs to be available all the time to occupy resources. Therefore, the OTA upgrade method in the prior art has the problems of low download efficiency and waste of system resources. Summary of the invention

[0004] The embodiments of the present application provide an OTA upgrade method, apparatus, device, computer-readable storage medium, and computer program product based on dynamic distribution, which can improve download efficiency and resource utilization during the OTA upgrade process.

[0005] In a first aspect, an embodiment of the present application provides an OTA upgrade method based on dynamic distribution, which is applied to an OTA upgrade system. The method includes:

[0006] Send an upgrade request to the target terminal;

[0007] receiving location information of the target terminal sent by the target terminal in response to the upgrade request;

[0008] Determine the target upgrade configuration information corresponding to the upgrade information and the location information from the preset mapping relationship between the upgrade information, the location information and the upgrade configuration information;

[0009] Deploy virtual service bearer based on target upgrade configuration information;

[0010] The upgrade package is sent to the virtual service bearer, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade.

[0011] In an achievable implementation, before sending the upgrade request to the target terminal, the method further includes:

[0012] Obtaining upgrade condition information and first terminal information;

[0013] A target terminal is screened out from the first terminal based on the upgrade condition information and the first terminal information.

[0014] In one possible implementation, the upgrade information includes upgrade package information, concurrent upgrade information, and upgrade time interval information;

[0015] Determining target upgrade configuration information corresponding to the upgrade information and the location information from a preset mapping relationship between the upgrade information, the location information, and the upgrade configuration information includes:

[0016] From the preset mapping relationship among the upgrade package information, concurrent upgrade information, upgrade time interval information, location information and upgrade configuration information, target upgrade configuration information corresponding to the upgrade package information, concurrent upgrade information, upgrade time interval information and location information is determined.

[0017] In an achievable implementation, determining target upgrade configuration information corresponding to the upgrade information and the location information from a preset mapping relationship between the upgrade information, the location information, and the upgrade configuration information includes:

[0018] The upgrade information and the location information are input into the trained prediction model, and the target upgrade configuration information corresponding to the upgrade information and the location information is determined through the mapping relationship between the upgrade information, the location information and the upgrade configuration information preset in the prediction model.

[0019] In one possible implementation, the prediction model includes a multi-head attention layer and a recurrent neural network layer;

[0020] Before inputting the upgrade information and the location information into the trained prediction model, and determining the target upgrade configuration information corresponding to the upgrade information and the location information through the mapping relationship among the upgrade information, the location information and the upgrade configuration information preset in the prediction model, the method further includes:

[0021] Input the features of the historical upgrade information and the historical position information into the multi-head attention layer, and use the multi-head attention layer to perform linear transformation and weighted summation on the features of the historical upgrade information and the historical position information to obtain a first feature sequence;

[0022] The first feature sequence is input into the recurrent neural network layer, and the recurrent neural network layer is used to perform state transfer, gating processing and sequence processing on the first feature to obtain a second feature sequence;

[0023] The second feature sequence is subjected to data conversion to obtain upgrade configuration information corresponding to the historical upgrade information and the historical position information.

[0024] In an achievable implementation, before inputting the upgrade information and the location information into the trained prediction model and determining the target upgrade configuration information corresponding to the upgrade information and the location information through the mapping relationship among the upgrade information, the location information and the upgrade configuration information preset in the prediction model, the method further includes:

[0025] Obtain a training sample set, the training sample set includes multiple training samples, each training sample includes upgrade information, location information and a corresponding real upgrade configuration information label;

[0026] For each training sample, the following steps are performed respectively: the upgrade information and location information are input into a preset prediction model to obtain a predicted upgrade configuration information label;

[0027] Determine the loss function value of the prediction model according to the actual upgrade configuration information label and the predicted upgrade configuration information label;

[0028] When the loss function value does not meet the training stop condition, the model parameters of the prediction model are adjusted to obtain an updated prediction model, and the upgrade information and location information are returned to the preset prediction model to obtain the prediction upgrade configuration information label until the training stop condition is met to obtain a trained prediction model.

[0029] In an achievable implementation, the target upgrade configuration information includes upgrade bandwidth information, server storage information, and regional deployment information; and deploying a virtual service bearer based on the target upgrade configuration information includes:

[0030] Based on the upgrade bandwidth information, server storage information and regional deployment information, a virtual service bearer is deployed, where the virtual service bearer includes a virtual user plane functional unit and a virtual edge server.

[0031] In an achievable implementation, sending the upgrade package to the virtual service bearer so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade includes:

[0032] Establishing a first network path based on connection parameters of the virtual edge server;

[0033] The upgrade package is sent to the virtual service bearer by using the first network path, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade.

[0034] In an achievable implementation, sending the upgrade package to the virtual service bearer so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade includes:

[0035] Send the upgrade package to the virtual service bearer;

[0036] Determine the correspondence between the target terminal and the virtual user plane functional unit based on the location information and the regional deployment information of the target terminal;

[0037] Acquire first location information of the target terminal;

[0038] Based on the first location information and the correspondence between the target terminal and the virtual user plane function unit, determining whether the target terminal is within the service area of ​​the virtual user plane function, where the service area of ​​the virtual edge server is determined by the regional deployment information;

[0039] In case the first location is within the service area of ​​the virtual edge server, establishing an edge user plane function anchor point and a user local connection;

[0040] A second network path is established based on the virtual user plane function unit, the edge user plane function anchor point and the user local connection unit, so that the target terminal obtains the upgrade package from the virtual service bearer through the second network path and completes the upgrade.

[0041] In an achievable implementation, after sending the upgrade package to the virtual service bearer so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade, the method further includes:

[0042] Calculating the number of target terminals within the service area of ​​the virtual edge server according to the first location information and the service area of ​​the virtual edge server;

[0043] When it is found that all target terminals in the service area of ​​the virtual edge server have completed the upgrade, the virtual service bearer is deleted.

[0044] In a second aspect, an embodiment of the present application provides an OTA upgrade device based on dynamic distribution, the device comprising:

[0045] A sending module, used for sending an upgrade request to a target terminal;

[0046] A receiving module, configured to receive location information of a target terminal sent by the target terminal in response to an upgrade request;

[0047] A determination module, used to determine target upgrade configuration information corresponding to the upgrade information and the location information from a preset mapping relationship between the upgrade information, the location information and the upgrade configuration information;

[0048] A deployment module, used to deploy virtual service bearers based on target upgrade configuration information;

[0049] The sending module is further used to send the upgrade package to the virtual service bearer, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade.

[0050] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement an OTA upgrade method based on dynamic distribution in any one of the implementations of the first aspect.

[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, an OTA upgrade method based on dynamic distribution is implemented as in any one of the embodiments of the first aspect.

[0052] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes an OTA upgrade method based on dynamic distribution as in any one of the implementations of the first aspect.

[0053] The OTA upgrade method, device, equipment, computer-readable storage medium and computer program product based on dynamic distribution of the embodiment of the present application are applied to the OTA upgrade system, and the method includes obtaining the location information of the target terminal that sends the upgrade request to the target terminal and receives the target terminal in response to the upgrade request, and then determining the target upgrade configuration information corresponding to the upgrade information and the location information from the mapping relationship between the preset upgrade information, location information and upgrade configuration information, and then deploying the virtual service bearer based on the target upgrade configuration information; finally, sending the upgrade package to the virtual service bearer, so that the target terminal can obtain the upgrade package from the virtual service bearer and complete the upgrade. Based on the upgrade requirement information such as the location information and upgrade information of the upgrade terminal, the upgrade configuration information required to complete the terminal upgrade is determined, and then the corresponding virtual service bearer is generated using the upgrade configuration information, and the upgrade package is sent to the virtual service bearer, so that the upgrade terminal can obtain the upgrade package from the virtual service bearer, and complete the upgrade based on the upgrade package, thereby avoiding the terminal directly accessing the upgrade server at the same time to affect the download speed of the upgrade package, and reasonably allocating the system server resources to the corresponding virtual service bearer for downloading the upgrade package, which also improves the resource utilization and avoids the waste of system resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0055] Figure 1 This is an architecture diagram of an OTA upgrade system based on dynamic distribution provided by an embodiment of the present application;

[0056] Figure 2 It is a flowchart of an OTA upgrade method based on dynamic distribution provided by an embodiment of the present application;

[0057] Figure 3 It is a flowchart of a method for a terminal to obtain an upgrade package from a virtual service bearer provided by an embodiment of the present application;

[0058] Figure 4 It is a structural diagram of an OTA upgrade device based on dynamic distribution provided by an embodiment of the present application;

[0059] Figure 5 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0060] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0061] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0062] Over The Air (OTA) technology is a technology that remotely manages terminal devices and Subscriber Identity Module (SIM) card data through the air interface of mobile communications. Through OTA technology, it is possible to remotely upgrade terminal devices, update software, repair faults, etc. Specifically, when a vehicle equipped with a vehicle terminal needs to update software, the vehicle terminal will automatically update the software remotely through OTA technology.

[0063] The existing OTA upgrade method for the Internet of Vehicles generally uploads the upgrade package to the OTA upgrade server, which pushes it to the Content Delivery Network (CDN) server on the Internet. When the upgrade request is initiated through the OTA upgrade system, the vehicle terminal responds to the upgrade request and accesses the corresponding uniform resource locator (URL), which is resolved to the CDN server by the Domain Name System (DNS) on the Internet, and the OTA upgrade is completed after obtaining the corresponding upgrade package. The OTA upgrade method in the prior art will cause hundreds of thousands or even millions of devices to access the CDN server at the same time, resulting in a decrease in download speed or download failure. Moreover, when the OTA upgrade is not performed, the CDN server needs to be available all the time to occupy resources. Therefore, the OTA upgrade method in the prior art has the problems of low download efficiency and waste of system resources.

[0064] In order to solve the problems of the prior art, the embodiments of the present application provide an OTA upgrade method, apparatus, device, computer-readable storage medium and computer program product based on dynamic distribution.

[0065] An embodiment of the present application provides an OTA upgrade method based on dynamic distribution. The OTA upgrade method based on dynamic distribution provided by the embodiment of the present application is introduced below in conjunction with the accompanying drawings.

[0066] Figure 1 The following is an architecture diagram of an OTA upgrade system based on dynamic distribution provided by an embodiment of the present application. Figure 2 A flow chart of an OTA upgrade method based on dynamic distribution provided by an embodiment of the present application is shown.

[0067] like Figure 1 The architecture diagram of the system shown in the figure shows that the complete system includes the terminal system and the OTA upgrade system. The terminal system includes the vehicle-mounted terminal UE (User Equipment) and the wireless access network RAN ​​(Radio Access Network); the OTA upgrade system includes the intranet, edge nodes and information scheduling and transmission components; the intranet includes the OTA scheduling server, OTA task server, OTA upgrade package storage server and firewall; the edge node includes the virtual MEC (Multi-access Edge Computing) server, the virtual UPF (User Plane Function) and the virtual firewall; the information scheduling and transmission components include PCF (Packet Control Function), SMF (Session Management Function), NEF (Network Exposure Function) and AF (Application Function).

[0068] based on Figure 1 For details on the OTA upgrade method based on dynamic distribution, see Figure 2 The method is applied to an OTA upgrade system. The method may include the following steps: steps S210 to S250.

[0069] S210: Send an upgrade request to the target terminal.

[0070] The OTA upgrade system sends an upgrade request directly to the target terminal in the terminal system, i.e. the target vehicle terminal UE, through the network path between the OTA upgrade system, UPF and the terminal system, based on the target terminal information that needs to be upgraded by the user in the OTA task server of the intranet. The OTA upgrade package is stored in the OTA upgrade storage server of the intranet.

[0071] S220: Receive the location information of the target terminal sent by the target terminal in response to the upgrade request.

[0072] After the target upgrade terminal UE in the terminal system receives the upgrade request through the wireless access network RAN, it uses the terminal's own global navigation satellite system (GNSS) to obtain the current position coordinates and sends the position coordinates to the OTA upgrade system. The OTA upgrade system receives the position coordinates sent by the target vehicle terminal UE in response to the upgrade request. The position coordinates can be in the form of GPS coordinates, Beidou coordinates, etc.

[0073] S230: Determine target upgrade configuration information corresponding to the upgrade information and the location information from a preset mapping relationship among the upgrade information, the location information and the upgrade configuration information.

[0074] After the OTA upgrade receives the location information of the target vehicle terminal UE, the number of vehicles in different areas is counted according to the location coordinates in the location information. In the established mapping relationship between the upgrade information, location information and upgrade configuration information, the corresponding target upgrade configuration information can be determined based on the upgrade information such as the upgrade package, network status and time interval related to this upgrade, as well as the number of vehicles in different areas counted based on the location information of the vehicle terminal UE. The upgrade configuration information may include the optimal location and service area range of the deployment server, network bandwidth and storage capacity, etc.

[0075] S240: Deploy a virtual service bearer based on the target upgrade configuration information.

[0076] Based on the optimal location of the deployment server and the service area range, network bandwidth, storage capacity and other upgrade configuration information, the OTA upgrade system creates a corresponding virtual edge node in the OTA upgrade system, calls the relevant interfaces of AF or NEF, and creates a virtual service bearer in the virtual edge node according to the upgrade configuration information. The virtual service bearer may include a virtual UPF, a virtual MEC server and a virtual firewall, and after initialization, obtains the corresponding URL and open port and other related connection parameters of the virtual service bearer.

[0077] S250: Send the upgrade package to the virtual service bearer, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade.

[0078] The OTA upgrade system establishes a network path between the intranet and the virtual edge node based on the relevant connection parameters carried by the virtual service. Through this network path, the upgrade package in the intranet's OTA upgrade storage server is sent to the virtual MEC server carried by the virtual service, so that the target vehicle terminal UE can download the upgrade package from the corresponding virtual MEC server and complete the OTA upgrade based on the upgrade package.

[0079] The OTA upgrade method, device, equipment, computer-readable storage medium and computer program product based on dynamic distribution of this embodiment are applied to the OTA upgrade system. The method includes obtaining the location information of the target terminal that sends an upgrade request to the target terminal and receives the target terminal's response to the upgrade request, and then determining the target upgrade configuration information corresponding to the upgrade information and the location information from the mapping relationship between the preset upgrade information, location information and upgrade configuration information, and then deploying the virtual service bearer based on the target upgrade configuration information; finally, sending the upgrade package to the virtual service bearer, so that the target terminal can obtain the upgrade package from the virtual service bearer and complete the upgrade. Based on the upgrade requirement information such as the location information and upgrade information of the upgrade terminal, the upgrade configuration information required to complete the terminal upgrade is determined, and then the corresponding virtual service bearer is generated using the upgrade configuration information, and the upgrade package is sent to the virtual service bearer, so that the upgrade terminal can obtain the upgrade package from the virtual service bearer, and complete the upgrade based on the upgrade package, thereby avoiding the terminal directly accessing the upgrade server at the same time to affect the download speed of the upgrade package, and reasonably allocating the system server resources to the corresponding virtual service bearer for downloading the upgrade package, which also improves the resource utilization and avoids the waste of system resources.

[0080] As another implementation of the present application, before step S310: sending an upgrade request to the target terminal, the method may further include:

[0081] Acquire upgrade condition information and first terminal information; and select a target terminal from the first terminal based on the upgrade condition information and the first terminal information.

[0082] The upgrade condition information and the first terminal information created by the user in the OTA task server of the intranet are obtained. The upgrade condition information includes upgrade scheduling conditions such as the target upgrade model or vehicle, the target upgrade version and the area where the vehicle is located.

[0083] In one embodiment, the upgrade scheduling conditions are divided into static scheduling conditions and dynamic scheduling conditions. The static scheduling conditions include but are not limited to vehicle-related information such as vehicle model, vehicle VIN, brand, manufacturing year, and power type. Dynamic scheduling conditions include information that needs to change in real time, such as time and geographical area. The first terminal information refers to terminal status information such as system versions and regional locations of all terminals.

[0084] The OTA task server selects the target terminals to be upgraded from all terminals based on upgrade scheduling conditions such as the target upgrade model or vehicle, the target upgrade version, and the region where the vehicle is located, as well as terminal status information such as the system version and regional location of all terminals.

[0085] This embodiment obtains the upgrade condition information and the information of the first terminal to filter out the target terminal to be upgraded, which can ensure that only terminals that meet specific conditions will receive the upgrade request, saving system resources such as network bandwidth and improving the effectiveness of the upgrade process.

[0086] As another implementation of the present application, the upgrade information in step S220 includes upgrade package information, concurrent upgrade information and upgrade time interval information;

[0087] Step S220: Determine the target upgrade configuration information corresponding to the upgrade information and the location information from the preset mapping relationship between the upgrade information, the location information and the upgrade configuration information, including:

[0088] From the preset mapping relationship among the upgrade package information, concurrent upgrade information, upgrade time interval information, location information and upgrade configuration information, target upgrade configuration information corresponding to the upgrade package information, concurrent upgrade information, upgrade time interval information and location information is determined.

[0089] The upgrade information includes upgradeable package information, concurrent upgrade information, and upgrade time interval information. The upgrade package information may include information such as the upgrade package size during the upgrade process, the concurrent upgrade information may include information such as network concurrency during the upgrade process, and the upgrade time interval information may include information such as the download time interval of the upgrade package during the upgrade process.

[0090] After the OTA upgrade receives the location information of the target vehicle terminal UE, the number of vehicles in different areas is counted according to the location coordinates in the location information. In the mapping relationship between the upgrade package information, concurrent upgrade information, upgrade time interval information, location information and upgrade configuration information that has been established, the corresponding target upgrade configuration information can be determined according to the upgrade package size, network concurrency and upgrade package download time interval during the upgrade process related to this upgrade, as well as the number of vehicles in different areas counted based on the location information of the vehicle terminal UE. The upgrade configuration information may include the optimal location and service area range of the deployment server, network bandwidth and storage capacity, etc.

[0091] By considering multi-dimensional data such as upgrade package information, concurrent upgrade information, upgrade time interval information and location information, this implementation enables the system to more accurately match the most suitable upgrade configuration information for specific devices, so as to more reasonably allocate system server resources and improve system resource utilization.

[0092] As another implementation of the present application, step S230: determining target upgrade configuration information corresponding to the upgrade information and the location information from a preset mapping relationship among the upgrade information, the location information and the upgrade configuration information, includes:

[0093] The upgrade information and the location information are input into the trained prediction model, and the target upgrade configuration information corresponding to the upgrade information and the location information is determined through the mapping relationship between the upgrade information, the location information and the upgrade configuration information preset in the prediction model.

[0094] After the OTA upgrade receives the location information of the target vehicle terminal UE, the number of vehicles in different areas is counted according to the location coordinates in the location information, and the upgrade information such as the upgrade package size, network concurrency status and installation package download time interval related to this upgrade, as well as the number of vehicles in different areas counted based on the location information of the vehicle terminal UE are input into the trained prediction model. The corresponding target upgrade configuration information can be predicted through the mapping relationship between the upgrade information, location information and upgrade configuration information that has been established in the prediction model. The upgrade configuration information may include the optimal location and service area range of the deployment server, network bandwidth and storage capacity, etc.

[0095] This embodiment can significantly reduce the time for manual analysis and configuration by automatically determining target upgrade configuration information using a prediction model, thereby improving efficiency, and can better optimize resource utilization by matching optimal upgrade configuration information.

[0096] As another implementation of the present application, the prediction model includes a multi-head attention layer and a recurrent neural network layer;

[0097] Before step S230: inputting the upgrade information and the location information into the trained prediction model and determining the target upgrade configuration information corresponding to the upgrade information and the location information through the mapping relationship among the upgrade information, the location information and the upgrade configuration information preset in the prediction model, the method further includes:

[0098] The features of the historical upgrade information and the historical position information are input into the multi-head attention layer, and the multi-head attention layer is used to perform linear transformation and weighted summation on the features of the historical upgrade information and the historical position information to obtain a first feature sequence; the first feature sequence is input into the recurrent neural network layer, and the recurrent neural network layer is used to perform state transfer, gating processing and sequence processing on the first feature to obtain a second feature sequence; the second feature sequence is subjected to data conversion to obtain the upgrade configuration information corresponding to the historical upgrade information and the historical position information.

[0099] The prediction model adopts a hybrid neural network model of multi-head attention combined with recurrent neural network RNN. The prediction model may include an input feature layer, a multi-head attention layer, a recurrent neural network layer, a fully connected layer, and an output layer. The multi-head attention mechanism can capture the complex relationship between input features and is suitable for capturing nonlinear relationships in this embodiment. The RNN model takes into account time series information and is suitable for feature relationships with historical trends. Combining the multi-head attention model and the RNN model can capture the relationship between different time steps and features.

[0100] The historical upgrade information and historical location information are input as feature sequences into the input feature layer of the trained prediction model. For each region i in the input feature sequence, input feature x i =[c i ,f i ,n i ,s i ] including the number of terminals in the area c i 、Upgrade package size f i 、Network concurrency i , download time interval s i In order to process time series data, the time step t is used as an additional dimension, and the adjusted input feature sequence X i,t =[x i,1 ,x i,2 ,...,x i,t ]. In the input feature layer, for each input feature x i,t , first perform batch normalization operation through formula (1):

[0101]

[0102] Here, ∈ is a small positive number used to avoid the denominator being zero.

[0103] Then define a weight vector W = [w c ,w f ,w n ,w s ] T , where w c ,w f ,w n ,w s The input features include the number of terminals in the area, the size of the upgrade package, network concurrency, and the weights corresponding to the download time interval, and w c +w f +w n +w s = 1, in the input feature layer for each normalized input feature x i,tAfter weighted and modified activation processing by formula (2), the time series feature sequence A is obtained i,t .

[0104] A i,t =ReLU(W·X i,t ) (2)

[0105] Where ReLU is the modified activation function, W is the weight vector, X i,t is the input feature sequence.

[0106] The time series feature sequence A i,t Input the multi-head attention layer, where N attention heads are set. For each region i, the input temporal feature sequence is A i,t =[a i,1 ,a i,2 ,…,a i,t ] Apply the multi-head attention mechanism to obtain the multi-head attention output of region i That is, the first characteristic sequence, where for any Calculated by formula (3):

[0107]

[0108] Among them, d k is the dimension of the input parameter, is the weight parameter, and softmax is the softmax function.

[0109] The first feature is processed by the recurrent neural network layer to obtain the second feature sequence by state transfer, gating and sequence processing. i,t Input to the recurrent neural network (RNN) layer as the input sequence of the RNN. At time step t = T, the input of the RNN is O i,T , the first characteristic sequence O i,t After applying RNN to all time series data, the output second feature sequence P is obtained i =[p i,1 ,p i,2 ,…,p i,T ], where each p i,t Contains sequence information.

[0110] In one embodiment, a long short-term memory network LSTM can be selected as the model of the RNN layer. At each time step t, the LSTM unit contains three gates (input gate, forget gate and output gate) and a cell state. In the LSTM model, the first feature sequence O is calculated by formula (4). i,t Perform state transfer, gating and sequence processing to obtain the second feature sequence Pi =[p i,1 ,p i,2 ,…,p i,T ].

[0111]

[0112] Where σ is the sigmoid activation function, ⊙ represents element-wise multiplication, and W in ,W f ,W C ,W o is the weight matrix, b in ,b f ,b C ,b p is the bias vector, O i,t is the input feature of the current time step t, corresponding to the output of the multi-head attention layer, h t-1 is the hidden state at the previous time step t-1.

[0113] The second feature sequence P output by the recurrent neural network layer i Input to the fully connected layer, in the fully connected layer, the second feature sequence P is calculated by formula (5) i Perform weighted and modified activation processing to obtain the output P fc .

[0114] P fc =ReLU(W fc ·P i +b fc ) (5)

[0115] Among them, W fc is the weight, b fc is the bias vector, P i is the second feature sequence output by the recurrent neural network layer, and ReLU is the corrected activation function.

[0116] The output P of the fully connected layer fc The output layer is divided into three sub-layers, each of which corresponds to a prediction target: optimal server deployment location, server network bandwidth, and server storage capacity. In one embodiment, the prediction target can also include the server usage time period. In the output layer, the output P of the fully connected layer is calculated by formula (6): fc Perform weighted processing and output the predicted value y m .

[0117]

[0118] in, is the weight of the mth prediction target, is the bias vector, P fcis the output of the fully connected layer.

[0119] Each sublayer of the output layer outputs the predicted value y corresponding to the optimal deployment location of the server, the server network bandwidth, and the server storage capacity in a region. m , the predicted value y m The upgrade configuration information is converted into a data format corresponding to the optimal deployment position of the server, the server network bandwidth and the server storage capacity, and the upgrade configuration information corresponding to the historical upgrade information and the historical position information is obtained through data conversion.

[0120] This implementation predicts by inputting the upgrade information and location information into a trained prediction model including a multi-head attention layer and a recurrent neural network layer to obtain the upgrade configuration information corresponding to the historical upgrade information and historical location information. The multi-head attention mechanism allows the model to learn associations from different representation subspaces, thereby capturing the complex relationship between input features. The LSTM model, due to its internal memory unit and gating mechanism, can capture long-term dependencies in sequence data and can effectively filter out irrelevant information. Therefore, it can more accurately and effectively predict the upgrade configuration information corresponding to the historical upgrade information and historical location information, and optimize system resource allocation.

[0121] As another implementation of the present application, in step S230: inputting the upgrade information and the location information into the trained prediction model, and determining the target upgrade configuration information corresponding to the upgrade information and the location information through the mapping relationship between the upgrade information, the location information and the upgrade configuration information preset in the prediction model, the method further includes:

[0122] A training sample set is obtained, where the training sample set includes multiple training samples, each training sample includes upgrade information, location information and a corresponding real upgrade configuration information label; for each training sample, the following steps are performed respectively: the upgrade information and location information in each training sample are input into a preset prediction model to obtain a predicted upgrade configuration information label; the loss function value of the prediction model is determined according to the real upgrade configuration information label and the predicted upgrade configuration information label; when the loss function value does not meet the training stop condition, the model parameters of the prediction model are adjusted to obtain an updated prediction model, and the upgrade information and location information are returned to be input into the preset prediction model to obtain a predicted upgrade configuration information label, until the training stop condition is met to obtain a trained prediction model.

[0123] This embodiment trains the prediction model by constructing training samples and continuously iterating and optimizing model parameters, which can gradually improve the accuracy of the prediction model, make the prediction results closer to the actual optimal upgrade configuration, and improve the OTA upgrade efficiency.

[0124] As another implementation of the present application, the target upgrade configuration information includes upgrade bandwidth information, server storage information and regional deployment information; step S240: deploying a virtual service bearer based on the target upgrade configuration information, including:

[0125] Based on the upgrade bandwidth information, server storage information and regional deployment information, a virtual service bearer is deployed, where the virtual service bearer includes a virtual user plane functional unit and a virtual edge server.

[0126] The target upgrade configuration information includes upgrade bandwidth information, server storage information and regional deployment information; the upgrade bandwidth information refers to the optimal network bandwidth configuration of the server required to complete the upgrade of the vehicle terminals within the service area of ​​the server; the server storage information refers to the optimal server storage capacity required to complete the upgrade of the vehicle terminals within the service area of ​​the server; the regional deployment information refers to the optimal deployment location of the server and the service area range of the server.

[0127] In one embodiment, the target upgrade configuration information may include at least one upgrade bandwidth information, server storage information and regional deployment information, that is, including the optimal deployment location and service area range of at least one server, server network bandwidth and server storage capacity, etc., that is, multiple servers can be deployed at different locations according to the target upgrade configuration information, and the two servers have their own service area range, network bandwidth and storage capacity.

[0128] Based on the obtained upgrade configuration information such as the optimal deployment location and service area of ​​the server, the server network bandwidth and the server storage capacity, the OTA upgrade system creates a corresponding virtual edge node in the OTA upgrade system, and calls the relevant interfaces of AF or NEF. According to the upgrade configuration information such as the optimal deployment location and service area of ​​the server, the server network bandwidth and the server storage capacity, a virtual service bearer is created in the virtual edge node. The virtual service bearer includes a virtual user plane function unit UPF, a virtual MEC server and a virtual firewall. After initialization is completed, the corresponding URL and open port and other related connection parameters of the virtual service bearer are obtained.

[0129] This embodiment deploys virtual user plane function units and virtual edge servers based on upgrade bandwidth information, server storage information, and regional deployment information, so that computing and storage resources can be allocated more reasonably and effectively. The virtual user plane function units and virtual edge servers can be used for terminal upgrade tasks in the corresponding area, reducing the upgrade package download burden on the main server and improving the upgrade package download efficiency.

[0130] As another implementation of the present application, step S250: sending the upgrade package to the virtual service bearer, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade, including:

[0131] A first network path is established based on the connection parameters of the virtual edge server; the upgrade package is sent to the virtual service bearer using the first network path, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade.

[0132] The OTA upgrade system establishes a network path between the intranet and the virtual edge node according to the relevant connection parameters of the virtual edge server. Through this network path, the upgrade package in the OTA upgrade storage server of the intranet is sent to the virtual edge server hosted by the virtual service, so that the target vehicle terminal UE can download the upgrade package from the corresponding virtual edge server and complete the OTA upgrade based on the upgrade package.

[0133] This embodiment establishes a network path between the intranet and the virtual edge node, and sends the upgrade package in the OTA upgrade storage server to the virtual edge server, so that the upgrade terminal obtains the upgrade package from the virtual service bearer and completes the upgrade based on the upgrade package, thereby avoiding the terminal directly accessing the upgrade server at the same time to affect the upgrade package download speed and improving the upgrade package download efficiency.

[0134] As another implementation of this application, Figure 3 A schematic diagram of a process for a terminal to obtain an upgrade package from a virtual service bearer provided by an embodiment is shown. Figure 2 and Figure 3 As shown, step S250: sending the upgrade package to the virtual service bearer, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade, including:

[0135] S310: Send the upgrade package to the virtual service bearer;

[0136] S320: Determine a correspondence between the target terminal and the virtual user plane function unit based on the location information and the regional deployment information of the target terminal;

[0137] S330: Based on the first location information and the correspondence between the target terminal and the virtual user plane function unit, determine whether the target terminal is in the service area of ​​the virtual user plane function, where the service area of ​​the virtual edge server is determined by the regional deployment information;

[0138] S340: When the first location is within the service area of ​​the virtual edge server, establish an edge user plane function anchor point and a user local connection;

[0139] S350: Establish a second network path based on the virtual user plane function unit, the edge user plane function anchor point and the user local connection, so that the target terminal can obtain the upgrade package from the virtual service bearer through the second network path and complete the upgrade.

[0140] After deploying the virtual service bearer, a diversion strategy is adopted. Based on the location information of the terminal to be upgraded, the optimal deployment location of the virtual edge server, and the service area range, a corresponding relationship is established between the terminal to be upgraded in the service area of ​​the virtual edge server and the virtual edge server according to the principle of proximity. That is, a corresponding relationship between the terminal to be upgraded in the service area of ​​the virtual edge server and the virtual edge server is established, and the upgrade package download of the terminal to be upgraded in the service area is redirected to the virtual edge server through the user plane function unit. Figure 1 As shown, in the UPF diversion strategy, the location and user-signed User Local Connectivity (ULCL) solution in the UPF diversion technology is adopted, the diversion strategy is configured in the PCF, and the user signs up for the MEC service on the PCF in advance.

[0141] In one embodiment, the target upgrade configuration information may include at least one upgrade bandwidth information, server storage information and regional deployment information, that is, including the optimal deployment location and service area range of at least one server, server network bandwidth and server storage capacity, etc., that is, multiple servers may be deployed at different locations according to the target upgrade configuration information, and the two servers have their own service area range, network bandwidth and storage capacity. The location information of the terminal to be upgraded may be obtained according to the proximity principle and diverted to the nearest virtual edge server, that is, according to the proximity principle, a corresponding relationship is established between the terminal to be upgraded and the corresponding virtual edge server, and when the real-time location of the terminal to be upgraded is within the service range of the corresponding virtual edge server, the terminal to be upgraded downloads the upgrade package from the corresponding virtual edge server to complete the upgrade.

[0142] After obtaining the real-time location of the terminal to be upgraded and determining whether the terminal to be upgraded is within the service area of ​​the virtual edge server, the terminal to be upgraded is further determined to be a terminal to be upgraded that needs to download the upgrade package on the edge server according to the correspondence between the terminal to be upgraded and the virtual user plane functional unit. That is, when the terminal to be upgraded moves to the corresponding virtual edge server area, AMF reports the user location information to PCF through SMF. PCF triggers the UL CL insertion process based on the user location information and contract information, i.e., the correspondence between the terminal to be upgraded and the virtual edge server, adds an edge UPF anchor point and inserts the corresponding UL CL. Thus, a network path is established based on the virtual UPF, the edge UPF anchor point and the corresponding user local connection unit to complete the nearest routing from the terminal to the virtual edge server. When the terminal initiates an OTA upgrade package acquisition request, UPF will divert the upgrade address to the address of the virtual edge server. The terminal establishes a connection with the virtual edge server to obtain the upgrade package, and the terminal completes the final OTA upgrade based on the upgrade package.

[0143] This embodiment establishes an edge user plane function anchor point, a user local connection, and a corresponding network path when the terminal is in the service area of ​​the virtual edge server corresponding to the terminal, so that the target terminal can obtain the upgrade package from the virtual service bearer through the network path and complete the upgrade. The terminal directly obtains the upgrade package from the nearest virtual edge server, which improves the efficiency of downloading the upgrade package during the upgrade process. The establishment of the edge user plane function anchor point and the user local connection can directly obtain and process data in the local network without passing through the core network, which can improve the data transmission efficiency and reduce the burden on the core network.

[0144] As another implementation of the present application, in step S250: sending the upgrade package to the virtual service bearer so that the target terminal obtains the upgrade package from the virtual service bearer, and after completing the upgrade, the method further includes:

[0145] Calculating the number of target terminals within the service area of ​​the virtual edge server according to the first location information and the service area of ​​the virtual edge server;

[0146] When it is found that all target terminals in the service area of ​​the virtual edge server have completed the upgrade, the virtual service bearer is deleted.

[0147] According to the real-time location of the terminal to be upgraded and the service area of ​​the virtual edge server, the number of target terminals in the service area of ​​the virtual edge server is calculated. When the terminal completes the upgrade, it sends an upgrade completion message to the OTA upgrade system. When the OTA task server counts that all the terminals to be upgraded in the area where the virtual edge server is located have completed the upgrade, the OTA task service calls the relevant interface of AF or NEF to delete and release the virtual edge node and virtual service bearer created in this upgrade, so as to achieve dynamic establishment and release on demand.

[0148] In this embodiment, after all corresponding target terminals in a region have completed upgrading, the virtual service bearers that are no longer needed are deleted, thereby releasing system storage and computing resources, improving resource utilization, and avoiding waste of system resources.

[0149] Based on the same concept, the embodiment of the present application provides an OTA upgrade device based on dynamic distribution. Figure 4 The OTA upgrade device based on dynamic distribution provided in an embodiment of the present application is described in detail.

[0150] Figure 4 It is a structural block diagram of an OTA upgrade device based on dynamic distribution shown in an embodiment of the present application.

[0151] like Figure 4 As shown, the OTA upgrade device based on dynamic distribution may include:

[0152] The sending module 410 is used to send an upgrade request to a target terminal;

[0153] The receiving module 420 is used to receive the location information of the target terminal sent by the target terminal in response to the upgrade request;

[0154] The determination module 430 is used to determine the target upgrade configuration information corresponding to the upgrade information and the location information from the preset mapping relationship between the upgrade information, the location information and the upgrade configuration information;

[0155] A deployment module 440, configured to deploy a virtual service bearer based on target upgrade configuration information;

[0156] The sending module 410 is further used to send the upgrade package to the virtual service bearer, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade.

[0157] In one embodiment, before sending the upgrade request to the target terminal, the sending module 410 is further used to obtain upgrade condition information and first terminal information; and filter out the target terminal from the first terminal based on the upgrade condition information and the first terminal information.

[0158] In one embodiment, the upgrade information includes upgrade package information, concurrent upgrade information and upgrade time interval information; the determination module 430 is specifically used to determine the target upgrade configuration information corresponding to the upgrade package information, concurrent upgrade information, upgrade time interval information and location information from the mapping relationship between the preset upgrade package information, concurrent upgrade information, upgrade time interval information, location information and upgrade configuration information.

[0159] In one embodiment, the determination module 430 is specifically used to input the upgrade information and location information into a trained prediction model, and determine the target upgrade configuration information corresponding to the upgrade information and location information through the mapping relationship between the upgrade information, location information and upgrade configuration information preset in the prediction model.

[0160] In one embodiment, the prediction model includes a multi-head attention layer and a recurrent neural network layer; the determination module 430 is specifically used to input the features of the historical upgrade information and the historical position information into the multi-head attention layer, and use the multi-head attention layer to perform linear transformation and weighted summation on the features of the historical upgrade information and the historical position information to obtain a first feature sequence; the first feature sequence is input into the recurrent neural network layer, and the recurrent neural network layer is used to perform state transfer, gating processing and sequence processing on the first feature to obtain a second feature sequence; the second feature sequence is subjected to data conversion to obtain upgrade configuration information corresponding to the historical upgrade information and the historical position information.

[0161] In one embodiment, before inputting the upgrade information and location information into a trained prediction model and determining the target upgrade configuration information corresponding to the upgrade information and location information through the mapping relationship between the upgrade information, location information and upgrade configuration information preset in the prediction model, the determination module 430 is also used to obtain a training sample set, the training sample set includes multiple training samples, each training sample includes upgrade information, location information and a corresponding real upgrade configuration information label; for each training sample, the following steps are performed respectively: inputting the upgrade information and location information into a preset prediction model to obtain a predicted upgrade configuration information label; determining the loss function value of the prediction model based on the real upgrade configuration information label and the predicted upgrade configuration information label; when the loss function value does not meet the training stop condition, adjusting the model parameters of the prediction model to obtain an updated prediction model, and returning to inputting the upgrade information and location information into the preset prediction model to obtain a predicted upgrade configuration information label, until the training stop condition is met to obtain a trained prediction model.

[0162] In one embodiment, the target upgrade configuration information includes upgrade bandwidth information, server storage information and regional deployment information; the deployment module 440 is specifically used to deploy a virtual service bearer based on the upgrade bandwidth information, server storage information and regional deployment information, and the virtual service bearer includes a virtual user plane functional unit and a virtual edge server.

[0163] In one embodiment, the sending module 450 is specifically used to establish a first network path based on the connection parameters of the virtual edge server; use the first network path to send the upgrade package to the virtual service bearer, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade.

[0164] In one embodiment, the sending module 450 is specifically used to send the upgrade package to the virtual service bearer;

[0165] Determine the correspondence between the target terminal and the virtual user plane functional unit based on the location information and the regional deployment information of the target terminal;

[0166] Acquire first location information of the target terminal;

[0167] Based on the first location information and the correspondence between the target terminal and the virtual user plane function unit, determining whether the target terminal is within the service area of ​​the virtual user plane function, where the service area of ​​the virtual edge server is determined by the regional deployment information;

[0168] When the first location is within the service area of ​​the virtual edge server, an edge user plane function anchor point and a user local connection are established; a second network path is established based on the virtual user plane function unit, the edge user plane function anchor point and the user local connection, so that the target terminal obtains the upgrade package from the virtual service bearer through the second network path and completes the upgrade.

[0169] In one embodiment, after sending the upgrade package to the virtual service bearer so that the target terminal can obtain the upgrade package from the virtual service bearer and complete the upgrade, the sending module 450 is also used to

[0170] Calculating the number of target terminals within the service area of ​​the virtual edge server according to the first location information and the service area of ​​the virtual edge server;

[0171] When it is found that all target terminals in the service area of ​​the virtual edge server have completed the upgrade, the virtual service bearer is deleted.

[0172] Figure 4 Each module in the device shown has the function of realizing Figure 2 and Figure 3 The functions of each step in the process can achieve the corresponding technical effects, which will not be described in detail here for the sake of brevity.

[0173] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application is shown.

[0174] The electronic device may include a processor 510 and a memory 520 storing computer program instructions.

[0175] Specifically, the processor 510 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0176] The memory 520 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 520 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 520 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 520 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 520 is a non-volatile solid-state memory.

[0177] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present disclosure.

[0178] The processor 510 implements any one of the OTA upgrade methods based on dynamic distribution in the above embodiments by reading and executing computer program instructions stored in the memory 520 .

[0179] In one example, the electronic device may further include a communication interface 530 and a bus 540. Figure 5 As shown, the processor 510, the memory 520, and the communication interface 530 are connected via a bus 540 and communicate with each other.

[0180] The communication interface 530 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0181] Bus 540 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 540 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0182] The electronic device can execute the OTA upgrade method based on dynamic distribution in the embodiment of the present application, thereby realizing the combination of Figure 2 and Figure 3 The described OTA upgrade method based on dynamic distribution.

[0183] In addition, in combination with the OTA upgrade method based on dynamic distribution in the above embodiments, the embodiments of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the OTA upgrade methods based on dynamic distribution in the above embodiments is implemented.

[0184] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed, implements any one of the OTA upgrade methods based on dynamic distribution in the above embodiments.

[0185] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0186] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0187] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0188] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0189] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. An OTA upgrade method based on dynamic distribution, characterized in that: Applied to an OTA upgrade system, the method includes: Send an upgrade request to the target terminal; receiving location information of the target terminal sent by the target terminal in response to the upgrade request; Determine target upgrade configuration information corresponding to the upgrade information and the location information from a preset mapping relationship between the upgrade information, the location information and the upgrade configuration information; Deploy a virtual service bearer based on the target upgrade configuration information; The upgrade package is sent to the virtual service bearer, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade.

2. The OTA upgrade method according to claim 1, characterized in that: Before sending the upgrade request to the target terminal, the method further includes: Obtaining upgrade condition information and first terminal information; The target terminal is screened out from the first terminal based on the upgrade condition information and the first terminal information.

3. The OTA upgrade method according to claim 1, characterized in that: The upgrade information includes upgrade package information, concurrent upgrade information and upgrade time interval information; The determining, from a preset mapping relationship among the upgrade information, the location information and the upgrade configuration information, target upgrade configuration information corresponding to the upgrade information and the location information comprises: The target upgrade configuration information corresponding to the upgrade package information, the concurrent upgrade information, the upgrade time interval information and the location information is determined from the mapping relationship among the preset upgrade package information, the concurrent upgrade information, the upgrade time interval information, the location information and the upgrade configuration information.

4. The OTA upgrade method according to claim 1, characterized in that: The determining, from a preset mapping relationship among the upgrade information, the location information and the upgrade configuration information, target upgrade configuration information corresponding to the upgrade information and the location information comprises: The upgrade information and the location information are input into a trained prediction model, and target upgrade configuration information corresponding to the upgrade information and the location information is determined through a mapping relationship among the upgrade information, location information and upgrade configuration information preset in the prediction model.

5. The OTA upgrade method according to claim 4, characterized in that: The prediction model includes a multi-head attention layer and a recurrent neural network layer; Before inputting the upgrade information and the location information into the trained prediction model, and determining target upgrade configuration information corresponding to the upgrade information and the location information through a mapping relationship among the upgrade information, location information, and upgrade configuration information preset in the prediction model, the method further includes: Inputting the features of the historical upgrade information and the historical position information into the multi-head attention layer, and using the multi-head attention layer to perform linear transformation and weighted summation on the features of the historical upgrade information and the historical position information to obtain a first feature sequence; Inputting the first feature sequence into the recurrent neural network layer, and using the recurrent neural network layer to perform state transfer, gating processing and sequence processing on the first feature to obtain a second feature sequence; The second feature sequence is subjected to data conversion to obtain upgrade configuration information corresponding to the historical upgrade information and the historical position information.

6. The OTA upgrade method according to claim 5, characterized in that: Before inputting the upgrade information and the location information into the trained prediction model and determining target upgrade configuration information corresponding to the upgrade information and the location information through a mapping relationship among the upgrade information, location information and upgrade configuration information preset in the prediction model, the method further includes: Acquire a training sample set, the training sample set comprising a plurality of training samples, each of the training samples comprising the upgrade information, the location information and a corresponding real upgrade configuration information label; For each training sample, the following steps are performed respectively: inputting the upgrade information and the location information into the preset prediction model to obtain a predicted upgrade configuration information label; Determining a loss function value of the prediction model according to the real upgrade configuration information label and the predicted upgrade configuration information label; When the loss function value does not meet the training stop condition, the model parameters of the prediction model are adjusted to obtain an updated prediction model, and the upgrade information and the location information are returned to the preset prediction model to obtain a prediction upgrade configuration information label until the training stop condition is met to obtain a trained prediction model.

7. The OTA upgrade method according to claim 1, characterized in that: The target upgrade configuration information includes upgrade bandwidth information, server storage information, and regional deployment information; and the deploying of a virtual service bearer based on the target upgrade configuration information includes: The virtual service bearer is deployed based on the upgrade bandwidth information, the server storage information and the regional deployment information, where the virtual service bearer includes a virtual user plane function unit and a virtual edge server.

8. The OTA upgrade method according to claim 7, characterized in that: The sending of the upgrade package to the virtual service bearer so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade includes: establishing a first network path based on the connection parameters of the virtual edge server; The upgrade package is sent to the virtual service bearer by using the first network path, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade.

9. The OTA upgrade method according to claim 8, characterized in that: The sending of the upgrade package to the virtual service bearer so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade includes: Sending the upgrade package to the virtual service bearer; Determining a correspondence between the target terminal and the virtual user plane function unit based on the location information of the target terminal and the area deployment information; Acquire first location information of the target terminal; Based on the first location information and the correspondence between the target terminal and the virtual user plane function unit, determining whether the target terminal is within the service area of ​​the virtual user plane function, the service area of ​​the virtual edge server being determined by the area deployment information; When the first location is within the service area of ​​the virtual edge server, establishing an edge user plane function anchor point and a user local connection; A second network path is established based on the virtual user plane function unit, the edge user plane function anchor point and the user local connection unit, so that the target terminal obtains the upgrade package from the virtual service bearer through the second network path and completes the upgrade.

10. The OTA upgrade method according to claim 9, characterized in that: After sending the upgrade package to the virtual service bearer so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade, the method further includes: Calculating the number of target terminals within the service area of ​​the virtual edge server according to the first location information and the service area of ​​the virtual edge server; When it is found that all target terminals in the service area of ​​the virtual edge server have completed upgrading, the virtual service bearer is deleted.

11. An OTA upgrade device based on dynamic distribution, characterized in that: The device comprises: A sending module, used for sending an upgrade request to a target terminal; A receiving module, configured to receive the location information of the target terminal sent by the target terminal in response to the upgrade request; A determination module, configured to determine target upgrade configuration information corresponding to the upgrade information and the location information from a preset mapping relationship between the upgrade information, the location information and the upgrade configuration information; A deployment module, configured to deploy a virtual service bearer based on the target upgrade configuration information; The sending module is further used to send the upgrade package to the virtual service bearer, so that the target terminal obtains the upgrade package from the virtual service bearer and completes the upgrade.

12. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the OTA upgrade method based on dynamic distribution is implemented as described in any one of claims 1-10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the OTA upgrade method based on dynamic distribution as described in any one of claims 1-10 is implemented.

14. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the OTA upgrade method based on dynamic distribution as described in any one of claims 1-10.

Citation Information

Patent Citations

  • End point to edge node interaction in wireless communication networks

    CN109565459A

  • Terminal software upgrading method and upgrading system

    CN110602688A

  • Gradient dataset aware configuration for over-the-air (OTA) model aggregation in federated learning

    CN116601997A

  • Telepresence through OTA VR broadcast streams

    US20230037736A1

Cited By

  • Intelligent remote upgrading method and device, equipment and storage medium

    CN119854286A