CN109669708A - Remote upgrade method for modularization internet-of-things terminal equipment - Google Patents

Remote upgrade method for modularization internet-of-things terminal equipment Download PDF

Info

Publication number
CN109669708A
CN109669708A CN201811301601.0A CN201811301601A CN109669708A CN 109669708 A CN109669708 A CN 109669708A CN 201811301601 A CN201811301601 A CN 201811301601A CN 109669708 A CN109669708 A CN 109669708A
Authority
CN
China
Prior art keywords
firmware
module
upgrade
activation
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811301601.0A
Other languages
Chinese (zh)
Other versions
CN109669708B (en
Inventor
王浩
胡中卫
林志蒙
赵继高
张维史
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goldcard Smart Group Co Ltd
Original Assignee
Goldcard Smart Group 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 Goldcard Smart Group Co Ltd filed Critical Goldcard Smart Group Co Ltd
Priority to CN201811301601.0A priority Critical patent/CN109669708B/en
Publication of CN109669708A publication Critical patent/CN109669708A/en
Application granted granted Critical
Publication of CN109669708B publication Critical patent/CN109669708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

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)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application provides the remote upgrade methods for modularization internet-of-things terminal equipment, belong to internet of things field, including generate and store firmware upgrade packet.It enables the main module in terminal device inquire in control equipment whether have firmware upgrade packet, if there is firmware upgrade packet, then wipes the file in terminal device in upgrade package download area, firmware upgrade packet is downloaded to the upgrade package download area wiped.Main module is enabled to verify the firmware upgrade packet downloaded, check results are sent to control equipment, activation upgrade procedure is carried out when verifying successfully activation instruction of the time control control equipment to terminal device transmission including firmware upgrade packet integrity check value, the activation instruction that terminal device receiving control apparatus is sent.By the operation for activating two steps separately to handle with firmware firmware downloading, according to specific downloading result selection firmware upgrade or the operation upgraded can be abandoned after firmware is downloaded, activation upgrading is easy to cause the defect for falling into endless loop automatically after avoiding firmware from downloading.

Description

Remote upgrade method for modularization internet-of-things terminal equipment
Technical field
The application belongs to internet of things field, in particular to is used for the remote upgrade method of modularization internet-of-things terminal equipment.
Background technique
With the requirement to intelligent product, internet of things equipment function becomes increasingly complex, and equipment manufacturer is for can to product By property, the considerations of in terms of scalability and multiplexing functions, modular design is generally used, i.e., by certain part of functions by special Module is completed, and multiple modules cooperate jointly realizes functions of the equipments.
In order to cope with internet of things equipment bugs or new function addition, firmware upgrade is unavoidable, in existing technology In, using interior programming (In Application Programming, IAP) technology combination upgrading tool is applied, mould may be implemented The upgrading of block, but there is still a need for maintenance personnel's in-situ processing, complicated for operation and elapsed times.
It is to upgrade after receiving firmware updating automatically into activation that current internet-of-things terminal equipment, which commonly upgrades mode, Process, this upgrade method are easy to cause device upgrade to fail because of firmware damage, and since firmware damages so that equipment is fallen into Endless loop can not continue to use.
Summary of the invention
In order to solve shortcoming and defect existing in the prior art, this application provides set for modularization internet-of-things terminal Standby remote upgrade method is easy to cause the defect for falling into endless loop by activating to upgrade automatically after avoiding firmware from downloading.
In order to reach above-mentioned technical purpose, on the one hand this application provides for the long-range of modularization internet-of-things terminal equipment Upgrade method controls the firmware upgrade process of terminal device suitable for controlling equipment, based on control equipment side, in terminal Main module is equipped in equipment and is controlled by the slave module of main module control, and the remote upgrade method includes:
It generates and stores firmware upgrade packet;
The query information of main module in receiving terminal apparatus, the downloading issued according to main module request to send out firmware upgrade packet It send to terminal device;
The check results that receiving terminal apparatus is sent;
When verifying successfully, the activation instruction including firmware upgrade packet integrity check value is sent to terminal device, The activation result that receiving terminal apparatus is replied.
Optionally, the remote upgrade method, further includes:
When verifying failure, stored firmware upgrade packet is deleted.
On the other hand, the remote upgrade method for modularization internet-of-things terminal equipment that the application proposes is suitable for control Control equipment controls the firmware upgrade process of terminal device, is based on terminal equipment side, and the remote upgrade method includes:
The main module in terminal device is enabled to inquire in control equipment whether have firmware upgrade packet;
If there is firmware upgrade packet, then the file in terminal device in upgrade package download area is wiped, to control equipment hair It send downloading to request, firmware upgrade packet is downloaded to the upgrade package download area wiped;
It enables main module to verify the firmware upgrade packet downloaded, check results is sent to control equipment;
When verifying successfully, the activation including firmware upgrade packet integrity check value that receiving control apparatus is sent refers to It enables, activation upgrade procedure is carried out based on the firmware upgrade packet downloaded.
Optionally, the remote upgrade method, comprising:
The generated information of firmware upgrade packet of receiving terminal apparatus push.
Optionally, described that main module is enabled to verify the firmware upgrade packet downloaded, check results are sent to control Equipment, comprising:
Main module is enabled to calculate the integrity check value of firmware upgrade packet;
The integrity check value being calculated and the integrity check value having in firmware upgrade packet are compared;
If comparing result is consistent, show to verify successfully;
If comparing result is different, show verification failure.
Optionally, the activation including firmware upgrade packet integrity check value that the receiving control apparatus is sent refers to It enables, activation upgrade procedure is carried out based on the firmware upgrade packet downloaded, comprising:
Integrity check value in activation instruction is compared with the integrity check value being calculated;
Firmware upgrade packet is enabled under comparing result unanimous circumstances carries out firmware upgrade.
Optionally, the firmware upgrade packet that enables under comparing result unanimous circumstances carries out firmware upgrade, comprising:
The module id number of firmware upgrade package-in file is parsed, if module id number is the number of main module, enables master Module starts from IAP program;
After the starting of IAP program, the file in application area is wiped, the firmware upgrade in upgrade package download area will be stored in Packet replication verifies the firmware upgrade packet after duplication to application area again;
If verification passes through, firmware upgrade packet is backed up into upgrade package backup area,
Setting activation is identified as successful activation in the memory of main module after the completion of backup,
Guidance is located at the firmware upgrade packet in application area, after actuation inquiry activation mark, if activation mark Content is successful activation, then the activation result of successful activation is sent to control equipment.
Optionally, the remote upgrade method, further includes:
If verification does not pass through, erasing copies to the firmware upgrade packet in application area;
The firmware being located in upgrade package backup area is copied to application area,
Setting activation is identified as activation failure in the memory of main module after the completion of duplication,
Guidance is located at the firmware upgrade packet in application area, after actuation inquiry activation mark, if activation mark Content is activation failure, then the activation result of activation failure is sent to control equipment.
Optionally, the firmware upgrade packet that enables under comparing result unanimous circumstances carries out firmware upgrade, comprising:
Parse the module id number of firmware upgrade package-in file, if module id number be from the number of module, enable from Module starts from IAP program;
After the starting of IAP program, the file in application area is wiped, to main module ready for sending information after erasure completion;
Firmware upgrade packet is received from main module, and firmware upgrade packet is stored to application area main mould block command from module Firmware updating is enabled, the firmware upgrade packet received is verified again from module;
If verification passes through, application area firmware updating is enabled from module I AP program designation;
Main module diagnosis is working properly from module, and backup upgrading packet download area upgrade package is to from module upgrade packet backup area;
Activation result of the main module to control equipment successful activation.
Optionally, the remote upgrade method, further includes:
If verification does not pass through, main module diagnosis wipes it using journey from module from module operation irregularity, main mould block command Sequence area, to main module ready for sending information after erasure completion;
Main module will from the firmware of module upgrade packet backup area, restore to after the completion of module, recovery main module to control Equipment sends the activation result of activation failure.
Technical solution provided by the present application has the benefit that
1, by the way that firmware downloading is activated the operation that separately handles of two steps with firmware, can after firmware downloading basis Specifically downloading result selects firmware upgrade or abandons the operation of upgrading, activates upgrading to be easy to cause after avoiding firmware from downloading automatically sunken Enter the defect of endless loop.
2, internet-of-things terminal equipment main module can be diagnosed from module operating status, if occurring powering off in escalation process Under abnormal conditions, the problem of respective modules are unable to operate normally, can attempt recovery module firmware after main module diagnosis.
3, realizing IAP program can notify IAP program to enable upgrading with the communication between application program, application program Firmware, IAP program can notify application program updating firmware activation result.
Detailed description of the invention
It, below will be to attached drawing needed in embodiment description in order to illustrate more clearly of the technical solution of the application It is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the structural schematic diagram of internet of things equipment provided by the present application;
Fig. 2 is the flow diagram of the remote upgrade method provided by the present application for modularization internet-of-things terminal equipment.
Specific embodiment
To keep structure and the advantage of the application clearer, make further below in conjunction with structure of the attached drawing to the application Description.
Embodiment one
This application provides the remote upgrade methods for modularization internet-of-things terminal equipment, are suitable for control equipment to end The firmware upgrade process of end equipment is controlled, and this method needs to carry out information exchange in control equipment side and terminal equipment side to come Complete firmware upgrade process.
This method application is the internet of things equipment including control equipment and terminal device.It is as shown in Figure 1, eventually End equipment include main module and several from module, there are at least one wireless communication module from module, for realizing The data interaction of terminal device and extraneous internet device, main module by wired mode with each connect from module, main module Control with entire terminal device.
It can be the wide area networks wireless modules such as GPRS module, NB-IoT module from module, telecommunications fortune can be directly accessed Shang Jizhan is sought, finally accesses internet, Internet of things control device is some equipment in internet at this time;It is also possible to from module The local area network wireless modules such as ZigBee module, Wifi module, Internet of things control device downlink is by from module 1 and Internet of Things at this time Terminal device connection, uplink can be by GPRS modules, and NB-IoT module or the modes such as wired access internet, by internet In some equipment control.
Based on above-mentioned module introduction, the flow chart of the remote upgrade method is as shown in Figure 2, comprising:
S11, generation simultaneously store firmware upgrade packet.
S12, the main module in terminal device is enabled to inquire in control equipment whether have firmware upgrade packet.
The query information of main module in S13, receiving terminal apparatus is requested according to the downloading that main module issues by firmware upgrade Packet is sent to terminal device.
S14, if there is firmware upgrade packet, then wipe the file in terminal device in upgrade package download area, set to control Preparation send downloading to request, and firmware upgrade packet is downloaded to the upgrade package download area wiped.
S15, it enables main module to verify the firmware upgrade packet downloaded, check results is sent to control equipment.
The check results that S16, receiving terminal apparatus are sent.
S17, when verifying successfully, send activation including firmware upgrade packet integrity check value to terminal device and refer to It enables, the activation result that receiving terminal apparatus is replied.
S18, when verifying successfully, receiving control apparatus is sent sharp including firmware upgrade packet integrity check value including Instruction living, carries out activation upgrade procedure based on the firmware upgrade packet downloaded.
In an implementation, mainly comprising the following steps for the remote upgrade method generates in control equipment end including adaptation module identification Number, the firmware including the contents such as firmware version number, firmware size and firmware integrity verification information (such as HASH value, CRC32 etc.) Upgrade package.Then it enables the main module in terminal device send to control module to ask about whether the inquiry for generating firmware upgrade packet It asks.
At this time if having firmware upgrade packet in control equipment, firmware upgrade packet is sent to main module in terminal device Place.Main module carries out first time verification to the integrality of firmware upgrade packet first after receiving firmware upgrade packet, and will verification As a result it is sent to control equipment.
If check results show firmware upgrade, packet is complete, enables control equipment send activation instruction to main module, to lead Module carries out the upgrading process based on firmware upgrade packet after receiving activation instruction;If check results show firmware upgrade packet It is imperfect, then enable control equipment delete stored firmware upgrade packet.
Even if control equipment can also be according to the actual situation it is worth noting that, check results show that firmware upgrade packet is complete It chooses whether to carry out subsequent activation operation, firmware upgrade packet is completely not meant to have to carry out subsequent activation operation.
Wherein, when carrying out step S12, firmware liter is obtained in addition to enabling main module send inquiry request to control equipment Grade packet is outer, can also enable control equipment after generating firmware upgrade packet, pushes the generated letter of firmware upgrade packet to terminal device Breath, enables main module inquire whether the upgrade package is adapted to some module again.
Optionally, the verification step that the step S15 is proposed, comprising:
S151, the integrity check value for enabling main module calculating firmware upgrade packet;
S152, the integrity check value having in the integrity check value being calculated and firmware upgrade packet is carried out pair Than;
If S153, comparing result are consistent, show to verify successfully;
If S154, comparing result are different, show verification failure.
In an implementation, the corresponding algorithm of completeness check used herein is hashing algorithm, is sometimes also claimed according to transliteration For Hash.The data (initial data) of arbitrary dimension can be changed into a fixed-size small data by hashing algorithm.
Since hashing algorithm has irreversibility and result uniqueness, it is often used as the completeness check of file.
Optionally, the activation upgrade step that the S18 is proposed, comprising:
S181, the integrity check value in activation instruction is compared with the integrity check value being calculated;
S182, the progress firmware upgrade of firmware upgrade packet is enabled under comparing result unanimous circumstances.
In an implementation, firmware upgrade operation can be carried out after receiving the activation instruction that control equipment issues.But Before firmware upgrade operation, it is also necessary to the integrity check value in activation instruction is extracted, with the integrality being calculated in step S15 Check value comparison, i.e., carry out the completeness check of firmware upgrade packet, again to guarantee that firmware upgrade operation can be carried out correctly.
Specifically,
Main module can actively obtain activation instruction on Internet of things control device or Internet of things control device actively issues Activation instruction;After receiving activation instruction, the firmware updating integrity check value in activation instruction is checked, if with " under upgrade package The integrity check value of the firmware updating in load area " is consistent, then enables firmware updating, next activation is waited to refer to if inconsistent It enables or restarts to upgrade.
The module id number of main module inspection " upgrade package download area " upgrade package adaptation, if identification number is main module Then, into downstream;If identification number is a certain from module, enter shown in subsequent S1824-S1828 from module liter Grade process.
Main module enables result according to firmware and replys control device activation result and current all module firmware version numbers, swashs Slip-knot fruit includes: " activating successfully ", " can not activate firmware " " save in activation instruction and main module " upgrade package download area " Firmware updating mismatch ", and states such as " activation failure ".
Optionally, if specified adaptation module is main module in firmware upgrade packet, firmware upgrade step are as follows:
S1821, the module id number for parsing firmware upgrade package-in file, if module id number is the number of main module, Main module is then enabled to start from IAP program;
After the starting of S1822, IAP program, the file in application area is wiped, consolidating in upgrade package download area will be stored in Part upgrade package is copied to application area, verifies again to the firmware upgrade packet after duplication;
If S1823, verification pass through, firmware upgrade packet is backed up into upgrade package backup area,
Setting activation is identified as successful activation in the memory of main module after the completion of S1824, backup,
S1825, guidance are located at the firmware upgrade packet in application area, after actuation inquiry activation mark, if activation The content of mark is successful activation, then the activation result of successful activation is sent to control equipment.
It opposes with step S1823,
If S1825, verification do not pass through, erasing copies to the firmware upgrade packet in application area;
S1826, the firmware being located in upgrade package backup area is copied to application area,
Setting activation is identified as activation failure in the memory of main module after the completion of S1827, duplication,
S1828, guidance are located at the firmware upgrade packet in application area, after actuation inquiry activation mark, if activation The content of mark is activation failure, then the activation result of activation failure is sent to control equipment.
In an implementation, in firmware upgrade process, it is related to application area and upgrade package backup area in main module.It is main Module enters the program using interior programming (In Application Programming, IAP), and main module application program passes through past Memory (such as Flash, EEPROM) specific position setting activation mark (mark is not lost because of system reboot), restarts master Module, main module enter IAP program;
Firmware updating is replicated to main module application area, IAP program checkout activation mark has been set to, and wipes main module " application area ", and the firmware updating of " upgrade package download area " is copied into main module " application area ";
After firmware updating is moved to application area, it is complete to verify firmware updating again for verification Application program area firmware updating Whether whole property check value matches with the integrity check value of the firmware updating of " upgrade package download area ", if it does, then into S1823~S1826 process;If it does not match, into S1825~S1828 process;
The firmware updating of " upgrade package download area " is backuped to " main module upgrade package backup area by backup main module upgrade package;
Main module firmware updating is enabled, main module IAP program passes through toward memory (such as Flash, EEPROM) certain bits Installing activation result mark (mark is not lost because of system reboot) is " success ", and main module IAP program designation enables master Module " application area " firmware after main module application program launching, checks that activation result is identified as " success ", notice is controlled and set Standby " activating successfully ";
Restore the old firmware of main module, IAP program wipes main module " application area ", by " main module upgrade package backup area " Firmware copies to its " application area ", and main module IAP program passes through toward memory (such as Flash, EEPROM) specific position Setting activation result is identified as " failure ", and main module IAP program designation enables " application area " firmware, main module application program After starting, check that activation result is identified as " failure ", notice control equipment " activation failure ".
Optionally, when if to specify adaptation module in firmware upgrade packet be from module, firmware upgrade step are as follows:
S1921, the module id number for parsing firmware upgrade package-in file, if module id number is the number from module, It then enables and starting from module from IAP program;
After the starting of S1922, IAP program, the file in application area is wiped, to main module ready for sending after erasure completion Information;
S1923, firmware upgrade packet is received from main module, firmware upgrade packet is stored to application area, main module life It enables from module and enables firmware updating, the firmware upgrade packet received is verified again from module;
If S1924, verification pass through, application area firmware updating, main module diagnosis are enabled from module I AP program designation Working properly from module, backup upgrading packet download area upgrade package is to from module upgrade packet backup area;
S1925, activation result from main module to control equipment successful activation.
If S1926, verification do not pass through, main module is diagnosed from module operation irregularity, and main mould block command wipes it from module Application area, to main module ready for sending information after erasure completion;
S1927, main module restore from the firmware of module upgrade packet backup area to the main module after the completion of module, recovery The activation result of activation failure is sent to control equipment.
In an implementation, similar with the upgrade step of main module in abovementioned steps, the upgrading for the slave module that the present embodiment proposes Steps are as follows:
Main mould block command enters IAP program from module, enters IAP program after replying confirmation from module;
Main mould block command prepares to receive upgrade package from module, wipes its " application area " from module, and reply confirmation, leads to Knowing main module, its is ready;
Main module is sent upgrade package to from module by the way of block transmission, protects firmware updating after receiving from module After being stored to " application area " and replying confirmation, main module sends next piece after receiving confirmation, until upgrade package is transmitted;
Main mould block command from module activation firmware updating, from module calculate firmware updating integrity check value and with upgrading Integrity check value in packet compares, if unanimously, entering S1924~S1925, otherwise, into S1926~S1927;
" application area " firmware updating is enabled from module I AP program designation;
Main module backs up " upgrade package download area " upgrade package to " from module upgrade packet backup area ", and Internet of Things is notified to control mould Activation of block success;
Main module restores the firmware from module at " from module upgrade packet backup area ", notice Internet of Things control after the completion of restoring Module activation failure.
In addition, further including alternative solution as follows for the upgrade step from module:
S2021, main mould block command enter IAP program from module, reply and confirm from module, and enter IAP program;
S2022, main mould block command prepare to receive upgrade package from module, wipe its " application area " from module, and reply Confirmation, its is ready for notice main module;
S2023, main module send upgrade package piecemeal from module to, are saved in firmware updating after receiving from module and " answer With program area " and after replying confirmation, main module sends next piece after receiving confirmation, until upgrade package is transmitted;
S2024, main mould block command calculate the integrity check value of firmware updating simultaneously from module from module activation firmware updating Compared with the integrity check value in upgrade package, if unanimously, entering S2025~S2026, otherwise, into S2027;
S2025, from module I AP program backup " application area " upgrade package to from module " upgrade package backup area ";
S2026, " application area " firmware updating is enabled from module I AP program designation, main module diagnosis works from module Normally, notice Internet of Things control module activates successfully;
S2027, main module diagnosis are from module operation irregularity, and from module I AP program recovery from module, " upgrade package is backed up for order The firmware in area ", after the completion of recovery, main module diagnosis is working properly from module, notice Internet of Things control module activation failure.
The main mould block storage of the alternative solution as shown in step S2021 to S2027 does not need backup and currently transports from module Row, reduces main module memory cost, while occurring in escalation process powering off or the upgradings such as firmware updating transmission abnormality are lost The case where losing restores firmware and does not need to download from main mould block storage, and firmware restoration speed is faster.
This application provides the remote upgrade methods for modularization internet-of-things terminal equipment, including generate and store firmware Upgrade package.The main module in terminal device is enabled to inquire in control equipment whether have firmware upgrade packet.It is main in receiving terminal apparatus The query information of module, the downloading issued according to main module request firmware upgrade packet being sent to terminal device.If there is solid Part upgrade package then wipes the file in terminal device in upgrade package download area, downloading request is sent to control equipment, by firmware liter Grade packet is downloaded to the upgrade package download area wiped.It enables main module to verify the firmware upgrade packet downloaded, verification is tied Fruit is sent to control equipment.The check results that receiving terminal apparatus is sent.When verifying successfully, it includes solid for sending to terminal device Activation instruction including part upgrade package integrity check value, the activation result that receiving terminal apparatus is replied.Terminal device receives control Control equipment send the activation instruction including firmware upgrade packet integrity check value, based on the firmware upgrade packet downloaded into Line activating upgrade procedure.By the operation for activating two steps separately to handle with firmware firmware downloading, can be downloaded in firmware Firmware upgrade is selected according to specific downloading result afterwards or abandons the operation of upgrading, activation upgrading is easy automatically after avoiding firmware from downloading Lead to the defect for falling into endless loop.
Each serial number in above-described embodiment is for illustration only, the assembling for not representing each component or the elder generation in use process Sequence afterwards.
Above is only an example of the present application, all in spirit herein and principle not to limit the application Within, any modification, equivalent replacement, improvement and so on should be included within the scope of protection of this application.

Claims (10)

1. the remote upgrade method of modularization internet-of-things terminal equipment is used for, suitable for controlling equipment to the firmware liter of terminal device Grade process is controlled, which is characterized in that based on control equipment side, main module is equipped in terminal device and is controlled by main mould The slave module of block control, the remote upgrade method include:
It generates and stores firmware upgrade packet;
The query information of main module in receiving terminal apparatus, the downloading issued according to main module request for firmware upgrade packet to be sent to Terminal device;
The check results that receiving terminal apparatus is sent;
When verifying successfully, the activation instruction including firmware upgrade packet integrity check value is sent to terminal device, is received The activation result that terminal device is replied.
2. the remote upgrade method according to claim 1 for modularization internet-of-things terminal equipment, which is characterized in that institute State remote upgrade method, further includes:
When verifying failure, stored firmware upgrade packet is deleted.
3. the remote upgrade method of modularization internet-of-things terminal equipment is used for, suitable for controlling equipment to the firmware liter of terminal device Grade process is controlled, which is characterized in that is based on terminal equipment side, the remote upgrade method includes:
The main module in terminal device is enabled to inquire in control equipment whether have firmware upgrade packet;
If there is firmware upgrade packet, then the file in terminal device in upgrade package download area is wiped, under sending to control equipment Request is carried, firmware upgrade packet is downloaded to the upgrade package download area wiped;
It enables main module to verify the firmware upgrade packet downloaded, check results is sent to control equipment;
When verifying successfully, the activation instruction including firmware upgrade packet integrity check value that receiving control apparatus is sent, Activation upgrade procedure is carried out based on the firmware upgrade packet downloaded.
4. the remote upgrade method according to claim 3 for modularization internet-of-things terminal equipment, which is characterized in that institute State remote upgrade method, comprising:
The generated information of firmware upgrade packet of receiving terminal apparatus push.
5. the remote upgrade method according to claim 3 for modularization internet-of-things terminal equipment, which is characterized in that institute It states and main module is enabled to verify the firmware upgrade packet downloaded, check results are sent to control equipment, comprising:
Main module is enabled to calculate the integrity check value of firmware upgrade packet;
The integrity check value being calculated and the integrity check value having in firmware upgrade packet are compared;
If comparing result is consistent, show to verify successfully;
If comparing result is different, show verification failure.
6. the remote upgrade method according to claim 5 for modularization internet-of-things terminal equipment, which is characterized in that institute The activation instruction including firmware upgrade packet integrity check value for stating receiving control apparatus transmission, based on the firmware downloaded Upgrade package carries out activation upgrade procedure, comprising:
Integrity check value in activation instruction is compared with the integrity check value being calculated;
Firmware upgrade packet is enabled under comparing result unanimous circumstances carries out firmware upgrade.
7. the remote upgrade method according to claim 6 for modularization internet-of-things terminal equipment, which is characterized in that institute It states and enables the progress firmware upgrade of firmware upgrade packet under comparing result unanimous circumstances, comprising:
The module id number of firmware upgrade package-in file is parsed, if module id number is the number of main module, enables main module Start from IAP program;
After the starting of IAP program, the file in application area is wiped, the firmware upgrade being stored in upgrade package download area is cladded System verifies the firmware upgrade packet after duplication to application area again;
If verification passes through, firmware upgrade packet is backed up into upgrade package backup area,
Setting activation is identified as successful activation in the memory of main module after the completion of backup,
Guidance is located at the firmware upgrade packet in application area, after actuation inquiry activation mark, if the content of activation mark For successful activation, then the activation result of successful activation is sent to control equipment.
8. the remote upgrade method according to claim 7 for modularization internet-of-things terminal equipment, which is characterized in that institute State remote upgrade method, further includes:
If verification does not pass through, erasing copies to the firmware upgrade packet in application area;
The firmware being located in upgrade package backup area is copied to application area,
Setting activation is identified as activation failure in the memory of main module after the completion of duplication,
Guidance is located at the firmware upgrade packet in application area, after actuation inquiry activation mark, if the content of activation mark For activation failure, then the activation result of activation failure is sent to control equipment.
9. the remote upgrade method for modularization internet-of-things terminal equipment stated according to claim 6, which is characterized in that described Firmware upgrade packet is enabled under comparing result unanimous circumstances carries out firmware upgrade, comprising:
The module id number of firmware upgrade package-in file is parsed, if module id number is the number from module, is enabled from module Start from IAP program;
After the starting of IAP program, the file in application area is wiped, to main module ready for sending information after erasure completion;
Firmware upgrade packet is received from main module, firmware upgrade packet is stored to application area, main mould block command is opened from module With firmware updating, the firmware upgrade packet received is verified again from module;
If verification passes through, application area firmware updating is enabled from module I AP program designation;
Main module diagnosis is working properly from module, and backup upgrading packet download area upgrade package is to from module upgrade packet backup area;
Activation result of the main module to control equipment successful activation.
10. the remote upgrade method according to claim 9 for modularization internet-of-things terminal equipment, which is characterized in that The remote upgrade method, further includes:
If verification does not pass through, main module is diagnosed from module operation irregularity, and main mould block command wipes its application area from module, To main module ready for sending information after erasure completion;
Main module will from the firmware of module upgrade packet backup area, restore to after the completion of module, recovery main module to control equipment Send the activation result of activation failure.
CN201811301601.0A 2018-11-02 2018-11-02 Remote upgrading method for modular Internet of things terminal equipment Active CN109669708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811301601.0A CN109669708B (en) 2018-11-02 2018-11-02 Remote upgrading method for modular Internet of things terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811301601.0A CN109669708B (en) 2018-11-02 2018-11-02 Remote upgrading method for modular Internet of things terminal equipment

Publications (2)

Publication Number Publication Date
CN109669708A true CN109669708A (en) 2019-04-23
CN109669708B CN109669708B (en) 2022-08-12

Family

ID=66141742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811301601.0A Active CN109669708B (en) 2018-11-02 2018-11-02 Remote upgrading method for modular Internet of things terminal equipment

Country Status (1)

Country Link
CN (1) CN109669708B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427201A (en) * 2019-07-25 2019-11-08 金卡智能集团股份有限公司 A kind of NB mould group upgrade method, device, equipment and storage medium
CN110543318A (en) * 2019-08-30 2019-12-06 珠海格力电器股份有限公司 control device program updating method and device, storage medium and control device
CN111459522A (en) * 2020-04-01 2020-07-28 珠海格力电器股份有限公司 Air conditioner and communication module upgrading method thereof
CN111818554A (en) * 2020-07-03 2020-10-23 杭州电子科技大学 Method for improving remote upgrade success rate of large-scale NB-IoT terminal
CN111880823A (en) * 2020-07-17 2020-11-03 合肥移瑞通信技术有限公司 Method, system and medium for system upgrading communication module, computer equipment
CN111998510A (en) * 2020-08-28 2020-11-27 海信(山东)空调有限公司 Air conditioner and control method thereof
CN112860283A (en) * 2019-11-12 2021-05-28 深圳怡化电脑股份有限公司 Self-identification upgrading method and device of SP (service provider) upgrading package and computer equipment
CN112910714A (en) * 2021-03-05 2021-06-04 中国电子科技集团公司第三十八研究所 Remote firmware upgrading method for Internet of things terminal equipment with master-slave machine structure
CN113238779A (en) * 2021-05-24 2021-08-10 深圳市网是科技有限公司 High-reliability upgrading method for single embedded device composed of multiple modules
CN114071660A (en) * 2020-07-31 2022-02-18 中国电信股份有限公司 Narrowband Internet of things terminal, firmware upgrading method thereof, base station and communication system
CN115904457A (en) * 2023-03-01 2023-04-04 江苏安世朗智能科技有限公司 Internet of things-based computer firmware remote upgrading system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314369A (en) * 2011-10-09 2012-01-11 杭州先锋电子技术股份有限公司 Self-upgrade method for equipment in remote online monitoring system
CN104503796A (en) * 2014-12-25 2015-04-08 浙江中控研究院有限公司 IAP (Internet Access Provider) based configurable full-network remote node firmware upgrading method
CN104572222A (en) * 2015-02-02 2015-04-29 深圳市新联锋科技有限公司 Main program upgrading method and device for supporting upgrading of main program
US20170235567A1 (en) * 2005-02-15 2017-08-17 Gytheion Networks, Llc Wireless router remote firmware upgrade
CN108337120A (en) * 2018-02-01 2018-07-27 北京安控科技股份有限公司 A kind of remote upgrade method of internet-of-things terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170235567A1 (en) * 2005-02-15 2017-08-17 Gytheion Networks, Llc Wireless router remote firmware upgrade
CN102314369A (en) * 2011-10-09 2012-01-11 杭州先锋电子技术股份有限公司 Self-upgrade method for equipment in remote online monitoring system
CN104503796A (en) * 2014-12-25 2015-04-08 浙江中控研究院有限公司 IAP (Internet Access Provider) based configurable full-network remote node firmware upgrading method
CN104572222A (en) * 2015-02-02 2015-04-29 深圳市新联锋科技有限公司 Main program upgrading method and device for supporting upgrading of main program
CN108337120A (en) * 2018-02-01 2018-07-27 北京安控科技股份有限公司 A kind of remote upgrade method of internet-of-things terminal equipment

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427201A (en) * 2019-07-25 2019-11-08 金卡智能集团股份有限公司 A kind of NB mould group upgrade method, device, equipment and storage medium
CN110543318A (en) * 2019-08-30 2019-12-06 珠海格力电器股份有限公司 control device program updating method and device, storage medium and control device
CN112860283A (en) * 2019-11-12 2021-05-28 深圳怡化电脑股份有限公司 Self-identification upgrading method and device of SP (service provider) upgrading package and computer equipment
CN112860283B (en) * 2019-11-12 2024-04-02 深圳怡化电脑股份有限公司 SP upgrade package self-identification upgrade method and device and computer equipment
CN111459522A (en) * 2020-04-01 2020-07-28 珠海格力电器股份有限公司 Air conditioner and communication module upgrading method thereof
CN111818554A (en) * 2020-07-03 2020-10-23 杭州电子科技大学 Method for improving remote upgrade success rate of large-scale NB-IoT terminal
CN111818554B (en) * 2020-07-03 2023-01-06 杭州电子科技大学 Method for improving remote upgrade success rate of large-scale NB-IoT terminal
CN111880823B (en) * 2020-07-17 2024-01-30 合肥移瑞通信技术有限公司 Method, system and medium for upgrading communication module by system and computer equipment
CN111880823A (en) * 2020-07-17 2020-11-03 合肥移瑞通信技术有限公司 Method, system and medium for system upgrading communication module, computer equipment
CN114071660A (en) * 2020-07-31 2022-02-18 中国电信股份有限公司 Narrowband Internet of things terminal, firmware upgrading method thereof, base station and communication system
CN111998510A (en) * 2020-08-28 2020-11-27 海信(山东)空调有限公司 Air conditioner and control method thereof
CN112910714A (en) * 2021-03-05 2021-06-04 中国电子科技集团公司第三十八研究所 Remote firmware upgrading method for Internet of things terminal equipment with master-slave machine structure
CN113238779A (en) * 2021-05-24 2021-08-10 深圳市网是科技有限公司 High-reliability upgrading method for single embedded device composed of multiple modules
CN115904457A (en) * 2023-03-01 2023-04-04 江苏安世朗智能科技有限公司 Internet of things-based computer firmware remote upgrading system and method
CN115904457B (en) * 2023-03-01 2024-01-30 江苏安世朗智能科技有限公司 Remote upgrading system and method for computer firmware based on Internet of things

Also Published As

Publication number Publication date
CN109669708B (en) 2022-08-12

Similar Documents

Publication Publication Date Title
CN109669708A (en) Remote upgrade method for modularization internet-of-things terminal equipment
CN112148326B (en) Remote firmware updating method, device and system for Internet of things equipment
US11467818B2 (en) Software update device, software update method, and software update system
CN111666081B (en) Git-based project version release method, device, equipment and medium
CN106257416B (en) Method for wireless remote updating of vehicle software
CN103885806B (en) The implementation method and device of the systems soft ware online upgrading of Set Top Box
US20160364225A1 (en) Centralized system for software updating vehicle components
US20160364230A1 (en) Telematics control unit comprising a differential update package
CN1953376A (en) A system and method for updating remote software of wireless terminal equipment
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
CN114880002B (en) OTA data flashing method and system
CN106897087A (en) Realize the remote maintenance update method and device of locomotive vehicle-mounted equipment application software
US11126422B2 (en) Program update system, control system, mobile body, program update method, recording medium
CN101442688A (en) Method and system for updating intelligent network platform, controller and intelligent network platform equipment
CN113656056B (en) Charging seat, charging seat upgrading method, device, equipment and storage medium
CN110990036A (en) OTA upgrading method and device for power change cabinet, power change equipment and storage medium
CN109558151A (en) Oftware updating method and system
CN109933354A (en) Fingerprint head online upgrading method, system and the cloud lock of a kind of intelligent cloud lock
CN109766117A (en) One kind being based on DSP general-purpose platform online upgrading method
CN115268976A (en) Automatic upgrading method and system for multi-data center collection Agent version
CN116088903A (en) Vehicle software upgrading method and device, vehicle, equipment and storage medium
CN116483660A (en) Method, device and equipment for acquiring vehicle-end log and readable storage medium
CN112764789A (en) Distributed software upgrading method and node
CN105334840B (en) Vehicle network child node collocation method
CN113934624A (en) System and method for on-orbit maintenance and verification of satellite-borne program of deep space exploration system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant