CN114765620A - Firmware release method and device, terminal equipment and computer readable storage medium - Google Patents

Firmware release method and device, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN114765620A
CN114765620A CN202011625863.XA CN202011625863A CN114765620A CN 114765620 A CN114765620 A CN 114765620A CN 202011625863 A CN202011625863 A CN 202011625863A CN 114765620 A CN114765620 A CN 114765620A
Authority
CN
China
Prior art keywords
firmware
upgraded
equipment
preset
information
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.)
Granted
Application number
CN202011625863.XA
Other languages
Chinese (zh)
Other versions
CN114765620B (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.)
Shenzhen Leiniao Network Media Co ltd
Original Assignee
Shenzhen Leiniao Network Media 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 Shenzhen Leiniao Network Media Co ltd filed Critical Shenzhen Leiniao Network Media Co ltd
Priority to CN202011625863.XA priority Critical patent/CN114765620B/en
Publication of CN114765620A publication Critical patent/CN114765620A/en
Application granted granted Critical
Publication of CN114765620B publication Critical patent/CN114765620B/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
    • 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/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention discloses a firmware publishing method, a firmware publishing device, terminal equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a firmware upgrading request sent by equipment to be upgraded, and sending preset firmware information to the equipment to be upgraded according to the firmware upgrading request; acquiring a node acquisition request sent by equipment to be upgraded, and sending a firmware downloading link to the equipment to be upgraded according to the node acquisition request; and acquiring a firmware downloading request sent by the equipment to be upgraded, and sending a preset firmware to the equipment to be upgraded according to the firmware downloading request. The method and the device for upgrading the CDN server have the advantages that the device to be upgraded can obtain the upgrading mode and the upgrading node by sending the preset firmware information to the device to be upgraded, the device to be upgraded can download the preset firmware by sending the firmware downloading link, so that the preset firmware is released to the device to be upgraded, the upgraded device becomes a new node, the process of deploying the CDN server is reduced, and the cost of the server is reduced.

Description

Firmware release method and device, terminal equipment and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a firmware publishing method, apparatus, terminal device, and computer-readable storage medium.
Background
Firmware release refers to upgrading embedded firmware of a portable device (for example, a mobile terminal), and may be understood as upgrading software of the portable device to enhance stability of the portable device, improve performance of a machine, and repair bugs of the machine.
At present, in most software upgrading modes, firmware required for upgrading is stored in a CDN (Content Delivery Network), after a server corresponding to an equipment area to be upgraded acquires firmware information, whether the equipment can be upgraded is determined, a firmware download link is acquired from the CDN, and the firmware is downloaded; when the firmware is obtained, all traffic is concentrated in the CDN server, and in order to improve the upgrade experience of the user, the CDN servers need to be deployed in different regions around the world, so that the network bandwidth cost of the CDN is increased, and the operation and maintenance costs of the CDN are also increased.
Thus, there is a need for improvement and development of the prior art.
Disclosure of Invention
The present invention is to provide a firmware delivery method, apparatus, terminal device and computer readable storage medium, aiming at solving the technical problem that the cost of firmware delivery is increased due to the need of deploying CDN servers in the prior art.
The technical scheme adopted by the invention for solving the problems is as follows:
in a first aspect, an embodiment of the present invention provides a firmware publishing method, including:
acquiring a firmware upgrading request sent by equipment to be upgraded, and sending preset firmware information to the equipment to be upgraded according to the firmware upgrading request;
acquiring a node acquisition request sent by equipment to be upgraded, and sending a firmware downloading link to the equipment to be upgraded according to the node acquisition request;
and acquiring a firmware downloading request sent by the equipment to be upgraded, and sending a preset firmware to the equipment to be upgraded according to the firmware downloading request.
In a second aspect, an embodiment of the present invention further provides a firmware publishing apparatus, including:
the device comprises a preset firmware information sending unit, a firmware updating unit and a firmware updating unit, wherein the preset firmware information sending unit is used for acquiring a firmware updating request sent by the device to be updated and sending preset firmware information to the device to be updated according to the firmware updating request;
the firmware downloading link sending unit is used for acquiring a node acquisition request sent by the equipment to be upgraded and sending a firmware downloading link to the equipment to be upgraded according to the node acquisition request;
and the preset firmware sending unit is used for acquiring a firmware downloading request sent by the equipment to be upgraded and sending the preset firmware to the equipment to be upgraded according to the firmware downloading request.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a firmware publishing program stored in the memory and operable on the processor, and the step of implementing the firmware publishing method according to the first aspect is implemented when the processor executes the firmware publishing program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a firmware publishing program is stored, and when executed by a processor, the firmware publishing program implements the steps of the firmware publishing method according to the first aspect.
The invention has the beneficial effects that: the upgrading method and the upgrading node are used for upgrading the device to be upgraded by sending the preset firmware information to the device to be upgraded, and downloading the preset firmware by the device to be upgraded by sending the firmware downloading link, so that the preset firmware is released to the device to be upgraded, the upgraded device becomes a new node, the process of deploying the CDN server is reduced, and the cost of the server is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a firmware distribution method according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart illustrating a connection process between a firmware distribution method and a device to be upgraded according to an embodiment of the present invention.
Fig. 3 is a detailed flowchart of step S100 in fig. 1.
Fig. 4 is a detailed flowchart of step S200 in fig. 1.
Fig. 5 is a detailed flowchart of step S300 in fig. 1.
Fig. 6 is a schematic flowchart of the process after step S220 in fig. 4.
Fig. 7 is a schematic flowchart after step S300 in fig. 1.
FIG. 8 is a diagram illustrating a relationship of firmware release according to an embodiment of the present invention.
FIG. 9 is a timing diagram illustrating firmware release according to an embodiment of the present invention.
Fig. 10 is a functional block diagram of a firmware distribution apparatus according to an embodiment of the present invention.
Fig. 11 is a schematic block diagram of the internal structure of the terminal device in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
The invention provides a firmware release method, a firmware release device, a terminal device and a computer readable storage medium, wherein an upgrade request of a device to be upgraded is obtained through the terminal device, whether the device to be upgraded needs to be upgraded is determined, and under the condition that the device to be upgraded needs to be upgraded, firmware information to be upgraded is sent to the device to be upgraded; the method comprises the steps that a node acquisition request sent by equipment to be upgraded is acquired through terminal equipment, whether the equipment to be upgraded is preset upgrading equipment (namely a first batch of equipment to be upgraded in a certain area) is determined, and under the condition that the equipment to be upgraded is the preset upgrading equipment, a firmware downloading link corresponding to a downloading node is sent to the equipment to be upgraded so that the equipment to be upgraded can be upgraded conveniently through the firmware upgrading link; according to the invention, the preset firmware is released to the equipment to be upgraded, so that the upgraded equipment becomes a new node, and the process of deploying the CDN server is reduced, thereby reducing the cost of the server.
For example, assume that the terminal device has A, B, C, D four functional modules, which are labeled as server a, server B, server C, and server D, respectively, for ease of distinction and understanding. When an upgrade firmware is to be issued, the server A determines whether the equipment to be upgraded can be upgraded; after determining that the equipment to be upgraded can be upgraded, the server A sends the firmware information to the equipment to be upgraded, and then the equipment to be upgraded sends the firmware information to the server B; and the server B judges whether the equipment to be upgraded is the first application equipment in the region, and if so, the server B directly sends the download link of the server C for storing the firmware to the equipment to be upgraded so as to facilitate the downloading and upgrading of the equipment to be upgraded. If the equipment to be upgraded is not the equipment which is applied for in the first batch of the area, the server B calculates a plurality of nodes which are closest to the equipment to be upgraded, and sends the node information to the equipment to be upgraded; and the server B informs the server D and the corresponding node to assist the equipment to be upgraded to download so as to facilitate the equipment to be upgraded to download and upgrade.
Exemplary method
As shown in fig. 1 to 9, an embodiment of the present invention provides a firmware distribution method, which may be applied to terminal devices including, but not limited to, smart televisions, mobile terminals, computers, and other intelligent devices.
As shown in fig. 1, in an embodiment of the present invention, a method includes:
step S100, a firmware upgrading request sent by the equipment to be upgraded is obtained, and preset firmware information is sent to the equipment to be upgraded according to the firmware upgrading request.
In this embodiment, before firmware upgrade is performed on a device to be upgraded, a communication connection between a terminal device and the device to be upgraded needs to be established through a wired network or a wireless network; the wireless network may be a network in a wireless connection manner such as GPRS data, WiFi, and hotspot.
Specifically, as shown in fig. 2, before step S100, the method further comprises:
and S001, establishing communication connection with the equipment to be upgraded through a wired network or a wireless network.
As shown in fig. 8, in the present embodiment, the terminal device may be divided into A, B, C, D four functional modules, wherein functional module a is used to provide upgrade service, functional module B is used to provide upgrade node management service, functional module C is used to provide original upgrade file (i.e. firmware) storage service, and functional module D is used to provide P2P assisted pass-through service; for convenience of distinction and understanding, the four functional modules are respectively marked as a server A, a server B, a server C and a server D; the server A, the server B, the server C and the server D are all virtual servers, and the firmware to be issued is sent to the equipment to be upgraded through the four virtual servers.
Of course, in another implementation manner of this embodiment, the server a, the server B, the server C, and the server D may be set as physical servers, so that the firmware to be distributed is sent to the device to be upgraded through the four physical servers.
In this embodiment, when the device to be upgraded needs to be upgraded, a firmware upgrade request is sent to the server a; when the server A receives the firmware upgrading request, the current firmware information of the equipment to be upgraded is acquired according to the firmware upgrading request; when the server A acquires the firmware upgrading request, the server A can acquire the current firmware information from the firmware upgrading request; and the current firmware information is the current system version information of the equipment to be upgraded.
After the server A acquires the current system version information of the equipment to be upgraded, searching a preset database to acquire preset firmware information in the preset database, wherein the preset firmware information is firmware version information corresponding to preset firmware stored in the server C; then, judging whether the current firmware information is consistent with the preset firmware information or not according to the preset firmware information; if the firmware information is consistent with the updated firmware information, prompting that the current firmware information is the latest firmware information to the equipment to be upgraded, namely prompting that the equipment to be upgraded does not need to be upgraded; and if the firmware information is inconsistent with the preset firmware information, acquiring the preset firmware information corresponding to the equipment to be upgraded, and sending the acquired preset firmware information to the equipment to be upgraded so that the equipment to be upgraded can be upgraded according to the preset firmware information.
Specifically, as shown in fig. 3, step S100 includes:
step S110, acquiring the current firmware information of the equipment to be upgraded according to the firmware upgrading request;
step S120, judging whether the current firmware information is consistent with preset firmware information or not according to the current firmware information;
and step S130, if not, sending preset firmware information to the equipment to be upgraded.
In this embodiment, by obtaining the current firmware information of the device to be upgraded, it may be determined whether the current firmware of the device to be upgraded needs to be upgraded, and after it is determined that the device to be upgraded needs to be upgraded, the corresponding preset firmware information is sent to the device to be upgraded, so that the device to be upgraded is upgraded according to the preset firmware information.
In a further embodiment of the invention, as shown in fig. 1, the method comprises:
step S200, a node acquisition request sent by the equipment to be upgraded is acquired, and a firmware downloading link is sent to the equipment to be upgraded according to the node acquisition request.
In this embodiment, after the server a sends the preset firmware information to the device to be upgraded, the device to be upgraded sends the preset firmware information to the server B, and the device to be upgraded also sends a node acquisition request to the server B; the equipment to be upgraded sends the node acquisition request, and aims to acquire corresponding node information through the server B so as to acquire a preset firmware from the node and upgrade the preset firmware; and the server B acquires the request by acquiring the node sent by the equipment to be upgraded and sends a firmware downloading link to the equipment to be upgraded according to the node acquisition request.
Specifically, when the server B acquires a node acquisition request sent by the device to be upgraded, acquiring device information of the device to be upgraded according to the node acquisition request, and then judging whether the device to be upgraded is a preset upgrade device according to the device information; when the server B judges, the server B acquires equipment information of preset upgrading equipment in a database, wherein the equipment information of the preset upgrading equipment is the equipment information of first-batch upgrading equipment in a certain area (for example, city A); and judging whether the equipment to be upgraded is the first batch of upgrading equipment in the area or not by acquiring the equipment information of the preset upgrading equipment from the database.
If the equipment to be upgraded is the first batch of upgrading equipment in the area, the server B acquires corresponding firmware download links according to the acquired equipment information and the preset firmware information and sends the firmware download links to the equipment to be upgraded; considering that the device to be upgraded is the first upgrade device in the area, the server C storing the original firmware can be directly used as a download node (i.e., firmware upgrade node), and the server B directly sends the download link of the server C to the device to be upgraded, so that the device to be upgraded directly downloads the required firmware from the server C.
Specifically, as shown in fig. 4, step S200 includes:
step S210, acquiring equipment information of equipment to be upgraded according to the node acquisition request;
step S220, judging whether the equipment to be upgraded is preset upgrading equipment or not according to the equipment information;
and step S230, if yes, acquiring a corresponding firmware downloading link according to the equipment information and the preset firmware information, and sending the firmware downloading link to the equipment to be upgraded.
In this embodiment, by obtaining the device information of the device to be upgraded, it can be determined whether the device to be upgraded is a first group of upgrading devices in a certain area, so that when the device to be upgraded is the first group of upgrading devices, the download link corresponding to the original upgrade firmware is sent to the device to be upgraded, so that the device to be upgraded obtains the original upgrade firmware.
In a further embodiment of the invention, as shown in fig. 1, the method comprises:
step S300, a firmware downloading request sent by the equipment to be upgraded is obtained, and a preset firmware is sent to the equipment to be upgraded according to the firmware downloading request.
In this embodiment, after the device to be upgraded receives the firmware download link sent by the server C, a firmware download request is initiated to the server C according to the firmware download link; the server C establishes a data link based on an application layer protocol with the equipment to be upgraded according to the firmware downloading request; the application layer protocol is an HTTP protocol, the application layer protocol can be initiated by the equipment to be upgraded, and the server C receives the application layer protocol so as to establish a data link through the application layer protocol; the server C may send the preset firmware to the device to be upgraded through the application layer protocol data link.
Before the server C sends the preset firmware, the server C selects the preset firmware corresponding to the firmware downloading link, namely selects the firmware required by the equipment to be upgraded; then, sending the preset firmware to the equipment to be upgraded through an application layer protocol data link so as to distribute the preset firmware to the equipment to be upgraded; and the equipment to be upgraded downloads the preset firmware and upgrades the preset firmware.
Because the equipment to be upgraded is the first batch of upgraded equipment in the area, after the firmware of the equipment to be upgraded is upgraded, the upgraded equipment of other batches in the area can directly acquire the required firmware from the equipment to be upgraded; when the server C sends the original upgrade firmware to the device to be upgraded, the mirror image firmware is substantially distributed to the device to be upgraded for storage, so that an additional CDN server does not need to be deployed, and the bandwidth cost and operation and maintenance cost of the server are reduced.
Specifically, as shown in fig. 5, step S300 includes:
step S310, establishing an application layer protocol data link with the equipment to be upgraded according to the firmware downloading request;
step S320, selecting a preset firmware corresponding to the firmware download link, and sending the preset firmware to the device to be upgraded through the application layer protocol data link, so as to distribute the preset firmware to the device to be upgraded.
In this embodiment, an application layer protocol data link is established with the device to be upgraded, and the preset firmware can be sent to the device to be upgraded through the application layer protocol data link, so that the preset firmware is distributed to the device to be upgraded, and the device to be upgraded becomes a new node, thereby avoiding deployment of an additional CDN server.
In this embodiment, when the server B determines whether the device to be upgraded is the preset upgrade device, if the device to be upgraded is another batch of upgrade devices in the area, the server B sends node information of other nodes to the device to be upgraded, so that the device to be upgraded acquires the required firmware from the latest upgraded device.
Specifically, as shown in fig. 9, in the upgrading process of the other batches of upgraded devices, the steps before obtaining the device to be upgraded and obtaining the node are consistent; when the node information is obtained, the server B calculates a plurality of nodes closest to the equipment to be upgraded and sends the node information corresponding to the calculated nodes to the equipment to be upgraded; when the server B calculates the node, the server B searches the database, searches for an optimal node (for example, a node with a high transmission speed) near the device to be upgraded according to data in the database, and then sends node information corresponding to the searched node to the device to be upgraded, so that the device to be upgraded downloads the node information.
When the server B sends the node information to the device to be upgraded, the server B also sends P2P assistance information to the searched node and the server D, so as to assist the device to be upgraded to download the preset firmware through the corresponding download node.
Specifically, as shown in fig. 6, after step S220, the method further includes:
step S410, if not, acquiring preset downloading node information, and sending the preset downloading node information to the equipment to be upgraded;
step S420, sending P2P assistance information to the corresponding download node according to the preset download node information, so as to assist the device to be upgraded to download the preset firmware through the corresponding download node.
In this embodiment, in the process of upgrading the device to be upgraded, the server B records the transmission speed of the current node, and generates an adjacency list, that is, a transmission speed list of nodes adjacent to the device to be upgraded, according to the current node and the corresponding transmission speed; after the equipment to be upgraded is upgraded, the upgraded equipment becomes upgraded equipment, the upgraded equipment can send firmware upgrading success information to the server B, and meanwhile, the adjacency list is sent to the server B so as to update the node map in the server B; thereafter, the server B may provide a better node list and node information for the next device that needs to be upgraded according to the updated map.
It can be understood that, in this embodiment, each time a device is upgraded, the device may serve as a new node in the area, and when a device near the device needs to upgrade firmware, the server B may select the device as a node of a device near the device, which needs to be upgraded, according to the transmission speed of the device.
Specifically, as shown in fig. 7, after step S300, the method further comprises:
step S510, acquiring firmware upgrading success information sent by upgraded equipment;
and step S520, updating the node map according to the firmware upgrading success information, and taking the upgraded equipment as a new node.
Therefore, in the embodiment, the equipment to be upgraded can acquire the upgrading mode and the upgrading node by sending the preset firmware information to the equipment to be upgraded, and the equipment to be upgraded can download the preset firmware by sending the firmware download link, so that the preset firmware is released to the equipment to be upgraded, the upgraded equipment becomes a new node, the process of deploying the CDN server is reduced, and the cost of the server is reduced.
Exemplary device
As shown in fig. 10, an embodiment of the present invention provides a firmware distribution apparatus, including: a preset firmware information sending unit 710, a firmware download link sending unit 720, and a preset firmware sending unit 730. Specifically, the method comprises the following steps:
a preset firmware information sending unit 710, configured to obtain a firmware upgrade request sent by a device to be upgraded, and send preset firmware information to the device to be upgraded according to the firmware upgrade request;
a firmware download link sending unit 720, configured to obtain a node obtaining request sent by the device to be upgraded, and send a firmware download link to the device to be upgraded according to the node obtaining request;
the preset firmware sending unit 730 is configured to obtain a firmware downloading request sent by the device to be upgraded, and send a preset firmware to the device to be upgraded according to the firmware downloading request.
In a further embodiment of the invention, the apparatus further comprises:
and the equipment to be upgraded is connected with the equipment to be upgraded through a wired network or a wireless network.
Specifically, the preset firmware information sending unit 710 includes:
the current firmware information acquisition unit is used for acquiring the current firmware information of the equipment to be upgraded according to the firmware upgrading request;
the current firmware information judging unit is used for judging whether the current firmware information is consistent with the preset firmware information or not according to the current firmware information;
and the preset firmware information sending subunit is used for sending the preset firmware information to the equipment to be upgraded.
Specifically, the firmware download link sending unit 720 includes:
the device information acquisition unit is used for acquiring the device information of the device to be upgraded according to the node acquisition request;
the preset upgrading equipment judging unit is used for judging whether the equipment to be upgraded is preset upgrading equipment or not according to the equipment information;
and the firmware download link sending subunit is used for acquiring the corresponding firmware download link according to the equipment information and the preset firmware information and sending the firmware download link to the equipment to be upgraded.
Specifically, the preset firmware sending unit 730 includes:
the data link establishing unit is used for establishing an application layer protocol data link with the equipment to be upgraded according to the firmware downloading request;
and the preset firmware sending unit is used for selecting the preset firmware corresponding to the firmware downloading link and sending the preset firmware to the equipment to be upgraded through the application layer protocol data link so as to distribute the preset firmware to the equipment to be upgraded.
In a further embodiment of the invention, the apparatus further comprises:
the system comprises a preset downloading node information sending unit, a preset downloading node information sending unit and a preset downloading node updating unit, wherein the preset downloading node information sending unit is used for acquiring preset downloading node information and sending the preset downloading node information to equipment to be updated;
and the assistance information sending unit is used for sending the P2P assistance information to the corresponding downloading node according to the preset downloading node information so as to assist the equipment to be upgraded to download the preset firmware through the corresponding downloading node.
In a further embodiment of the invention, the apparatus further comprises:
the successful information acquisition unit is used for acquiring firmware upgrading successful information sent by the upgraded equipment;
and the node map updating unit is used for updating the node map according to the successful firmware updating information and taking the updated equipment as a new node.
Based on the above embodiments, the present invention further provides a terminal device, and a schematic block diagram thereof may be as shown in fig. 11. The terminal equipment comprises a processor, a memory, a network interface and a display end which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a computer readable storage medium and an internal memory. The computer readable storage medium stores an operating system and a computer program. The memory provides an environment for the operation of an operating system and computer programs in the computer-readable storage medium. The computer program is executed by a processor to implement the steps of a firmware distribution method. The display end of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen; the network interface of the terminal device is used for connecting a network.
It will be understood by those skilled in the art that the block diagram of fig. 11 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal equipment to which the solution of the present invention is applied, and a specific terminal equipment may include more or less components than those shown in the figure, or combine some components, or have different arrangements of components.
In one embodiment, there is provided a terminal device, the terminal device includes a memory, a processor, and a firmware publishing program stored in the memory and operable on the processor, and the processor executes the firmware publishing program to implement the steps of the firmware publishing method as described above:
acquiring a firmware upgrading request sent by equipment to be upgraded, and sending preset firmware information to the equipment to be upgraded according to the firmware upgrading request;
acquiring a node acquisition request sent by equipment to be upgraded, and sending a firmware downloading link to the equipment to be upgraded according to the node acquisition request;
and acquiring a firmware downloading request sent by the equipment to be upgraded, and sending a preset firmware to the equipment to be upgraded according to the firmware downloading request.
In one embodiment, a computer readable storage medium is provided, which stores a firmware distribution program that when executed by a processor implements the steps of the firmware distribution method as above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware that is related to instructions of a computer program, and the computer program may be stored in a computer-readable storage medium, and when executed, the computer program may include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention provides a firmware publishing method, an apparatus, a terminal device and a computer readable storage medium, and the method includes: acquiring a firmware upgrading request sent by equipment to be upgraded, and sending preset firmware information to the equipment to be upgraded according to the firmware upgrading request; acquiring a node acquisition request sent by equipment to be upgraded, and sending a firmware downloading link to the equipment to be upgraded according to the node acquisition request; and acquiring a firmware downloading request sent by the equipment to be upgraded, and sending a preset firmware to the equipment to be upgraded according to the firmware downloading request. According to the method and the device, the equipment to be upgraded can acquire the upgrading mode and the upgrading node by sending the preset firmware information to the equipment to be upgraded, and the equipment to be upgraded can download the preset firmware by sending the firmware downloading link, so that the preset firmware is released to the equipment to be upgraded, the upgraded equipment becomes a new node, the process of deploying the CDN server is reduced, and the cost of the server is reduced.
It will be understood that the invention is not limited to the examples described above, but that modifications and variations will occur to those skilled in the art in light of the above teachings, and that all such modifications and variations are considered to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method for issuing firmware, comprising:
acquiring a firmware upgrading request sent by equipment to be upgraded, and sending preset firmware information to the equipment to be upgraded according to the firmware upgrading request;
acquiring a node acquisition request sent by the equipment to be upgraded, and sending a firmware downloading link to the equipment to be upgraded according to the node acquisition request;
and acquiring a firmware downloading request sent by the equipment to be upgraded, and sending a preset firmware to the equipment to be upgraded according to the firmware downloading request.
2. The method according to claim 1, wherein before the obtaining of the firmware upgrade request sent by the device to be upgraded, the method further comprises:
and establishing communication connection with the equipment to be upgraded through a wired network or a wireless network.
3. The method according to claim 2, wherein the sending preset firmware information to the device to be upgraded according to the firmware upgrade request comprises:
acquiring the current firmware information of the equipment to be upgraded according to the firmware upgrading request;
judging whether the current firmware information is consistent with preset firmware information or not according to the current firmware information;
and if not, sending the preset firmware information to the equipment to be upgraded.
4. The method of claim 1, wherein sending a firmware download link to the device to be upgraded according to the node acquisition request comprises:
acquiring equipment information of the equipment to be upgraded according to the node acquisition request;
judging whether the equipment to be upgraded is preset upgrading equipment or not according to the equipment information;
if yes, acquiring a corresponding firmware downloading link according to the equipment information and the preset firmware information, and sending the firmware downloading link to the equipment to be upgraded.
5. The method according to claim 1, wherein the sending the preset firmware to the device to be upgraded according to the firmware download request comprises:
establishing an application layer protocol data link with the equipment to be upgraded according to the firmware downloading request;
and selecting a preset firmware corresponding to the firmware downloading link, and sending the preset firmware to the equipment to be upgraded through the application layer protocol data link so as to distribute the preset firmware to the equipment to be upgraded.
6. The method according to claim 4, wherein after determining whether the device to be upgraded is a preset upgrade device according to the device information, the method further comprises:
if not, acquiring preset downloading node information, and sending the preset downloading node information to the equipment to be upgraded;
and sending P2P assistance information to a corresponding downloading node according to the preset downloading node information so as to assist the equipment to be upgraded to download the preset firmware through the corresponding downloading node.
7. The method according to claim 1, wherein after sending the preset firmware to the device to be upgraded according to the firmware download request, the method further comprises:
acquiring firmware upgrading success information sent by upgraded equipment;
and updating a node map according to the firmware upgrading success information, and taking the upgraded equipment as a new node.
8. A firmware distribution apparatus, comprising:
the device comprises a preset firmware information sending unit, a firmware updating unit and a firmware updating unit, wherein the preset firmware information sending unit is used for acquiring a firmware updating request sent by equipment to be updated and sending preset firmware information to the equipment to be updated according to the firmware updating request;
a firmware download link sending unit, configured to obtain a node acquisition request sent by the device to be upgraded, and send a firmware download link to the device to be upgraded according to the node acquisition request;
and the preset firmware sending unit is used for acquiring a firmware downloading request sent by the equipment to be upgraded and sending a preset firmware to the equipment to be upgraded according to the firmware downloading request.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a firmware distribution program stored in the memory and operable on the processor, and the processor implements the steps of the firmware distribution method according to any one of claims 1 to 7 when executing the firmware distribution program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a firmware distribution program, which when executed by a processor implements the steps of the firmware distribution method according to any one of claims 1 to 7.
CN202011625863.XA 2020-12-30 2020-12-30 Firmware issuing method, device, terminal equipment and computer readable storage medium Active CN114765620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011625863.XA CN114765620B (en) 2020-12-30 2020-12-30 Firmware issuing method, device, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011625863.XA CN114765620B (en) 2020-12-30 2020-12-30 Firmware issuing method, device, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114765620A true CN114765620A (en) 2022-07-19
CN114765620B CN114765620B (en) 2024-04-02

Family

ID=82363047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011625863.XA Active CN114765620B (en) 2020-12-30 2020-12-30 Firmware issuing method, device, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114765620B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130227543A1 (en) * 2012-02-24 2013-08-29 Wistron Corporation Server deployment system and method for updating data
US20140304699A1 (en) * 2011-12-09 2014-10-09 Motorola Mobility Llc Methods and apparatus to trigger firmware update request in response to a failure event
WO2016160944A1 (en) * 2015-03-31 2016-10-06 Bose Corporation Establishing communication between digital media servers and audio playback devices in audio systems
CN107239302A (en) * 2017-05-10 2017-10-10 努比亚技术有限公司 A kind of firmware upgrade method, terminal and server
US20170331739A1 (en) * 2016-05-13 2017-11-16 Cisco Technology, Inc. Data plane integration
US20180212857A1 (en) * 2017-01-26 2018-07-26 International Business Machines Corporation Proactive channel agent
CN110795119A (en) * 2019-09-19 2020-02-14 平安科技(深圳)有限公司 Firmware upgrading method and device, computer equipment and storage medium
CN111258599A (en) * 2018-12-03 2020-06-09 中国电信股份有限公司 Firmware upgrade method, system and computer readable storage medium
JP2020140432A (en) * 2019-02-28 2020-09-03 京セラドキュメントソリューションズ株式会社 Firmware upgrade system, mobile device and firmware upgrade program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140304699A1 (en) * 2011-12-09 2014-10-09 Motorola Mobility Llc Methods and apparatus to trigger firmware update request in response to a failure event
US20130227543A1 (en) * 2012-02-24 2013-08-29 Wistron Corporation Server deployment system and method for updating data
WO2016160944A1 (en) * 2015-03-31 2016-10-06 Bose Corporation Establishing communication between digital media servers and audio playback devices in audio systems
US20170331739A1 (en) * 2016-05-13 2017-11-16 Cisco Technology, Inc. Data plane integration
US20180212857A1 (en) * 2017-01-26 2018-07-26 International Business Machines Corporation Proactive channel agent
CN107239302A (en) * 2017-05-10 2017-10-10 努比亚技术有限公司 A kind of firmware upgrade method, terminal and server
CN111258599A (en) * 2018-12-03 2020-06-09 中国电信股份有限公司 Firmware upgrade method, system and computer readable storage medium
JP2020140432A (en) * 2019-02-28 2020-09-03 京セラドキュメントソリューションズ株式会社 Firmware upgrade system, mobile device and firmware upgrade program
CN110795119A (en) * 2019-09-19 2020-02-14 平安科技(深圳)有限公司 Firmware upgrading method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114765620B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN106897086B (en) Method, device and system for upgrading robot operating system
KR100979201B1 (en) Mobile terminals and Method for updating software thereof
US20140282487A1 (en) Software update for a wireless communication device
US8594653B2 (en) System and methods for remotely upgrading software applications
WO2018077168A1 (en) Method and apparatus for upgrading vehicle-mounted application system
CN101291231A (en) Network appliance and restarting method thereof
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
CN106775816B (en) Automatic updating method and system for application program in local area network
WO2012151993A1 (en) Service pushing method and device
KR101201276B1 (en) Method, software and apparatus for performing actions on a wireless device using action lists and versioning
CN106663016A (en) Upgrade method, apparatus and device for terminal device
WO2023123875A1 (en) Bluetooth-based multi-device ota upgrade method, electronic device, storage medium and program product
CN111338670A (en) Robot firmware updating method and device, storage medium and robot
US11755308B2 (en) Software update device, update control method, and non-transitory storage medium
CN109471649A (en) The gray scale delivery system and method for firmware upgrade
CN114765620A (en) Firmware release method and device, terminal equipment and computer readable storage medium
CN110602688B (en) Terminal software upgrading method and upgrading system
US10698642B2 (en) Remote management system and information processing method
CN111181752B (en) Narrowband device upgrading method, mobile terminal and readable storage medium
CN115335803A (en) Equipment upgrading method, intelligent equipment and computer readable storage medium
CN107734494B (en) IMS parameter updating control method, mobile terminal and storage device
CN114610366A (en) Difference package upgrading method and system, intelligent electronic equipment and storage medium
US9049180B2 (en) Method for providing a signal output on the basis of a main file and at least one secondary file, and motor vehicle
CN114969223A (en) Map updating method, device and system
CN112464090A (en) Electronic price tag information updating method, electronic price tag and computer readable 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