CN112596768B - Updating method and device of equipment, storage medium and electronic device - Google Patents

Updating method and device of equipment, storage medium and electronic device Download PDF

Info

Publication number
CN112596768B
CN112596768B CN202011485263.8A CN202011485263A CN112596768B CN 112596768 B CN112596768 B CN 112596768B CN 202011485263 A CN202011485263 A CN 202011485263A CN 112596768 B CN112596768 B CN 112596768B
Authority
CN
China
Prior art keywords
ota
target
equipment
updating
program
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.)
Active
Application number
CN202011485263.8A
Other languages
Chinese (zh)
Other versions
CN112596768A (en
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011485263.8A priority Critical patent/CN112596768B/en
Publication of CN112596768A publication Critical patent/CN112596768A/en
Application granted granted Critical
Publication of CN112596768B publication Critical patent/CN112596768B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Abstract

The application discloses a device updating method and device, a storage medium and an electronic device. Wherein the method comprises the following steps: acquiring a gradient updating strategy; and carrying out gradient updating on the OTA equipment in an updating list according to the gradient updating strategy, wherein the updating list is used for storing the OTA equipment to be updated. The method and the device solve the technical problem of high resource consumption of equipment upgrading in the related technology.

Description

Updating method and device of equipment, storage medium and electronic device
Technical Field
The present application relates to the field of intelligent devices, and in particular, to a device updating method and device, a storage medium, and an electronic apparatus.
Background
With the advent of smart cities and big data age, wireless communication will realize everything connection. Many enterprises expect that the future world wide internet of things connection will be a billion-level era. A number of object-to-object links have emerged, and we are entering the era of internet of everything (IoT).
The narrowband internet of things (Narrow Band Internet of Things, NB-IoT) becomes an important branch of the internet of everything. The NB-IoT is built in the cellular network, consumes only about 180kHz bandwidth, and can be directly deployed in the GSM network, the UMTS network or the LTE network, so that the deployment cost is reduced, and smooth upgrading is realized.
The current NB equipment and other types of OTA equipment have the problems of large consumption of system equipment upgrading resources, long consumption time and poor efficiency, and the equipment upgrading failure rate is high.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a device updating method and device, a storage medium and an electronic device, which are used for at least solving the technical problem of high resource consumption of device upgrading in the related technology.
According to an aspect of an embodiment of the present application, there is provided an update method of a device, including: acquiring a gradient updating strategy; and carrying out gradient updating on the OTA equipment in an updating list according to the gradient updating strategy, wherein the updating list is used for storing the OTA equipment to be updated.
Optionally, when performing gradient update on the OTA devices in the update list according to the gradient update policy, acquiring the number of devices of the currently updated OTA devices; and under the condition that the number of the devices does not reach the target threshold value, selecting target OTA devices from the update list to update.
Optionally, after acquiring the number of devices of the OTA device currently being updated, if the number of devices reaches the target threshold, updating the OTA device in the update list is stopped.
Optionally, when a target OTA device is selected from the update list to update, a target thread is selected from a thread pool for the target OTA device, and the target thread is used for updating the target OTA device.
Optionally, when updating the target OTA device through the target thread, opening a flow switch of the target OTA device according to hardware information of the target OTA device; after receiving an upgrade instruction, the target OTA equipment analyzes to obtain an address of an OTA server, and sends an upgrade request to the OTA server according to the address of the OTA server so as to request to obtain a springboard program; after the target OTA equipment downloads the springboard program, dividing a storage area of the target OTA equipment into a first storage partition and a second storage partition, storing the existing version program in the first storage partition, and storing the springboard program in the second storage partition; and downloading the new version program in the OTA server by using the springboard program, and upgrading the new version program.
Optionally, after updating the target OTA device through the target thread, after the target OTA device re-initiates login, the access server receives the login message, closes the flow switch of the target OTA device, and releases the connection between the target OTA device and the base station.
Optionally, after updating the target OTA device by the target thread, the device number of the currently updated OTA device is updated.
According to another aspect of the embodiments of the present application, there is also provided an updating apparatus of a device, including: the acquisition unit is used for acquiring the gradient updating strategy; and the updating unit is used for carrying out gradient updating on the OTA equipment in an updating list according to the gradient updating strategy, and the updating list is used for storing the OTA equipment to be updated.
Optionally, the updating unit is further configured to obtain the number of devices of the currently updated OTA device when performing gradient update on the OTA devices in the update list according to the gradient update policy; and under the condition that the number of the devices does not reach the target threshold value, selecting target OTA devices from the update list to update.
Optionally, the updating unit is further configured to stop updating the OTA device in the update list after acquiring the number of devices of the OTA device that is currently being updated, if the number of devices reaches the target threshold.
Optionally, the updating unit is further configured to select, when a target OTA device is selected from the update list to update, a target thread from a thread pool for the target OTA device, and update the target OTA device through the target thread.
Optionally, the updating unit is further configured to instruct, when updating the target OTA device through the target thread, to open a flow switch of the target OTA device according to hardware information of the target OTA device; after receiving an upgrade instruction, the target OTA equipment analyzes to obtain an address of an OTA server, and sends an upgrade request to the OTA server according to the address of the OTA server so as to request to obtain a springboard program; after the target OTA equipment downloads the springboard program, dividing a storage area of the target OTA equipment into a first storage partition and a second storage partition, storing the existing version program in the first storage partition, and storing the springboard program in the second storage partition; and downloading the new version program in the OTA server by using the springboard program, and upgrading the new version program.
Optionally, the updating unit is further configured to, after updating the target OTA device by the target thread, when the target OTA device re-initiates login, the access server receives a login message, closes a flow switch of the target OTA device, and releases connection between the target OTA device and the base station.
Optionally, the updating unit is further configured to update, after updating the target OTA device by the target thread, the device number of the currently updated OTA device.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that when executed performs the above-described method.
According to another aspect of the embodiments of the present application, there is also provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the method described above by the computer program.
In the embodiment of the application, the gradient update strategy is used, so that polling update is avoided, meanwhile, huge pressure caused by simultaneous update of equipment on a base station is relieved, the strategy is placed on a server, the equipment pressure is reduced, equipment update batches are actively configured, the consumption of server resources is reduced, and the technical problem of high resource consumption of equipment upgrading in the related art can be solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a flow chart of an alternative method of updating a device according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an alternative device update scheme according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an update apparatus of an alternative device according to an embodiment of the present application;
and
Fig. 4 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to the method embodiment of the device updating method, the problem that the device is in online updating and poor in updating efficiency is solved, and a solution is provided for large-scale batch updating. Fig. 1 is a flowchart of an alternative method of updating a device according to an embodiment of the present application, as shown in fig. 1, the method may include the steps of:
step S1, a gradient update strategy is obtained, the update list is used for storing OTA equipment to be updated, and the Over the Air OTA is called Over the Air, and the OTA equipment can be the OTA equipment.
All the OTA devices to be updated are stored in the update list, if the OTA devices are updated, the OTA devices are taken out of the update list, if the number of the devices currently being updated does not reach a target threshold (for example, 100) the OTA devices to be updated are taken out of the update list for updating the OTA devices, if the number of the devices currently being updated reaches the target threshold, the new OTA devices to be updated are stopped from being taken out, and if the number of the devices currently being updated is lower than the target threshold, the OTA devices are taken out from the update list again for continuing updating.
And S2, carrying out gradient update on the OTA equipment in the update list according to the gradient update strategy.
Optionally, the gradient update policy refers to gradually updating all the OTA devices to be updated (i.e. the devices in the update list), and only updating part of the devices each time, so as to avoid causing too much pressure on the server, and when the gradient update policy is used for performing gradient update on the OTA devices in the update list, acquiring the number of devices of the currently updated OTA devices; and under the condition that the number of the devices does not reach the target threshold value, selecting target OTA devices from the update list to update.
Optionally, after acquiring the number of devices of the OTA device currently being updated, if the number of devices reaches the target threshold, updating the OTA device in the update list is stopped.
Optionally, when a target OTA device is selected from the update list to update, a target thread is selected from a thread pool for the target OTA device, and the target thread is used for updating the target OTA device.
Optionally, when updating the target OTA device through the target thread, opening a flow switch of the target OTA device according to hardware information of the target OTA device, connecting the target OTA device to a base station, connecting the target OTA device to an access server through the base station, sending an upgrade instruction to the target OTA device after receiving login information of the target OTA device, analyzing to obtain an address of the OTA server after receiving the upgrade instruction, sending an upgrade request to the OTA server according to the address of the OTA server, sending a springboard program to the target OTA device after receiving the upgrade request by the OTA server, dividing a storage area of the target OTA device into a first storage partition and a second storage partition after the springboard program is downloaded by the target OTA device, storing an existing version program in the first storage partition, storing the springboard program in the second storage partition, downloading a new version program in the OTA server by the springboard program, starting to update the version after the new version program is downloaded, and switching the new version program to be completed after the new version program is self-checked.
Optionally, after updating the target OTA device through the target thread, after the target OTA device re-initiates login, the access server receives the login message, closes the flow switch of the target OTA device, and releases the connection between the target OTA device and the base station.
Optionally, after updating the target OTA device by the target thread, the device number of the currently updated OTA device is updated.
Through the steps, the gradient update strategy is used, polling type update is avoided, meanwhile, huge pressure caused by simultaneous update of equipment on a base station is relieved, the strategy is placed on a server, equipment pressure is reduced, equipment update batches are actively configured, consumption of server resources is reduced, and the technical problem of large resource consumption of equipment upgrading in the related art can be solved.
As an alternative example, as shown in fig. 2, the technical solution of the present application is further described in detail below in connection with a specific embodiment.
The scheme provides a gradient OTA upgrading strategy of NB equipment, adopts a gradient multithreading updating strategy, if full quantity updating is carried out, the connection of base stations is occupied in a large quantity when NB equipment is connected, meanwhile, if full quantity updating instructions are sent to the equipment at the moment, the NB equipment can request server resources through the base stations, and the base stations can not meet the requirement of the mass equipment when in use.
The method comprises the steps of reading all updated equipment, storing all equipment information into a database, taking out equipment in a gradient manner, e.g. taking out one piece of equipment information at intervals, putting the equipment information into a thread pool, automatically carrying out upgrading operation in the thread pool, firstly opening a flow switch of the equipment according to the hardware information of the equipment, connecting the equipment to a base station, connecting the equipment to an upgrading server through the base station, at the moment, after receiving login information of the equipment, sending an upgrading instruction to the equipment by an access server, after receiving the upgrading instruction, analyzing to obtain an OTA server address, starting to request upgrading to the OTA server, after receiving an upgrading request by the OTA server, sending a springboard program to the equipment, after downloading the springboard program by NB equipment, dividing the storage of the equipment into two areas, storing the existing version program by one area, storing the springboard program, downloading the new version program by the springboard program, after finishing the downloading of the new version program by the springboard program, starting to switch after finishing the downloading of the new version program, after finishing the self-checking of the new program, switching to initiate the new version, finishing the updating, after finishing the updating, and restarting the updating, and completing the updating by the access by the base station, and completing the connection of the equipment after finishing the updating, and completing the updating.
The method has the advantages that full-quantity updating and polling updating are avoided, a multithreading technology is used, equipment is put into at intervals for updating, a large number of equipment is prevented from simultaneously requesting server resources and base stations on line and simultaneously, base station congestion is avoided, meanwhile, a gradient updating strategy can detect the starting number of threads, when the equipment quantity updated simultaneously reaches the preset number, the input is stopped temporarily, and when the other end of the equipment quantity is accessed to a server to receive the report of a new program, namely, one piece of equipment is put into for updating after each successful updating, by the method, the time consumption of the polling updating method is reduced, the efficiency is increased compared with the full-quantity updating, the equipment updating success rate is improved, and the base station pressure is reduced.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
According to another aspect of the embodiments of the present application, there is also provided an updating apparatus for an apparatus implementing the updating method of the apparatus. Fig. 3 is a schematic diagram of an updating apparatus of an alternative device according to an embodiment of the present application, as shown in fig. 3, the apparatus may include:
an acquisition unit 31 for acquiring a gradient update policy; and the updating unit 33 is configured to perform gradient updating on the OTA devices in the update list according to the gradient updating policy.
It should be noted that, the acquiring unit 31 in this embodiment may be used to perform step S1 in the embodiment of the present application, and the updating unit 33 in this embodiment may be used to perform step S2 in the embodiment of the present application.
Through the module, the gradient update strategy is used, polling type update is avoided, meanwhile, huge pressure caused by simultaneous update of equipment on a base station is relieved, the strategy is placed on a server, equipment pressure is reduced, equipment update batches are actively configured, consumption of server resources is reduced, and the technical problem of large resource consumption of equipment upgrading in the related technology can be solved.
Optionally, the updating unit is further configured to obtain the number of devices of the currently updated OTA device when performing gradient update on the OTA devices in the update list according to the gradient update policy; and under the condition that the number of the devices does not reach the target threshold value, selecting target OTA devices from the update list to update.
Optionally, the updating unit is further configured to stop updating the OTA device in the update list after acquiring the number of devices of the OTA device that is currently being updated, if the number of devices reaches the target threshold.
Optionally, the updating unit is further configured to select, when a target OTA device is selected from the update list to update, a target thread from a thread pool for the target OTA device, and update the target OTA device through the target thread.
Optionally, the updating unit is further configured to instruct, when the target thread updates the target OTA device, to open a flow switch of the target OTA device according to hardware information of the target OTA device, connect the target OTA device to a base station, and connect the target OTA device to an access server through the base station, where the access server receives login information of the target OTA device and then sends an update instruction to the target OTA device, the target OTA device receives the update instruction and then analyzes an address of the OTA server, and sends an update request to the OTA server according to the address of the OTA server, the OTA server sends a springboard program to the target OTA device after receiving the update request, after the target OTA device downloads the springboard program, divides a storage area of the target OTA device into a first storage partition and a second storage partition, stores an existing version program in the first storage partition, stores the springboard program in the second storage partition, downloads the new version program in the OTA server by using the springboard program, after downloading the new version program, starts version update after the new version program is completed, and after the new version program is updated, the new version program is switched to be completed.
Optionally, the updating unit is further configured to, after updating the target OTA device by the target thread, when the target OTA device re-initiates login, the access server receives a login message, closes a flow switch of the target OTA device, and releases connection between the target OTA device and the base station.
Optionally, the updating unit is further configured to update, after updating the target OTA device by the target thread, the device number of the currently updated OTA device.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that, the above modules may be implemented in a corresponding hardware environment as part of the apparatus, and may be implemented in software, or may be implemented in hardware, where the hardware environment includes a network environment.
According to another aspect of the embodiments of the present application, there is also provided a server or a terminal for implementing the update method of the above device.
Fig. 4 is a block diagram of a terminal according to an embodiment of the present application, and as shown in fig. 4, the terminal may include: one or more (only one is shown) processors 201, memory 203, and transmission means 205, as shown in fig. 4, the terminal may further comprise input output devices 207.
The memory 203 may be used to store software programs and modules, such as program instructions/modules corresponding to the update methods and apparatuses of the devices in the embodiments of the present application, and the processor 201 executes the software programs and modules stored in the memory 203, thereby performing various functional applications and data processing, that is, implementing the update methods of the devices described above. Memory 203 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 203 may further comprise memory remotely located relative to the processor 201, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 205 is used for receiving or transmitting data via a network, and may also be used for data transmission between the processor and the memory. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 205 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 205 is a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
Wherein in particular the memory 203 is used for storing application programs.
The processor 201 may call the application program stored in the memory 203 through the transmission means 205 to perform the following steps:
acquiring a gradient updating strategy; and carrying out gradient updating on the OTA equipment in the updating list according to the gradient updating strategy.
The processor 201 is further configured to perform the steps of:
when the target OTA equipment is updated through the target thread, a flow switch of the target OTA equipment is opened according to hardware information of the target OTA equipment, the target OTA equipment is connected with a base station and then connected to an access server through the base station, the access server receives login information of the target OTA equipment and then sends an upgrading instruction to the target OTA equipment, the target OTA equipment receives the upgrading instruction and then analyzes to obtain an address of the OTA server, and sends an upgrading request to the OTA server according to the address of the OTA server, the OTA server sends a springboard program to the target OTA equipment after receiving the upgrading request, the target OTA equipment divides a storage area of the target OTA equipment into a first storage partition and a second storage partition after downloading the springboard program, stores the existing version program in the first storage partition, downloads the new version program in the OTA server through the springboard program, starts upgrading after the new version program is downloaded, and switches to the new version program after the new version program is self-checked.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the structure shown in fig. 4 is only illustrative, and the terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 4 is not limited to the structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in fig. 4, or have a different configuration than shown in fig. 4.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
Embodiments of the present application also provide a storage medium. Alternatively, in the present embodiment, the above-described storage medium may be used for program code for executing the update method of the device.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
acquiring a gradient updating strategy; and carrying out gradient updating on the OTA equipment in the updating list according to the gradient updating strategy.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
when the target OTA equipment is updated through the target thread, a flow switch of the target OTA equipment is opened according to hardware information of the target OTA equipment, the target OTA equipment is connected with a base station and then connected to an access server through the base station, the access server receives login information of the target OTA equipment and then sends an upgrading instruction to the target OTA equipment, the target OTA equipment receives the upgrading instruction and then analyzes to obtain an address of the OTA server, and sends an upgrading request to the OTA server according to the address of the OTA server, the OTA server sends a springboard program to the target OTA equipment after receiving the upgrading request, the target OTA equipment divides a storage area of the target OTA equipment into a first storage partition and a second storage partition after downloading the springboard program, stores the existing version program in the first storage partition, downloads the new version program in the OTA server through the springboard program, starts upgrading after the new version program is downloaded, and switches to the new version program after the new version program is self-checked.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (7)

1. A method for updating a device, comprising:
acquiring a gradient updating strategy;
gradient updating is carried out on the OTA equipment in an updating list according to the gradient updating strategy, wherein the updating list is used for storing the OTA equipment to be updated;
gradient updating of the OTA equipment in the update list according to the gradient update strategy comprises:
acquiring the number of the OTA devices currently being updated;
selecting target OTA equipment from the update list to update under the condition that the number of the equipment does not reach a target threshold value;
selecting a target OTA device from the update list for updating comprises:
selecting a target thread for the target OTA equipment from a thread pool, and updating the target OTA equipment through the target thread;
updating the target OTA device by the target thread includes:
opening a flow switch of the target OTA equipment according to the hardware information of the target OTA equipment;
the target OTA equipment is connected with a base station and then connected to an access server through the base station, and the access server sends an upgrading instruction to the target OTA equipment after receiving login information of the target OTA equipment;
after receiving an upgrade instruction, the target OTA equipment analyzes to obtain an address of an OTA server, and sends an upgrade request to the OTA server according to the address of the OTA server so as to request to obtain a springboard program;
after the target OTA equipment downloads the springboard program, dividing a storage area of the target OTA equipment into a first storage partition and a second storage partition, storing the existing version program in the first storage partition, and storing the springboard program in the second storage partition;
and downloading the new version program in the OTA server by using the springboard program, and upgrading the new version program.
2. The method of claim 1, wherein after obtaining the number of devices of the OTA device that is currently being updated, the method further comprises:
and stopping updating the OTA equipment in the updating list under the condition that the number of the equipment reaches the target threshold value.
3. The method of claim 1, wherein after updating the target OTA device by the target thread, the method further comprises:
after the target OTA equipment reinitiates login, the access server receives login information, closes a flow switch of the target OTA equipment, and releases connection between the target OTA equipment and a base station.
4. A method according to any one of claims 1 to 3, wherein after gradient updating the OTA devices in the update list according to the gradient update policy, the method further comprises:
the device number of the OTA device currently being updated is updated.
5. An apparatus for updating a device, comprising:
the acquisition unit is used for acquiring the gradient updating strategy;
the updating unit is used for carrying out gradient updating on the OTA equipment in the updating list according to the gradient updating strategy;
the updating unit is further used for acquiring the equipment number of the OTA equipment currently being updated when the OTA equipment in the updating list is subjected to gradient updating according to the gradient updating strategy; selecting target OTA equipment from the update list to update under the condition that the number of the equipment does not reach a target threshold value;
the updating unit is further configured to select a target thread from a thread pool for the target OTA device when the target OTA device is selected from the update list to update, and update the target OTA device through the target thread;
the updating unit is further used for indicating that when updating is performed on the target OTA equipment through the target thread, a flow switch of the target OTA equipment is turned on according to hardware information of the target OTA equipment; the target OTA equipment is connected with a base station and then connected to an access server through the base station, and the access server sends an upgrading instruction to the target OTA equipment after receiving login information of the target OTA equipment; after receiving an upgrade instruction, the target OTA equipment analyzes to obtain an address of an OTA server, and sends an upgrade request to the OTA server according to the address of the OTA server so as to request to obtain a springboard program; after the target OTA equipment downloads the springboard program, dividing a storage area of the target OTA equipment into a first storage partition and a second storage partition, storing the existing version program in the first storage partition, and storing the springboard program in the second storage partition; and downloading the new version program in the OTA server by using the springboard program, and upgrading the new version program.
6. A storage medium comprising a stored program, wherein the program when run performs the method of any one of the preceding claims 1 to 4.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor performs the method of any of the preceding claims 1 to 4 by means of the computer program.
CN202011485263.8A 2020-12-16 2020-12-16 Updating method and device of equipment, storage medium and electronic device Active CN112596768B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011485263.8A CN112596768B (en) 2020-12-16 2020-12-16 Updating method and device of equipment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011485263.8A CN112596768B (en) 2020-12-16 2020-12-16 Updating method and device of equipment, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112596768A CN112596768A (en) 2021-04-02
CN112596768B true CN112596768B (en) 2024-01-23

Family

ID=75196363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011485263.8A Active CN112596768B (en) 2020-12-16 2020-12-16 Updating method and device of equipment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112596768B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452553A (en) * 2021-06-18 2021-09-28 上海艾拉比智能科技有限公司 Content distribution network flow limiting method and system
CN113760931B (en) * 2021-08-20 2023-12-29 济南浪潮数据技术有限公司 Resource information access method, device, equipment and medium
CN116627474B (en) * 2023-07-21 2023-10-13 杭州海康威视数字技术股份有限公司 Intelligent equipment intelligent safety management method, device and equipment based on reinforcement learning

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189427A (en) * 2018-08-30 2019-01-11 百度在线网络技术(北京)有限公司 Using update method, device, system and storage medium
CN111078241A (en) * 2018-10-22 2020-04-28 成都鼎桥通信技术有限公司 OTA (over the air) upgrading method and device
CN111176671A (en) * 2018-11-09 2020-05-19 奇酷互联网络科技(深圳)有限公司 Method for automatically and continuously updating system, mobile terminal and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8631239B2 (en) * 2012-01-12 2014-01-14 Facebook, Inc. Multiple system images for over-the-air updates
CN104378391A (en) * 2013-08-12 2015-02-25 无锡知谷网络科技有限公司 Software updating method, system and device
US10374888B2 (en) * 2016-12-14 2019-08-06 At&T Intellectual Property I, L.P. Scheduler for upgrading access point devices efficiently
US11303516B2 (en) * 2018-08-20 2022-04-12 Shure Acquisition Holdings, Inc. Systems and methods for large scale OTA firmware update
US20200218531A1 (en) * 2019-01-07 2020-07-09 Nokia Solutions And Networks Oy OVER-THE-AIR (OTA) UPDATES OF ELECTRONIC CONTROL UNITS (ECUs) IN VEHICLES
US20200301693A1 (en) * 2019-03-19 2020-09-24 Verizon Patent And Licensing Inc. Firmware over-the-air orchestration for iot devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189427A (en) * 2018-08-30 2019-01-11 百度在线网络技术(北京)有限公司 Using update method, device, system and storage medium
CN111078241A (en) * 2018-10-22 2020-04-28 成都鼎桥通信技术有限公司 OTA (over the air) upgrading method and device
CN111176671A (en) * 2018-11-09 2020-05-19 奇酷互联网络科技(深圳)有限公司 Method for automatically and continuously updating system, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN112596768A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN112596768B (en) Updating method and device of equipment, storage medium and electronic device
CN107295609B (en) Network slice processing method and device, terminal and base station
US11659420B2 (en) Systems and methods of using network slicing for test platform
CN105916144B (en) Techniques for dynamically supporting different authentication algorithms
CN111885115B (en) Device binding changing method and device
US10224972B2 (en) Systems, methods, and computer-readable media for tracking updates and loading data
CN110381500A (en) A kind of test method, device and the computer readable storage medium of double card paging conflict
CN105530630B (en) A kind of OTA upgrade method and equipment
CN106888475B (en) Wireless system processing method, device and base station
CN112737847A (en) Node upgrading method and device, storage medium and electronic device
CN108012294A (en) A kind of method and device of network switching
CN111565479B (en) Communication method, device and system thereof
EP2999266A1 (en) Method, device and system for obtaining mobile network data resources
CN111385110B (en) Network management method and device
CN110532012B (en) Distributed system software upgrading method and device
CN107949009B (en) Method and device for detecting LTE network access result and computer storage medium
CN107147694B (en) Information processing method and device
CN114697375B (en) Voice packet switching method and device, storage medium and electronic device
CN105636015B (en) A kind of setting method and user equipment of configuration data
CN107528714B (en) Script processing method, device and system and router
CN107666728B (en) Method and base station for releasing terminal
CN109729530B (en) Cell establishing method and device
RU2791001C1 (en) Testing method for checking the process of remote initialization of embedded sim cards and an active testing system that provides such a testing method
CN113434525B (en) Cache data updating method and device, storage medium and electronic device
CN112188593B (en) Wireless configuration 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
GR01 Patent grant
GR01 Patent grant