CN110673865A - Firmware upgrading method and device for equipment, storage medium, terminal and server - Google Patents
Firmware upgrading method and device for equipment, storage medium, terminal and server Download PDFInfo
- Publication number
- CN110673865A CN110673865A CN201910818837.XA CN201910818837A CN110673865A CN 110673865 A CN110673865 A CN 110673865A CN 201910818837 A CN201910818837 A CN 201910818837A CN 110673865 A CN110673865 A CN 110673865A
- Authority
- CN
- China
- Prior art keywords
- version number
- firmware
- upgrading
- server
- upgrade
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000012795 verification Methods 0.000 claims description 10
- 238000012544 monitoring process Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 8
- 230000003993 interaction Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000011664 signaling Effects 0.000 description 3
- 230000000737 periodic effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
A firmware upgrading method and device of equipment, a storage medium, a terminal and a server are provided, wherein the firmware upgrading method comprises the following steps: periodically reporting the version number of the firmware to a server; receiving an upgrading instruction issued by the server, wherein the upgrading instruction comprises an upgrading target version number; sending a downloading request of the upgrading data packet of the upgrading target version number to the server; and upgrading the firmware according to the received upgrading data packet. The embodiment of the invention can provide a feasible scheme for upgrading the firmware of the equipment.
Description
Technical Field
The invention relates to the technical field of Internet of vehicles and communication, in particular to a firmware upgrading method and device of equipment, a storage medium, a terminal and a server.
Background
With the gradual enhancement of software functions and the improvement of product performance, the vehicle-mounted equipment may have a firmware upgrading requirement in the long-term operation process.
In the prior art, a Transmission control Protocol/Internet Protocol (TCP/IP for short) is mainly used to upgrade firmware. Because the TCP/IP protocol can maintain the connection between the vehicle-mounted equipment and the server, when the server generates a new firmware version number, the upgrading data packet of the new firmware version number can be directly issued to upgrade the vehicle-mounted equipment.
However, when the in-vehicle device is connected to the server based on a protocol other than the TCP/IP protocol, how to upgrade the firmware is to be further studied.
Disclosure of Invention
The technical problem solved by the invention is how to upgrade the firmware of the equipment.
To solve the foregoing technical problem, an embodiment of the present invention provides a method for upgrading a firmware of a device, including: periodically reporting the version number of the firmware to a server; receiving an upgrading instruction issued by the server, wherein the upgrading instruction comprises an upgrading target version number; sending a downloading request of the upgrading data packet of the upgrading target version number to the server; and upgrading the firmware according to the received upgrading data packet.
Optionally, the reporting of the version number of the firmware to the server periodically includes: and reporting the version number of the firmware to the server periodically by adopting an HTTP (hyper text transport protocol).
Optionally, the device includes a sensor, and the firmware upgrading method further includes: periodically reporting sensing data to the server, wherein the sensing data comprises monitoring data of the sensor; the reporting of the version number of the firmware to the server cycle includes: and carrying the version number of the firmware in the sensing data and sending the version number of the firmware.
Optionally, the version number of the firmware included in the upgrade data packet is equal to the upgrade target version number.
Optionally, the upgrade instruction further includes one or more of the following: and the download address, the download account information and the verification information of the upgrade data packet.
In order to solve the foregoing technical problem, an embodiment of the present invention further provides a method for upgrading a firmware of a device, where the method includes: receiving the version number of the firmware periodically reported by the equipment; judging whether the stored latest version number of the firmware is the reported version number or not; and if the reported version number is not the latest version number, issuing an upgrading instruction to enable the equipment to request an upgrading data packet, and upgrading the firmware according to the received upgrading data packet, wherein the upgrading instruction comprises an upgrading target version number.
Optionally, the version number of the firmware periodically reported by the receiving device includes: and receiving the version number of the firmware reported by the equipment in a HTTP protocol period.
Optionally, the device includes a sensor, and the firmware upgrading method further includes: receiving sensing data reported periodically by the equipment, wherein the sensing data comprises monitoring data of the sensor; the version number of the firmware periodically reported by the receiving device includes: and receiving the version number of the firmware carried by the sensing data.
Optionally, if the reported version number is not the latest version number, the issuing of the upgrade instruction includes: if the reported version number is not the latest version number, the equipment is marked as equipment to be upgraded, and the upgrading instruction is issued to the equipment to be upgraded.
Optionally, the upgrade method further includes: receiving a downloading request of an upgrading data packet of the upgrading target version number sent by the equipment; and issuing an upgrading data packet according to the downloading request, wherein the version number of the firmware contained in the upgrading data packet is equal to the upgrading target version number.
Optionally, the upgrade instruction further includes one or more of the following: and the download address, the download account information and the verification information of the upgrade data packet.
In order to solve the foregoing technical problem, an embodiment of the present invention further provides an apparatus for upgrading a firmware of a device, including: the first reporting module is used for periodically reporting the version number of the firmware to the server; the receiving module is used for receiving an upgrading instruction issued by the server, and the upgrading instruction comprises an upgrading target version number; a sending module, configured to send a download request of the upgrade data packet with the upgrade target version number to the server; and the upgrading module is used for upgrading the firmware according to the received upgrading data packet.
In order to solve the foregoing technical problem, an embodiment of the present invention further provides an apparatus for upgrading a firmware of a device, including: the first receiving module is used for receiving the version number of the firmware reported periodically by the equipment; the judging module is used for judging whether the latest version number of the stored firmware is the reported version number or not; and the issuing module is used for issuing an upgrading instruction if the reported version number is not the latest version number so that the equipment requests an upgrading data packet and upgrading the firmware according to the received upgrading data packet, wherein the upgrading instruction comprises an upgrading target version number.
To solve the above technical problem, an embodiment of the present invention further provides a storage medium having stored thereon computer instructions, where the computer instructions execute the steps of the above method when executed.
In order to solve the foregoing technical problem, an embodiment of the present invention further provides a terminal, including a memory and a processor, where the memory stores computer instructions executable on the processor, and the processor executes the computer instructions to perform the steps of the foregoing method.
In order to solve the above technical problem, an embodiment of the present invention further provides a server, including a memory and a processor, where the memory stores computer instructions executable on the processor, and the processor executes the computer instructions to perform the steps of the above method.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a firmware upgrading method of equipment, which comprises the following steps: periodically reporting the version number of the firmware to a server; receiving an upgrading instruction issued by the server, wherein the upgrading instruction comprises an upgrading target version number; sending a downloading request of the upgrading data packet of the upgrading target version number to the server; and upgrading the firmware according to the received upgrading data packet. The embodiment of the invention actively reports the firmware version number of the device, so that the server can judge whether the device needs to be upgraded, and when the device needs to be upgraded, the server can issue the upgrade instruction, so that the device can download the upgrade data packet to complete the firmware upgrade.
Further, the device comprises a sensor, and the firmware upgrading method further comprises: periodically reporting sensing data to the server, wherein the sensing data comprises monitoring data of the sensor; the reporting of the version number of the firmware to the server cycle includes: and carrying the version number of the firmware in the sensing data and sending the version number of the firmware. In the embodiment of the invention, the device can carry the firmware version number when reporting the sensing data, and does not need to report the firmware version number independently, thereby not only finishing the report of the firmware version number, but also simplifying the report process of the firmware version number and effectively saving the power consumption.
Drawings
Fig. 1 is a flowchart illustrating a firmware upgrading method for a device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a firmware upgrade method for a device according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a firmware upgrading apparatus of a device according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a firmware upgrading apparatus of another device according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a firmware upgrading apparatus of a device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a firmware upgrading apparatus of another device according to an embodiment of the present invention.
Detailed Description
As will be appreciated by those skilled in the art, as background, firmware upgrades remain to be further investigated. Particularly, when the vehicle-mounted device is connected with the server by using a protocol other than the TCP/IP protocol (for example, a hypertext transfer protocol (HTTP protocol)), how to upgrade the firmware is a problem to be solved.
The embodiment of the invention provides a firmware upgrading method of equipment, which comprises the following steps: periodically reporting the version number of the firmware to a server; receiving an upgrading instruction issued by the server, wherein the upgrading instruction comprises an upgrading target version number; sending a downloading request of the upgrading data packet of the upgrading target version number to the server; and upgrading the firmware according to the received upgrading data packet.
The embodiment of the invention actively reports the firmware version number of the device, so that the server can judge whether the device needs to be upgraded, and when the device needs to be upgraded, the server can issue the upgrade instruction, so that the device can request to download the upgrade data packet to complete the firmware upgrade.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Fig. 1 is a flowchart illustrating a firmware upgrading method for a device according to an embodiment of the present invention. The firmware upgrading method can be used for upgrading the firmware of various devices. The device may be an in-vehicle device, such as an embedded in-vehicle device.
Specifically, the firmware upgrading method may include the steps of:
step S101, reporting the version number of the firmware to a server periodically;
step S102, receiving an upgrading instruction issued by the server, wherein the upgrading instruction comprises an upgrading target version number;
step S103, sending a downloading request of the upgrading data packet of the upgrading target version number to the server;
and step S104, upgrading the firmware according to the received upgrading data packet.
More specifically, in step S101, the device may periodically report the version number of the firmware to the server. In the vehicle-mounted device, the version number of the firmware may be reported at regular time or in a cycle by using a 3G vehicle-mounted automatic diagnostic system (3G OBD), or the version number of the firmware may be reported at regular time or in a cycle by using a bluetooth OBD via a device such as a mobile phone.
In implementations, the device may include a sensor, and the device may periodically report the sensing data. The sensing data may include monitoring data of the sensor. Taking the vehicle-mounted device as an example, the sensing data may include a vehicle battery report, a vehicle tire pressure temperature, an engine speed, and the like.
In a specific implementation, when the device periodically reports the sensing data, the device may carry and report the version number of the firmware. It should be noted that, the version number of the firmware is carried in the sensing data and sent together, so that the reporting power consumption of the firmware version number can be effectively reduced, and the version number reporting process is simplified.
In a specific implementation, if the device connects to the server using the HTTP protocol, the version number of the firmware may be periodically reported to the server using the HTTP protocol.
The server may then receive a version number of the firmware. In one non-limiting embodiment, the server may receive the sensed data along with the version number of the firmware.
Further, the server may compare version numbers of the firmware stored in the server itself, and determine whether the latest version number of the stored firmware is the reported version number. For example, the version number of the firmware reported by the device is version number 1.1, and the version number of the firmware stored in the server may include version number 1.0, version number 1.1, and version number 1.2. Those skilled in the art will appreciate that, in general, higher values of version numbers indicate newer version numbers.
Further, if the reported version number is the latest version number, that is, the latest firmware version stored by the server is consistent with the firmware version of the device, the server may ignore the reported version number.
If the reported version number is not the latest version number, the server may mark each device that sends out a non-latest version number, for example, mark each device with a non-latest version number as a device to be upgraded.
The server may then issue an upgrade instruction to notify the device to request download of an upgrade data package. In the upgrade instruction, the server may include an upgrade target version number. For example, after receiving the firmware version number of the version number 1.1 reported by the device, the server may include a version number 1.2 in the delivered upgrade target version number.
Further, in step S102, the device receives an upgrade instruction issued by the server, and the device may know an upgrade target version number of the firmware upgrade that the server expects the device. It should be noted that the server may further include, in the upgrade instruction, a download address, download account information, verification information, and the like of the upgrade data package.
Further, in step S103, the device may send a download request of the upgrade data package of the upgrade target version number to the server. In a specific implementation, the device may send, to the server, a download request of the upgrade data packet with the upgrade target version number when the device is in an idle state.
For the server, after receiving the download request, the server may compare an upgrade target version number in the download request with a latest version number of the stored firmware, and if the upgrade target version number is the same as the latest version number of the stored firmware, the server may issue an upgrade data packet corresponding to the upgrade target version number to the device.
In a specific implementation, if the upgrade target version number is different from the latest version number of the stored firmware, that is, the latest version number stored in the server is higher than the upgrade target version number, the server may re-mark the device and issue a new upgrade instruction, where the new upgrade instruction includes the latest version number. Then, if the device decides to download the upgrade data with the latest version number, a new download request may be sent so that the server may issue an upgrade data package with the latest version number to the device.
In a non-limiting example, the upgrade target version number issued by the server is version number 1.2, after the device sends a download request for downloading an upgrade data packet corresponding to version number 1.2, the server stores the upgrade data packet corresponding to version number 1.2 and also includes an upgrade data packet corresponding to version number 1.3, at this time, the server may determine, according to known conditions, whether the device is compatible with the upgrade data packet corresponding to version number 1.3, and when the determination result indicates that the device is compatible with the upgrade data packet corresponding to version number 1.3, the server may issue the upgrade data packet corresponding to version number 1.3.
In step S104, the device may receive an upgrade data packet, and upgrade the firmware according to the received upgrade data packet.
Fig. 2 is a flowchart illustrating a firmware upgrading method for a device according to another embodiment of the present invention. The firmware upgrading method can be executed by a server to assist the terminal equipment in completing the firmware upgrading of the equipment.
Specifically, the firmware upgrading method may include the steps of:
step S201, receiving the version number of the firmware periodically reported by the equipment;
step S202, judging whether the latest version number of the stored firmware is the reported version number;
step S203, if the reported version number is not the latest version number, an upgrade instruction is issued to enable the device to request an upgrade data packet, and the firmware is upgraded according to the received upgrade data packet, wherein the upgrade instruction comprises an upgrade target version number.
More specifically, in step S201, the server may receive a version number of the firmware periodically reported by the device. In a specific implementation, when the device connects to the server using the HTTP protocol, the server may periodically receive a version number of the firmware of the device from the device through the HTTP protocol.
In one non-limiting example, the device may include a sensor, and the device periodically reports sensed data, including monitored data of the sensor. And when the equipment reports the sensing data periodically, the equipment also carries the version number of the firmware in the sensing data. The server may receive the sensed data together with a version number of the firmware.
In step S202, the server may determine whether the latest version number of the stored firmware is the reported version number.
In step S203, if the reported version number is not the latest version number, the server may mark the device as a device to be upgraded, and issue the upgrade instruction to the device to be upgraded, so that the device requests an upgrade data packet, and upgrade the firmware according to the received upgrade data packet, where the upgrade instruction includes an upgrade target version number.
In a non-limiting example, the upgrade instruction may further include one or more items of content such as a download address, download account information, and verification information of the upgrade data package.
Specifically, after receiving the upgrade instruction, the device may send a download request of the upgrade data packet of the upgrade target version number in an idle state. After receiving the download request, the server may issue an upgrade data packet according to the download request, where a version number of firmware included in the upgrade data packet may be equal to the upgrade target version number.
Those skilled in the art understand that the steps S201 to S203 can be regarded as execution steps corresponding to the steps S101 to S104 described in the above embodiment shown in fig. 1, and the two steps are complementary in specific implementation principle and logic. Therefore, as for the firmware upgrading method on the server side, reference may be made to the related description of the embodiment shown in fig. 1, and details are not repeated here.
The signaling interaction between the device and the server according to the embodiments of the present invention will be further described with reference to a typical application scenario.
Fig. 3 shows a signaling interaction diagram of a device and a server in a typical scenario according to an embodiment of the present invention.
In a typical application scenario, referring to fig. 3, the device 1 first performs operation s1, i.e. sends the version number of the sensing data and the firmware to the server 2; after receiving the version number of the sensing data and the firmware, the server 2 may perform operation s2, i.e. send feedback information to the device 1, for example, send data processing success information.
Secondly, the device 1 may perform operation s3, i.e. send the version number of the sensing data and the firmware to the server 2; after receiving the version number of the sensing data and the firmware, the server 2 may perform operation s4, i.e. send feedback information to the device 1, for example, send data processing success information.
Again, the server 2 finds that the device 1 can upgrade the firmware, at which point the server 2 may perform operation s5, mark the device 1 as upgradeable, and may identify the target upgrade version number of the device 1 as vx.
Thereafter, the device 1 may perform operation s6, i.e. send the version number of the sensing data and the firmware to the server 2; after receiving the version numbers of the sensing data and the firmware, the server 2 may perform operation s7, that is, send feedback data processing success information and an upgrade instruction to the device 1. The upgrade instruction may include a target version number vx.x, a download address, firmware verification information, such as Message Digest Algorithm (md 5) information, and the like.
Further, the device 1 may execute operation s8, send a download request carrying a target version number of vx.x, and after receiving the download request, the server 2 may execute operation s9, and issue an upgrade data package with a version number of vx.x.
Further, the device 1 may perform operation s10, and after receiving the upgrade data package with the version number vx.x, may check the md5 information.
Further, the device 1 may perform operation s11, perform a firmware update, and initialize the device 1.
Further, the device 1 may continue to perform operation s12, i.e., send the version number of the sensing data and the firmware to the server 2; after receiving the version number of the sensing data and firmware, the server 2 may perform operation s13, i.e. send the data processing success information to the device 1.
Those skilled in the art will appreciate that in a specific implementation, the device 1 may perform the operation s1 multiple times and the server 2 may perform the operation s2 multiple times during the periodic reporting period.
For more contents of the working principle and the working mode of the device 1 and the server 2, reference may be made to the above description of the technical solutions in fig. 1 and fig. 2, and details are not described here again.
Fig. 4 shows a schematic signaling interaction diagram of a device and a server in another exemplary scenario according to an embodiment of the present invention.
In a further typical application scenario, referring to fig. 4, the device 1 first performs operation s1, i.e. sending the version number of the sensing data and the firmware to the server 2; after receiving the version number of the sensing data and the firmware, the server 2 may perform operation s2, i.e. send feedback information to the device 1, for example, send data processing success information.
Secondly, the device 1 may perform operation s3, i.e. send the version number of the sensing data and the firmware to the server 2; after receiving the version number of the sensing data and the firmware, the server 2 may perform operation s4, i.e. send feedback information to the device 1, for example, send data processing success information.
Again, the server 2 finds that the device 1 can upgrade the firmware, at which point the server 2 may perform operation s5, mark the device 1 as upgradeable, and may identify the target upgrade version number of the device 1 as vx.
The server 2 then discovers again that the device 1 can upgrade the firmware to a higher version number such as vy.y, Y representing version number information. At this point, the server 2 may perform operation s6, marking device 1 as upgradeable, and may identify the target upgrade version number for that device 1 as vy.
Further, the device 1 may perform operation s7, i.e., send the version number of the sensing data and the firmware to the server 2; after receiving the version numbers of the sensing data and the firmware, the server 2 may perform operation s8, that is, send feedback data processing success information and an upgrade instruction to the device 1. The upgrade instruction may include a target version number vx.x, a download address, firmware verification information, such as md5 information, and the like.
Further, the device 1 may execute operation s9, send a download request carrying a target version number vy.y, and after receiving the download request, the server 2 may execute operation s10, and issue an upgrade data package with a version number vy.y.
Further, the device 1 may perform operation s11, and after receiving the upgrade packet with the version number vy, may check the md5 information.
Further, the device 1 may perform operation s12, perform a firmware update, and initialize the device 1.
Further, the device 1 may continue to perform operation s13, i.e., send the version number of the sensing data and the firmware to the server 2; after receiving the version number of the sensing data and firmware, the server 2 may perform operation s14, i.e. send the data processing success information to the device 1.
Those skilled in the art will appreciate that in a specific implementation, the device 1 may perform the operation s1 multiple times and the server 2 may perform the operation s2 multiple times during the periodic reporting period.
For more contents of the working principle and the working mode of the device 1 and the server 2, reference may be made to the above description of the technical solutions in fig. 1 and fig. 2, and details are not described here again.
In summary, the embodiment of the present invention can provide a feasible technical solution for firmware upgrade for a device.
Fig. 5 is a schematic structural diagram of a firmware upgrading apparatus of a device according to an embodiment of the present invention. The firmware upgrading device of the device can implement the technical scheme of the method shown in fig. 1 and is executed by the terminal device.
Specifically, the firmware upgrading apparatus of the device may include: a first reporting module 51, configured to report a version number of the firmware to the server periodically; a receiving module 52, configured to receive an upgrade instruction issued by the server, where the upgrade instruction includes an upgrade target version number; a sending module 53, configured to send a download request of the upgrade data package with the upgrade target version number to the server; and the upgrading module 54 is configured to upgrade the firmware according to the received upgrade data packet.
In a specific implementation, the first reporting module 51 may include a reporting sub-module (not shown) configured to report the version number of the firmware to the server periodically by using an HTTP protocol.
In a specific implementation, the device includes a sensor, and the firmware upgrading apparatus of the device may further include: a second reporting module (not shown) configured to report sensing data to the server periodically, where the sensing data includes monitoring data of the sensor; the first reporting module 51 may include: and a sending submodule (not shown) for carrying the version number of the firmware in the sensing data and sending the sensing data.
In a specific implementation, the version number of the firmware included in the upgrade data packet may be equal to the upgrade target version number.
In particular implementations, the upgrade instructions further include one or more of: and the download address, the download account information and the verification information of the upgrade data packet.
For more contents of the working principle and the working mode of the firmware upgrading device of the apparatus, reference may be made to the related description of the technical solutions in fig. 1, fig. 3, and fig. 4, which is not described herein again.
Fig. 6 is a schematic structural diagram of a firmware upgrading apparatus of another device according to an embodiment of the present invention. The firmware upgrading device of the equipment can implement the technical scheme of the method shown in fig. 2, fig. 3 and fig. 4 and is executed by the server. The firmware upgrading device of the equipment comprises: a first receiving module 61, configured to receive a version number of the firmware periodically reported by the device; a judging module 62, configured to judge whether the latest version number of the stored firmware is a reported version number; and an issuing module 63, configured to issue an upgrade instruction if the reported version number is not the latest version number, so that the device requests an upgrade data packet, and upgrade the firmware according to the received upgrade data packet, where the upgrade instruction includes an upgrade target version number.
In a specific implementation, the first receiving module 61 may include: and a receiving submodule (not shown) configured to receive the version number of the firmware periodically reported by the device using an HTTP protocol.
In a specific implementation, the device includes a sensor, and the firmware upgrading apparatus of the device may further include: a second receiving module (not shown) configured to receive sensing data periodically reported by the device, where the sensing data includes monitoring data of the sensor; the first receiving module 61 may include: and a receiving submodule (not shown) for receiving the version number of the firmware carried by the sensing data together.
In a specific implementation, the issuing module 63 may include a tag issuing sub-module (not shown), and if the reported version number is not the latest version number, the tag issuing sub-module is configured to tag the device as a device to be upgraded, and issue the upgrade instruction to the device to be upgraded.
In a specific implementation, the firmware upgrading apparatus of the device may further include: a third receiving module (not shown) for receiving a download request of the upgrade data package with the upgrade target version number sent by the device; a sending module (not shown) configured to issue an upgrade data packet according to the download request, where a version number of firmware included in the upgrade data packet may be equal to the upgrade target version number.
In particular implementations, the upgrade instructions further include one or more of: and the download address, the download account information and the verification information of the upgrade data packet.
For more contents of the working principle and the working mode of the firmware upgrading device of the apparatus, reference may be made to the related description of the technical solutions in fig. 2, fig. 3, and fig. 4, which is not described herein again.
Further, the embodiment of the present invention further discloses a storage medium, on which computer instructions are stored, and when the computer instructions are executed, the technical solutions of the methods in the embodiments shown in fig. 1 to fig. 4 are executed. Preferably, the storage medium may include a computer-readable storage medium such as a non-volatile (non-volatile) memory or a non-transitory (non-transient) memory. The storage medium may include ROM, RAM, magnetic or optical disks, etc.
Further, an embodiment of the present invention further discloses a terminal, which includes a memory and a processor, where the memory stores computer instructions capable of being executed on the processor, and the processor executes the technical solutions of the methods in the embodiments shown in fig. 1, fig. 3, and fig. 4 when executing the computer instructions.
Further, an embodiment of the present invention further discloses a server, which includes a memory and a processor, where the memory stores computer instructions capable of being executed on the processor, and the processor executes the computer instructions to execute the technical solutions of the methods in the embodiments shown in fig. 2, fig. 3, and fig. 4.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (16)
1. A method for upgrading firmware of a device, comprising:
periodically reporting the version number of the firmware to a server;
receiving an upgrading instruction issued by the server, wherein the upgrading instruction comprises an upgrading target version number;
sending a downloading request of the upgrading data packet of the upgrading target version number to the server;
and upgrading the firmware according to the received upgrading data packet.
2. The method of claim 1, wherein the reporting of the version number of the firmware to the server periodically comprises:
and reporting the version number of the firmware to the server periodically by adopting an HTTP (hyper text transport protocol).
3. The firmware upgrade method according to claim 1, wherein the device includes a sensor, the firmware upgrade method further comprising: periodically reporting sensing data to the server, wherein the sensing data comprises monitoring data of the sensor;
the reporting of the version number of the firmware to the server cycle includes: and carrying the version number of the firmware in the sensing data and sending the version number of the firmware.
4. The firmware upgrade method according to claim 1, wherein the upgrade data packet contains firmware having a version number equal to the upgrade target version number.
5. The upgrade method according to any one of claims 1 to 4, wherein the upgrade instructions further comprise one or more of: and the download address, the download account information and the verification information of the upgrade data packet.
6. A method for upgrading firmware of a device, comprising:
receiving the version number of the firmware periodically reported by the equipment;
judging whether the stored latest version number of the firmware is the reported version number or not;
and if the reported version number is not the latest version number, issuing an upgrading instruction to enable the equipment to request an upgrading data packet, and upgrading the firmware according to the received upgrading data packet, wherein the upgrading instruction comprises an upgrading target version number.
7. The firmware upgrade method according to claim 6, wherein the version number of the firmware periodically reported by the receiving device includes:
and receiving the version number of the firmware reported by the equipment in a HTTP protocol period.
8. The firmware upgrade method according to claim 6, wherein the device includes a sensor, the firmware upgrade method further comprising: receiving sensing data reported periodically by the equipment, wherein the sensing data comprises monitoring data of the sensor;
the version number of the firmware periodically reported by the receiving device includes: and receiving the version number of the firmware carried by the sensing data.
9. The method of claim 6, wherein if the reported version number is not the latest version number, issuing an upgrade instruction comprises:
if the reported version number is not the latest version number, the equipment is marked as equipment to be upgraded, and the upgrading instruction is issued to the equipment to be upgraded.
10. The upgrade method according to claim 6, further comprising:
receiving a downloading request of an upgrading data packet of the upgrading target version number sent by the equipment;
and issuing an upgrading data packet according to the downloading request, wherein the version number of the firmware contained in the upgrading data packet is equal to the upgrading target version number.
11. The upgrade method according to any one of claims 6 to 10, wherein the upgrade instructions further comprise one or more of: and the download address, the download account information and the verification information of the upgrade data packet.
12. An apparatus for upgrading firmware of a device, comprising:
the first reporting module is used for periodically reporting the version number of the firmware to the server;
the receiving module is used for receiving an upgrading instruction issued by the server, and the upgrading instruction comprises an upgrading target version number;
a sending module, configured to send a download request of the upgrade data package of the upgrade target version number to the server;
and the upgrading module is used for upgrading the firmware according to the received upgrading data packet.
13. An apparatus for upgrading firmware of a device, comprising:
the first receiving module is used for receiving the version number of the firmware reported periodically by the equipment;
the judging module is used for judging whether the latest version number of the stored firmware is the reported version number or not;
and the issuing module is used for issuing an upgrading instruction if the reported version number is not the latest version number so that the equipment requests an upgrading data packet and upgrading the firmware according to the received upgrading data packet, wherein the upgrading instruction comprises an upgrading target version number.
14. A storage medium having stored thereon computer instructions, wherein the computer instructions when executed perform any of claims 1 to 5 or perform the steps of the method of any of claims 6 to 11.
15. A terminal comprising a memory and a processor, the memory having stored thereon computer instructions executable on the processor, wherein the processor, when executing the computer instructions, performs the steps of the method of any one of claims 1 to 5.
16. A server comprising a memory and a processor, the memory having stored thereon computer instructions executable on the processor, wherein the processor, when executing the computer instructions, performs the steps of the method of any one of claims 6 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910818837.XA CN110673865A (en) | 2019-08-30 | 2019-08-30 | Firmware upgrading method and device for equipment, storage medium, terminal and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910818837.XA CN110673865A (en) | 2019-08-30 | 2019-08-30 | Firmware upgrading method and device for equipment, storage medium, terminal and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110673865A true CN110673865A (en) | 2020-01-10 |
Family
ID=69075869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910818837.XA Pending CN110673865A (en) | 2019-08-30 | 2019-08-30 | Firmware upgrading method and device for equipment, storage medium, terminal and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110673865A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352785A (en) * | 2020-03-05 | 2020-06-30 | 苏州浪潮智能科技有限公司 | Detection method and system for non-version-number firmware of storage server |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105577449A (en) * | 2016-01-19 | 2016-05-11 | 江苏小牛电动科技有限公司 | Automatic upgrading method and device based on center control system of electric vehicle |
CN107168739A (en) * | 2017-05-15 | 2017-09-15 | 万达百汇科技(深圳)有限公司 | POS, POS wireless communication module firmware upgrade method and device |
CN109361544A (en) * | 2018-10-30 | 2019-02-19 | 深圳市航天华拓科技有限公司 | A kind of positioning terminal firmware method, apparatus and calculate equipment |
-
2019
- 2019-08-30 CN CN201910818837.XA patent/CN110673865A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105577449A (en) * | 2016-01-19 | 2016-05-11 | 江苏小牛电动科技有限公司 | Automatic upgrading method and device based on center control system of electric vehicle |
CN107168739A (en) * | 2017-05-15 | 2017-09-15 | 万达百汇科技(深圳)有限公司 | POS, POS wireless communication module firmware upgrade method and device |
CN109361544A (en) * | 2018-10-30 | 2019-02-19 | 深圳市航天华拓科技有限公司 | A kind of positioning terminal firmware method, apparatus and calculate equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352785A (en) * | 2020-03-05 | 2020-06-30 | 苏州浪潮智能科技有限公司 | Detection method and system for non-version-number firmware of storage server |
CN111352785B (en) * | 2020-03-05 | 2022-12-20 | 苏州浪潮智能科技有限公司 | Detection method and system for non-version-number firmware of storage server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108108181B (en) | Function updating method and device of application program and computer readable storage medium | |
US20200081701A1 (en) | Information Upgrading Method, Apparatus and Storage Medium for Automatic Driving Vehicle | |
CN111722860B (en) | OTA upgrading method and device based on finite state machine | |
CN107608701A (en) | A kind of method and apparatus of firmware updating | |
JP7225596B2 (en) | Program update system, program update server and vehicle | |
WO2013051777A1 (en) | Method for upgrading the electronic control device of a vehicle, and terminal for same | |
US10274919B2 (en) | Method, device and computer program product for programming a plurality of control units | |
CN107831887B (en) | Application starting method and device | |
US10203947B2 (en) | Efficient over-the-air software update for a connected vehicle | |
CN114201197A (en) | Firmware upgrading method and device, electronic equipment and readable storage medium | |
CN113608763A (en) | Vehicle-mounted OTA upgrading method, device, equipment and operation machine | |
US20220405083A1 (en) | Ota master, system, method, non-transitory storage medium, and vehicle | |
US20220391192A1 (en) | Ota master, center, system, method, non-transitory storage medium, and vehicle | |
CN110673865A (en) | Firmware upgrading method and device for equipment, storage medium, terminal and server | |
CN105045671A (en) | Method and device for upgrading systems of intelligent terminals | |
CN111722857A (en) | Updating method and device of software development kit, electronic equipment and storage medium | |
JP5524024B2 (en) | In-vehicle device and application activation control method | |
CN105227600A (en) | The method of mobile device system upgrading | |
CN108989428B (en) | Bluetooth terminal upgrading method, server, computer readable storage medium and system | |
CN116737198A (en) | Firmware pushing method, device, equipment and storage medium | |
US20220391193A1 (en) | Ota master, system, method, non-transitory storage medium, and vehicle | |
CN114090048B (en) | Software upgrading method and device | |
US20220405080A1 (en) | Ota master, system, method, non-transitory storage medium, and vehicle | |
CN109101263A (en) | A kind of method of electrical automobile driver remote software upgrading | |
CN115250285A (en) | Update control system, update control method, non-transitory storage medium, and in-vehicle control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200110 |
|
WD01 | Invention patent application deemed withdrawn after publication |