CN112929428A - Batch upgrading method for cloud control equipment - Google Patents

Batch upgrading method for cloud control equipment Download PDF

Info

Publication number
CN112929428A
CN112929428A CN202110112855.3A CN202110112855A CN112929428A CN 112929428 A CN112929428 A CN 112929428A CN 202110112855 A CN202110112855 A CN 202110112855A CN 112929428 A CN112929428 A CN 112929428A
Authority
CN
China
Prior art keywords
upgrading
upgrade
cloud
judged
downloading
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
CN202110112855.3A
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.)
Shanghai Sunmi Technology Group Co Ltd
Shanghai Sunmi Technology Co Ltd
Shenzhen Michelangelo Technology Co Ltd
Original Assignee
Shanghai Sunmi Technology Group Co Ltd
Shenzhen Michelangelo 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 Shanghai Sunmi Technology Group Co Ltd, Shenzhen Michelangelo Technology Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN202110112855.3A priority Critical patent/CN112929428A/en
Publication of CN112929428A publication Critical patent/CN112929428A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • 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/10Protocols in which an application is distributed across nodes in the network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The invention discloses a method for upgrading cloud control equipment in batches, which comprises the following steps: s2, carrying out host confirmation flow; s3, performing a cloud upgrading process; and S4, synchronously upgrading the host machine and the sub machine equipment. According to the invention, the flow consumption, the cloud resource requirement and the total upgrading time are reduced, and the upgrading reliability is improved.

Description

Batch upgrading method for cloud control equipment
Technical Field
The invention relates to the technical field of cloud control, in particular to a method for upgrading cloud control equipment in batches.
Background
The wireless router in a business scene needs to be controlled by the cloud, and certainly, firmware upgrade is inevitably needed. In a general business scenario, a plurality of wireless routers often form a network at the same time for users to use, so that simultaneous upgrading of a large number of terminals is also a problem to be solved. At present, two cloud terminal upgrading schemes are provided, one is to sequentially execute downloading and upgrading according to an upgrading list, and the cloud terminal upgrading method has the advantages that the occupied bandwidth at any moment is limited, the upgrading time of a single cloud terminal is short, the influence on a network during upgrading is small, the total upgrading time is long, and when the upgrading quantity exceeds 100 cloud terminals, the time can become unacceptable; the other method is to download and upgrade concurrently according to an upgrade list, and has the advantages of short total time, greatly improved experience if the bandwidth is enough, large burst flow, occupation of a large amount of user bandwidth and server resources, increased risk of data transmission failure and upgrade failure, and influence on user experience.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a batch upgrading method for cloud control equipment, which reduces the flow consumption, the cloud resource requirement and the total upgrading time and improves the upgrading reliability. To achieve the above objects and other advantages in accordance with the present invention, there is provided a cloud control device batch upgrade method, including:
s1, issuing the upgraded firmware to a device in the same networking environment through a cloud end;
s2, carrying out host confirmation flow;
s3, performing a cloud upgrading process;
and S4, synchronously upgrading the host machine and the sub machine equipment.
Preferably, the step S2 further includes the steps of:
a1, powering on the equipment;
a2, the equipment sends local area network broadcast according to the identity;
a3, trying to receive a broadcast message;
a4, judging whether the receiving is overtime;
a5, when the receiving is judged not to be over time, further judging whether the mac address is smaller than the local computer;
and A6, when the mac address is judged to be smaller than the local machine, switching the host identity, removing the host mark, and returning to the step A2.
Preferably, when judging that the mac address is not smaller than the local address, the step a7 is performed: the source address of the received broadcast packet is added into the netlist, followed by step A8: and reporting to the cloud end, and returning to the step A2.
Preferably, when the received broadcast message is judged to be timed out, step A8 is performed.
Preferably, the step S3 further includes the steps of:
b1, uploading the file to be upgraded on the cloud;
b2, the cloud judges whether to issue an upgrade command according to the networking list;
b3, when judging that the upgrading command needs to be issued, the cloud end issues the upgrading command according to the networking list address sequence;
b4, receiving the download result;
b5, judging whether the downloading fails or overtime;
b6, receiving an upgrading result when judging that the downloading is successful or not overtime;
b7, further judging whether the upgrade reception is overtime;
b8, when judging that the upgrade combined search is not over time, further judging whether the upgrade fails;
b9, when the upgrade is judged to be successful, the upgrade is finished, and when the upgrade is judged to be failed, the step B2 is returned.
Preferably, when the cloud determines that the upgrade is not needed according to the networking list, the upgrade is ended, when it determines that the download fails or is overtime, the step B2 is returned, and when it determines that the upgrade reception is overtime, the step B2 is returned.
Preferably, the step S4 further includes the steps of:
c1, waiting for the cloud to issue the upgrade order, and circulating the step when the upgrade order is not received;
c2, when receiving the upgrade order, analyzing the upgrade message to prepare for starting downloading;
c3, downloading the upgrade file by the upgrade host;
c4, judging whether the downloading is successful;
c5, when the download is successful, checking the download file;
c6, judging whether the verification is successful;
c7, when the verification is judged to be successful, upgrading the host, starting the tftp service and broadcasting the address;
c8, synchronizing and upgrading the firmware of the sub-machine equipment;
c9, judging whether the child equipment is upgraded successfully;
c10, when the submachine equipment is judged to be successful, restarting the submachine and updating the equipment information;
c11, upgrading the host and restarting after upgrading;
c12, reporting the download or upgrade result, and returning to the step C1.
Preferably, the step C12 is performed when it is determined that the downloading of the upgrade file fails, the step C12 is performed when the verification of the downloading of the upgrade file is unsuccessful, and the step C12 is performed when it is determined that the upgrading of the slave device fails.
Compared with the prior art, the invention has the beneficial effects that: the cloud sends the upgrade firmware to one device in the same networking environment, so that the concurrent requirements of the cloud and the user side for a single network are reduced to the maximum extent, a large amount of flow consumed by downloading the upgrade firmware of the cloud and the user side is solved, and the upgrade speed and reliability are improved in a local concurrent upgrade mode.
Drawings
Fig. 1 is a flow chart of host validation of a method for batch upgrading of cloud control devices according to the present invention;
fig. 2 is a cloud upgrading processing flow chart of the cloud control device batch upgrading method according to the present invention;
fig. 3 is an upgrade processing flow chart of the batch upgrade method of the cloud control device according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 to 3, a method for upgrading cloud control devices in batches includes the following steps: s1, issuing the upgraded firmware to a device in the same networking environment through a cloud end;
s2, carrying out host confirmation flow;
s3, performing a cloud upgrading process;
and S4, synchronously upgrading the host machine and the sub machine equipment.
Further, the step S2 further includes the following steps:
a1, powering on the equipment;
a2, the equipment sends local area network broadcast according to the identity, the default condition is the host identity, and the identity mark in the broadcast message is set according to the identity;
a3, trying to receive a broadcast message;
a4, judging whether the receiving is overtime;
a5, when the receiving is judged not to be over time, the message is a networking network, and whether the mac address is smaller than the machine is further judged;
a6, when judging that the mac address is less than the local machine, it shows that there is a device more suitable as the host machine, switches the host identity, removes the host machine mark, and returns to step A2.
Further, when it is determined that the mac address is not smaller than the native machine, indicating that the native machine should be used as the upgrade host, step a7 is performed: the source address of the received broadcast packet is added into the netlist, followed by step A8: and reporting to the cloud end, and returning to the step A2.
Further, when it is determined that the received broadcast message is timed out, it indicates that only one device exists in the network, and then step A8 is performed.
Further, the step S3 further includes the following steps:
b1, uploading the file to be upgraded on the cloud;
b2, the cloud judges whether to issue an upgrade command according to the networking list;
b3, when judging that the upgrading command needs to be issued, the cloud end issues the upgrading command according to the networking list address sequence;
b4, receiving the download result;
b5, judging whether the downloading fails or overtime;
b6, receiving an upgrading result when judging that the downloading is successful or not overtime;
b7, further judging whether the upgrade reception is overtime;
b8, when judging that the upgrade combined search is not over time, further judging whether the upgrade fails;
b9, when the upgrade is judged to be successful, the upgrade is finished, and when the upgrade is judged to be failed, the step B2 is returned.
Further, when the cloud end judges that the upgrading is not needed according to the networking list, the upgrading is finished, when the downloading is judged to be failed or overtime is judged, the step B2 is returned, and when the upgrading receiving overtime is judged, the step B2 is returned.
Further, the step S4 further includes the following steps:
c1, waiting for the cloud to issue the upgrade order, and circulating the step when the upgrade order is not received;
c2, when receiving the upgrade order, analyzing the upgrade message, extracting the upgrade file address, the upgrade file check code and the upgrade version information, and preparing to start downloading;
c3, downloading the upgrade file by the upgrade host;
c4, judging whether the downloading is successful;
c5, when the download is successful, checking the download file;
c6, judging whether the verification is successful;
c7, when the verification is judged to be successful, upgrading the host, starting the tftp service and broadcasting the address, and starting to broadcast the service information and upgrade the firmware information;
c8, synchronizing and upgrading the firmware of the sub-equipment, wherein the sub-equipment receives the broadcast data, starts analyzing the service information and upgrading the firmware information, synchronously upgrades the firmware according to the information, and then starts upgrading;
c9, judging whether the child equipment is upgraded successfully;
c10, when the submachine equipment is judged to be successful, restarting the submachine, updating the equipment information, and broadcasting the equipment information in the networking after the restarting is finished;
c11, upgrading the host and restarting after upgrading;
c12, reporting the download or upgrade result, and returning to the step C1.
Further, when it is determined that the downloading of the upgrade file fails, the step C12 is performed, when it is determined that the downloading of the upgrade file is unsuccessful, the step C12 is performed, and when it is determined that the upgrading of the slave device fails, the step C12 is performed.
The number of devices and the scale of the processes described herein are intended to simplify the description of the invention, and applications, modifications and variations of the invention will be apparent to those skilled in the art.
While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.

Claims (8)

1. A cloud control equipment batch upgrading method is characterized by comprising the following steps:
s1, issuing the upgraded firmware to a device in the same networking environment through a cloud end;
s2, carrying out host confirmation flow;
s3, performing a cloud upgrading process;
and S4, synchronously upgrading the host machine and the sub machine equipment.
2. The method for upgrading the cloud control devices in batch according to claim 1, wherein the step S2 further includes the steps of:
a1, powering on the equipment;
a2, the equipment sends local area network broadcast according to the identity;
a3, trying to receive a broadcast message;
a4, judging whether the receiving is overtime;
a5, when the receiving is judged not to be over time, further judging whether the mac address is smaller than the local computer;
and A6, when the mac address is judged to be smaller than the local machine, switching the host identity, removing the host mark, and returning to the step A2.
3. The method for upgrading the cloud control devices in batches according to claim 2, wherein when the mac address is judged not to be smaller than the local machine, the method performs step a 7: the source address of the received broadcast packet is added into the netlist, followed by step A8: and reporting to the cloud end, and returning to the step A2.
4. The method for upgrading the cloud control equipment in batches according to claim 2 or 3, wherein when the received broadcast message is judged to be time out, the step A8 is performed.
5. The method for upgrading the cloud control devices in batch according to claim 1, wherein the step S3 further includes the steps of:
b1, uploading the file to be upgraded on the cloud;
b2, the cloud judges whether to issue an upgrade command according to the networking list;
b3, when judging that the upgrading command needs to be issued, the cloud end issues the upgrading command according to the networking list address sequence;
b4, receiving the download result;
b5, judging whether the downloading fails or overtime;
b6, receiving an upgrading result when judging that the downloading is successful or not overtime;
b7, further judging whether the upgrade reception is overtime;
b8, when judging that the upgrade combined search is not over time, further judging whether the upgrade fails;
b9, when the upgrade is judged to be successful, the upgrade is finished, and when the upgrade is judged to be failed, the step B2 is returned.
6. The method for upgrading the cloud control devices in batches according to claim 5, wherein when the cloud end judges that upgrading is not needed according to the networking list, the upgrading is ended, when the downloading is judged to fail or time out, the step B2 is returned, and when the upgrading is judged to receive time out, the step B2 is returned.
7. The method for upgrading the cloud control devices in batch according to claim 1, wherein the step S4 further includes the steps of:
c1, waiting for the cloud to issue the upgrade order, and circulating the step when the upgrade order is not received;
c2, when receiving the upgrade order, analyzing the upgrade message to prepare for starting downloading;
c3, downloading the upgrade file by the upgrade host;
c4, judging whether the downloading is successful;
c5, when the download is successful, checking the download file;
c6, judging whether the verification is successful;
c7, when the verification is judged to be successful, upgrading the host, starting the tftp service and broadcasting the address;
c8, synchronizing and upgrading the firmware of the sub-machine equipment;
c9, judging whether the child equipment is upgraded successfully;
c10, when the submachine equipment is judged to be successful, restarting the submachine and updating the equipment information;
c11, upgrading the host and restarting after upgrading;
c12, reporting the download or upgrade result, and returning to the step C1.
8. The method for upgrading the cloud control devices in batches as claimed in claim 7, wherein the step C12 is performed when it is determined that the downloading of the upgrade file fails, the step C12 is performed when the verification of the downloading of the upgrade file is unsuccessful, and the step C12 is performed when it is determined that the upgrading of the slave device fails.
CN202110112855.3A 2021-01-27 2021-01-27 Batch upgrading method for cloud control equipment Pending CN112929428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110112855.3A CN112929428A (en) 2021-01-27 2021-01-27 Batch upgrading method for cloud control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110112855.3A CN112929428A (en) 2021-01-27 2021-01-27 Batch upgrading method for cloud control equipment

Publications (1)

Publication Number Publication Date
CN112929428A true CN112929428A (en) 2021-06-08

Family

ID=76167133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110112855.3A Pending CN112929428A (en) 2021-01-27 2021-01-27 Batch upgrading method for cloud control equipment

Country Status (1)

Country Link
CN (1) CN112929428A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223256A (en) * 2011-07-26 2011-10-19 烽火通信科技股份有限公司 Method and system for multi-ONU (optical network unit) automatic upgrading in GPON (gigabit-capable passive optical network) access system
CN103685530A (en) * 2013-12-17 2014-03-26 京信通信系统(中国)有限公司 Automatic upgrade control method and system for WLAN current network APs
CN110708205A (en) * 2019-12-16 2020-01-17 蘑菇物联技术(深圳)有限公司 Method and system for performing FOTA (firmware over the air) on equipment through gateway
CN111786893A (en) * 2020-07-14 2020-10-16 博为科技有限公司 method and device for synchronizing software versions of wireless routers in mesh networking
CN111884888A (en) * 2020-07-27 2020-11-03 宁波奥克斯电气股份有限公司 Referee machine election method and device, intelligent equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223256A (en) * 2011-07-26 2011-10-19 烽火通信科技股份有限公司 Method and system for multi-ONU (optical network unit) automatic upgrading in GPON (gigabit-capable passive optical network) access system
CN103685530A (en) * 2013-12-17 2014-03-26 京信通信系统(中国)有限公司 Automatic upgrade control method and system for WLAN current network APs
CN110708205A (en) * 2019-12-16 2020-01-17 蘑菇物联技术(深圳)有限公司 Method and system for performing FOTA (firmware over the air) on equipment through gateway
CN111786893A (en) * 2020-07-14 2020-10-16 博为科技有限公司 method and device for synchronizing software versions of wireless routers in mesh networking
CN111884888A (en) * 2020-07-27 2020-11-03 宁波奥克斯电气股份有限公司 Referee machine election method and device, intelligent equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN101951400B (en) Software installation and upgrading method of application terminal in home network and system thereof
CN106792023B (en) Method and system for controlling smart television application by mobile terminal
CN106201586B (en) System upgrading method, terminal and system based on OTA
CN105721941A (en) Over-the-air upgrading control method and device of cloud television
CN106850241A (en) A kind of vehicle-mounted OBD terminals and its remote upgrade method
CN112615747B (en) Method and device for automatically deploying and configuring network equipment
CN111901142A (en) Firmware silent upgrading method and device for embedded equipment cluster
CN104615455A (en) Remote upgrading method and device for IPMC program of ATCA structure
CN113900682A (en) System software upgrading method, device, equipment and computer storage medium
CN111147314A (en) Switch upgrading method, device and storage medium
CN112383908A (en) Bluetooth device upgrading method and system
CN112637221B (en) Equipment control method and device
CN114221866A (en) Method, device and medium for upgrading terminal
CN113949700A (en) Cloud edge cooperation-based Docker application accelerated issuing method and system
CN113138788A (en) Air conditioner program upgrading method and air conditioner system
CN110602688B (en) Terminal software upgrading method and upgrading system
CN112929428A (en) Batch upgrading method for cloud control equipment
CN112769949A (en) File transmission method and device, electronic equipment and storage medium
CN110928566A (en) Software ota upgrading method based on multi-version hardware
CN115766439A (en) KVM device batch upgrading method and device and electronic device
CN115335803A (en) Equipment upgrading method, intelligent equipment and computer readable storage medium
CN104836708B (en) The binding method and device of information
CN113282321A (en) Firmware updating method and system for intelligent equipment
CN111541774A (en) Equipment upgrading method, device and system
CN113609178A (en) Data pushing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210608

RJ01 Rejection of invention patent application after publication