CN111770169B - Method, device, equipment and storage medium for upgrading equipment firmware - Google Patents

Method, device, equipment and storage medium for upgrading equipment firmware Download PDF

Info

Publication number
CN111770169B
CN111770169B CN202010602483.8A CN202010602483A CN111770169B CN 111770169 B CN111770169 B CN 111770169B CN 202010602483 A CN202010602483 A CN 202010602483A CN 111770169 B CN111770169 B CN 111770169B
Authority
CN
China
Prior art keywords
firmware
equipment
information
upgraded
edge node
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
CN202010602483.8A
Other languages
Chinese (zh)
Other versions
CN111770169A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010602483.8A priority Critical patent/CN111770169B/en
Publication of CN111770169A publication Critical patent/CN111770169A/en
Application granted granted Critical
Publication of CN111770169B publication Critical patent/CN111770169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The application discloses a method, a device, equipment and a storage medium for upgrading equipment firmware, and relates to the fields of Internet of things, intelligent equipment and air downloading. The implementation scheme is as follows: transmitting device information to the edge node device, the device information being used to cause the edge node device to determine from the server whether there is upgrade information; under the condition that the server fed back by the edge node equipment has upgrading information, sending firmware to be upgraded to the edge node equipment, and enabling the edge node equipment to backup the firmware to be upgraded; and receiving updated firmware obtained from the server by the edge node equipment, and upgrading the firmware to be upgraded by utilizing the updated firmware. In the embodiment of the application, the firmware to be upgraded is firstly sent to the edge node equipment for backup and then is upgraded, so that the backup firmware to be upgraded can be utilized for system recovery under the condition of failure in upgrading, and the updated firmware is stored in the edge node equipment, so that the firmware can be directly called from the edge node equipment, and the local storage space is saved.

Description

Method, device, equipment and storage medium for upgrading equipment firmware
Technical Field
The application relates to the technical field of computers, in particular to the technical fields of Internet of things, intelligent equipment and air downloading.
Background
When the existing embedded equipment is upgraded, additional space for storing updated firmware is required to be arranged in the embedded equipment in order to realize equipment upgrading, and if the condition of upgrading failure occurs in the upgrading process, the problem that the system is damaged and cannot be recovered for use is caused.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for upgrading equipment firmware.
According to an aspect of the present application, there is provided a method for upgrading firmware of a device, including:
transmitting device information to an edge node device, wherein the device information is used for enabling the edge node device to determine whether the edge node device has upgrading information or not from a server;
under the condition that the server fed back by the edge node equipment has the upgrading information, sending firmware to be upgraded to the edge node equipment so that the edge node equipment backs up the firmware to be upgraded;
and receiving updated firmware obtained from the server by the edge node equipment, and upgrading the firmware to be upgraded by utilizing the updated firmware.
According to another aspect of the present application, there is provided a method for upgrading firmware of a device, including:
determining whether the server has upgrading information according to the equipment information of the target equipment;
sending a backup request to the target device under the condition that the server has the upgrading information, wherein the backup request is used for enabling the target device to send firmware to be upgraded;
and after the received firmware to be upgraded is backed up, the updated firmware obtained from the server is sent to the target equipment, so that the target equipment upgrades the firmware to be upgraded by utilizing the updated firmware.
According to another aspect of the present application, there is provided an apparatus for device firmware upgrade, including:
the first sending module is used for sending equipment information to the edge node equipment, and the equipment information is used for enabling the edge node equipment to determine whether the edge node equipment has upgrading information or not from a server;
the second sending module is used for sending firmware to be upgraded to the edge node equipment under the condition that the server fed back by the edge node equipment has the upgrading information, so that the edge node equipment backs up the firmware to be upgraded;
The first receiving module is used for receiving updated firmware obtained from the server by the edge node equipment and upgrading the firmware to be upgraded by utilizing the updated firmware.
According to another aspect of the present application, there is provided an apparatus for device firmware upgrade, including:
the first determining module is used for determining whether the server has upgrading information according to the equipment information of the target equipment;
the first sending module is used for sending a backup request to the target equipment under the condition that the server has the upgrading information, wherein the backup request is used for enabling the target equipment to send firmware to be upgraded;
and the second sending module is used for sending the updated firmware acquired from the server to the target equipment after the received firmware to be updated is backed up, so that the target equipment can update the firmware to be updated by using the updated firmware.
According to another aspect of the application, an electronic device is provided, where functions of the electronic device may be implemented by hardware, or may be implemented by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In one possible design, the architecture of the electronic device includes a processor and a memory, the memory storing a program for supporting the electronic device to perform the method of device firmware upgrades described above, the processor being configured to execute the program stored in the memory. The electronic device may also include a communication interface for communicating with other devices or communication networks.
According to another aspect of the present application, there is provided a non-transitory computer readable storage medium storing computer instructions for storing an electronic device and computer software instructions for the electronic device, including a program for executing the method of device firmware upgrade described above.
According to another aspect of the present application, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method as described above.
According to the technology, the problem that a system cannot be recovered after the firmware of the equipment to be upgraded fails to be upgraded in the prior art and the problem that the equipment to be upgraded needs to reserve and store updated firmware in the flash memory are solved. According to the embodiment of the application, the firmware to be upgraded is firstly sent to the edge node equipment for backup and then is upgraded, so that the system recovery by using the backup firmware to be upgraded can be realized under the condition of failure in upgrading, and the updated firmware is stored in the edge node equipment, so that the updated firmware can be directly called from the edge node equipment, and the local storage space is saved.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
FIG. 1 is a schematic diagram of a device firmware upgrade method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a device firmware upgrade method according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a device firmware upgrade method according to another embodiment of the present application;
FIG. 4 is a schematic diagram of a device firmware upgrade method according to another embodiment of the present application;
FIG. 5 is a schematic diagram of device flash partitioning according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a device firmware upgrade method according to another embodiment of the present application;
FIG. 7 is a schematic diagram of a device firmware upgrade method according to another embodiment of the present application;
FIG. 8 is a schematic diagram of a device firmware upgrade method according to another embodiment of the present application;
FIG. 9 is a schematic diagram of a device firmware upgrade method according to another embodiment of the present application;
FIG. 10 is a schematic diagram of an application example according to an embodiment of the present application;
FIG. 11 is a schematic diagram of a device firmware upgrade apparatus according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a device firmware upgrade apparatus according to another embodiment of the present application;
fig. 13 is a block diagram of an electronic device used to implement the device firmware upgrade method of an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
According to an embodiment of the present application, as shown in fig. 1, the present application provides a method for upgrading device firmware, which may be performed by a target device to be upgraded, the method including:
s10: and transmitting device information to the edge node device, wherein the device information is used for enabling the edge node device to determine whether the edge node device has upgrading information or not from the server.
The device information may include an id (Identity document, identification code) of the target device to be upgraded, firmware version number information to be upgraded, ip (Internet Protocol ) address, and the like. The specific sent device information can be selected and adjusted according to the upgrade information query requirement of the edge node device, that is, the sent device information can enable the edge node device to determine whether upgrade information exists from the server by using the information.
The target device may be any embedded device, for example, a smart speaker, a smart television, a cell phone, a tablet computer, etc.
The edge node equipment has the capabilities of edge side real-time data analysis, local data storage, real-time network connection and the like. The edge node device may be any product form device on the edge side, such as a router, a mobile phone, an intelligent device, an edge gateway, an edge controller, an edge server, and the like, which is not particularly limited herein. Interaction with the target device and the server can be realized.
The upgrade information may include an upgrade data packet, updated firmware version number information, function information, and the like. The upgrade information is used to enable the edge node device to determine whether the target device is capable of upgrade.
The communication modes among the target device, the edge node device and the server can be selected and adjusted according to the needs, including but not limited to communication modes such as local area network communication, bluetooth communication, wireless network communication, wired network communication and the like.
S20: and under the condition that the server which receives the feedback of the edge node equipment has upgrading information, sending the firmware to be upgraded to the edge node equipment so as to enable the edge node equipment to backup the firmware to be upgraded.
The firmware to be upgraded may include firmware that needs to be updated as determined from the upgrade information. Under the condition that the target device has the upgrading information in the server which receives the feedback of the edge node device, the target device can only send the firmware to be upgraded to the edge node device for backup, and can also send the system firmware associated with the firmware to be upgraded to the edge node device for backup.
S30: and receiving updated firmware obtained from the server by the edge node equipment, and upgrading the firmware to be upgraded by utilizing the updated firmware.
After receiving the updated firmware, the target device can update the firmware to be updated through streaming type refreshing, and after the refreshing is completed, the device is restarted to complete the firmware updating.
According to the technology, the problem that a system cannot be recovered after the firmware of the equipment to be upgraded fails to be upgraded in the prior art and the problem that the equipment to be upgraded needs to reserve and store updated firmware in the flash memory are solved. According to the embodiment of the application, the firmware to be upgraded is firstly sent to the edge node equipment for backup and then is upgraded, so that the system recovery by using the backup firmware to be upgraded can be realized under the condition of failure in upgrading, and the updated firmware is stored in the edge node equipment, so that the updated firmware can be directly called from the edge node equipment, and the local storage space is saved.
In one embodiment, as shown in fig. 2, the method for upgrading the firmware of the device further includes:
s40: and sending authentication information to the edge node equipment, wherein the authentication information is used for enabling the edge node equipment to determine whether interaction is performed or not, and the authentication information comprises identity information and registration upgrading hosting service information.
The identity information may include any information used to represent the target device. Registration upgrade hosting service information is used to may include registration requests or registration confirmation information. If the registration upgrade hosting service information is a registration request, the target device is allowed to register by the edge node device before legal communication can be established between the target device and the edge node device. If the registration upgrade hosting service information is registration confirmation information, the edge node device only needs to determine whether the target device is registered in advance, and if so, legal communication is established. That is, when firmware upgrade is required, the target device may initiate registration with the edge node device each time and perform communication after successful registration, or may directly confirm whether the device is a registered device only when performing registration subsequent update at the time of first communication.
According to the method and the device, the target device sends the authentication information to the edge node device, so that the edge node device and the target device can establish secure communication. The authentication information may be used as a secure transport protocol for communication between the edge node device and the target device.
In one embodiment, as shown in fig. 3, the method for upgrading the firmware of the device further includes:
s50: and sending first upgrade failure information to the edge node equipment, wherein the first upgrade failure information is used for enabling the edge node equipment to send updated firmware again.
The first upgrade failure information may be generated when the target device fails to flush the firmware to be upgraded with the updated firmware, may be generated when a communication interrupt occurs in a process that the edge node device sends the updated firmware to the target device, or may be generated when the target device runs a firmware error after updating with the updated firmware is completed.
S60: and receiving the updated firmware sent again by the edge node equipment, and upgrading the firmware to be upgraded by utilizing the updated firmware sent again.
The embodiment can realize that when the upgrading of the target equipment fails, the firmware upgrading operation is carried out on the target equipment again through the updated firmware stored by the edge node equipment. The method not only can timely upgrade the target equipment again under the condition of upgrade failure, but also can effectively solve the problem that the data loss can be generated after the upgrade failure of the target equipment due to the fact that the updated firmware is stored in the target equipment by acquiring the updated firmware from the edge node equipment, and saves the storage space of the target equipment.
In one embodiment, as shown in fig. 4, the method for upgrading the firmware of the device further includes:
s70: and sending second upgrade failure information to the edge node equipment, wherein the second upgrade failure information is used for enabling the edge node equipment to send backup firmware to be upgraded.
And generating second upgrade failure information under the condition that the target equipment acquires the updated firmware from the edge node equipment again based on the first upgrade failure information to upgrade and fails to upgrade.
S80: and receiving the backup firmware to be upgraded sent by the edge node equipment, and recovering the damaged firmware to be upgraded by utilizing the backup firmware to be upgraded.
In this embodiment, the firmware to be upgraded, which is damaged due to the upgrade failure, can be recovered through the backup firmware to be upgraded sent by the edge node device, so that the target device is ensured to be still capable of being recovered to the state before the upgrade after the upgrade failure, and the target device is enabled to be used in normal operation. The problem that in the prior art, an equipment system cannot be recovered due to upgrade failure is solved.
In one example, to implement the steps of the embodiments described above, a new partition may be created in Flash (Flash memory) of the target device as a small system for use in upgrading firmware to be upgraded. The small system has simple functions, is only used for communicating with the edge node equipment and is used for refreshing the firmware to be upgraded of the target equipment, and does not need to contain complete OTA (Over the Air) upgrading logic, so that the small system can occupy less Flash than a Flash memory partition established by the prior art for storing and upgrading the firmware.
The small system can upgrade the firmware to be upgraded by using the updated firmware after the target equipment receives the updated firmware sent by the edge node. The small system can also establish communication with the edge node device in case of failure of the upgrade, and receive updated firmware again from the edge node device or receive backup firmware to be updated.
As shown in fig. 5, the Flash partition may include bootloader, flag, recovery, system_img. It should be noted that, the recovery partition is not a recovery partition in the prior art, but means that a new partition is created in Flash of the target device, and the recovery partition may only have a function of communicating with the edge node device and brushing the firmware to be upgraded of the target device.
According to an embodiment of the present application, as shown in fig. 6, the present application provides a method for upgrading firmware of a device, which may be performed by an edge node device, the method comprising:
s100: and determining whether the server has upgrading information according to the device information of the target device.
The device information may include an id (Identity document, identification code) of the target device to be upgraded, firmware version number information to be upgraded, ip (Internet Protocol ) address, and the like. The specific sent device information can be selected and adjusted according to the upgrade information query requirement of the edge node device, that is, the sent device information can enable the edge node device to determine whether upgrade information exists from the server by using the information.
The target device may be any embedded device, for example, a smart speaker, a smart television, a cell phone, a tablet computer, etc.
The upgrade information may include an upgrade data packet, updated firmware version number information, function information, and the like. The upgrade information is used to enable the edge node device to determine whether the target device is capable of upgrade.
The communication modes among the target device, the edge node device and the server can be selected and adjusted according to the needs, including but not limited to communication modes such as local area network communication, bluetooth communication, wireless network communication, wired network communication and the like.
S200: and under the condition that the server has the upgrading information, sending a backup request to the target device, wherein the backup request is used for enabling the target device to send the firmware to be upgraded. Information associated with updating the firmware may also be included in the backup request for review by a user of the target device. The user of the target device may also be enabled to determine whether to perform the upgrade operation.
S300: and after the received firmware to be upgraded is backed up, the updated firmware obtained from the server is sent to the target equipment, so that the target equipment upgrades the firmware to be upgraded by using the updated firmware.
The edge node device may acquire upgrade information and an upgrade package with updated firmware from the same server, or may acquire upgrade information and upgrade package with updated firmware from different servers, respectively. For example, the edge node device may obtain upgrade information from an upgrade server, and obtain an upgrade package with updated firmware from a CDN (Content Delivery Network ) server.
The edge node device can backup the firmware to be updated of the target device and acquire the updated firmware required by the target device from the server as an intermediate transmission node. Therefore, after the updating of the firmware by the target equipment fails, the backup firmware to be updated is sent to the target equipment for data recovery, the target equipment can be replaced for storing the updated firmware, and the storage space of the target equipment is saved.
In one embodiment, as shown in fig. 7, the method for upgrading the firmware of the device further includes:
s400: and determining whether the target device is legal interaction equipment according to authentication information sent by the target device, wherein the authentication information comprises identity information and registration upgrading hosting service information.
The identity information may include any information used to represent the target device. Registration upgrade hosting service information is used to may include registration requests or registration confirmation information. If the registration upgrade hosting service information is a registration request, the target device is allowed to register by the edge node device before legal communication can be established between the target device and the edge node device. If the registration upgrade hosting service information is registration confirmation information, the edge node device only needs to determine whether the target device is registered in advance, and if so, legal communication is established. That is, when firmware upgrade is required, the target device may initiate registration with the edge node device each time and perform communication after successful registration, or may directly confirm whether the device is a registered device only when performing registration subsequent update at the time of first communication.
S500: and receiving the device information sent by the target device under the condition that the target device is legal interaction device.
The embodiment can enable the edge node equipment to establish secure communication with the target equipment through the authentication information. The authentication information may be used as a secure transport protocol for communication between the edge node device and the target device.
In one embodiment, as shown in fig. 8, the method for upgrading the firmware of the device further includes:
s600: and after receiving the first upgrade failure information sent by the target equipment, sending updated firmware to the target equipment again. The first upgrade failure information is information generated after the target device utilizes the updated firmware to upgrade the firmware to be upgraded.
The first upgrade failure information may be generated when the target device fails to flush the firmware to be upgraded with the updated firmware, and may be generated when the target device reports an error in running the firmware after updating with the updated firmware is completed.
The embodiment can realize that when the upgrading of the target equipment fails, the firmware upgrading operation is carried out on the target equipment again through the updated firmware stored by the edge node equipment. The method not only can timely upgrade the target equipment again under the condition of upgrade failure, but also can effectively solve the problem that the data loss can be generated after the upgrade failure of the target equipment due to the fact that the updated firmware is stored in the target equipment by acquiring the updated firmware from the edge node equipment, and saves the storage space of the target equipment.
In one embodiment, as shown in fig. 9, the method for upgrading the firmware of the device further includes:
s700: and after receiving the second upgrading failure information sent by the target equipment, sending the backed-up firmware to be upgraded to the target equipment so that the target equipment can recover the damaged firmware to be upgraded by using the backed-up firmware to be upgraded. The second upgrade failure information is information generated after the target device utilizes the secondarily received updated firmware to upgrade the firmware to be upgraded.
And generating second upgrade failure information under the condition that the target equipment acquires the updated firmware from the edge node equipment again based on the first upgrade failure information to upgrade and fails to upgrade.
In this embodiment, the firmware to be upgraded, which is damaged due to the upgrade failure, can be recovered through the backup firmware to be upgraded sent by the edge node device, so that the target device is ensured to be still capable of being recovered to the state before the upgrade after the upgrade failure, and the target device is enabled to be used in normal operation. The problem that in the prior art, an equipment system cannot be recovered due to upgrade failure is solved.
In one embodiment, determining whether the server has upgrade information according to device information of the target device includes:
And sending an upgrade request to the server according to the device information of the target device.
And determining whether the server has upgrading information according to the query result fed back by the server based on the upgrading request.
In one embodiment, after receiving the backup of the firmware to be upgraded, sending the updated firmware obtained from the server to the target device, including:
and after the received firmware backup to be upgraded is completed, obtaining upgrade data corresponding to the upgrade information from the server.
Analyzing the upgrade data, and sending the updated firmware obtained after analysis to the target device.
In one example, as shown in fig. 10, a method of device firmware upgrade includes:
the equipment to be upgraded (target equipment) is connected with the edge node equipment, and identity information is sent to the edge node equipment by using the interface a to perform identity authentication;
the equipment to be upgraded calls the interface b to send registration upgrading hosting service information to the edge node, so that the edge node equipment completes registration authentication of the upgrading hosting service;
in the case that the registration authentication is passed, the device to be upgraded calls the interface c to send device information (device id, version number, etc.) to the edge node;
the edge node equipment uses a server to poll and check whether all the equipment registered with the upgrade hosting service (the same edge node possibly connects a plurality of equipment to be upgraded) has upgrade information;
When the edge node equipment detects that the server has the upgrade information of the equipment to be upgraded, the edge node equipment calls an interface d to send the upgrade information and the backup request information to the equipment to be upgraded;
calling an interface e by the equipment to be upgraded to backup the currently running system firmware to the edge node equipment;
the edge node downloads an upgrade package of the equipment to be upgraded from the CDN server to the local, and analyzes the upgrade package to obtain updated firmware;
the edge node equipment calls an interface f to send updated firmware to equipment to be upgraded;
after receiving the firmware data, the equipment to be upgraded stream-writes own firmware (the complete firmware is not required to be stored into flash for re-writing); and restarting the equipment to be upgraded after the completion of the refreshing, and entering a large system to run the new version firmware.
When the above steps are executed, if a communication error occurs before the edge node device sends updated firmware to the device to be upgraded, the step of generating the error or all the steps before the error can be executed again. If errors occur in the upgrading process, the updated firmware is obtained again from the edge node equipment for upgrading again, and if the updating still fails, the backup firmware to be upgraded is obtained from the edge node equipment for recovering the original firmware.
In one application example, the above method of the present application may be applied in a smart home environment. There are a large number of intelligent devices in a home, each of which needs to be OTA upgraded and all of which needs to be connected to the router over the air for surfing. Therefore, the router can be used as an edge node device in the scene, OTA upgrading hosting service is provided for all intelligent home devices (target devices) at the same time, and the storage space of the router is relatively redundant in general, so that the redundant storage space can be used for providing OTA stability guarantee for all intelligent devices. The redundant storage space is used for storing the updated firmware of different intelligent household devices and the backup firmware to be upgraded.
According to an embodiment of the present application, as shown in fig. 11, the present application provides an apparatus for upgrading firmware of a device, including:
a first sending module 10, configured to send device information to an edge node device, where the device information is used to enable the edge node device to determine whether the edge node device has upgrade information from a server.
And the second sending module 20 is configured to send firmware to be upgraded to the edge node device, where the server that receives the feedback from the edge node device has upgrade information, so that the edge node device backs up the firmware to be upgraded.
The first receiving module 30 is configured to receive updated firmware obtained from the server by the edge node device, and upgrade the firmware to be upgraded by using the updated firmware.
In one embodiment, the apparatus for upgrading device firmware further comprises:
and the third sending module is used for sending authentication information to the edge node equipment, wherein the authentication information is used for enabling the edge node equipment to determine whether interaction is performed or not, and the authentication information comprises identity information and registration upgrading hosting service information.
In one embodiment, the apparatus for upgrading device firmware further comprises:
and the fourth sending module is used for sending first upgrade failure information to the edge node equipment, and the first upgrade failure information is used for enabling the edge node equipment to send updated firmware again.
And the second receiving module is used for receiving the updated firmware sent again by the edge node equipment and upgrading the firmware to be upgraded by utilizing the sent updated firmware.
In one embodiment, the apparatus for upgrading device firmware further comprises:
and the fifth sending module is used for sending second upgrade failure information to the edge node equipment, wherein the second upgrade failure information is used for enabling the edge node equipment to send backup firmware to be upgraded.
And the third receiving module is used for receiving the backup firmware to be upgraded sent by the edge node equipment and recovering the damaged firmware to be upgraded by utilizing the backup firmware to be upgraded.
In one example, the apparatus for device firmware upgrade in the above embodiments may be understood as a specific structure in the target device.
According to an embodiment of the present application, as shown in fig. 12, the present application provides an apparatus for upgrading firmware of a device, including:
the first determining module 100 is configured to determine whether the server has upgrade information according to device information of the target device.
The first sending module 200 is configured to send a backup request to the target device when the server has upgrade information, where the backup request is used to make the target device send firmware to be upgraded.
And the second sending module 300 is configured to send the updated firmware obtained from the server to the target device after the received firmware to be updated is backed up, so that the target device upgrades the firmware to be updated by using the updated firmware.
In one embodiment, the apparatus for upgrading device firmware further comprises:
and the second determining module is used for determining whether the target equipment is legal interaction equipment according to authentication information sent by the target equipment, wherein the authentication information comprises identity information and registration upgrading hosting service information.
And the receiving module is used for receiving the equipment information sent by the target equipment under the condition that the target equipment is legal interaction equipment.
In one embodiment, the apparatus for upgrading device firmware further comprises:
and the third sending module is used for sending the updated firmware to the target equipment again after receiving the first upgrade failure information sent by the target equipment. The first upgrade failure information is information generated after the target device utilizes the updated firmware to upgrade the firmware to be upgraded.
In one embodiment, the apparatus for upgrading device firmware further comprises:
and the fourth sending module is used for sending the backup firmware to be upgraded to the target equipment after receiving the second upgrading failure information sent by the target equipment, so that the target equipment can recover the damaged firmware to be upgraded by using the backup firmware to be upgraded. The second upgrade failure information is information generated after the target device utilizes the secondarily received updated firmware to upgrade the firmware to be upgraded.
In one embodiment, the first determination module 100 includes:
and the sending submodule is used for sending an upgrading request to the server according to the equipment information of the target equipment.
And the determining submodule is used for determining whether the server has upgrading information according to the query result fed back by the server based on the upgrading request.
In one embodiment, the second transmitting module 300 includes:
and the acquisition sub-module is used for acquiring the upgrade data corresponding to the upgrade information from the server after the received firmware to be upgraded is backed up.
And the analysis sub-module is used for analyzing the upgrade data and sending the updated firmware obtained after analysis to the target equipment.
In one example, the apparatus for device firmware upgrade in the above embodiments may be understood as a specific structure in an edge node device.
The function of the device firmware upgrading apparatus described above may refer to embodiments of the device firmware upgrading method described above.
According to embodiments of the present application, there is also provided an electronic device, a readable storage medium and a computer program product.
As shown in fig. 13, a block diagram of an electronic device is provided for a method of device firmware upgrade according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 13, the electronic device includes: one or more processors 1301, memory 1302, and interfaces for connecting the components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 1301 is illustrated in fig. 13.
Memory 1302 is a non-transitory computer-readable storage medium provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of device firmware upgrades provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method of device firmware upgrades provided herein.
The memory 1302 is used as a non-transitory computer readable storage medium and is used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the first transmitting module 10, the second transmitting module 20, and the first receiving module 30 shown in fig. 10, and the first determining module 100, the first transmitting module 200, and the second transmitting module 300 shown in fig. 11) corresponding to the method of upgrading device firmware in the embodiments of the present application. Processor 1301 executes various functional applications of the server and data processing, i.e., a method of implementing the device firmware upgrade in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in memory 1302.
Memory 1302 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created from the use of the electronic device for device firmware upgrades, and the like. In addition, memory 1302 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 1302 may optionally include memory located remotely from processor 1301, which may be connected to the electronic device for device firmware upgrade 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 electronic device of the method of device firmware upgrade may further include: an input device 1303 and an output device 1304. The processor 1301, memory 1302, input device 1303, and output device 1304 may be connected by a bus or other means, for example in fig. 13.
The input device 1303 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device for device firmware upgrades, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, and the like. The output device 1304 may include a display device, auxiliary lighting (e.g., LEDs), and haptic feedback (e.g., a vibrating motor), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (22)

1. A method of device firmware upgrade, comprising:
transmitting device information to an edge node device, wherein the device information is used for enabling the edge node device to determine whether the edge node device has upgrading information or not from a server;
under the condition that the server fed back by the edge node equipment has the upgrading information, sending firmware to be upgraded to the edge node equipment so that the edge node equipment backs up the firmware to be upgraded;
and receiving updated firmware obtained from the server by the edge node equipment, and upgrading the firmware to be upgraded by utilizing the updated firmware.
2. The method of claim 1, further comprising:
and sending authentication information to the edge node equipment, wherein the authentication information is used for enabling the edge node equipment to determine whether interaction is performed or not, and the authentication information comprises identity information and registration upgrading hosting service information.
3. The method of claim 1, further comprising:
transmitting first upgrade failure information to the edge node equipment, wherein the first upgrade failure information is used for enabling the edge node equipment to transmit the updated firmware again;
and receiving the updated firmware sent again by the edge node equipment, and upgrading the firmware to be upgraded by utilizing the sent updated firmware.
4. A method according to claim 3, further comprising:
sending second upgrade failure information to the edge node equipment, wherein the second upgrade failure information is used for enabling the edge node equipment to send backup firmware to be upgraded;
and receiving the backup firmware to be upgraded sent by the edge node equipment, and recovering the damaged firmware to be upgraded by utilizing the backup firmware to be upgraded.
5. A method of device firmware upgrade, comprising:
determining whether the server has upgrading information according to the equipment information of the target equipment;
sending a backup request to the target device under the condition that the server has the upgrading information, wherein the backup request is used for enabling the target device to send firmware to be upgraded;
and after the received firmware to be upgraded is backed up, the updated firmware obtained from the server is sent to the target equipment, so that the target equipment upgrades the firmware to be upgraded by utilizing the updated firmware.
6. The method of claim 5, further comprising:
determining whether the target equipment is legal interaction equipment according to authentication information sent by the target equipment, wherein the authentication information comprises identity information and registration upgrading hosting service information;
and receiving the equipment information sent by the target equipment under the condition that the target equipment is legal interaction equipment.
7. The method of claim 5, further comprising:
after receiving the first upgrade failure information sent by the target equipment, sending the updated firmware to the target equipment again; the first upgrade failure information is information generated after the target device utilizes the updated firmware to upgrade the firmware to be upgraded.
8. The method of claim 7, further comprising:
after receiving the second upgrade failure information sent by the target equipment, sending the backup firmware to be upgraded to the target equipment so that the target equipment can recover the damaged firmware to be upgraded by using the backup firmware to be upgraded; the second upgrade failure information is information generated after the target device utilizes the secondarily received updated firmware to upgrade the firmware to be upgraded.
9. The method according to any one of claims 5 to 8, wherein the determining whether the server has the upgrade information according to the device information of the target device includes:
according to the equipment information of the target equipment, an upgrading request is sent to the server;
and determining whether the server has upgrading information according to the query result fed back by the server based on the upgrading request.
10. The method according to any one of claims 5 to 8, wherein after the backup of the received firmware to be upgraded, sending the updated firmware obtained from the server to the target device, includes:
after the received firmware backup to be upgraded is completed, obtaining upgrade data corresponding to the upgrade information from the server;
analyzing the upgrade data, and sending the updated firmware obtained after analysis to the target equipment.
11. An apparatus for device firmware upgrade, comprising:
the first sending module is used for sending equipment information to the edge node equipment, and the equipment information is used for enabling the edge node equipment to determine whether the edge node equipment has upgrading information or not from a server;
the second sending module is used for sending firmware to be upgraded to the edge node equipment under the condition that the server fed back by the edge node equipment has the upgrading information, so that the edge node equipment backs up the firmware to be upgraded;
The first receiving module is used for receiving updated firmware obtained from the server by the edge node equipment and upgrading the firmware to be upgraded by utilizing the updated firmware.
12. The apparatus of claim 11, further comprising:
and the third sending module is used for sending authentication information to the edge node equipment, wherein the authentication information is used for enabling the edge node equipment to determine whether interaction is performed or not, and the authentication information comprises identity information and registration upgrading hosting service information.
13. The apparatus of claim 11, further comprising:
a fourth sending module, configured to send first upgrade failure information to the edge node device, where the first upgrade failure information is used to make the edge node device send the updated firmware again;
and the second receiving module is used for receiving the updated firmware sent again by the edge node equipment and upgrading the firmware to be upgraded by utilizing the sent updated firmware.
14. The apparatus of claim 13, further comprising:
a fifth sending module, configured to send second upgrade failure information to the edge node device, where the second upgrade failure information is used to make the edge node device send backup firmware to be upgraded;
And the third receiving module is used for receiving the backup firmware to be upgraded sent by the edge node equipment and recovering the damaged firmware to be upgraded by utilizing the backup firmware to be upgraded.
15. An apparatus for device firmware upgrade, comprising:
the first determining module is used for determining whether the server has upgrading information according to the equipment information of the target equipment;
the first sending module is used for sending a backup request to the target equipment under the condition that the server has the upgrading information, wherein the backup request is used for enabling the target equipment to send firmware to be upgraded;
and the second sending module is used for sending the updated firmware acquired from the server to the target equipment after the received firmware to be updated is backed up, so that the target equipment can update the firmware to be updated by using the updated firmware.
16. The apparatus of claim 15, further comprising:
the second determining module is used for determining whether the target equipment is legal interaction equipment according to authentication information sent by the target equipment, wherein the authentication information comprises identity information and registration upgrading hosting service information;
And the receiving module is used for receiving the equipment information sent by the target equipment under the condition that the target equipment is legal interaction equipment.
17. The apparatus of claim 15, further comprising:
the third sending module is used for sending the updated firmware to the target equipment again after receiving the first upgrade failure information sent by the target equipment; the first upgrade failure information is information generated after the target device utilizes the updated firmware to upgrade the firmware to be upgraded.
18. The apparatus of claim 17, further comprising:
the fourth sending module is used for sending the backup firmware to be upgraded to the target equipment after receiving the second upgrading failure information sent by the target equipment, so that the target equipment can recover the damaged firmware to be upgraded by utilizing the backup firmware to be upgraded; the second upgrade failure information is information generated after the target device utilizes the secondarily received updated firmware to upgrade the firmware to be upgraded.
19. The apparatus of any of claims 15 to 18, wherein the first determination module comprises:
A sending sub-module, configured to send an upgrade request to the server according to the device information of the target device;
and the determining submodule is used for determining whether the server has upgrading information or not according to the query result fed back by the server based on the upgrading request.
20. The apparatus of any of claims 15 to 18, wherein the second transmitting module comprises:
the obtaining sub-module is used for obtaining upgrading data corresponding to the upgrading information from the server after the received firmware to be upgraded is backed up;
and the analysis sub-module is used for analyzing the upgrade data and sending the updated firmware obtained after analysis to the target equipment.
21. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 10.
22. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1 to 10.
CN202010602483.8A 2020-06-29 2020-06-29 Method, device, equipment and storage medium for upgrading equipment firmware Active CN111770169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010602483.8A CN111770169B (en) 2020-06-29 2020-06-29 Method, device, equipment and storage medium for upgrading equipment firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010602483.8A CN111770169B (en) 2020-06-29 2020-06-29 Method, device, equipment and storage medium for upgrading equipment firmware

Publications (2)

Publication Number Publication Date
CN111770169A CN111770169A (en) 2020-10-13
CN111770169B true CN111770169B (en) 2023-05-09

Family

ID=72722488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010602483.8A Active CN111770169B (en) 2020-06-29 2020-06-29 Method, device, equipment and storage medium for upgrading equipment firmware

Country Status (1)

Country Link
CN (1) CN111770169B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269728B (en) * 2020-11-03 2023-08-04 北京百度网讯科技有限公司 System performance evaluation method, device, equipment and storage medium
CN112653573B (en) * 2020-11-26 2022-10-21 深圳泰首智能技术有限公司 Face recognition data upgrading method and device and face recognition system
CN112506544A (en) * 2020-12-11 2021-03-16 北京智道合创科技有限公司 Program updating method and updating device for edge computing device
CN114666783A (en) * 2020-12-23 2022-06-24 深圳Tcl新技术有限公司 Upgrading method, device, terminal and storage medium of wireless network module
CN112667266B (en) * 2021-01-22 2024-02-06 百度在线网络技术(北京)有限公司 Firmware upgrading method, device, equipment and storage medium
CN114915618B (en) * 2021-01-29 2023-09-12 华为技术有限公司 Upgrade package downloading method and device
CN115378750B (en) * 2021-05-20 2023-09-19 海信集团控股股份有限公司 OTA upgrading method and equipment for electronic home equipment
CN113342371B (en) * 2021-05-31 2022-07-26 招商蛇口数字城市科技有限公司 Internet of things equipment upgrading system
CN113596920B (en) * 2021-07-29 2024-04-05 百度在线网络技术(北京)有限公司 Flow control method, device, electronic equipment and storage medium
CN113821434A (en) * 2021-09-09 2021-12-21 摩拜(北京)信息技术有限公司 Firmware upgrade test method and device, electronic equipment and readable storage medium
CN114286366B (en) * 2021-12-23 2023-07-14 深圳创维数字技术有限公司 Wireless grid network upgrading method and device, master node and storage medium
CN114389949B (en) * 2022-01-20 2024-04-12 网宿科技股份有限公司 Route upgrading method, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060427A (en) * 2006-04-19 2007-10-24 华为技术有限公司 A system and method for realizing the remote software updating
CN101464814A (en) * 2007-12-18 2009-06-24 康佳集团股份有限公司 Embedded system and its implementing method, and embedded equipment
CN106130758A (en) * 2016-06-17 2016-11-16 海尔优家智能科技(北京)有限公司 Smart machine method for upgrading software and device
CN107179909A (en) * 2017-05-16 2017-09-19 广东美的暖通设备有限公司 Method for upgrading software, device and computer-readable recording medium
CN110119285A (en) * 2019-05-21 2019-08-13 深圳云里物里科技股份有限公司 A kind of low side scm software upgrade method and relevant apparatus
CN111104149A (en) * 2018-10-25 2020-05-05 华为技术有限公司 Firmware upgrading method and device and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080320110A1 (en) * 2007-06-25 2008-12-25 Sharp Laboratories Of America, Inc. Firmware rollback and configuration restoration for electronic devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060427A (en) * 2006-04-19 2007-10-24 华为技术有限公司 A system and method for realizing the remote software updating
CN101464814A (en) * 2007-12-18 2009-06-24 康佳集团股份有限公司 Embedded system and its implementing method, and embedded equipment
CN106130758A (en) * 2016-06-17 2016-11-16 海尔优家智能科技(北京)有限公司 Smart machine method for upgrading software and device
CN107179909A (en) * 2017-05-16 2017-09-19 广东美的暖通设备有限公司 Method for upgrading software, device and computer-readable recording medium
CN111104149A (en) * 2018-10-25 2020-05-05 华为技术有限公司 Firmware upgrading method and device and terminal
CN110119285A (en) * 2019-05-21 2019-08-13 深圳云里物里科技股份有限公司 A kind of low side scm software upgrade method and relevant apparatus

Also Published As

Publication number Publication date
CN111770169A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
CN111770169B (en) Method, device, equipment and storage medium for upgrading equipment firmware
CN108170740B (en) Data migration method, system and computer readable storage medium
CN111258609B (en) Upgrading method and device of Kubernetes cluster, electronic equipment and medium
CN108040108B (en) Communication switching method, device, coordination server and readable storage medium
KR20210042863A (en) Time synchronization method and apparatus for vehicle, device and storage medium
CN111277647B (en) Block chain network member management method, device, equipment and medium
CN112114761A (en) Wireless screen projection control method and device, terminal equipment and readable storage medium
CN101968741A (en) Method, server and system for data update
CN112073994A (en) Method and device for over-the-air upgrading, electronic equipment and readable storage medium
CN111491037B (en) Communication method with object storage server through SFTP data stream
US11831735B2 (en) Method and device for processing mini program data
US11223522B1 (en) Context-based intelligent re-initiation of microservices
WO2022000869A1 (en) Batch processing method and apparatus for mini programs, and electronic device and readable storage medium
CN111782254A (en) Method, device, equipment and storage medium for upgrading object
CN111885114A (en) Method, device and storage medium for upgrading application program interface module in gateway
CN111552934A (en) Database access method and device
CN110933227A (en) Assistance method, device, equipment and medium for intelligent terminal
CN116149713B (en) Program upgrading method and device for all-level equipment under tree-type heterogeneous network
CN112069137A (en) Method and device for generating information, electronic equipment and computer readable storage medium
CN111770176A (en) Traffic scheduling method and device
CN110609671B (en) Sound signal enhancement method, device, electronic equipment and storage medium
US11403093B1 (en) Application modification with proxy service process
CN112148447B (en) Task processing method and system based on risk control and electronic equipment
CN112489659B (en) Data processing method, system, server and terminal equipment based on input method
CN112153754B (en) Point-to-point connection method and device, electronic equipment and storage medium

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