Nothing Special   »   [go: up one dir, main page]

CN114666217B - One-key upgrading method and system based on easy mesh - Google Patents

One-key upgrading method and system based on easy mesh Download PDF

Info

Publication number
CN114666217B
CN114666217B CN202210268593.4A CN202210268593A CN114666217B CN 114666217 B CN114666217 B CN 114666217B CN 202210268593 A CN202210268593 A CN 202210268593A CN 114666217 B CN114666217 B CN 114666217B
Authority
CN
China
Prior art keywords
upgrade
module
satellite
sending
upgrading
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.)
Active
Application number
CN202210268593.4A
Other languages
Chinese (zh)
Other versions
CN114666217A (en
Inventor
彭慧萍
刘刻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tianbei Iot Technology Co ltd
Original Assignee
Shenzhen Tianbei Iot 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 Shenzhen Tianbei Iot Technology Co ltd filed Critical Shenzhen Tianbei Iot Technology Co ltd
Priority to CN202210268593.4A priority Critical patent/CN114666217B/en
Publication of CN114666217A publication Critical patent/CN114666217A/en
Application granted granted Critical
Publication of CN114666217B publication Critical patent/CN114666217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9084Reactions to storage capacity overflow
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Radio Relay Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the technical field of mesh router systems and firmware upgrading operation, solves the problems of complex and time-consuming upgrading operation at present, and particularly relates to a one-key upgrading method based on easy mesh, which comprises the following steps: networking with an upper router by adopting an easy mesh protocol to form a tree topology graph; calling script information after successful networking and sending self information to a main router; receiving information of a download upgrading packet sent by a main router, immediately sending a response message of the received download upgrading packet to the main router, and executing the operation of downloading the upgrading packet; and checking whether the system version is consistent with the upgrade version, if not, sending a downloading completion response message, otherwise, sending a response message which does not need to be upgraded. The application adopts the easy mesh protocol to improve the upgrading efficiency, has simple and convenient operation, is convenient for a plurality of devices to simultaneously and uniformly upgrade, can automatically networking after the upgrade is finished, does not change the topological graph, and enhances the stability.

Description

One-key upgrading method and system based on easy mesh
Technical Field
The application relates to the technical field of mesh router systems and firmware upgrading operation, in particular to a one-key upgrading method and system based on easy mesh.
Background
A router is a hardware device that connects two or more networks, acting as a gateway between networks, and is a dedicated intelligent network device that reads the address in each packet and then decides how to transmit. The router adopting the mesh technology generates a mesh network, and different access points of different devices in the mesh network can perform hybrid networking in star, tree, serial connection, bus and other modes, so that the mesh network has the advantages of enabling the devices to automatically find the best device in the range and performing intelligent switching.
In order to provide a better use experience for users or better embody manufacturer culture, the software in the router is updated, because the new software version often has various changes such as repairing the BUG, adding new functions, and updating new UI, and thus the router system needs to be upgraded.
At present, most of the upgrading methods of the router system are completed by uploading a firmware upgrading packet through a web page or downloading the firmware upgrading packet from a server to the router and then erasing flash, which is feasible for only one device, however, when a plurality of network devices exist in a home or office environment, one device is required to log in a web management system to perform one operation, the operation is complex and time-consuming, and meanwhile, the problem of network failure again occurs in a network which is successfully networked, so that the use requirements of people in life and work cannot be met.
Disclosure of Invention
Aiming at the defects of the prior art, the application provides a one-key upgrading method and a one-key upgrading system based on easy mesh, which solve the problems that the operation is complex and the time is very consumed in the upgrading process of a router system, and the network which is successfully networked again fails, achieve the purposes that a plurality of devices can be simultaneously and uniformly upgraded, can automatically network after the upgrading is finished, do not change a topological diagram, and enhance the stability.
In order to solve the technical problems, the application provides a technical scheme, namely an easy-based one-key upgrading method, which comprises the following steps:
receiving self information sent by satellite equipment which is successful in networking;
judging whether the size of the upgrade package is larger than the available buffer size of the system, if so, interrupting the upgrade operation, returning to upgrade failure, if so, downloading the upgrade package to a buffer area, judging whether the upgrade package is correct, if so, interrupting the upgrade operation, returning to upgrade failure, and if so, carrying out the next step;
checking whether the version of the online satellite equipment to be upgraded is consistent with the version of the current equipment, if not, adding the version of the online satellite equipment to an upgrade queue, and if so, removing the version of the online satellite equipment;
transmitting a message for downloading the upgrade package to the satellite equipment in the upgrade queue;
receiving response messages sent by the satellite equipment, and removing the satellite equipment which does not send the response messages and sends the response messages which do not need to be updated from an upgrading queue after the preset waiting time is over;
calculating the ratio of the number of received response messages to be upgraded to the number of sent downloaded upgrade package messages, if the ratio is lower than a preset value, interrupting the upgrade operation, waiting for the next upgrade operation to trigger, and if the ratio is higher than the preset value, performing the next step;
transmitting upgrade starting information to satellite equipment in an upgrade queue;
after receiving the response messages of all the satellite devices in the upgrade queue, the device starts to execute upgrade operation.
Preferably, the specific process of judging whether the upgrade package is correct is as follows:
checking the size and format of the upgrade package;
decompressing the upgrade package through a decryption script, and extracting segmented file information and encrypted data from the upgrade package;
and (3) encrypting the segmented file information by using a symmetric encryption algorithm, comparing the new encrypted data with the encrypted data in the decompressed file, and if any segment does not pass, indicating that the upgrade package is wrong.
Preferably, the symmetric encryption algorithm is specifically openSSL aes-256-cbc.
Preferably, the cloud server is automatically connected before receiving the self information sent by the satellite equipment which is successfully networked.
In order to solve the technical problems, the application provides another technical scheme: an easy-based one-key upgrade method comprises the following steps:
networking with an upper router by adopting an easy mesh protocol to form a tree topology graph;
calling script information after successful networking and sending self information to a main router;
receiving information of a download upgrading packet sent by a main router, immediately sending a response message of the received download upgrading packet to the main router, and executing the operation of downloading the upgrading packet;
checking whether the system version is consistent with the upgrade version, if not, sending a downloading completion response message, and if so, sending a response message which does not need to be upgraded;
and after receiving the autonomous upgrade task message sent by the main router, checking the upgrade package again, after checking, sending a response message to the main router, and after the preset dormancy time is finished, starting to execute upgrade operation.
Preferably, the self information includes: MAC address, IP address, and software version.
The application provides a technical scheme that: an easymesh-based one-touch upgrade system comprising:
the first receiving module is used for receiving self information sent by the satellite equipment which is successfully networked;
the judging module is used for judging whether the size of the upgrade package is larger than the available cache size of the system or not and whether the upgrade package is correct or not;
the first verification module is used for judging whether the version of the online satellite equipment to be upgraded is consistent with the version of the current equipment;
the first sending module is used for sending a message for downloading the upgrade package to the satellite equipment in the upgrade queue;
the second receiving module is used for receiving the response message sent by the satellite equipment;
the calculating module is used for calculating the ratio of the number of the received response messages to the number of the sent download upgrading packet messages;
the second sending module is used for sending upgrading starting information to the satellite equipment in the upgrading queue;
and the third receiving module is used for receiving response messages sent by all the satellite devices in the upgrading queue.
The application provides another technical scheme that: an easymesh-based one-touch upgrade system comprising:
the networking module is used for networking with an upper router by adopting an easy mesh protocol to form a tree topology graph;
the third sending module is used for calling script information and sending self information to the main router after networking is successful;
the first communication module is used for receiving the information of the download upgrading packet sent by the main router and immediately sending a response message of the received download upgrading packet message to the main router;
the second checking module is used for checking whether the system version and the upgrade version are consistent or not;
and the second communication module is used for checking the upgrade package again after receiving the autonomous upgrade task message sent by the main router, and sending a response message to the main router after checking.
The application provides another technical scheme that: the one-key upgrading device based on the easy comprises a satellite device A, a satellite device B and a main router, wherein the satellite device A and the satellite device B are automatically networked with the main router through an easy protocol, and the main router is automatically connected with a cloud server through a tcp protocol;
the satellite equipment A and the satellite equipment B are used for sending own information and executing an upgrade program;
the main router is used for downloading the upgrade package, sending the upgrade instruction and executing the upgrade program.
By means of the technical scheme, the application provides a one-key upgrading method and system based on easy mesh, which at least have the following beneficial effects:
1. according to the upgrading method provided by the application, the upgrading message is issued by adopting the easy protocol, so that the message is quick and reachable, unified management can be performed, the upgrading cost is reduced, and the experience in the use process is improved.
2. According to the upgrading method provided by the application, the plurality of devices are simultaneously and uniformly upgraded by adopting the easy protocol for automatic networking, so that the version uniformity is realized, the operation is simple and convenient, the later maintenance and upgrading are convenient, and the labor intensity is reduced.
3. The upgrading method provided by the application can automatically networking after upgrading, does not change the topological graph, enhances the stability, has higher social value and development prospect, and is easy to popularize and apply in a large range.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a flowchart of a first embodiment of an easy-based one-key upgrade method according to the present application;
fig. 2 is a block diagram of a first embodiment of an easy-based one-key upgrade system according to the present application;
fig. 3 is a flowchart of a second embodiment of an easy-based one-key upgrade method according to the present application;
fig. 4 is a structural view of a second embodiment of an easy-based one-touch upgrade system according to the present application;
fig. 5 is a schematic diagram of an easy-based one-key upgrade method according to the present application.
In the figure: 101. a first receiving module; 102. a judging module; 103. a first verification module; 104. a first transmitting module; 105. a second receiving module; 106. a computing module; 107. a second transmitting module; 108. a third receiving module; 201. a networking module; 202. a third transmission module; 203. a first communication module; 204. a second checking module; 205. and a second communication module.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description. Therefore, the realization process of how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in a method of implementing an embodiment described below may be implemented by a program to instruct related hardware, and thus the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Example 1
Referring to fig. 1 and 2, the one-touch upgrade method based on easy in this embodiment includes the following steps:
s11, automatically connecting a cloud server and receiving information about the MAC address, the IP address and the software version sent by satellite equipment which is successful in networking;
s12, judging whether the size of an upgrade package is larger than the available cache size of the system, if so, interrupting the upgrade operation, returning to upgrade failure, if so, downloading the upgrade package to a cache area, then checking the size of the upgrade package, determining whether the format of the upgrade package is correct after being smaller than the available cache of the system, if the format of the upgrade package is bin, decompressing the upgrade package, extracting segmented file information and encrypted data from the upgrade package, encrypting the segmented file information through an openSSL aes-256-cbc symmetric encryption algorithm, comparing the new encrypted data with the encrypted data in the decompressed file, if any segment does not pass, interrupting the upgrade operation, returning to upgrade failure, otherwise, correcting the upgrade package and performing the next step;
s13, checking whether the version of the online satellite equipment to be upgraded is consistent with the version of the current equipment, if not, adding the version of the online satellite equipment to an upgrade queue, and if so, removing the version of the online satellite equipment;
s14, sending a message for downloading the upgrade package to the satellite equipment in the upgrade queue;
s15, receiving response messages sent by the satellite equipment, and removing the satellite equipment which does not send the response messages and sends the response messages which do not need to be upgraded from an upgrade queue after the preset waiting time is 30 s;
s16, calculating the ratio of the number of received response messages to be upgraded to the number of sent downloaded upgrade package messages, if the ratio is lower than 90%, interrupting the upgrade operation, waiting for the next upgrade operation to trigger, and if the ratio is higher than 90%, performing the next step;
s17, sending upgrade starting information to satellite equipment in an upgrade queue;
s18, after receiving the response messages of all the satellite devices in the upgrading queue, the system starts to execute upgrading operation.
The application provides a technical scheme that: an easymesh-based one-touch upgrade system comprising:
the first receiving module 101 is configured to receive self information sent by a satellite device that is successfully networked;
the judging module 102 is used for judging whether the size of the upgrade package is larger than the available cache size of the system or not and whether the upgrade package is correct or not;
the first verification module 103, the first verification module 103 is used for judging whether the version of the online satellite equipment to be upgraded is consistent with the version of the current equipment;
the first sending module 104 is configured to send a message for downloading the upgrade package to the satellite device in the upgrade queue, where the first sending module 104 is configured to send the message for downloading the upgrade package to the satellite device in the upgrade queue;
the second receiving module 105 is configured to receive a response message sent by the satellite device by the second receiving module 105;
the calculating module 106 is used for calculating the ratio of the number of the received response messages to the number of the sent download upgrading packet messages;
the second sending module 107 is configured to send upgrade start information to the satellite devices in the upgrade queue by using the second sending module 107;
the third receiving module 108, the third receiving module 108 is configured to receive response messages sent by all satellite devices in the upgrade queue.
The application provides another technical scheme that: the one-key upgrading device based on the easy comprises a satellite device A, a satellite device B and a main router, wherein the satellite device A and the satellite device B are automatically networked with the main router through an easy protocol, and the main router is automatically connected with a cloud server through a tcp protocol;
the satellite equipment A and the satellite equipment B are used for sending own information and executing an upgrade program;
the main router is used for downloading the upgrade package, sending the upgrade instruction and executing the upgrade program.
In the embodiment, the upgrade message is issued by adopting the easy protocol, so that the message is quick and reachable, unified management can be performed, the upgrade cost is reduced, and the experience in the use process is improved.
Example two
As shown in fig. 3 and 4, the one-key upgrade method based on easy mesh of the present embodiment includes the following steps:
s21, networking with an upper router by adopting an easy protocol to form a tree topology graph;
s22, calling script information after successful networking and reporting the information about the MAC address, the IP address and the software version of the script information to the main router;
s23, receiving information of the downloaded upgrade package sent by the main router, immediately sending response information of the received downloaded upgrade package information to the main router, and executing the operation of downloading the upgrade package;
s24, checking whether the system version is consistent with the upgrade version, if not, sending a downloading completion response message, and if so, sending a response message which does not need upgrade;
s25, checking the upgrade package again after receiving the autonomous upgrade task message sent by the main router, sending a response message to the main router after checking, and starting to execute upgrade operation after the preset sleep time is 3 s.
The application provides a technical scheme that: an easymesh-based one-touch upgrade system comprising:
the networking module 201, the networking module 201 is used for networking with an upper router by adopting an easymesh protocol to form a tree topology graph;
the third sending module 202 is used for calling script information and sending self information to the main router after the networking is successful;
the first communication module 203, the first communication module 203 is configured to receive information of the download upgrade package sent by the master router and immediately send a response message of the received download upgrade package message to the master router;
the second checking module 204, the second checking module 204 is used for checking whether the system version and the upgrade version are consistent;
and the second communication module 205 is configured to check the upgrade package again after receiving the autonomous upgrade task message sent by the master router, and send a response message to the master router after the verification is completed.
The application provides another technical scheme that: the one-key upgrading device based on the easy comprises a satellite device A, a satellite device B and a main router, wherein the satellite device A and the satellite device B are automatically networked with the main router through an easy protocol, and the main router is automatically connected with a cloud server through a tcp protocol;
the satellite equipment A and the satellite equipment B are used for sending own information and executing an upgrade program;
the main router is used for downloading the upgrade package, sending the upgrade instruction and executing the upgrade program.
In the embodiment, the tree topology graph is formed by adopting the easylmesh protocol to automatically networking, so that a plurality of devices are simultaneously and uniformly upgraded, version uniformity is realized, the operation is simple and convenient, the later maintenance and upgrading are convenient, and the labor intensity is reduced.
In the embodiment provided by the application, as shown in fig. 5, before triggering the upgrade, the upgrade package which can be identified by the equipment and has security check is manufactured by adopting an openSSL aes-256-cbc symmetric encryption algorithm to carry out the segment encryption, and the upgrade package is uploaded to the cloud server; in addition, the satellite equipment comprises satellite equipment A and satellite equipment B, and the whole one-key upgrading method based on the easy comprises the following specific processes:
step 1: after successful networking, the satellite equipment A calls a/usr/libexec/controller_found script and synchronizes related information such as an own MAC address, an IP address, a software version and the like to a main router;
step 2: the satellite equipment B performs networking through an easy mesh protocol, and after the networking is successful, invokes/usr/libexec/controller_found script to synchronize related information such as an own MAC address, an IP address, a software version and the like to the main router;
step 3: the satellite equipment B is disconnected, and special treatment is needed to be carried out on the disconnected equipment in the upgrading strategy, and the step 10 is specifically seen;
step 4: triggering one-key upgrade at a web end of a main router, and simultaneously, automatically connecting the main router with a cloud server through a tcp protocol;
step 5: after triggering the upgrade, the main router judges whether the size of the upgrade package is larger than the available buffer size of the system, if so, the upgrade operation is interrupted, the upgrade failure is returned, if so, the upgrade package is started to be downloaded to the buffer area, and if so, the upgrade package is displayed to have sufficient buffer space;
step 6: checking the size of an upgrade package, checking whether the format of the upgrade package is correct after the upgrade package is smaller than the available cache of a system, if the format of the upgrade package is bin, decompressing the upgrade package by a decryption script, extracting segmented file information and encrypted data from the upgrade package, encrypting the segmented file information by an openSSL ae-256-cbc symmetric encryption algorithm, comparing the new encrypted data with the encrypted data in the decompressed file, if any segment does not pass, indicating that the upgrade package is wrong, interrupting the upgrade operation, returning to upgrade failure, otherwise, the upgrade package is correct and performing the next step;
step 7: the main router checks whether the version of the online satellite equipment to be upgraded is consistent with the version of the current equipment, if not, the online satellite equipment is added into an upgrading queue, and if so, the online satellite equipment is removed; transmitting a message for downloading the upgrade package to the satellite equipment in the upgrade queue through the message queue;
step 8: the satellite equipment A immediately replies a response message to the main router after receiving the message, which indicates that the downloading task is received and starts to execute the downloading operation;
step 9: after receiving the download message, the satellite equipment B equipment drops the line at the moment and cannot reply the response message to the main route;
step 10: the main router confirms that the satellite equipment B has no response message through overtime, and if the satellite equipment B is judged to have been disconnected at the moment, the satellite equipment B is deleted from the upgrading queue;
step 11: after the satellite equipment A downloads the upgrade package, in order to ensure the reliability of system version verification, the satellite equipment A compares the system version again, if the system version is inconsistent, a response message is returned to the main router after the downloading is completed, and the main router adds the satellite equipment A into an upgrade queue which needs immediate upgrade; if the two types of the satellite equipment are consistent, a response message is returned to the main router to tell the main router that the satellite equipment A does not need to be upgraded;
step 12: after the main router sends the message for downloading the upgrade package, the number of response messages required to be upgraded of the satellite equipment is counted after the dormancy waits for 30 seconds, the proportion value of the response messages required to be upgraded, which are received by the main router, divided by the number of the equipment transmitted by the main router is calculated, if the proportion value is lower than 90%, the upgrade operation is interrupted, the upgrade is not performed any more, the next upgrade operation trigger is waited, and the stability of the network topology diagram is ensured; if the ratio value is higher than 90%, the next step is carried out;
step 13: the main router informs the satellite equipment A in the upgrade queue to start upgrade;
step 14: after receiving the information, the satellite equipment A starts to check the packet again, after the checking is completed, the information is responded to the main router, and the upgrade operation is executed after the satellite equipment A sleeps for 3 seconds, so that all the satellite equipment A receives the instruction and performs the upgrade operation at the same time;
step 14: after receiving the response message of starting upgrading of all satellite devices in the upgrading queue, the main router starts to execute upgrading operation.
The one-key upgrading method provided by the application has the advantages that the upgrading efficiency is improved by adopting the easy protocol, the operation is simple and convenient, a plurality of devices can be simultaneously and uniformly upgraded, in addition, the network can be automatically built after the upgrading is finished, the topology diagram can not be changed, the stability is enhanced, the social value and the development prospect are higher, and the large-scale popularization and application are easy.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. For each of the above embodiments, since it is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description of the method embodiment for relevant points.
The foregoing embodiments have been presented in a detail description of the application, and are presented herein with a particular application to the understanding of the principles and embodiments of the application, the foregoing embodiments being merely intended to facilitate an understanding of the method of the application and its core concepts; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (6)

1. The one-key upgrading method based on the easy is characterized by comprising the following steps of:
networking with an upper router by adopting an easy mesh protocol to form a tree topology graph;
calling script information after successful networking and sending self information to a main router;
receiving information of a download upgrading packet sent by a main router, immediately sending a response message of the received download upgrading packet to the main router, and executing the operation of downloading the upgrading packet;
checking whether the system version is consistent with the upgrade version, if not, sending a downloading completion response message, and if so, sending a response message which does not need to be upgraded;
after receiving the autonomous upgrade task message sent by the main router, checking the upgrade package again, after checking, sending a response message to the main router, and after the preset dormancy time is finished, starting to execute upgrade operation;
the one-key upgrading method based on the easy comprises the following steps:
automatically connecting with a cloud server by adopting a tcp protocol, wherein an upgrade package is stored in the cloud server;
receiving self information sent by satellite equipment which is successful in networking;
judging whether the size of the upgrade package is larger than the available buffer size of the system, if so, interrupting the upgrade operation, returning to upgrade failure, if so, downloading the upgrade package to a buffer area, judging whether the upgrade package is correct, if so, interrupting the upgrade operation, returning to upgrade failure, and if so, carrying out the next step;
checking whether the version of the online satellite equipment to be upgraded is consistent with the version of the current equipment, if not, adding the version of the online satellite equipment to an upgrade queue, and if so, removing the version of the online satellite equipment;
transmitting a message for downloading the upgrade package to the satellite equipment in the upgrade queue;
receiving response messages sent by the satellite equipment, and removing the satellite equipment which does not send the response messages and sends the response messages which do not need to be updated from an upgrading queue after the preset waiting time is over;
calculating the ratio of the number of received response messages to be upgraded to the number of sent downloaded upgrade package messages, if the ratio is lower than a preset value, interrupting the upgrade operation, waiting for the next upgrade operation to trigger, and if the ratio is higher than the preset value, performing the next step;
transmitting upgrade starting information to satellite equipment in an upgrade queue;
after receiving the response messages of all the satellite devices in the upgrade queue, the device starts to execute upgrade operation.
2. The easy mesh-based one-touch upgrade method according to claim 1, wherein the self information includes: MAC address, IP address, and software version.
3. The one-key upgrade method based on easy mesh according to claim 1, wherein the specific process of judging whether the upgrade package is correct is as follows:
checking the size and format of the upgrade package;
decompressing the upgrade package through a decryption script, and extracting segmented file information and encrypted data from the upgrade package;
and (3) encrypting the segmented file information by adopting a symmetric encryption algorithm, comparing the new encrypted data with the encrypted data in the decompressed file, and if any segment does not pass, indicating that the upgrade package is wrong.
4. The easy-based one-key upgrade method according to claim 3, wherein the symmetric encryption algorithm is openSSL aes-256-cbc.
5. One-key upgrade system based on easymesh, characterized by comprising:
the first receiving module (101) is used for receiving self information sent by satellite equipment which is successfully networked;
the judging module (102), the said judging module (102) is used for judging whether the size of the upgrade patch is greater than the size of the available buffer of the system and whether the upgrade patch is correct;
the first verification module (103) is used for judging whether the version of the online satellite equipment to be upgraded is consistent with the version of the current equipment or not;
the first sending module (104) is used for sending a message for downloading the upgrade package to the satellite equipment in the upgrade queue;
a second receiving module (105), where the second receiving module (105) is configured to receive a response message sent by the satellite device;
the calculating module (106) is used for calculating the ratio of the number of the received response messages to the number of the sent downloaded upgrade package messages, interrupting the upgrade operation if the ratio is lower than a preset value, waiting for the next upgrade operation to be triggered, and carrying out the next step if the ratio is higher than the preset value;
a second transmitting module (107), where the second transmitting module (107) is configured to transmit upgrade start information to the satellite devices in the upgrade queue;
the third receiving module (108) is used for receiving response messages sent by all satellite devices in the upgrading queue;
one-key upgrading system based on easy mesh still includes:
the networking module (201), the said networking module (201) is used for adopting the easy mesh protocol to carry on the networking with the upper-layer router and form the tree topology map;
the third sending module (202) is used for calling script information and sending own information to the main router after networking is successful;
the first communication module (203) is used for receiving the information of downloading the upgrade package sent by the main router and immediately sending a response message of receiving the information of downloading the upgrade package to the main router;
a second checking module (204), wherein the second checking module (204) is used for checking whether the own system version is consistent with the upgrade version;
and the second communication module (205) is used for checking the upgrade package again after receiving the autonomous upgrade task message sent by the main router, and sending a response message to the main router after checking.
6. The one-key upgrading device based on the easy is characterized by comprising a satellite device A, a satellite device B and a main router, wherein the satellite device A and the satellite device B are automatically networked with the main router through an easy protocol, and the main router is automatically connected with a cloud server through a tcp protocol;
the satellite device a and the satellite device B and the main router are configured to implement the easy-based one-touch upgrade method according to any one of claims 1-4.
CN202210268593.4A 2022-03-18 2022-03-18 One-key upgrading method and system based on easy mesh Active CN114666217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210268593.4A CN114666217B (en) 2022-03-18 2022-03-18 One-key upgrading method and system based on easy mesh

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210268593.4A CN114666217B (en) 2022-03-18 2022-03-18 One-key upgrading method and system based on easy mesh

Publications (2)

Publication Number Publication Date
CN114666217A CN114666217A (en) 2022-06-24
CN114666217B true CN114666217B (en) 2023-10-20

Family

ID=82029531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210268593.4A Active CN114666217B (en) 2022-03-18 2022-03-18 One-key upgrading method and system based on easy mesh

Country Status (1)

Country Link
CN (1) CN114666217B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111786893A (en) * 2020-07-14 2020-10-16 博为科技有限公司 method and device for synchronizing software versions of wireless routers in mesh networking
CN112559009A (en) * 2020-12-15 2021-03-26 深圳创维数字技术有限公司 Method, device and storage medium for synchronous upgrading under Mesh networking
CN112988198A (en) * 2021-04-15 2021-06-18 深圳市共进电子股份有限公司 mesh equipment multi-machine upgrading method and device and mesh equipment
CN113452782A (en) * 2021-06-28 2021-09-28 烽火通信科技股份有限公司 Upgrading method and device under mesh networking

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11330517B2 (en) * 2019-08-05 2022-05-10 Arris Enterprises Llc Utilizing network controller to manage association of wireless device to access point within wireless network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111786893A (en) * 2020-07-14 2020-10-16 博为科技有限公司 method and device for synchronizing software versions of wireless routers in mesh networking
CN112559009A (en) * 2020-12-15 2021-03-26 深圳创维数字技术有限公司 Method, device and storage medium for synchronous upgrading under Mesh networking
CN112988198A (en) * 2021-04-15 2021-06-18 深圳市共进电子股份有限公司 mesh equipment multi-machine upgrading method and device and mesh equipment
CN113452782A (en) * 2021-06-28 2021-09-28 烽火通信科技股份有限公司 Upgrading method and device under mesh networking

Also Published As

Publication number Publication date
CN114666217A (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CN111786893B (en) method and device for synchronizing software versions of wireless routers in mesh networking
CN102769603B (en) The method of a kind of data transmission, system and equipment
CN104679528B (en) The newer method and apparatus of application program remote
CN103906087A (en) Access point upgrading method, device and system
WO2012174799A1 (en) Method, server and system for downloading and installing upgrade package
CN104580085A (en) Business data updating method, system, client side and server
WO2006122486A1 (en) A method of updating and rolling back data of terminal device
CN111935267B (en) Industrial 5G rapid networking method and system
CN102957623A (en) Maintenance method and equipment of neighborhood of border gate protocol
CN103685530A (en) Automatic upgrade control method and system for WLAN current network APs
CN105450682A (en) Method, device, and system for data synchronous storage and synchronizing data to client
CN114185582A (en) Automobile software online upgrading system and method based on QUIC protocol
CN112764803A (en) Version upgrading method and device, storage medium and electronic device
CN107528788B (en) Method and device for realizing automatic stacking between network devices
CN114666217B (en) One-key upgrading method and system based on easy mesh
CN112243139B (en) Program distribution synchronization method and system of multimedia terminal
CN108512679B (en) Gateway equipment management method and device
CN104009961A (en) PPPoE session ID distribution method and equipment thereof
CN109714653B (en) Method for accelerating CTC OAM upgrading efficiency
CN113396600B (en) Information verification method, device, equipment and storage medium
CN116938712A (en) Device upgrade method, device upgrade apparatus, and computer-readable storage medium
CN113497720A (en) Firmware server, electric power internet of things proxy gateway and firmware remote upgrading method
CN107483224B (en) Wireless routing version upgrading method based on DR election
CN113721938A (en) Edge-edge cooperative task processing method, device and system suitable for power Internet of things
CN109218359A (en) A kind of method and server end of internet of things equipment software upgrading

Legal Events

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