CN113282316A - Remote upgrading method and device for Internet of things equipment - Google Patents

Remote upgrading method and device for Internet of things equipment Download PDF

Info

Publication number
CN113282316A
CN113282316A CN202110545579.XA CN202110545579A CN113282316A CN 113282316 A CN113282316 A CN 113282316A CN 202110545579 A CN202110545579 A CN 202110545579A CN 113282316 A CN113282316 A CN 113282316A
Authority
CN
China
Prior art keywords
internet
upgrading
code
things equipment
app
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110545579.XA
Other languages
Chinese (zh)
Inventor
何杰
程诗猛
周杰
张新访
董逢华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Tianyu Information Industry Co Ltd
Original Assignee
Wuhan Tianyu Information Industry 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 Wuhan Tianyu Information Industry Co Ltd filed Critical Wuhan Tianyu Information Industry Co Ltd
Priority to CN202110545579.XA priority Critical patent/CN113282316A/en
Priority to PCT/CN2021/104181 priority patent/WO2022241918A1/en
Publication of CN113282316A publication Critical patent/CN113282316A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a remote upgrading method and device for Internet of things equipment, relating to the technical field of Internet of things equipment, and the method comprises the following steps: the Internet of things equipment downloads an update file of the installed application program from the service platform, and acquires an APP code in the update file; the Internet of things equipment stores the APP code to a preset upgrading code area; and after the Internet of things equipment verifies the APP codes in the upgrading code area to be qualified, upgrading the application program. According to the application, the storage area of the Internet of things equipment is partitioned, the upgrade file is automatically downloaded, and the application program is updated on the basis of the upgrade code stored in the corresponding partition on the premise of not influencing normal operation, so that convenience is brought to daily work.

Description

Remote upgrading method and device for Internet of things equipment
Technical Field
The application relates to the technical field of Internet of things equipment, in particular to a remote upgrading method and device for Internet of things equipment.
Background
In recent years, with the rapid development of the internet, after the internet of things device is deployed, if subsequent requirements for updating, code defects and the like influence the use, a firmware program is inevitably required to be upgraded. The existing upgrading scheme can only complete program updating by swiping a firmware program. However, in the case of thousands of devices, the devices need to be disassembled on site in a firmware refreshing manner, and after the devices are upgraded successfully, the parameters of the devices including the network IP and the like need to be reconfigured.
Therefore, the work efficiency of equipment upgrading is improved, and a remote upgrading technology of the internet of things equipment is urgently needed.
Disclosure of Invention
The application provides a remote upgrading method for equipment of the Internet of things, upgrading files are downloaded by oneself by partitioning a storage area of the equipment of the Internet of things, and application programs are updated on the basis of upgrading codes stored in corresponding partitions on the premise of not influencing normal operation, so that convenience is brought to daily work.
In a first aspect, the application provides a remote upgrading method for internet of things equipment, and the method includes the following steps:
the method comprises the steps that the Internet of things equipment downloads an update file of an installed application program from a service platform, and an APP code in the update file is obtained;
the Internet of things equipment stores the APP codes to a preset upgrading code area;
after the Internet of things equipment verifies the APP codes in the upgrading code area to be qualified, upgrading the application program; wherein the content of the first and second substances,
the Internet of things equipment is configured with a boot loading area, an APP code area and an upgrading code area;
the boot loader area is used for storing a boot loader code corresponding to the application program;
the APP code area is used for storing the APP code corresponding to the application program;
the upgrading code area is used for storing the APP codes in the updating file;
the APP code is a code which can be changed during upgrading.
Further, before the internet of things device downloads the update file of the installed application program from the service platform and acquires the APP code in the update file, the method further includes the following steps:
the Internet of things equipment periodically sends version information of the application program installed in the Internet of things equipment to the service platform through heartbeat reports;
the service platform compares the version information of the application program of the Internet of things equipment with the version information of the application program of the server;
when the two versions are inconsistent in information comparison, the service platform sends an upgrade prompt to the Internet of things equipment; wherein the content of the first and second substances,
the upgrade prompt includes an upgrade URL and a latest version number of the application.
Further, the internet of things equipment downloads an update file of an installed application program from a service platform, and when acquiring an APP code in the update file, the length of the APP code in the update file is also acquired;
the method for verifying the APP codes in the upgrading code zone to be qualified by the Internet of things equipment comprises the following steps:
the Internet of things equipment identifies the length of the APP code in the upgrading code area;
and comparing the lengths of the APP codes in the identified upgrading code area with the lengths of the APP codes in the updating file, and if the lengths are consistent, verifying to be qualified.
Further, after the application program fails to be upgraded, the method includes the following steps:
repairing the application program based on the APP code in the APP code region.
Further, the method comprises the following steps:
and after the Internet of things equipment acquires the APP code in the update file, producing upgrading mark information to a preset configuration area.
Further, after the internet of things device verifies that the APP code in the upgrade code region is qualified, the application program is upgraded, and the method further includes the following steps:
after the Internet of things equipment verifies the APP codes in the upgrading code area, identifying whether the mark information exists in the configuration area or not,
and when the mark information exists, restarting the application program, and upgrading the application program based on the APP code in the upgrading code area.
In a second aspect, the application provides a device for remotely upgrading internet of things equipment, the device includes:
the storage area dividing module is used for configuring a boot loading area, an APP code area and an upgrading code area in the Internet of things equipment;
the update file acquisition module is used for downloading an update file of an installed application program from a service platform and acquiring an APP code in the update file;
the file management module is used for downloading an update file of an installed application program from a service platform and acquiring an APP code in the update file;
the program upgrading module is used for upgrading the application program after the APP code in the upgrading code area is verified to be qualified; wherein the content of the first and second substances,
the boot loader area is used for storing a boot loader code corresponding to the application program;
the APP code area is used for storing the APP code corresponding to the application program;
the upgrading code area is used for storing the APP codes in the updating file;
the APP code is a code which can be changed during upgrading.
Further, the apparatus further comprises:
the version comparison module is used for periodically sending the version information of the application program installed on the Internet of things equipment to the service platform through heartbeat reports, and receiving a comparison result obtained after the service platform compares the version information of the application program of the Internet of things equipment with the version information of the application program of the server;
the version comparison module is also used for receiving an upgrade prompt sent by the service platform when the two versions are inconsistent in information comparison; wherein the content of the first and second substances,
the upgrade prompt includes an upgrade URL and a latest version number of the application.
Further, the program upgrading module is further configured to identify the length of the APP code in the upgrading code region, compare the identified length of the APP code in the upgrading code region with the length of the APP code in the update file, and verify the result if the lengths are consistent.
Further, the apparatus further comprises:
and the program repair module is used for repairing the application program based on the APP code in the APP code area after the application program fails to be upgraded.
The beneficial effect that technical scheme that this application provided brought includes:
according to the application, the storage area of the Internet of things equipment is partitioned, the upgrade file is automatically downloaded, and the application program is updated on the basis of the upgrade code stored in the corresponding partition on the premise of not influencing normal operation, so that convenience is brought to daily work.
Drawings
Interpretation of terms:
APP: application, mobile phone software;
URL: a Uniform Resource Locator, Uniform Resource Locator;
IOT: the Internet of Things, the Internet of Things;
HEX file: an Intel HEX file;
CRC: cyclic Redundancy Check;
HTTP: hypertext Transfer Protocol, Hypertext Transfer Protocol;
MQTT: message Queuing telemeasurement Transport; the message queue telemetry transport.
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of a remote upgrading method for internet of things devices provided in an embodiment of the present application;
fig. 2 is a specific operation flowchart of a remote upgrading method for internet of things devices provided in an embodiment of the present application;
fig. 3 is a schematic partitioning diagram of a remote upgrading method for internet of things devices provided in an embodiment of the present application;
fig. 4 is a block diagram of a structure of an internet of things device remote upgrade apparatus provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a remote upgrading method for equipment of the internet of things, the storage area of the equipment of the internet of things is partitioned, an upgrading file is automatically downloaded, and on the premise that normal operation is not affected, an application program is updated based on upgrading codes stored in corresponding partitions, so that convenience is brought to daily work.
In order to achieve the technical effects, the general idea of the application is as follows:
a remote upgrading method for Internet of things equipment comprises the following steps:
s1, downloading the update file of the installed application program from the service platform by the Internet of things equipment, and acquiring the APP code in the update file;
s2, storing the APP codes to a preset upgrading code area by the Internet of things equipment;
s3, after the APP codes in the upgrading code area are verified to be qualified by the Internet of things equipment, upgrading the application program; wherein the content of the first and second substances,
the Internet of things equipment is provided with a boot loading area, an APP code area and an upgrading code area;
the boot loading area is used for storing a boot loading program code corresponding to the application program;
the APP code area is used for storing APP codes corresponding to the application programs;
the upgrading code area is used for storing APP codes in the updating file;
the APP code is changed when upgrading.
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In a first aspect, referring to fig. 1 to 3, an embodiment of the present application provides a remote upgrade method for an internet of things device, where the method includes the following steps:
s1, downloading the update file of the installed application program from the service platform by the Internet of things equipment, and acquiring the APP code in the update file;
s2, storing the APP codes to a preset upgrading code area by the Internet of things equipment;
s3, after the APP codes in the upgrading code area are verified to be qualified by the Internet of things equipment, upgrading the application program; wherein the content of the first and second substances,
the Internet of things equipment is provided with a boot loading area, an APP code area and an upgrading code area;
the boot loading area is used for storing a boot loading program code corresponding to the application program;
the APP code area is used for storing APP codes corresponding to the application programs;
the upgrading code area is used for storing APP codes in the updating file;
the APP code is changed when upgrading.
In the embodiment of the application, the storage area of the Internet of things equipment is partitioned, the upgrade file is automatically downloaded, and the application program is updated on the basis of the upgrade code stored in the corresponding partition on the premise of not influencing normal operation, so that convenience is brought to daily work.
Further, before the internet of things device downloads the update file of the installed application program from the service platform and acquires the APP code in the update file, the method further includes the following steps:
the Internet of things equipment periodically sends version information of an application program installed on the Internet of things equipment to a service platform through heartbeat reports;
the service platform compares the version information of the application program of the Internet of things equipment with the version information of the application program of the server;
when the two versions are inconsistent in information comparison, the service platform sends an upgrade prompt to the Internet of things equipment; wherein the content of the first and second substances,
the upgrade hint includes an upgrade URL and the application latest version number.
Further, the internet of things equipment downloads an update file of the installed application program from the service platform, and when the APP code in the update file is obtained, the length of the APP code in the update file is also obtained;
specifically, the method for verifying the APP code in the upgrade code area by the Internet of things equipment comprises the following steps:
the method comprises the steps that the Internet of things equipment identifies the length of an APP code in an upgrading code area;
and comparing the lengths of the APP codes in the identified upgrading code area with the APP codes in the updating file, and if the lengths are consistent, verifying to be qualified.
During specific implementation, the internet of things device downloads a corresponding HEX file through a URL address issued by a service platform (IOT platform), discards codes of a Boot Loader part aiming at the HEX file, and writes codes of an APP part into an upgrade code area. After the writing is finished, calculating the partial checksum, and simultaneously writing the checksum, the length of the current upgrade code area and the special mark into a preset configuration area;
and then the inside of the Internet of things equipment is restarted to enter a Boot Load bootstrap program through a program mechanism, when the bootstrap program detects an upgrading special mark, if the mark exists, the checksum of an upgrading area is calculated firstly and compared with the checksum of a configuration area, if the checksum is consistent with the checksum, codes are copied from the upgrading code area to the APP area, after the copying is finished, the configuration area special mark, the upgrading code length and the checksum are removed, and then the Internet of things equipment is restarted automatically to finish the upgrading process.
Specifically, after the upgrading of the application program fails, the method comprises the following steps:
and repairing the application program based on the APP codes in the APP code area.
Further, the method comprises the following steps:
after the Internet of things equipment acquires the APP code in the update file, upgrading mark information is produced to a preset configuration area.
Further, after the internet of things equipment verifies the APP codes in the upgrading code area to be qualified, the application program is upgraded, and the method further comprises the following steps:
after the Internet of things equipment verifies the APP codes in the upgrading code area, identifying whether the configuration area has mark information or not,
and when the mark information exists, restarting the application program, and upgrading the application program based on the APP code in the upgrading code area.
It should be noted that, in the code program design stage of the internet of things device, part of the stability functions, such as a drive, an algorithm, and a flash read-write part of codes, are completely compiled into a Boot load area (Boot Loader area), and if the chip space is large enough, only the Boot code needs to be compiled into the Boot load area (Boot Loader area);
compiling an upper layer application and code possibly related to modification into an APP code area;
and finally reserving an address space as a configuration area for configuring parameters of related network equipment and recording the current upgrading state and information.
When upgrading is started, the Internet of things equipment downloads a corresponding HEX file through a URL address issued by a service platform (IOT platform), codes of a Boot Loader part (Boot Loader part) are discarded by an Internet of things equipment program, and codes of an APP part are written into an upgrading code area;
after the writing is finished, calculating the partial checksum, and simultaneously writing the checksum, the length of the current upgrade code area and the special mark into the configuration area;
and then the inside of the equipment is restarted to enter a Boot Load bootstrap program through a program mechanism, when the bootstrap program detects an upgrading special mark, if the mark exists, the checksum of the upgrading area is calculated firstly and compared with the checksum of the configuration area, if the checksum is consistent with the checksum, the code is copied from the upgrading code area to the APP area, after the copying is finished, the configuration area special mark, the upgrading code length and the checksum are removed, and then the equipment is restarted automatically to finish the upgrading process.
It should be noted that, as shown in fig. 2 of the accompanying drawings in the specification, a specific operation flow of the embodiment of the present application is as follows:
step 1: programming is carried out, and the equipment of the Internet of things is configured:
positioning a bootstrap code to a bootstrap loading area;
step 12: positioning the APP code to an APP code area;
step 13: and positioning a configuration area to the last page of the storage area of the Internet of things equipment, wherein the configuration area is used for storing an upgrading special mark, a length and an upgrading code area CRC checksum.
Step 2: the internet of things equipment reports the heartbeat packet to a service platform (IOT platform), and the service platform (IOT platform) detects the version number of an application program of the internet of things equipment.
And step 3: the service platform (IOT platform) acquires the version number of the application program of the latest version on the HTTP server, compares the version number of the current Internet of things equipment, and prompts a user in a background whether to start upgrading:
step 31, if the user refuses to upgrade, the upgrade is ignored;
step 32, if the user starts upgrading, the service platform (IOT platform) directly pushes an upgrading URL address link and the version number of the current application program to be upgraded to the online Internet of things equipment to be upgraded by using an MQTT message.
And 4, step 4: and the Internet of things equipment receives the pushed upgrade URL and version number and sends an HTTP Get upgrade request to a server where the current URL is located.
And 5: and after receiving the request, the HTTP server returns the HEX length of the current firmware.
Step 6: the Internet of things equipment requests the HTTP server to download the message body, and starts to request the binary message HEX download of the firmware.
And 7: the method comprises the steps that the Internet of things equipment downloads firmware, meanwhile, the current downloading progress is reported to a service platform (IOT platform), if the current downloading progress is a Boot loader area (Boot loader area), discarding is omitted, and if the current downloading progress is an APP code area, part of codes are written into an upgrading code area.
And 8: and synchronously calculating the checksum of the currently downloaded upgrade code region by blocks by the Internet of things equipment. And when the last block is detected, writing the received length of the upgrade code area, the checksum and the special mark into a special address of the configuration area.
And step 9: the Internet of things equipment starts a restarting process through an internal mechanism.
Step 10: after the program is started, the program enters a Boot loader code segment, and the program detects whether the configuration area has a special upgrading mark.
And step 11.1, if the mark is not present, the step S7 indicates that the power-off or the application program which is not to be upgraded exists, and the program jumps to the original version to continue running.
And step 11.2, if the mark exists, calculating the check sum of the upgrading code area.
And 12, comparing the checksum of the upgrade code area obtained by calculation with the checksum recorded in the configuration area.
Step 13.1, if the version is inconsistent with the original version, the application program jumps to the original version to continue running;
and step 13.2, if the upgrade contents are consistent, copying the upgrade contents of the upgrade code area to the APP code area.
And 14, after the copying is finished, comparing whether the contents of the upgrade code area and the APP area are consistent or not again:
step 14.1, if the two are not consistent, jumping to step S13.2;
and 14.2, erasing the special mark, the checksum length and the application program of the upgrading of the configuration area, and restarting the application program through an internal mechanism.
Step 15: the application program enters a Boot loader area (Boot loader area), and jumps to the upgraded code segment without the special mark, so that the upgrade is successful.
After the Internet of things embedded equipment delivers goods, the URL is pushed and upgraded in real time through the IOT platform according to actual requirements, the Internet of things equipment automatically finishes firmware updating after downloading a firmware program through the URL, any manual intervention is not needed, and meanwhile original configuration parameters including IP, gateway and routing information are kept unchanged;
in addition, parallel upgrading of multiple devices is supported, powerful subscribing and publishing functions of MQTT are fully utilized, high concurrence of HTTP is utilized, and labor cost is greatly reduced.
In a second aspect, referring to fig. 4, an embodiment of the present application provides an apparatus for remotely upgrading an internet of things device, where the apparatus is based on the method for remotely upgrading an internet of things device in the first aspect, and the apparatus includes:
the storage area dividing module is used for configuring a boot loading area, an APP code area and an upgrading code area in the Internet of things equipment;
the update file acquisition module is used for downloading the update file of the installed application program from the service platform and acquiring the APP code in the update file;
the file management module is used for downloading the update file of the installed application program from the service platform and acquiring the APP code in the update file;
the program upgrading module is used for upgrading the application program after the APP codes in the upgrading code area are verified to be qualified; wherein the content of the first and second substances,
the boot loading area is used for storing a boot loading program code corresponding to the application program;
the APP code area is used for storing APP codes corresponding to the application programs;
the upgrading code area is used for storing APP codes in the updating file;
the APP code is changed when upgrading.
In the embodiment of the application, the storage area of the Internet of things equipment is partitioned, the upgrade file is automatically downloaded, and the application program is updated on the basis of the upgrade code stored in the corresponding partition on the premise of not influencing normal operation, so that convenience is brought to daily work.
During specific implementation, the internet of things device downloads a corresponding HEX file through a URL address issued by a service platform (IOT platform), discards codes of a Boot Loader part aiming at the HEX file, and writes codes of an APP part into an upgrade code area. After the writing is finished, calculating the partial checksum, and simultaneously writing the checksum, the length of the current upgrade code area and the special mark into a preset configuration area;
and then the inside of the Internet of things equipment is restarted to enter a Boot Load bootstrap program through a program mechanism, when the bootstrap program detects an upgrading special mark, if the mark exists, the checksum of an upgrading area is calculated firstly and compared with the checksum of a configuration area, if the checksum is consistent with the checksum, codes are copied from the upgrading code area to the APP area, after the copying is finished, the configuration area special mark, the upgrading code length and the checksum are removed, and then the Internet of things equipment is restarted automatically to finish the upgrading process.
Further, the apparatus further comprises:
the version comparison module is used for periodically sending the version information of the application program installed on the Internet of things equipment to the service platform through heartbeat reports, and receiving a comparison result obtained after the service platform compares the version information of the application program of the Internet of things equipment with the version information of the application program of the server;
the version comparison module is also used for receiving an upgrade prompt sent by the service platform when the two versions are inconsistent in information comparison; wherein the content of the first and second substances,
the upgrade hint includes an upgrade URL and the application latest version number.
Furthermore, the program upgrading module is further configured to identify the length of the APP code in the upgrading code region, compare the identified length of the APP code in the upgrading code region with the length of the APP code in the update file, and verify that the length is qualified if the lengths are consistent.
Further, the apparatus further comprises:
and the program repair module is used for repairing the application program based on the APP code in the APP code area after the upgrading of the application program fails.
It is noted that, in the present application, relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present application and are presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A remote upgrading method for Internet of things equipment is characterized by comprising the following steps:
the method comprises the steps that the Internet of things equipment downloads an update file of an installed application program from a service platform, and an APP code in the update file is obtained;
the Internet of things equipment stores the APP codes to a preset upgrading code area;
after the Internet of things equipment verifies the APP codes in the upgrading code area to be qualified, upgrading the application program; wherein the content of the first and second substances,
the Internet of things equipment is configured with a boot loading area, an APP code area and an upgrading code area;
the boot loader area is used for storing a boot loader code corresponding to the application program;
the APP code area is used for storing the APP code corresponding to the application program;
the upgrading code area is used for storing the APP codes in the updating file;
the APP code is a code which can be changed during upgrading.
2. The method for remotely upgrading internet of things equipment according to claim 1, wherein before the internet of things equipment downloads an update file of an installed application program from a service platform and acquires an APP code in the update file, the method further comprises the following steps:
the Internet of things equipment periodically sends version information of the application program installed in the Internet of things equipment to the service platform through heartbeat reports;
the service platform compares the version information of the application program of the Internet of things equipment with the version information of the application program of the server;
when the two versions are inconsistent in information comparison, the service platform sends an upgrade prompt to the Internet of things equipment; wherein the content of the first and second substances,
the upgrade prompt includes an upgrade URL and a latest version number of the application.
3. The method for remotely upgrading internet of things equipment according to claim 1, wherein the internet of things equipment downloads an update file of an installed application program from a service platform, and when acquiring the APP code in the update file, the length of the APP code in the update file is also acquired;
the method for verifying the APP codes in the upgrading code zone to be qualified by the Internet of things equipment comprises the following steps:
the Internet of things equipment identifies the length of the APP code in the upgrading code area;
and comparing the lengths of the APP codes in the identified upgrading code area with the lengths of the APP codes in the updating file, and if the lengths are consistent, verifying to be qualified.
4. The remote upgrading method for the internet of things equipment, according to claim 1, wherein after the upgrading of the application program fails, the method comprises the following steps:
repairing the application program based on the APP code in the APP code region.
5. The method for remotely upgrading internet of things equipment as recited in claim 1, further comprising the steps of:
and after the Internet of things equipment acquires the APP code in the update file, producing upgrading mark information to a preset configuration area.
6. The remote upgrading method for the internet of things equipment as claimed in claim 5, wherein the application program is upgraded after the internet of things equipment verifies the APP code in the upgrading code region, and the method further comprises the following steps:
after the Internet of things equipment verifies the APP codes in the upgrading code area, identifying whether the mark information exists in the configuration area or not,
and when the mark information exists, restarting the application program, and upgrading the application program based on the APP code in the upgrading code area.
7. The remote upgrading device for the Internet of things equipment is characterized by comprising:
the storage area dividing module is used for configuring a boot loading area, an APP code area and an upgrading code area in the Internet of things equipment;
the update file acquisition module is used for downloading an update file of an installed application program from a service platform and acquiring an APP code in the update file;
the file management module is used for downloading an update file of an installed application program from a service platform and acquiring an APP code in the update file;
the program upgrading module is used for upgrading the application program after the APP code in the upgrading code area is verified to be qualified; wherein the content of the first and second substances,
the boot loader area is used for storing a boot loader code corresponding to the application program;
the APP code area is used for storing the APP code corresponding to the application program;
the upgrading code area is used for storing the APP codes in the updating file;
the APP code is a code which can be changed during upgrading.
8. The internet-of-things equipment remote upgrade apparatus of claim 7, wherein the apparatus further comprises:
the version comparison module is used for periodically sending the version information of the application program installed on the Internet of things equipment to the service platform through heartbeat reports, and receiving a comparison result obtained after the service platform compares the version information of the application program of the Internet of things equipment with the version information of the application program of the server;
the version comparison module is also used for receiving an upgrade prompt sent by the service platform when the two versions are inconsistent in information comparison; wherein the content of the first and second substances,
the upgrade prompt includes an upgrade URL and a latest version number of the application.
9. The internet-of-things equipment remote upgrading device of claim 7, wherein:
the program upgrading module is further used for identifying the length of the APP code in the upgrading code area, comparing the identified length of the APP code in the upgrading code area with the length of the APP code in the updating file, and if the lengths are consistent, verifying to be qualified.
10. The internet-of-things equipment remote upgrade apparatus of claim 7, wherein the apparatus further comprises:
and the program repair module is used for repairing the application program based on the APP code in the APP code area after the application program fails to be upgraded.
CN202110545579.XA 2021-05-19 2021-05-19 Remote upgrading method and device for Internet of things equipment Pending CN113282316A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110545579.XA CN113282316A (en) 2021-05-19 2021-05-19 Remote upgrading method and device for Internet of things equipment
PCT/CN2021/104181 WO2022241918A1 (en) 2021-05-19 2021-07-02 Remote upgrading method and apparatus for internet of things device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110545579.XA CN113282316A (en) 2021-05-19 2021-05-19 Remote upgrading method and device for Internet of things equipment

Publications (1)

Publication Number Publication Date
CN113282316A true CN113282316A (en) 2021-08-20

Family

ID=77279895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110545579.XA Pending CN113282316A (en) 2021-05-19 2021-05-19 Remote upgrading method and device for Internet of things equipment

Country Status (2)

Country Link
CN (1) CN113282316A (en)
WO (1) WO2022241918A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114322244A (en) * 2021-09-09 2022-04-12 青岛海尔空调电子有限公司 Program upgrading method and device and multi-split air conditioning system
CN114339634A (en) * 2021-12-28 2022-04-12 武汉天喻信息产业股份有限公司 Internet of things equipment data short message sending method, system, equipment and storage medium
WO2023185322A1 (en) * 2022-03-28 2023-10-05 杭州涂鸦信息技术有限公司 Function updating method and related apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108376077A (en) * 2018-02-11 2018-08-07 广东美的厨房电器制造有限公司 The upgrade method and device of control unit
CN108804118A (en) * 2018-04-25 2018-11-13 顺丰科技有限公司 Firmware upgrade method, equipment and storage medium
CN110262820A (en) * 2019-06-13 2019-09-20 陕西瑞迅电子信息技术有限公司 Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
CN110618830A (en) * 2019-08-14 2019-12-27 恒鸿达科技有限公司 Remote upgrading method and system based on NBIOT network
CN112118313A (en) * 2020-09-17 2020-12-22 紫光展锐(重庆)科技有限公司 Method and related device for remotely upgrading terminal equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7093244B2 (en) * 2001-04-18 2006-08-15 Domosys Corporation Method of remotely upgrading firmware in field-deployed devices
CN109189445B (en) * 2018-10-12 2022-03-15 武汉微智创大科技有限公司 Method for upgrading program of equipment of Internet of things
CN111142907B (en) * 2019-12-25 2022-07-29 声耕智能科技(西安)研究院有限公司 Partition upgrading method for off-line keyword recognition system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108376077A (en) * 2018-02-11 2018-08-07 广东美的厨房电器制造有限公司 The upgrade method and device of control unit
CN108804118A (en) * 2018-04-25 2018-11-13 顺丰科技有限公司 Firmware upgrade method, equipment and storage medium
CN110262820A (en) * 2019-06-13 2019-09-20 陕西瑞迅电子信息技术有限公司 Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
CN110618830A (en) * 2019-08-14 2019-12-27 恒鸿达科技有限公司 Remote upgrading method and system based on NBIOT network
CN112118313A (en) * 2020-09-17 2020-12-22 紫光展锐(重庆)科技有限公司 Method and related device for remotely upgrading terminal equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114322244A (en) * 2021-09-09 2022-04-12 青岛海尔空调电子有限公司 Program upgrading method and device and multi-split air conditioning system
CN114322244B (en) * 2021-09-09 2023-02-28 青岛海尔空调电子有限公司 Program upgrading method and device and multi-split air conditioning system
CN114339634A (en) * 2021-12-28 2022-04-12 武汉天喻信息产业股份有限公司 Internet of things equipment data short message sending method, system, equipment and storage medium
WO2023185322A1 (en) * 2022-03-28 2023-10-05 杭州涂鸦信息技术有限公司 Function updating method and related apparatus

Also Published As

Publication number Publication date
WO2022241918A1 (en) 2022-11-24

Similar Documents

Publication Publication Date Title
CN113282316A (en) Remote upgrading method and device for Internet of things equipment
US9606791B2 (en) Controlled method and apparatus to securely install and update software
CN107179909B (en) Software upgrading method and device and computer readable storage medium
US7934210B1 (en) System and method for updating one or more programs and their environment
US7275153B2 (en) Booting and boot code update system using boot strapper code to select between a loader and a duplicate backup loader
KR100915564B1 (en) Method, software and apparatus for application upgrade during execution
US9092286B2 (en) System to automatically process components on a device
CN101778376A (en) Method and device for realizing wireless firmware update
US20020144250A1 (en) System and method for updating an executing application software in a module manner
JP2005502971A (en) Method, apparatus and system for updating software
CN110389778A (en) A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform
JP2004514214A (en) System and method for updating and distributing information
WO2011006378A1 (en) Method and system for upgrading wireless data card
CN110597545B (en) Hot patch Ding Zhineng upgrading method and system based on OTA component
CN111309354A (en) OTA (over the air) upgrading method and device of networking equipment
CN106775873B (en) Method and equipment for updating mobile phone software and acquiring patch file
US6832374B2 (en) System and method for updating an executing executable file
CN110580167A (en) system upgrading method, intelligent device and server
CN114840242A (en) System upgrading method and device of electronic equipment and readable storage medium
CN111736876A (en) Client update control method, device, storage medium and server
KR100986487B1 (en) Mobile handset with a fault tolerant update agent
CN112667265B (en) Method and device for updating bootstrap program
CN112256283A (en) Application version control method and device for Android equipment
CN113064611B (en) Method for realizing data analysis software upgrading aiming at wireless equipment and updating method thereof
CN114003264B (en) Linux operating system upgrading method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210820

RJ01 Rejection of invention patent application after publication