CN114189440A - Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium - Google Patents

Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium Download PDF

Info

Publication number
CN114189440A
CN114189440A CN202111282778.2A CN202111282778A CN114189440A CN 114189440 A CN114189440 A CN 114189440A CN 202111282778 A CN202111282778 A CN 202111282778A CN 114189440 A CN114189440 A CN 114189440A
Authority
CN
China
Prior art keywords
firmware
upgrading
upgrade
program area
ota
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
CN202111282778.2A
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.)
Shenzhen Topband Co Ltd
Original Assignee
Shenzhen Topband Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Topband Co Ltd filed Critical Shenzhen Topband Co Ltd
Priority to CN202111282778.2A priority Critical patent/CN114189440A/en
Publication of CN114189440A publication Critical patent/CN114189440A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention is suitable for the technical field of Internet of things, and particularly relates to a remote upgrading method for multiple control boards of Internet of things equipment, which comprises the following steps: acquiring an upgrading command and upgrading information issued by a server; downloading an upgrade firmware according to the upgrade command and the upgrade information and distributing the upgrade firmware to an OTA program area of a control panel; copying the upgrading firmware from the OTA program area to an execution program area of a control panel; and executing the upgraded firmware of the executive program area. By the method, the control board keeps 2 latest executable programs, when OTA upgrading fails or the executable programs are abnormal, the equipment can automatically recover and does not influence normal work, and meanwhile, the OTA upgrading function of the multiple control boards can be realized, so that the problem of safe upgrading of the multiple control boards of the Internet of things household appliance equipment is solved.

Description

Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium
Technical Field
The invention belongs to the technical field of Internet of things, and particularly relates to a remote upgrading method and device for multiple control boards of Internet of things equipment and a storage medium.
Background
The internet of things is that various information of any object and process needing monitoring, connection and interaction is collected in real time through various detection devices and technologies such as various information sensors, radio frequency identification technologies and the like, and the ubiquitous connection of objects and people is realized through various possible network accesses, so that the intelligent sensing, identification and management of the objects and the process are realized. The internet of things is an information bearer based on the internet, a traditional telecommunication network and the like, and all common physical objects which can be independently addressed form an interconnected network.
With the wide application of the Internet of things equipment, OTA upgrading becomes one of the necessary functions of the Internet of things equipment, and the problem of requirement change of big data statistics, equipment remote control mode change and BUG repair is well solved. The security of the existing OTA upgrading and the upgrading of the multi-control board of the Internet of things equipment become problems.
Disclosure of Invention
The embodiment of the invention provides a remote upgrading method for multiple control boards of Internet of things equipment, which aims to solve the problems of OTA upgrading safety and Internet of things equipment multiple control board upgrading in the prior art
The embodiment of the invention is realized in such a way, and provides a remote upgrading method for multiple control boards of equipment of the Internet of things, which comprises the following steps:
acquiring an upgrading command and upgrading information issued by a server;
downloading an upgrade firmware according to the upgrade command and the upgrade information and distributing the upgrade firmware to an OTA program area of a control panel;
copying the upgrading firmware from the OTA program area to an execution program area of a control panel;
and executing the upgraded firmware of the executive program area.
The utility model provides a long-range upgrading device of thing networking equipment multi-control board, includes:
the acquisition unit is used for acquiring an upgrade command and upgrade information issued by the server;
the download distribution unit is used for downloading the upgrade firmware according to the upgrade command and the upgrade information and distributing the upgrade firmware to the OTA program area of the control panel;
the copying unit is used for copying the upgrading firmware from the OTA program area to an execution program area of a control board;
and the execution unit is used for executing the upgraded firmware of the execution program area.
A computer device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the above method.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, causes the processor to carry out the steps of the above-mentioned method.
In the embodiment of the invention, the control board keeps 2 latest executable programs, when the OTA upgrading fails or the execution programs are abnormal, the equipment can automatically recover without influencing normal work, and simultaneously, the OTA upgrading function of the multiple control boards can be realized, thereby solving the problem of safe upgrading of the multiple control boards of the household appliance equipment of the Internet of things.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required in the description of the embodiments or the prior art will be briefly described below. It is obvious that the drawings in the following description are only embodiments of the invention, and that other drawings can be derived from the provided drawings by a person skilled in the art without inventive effort.
Fig. 1 is a flowchart of a remote upgrading method for multiple control boards of an internet of things device according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for remotely upgrading multiple control boards of internet of things devices according to an embodiment of the present invention;
fig. 3 is a flowchart of a remote upgrading method for multiple control boards of an internet of things device according to an embodiment of the present invention;
fig. 4 is a flowchart of a remote upgrading method for multiple control boards of an internet of things device according to an embodiment of the present invention;
fig. 5 is a flowchart of a remote upgrading method for multiple control boards of an internet of things device according to an embodiment of the present invention;
fig. 6 is a block diagram of a remote upgrading apparatus for multiple control boards of an internet of things device according to an embodiment of the present invention;
fig. 7 is a block diagram of another remote upgrading apparatus for multiple control boards of internet of things devices according to an embodiment of the present invention;
fig. 8 is a block diagram of a structure of a remote upgrading apparatus for multiple control boards of an internet of things device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the prior art, the upgrading of the multi-control board of the OTA upgrading and the Internet of things equipment becomes a problem
In order to solve the problems, the invention provides a remote upgrading method for multiple control boards of Internet of things equipment.
Fig. 1 shows a flowchart of a remote upgrading method for multiple control boards of internet of things equipment, which is applicable to an embodiment of the invention and includes the following steps:
step S101, obtaining an upgrade order and upgrade information sent by a server.
In the embodiment of the invention, when OTA upgrading is needed, the terminal firstly packages the upgrading program and the firmware header to generate upgrading firmware and uploads the upgrading firmware to the server, the server then creates the upgrading task and selects the execution time interval of the upgrading task, and the upgrading command and the upgrading information are issued at the appointed time. The control panel responsible for communicating with the server, which is used for acquiring the upgrading instruction and the upgrading information sent by the server, can be an IOT version. The upgrade information includes the identification code of the corresponding control panel.
And step S102, downloading the upgrade firmware according to the upgrade command and the upgrade information and distributing the upgrade firmware to an OTA program area of the control panel.
In the embodiment of the present invention, the control board program operating space can be divided into 4 blocks, the first block is a bootstrap program area, the second block is an execution program area, the third block is an OTA program area, and the fourth block is a program information area. The program information area comprises information such as a program version number, a check code and the like.
And downloading corresponding upgrading firmware from the server by the IOT board communicated with the server according to the upgrading command and the upgrading information, and distributing the upgrading firmware to the OTA program area of the corresponding control board, wherein the number of the control boards can be one or more. When there are multiple boards, the IOT board may distribute the upgraded firmware to multiple matching boards simultaneously. The upgrading firmware comprises a firmware header and an upgrading program.
The communication mode of the IOT board distributing the upgrade firmware to the control board includes but is not limited to serial port, USB, SPI, i2c, WiFI, Bluetooth, wired wireless network and the like.
And step S103, copying the upgrading firmware from the OTA program area to an execution program area of a control board.
After the control board receives the upgrade firmware and downloads the upgrade firmware to the OTA program area, the boot program of the boot program area of the control board copies the upgrade firmware of the OTA program area to the execution program area of the control board. Preferably, the copying of the upgraded firmware of the OTA program area to the execution program area of the control board can be accomplished by restarting the device to activate the boot program of the boot program area.
Preferably, after receiving the upgrade firmware, the control board may check the upgrade firmware according to information of the firmware header, determine whether the upgrade firmware is complete, copy the upgrade firmware from the OTA program area to an execution program area of the control board if the upgrade firmware is determined to be complete, and send upgrade failure information to the server through the IOT board if the upgrade firmware is determined to be incomplete, and attach a corresponding error code.
And step S104, executing the upgrade firmware of the execution program area.
After the upgrade firmware is copied to the execution program area, the control panel OTA program can be upgraded by executing the upgrade firmware. An upgrade program contained in the upgrade firmware.
Preferably, for upgrade security, the upgrade firmware may be verified before the upgrade firmware is executed, and the upgrade may be performed after the verification is passed.
In summary, according to the remote upgrading method for the multiple control boards of the internet of things equipment, the control boards keep 2 latest executable programs, when the OTA upgrading fails or the executable programs are abnormal, the equipment can automatically recover without affecting normal work, and meanwhile, the OTA upgrading function of the multiple control boards can be realized, so that the problem of safe upgrading of the multiple control boards of the internet of things household appliance equipment is solved.
Fig. 2 shows a flowchart of another remote upgrading method for multiple control boards of internet of things devices, where step S102 specifically includes:
and step S1021, downloading the firmware header.
In an embodiment of the present invention, the upgrade firmware includes a firmware header. After the upgrade command and the upgrade information sent by the server are obtained, the upgrade firmware is not directly downloaded, a firmware header of the upgrade firmware is downloaded first, and the firmware header contains the firmware upgrade information.
Preferably, for upgrading safety, after the upgrade command and the upgrade information issued by the server are acquired and before the firmware header is downloaded, the safety of the acquired upgrade information is verified, after the verification is passed, if the firmware header download verification is not passed, upgrade failure information is fed back to the server, and meanwhile, a fault code can also be fed back.
Step S1022, determine whether the upgrade firmware is legal according to the firmware header and the upgrade information.
In order to further improve the upgrading safety, after the firmware header is downloaded, whether the upgrading information acquired from the server is legal or not can be judged by verifying whether the upgrading information is consistent with the firmware upgrading information in the firmware header or not. If it is legal, go to step S1023; if not, the process goes to step S301, and the upgrade failure information is fed back to the server, and meanwhile, the fault code may also be fed back.
And S1023, judging whether the upgraded firmware is matched with the control board or not according to the firmware head and the upgrade information.
The obtained upgrading information comprises the identification code of the corresponding control panel, and the identification code of the control panel to be upgraded and the identification code in the upgrading information can be read for comparison to judge whether the identification code and the identification code are consistent. If yes, entering step S1024; if not, step S301 is performed, and upgrade failure information is fed back to the server, and meanwhile, a fault code may also be fed back.
And step S1024, downloading the upgrade firmware and distributing the upgrade firmware to an OTA program area of the control panel.
And after the verification is passed, downloading the upgrade firmware and distributing the upgrade firmware to the OTA program area of the matched control board, wherein the control board can be one or more. In the embodiment of the invention, the IOT board which is communicated with the server and the control boards is used for downloading and distributing the upgrading firmware, and one IOT board can correspond to a plurality of control boards.
Preferably, in order to facilitate management of downloading or distributing the upgrade firmware, timeout detection is provided, and when it is determined that the downloading or distributing of the upgrade firmware is timeout, the upgrade firmware is re-downloaded or distributed.
Fig. 3 shows a flowchart of another remote upgrading method for multiple control boards of internet of things devices, where step S103 specifically includes:
and step S1031, judging whether the current device mode is the OTA upgrading mode according to the bootstrap program of the bootstrap program area.
In the embodiment of the present invention, the device mode also needs to be determined, which may include a normal mode, an OTA upgrade mode, a failure mode, and the like. The control board comprises a bootstrap program area, the bootstrap program of the bootstrap program area searches the device mode, whether the device operates in the OTA upgrading mode is judged, and if yes, the step S1032 is executed; if not, the process proceeds to step S401.
In step S1032, the upgrade firmware is copied from the OTA program area to the execution program area.
In the embodiment of the invention, in order to improve the safety of upgrading, the upgrading firmware is not directly executed from the OTA program area, but is copied from the OTA program area to the execution program area and then executed.
Preferably, OTA upgrade of different stages can be carried out according to different device modes. For example, in the normal mode, the partition firmware is checked and executed firstly, if the partition firmware passes the check, the equipment is started normally, then the version number is reported to the server, if the partition firmware does not pass the check, the upgrade firmware of the OTA program area is checked, and the subsequent steps are the same as the OTA upgrade mode; when the OTA upgrading mode is adopted, the upgrading firmware is firstly verified to pass through, then the upgrading firmware is copied to the execution program area, if the upgrading firmware does not pass through, the normal mode is entered, if the upgrading firmware passes through, the upgrading firmware is copied from the OTA program area to the execution program area, and if the upgrading firmware passes through, the copying failure can be reported to a server; and sending a request to the server in the failure mode, and requesting to send an upgrading command again by upgrading failure information.
Preferably, the integrity of the upgrade firmware is verified before entering the OTA upgrade mode. The firmware header comprises a check code of the firmware, integrity can be judged by calculating whether the check code of the downloaded and upgraded firmware is consistent with the check code contained in the firmware header, and the OTA upgrading mode is started if the check code is consistent with the check code; if the updating fails, the updating failure information is fed back to the server, and meanwhile, the fault code can also be fed back.
Fig. 4 is a flowchart illustrating a remote upgrading method for multiple control boards of an internet of things device, which is applicable to an embodiment of the present invention, and the method further includes:
step S201, acquiring the failure times of copying the upgrade firmware from the OTA program area to the execution program area.
In the embodiment of the invention, the possibility of failure exists when the control board OTA upgrades the upgrade firmware from the OTA program area to the execution program area. And the boot program of the boot program area copies the upgrade firmware from the OTA program area to the execution program area and records the failure times after the verification fails.
And step S202, when the failure times exceed the preset times, sending upgrading failure information to the server.
And after the preset times of the failure times are obtained, judging that no effective executable program exists, and sending information of upgrading failure to the server, wherein the preset times can be preset. For example, if the preset fails for 3 times, upgrade failure information is sent to the server.
Step S203, requesting the server to re-issue the upgrade command.
After the upgrade failure information is sent to the server, the server can be actively requested to issue the upgrade command again, so that OTA upgrade can be carried out again.
Preferably, the control board can detect whether the execution program is damaged or not every time the control board is started, and can actively request the server to issue an upgrade command if the execution program is damaged and the OTA program area has no program.
Fig. 5 is a flowchart of a remote upgrading method for multiple control boards of internet of things devices, which is applicable to an embodiment of the present invention, and the method further includes:
and step S105, acquiring the updated new version number.
And after the upgrade is completed and the control panel is restarted, acquiring and recording the upgraded new version number, wherein the new version number can be recorded in the program information area of the control panel.
And step S106, sending the new version number to a server.
And sending the updated new version number to the IOT board, and judging whether the update is successful by the server after the IOT board uploads the new version number to the server. If successful, the upgrade is completed, and if failed, the upgrade command can be continuously issued.
Fig. 6 shows a block diagram of a remote upgrading apparatus for multiple control boards of an internet of things device, which is applicable to an embodiment of the present invention, and includes:
the obtaining unit 601 is configured to obtain an upgrade command and upgrade information sent by a server.
In the embodiment of the invention, when OTA upgrading is needed, the terminal firstly packages the upgrading program and the firmware header to generate upgrading firmware and uploads the upgrading firmware to the server, the server then creates the upgrading task and selects the execution time interval of the upgrading task, and the upgrading command and the upgrading information are issued at the appointed time. The acquiring unit 601 acquires the upgrade instruction and the upgrade information sent by the server, and is a control board in charge of communication with the server, which may be an IOT version. The upgrade information includes the identification code of the corresponding control panel.
And a download distribution unit 602, configured to download the upgrade firmware according to the upgrade command and the upgrade information, and distribute the upgrade firmware to the OTA program area of the control board.
In the embodiment of the present invention, the control board program operating space can be divided into 4 blocks, the first block is a bootstrap program area, the second block is an execution program area, the third block is an OTA program area, and the fourth block is a program information area. The program information area comprises information such as a program version number, a check code and the like.
The IOT board in the download distribution unit 602, which communicates with the server, downloads the corresponding upgrade firmware from the server according to the upgrade command and the upgrade information, and distributes the upgrade firmware to the OTA program area of the corresponding control board, where the number of the control boards may be one or multiple. When there are multiple boards, the IOT board may distribute the upgraded firmware to multiple matching boards simultaneously. The upgrading firmware comprises a firmware header and an upgrading program.
The communication mode of the IOT board distributing the upgrade firmware to the control board includes but is not limited to serial port, USB, SPI, i2c, WiFI, Bluetooth, wired wireless network and the like.
A copying unit 603 configured to copy the upgrade firmware from the OTA program area to an execution program area of the control board.
After the control board receives the upgrade firmware and downloads the upgrade firmware to the OTA program area, the boot program of the boot program area of the control board of the copy unit 603 copies the upgrade firmware of the OTA program area to the execution program area of the control board. Preferably, the copying of the upgraded firmware of the OTA program area to the execution program area of the control board can be accomplished by restarting the device to activate the boot program of the boot program area.
Preferably, after receiving the upgrade firmware, the control board may check the upgrade firmware according to information of the firmware header, determine whether the upgrade firmware is complete, copy the upgrade firmware from the OTA program area to an execution program area of the control board if the upgrade firmware is determined to be complete, and send upgrade failure information to the server through the IOT board if the upgrade firmware is determined to be incomplete, and attach a corresponding error code.
An execution unit 604, configured to execute the upgraded firmware in the execution program area.
After the upgrade firmware is copied to the execution program area, the execution unit 604 executes the upgrade firmware to complete the control panel OTA program upgrade. An upgrade program contained in the upgrade firmware.
Preferably, for upgrade security, the execution unit 604 may verify the upgraded firmware before executing the upgraded firmware, and upgrade the upgraded firmware after the verification is passed.
In summary, according to the remote upgrading method for the multiple control boards of the internet of things equipment, the control boards keep 2 latest executable programs, when the OTA upgrading fails or the executable programs are abnormal, the equipment can automatically recover without affecting normal work, and meanwhile, the OTA upgrading function of the multiple control boards can be realized, so that the problem of safe upgrading of the multiple control boards of the internet of things household appliance equipment is solved.
Fig. 7 shows a block diagram of another remote upgrading apparatus for multiple control boards of internet of things devices, where the download distribution unit 602 specifically includes:
a firmware header downloading module 6021, configured to download the firmware header.
In an embodiment of the present invention, the upgrade firmware includes a firmware header. After the upgrade command and the upgrade information sent by the server are obtained, the firmware header downloading module 6021 may not directly download the upgrade firmware, and first downloads the firmware header of the upgrade firmware, where the firmware header includes the firmware upgrade information.
Preferably, for upgrading safety, after the upgrade command and the upgrade information issued by the server are acquired and before the firmware header is downloaded, the safety of the acquired upgrade information is verified, after the verification is passed, if the firmware header download verification is not passed, upgrade failure information is fed back to the server, and meanwhile, a fault code can also be fed back.
A first judging module 6022, configured to judge whether the upgrade firmware is legal according to the firmware header and the upgrade information.
In order to further improve the upgrade security, after the firmware header is downloaded, whether the upgrade information acquired from the server is consistent with the firmware upgrade information in the firmware header can be verified through the first judgment module 6022 to judge whether the upgrade information is legal. If the code is legal, the next step can be carried out; if the upgrade is illegal, the upgrade failure information is fed back to the server, and meanwhile, the fault code can also be fed back.
And the second judging module 6023 is configured to judge whether the upgraded firmware is matched with the control board according to the firmware header and the upgrade information.
The acquired upgrade information includes the identification code of the corresponding control panel, and the identification code of the control panel to be upgraded can be read by the second judgment module 6023 to compare with the identification code in the upgrade information, so as to judge whether the two are consistent. If the two are consistent, the next step is carried out; if not, the upgrade failure information is fed back to the server, and meanwhile, the fault code can also be fed back.
And a download distribution module 6024, configured to download the upgrade firmware and distribute the upgrade firmware to the OTA program area of the control board.
When the verification is passed, the download distribution module 6024 downloads the upgrade firmware and distributes the upgrade firmware to the OTA program area of the matched control board, where the control board may be one or multiple. In the embodiment of the invention, the IOT board which is communicated with the server and the control boards is used for downloading and distributing the upgrading firmware, and one IOT board can correspond to a plurality of control boards.
Preferably, in order to facilitate management of downloading or distributing the upgrade firmware, timeout detection is provided, and when it is determined that the downloading or distributing of the upgrade firmware is timeout, the upgrade firmware is re-downloaded or distributed.
As shown in fig. 7, the structure block diagram of the remote upgrading apparatus for multiple control boards of an out-of-network device, the replication unit 603 specifically includes:
a mode determining module 6031, configured to determine whether the current device mode is the OTA upgrade mode according to the bootstrap program of the bootstrap area.
In this embodiment of the present invention, the mode determining module 6031 determines the device mode, which may include a normal mode, an OTA upgrade mode, a failure mode, and the like. The control board comprises a bootstrap program area, the bootstrap program of the bootstrap program area searches the device mode, whether the device operates in the OTA upgrading mode is judged, and if yes, the step S1032 is executed.
A copying module 6032, configured to copy the upgrade firmware from the OTA program area to the execution program area.
In the embodiment of the present invention, in order to improve the security of the upgrade, the upgrade firmware is not directly executed from the OTA program area, but is copied from the OTA program area to the execution program area by the copy module 6032 and then executed.
Preferably, OTA upgrade of different stages can be carried out according to different device modes. For example, in the normal mode, the partition firmware is checked and executed firstly, if the partition firmware passes the check, the equipment is started normally, then the version number is reported to the server, if the partition firmware does not pass the check, the upgrade firmware of the OTA program area is checked, and the subsequent steps are the same as the OTA upgrade mode; when the OTA upgrading mode is adopted, the upgrading firmware is firstly verified to pass through, then the upgrading firmware is copied to the execution program area, if the upgrading firmware does not pass through, the normal mode is entered, if the upgrading firmware passes through, the upgrading firmware is copied from the OTA program area to the execution program area, and if the upgrading firmware passes through, the copying failure can be reported to a server; and sending a request to the server in the failure mode, and requesting to send an upgrading command again by upgrading failure information.
Preferably, the integrity of the upgrade firmware is verified before entering the OTA upgrade mode. The firmware header comprises a check code of the firmware, integrity can be judged by calculating whether the check code of the downloaded and upgraded firmware is consistent with the check code contained in the firmware header, and the OTA upgrading mode is started if the check code is consistent with the check code; if the updating fails, the updating failure information is fed back to the server, and meanwhile, the fault code can also be fed back.
Fig. 8 is a block diagram illustrating a structure of a remote upgrading apparatus for multiple control boards of internet of things devices according to an embodiment of the present invention, further including:
a failure number obtaining unit 701, configured to obtain the failure number for copying the upgrade firmware from the OTA program area to the execution program area.
In the embodiment of the invention, the possibility of failure exists when the control board OTA upgrades the upgrade firmware from the OTA program area to the execution program area. The boot program of the boot program area copies the upgrade firmware from the OTA program area to the execution program area and the failure number acquisition unit 701 records the failure number after the verification fails.
A failure information sending unit 702, configured to send upgrade failure information to the server when the failure times exceed preset times.
When it is determined that there is no valid executable program after the preset number of times of failure acquisition, the failure information sending unit 702 sends information of failure of upgrade to the server, and the preset number of times may be preset. For example, if the preset fails for 3 times, upgrade failure information is sent to the server.
An upgrade command sending unit 703 is configured to request the server to issue an upgrade command again.
After the upgrade failure information is sent to the server, the server can be actively requested to issue the upgrade command again, so that OTA upgrade can be carried out again.
Preferably, the control board can detect whether the execution program is damaged or not every time the control board is started, and can actively request the server to issue an upgrade command if the execution program is damaged and the OTA program area has no program.
Fig. 8 is a block diagram illustrating a structure of a remote upgrading apparatus for multiple control boards of internet of things devices according to an embodiment of the present invention, further including:
a new version number obtaining unit 605, configured to obtain the updated new version number.
After the upgrade is completed and the restart is performed, the new version number obtaining unit 605 obtains and records the upgraded new version number, and the new version number can be recorded in the program information area of the control board.
And a new version number sending unit 606, configured to send the new version number to the server.
The new version number sending unit 606 sends the updated new version number to the IOT board, and after the IOT board uploads the new version number to the server, the server determines whether the update is successful. If successful, the upgrade is completed, and if failed, the upgrade command can be continuously issued.
The invention also provides computer equipment which comprises a processor, wherein the processor is used for executing the remote upgrading method for the multiple control boards of the Internet of things equipment.
The computer equipment provided by the embodiment of the invention also comprises a memory. Illustratively, a computer program can be partitioned into one or more modules, which are stored in memory and executed by a processor to implement the present invention. One or more modules can be a series of computer program instruction segments capable of achieving specific functions, and the instruction segments are used for describing the execution process of the computer program in the remote upgrading device of the multi-control board of the equipment of the internet of things.
Those skilled in the art will appreciate that the description of the multi-control board remote upgrading device of the internet of things device is merely an example, and does not constitute a limitation of the multi-control board remote upgrading device of the internet of things device, and may include more or less components than the description, or combine some components, or different components, for example, may include input/output devices, network access devices, buses, and the like.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Micro Control Unit (MCU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc. The general processor can be a microprocessor or the processor can also be any conventional processor and the like, the processor is a control center of the internet of things equipment multi-control-board remote upgrading device, and various interfaces and lines are used for connecting all parts of the whole internet of things equipment multi-control-board remote upgrading device.
The memory can be used for storing the computer program and/or the module, and the processor realizes various functions of the charger by running or executing the computer program and/or the module stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
If the module/unit integrated by the multi-control-board remote upgrading device of the internet-of-things equipment is realized in the form of a software functional unit and is sold or used as an independent product, the module/unit can be stored in a computer readable storage medium. Based on such understanding, all or part of the functions of the units in the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the functions of the above embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (12)

1. A remote upgrading method for multiple control boards of Internet of things equipment is characterized by comprising the following steps:
acquiring an upgrading command and upgrading information issued by a server;
downloading an upgrade firmware according to the upgrade command and the upgrade information and distributing the upgrade firmware to an OTA program area of a control panel;
copying the upgrading firmware from the OTA program area to an execution program area of a control panel;
and executing the upgraded firmware of the executive program area.
2. The method for remotely upgrading the multiple control boards of the internet of things equipment according to claim 1, wherein the upgrade firmware comprises a firmware header, and the step of downloading the upgrade firmware according to the upgrade command and the upgrade information and distributing the upgrade firmware to the OTA program area of the control board specifically comprises the steps of:
downloading the firmware head;
judging whether the upgraded firmware is legal or not according to the firmware header and the upgrading information;
if yes, judging whether the upgraded firmware is matched with the control board or not according to the firmware header and the upgrading information;
and if so, downloading the upgrade firmware and distributing the upgrade firmware to an OTA program area of the control panel.
3. The method for remotely upgrading the multiple control boards of the internet-of-things device according to claim 1, wherein the control boards further comprise a boot program area, and the step of copying the upgrade firmware from the OTA program area to an execution program area of the control boards specifically comprises:
judging whether the current equipment mode is an OTA upgrading mode or not according to the bootstrap program of the bootstrap program area;
and if so, copying the upgrading firmware from the OTA program area to an execution program area.
4. The internet of things equipment multi-control-board remote upgrading method according to claim 1, further comprising:
acquiring the failure times of copying the upgrading firmware from the OTA program area to the execution program area;
when the failure times exceed the preset times, sending upgrading failure information to a server; and/or
Requesting the server to re-issue an upgrade command.
5. The method for remotely upgrading the multi-control board of the internet-of-things equipment according to claim 1, wherein the step of executing the firmware upgrade of the execution program area further comprises the following steps:
acquiring an updated new version number;
and sending the new version number to a server.
6. The utility model provides a long-range upgrading device of thing networking equipment many control boards which characterized in that includes:
the acquisition unit is used for acquiring an upgrade command and upgrade information issued by the server;
the download distribution unit is used for downloading the upgrade firmware according to the upgrade command and the upgrade information and distributing the upgrade firmware to the OTA program area of the control panel;
the copying unit is used for copying the upgrading firmware from the OTA program area to an execution program area of a control board;
and the execution unit is used for executing the upgraded firmware of the execution program area.
7. The internet of things equipment multi-control-board remote upgrading device of claim 6, wherein the upgrading firmware comprises a firmware header, and the downloading and distributing unit specifically comprises:
the firmware head downloading module is used for downloading the firmware head;
the first judging module is used for judging whether the upgraded firmware is legal or not according to the firmware header and the upgrading information;
the second judgment module is used for judging whether the upgraded firmware is matched with the control panel or not according to the firmware head and the upgrading information;
and the download distribution module is used for downloading the upgrade firmware and distributing the upgrade firmware to the OTA program area of the control panel.
8. The internet-of-things equipment multi-control-board remote upgrading device of claim 6, wherein the control board further comprises a bootstrap area, and the copying unit specifically comprises:
the mode judging module is used for judging whether the current equipment mode is an OTA upgrading mode or not according to the bootstrap program of the bootstrap program area;
and the copying module is used for copying the upgrading firmware from the OTA program area to the execution program area.
9. The internet of things equipment multi-control-board remote upgrading device of claim 6, further comprising:
a failure number acquisition unit, configured to acquire the number of failures for copying the upgrade firmware from the OTA program area to the execution program area;
the system comprises a failure information sending unit, a failure information sending unit and a failure information sending unit, wherein the failure information sending unit is used for sending upgrading failure information to a server when the failure times exceed preset times; and/or
And the upgrading command sending unit is used for requesting the server to send the upgrading command again.
10. The internet of things equipment multi-control-board remote upgrading device of claim 6, further comprising:
a new version number obtaining unit, configured to obtain the updated new version number;
and the new version number sending unit is used for sending the new version number to the server.
11. A computer arrangement, characterized by a memory and a processor, in which a computer program is stored which, when being executed by the processor, causes the processor to carry out the steps of the method according to any one of claims 1-5.
12. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1-5.
CN202111282778.2A 2021-11-01 2021-11-01 Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium Pending CN114189440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111282778.2A CN114189440A (en) 2021-11-01 2021-11-01 Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111282778.2A CN114189440A (en) 2021-11-01 2021-11-01 Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114189440A true CN114189440A (en) 2022-03-15

Family

ID=80601768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111282778.2A Pending CN114189440A (en) 2021-11-01 2021-11-01 Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114189440A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002084484A2 (en) * 2001-04-18 2002-10-24 Domosys Corporation Method of remotely upgrading firmware in field-deployed devices
CN110874237A (en) * 2019-12-30 2020-03-10 深圳市英博超算科技有限公司 Software upgrading method, device, terminal and readable storage medium
CN111142917A (en) * 2019-12-18 2020-05-12 广东美的厨房电器制造有限公司 Household appliance multi-MCU system online upgrading method, electronic equipment and medium
CN111831309A (en) * 2020-07-16 2020-10-27 深圳市朗科智能电气股份有限公司 Upgrading method, device, equipment and medium for multiple MCUs (micro control units) in Wifi (wireless fidelity) of Internet of things
CN112040476A (en) * 2020-08-21 2020-12-04 北京三一智农数据技术有限公司 Upgrading method and device for Internet of things terminal
CN112104501A (en) * 2020-09-16 2020-12-18 山东省计算中心(国家超级计算济南中心) Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment
WO2021017919A1 (en) * 2019-07-31 2021-02-04 中兴通讯股份有限公司 Ota update diagnostic method and apparatus, wireless routing device, and terminal device
CN113467813A (en) * 2021-05-19 2021-10-01 深圳拓邦股份有限公司 Controller online upgrading method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002084484A2 (en) * 2001-04-18 2002-10-24 Domosys Corporation Method of remotely upgrading firmware in field-deployed devices
WO2021017919A1 (en) * 2019-07-31 2021-02-04 中兴通讯股份有限公司 Ota update diagnostic method and apparatus, wireless routing device, and terminal device
CN111142917A (en) * 2019-12-18 2020-05-12 广东美的厨房电器制造有限公司 Household appliance multi-MCU system online upgrading method, electronic equipment and medium
CN110874237A (en) * 2019-12-30 2020-03-10 深圳市英博超算科技有限公司 Software upgrading method, device, terminal and readable storage medium
CN111831309A (en) * 2020-07-16 2020-10-27 深圳市朗科智能电气股份有限公司 Upgrading method, device, equipment and medium for multiple MCUs (micro control units) in Wifi (wireless fidelity) of Internet of things
CN112040476A (en) * 2020-08-21 2020-12-04 北京三一智农数据技术有限公司 Upgrading method and device for Internet of things terminal
CN112104501A (en) * 2020-09-16 2020-12-18 山东省计算中心(国家超级计算济南中心) Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment
CN113467813A (en) * 2021-05-19 2021-10-01 深圳拓邦股份有限公司 Controller online upgrading method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110083374B (en) Upgrade rollback method, system and terminal equipment
CN107844343B (en) Upgrading system and method for complex server application system
WO2019076037A1 (en) Firmware updating method and device
US10416985B2 (en) Method and apparatus for multi cycle vehicle software update compliance handling
CN111367545A (en) Terminal upgrading method and device, server, terminal equipment and readable storage medium
JP2019159401A (en) Electronic control unit system, and software consistency check system in electronic control unit system
CN111273924B (en) Software updating method and device
CN110543318A (en) control device program updating method and device, storage medium and control device
CN110784348A (en) Firmware upgrading method and device, electronic equipment and storage medium
CN107844306B (en) Application program repairing method and device, storage medium and terminal
CN111381842A (en) Robot upgrading method, electronic equipment and server
CN112363742A (en) Firmware system upgrading method, device, equipment and medium
CN110413487A (en) A kind of indicator light management method, system and the baseboard management controller of server
US9208320B2 (en) Software distribution system and software distribution method
CN105045640A (en) Software upgrading method and device and intelligent equipment
EP2664988A1 (en) Method, device and system for installing terminal software
CN109002305B (en) Method and system for updating equipment program
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN116257438A (en) Updating method of interface test case and related equipment
CN111752577A (en) System version upgrading method and device
WO2018166322A1 (en) Repairing method and device for system partition
CN111984287A (en) Equipment upgrading method and system
CN106933604B (en) System upgrading method and device
CN114189440A (en) Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium
CN110688130A (en) Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment

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