CN113891305A - Remote firmware upgrading system and method based on master-slave machine structure - Google Patents

Remote firmware upgrading system and method based on master-slave machine structure Download PDF

Info

Publication number
CN113891305A
CN113891305A CN202111179710.1A CN202111179710A CN113891305A CN 113891305 A CN113891305 A CN 113891305A CN 202111179710 A CN202111179710 A CN 202111179710A CN 113891305 A CN113891305 A CN 113891305A
Authority
CN
China
Prior art keywords
host
upgrading
slave
program
firmware
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
CN202111179710.1A
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.)
Jiangsu Cssiot Technology Co ltd
Original Assignee
Jiangsu Cssiot Technology 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 Jiangsu Cssiot Technology Co ltd filed Critical Jiangsu Cssiot Technology Co ltd
Priority to CN202111179710.1A priority Critical patent/CN113891305A/en
Publication of CN113891305A publication Critical patent/CN113891305A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal

Abstract

The invention discloses a remote firmware upgrading system and method based on a master-slave machine structure, wherein the system consists of a host and a plurality of slave machines, the host comprises a 4G communication module, a host upgrading operation module and a Lora gateway module, and each slave machine comprises a Lora terminal module and a slave upgrading operation module; correspondingly, the method also comprises a host upgrading method and a slave upgrading method. The invention adopts a mode that one host is matched with a plurality of slave machines, the host utilizes 4G communication and the slave machines utilize Lora communication, thereby obviously improving the convenience of equipment upgrading, reducing the mechanical operation in the traditional upgrading mode, and having more flexible and convenient upgrading process and strong stability.

Description

Remote firmware upgrading system and method based on master-slave machine structure
Technical Field
The invention relates to a firmware upgrading system and a corresponding upgrading method thereof, in particular to a remote firmware upgrading system and a remote firmware upgrading method based on a master-slave machine structure, and belongs to the technical field of engineering equipment.
Background
With the improvement of the overall technology level of society, various mechanized and intelligent devices are beginning to be applied to various fields of production and life. Taking the field of construction engineering as an example, in the project at the present stage, a large number of operating devices with different functions are generally arranged in a field. For the purposes of stable operation and function updating of the equipment, the equipment arranged in the field needs to be upgraded periodically.
At present, the firmware upgrading operation of equipment in an engineering project site is generally completed by means of manual work, and in the upgrading process, technicians are required to manually operate one by one, and the equipment is upgraded by accessing external storage equipment or control equipment to acquire an updating program from a server. However, during this operation, the following problems often occur that affect the normal use of the apparatus.
Firstly, the firmware of the engineering equipment is upgraded by accessing the external storage equipment, so that the mechanical operation flexibility and stability are poor, the upgrading efficiency is low, and the normal development of projects can be influenced. Secondly, firmware upgrading of the engineering equipment is carried out in a remote connection mode with the server, the upgrading is limited by the influence of a communication mode and a field environment, upgrading reliability is poor, the situation that obtaining of an updating program fails frequently occurs, once firmware upgrading fails, equipment in operation often crashes due to the fact that the previous program cannot be restored, and therefore the equipment needs to be sent to a factory for repair, and engineering progress is undoubtedly influenced.
In summary, how to design a new remote firmware upgrading system and a corresponding upgrading method thereof, which can be used in a building engineering project, based on the above current situation, so as to overcome many problems existing in the prior art, which is a problem of common attention of those skilled in the art.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, an object of the present invention is to provide a remote firmware upgrade system based on a master-slave architecture and a corresponding upgrade method thereof, which can be used in a building engineering project, as follows.
A remote firmware upgrading system based on master-slave machine structure is composed of a master machine and a plurality of slave machines,
the host machine is internally provided with a plurality of host machines,
a 4G communication module in signal connection with an external upgrade server for realizing the communication between the host and the external upgrade server,
a host upgrading operation module electrically connected with the 4G communication module and used for acquiring and storing a host/slave upgrading program in the external upgrading server, executing the host upgrading program and issuing the slave upgrading program to each slave,
the Lora gateway module is in signal connection with each slave machine and used for realizing communication between the host machine and each slave machine;
each of said slaves includes, in its interior,
the Lora terminal module is in signal connection with the Lora gateway module in the host and is used for realizing communication between the slave and the host;
and the slave upgrading operation module is electrically connected with the Lora terminal module and is used for acquiring, storing and executing a slave upgrading program issued by the host.
Preferably, the host upgrade operation module includes:
the first host program memory is used for acquiring, storing and executing the boot files in the host upgrading program;
the second host program memory is used for acquiring, storing and executing the application files in the host upgrading program;
the first host flash memory is used for backing up the current application program in the host before the host program is updated every time;
and the second host flash memory is used for acquiring and storing the slave upgrading program acquired from the external upgrading server.
Preferably, the first host flash memory is an embedded flash memory, and the second host flash memory is an external flash memory.
Preferably, the slave upgrade operation module includes:
the first slave machine program memory is used for acquiring, storing and executing the guide file in the slave machine upgrading program;
the second host program memory is used for acquiring, storing and executing the application files in the slave upgrading program;
and the slave flash memory is used for backing up the application program in the slave before each time the slave program is updated.
A remote firmware upgrading method based on a master-slave machine structure is based on the remote firmware upgrading system based on the master-slave machine structure and comprises a master upgrading method and a slave upgrading method, wherein the master upgrading method comprises the following two steps:
the host upgrade method includes the steps of,
s11, the host computer completes the initialization of the firmware,
s12, the host computer judges whether to enter the upgrade process according to the guide file,
if entering an upgrading process, backing up the current application program in the host, acquiring the host upgrading program from the external upgrading server through 4G communication and writing the firmware, if the writing is successful, restarting the host to complete updating, if the writing is failed, restoring the firmware from the backup and restarting the host,
if the host does not enter the upgrading process, further judging whether the host enters the downloading process according to the guide file, if so, acquiring the upgrading program of the slave from the external upgrading server through 4G communication, storing the upgrading program, and then restarting the host, otherwise, normally operating the application program by the host;
the slave upgrade method includes the steps of,
s21, the slave machine is started to complete the firmware initialization,
s22, after the host computer normally starts to run the application program, the slave computer judges whether to enter the upgrading process according to the guide file,
if entering the upgrading process, backing up the application program in the slave machine, obtaining the slave machine upgrading program from the host machine through Lora communication and writing the firmware, if the writing is successful, finishing the updating, if the writing is failed, restoring the firmware from the backup,
and if the upgrading process is not entered, the slave machine normally runs the application program.
Compared with the prior art, the invention has the advantages that:
the remote firmware upgrading system based on the master-slave machine structure and the corresponding upgrading method thereof provided by the invention have the advantages that one host machine is matched with a plurality of slave machines, the host machine utilizes 4G communication, and the slave machines utilize Lora communication, so that the convenience of equipment upgrading is obviously improved, the mechanical operation in the traditional upgrading mode is reduced, the upgrading process is more flexible and convenient, and the stability is strong. The invention also utilizes the characteristics of long Lora communication transmission distance and strong penetration capability, ensures the communication effect when the slave is in a severe environment in a field for a long time, and ensures the reliability of firmware upgrade.
Meanwhile, considering that the number of the slave machines mounted in the system is large, the upgrading method stores the upgrading program of the slave machines into the plug-in flash memory of the host machine from the server, effectively avoids the situation of program capture failure when the network is unstable, and greatly improves the success rate and the efficiency of updating the program of the slave machines. In addition, in the scheme of the invention, the backup areas are arranged in the flash memories of the host and the slave, and under the condition of failure of firmware upgrade, the system can start the backup areas to restore the program content before, thereby overcoming the problems of equipment crash and need of return to the factory for maintenance when the firmware upgrade fails.
In addition, according to the overall scheme of the invention, hardware used in the invention is a technology which is mature at present and has relatively wide application, and a user can obtain the complete technical scheme of the invention by modifying and combining the existing system and components, thereby facilitating the overall construction of the system.
The following detailed description of the embodiments of the present invention is provided in connection with the accompanying drawings for the purpose of facilitating understanding and understanding of the technical solutions of the present invention.
Drawings
FIG. 1 is a system architecture diagram of the present invention.
Detailed Description
The invention discloses a remote firmware upgrading system based on a master-slave machine structure, which is composed of a master machine and a plurality of slave machines as shown in figure 1.
The host computer comprises:
the 4G communication module is in signal connection with an external upgrading server and is used for realizing communication between the host and the external upgrading server;
the host upgrading operation module is electrically connected with the 4G communication module and is used for acquiring and storing a host/slave upgrading program in the external upgrading server, executing the host upgrading program and issuing the slave upgrading program to each slave;
and the Lora gateway module is in signal connection with each slave machine and is used for realizing the communication between the host machine and each slave machine.
Wherein the host upgrade operation module further comprises:
the first host program memory is used for acquiring, storing and executing the boot files in the host upgrading program;
the second host program memory is used for acquiring, storing and executing the application files in the host upgrading program;
the first host flash memory is used for backing up the current application program in the host before the host program is updated every time;
a second host flash memory for obtaining and storing the slave upgrading program obtained from the external upgrading server
It should be added that, in the present solution, in consideration of the convenience of upgrading the slave, the first host Flash memory is an embedded Flash memory (embedded Flash), and the second host Flash memory is an external Flash memory (external Flash).
Each slave machine comprises:
the Lora terminal module is in signal connection with the Lora gateway module in the host and is used for realizing communication between the slave and the host;
and the slave upgrading operation module is electrically connected with the Lora terminal module and is used for acquiring, storing and executing a slave upgrading program issued by the host.
Wherein the slave upgrade operation module further comprises:
the first slave machine program memory is used for acquiring, storing and executing the guide file in the slave machine upgrading program;
the second host program memory is used for acquiring, storing and executing the application files in the slave upgrading program;
and the slave flash memory is used for backing up the application program in the slave before each time the slave program is updated.
Corresponding to the system hardware, the invention also discloses a remote firmware upgrading method based on the master-slave machine structure, and the remote firmware upgrading system based on the master-slave machine structure is composed of a master upgrading method and a slave upgrading method, and the specific scheme is as follows.
The host upgrading method comprises the following steps:
s11, completing firmware initialization when the host computer is started;
s12, the host computer judges whether to enter the upgrade process according to the guide file,
if entering an upgrading process, backing up the current application program in the host, acquiring the host upgrading program from the external upgrading server through 4G communication and writing the firmware, if the writing is successful, restarting the host to complete updating, if the writing is failed, restoring the firmware from the backup and restarting the host,
if the host computer does not enter the upgrading process, further judging whether the host computer enters the downloading process according to the guide file, if so, obtaining the upgrading program of the slave computer from the external upgrading server through 4G communication, storing the upgrading program, and then restarting the host computer, otherwise, the host computer normally runs the application program.
The slave computer upgrading method is carried out after the host computer upgrading method is executed, and comprises the following steps:
s21, finishing firmware initialization when the slave is started;
s22, after the host computer normally starts to run the application program, the slave computer judges whether to enter the upgrading process according to the guide file,
if entering the upgrading process, backing up the application program in the slave machine, obtaining the slave machine upgrading program from the host machine through Lora communication and writing the firmware, if the writing is successful, finishing the updating, if the writing is failed, restoring the firmware from the backup,
and if the upgrading process is not entered, the slave machine normally runs the application program.
In summary, the remote firmware upgrade system based on the master-slave machine structure and the corresponding upgrade method thereof provided by the invention use a mode that one host machine is matched with a plurality of slave machines, the host machine utilizes 4G communication, and the slave machines utilize Lora communication, thereby remarkably improving the convenience of equipment upgrade, reducing mechanical operation in the traditional upgrade mode, and having more flexible and convenient upgrade process and strong stability. The invention also utilizes the characteristics of long Lora communication transmission distance and strong penetration capability, ensures the communication effect when the slave is in a severe environment in a field for a long time, and ensures the reliability of firmware upgrade.
Meanwhile, considering that the number of the slave machines mounted in the system is large, the upgrading method stores the upgrading program of the slave machines into the plug-in flash memory of the host machine from the server, effectively avoids the situation of program capture failure when the network is unstable, and greatly improves the success rate and the efficiency of updating the program of the slave machines. In addition, in the scheme of the invention, the backup areas are arranged in the flash memories of the host and the slave, and under the condition of failure of firmware upgrade, the system can start the backup areas to restore the program content before, thereby overcoming the problems of equipment crash and need of return to the factory for maintenance when the firmware upgrade fails.
In addition, according to the overall scheme of the invention, hardware used in the invention is a technology which is mature at present and has relatively wide application, and a user can obtain the complete technical scheme of the invention by modifying and combining the existing system and components, thereby facilitating the overall construction of the system.
In the practical application process, the invention has clear integral operation flow and excellent control logic, solves the problem of remote firmware upgrade to the maximum extent, provides a brand new thought for the firmware upgrade of various devices used in the construction project, provides reference for other related problems in the same field, can be expanded and deeply researched on the basis of the brand new thought, and has wide industrial application prospect.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.
Finally, it should be understood that although the present description refers to embodiments, not every embodiment contains only a single technical solution, and such description is for clarity only, and those skilled in the art should integrate the description, and the technical solutions in the embodiments can be appropriately combined to form other embodiments understood by those skilled in the art.

Claims (5)

1. A remote firmware upgrading system based on a master-slave machine structure is composed of a master machine and a plurality of slave machines, and is characterized in that:
the host machine is internally provided with a plurality of host machines,
a 4G communication module in signal connection with an external upgrade server for realizing the communication between the host and the external upgrade server,
a host upgrading operation module electrically connected with the 4G communication module and used for acquiring and storing a host/slave upgrading program in the external upgrading server, executing the host upgrading program and issuing the slave upgrading program to each slave,
the Lora gateway module is in signal connection with each slave machine and used for realizing communication between the host machine and each slave machine;
each of said slaves includes, in its interior,
the Lora terminal module is in signal connection with the Lora gateway module in the host and is used for realizing communication between the slave and the host;
and the slave upgrading operation module is electrically connected with the Lora terminal module and is used for acquiring, storing and executing a slave upgrading program issued by the host.
2. The remote firmware upgrade system based on a master-slave architecture as claimed in claim 1, wherein said host upgrade operation module comprises:
the first host program memory is used for acquiring, storing and executing the boot files in the host upgrading program;
the second host program memory is used for acquiring, storing and executing the application files in the host upgrading program;
the first host flash memory is used for backing up the current application program in the host before the host program is updated every time;
and the second host flash memory is used for acquiring and storing the slave upgrading program acquired from the external upgrading server.
3. The remote firmware upgrade system based on the master-slave architecture as claimed in claim 2, wherein: the first host flash memory is an embedded flash memory, and the second host flash memory is an external flash memory.
4. The remote firmware upgrade system based on a master-slave machine structure as claimed in claim 1, wherein said slave upgrade operation module comprises:
the first slave machine program memory is used for acquiring, storing and executing the guide file in the slave machine upgrading program;
the second host program memory is used for acquiring, storing and executing the application files in the slave upgrading program;
and the slave flash memory is used for backing up the application program in the slave before each time the slave program is updated.
5. A remote firmware upgrading method based on a master-slave machine structure is based on a remote firmware upgrading system based on a master-slave machine structure as claimed in any one of claims 1-4, and is characterized in that: the method comprises a host computer upgrading method and a slave computer upgrading method:
the host upgrade method includes the steps of,
s11, the host computer completes the initialization of the firmware,
s12, the host computer judges whether to enter the upgrade process according to the guide file,
if entering an upgrading process, backing up the current application program in the host, acquiring the host upgrading program from the external upgrading server through 4G communication and writing the firmware, if the writing is successful, restarting the host to complete updating, if the writing is failed, restoring the firmware from the backup and restarting the host,
if the host does not enter the upgrading process, further judging whether the host enters the downloading process according to the guide file, if so, acquiring the upgrading program of the slave from the external upgrading server through 4G communication, storing the upgrading program, and then restarting the host, otherwise, normally operating the application program by the host;
the slave upgrade method includes the steps of,
s21, the slave machine is started to complete the firmware initialization,
s22, after the host computer normally starts to run the application program, the slave computer judges whether to enter the upgrading process according to the guide file,
if entering the upgrading process, backing up the application program in the slave machine, obtaining the slave machine upgrading program from the host machine through Lora communication and writing the firmware, if the writing is successful, finishing the updating, if the writing is failed, restoring the firmware from the backup,
and if the upgrading process is not entered, the slave machine normally runs the application program.
CN202111179710.1A 2021-10-11 2021-10-11 Remote firmware upgrading system and method based on master-slave machine structure Pending CN113891305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111179710.1A CN113891305A (en) 2021-10-11 2021-10-11 Remote firmware upgrading system and method based on master-slave machine structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111179710.1A CN113891305A (en) 2021-10-11 2021-10-11 Remote firmware upgrading system and method based on master-slave machine structure

Publications (1)

Publication Number Publication Date
CN113891305A true CN113891305A (en) 2022-01-04

Family

ID=79005913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111179710.1A Pending CN113891305A (en) 2021-10-11 2021-10-11 Remote firmware upgrading system and method based on master-slave machine structure

Country Status (1)

Country Link
CN (1) CN113891305A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681871A (en) * 2012-04-25 2012-09-19 广州致远电子股份有限公司 Firmware upgrading system based on communication interfaces
CN110673862A (en) * 2019-08-15 2020-01-10 广州中海达定位技术有限公司 Wireless upgrading method, equipment and medium for embedded equipment firmware with dual-use multi-mode
CN110780909A (en) * 2019-10-14 2020-02-11 武汉虹识技术有限公司 Distributed embedded system upgrading method and device
CN111782246A (en) * 2020-07-03 2020-10-16 常州东晟合众节能科技有限公司 Embedded program upgrading method of multi-node equipment based on bus
CN112910714A (en) * 2021-03-05 2021-06-04 中国电子科技集团公司第三十八研究所 Remote firmware upgrading method for Internet of things terminal equipment with master-slave machine structure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681871A (en) * 2012-04-25 2012-09-19 广州致远电子股份有限公司 Firmware upgrading system based on communication interfaces
CN110673862A (en) * 2019-08-15 2020-01-10 广州中海达定位技术有限公司 Wireless upgrading method, equipment and medium for embedded equipment firmware with dual-use multi-mode
CN110780909A (en) * 2019-10-14 2020-02-11 武汉虹识技术有限公司 Distributed embedded system upgrading method and device
CN111782246A (en) * 2020-07-03 2020-10-16 常州东晟合众节能科技有限公司 Embedded program upgrading method of multi-node equipment based on bus
CN112910714A (en) * 2021-03-05 2021-06-04 中国电子科技集团公司第三十八研究所 Remote firmware upgrading method for Internet of things terminal equipment with master-slave machine structure

Similar Documents

Publication Publication Date Title
CN103077058B (en) Method and device for installing application program
CN105930236A (en) Application program version returning method based on BMS Bootloaderupgrade
CN100340982C (en) After-error recovery method of transmission equipment card software on-line update
CN101950254B (en) Software updating method and system thereof
CN112667266B (en) Firmware upgrading method, device, equipment and storage medium
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN112328440B (en) Hard disk physical position determining method and device
CN101453374A (en) On-line updating method and system for network appliance
CN108345464A (en) A kind of the startup method and Android vehicle device of Android system
CN113703803B (en) FPGA-based remote upgrading system, method and medium
CN104615472A (en) Method for preventing BIOS+ME FW online refresh failure
CN113778739A (en) System repair method, system, equipment and storage medium of all-in-one machine
CN113891305A (en) Remote firmware upgrading system and method based on master-slave machine structure
CN109992280A (en) A kind of method, terminal installation and the storage device of embedded software upgrading
CN107436778A (en) A kind of high reliability upgrade method of unmanned systems
CN113377425B (en) BMC firmware generation method and device, BMC starting method and device and storage medium
CN107438011B (en) Method and device for determining configuration information, network manager and system
CN103235728A (en) Mounting method and device for presetting third party appliances in Android terminal
CN115220766A (en) Module upgrading method of energy controller
CN100394384C (en) Method and system for on-line updating of network
CN103488503B (en) Oftware updating method and device
CN112783535A (en) Firmware upgrading method, embedded device and storage medium
CN114625388A (en) Internet of things MCU (microprogrammed control Unit) air firmware upgrading system and method
CN217279554U (en) Vehicle-mounted electric control equipment
CN116009925B (en) Sub-battery management unit program refreshing method of battery management 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