CN115955471A - OTA (over the air) upgrading method and system of network terminal equipment - Google Patents

OTA (over the air) upgrading method and system of network terminal equipment Download PDF

Info

Publication number
CN115955471A
CN115955471A CN202211637708.9A CN202211637708A CN115955471A CN 115955471 A CN115955471 A CN 115955471A CN 202211637708 A CN202211637708 A CN 202211637708A CN 115955471 A CN115955471 A CN 115955471A
Authority
CN
China
Prior art keywords
ota
terminal
upgrading
upgrade
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211637708.9A
Other languages
Chinese (zh)
Inventor
刘帅
王博
古志东
温博雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guoqi Zhiduan Chengdu Technology Co ltd
Original Assignee
Guoqi Zhiduan Chengdu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guoqi Zhiduan Chengdu Technology Co ltd filed Critical Guoqi Zhiduan Chengdu Technology Co ltd
Priority to CN202211637708.9A priority Critical patent/CN115955471A/en
Publication of CN115955471A publication Critical patent/CN115955471A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an OTA (over the air) upgrading method and system of network terminal equipment, wherein the method comprises the following steps: and the scheduling control service module is used for receiving routing data sent by the OTA terminals, determining an upgrading strategy according to the routing data, dividing the OTA terminals into a first OTA terminal and a second OTA terminal, acquiring upgrading firmware data from the CDN service system by the first OTA terminal, and acquiring upgrading firmware data from the first OTA terminal by the second OTA terminal. The system comprises an OTA service end and a plurality of OTA terminals. The invention effectively solves the problems that the requests of the upgrading package files in the prior OTA technology are all obtained from the CDN service system, and the corresponding hardware cost is increased aiming at mass requests, and has the advantages of high efficiency, high terminal utilization rate, low cost and the like.

Description

OTA (over the air) upgrading method and system of network terminal equipment
Technical Field
The invention relates to the technical field of communication, in particular to an OTA (over the air) upgrading method and system of network terminal equipment.
Background
OTA is called Over The Air in its entirety, and Chinese meaning is Over The Air. The technology originates from a mobile phone network, and programs and data can be remotely managed and updated through a mobile communication network (such as GSM) or other networks with access to the Internet. Compared with traditional flash upgrading, OTA upgrading can be directly completed on line in terminal equipment, only a mobile network or a wifi network is needed, upgrading does not need backup data, and after general upgrading is completed, automatic restarting equipment can be completed. However, the terminal needs to be pre-loaded with an upgrade toolkit in advance for interacting with the upgrade platform to obtain the upgrade firmware data. A general platform adopts a mode that one terminal corresponds to an upgrading platform, the platform issues a strategy in a form of pushing upgrading tasks in the whole network, and the terminal is started to acquire a task request strategy.
The existing OTA upgrading technology architecture generally comprises an OTA service end, an OTA terminal and an OTA upgrading object, wherein the OTA service end provides a series of management functions of upgrading firmware data, upgraded asset management, authority management, safety management and the like. And simultaneously, file service for upgrading firmware data is provided, so that the terminal can acquire upgrading packet data through a network, and then the required application and firmware can be upgraded at the terminal according to the corresponding upgrading object.
In the prior art, files of the OTA technology are stored in a server, requests of upgrading package files are all obtained from a CDN service system of the server, and for massive requests, capacity expansion of access request quantity is realized in a mode of directly increasing corresponding hardware cost (CDN service systems, gateways, switches and the like). Therefore, how to reduce the corresponding hardware cost when the OTA is upgraded becomes a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of this, embodiments of the present invention provide an OTA upgrading method and system for a network terminal device, so as to solve the problem in the prior art that the hardware cost is increased when software is upgraded by an OTA technology.
According to a first aspect, an embodiment of the present invention provides an OTA upgrading method for a network terminal device, where the method includes the following steps: the scheduling control service module is used for receiving routing data sent by a plurality of OTA terminals, wherein the routing data is routing data between each OTA terminal and the CDN service system; determining an upgrade strategy according to the routing data of the OTA terminals, wherein the upgrade strategy is used for dividing the OTA terminals into a first OTA terminal and a second OTA terminal, the first OTA terminal acquires upgrade firmware data from a CDN service system, and the second OTA terminal acquires the upgrade firmware data from the first OTA terminal; sending a first notification message to the first OTA terminal, wherein the first notification message is used for indicating the first OTA terminal to acquire and cache upgrade firmware data from the CDN service system; and sending a second notification message to the second OTA terminal under the condition of receiving a message that the upgrade firmware data sent by the first OTA terminal is successfully acquired, wherein the second notification message is used for indicating the second OTA terminal to acquire an upgrade package from the first OTA terminal.
Based on the technical scheme, the invention realizes the control of the OTA service end on the distribution of the upgrade firmware data of the OTA terminal by introducing the scheduling control service module into the OTA service end. And the second OTA terminal in the same sub-network utilizes the local area network resource thereof to distribute the upgraded firmware data through the first OTA terminal. According to the structural characteristics of the network where the OTA terminal is located, the computing resources and the storage resources of the terminal equipment are utilized, the hardware requirement on the OTA server is reduced, the access amount of the terminal during OTA upgrading and the utilization rate of the terminal side network are increased on the premise that the OTA server is not required to be expanded, the public network only needs to upgrade the first OTA terminal in the whole upgrading process, and only dispatches, monitors and manages the second OTA terminal, so that the corresponding hardware cost is reduced.
With reference to the first aspect, in a first implementation manner of the first aspect, before sending the second notification message to the second OTA terminal, the method further includes: receiving service interface information sent by the first OTA terminal; the second notification message comprises service interface information of the first OTA terminal and is used for indicating the second OTA terminal to access the first OTA terminal according to the service interface information and acquiring upgrading firmware data from a storage area of the first OTA terminal.
Based on the improved technical scheme, the invention can realize that the second OTA terminal acquires the upgrade firmware data from the first OTA terminal without acquiring the upgrade firmware data from the CDN service system, thereby reducing the corresponding hardware cost.
With reference to the first aspect, in a second implementation manner of the first aspect, after sending a second notification message to the second OTA terminal in a case of receiving a message that the upgrade firmware data acquisition sent by the first OTA terminal is successful, the method further includes: the scheduling control service module receives a message that the OTA terminals with a preset proportion finish upgrading in the OTA terminals, and sends a third notification message to the first OTA terminal, wherein the third notification message is used for indicating the first OTA terminal to stop responding to a request for acquiring an upgrading packet sent by a second OTA terminal; and sending a fourth notification message to the second OTA terminals which are not upgraded, wherein the fourth notification message is used for indicating the second OTA terminals which are not upgraded to acquire and cache upgrade firmware data from the CDN service system.
Based on the improved technical scheme, after the upgrading of most OTA terminals is completed, the invention enables the rest OTA terminals to directly acquire the upgrading firmware data from the CDN service system, thereby not only reducing the corresponding hardware cost, but also improving the upgrading efficiency.
According to a second aspect, an embodiment of the present invention provides an OTA upgrading method for a network terminal device, including the following steps: receiving an upgrade notification sent by an OTA upgrade service module, analyzing and acquiring routing data from a local path of the OTA terminal to the CDN service system in a network message mode; reporting the routing data to a scheduling control service module, wherein the scheduling control service module is used for determining an upgrading strategy according to the routing data reported by a plurality of OTA terminals, and the upgrading strategy divides the OTA terminals into a first OTA terminal which needs to acquire upgrading firmware data from a CDN service system and a second OTA terminal which acquires the upgrading firmware data from the first OTA terminal; receiving a fifth message notification sent by the scheduling control module, wherein the fifth message is used for the scheduling control service module to notify the first OTA terminal to acquire and cache upgrade firmware data from the CDN service system; sending the service interface information of the first OTA terminal to a scheduling control service module, wherein the scheduling control service module is used for sending the service interface information of the first OTA terminal to a second OTA terminal through a sixth message notification after the first OTA terminal successfully acquires and caches the upgrade firmware data, and the sixth message notification is used for notifying the second OTA terminal to acquire the upgrade firmware data from the first OTA terminal; and responding to a request of a second OTA terminal for acquiring the upgrade firmware data, and sending the upgrade firmware data to the second OTA terminal.
Based on the improved technical scheme, the invention utilizes the calculation resources and the storage resources of the OTA terminal equipment according to the structural characteristics of the network where the OTA terminal is positioned, reduces the hardware requirement on the service end, and increases the access amount when the OTA terminal is upgraded and the utilization rate of the network on the terminal side on the premise of not needing the capacity expansion of the service end.
With reference to the second aspect, in a first implementation manner of the second aspect, the upgrade firmware data is stored in a storage area of the first OTA terminal.
Based on the improved technical scheme, the second OTA terminal acquires the upgrade firmware data from the storage area of the first OTA terminal without acquiring the upgrade firmware data from the CDN service system, so that the hardware requirement on the service end is reduced.
With reference to the second aspect, in a second implementation manner of the second aspect, the first OTA terminal uploads an upgrade service state to the scheduling control service module, where the upgrade service state includes an upgrade state, and an acquisition and cache state of the upgrade firmware data.
Based on the improved technical scheme, the OTA service end can acquire the upgrading service state of the OTA terminal in time, further better schedule and monitor the whole upgrading process, and improve the upgrading efficiency of the OTA terminal.
According to a third aspect, an embodiment of the present invention provides an OTA upgrading method for a network terminal device, including the following steps: receiving an upgrade notification sent by an OTA upgrade service module, analyzing and acquiring routing data from a local path of the OTA terminal to the CDN service system in a network message mode; reporting the routing data to a scheduling control service module, wherein the scheduling control service module is used for determining an upgrade strategy according to routing data reported by a plurality of OTA terminals, the upgrade strategy divides the OTA terminals into a first OTA terminal which needs to acquire upgrade firmware data from a CDN service system and a second OTA terminal which acquires the upgrade firmware data from the first OTA terminal, the scheduling control module further informs the first OTA terminal of acquiring and caching the upgrade firmware data from the CDN service system through a fifth message, receives service interface information of the first OTA terminal, and sends the service interface information of the first OTA terminal to the second OTA terminal through a seventh message notice after the first OTA terminal successfully acquires and caches the upgrade firmware data, and the seventh message notice is used for informing the second OTA terminal of acquiring the upgrade data from the first OTA terminal; and receiving a seventh message notification sent by the scheduling control service module, and sending a data request for acquiring the firmware upgrading data to the first OTA terminal. And receiving the firmware upgrading data sent by the first OTA terminal responding to the data request.
Based on the improved technical scheme, the invention realizes the control of the OTA service end on the distribution of the upgrade firmware data of the OTA terminal, enables the OTA terminal in the same sub-network to utilize the local area network resource to distribute the upgrade firmware data, and increases the access amount when the OTA terminal is upgraded and the utilization rate of the terminal side network on the premise of not needing the capacity expansion of the OTA service end, thereby reducing the corresponding hardware cost.
With reference to the third aspect, in a first implementation manner of the third aspect, the second OTA terminal uploads the upgrade service status to the scheduling control service module.
Based on the improved technical scheme, the invention realizes that the OTA server side monitors the upgrading state of the OTA terminal in time, acquires and caches the upgrading firmware data, monitors and schedules the whole upgrading state and improves the reliability of OTA upgrading.
According to a fourth aspect, an embodiment of the present invention provides an OTA upgrading system for a network terminal device, where the system includes: the OTA server side is provided with a plurality of OTA terminals; the OTA terminals are mutually independent, and each OTA terminal comprises an OTA storage area module, a distribution module, a receiving module and a scheduling and responding module; the OTA storage area module stores the upgrading firmware data during OTA upgrading; the distribution module is used for distributing local network data; the receiving module is used for receiving the OTA file in the local network and/or the CDN service system; the dispatching and responding module is used for dispatching and controlling the OTA upgrading according to the command of the dispatching and controlling service module; the OTA server is in communication connection with the OTA terminals and comprises an OTA upgrading service module, a CDN service system and a scheduling control service module; the OTA upgrading service module is used for sending upgrading notifications to the OTA terminals so as to instruct the OTA terminals to send upgrading firmware data to the CDN service system; the CDN service system is used for storing upgrade firmware data, responding to a request of a first OTA terminal in the OTA terminals, and sending the upgrade firmware data to the first OTA terminal; the scheduling control service module is used for determining an upgrading strategy according to the routing data of the OTA terminals, dividing the OTA terminals into a first OTA terminal needing firmware data upgrading, acquiring a second OTA terminal of the firmware data upgrading from the first OTA terminal, and receiving the routing data and the upgrading service state sent by the first OTA terminal and the second OTA terminal.
Based on the improved technical scheme, the invention introduces a terminal firmware data distribution module and a scheduling and responding module in OTA terminal equipment, and introduces a scheduling control service module in an OTA service terminal. The OTA server side is used for controlling the distribution of the upgrade firmware data of the OTA terminal, the OTA terminal in the same sub-network is used for distributing the upgrade firmware data by using local area network resources, the public network only needs to upgrade the first OTA terminal in the whole upgrade process, and only dispatches, monitors and manages the second OTA terminal, so that the access requirement on a CDN service system is reduced, and the corresponding hardware cost is reduced.
According to a fifth aspect, an embodiment of the present invention provides an electronic device, which is characterized by comprising one or more processors and a memory, wherein the memory is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the OTA upgrade method for a network terminal device according to the first aspect or any one of the implementation manners of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flow chart illustrating an OTA upgrade method of a network terminal device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an OTA upgrade method of a network terminal device according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an OTA upgrade method of a network terminal device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an OTA upgrade system of a network termination device according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an electronic device;
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in this specification, the scheduling control service module may be a program, is set at the OTA service end, belongs to a function module of the OTA service end, and may be a function module newly added to the OTA service end. And the scheduling control service module is in data connection with the OTA terminals and performs data interaction.
The OTA terminal is a terminal device specially used in a network computer environment, can acquire resources through a network, can be a mobile phone, a computer and other devices, is in data connection with an OTA server and can perform data interaction.
The CDN is called a Content Delivery Network, i.e., a Content Delivery Network. The CDN service system is arranged at the OTA service end, belongs to a functional module of the OTA service end, is in data connection with a plurality of OTA terminals and can carry out data interaction; and the OTA upgrading service module is in communication connection with the OTA upgrading service module and receives and stores upgrading firmware data sent by the OTA upgrading service module.
A message (message) is a data unit exchanged and transmitted in the network, i.e. a data block to be sent by a station at a time. The message contains complete data information to be sent, and the message is very inconsistent in length, unlimited in length and variable. The message is also a unit of network transmission, and can be continuously encapsulated into packets, packets and frames for transmission in the transmission process, wherein the encapsulation mode is to add some information sections, namely data with message headers organized in a certain format.
ICMP is called Internet Control Message Protocol (Internet Control Message Protocol) in its entirety. It is a sub-protocol of the TCP/IP protocol suite that is used to pass control messages between IP hosts and routers. Control messages refer to messages of the network itself, such as network traffic down, whether a host is reachable, whether routing is available, etc. These control messages, although not transmitting user data, play an important role in the delivery of user data.
The ARP is called Address Resolution Protocol, i.e. Address Resolution Protocol, and is a TCP/IP Protocol for acquiring a physical Address according to an IP Address. When the host sends information, the ARP request containing the target IP address is broadcasted to all the hosts on the local area network, and a return message is received, so that the physical address of the target is determined; after receiving the return message, the IP address and the physical address are stored in the local ARP cache and are reserved for a certain time, and the ARP cache is directly inquired when the next request is made so as to save resources.
IP is called Internet Protocol, i.e. Internet Protocol, and is a network communication Protocol that specifies the data format and transmission mode between all communication devices on a network, especially between one host and another host. IP is the basic protocol of INTERNET and is also a standard method for packing and addressing computer data.
The UDP is a connectionless transport layer Protocol in an OSI (Open System Interconnection) reference model, provides a transaction-oriented simple unreliable information transfer service, and is used for processing data packets in a network, and is a connectionless Protocol. The main role of the UDP protocol is to compress network data traffic into data packets, where a typical data packet is a transmission unit of binary data, the first 8 bytes of each data packet are used to contain header information, and the remaining bytes are used to contain specific transmission data.
When the OTA terminals are upgraded, the scheduling control service module is required to receive the routing data of the OTA terminals, generate corresponding scheduling strategies according to the routing data, and divide the OTA terminals into a first OTA terminal and a second OTA terminal. Specifically, during the division, the network division of the OTA server and the OTA terminals is determined according to the routing data, the network division includes a plurality of subnets, and the OTA terminals in each subnet are connected with each other to perform communication. The OTA terminals in the subnets all use the subnets to establish data connection for communication, and the method is efficient, rapid and reliable. And then selecting at least one OTA terminal in each subnet as the first OTA terminal, and acquiring upgrade firmware data from the CDN service system on behalf of the subnet, so that the terminal can be upgraded on one hand, and other second OTA terminals in the subnet can acquire the upgrade firmware data on the other hand, thereby providing service for upgrading the second OTA terminal.
The routing data includes a source address of the sending body and a destination address of the receiving body.
Example one
The embodiment of the invention discloses an OTA upgrading method of network terminal equipment, which is applied to a scheduling control service module and comprises the following steps as shown in figure 1:
step S101, the scheduling control service module receives routing data sent by a plurality of OTA terminals, wherein the routing data is routing data between each OTA terminal and the CDN service system.
In an optional embodiment, before the scheduling control service module receives the routing data sent by the OTA terminals, the OTA upgrade service module receives new upgrade firmware data and deploys the new upgrade firmware data in the CDN service system, so that in a subsequent upgrade process, the OTA terminal acquires the upgrade firmware data from the CDN service system. And the OTA upgrading service module sends an upgrading service notice to the OTA terminals to inform the OTA terminals to carry out OTA upgrading.
In an optional embodiment, after receiving the upgrade service notification, the OTA terminals each obtain respective routing data, and may further determine the routing data from each OTA terminal to the CDN service system.
In an optional embodiment, the OTA terminal analyzes and obtains routing data from a local path thereof to the CDN service system in a network message manner, for example, an ICMP network message, an ARP network message, an IP network message, a UDP network message, and the like, and sends the obtained routing data to the scheduling control service module, thereby determining the upgrade policy.
And step S102, determining an upgrading strategy according to the routing data of the OTA terminals, wherein the upgrading strategy is used for dividing the OTA terminals into a first OTA terminal and a second OTA terminal, the first OTA terminal acquires upgrading firmware data from the CDN service system, the second OTA terminal acquires the upgrading firmware data from the first OTA terminal, the upgrading firmware data does not need to be acquired from the CDN service system, and the corresponding hardware cost is reduced.
In an optional embodiment, the scheduling control service module determines whether the plurality of OTA terminals are in the same subnet according to the IP addresses and subnet masks of the plurality of OTA terminals, so that the OTA terminals in the same subnet use local area network resources to distribute OTA data, and the public network only needs to upgrade a first OTA terminal in the whole upgrading process and only schedules, monitors and manages a second OTA terminal, thereby reducing the requirement on the CDN service system.
In an alternative embodiment, when a larger network is divided into smaller networks, so-called subnets, maintenance is relatively easy for the smaller networks.
In an alternative embodiment, the subnet mask is the basis for determining whether the IP addresses of any two OTA terminals belong to the same subnet. The subnet mask has the same structure as the IP address and is a 32-bit binary number, in which the network number part is all "1" and the host number part is all "0". Whether two OTA terminals are in the same subnet can be judged by utilizing the subnet mask. And if the IP addresses of the two OTA terminals are respectively the same as the result of AND of the subnet masks of the two OTA terminals, the two OTA terminals are in the same subnet.
Step S103, a first notification message is sent to the first OTA terminal, wherein the first notification message is used for indicating the first OTA terminal to acquire and cache the upgrade firmware data from the CDN service system, and performing OTA upgrade.
In an optional embodiment, the service interface information of the first OTA terminal is sent to the scheduling control service module, wherein the scheduling control service module is configured to send the service interface information of the first OTA terminal to the second OTA terminal after the first OTA terminal successfully acquires and caches the upgrade firmware data, and notify the second OTA terminal to acquire the upgrade firmware data from the first OTA terminal, so that the second OTA terminal in the same subnet acquires the upgrade firmware data from the first OTA terminal without acquiring the upgrade firmware data from the CDN service system, thereby reducing corresponding hardware cost.
And step S104, under the condition of receiving the message of successful acquisition of the upgrade firmware data sent by the first OTA terminal, sending a second notification message to the second OTA terminal, wherein the second notification message is used for indicating the second OTA terminal to acquire the upgrade package from the first OTA terminal.
In an optional embodiment, the service interface information sent by the first OTA terminal is received before the second notification message is sent to the second OTA terminal. The second notification message comprises service interface information of the first OTA terminal and is used for indicating the second OTA terminal to access the first OTA terminal according to the service interface information and acquiring upgrade firmware data from a storage area of the first OTA terminal. The second OTA terminal obtains the upgrade firmware data from the first OTA terminal without obtaining the upgrade firmware data from the CDN service system, so that corresponding hardware cost is reduced.
In an optional embodiment, the first OTA terminal and the second OTA terminal upload the upgrade service status to the scheduling control service module, where the upgrade service status includes an upgrade status and an acquisition and cache status of upgrade firmware data, so that the scheduling control service module can control the upgrade progress of the OTA terminals according to the upgrade service status.
In an optional embodiment, the first OTA terminal and the second OTA terminal send the update completion notification to the OTA update service module, so that the OTA service terminal can timely monitor the update state of the OTA terminal, obtain and cache the update firmware data, count and record the update result, monitor and schedule the entire update state, and improve the reliability of OTA update.
In an optional embodiment, in the case of receiving a message that the upgrade firmware data sent by the first OTA terminal is successfully acquired, after sending a second notification message to the second OTA terminal, the scheduling control service module receives a message that the OTA terminals in a preset proportion in the OTA terminals complete upgrading, and sends a third notification message to the first OTA terminal, where the third notification message is used to instruct the first OTA terminal to stop responding to a request sent by the second OTA terminal to acquire an upgrade package; and sending a fourth notification message to the second OTA terminals which are not upgraded, wherein the fourth notification message is used for indicating the second OTA terminals which are not upgraded to acquire and cache upgrade firmware data from the CDN service system. After the upgrading of most OTA terminals is completed, the invention enables the rest OTA terminals to directly acquire the upgrading firmware data from the CDN service system, thereby not only reducing the corresponding hardware cost, but also improving the upgrading efficiency.
Furthermore, in the whole upgrading process, the communication of the system needs to utilize related security algorithms such as encryption, signature and the like, and the related characteristics of data such as non-forgery, non-repudiation and confidentiality are guaranteed.
The invention realizes the control of the OTA service end to the distribution of the upgrade firmware data of the OTA terminal by introducing the scheduling control service module into the OTA service end. And the second OTA terminal in the same sub-network utilizes the local area network resource thereof to distribute the upgraded firmware data through the first OTA terminal. According to the structural characteristics of the network where the OTA terminal is located, the computing resources and the storage resources of the terminal equipment are utilized, the hardware requirement on the OTA server is reduced, on the premise that the OTA server is not required to be expanded, the access amount of terminal OTA upgrading and the utilization rate of the terminal side network are increased, a public network needs to upgrade a first OTA terminal in the whole upgrading process, a plurality of second OTA terminals are dispatched, monitored and managed, and finally the remaining second OTA terminals are directly upgraded through a CDN service system, so that the corresponding hardware cost is reduced.
Example two
The embodiment of the invention discloses an OTA upgrading method of network terminal equipment, which is applied to a first OTA terminal and comprises the following steps as shown in figure 2:
step S201, receiving an upgrade notification sent by the OTA upgrade service module, analyzing and acquiring routing data from the local path of the OTA terminal to the CDN service system in a network packet manner.
In an optional embodiment, before receiving the upgrade notification sent by the OTA upgrade service module, the OTA upgrade service module receives new upgrade firmware data and deploys the new upgrade firmware data in the CDN service system, so that in a subsequent upgrade process, the OTA terminal acquires the upgrade firmware data from the CDN service system.
In an optional embodiment, after receiving the upgrade service notification, the OTA terminals each obtain respective routing data, and may further determine the routing data from each OTA terminal to the CDN service system.
Step S202, the routing data is reported to a scheduling control service module, wherein the scheduling control service module is used for determining an upgrading strategy according to the routing data reported by a plurality of OTA terminals, the upgrading strategy divides the plurality of OTA terminals into a first OTA terminal which needs to acquire upgrading firmware data from the CDN service system and a second OTA terminal which acquires the upgrading firmware data from the first OTA terminal, and the problems that the upgrading firmware data of the prior OTA technology exists in the CDN service system of the OTA service terminal, the requests for upgrading the firmware data are all acquired from the CDN service system, and the corresponding hardware cost is directly increased aiming at mass requests are solved.
Step S203, receiving a fifth message notification sent by the scheduling control module, where the fifth message is used for the scheduling control module to notify the first OTA terminal to acquire and cache the upgrade firmware data from the CDN service system.
In an alternative embodiment, the upgrade firmware data is stored in a memory area of the first OTA terminal. Based on the improved technical scheme, the second OTA terminal acquires the upgrade firmware data from the storage area of the first OTA terminal without acquiring the upgrade firmware data from the CDN service system, so that the hardware requirement on the service end is reduced.
In an optional embodiment, the first OTA terminal uploads an upgrade service status to the schedule control service module, where the upgrade service status includes an upgrade status, and an acquisition and cache status of upgrade firmware data. Based on the improved technical scheme, the OTA service end can acquire the upgrading service state of the OTA terminal in time, further better schedule and monitor the whole upgrading process, and improve the upgrading efficiency of the OTA terminal.
Step S204, the service interface information of the first OTA terminal is sent to the scheduling control service module, wherein the scheduling control service module is used for sending the service interface information of the first OTA terminal to the second OTA terminal through a sixth message notification after the first OTA terminal successfully acquires and caches the upgrade firmware data, and the sixth message notification is used for notifying the second OTA terminal to acquire the upgrade firmware data from the first OTA terminal, so that the second OTA terminal can directly acquire the upgrade firmware data from the storage area of the first OTA terminal without acquiring the upgrade firmware data from the CDN service system, and the CDN hardware cost is reduced.
In an optional embodiment, the first OTA terminal uploads an upgrade service status to the schedule control service module, where the upgrade service status includes an upgrade status, and an acquisition and cache status of upgrade firmware data. Based on the improved technical scheme, the OTA service end can acquire the upgrading service state of the OTA terminal in time, further better schedule and monitor the whole upgrading process, and improve the upgrading efficiency of the OTA terminal.
Step S205, responding to the request for the second OTA terminal to obtain the firmware upgrading data, and sending the firmware upgrading data to the second OTA terminal.
In an optional embodiment, after the upgrade of most of the OTA terminals is completed, the scheduling control service module gradually closes the first OTA terminal, the remaining second OTA terminals which are not upgraded directly acquire upgrade firmware data from the CDN service system and complete the upgrade, and the upgrade efficiency of the OTA terminal is improved through the monitoring control of the scheduling control service module.
According to the structural characteristics of the network where the OTA terminal is located, the invention reduces the hardware requirement on the server by using the computing resources and the storage resources of the OTA terminal equipment, and increases the access amount when the OTA terminal is upgraded and the utilization rate of the network on the terminal side on the premise of not needing the capacity expansion of the server.
EXAMPLE III
The embodiment of the invention discloses an OTA upgrading method of network terminal equipment, which is applied to a second OTA terminal and comprises the following steps as shown in figure 3:
step S301, receiving an upgrade notification sent by an OTA upgrade service module, analyzing and acquiring routing data from a local path of an OTA terminal to a CDN service system in a network message mode;
in an optional embodiment, before receiving the upgrade notification sent by the OTA upgrade service module, the OTA upgrade service module receives new upgrade firmware data and deploys the new upgrade firmware data in the CDN service system, so that in a subsequent upgrade process, the OTA terminal acquires the upgrade firmware data from the CDN service system.
In an optional embodiment, after the plurality of OTA terminals receive the upgrade service notification, each OTA terminal acquires its own routing data, and may further determine the routing data from each OTA terminal to the CDN service system.
Step S302, reporting the routing data to a scheduling control service module, wherein the scheduling control service module is used for determining an upgrade strategy according to the routing data reported by a plurality of OTA terminals, the upgrade strategy divides the plurality of OTA terminals into a first OTA terminal which needs to acquire upgrade firmware data from a CDN service system and a second OTA terminal which acquires the upgrade firmware data from the first OTA terminal, the scheduling control module further informs the first OTA terminal of acquiring and caching the upgrade firmware data from the CDN service system through a fifth message, receives service interface information of the first OTA terminal, and after the first OTA terminal successfully acquires and caches the upgrade firmware data, sends the service interface information of the first OTA terminal to the second OTA terminal through a seventh message notification, and the seventh message notification is used for informing the second OTA terminal of acquiring the upgrade firmware data from the first OTA terminal;
step S303, receiving a seventh message notification sent by the scheduling control service module, and sending a data request for acquiring the firmware upgrading data to the first OTA terminal;
step S304, receiving the firmware upgrading data sent by the first OTA terminal in response to the data request.
In an optional embodiment, the upgrade firmware data is stored in the storage area of the first OTA terminal, and the second OTA terminal acquires the upgrade firmware data from the storage area of the first OTA terminal, so that the upgrade firmware data is prevented from being acquired from the CDN service system, and the hardware cost is reduced.
The invention realizes the control of the OTA service end to the distribution of the upgrade firmware data of the OTA terminal, enables the OTA terminal in the same sub-network to utilize the local area network resource to distribute the upgrade firmware data, and increases the access amount when the OTA of the terminal is upgraded and the utilization rate of the terminal side network on the premise of not needing the capacity expansion of the OTA service end, thereby reducing the corresponding hardware cost.
Example four
The embodiment of the invention discloses an OTA upgrading system of network terminal equipment, as shown in figure 4, the system comprises: the OTA server side is provided with a plurality of OTA terminals;
the OTA terminals are mutually independent, and each OTA terminal comprises an OTA storage area module, a distribution module, a receiving module and a scheduling and responding module;
the OTA memory area module stores the upgrade firmware data when the OTA is upgraded;
the distribution module is used for distributing the firmware upgrading data by the local network;
the receiving module is used for receiving upgrade firmware data in a local network and/or a CDN service system;
the scheduling and responding module is used for scheduling and controlling the OTA upgrading according to the command of the scheduling and controlling service module;
the OTA service end is in communication connection with the OTA terminals and comprises a traditional OTA upgrading service module, a traditional CDN service system and a newly added scheduling control service module;
the OTA upgrading service module is used for sending upgrading notifications to the OTA terminals so as to instruct the OTA terminals to send upgrading firmware data to the CDN service system;
the CDN service system is used for storing the upgrade firmware data, responding to a request of a first OTA terminal in the OTA terminals and sending the upgrade firmware data to the first OTA terminal;
the scheduling control service module is used for determining an upgrading strategy according to the routing data of the OTA terminals, dividing the OTA terminals into a first OTA terminal needing firmware upgrading, a second OTA terminal obtaining the firmware upgrading data from the first OTA terminal, and receiving the routing data and the upgrading service state sent by the first OTA terminal and the second OTA terminal.
An embodiment of the present invention provides an electronic device, as shown in fig. 5, which includes one or more processors 501 and a memory 502, where the memory is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the OTA upgrade method of the network terminal device.
The invention introduces an updating firmware data distribution module and a scheduling and responding module in the OTA terminal. And introducing a scheduling control service module at the OTA service terminal. The OTA service end realizes the control of the distribution of the upgrade firmware data of the OTA terminal, the OTA terminal in the same sub-network utilizes the local area network resource to distribute the OTA upgrade firmware data, the public network only needs to upgrade the first OTA terminal in the whole upgrade process, and only dispatches, monitors and manages the second OTA terminal, thereby reducing the requirement on the CDN service system.
EXAMPLE five
The OTA upgrading method of the network terminal device is described below by a specific embodiment.
Assuming that the OTA terminal A, the OTA terminal B and the OTA terminal C are all devices with the same version, in the whole upgrading process, the communication of the system ensures the relevant characteristics of non-forgery, non-repudiation and confidentiality of data by using relevant security algorithms such as encryption, signature and the like, and the specific steps are as follows:
step one, an OTA upgrading service module issues new upgrading firmware data, the upgrading firmware data are sent to a CDN service system, and notifications are sent to three OTA terminals respectively.
And step two, after receiving the upgrade notification, the three OTA terminals use ICMP message analysis and obtain the routing data from the local path to the CDN service system, and send the routing data to the scheduling control service module.
And step three, the scheduling control service module determines the network relationship of the OTA terminal to be upgraded according to the routing data, analyzes which terminals are in the same network or similar networks through the network where the OTA terminal is located, selects some terminals as distribution providers, and orders the OTA terminal to start distribution service.
And step four, the OTA terminal serving as a distribution provider accesses the cloud CDN service, downloads corresponding upgrading firmware data, and submits the service state to a scheduling control service module of a service end in real time to ensure the stability of the service and the service capacity provided by the service.
And step five, the OTA terminal which is not taken as a distribution provider receives the message of the dispatching control service module and informs the service interface information of the distribution provider in the local network, the OTA terminal which is not taken as the distribution provider is accessed to the distribution provider terminal according to the information, corresponding firmware information is obtained from the OTA storage area, and the upgrading state is provided for the OTA upgrading service module.
And step six, after the majority of OTA terminals are upgraded, the scheduling control service module gradually closes the distribution provider according to the requirement, and the rest of the few OTA terminals are directly upgraded through the CDN service system.
The invention realizes the control of the OTA server to the distribution of the upgrade firmware data of the OTA terminal by introducing the scheduling control service module into the OTA server, so that the OTA terminal in the same subnet utilizes the local area network resource to distribute the upgrade firmware data, and utilizes the computing resource and the storage resource of the terminal equipment according to the structural characteristics of the network where the OTA terminal is positioned, thereby reducing the hardware requirement on the OTA server, increasing the access amount when the OTA terminal upgrades and the utilization rate of the network at the terminal side on the premise of not needing the capacity expansion of the OTA server, and the public network only needs to upgrade the first OTA terminal in the whole upgrading process and schedule, monitor and manage the second OTA terminal, thereby reducing the corresponding hardware cost.
In the description herein, references to the description of the term "the present embodiment," "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and simplifications made in the spirit of the present invention are intended to be included in the scope of the present invention.

Claims (10)

1. An OTA upgrade method for a network terminal device, the method comprising:
the scheduling control service module is used for receiving routing data sent by a plurality of OTA terminals, wherein the routing data is routing data between each OTA terminal and the CDN service system;
determining an upgrade strategy according to the routing data of the OTA terminals, wherein the upgrade strategy is used for dividing the OTA terminals into a first OTA terminal and a second OTA terminal, the first OTA terminal acquires upgrade firmware data from a CDN service system, and the second OTA terminal acquires the upgrade firmware data from the first OTA terminal;
sending a first notification message to the first OTA terminal, wherein the first notification message is used for indicating the first OTA terminal to acquire and cache upgrade firmware data from the CDN service system;
and sending a second notification message to the second OTA terminal under the condition of receiving a message of successful acquisition of the upgrade firmware data sent by the first OTA terminal, wherein the second notification message is used for indicating the second OTA terminal to acquire an upgrade package from the first OTA terminal.
2. The OTA upgrade method for network terminal equipment according to claim 1, wherein: before sending the second notification message to the second OTA terminal, the method further comprises:
receiving service interface information sent by the first OTA terminal;
the second notification message comprises service interface information of the first OTA terminal and is used for indicating the second OTA terminal to access the first OTA terminal according to the service interface information and acquiring upgrading firmware data from a storage area of the first OTA terminal.
3. The OTA upgrade method for a network termination device according to claim 1, characterized in that: under the condition of receiving the message that the upgrading firmware data sent by the first OTA terminal is successfully acquired, after sending a second notification message to the second OTA terminal, the method further comprises the following steps:
the scheduling control service module receives a message that the OTA terminals with preset proportion in the plurality of OTA terminals complete upgrading, and sends a third notification message to the first OTA terminal, wherein the third notification message is used for indicating the first OTA terminal to stop responding to a request for acquiring an upgrading packet sent by a second OTA terminal;
and sending a fourth notification message to the remaining second OTA terminals which are not upgraded, wherein the fourth notification message is used for indicating the remaining second OTA terminals which are not upgraded to acquire and cache upgrade firmware data from the CDN service system.
4. An OTA upgrading method of a network terminal device is characterized by comprising the following steps:
receiving an upgrade notification sent by an OTA upgrade service module, analyzing and acquiring routing data from a local path of the OTA terminal to the CDN service system in a network message mode;
reporting the routing data to a scheduling control service module, wherein the scheduling control service module is used for determining an upgrading strategy according to the routing data reported by a plurality of OTA terminals, and the upgrading strategy divides the OTA terminals into a first OTA terminal which needs to acquire upgrading firmware data from a CDN service system and a second OTA terminal which acquires the upgrading firmware data from the first OTA terminal;
receiving a fifth message notification sent by the scheduling control module, wherein the fifth message is used for the scheduling control service module to notify the first OTA terminal to acquire and cache upgrade firmware data from the CDN service system;
sending the service interface information of the first OTA terminal to a scheduling control service module, wherein the scheduling control service module is used for sending the service interface information of the first OTA terminal to a second OTA terminal through a sixth message notification after the first OTA terminal successfully acquires and caches the upgrade firmware data, and the sixth message notification is used for notifying the second OTA terminal to acquire the upgrade firmware data from the first OTA terminal;
and responding to a request for acquiring the firmware upgrading data by the second OTA terminal, and sending the firmware upgrading data to the second OTA terminal.
5. The OTA upgrade method for a network termination device according to claim 4, comprising: and the upgrading firmware data is stored in a storage area of the first OTA terminal.
6. The OTA upgrade method for a network termination device according to claim 4, wherein the method comprises: and the first OTA terminal uploads an upgrading service state to a dispatching control service module, wherein the upgrading service state comprises an upgrading state and an obtaining and caching state of upgrading firmware data.
7. An OTA upgrading method of a network terminal device is characterized by comprising the following steps:
receiving an upgrade notification sent by an OTA upgrade service module, analyzing and acquiring routing data from a local path of the OTA terminal to the CDN service system in a network message mode;
reporting the routing data to a scheduling control service module, wherein the scheduling control service module is used for determining an upgrading strategy according to the routing data reported by a plurality of OTA terminals, the upgrading strategy divides the OTA terminals into a first OTA terminal needing to acquire upgrading firmware data from a CDN service system and a second OTA terminal needing to acquire the upgrading firmware data from the first OTA terminal, the scheduling control module further informs the first OTA terminal of acquiring and caching the upgrading firmware data from the CDN service system through a fifth message, receives service interface information of the first OTA terminal, and sends the service interface information of the first OTA terminal to the second OTA terminal through a seventh message notice after the first OTA terminal successfully acquires and caches the upgrading firmware data, and the seventh message notice is used for informing the second OTA terminal of acquiring the upgrading firmware data from the first OTA terminal;
receiving a seventh message notification sent by the scheduling control service module, and sending a data request for acquiring the firmware upgrading data to the first OTA terminal;
and receiving the firmware upgrading data sent by the first OTA terminal responding to the data request.
8. The OTA upgrade method for a network termination device according to claim 7, wherein the method comprises: and the second OTA terminal uploads the upgrade service state to a scheduling control service module.
9. An OTA upgrade system for a network termination device, the system comprising: the OTA server side is provided with a plurality of OTA terminals;
the OTA terminals are mutually independent, and each OTA terminal comprises an OTA storage area module, a distribution module, a receiving module and a scheduling and responding module;
the OTA storage area module stores the upgrading firmware data during OTA upgrading;
the distribution module is used for distributing the firmware upgrading data through the local network;
the receiving module is used for receiving upgrade firmware data in a local network and/or a CDN service system;
the dispatching and responding module is used for dispatching and controlling the OTA upgrading according to the command of the dispatching and controlling service module;
the OTA server is in communication connection with the OTA terminals and comprises an OTA upgrading service module, a CDN service system and a scheduling control service module;
the OTA upgrading service module is used for sending upgrading notifications to the OTA terminals so as to instruct the OTA terminals to send upgrading firmware data to the CDN service system;
the CDN service system is used for storing upgrade firmware data, responding to a request of a first OTA terminal in the OTA terminals, and sending the upgrade firmware data to the first OTA terminal;
the scheduling control service module is used for determining an upgrading strategy according to the routing data of the OTA terminals, dividing the OTA terminals into a first OTA terminal needing firmware data upgrading, acquiring a second OTA terminal of the firmware data upgrading from the first OTA terminal, and receiving the routing data and the upgrading service state sent by the first OTA terminal and the second OTA terminal.
10. An electronic device comprising one or more processors and memory storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the OTA upgrade method for a network termination device of any one of claims 1 to 8.
CN202211637708.9A 2022-12-19 2022-12-19 OTA (over the air) upgrading method and system of network terminal equipment Pending CN115955471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211637708.9A CN115955471A (en) 2022-12-19 2022-12-19 OTA (over the air) upgrading method and system of network terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211637708.9A CN115955471A (en) 2022-12-19 2022-12-19 OTA (over the air) upgrading method and system of network terminal equipment

Publications (1)

Publication Number Publication Date
CN115955471A true CN115955471A (en) 2023-04-11

Family

ID=87285437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211637708.9A Pending CN115955471A (en) 2022-12-19 2022-12-19 OTA (over the air) upgrading method and system of network terminal equipment

Country Status (1)

Country Link
CN (1) CN115955471A (en)

Similar Documents

Publication Publication Date Title
US20220107848A1 (en) Edge service providing method and apparatus, and device
US10499279B2 (en) Method and apparatus for dynamic association of terminal nodes with aggregation nodes and load balancing
CN113596191B (en) Data processing method, network element equipment and readable storage medium
EP2632115B1 (en) A gateway for communication in a tactical network
CN106301959B (en) Gateway batch upgrading method and system based on WINDOWS and LINUX platform
US20210028982A1 (en) Method, device, and system for deploying static routes
US9270529B2 (en) Distributed data transmission in data networks
CN112631788B (en) Data transmission method and data transmission server
CN112187611B (en) Method, storage medium and device for establishing service tunnel
CN113572835A (en) Data processing method, network element equipment and readable storage medium
WO2015054336A2 (en) System and method of delivering data that provides service differentiation and monetization in mobile data networks
CN115955471A (en) OTA (over the air) upgrading method and system of network terminal equipment
US9112934B2 (en) Apparatus and method for configuring on-demand content delivering overlay network
CN114006910B (en) Information synchronization method and device
CN114500341A (en) Terminal real-time control method and control server under wide area network
CN112491583A (en) Data acquisition and analysis method and device
CN113783963A (en) Data transmission method, server node, gateway device and network system
CN113423078A (en) Application program network fragment selection method, application server and PCF
CN114079974A (en) Network capability opening method and device, UPF entity and CPE network element
CN114650208B (en) Device firmware upgrading method, device and medium
CN111083213B (en) Communication method and system
TWI778771B (en) Monitoring method, monitoring system and monitoring device of virtual machine operation
KR100522715B1 (en) System for managing digital home service, and management method thereof
CN108259211B (en) Equipment management method and device
WO2024098815A1 (en) Data transmission processing method and device, storage medium, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination