CN111786893B - method and device for synchronizing software versions of wireless routers in mesh networking - Google Patents
method and device for synchronizing software versions of wireless routers in mesh networking Download PDFInfo
- Publication number
- CN111786893B CN111786893B CN202010671910.8A CN202010671910A CN111786893B CN 111786893 B CN111786893 B CN 111786893B CN 202010671910 A CN202010671910 A CN 202010671910A CN 111786893 B CN111786893 B CN 111786893B
- Authority
- CN
- China
- Prior art keywords
- router
- sub
- software
- main
- version
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/56—Routing software
- H04L45/563—Software download or update
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/08—Access point devices
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to the technical field of wireless router control, in particular to a method and a device for synchronizing software versions of wireless routers in mesh networking. The method comprises the following steps: receiving a broadcast message sent by a sub-router; judging whether the equipment model of the main router is consistent with that of the sub-router or not according to the broadcast message; if yes, judging whether the software version of the sub router is older than that of the main router; if yes, backing up the software of the main router into an update file; building an http server; uploading the updated file to an http server; and sending an upgrading instruction to the sub-router so that the sub-router downloads the updating file according to the upgrading instruction and updates the software. The invention can complete the software updating work of all the wireless routers only by updating the software version of the main router, thereby improving the synchronization efficiency of the software versions of the wireless routers in the mesh network.
Description
Technical Field
The invention relates to the technical field of wireless router control, in particular to a method and a device for synchronizing a wireless router software version in a mesh network.
Background
In recent years, with the rapid development of the internet and the internet of things, networks have become an indispensable part of the life of people. Due to the flexible and efficient characteristics, wireless network access is a main method for network access. However, the coverage area of the wireless network is limited, so that the development of the wireless network is limited to a certain extent, under the conditions of not adding wired infrastructure and expanding the cost, a plurality of wireless routers are subjected to wireless multi-hop networking, namely, a wireless mesh networking mesh technology, and under the condition of low cost, the wireless coverage area is greatly expanded, so that the wireless router has wide application space and good development prospect.
Under the wireless mesh networking, the mutual communication and cooperative work among a plurality of wireless routers become the key of stable application of the mesh network. The easy mesh protocol based on the wifi alliance can get through the automatic synchronization of the wireless access point information of each device in the mesh system, including the ssid, the password, the channel and the like. However, the firmware versions of the devices cannot be managed, and if the software versions need to be upgraded in the whole network, each device needs to be upgraded individually, which requires a large amount of work.
Therefore, how to improve the synchronization efficiency of the wireless router software version in the mesh networking is a technical problem which needs to be solved urgently at present.
Disclosure of Invention
The invention aims to provide a method and a device for synchronizing software versions of wireless routers in a mesh networking so as to improve the synchronization efficiency of the software versions of the wireless routers in the mesh networking.
The embodiment of the invention provides the following scheme:
in a first aspect, an embodiment of the present invention provides a method for synchronizing software versions of wireless routers in a mesh networking, where the method is applied to a master router, and the master router and a sub-router are configured to form a mesh network, where the method includes:
receiving a broadcast message sent by the sub-router; the broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router;
judging whether the equipment model of the main router is consistent with the equipment model of the sub router or not according to the broadcast message;
if yes, judging whether the software version of the sub router is older than that of the main router;
if yes, backing up the software of the main router into an update file;
building an http server;
uploading the update file to the http server;
sending an upgrading instruction to the sub-router so that the sub-router downloads the updating file according to the upgrading instruction and updates software; and the upgrading instruction comprises a downloading address of the updating file in the http server.
In a possible embodiment, before receiving the broadcast packet sent by the sub-router, the method further includes:
starting a main router demon process;
monitoring a UDP/TCP designated port by utilizing the demon process of the main router; wherein, the appointed port is used for receiving the broadcast message.
In a second aspect, an embodiment of the present invention provides a synchronization apparatus for a software version of a wireless router in a mesh networking, where the synchronization apparatus is applied to a master router, and the master router and a sub-router are configured to form a mesh network, and the apparatus includes:
a broadcast message receiving module, configured to receive a broadcast message sent by the sub-router; the broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router;
the first judging module is used for judging whether the equipment model of the main router is consistent with that of the sub-router according to the broadcast message;
a second judging module, configured to, when the device model of the main router is consistent with the device model of the sub router, judge whether the version of the software of the sub router is older than the version of the software of the main router;
an update file acquisition module, configured to backup the software of the main router as an update file when the version of the software of the sub router is older than the version of the software of the main router;
the building module is used for building an http server;
the uploading module is used for uploading the updated file to the http server;
the upgrading instruction sending module is used for sending upgrading instructions to the sub-routers so that the sub-routers download the updating files according to the upgrading instructions and update software; and the upgrading instruction comprises a downloading address of the updating file in the http server.
In a possible embodiment, the apparatus further comprises:
the first starting module is used for starting the demon process of the main router before the broadcast message receiving module works;
the monitoring module is used for monitoring a UDP/TCP specified port by utilizing the demon process of the main router; wherein, the appointed port is used for receiving the broadcast message.
In a third aspect, an embodiment of the present invention provides a method for synchronizing software versions of wireless routers in a mesh networking, where the method is applied to a sub-router, and the sub-router and a main router are configured to form a mesh network, and the method includes:
sending a broadcast message to the main router; the broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router;
receiving an upgrading instruction sent by the main router; wherein the upgrade instruction is generated by the main router when the main router assumes that the device model of the main router coincides with the device model of the sub router and the version of the software of the sub router is older than the version of the software of the main router; the upgrading instruction comprises a downloading address of the updating file in the http server; the update file is generated by the main router through software backup; the http server is constructed by the main router and used for storing the update file;
acquiring the update file according to the download address of the update file in the http server;
and updating the software of the sub-router according to the update file.
In a possible embodiment, before sending the broadcast packet to the master router, the method further includes:
starting a DHCP client to request an IP address from the main router;
and starting a demon process of the sub-router to establish communication connection with the main router.
In a fourth aspect, an embodiment of the present invention provides a synchronization apparatus for a software version of a wireless router in a mesh networking, where the synchronization apparatus is applied to a sub-router, the sub-router and a main router are configured into a mesh network, and the apparatus includes:
a broadcast message sending module, configured to send a broadcast message to the main router; the broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router;
the upgrading instruction receiving module is used for receiving the upgrading instruction sent by the main router; wherein the upgrade instruction is generated by the main router when the main router assumes that the device model of the main router coincides with the device model of the sub router and the version of the software of the sub router is older than the version of the software of the main router; the upgrading instruction comprises a downloading address of the updating file in the http server; the update file is generated by the main router through software backup; the http server is constructed by the main router and used for storing the update file;
the update file acquisition module is used for acquiring the update file according to the download address of the update file in the http server;
and the software updating module is used for updating the software of the sub-router according to the update file.
In a possible embodiment, the apparatus further comprises:
the second starting module is used for starting the DHCP client before the broadcast message sending module works and requesting an IP address to the main router;
and the second starting module is used for starting the demon process of the sub-router and establishing communication connection with the main router.
In a fifth aspect, an embodiment of the present invention provides a device for synchronizing software versions of wireless routers in a mesh networking, where the device includes:
a memory for storing a computer program;
a processor, configured to execute the computer program to implement the steps of the method for synchronizing the software versions of the wireless routers in the mesh networking according to any one of the first aspect and the third aspect.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the method for synchronizing software versions of wireless routers in a mesh networking described in any one of the first aspect and the third aspect.
Compared with the prior art, the invention has the following advantages and beneficial effects:
the main router judges whether the software version of the sub-router is old or not, and when the software version of the sub-router is old, the http server is used for backing up the software of the sub-router as an update file and sending the update file to the sub-router for software update, so that the software update work of all the wireless routers can be finished only by updating the software version of the main router when software synchronization is carried out, and the synchronization efficiency of the software versions of the wireless routers in mesh networking is improved.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings required to be used in the embodiments will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present specification, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a method for synchronizing software versions of wireless routers in a mesh networking according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a synchronization apparatus for a wireless router software version in a mesh networking according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for synchronizing software versions of wireless routers in a mesh networking according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a synchronization apparatus for a wireless router software version in a mesh networking according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying 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, rather than all embodiments, and all other embodiments obtained by those skilled in the art based on the embodiments of the present invention belong to the scope of protection of the embodiments of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a synchronization method for software versions of wireless routers in a mesh network according to an embodiment of the present invention, which is applied to a main router, where the main router and a sub-router are configured as a mesh network, and the method includes steps 11 to 17.
And step 11, receiving the broadcast message sent by the sub-router.
The broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router.
Specifically, a port is specified in the main router and is specially used for monitoring the broadcast messages sent by the sub-routers in the UDP/TCP protocol. The device model of the sub-router may be a device model name, a manufacturer name, a label, etc. The version information of the software of the sub-router may be information of a version number of the software, a compilation time of the software, and the like.
And step 12, judging whether the equipment model of the main router is consistent with that of the sub router according to the broadcast message.
Specifically, the main router acquires the device information of the sub-router according to the device model of the sub-router in the broadcast message, compares the device information with the device information of the main router, and can update the software of the sub-router by using the software of the main router only under the condition of consistency, so that the problem that the normal use of the router is influenced due to the software update fault caused by model difference is avoided.
And step 13, if the software version of the sub router is consistent with the software version of the main router, judging whether the software version of the sub router is older than the software version of the main router.
Specifically, the main router learns the version condition of the software of the sub-router according to the version information of the software of the sub-router in the broadcast message, and compares the version condition with the software version of the main router, thereby completing the judgment process of the step.
Specifically, if the version of the software of the sub-router is not older than the version of the software of the main router, the heartbeat maintenance process is directly entered.
And 14, if yes, backing up the software of the main router into an update file.
Specifically, the main router can back up the software as an update file through dump operation.
And step 15, setting up an http server.
Specifically, the http server is a server established by an http protocol, and stores a file in the server, and the client accesses the server by an http address and a port number, thereby realizing file sharing and downloading in the local area network.
And step 16, uploading the update file to the http server.
And step 17, sending an upgrading instruction to the sub-router so that the sub-router downloads the updating file according to the upgrading instruction and updates the software.
And the upgrading instruction comprises a downloading address of the updating file in the http server.
Specifically, the upgrading instruction includes an http download address corresponding to the update file, and the sub-router may download the update file according to the http download address to perform software update.
Specifically, after the sub-router completes software updating, the sub-router is restarted, mesh networking is performed again with the main router after restarting, and then the broadcast message is sent to the main router again for the main router to check the software version of the main router.
In a possible embodiment, in order to avoid the main router from missing the broadcast packet sent by the sub-router, the present invention further provides the following scheme:
before receiving the broadcast message sent by the sub-router, the method further includes steps 21 to 22.
Step 21, starting the demon process of the main router.
Specifically, the demon process is a server program that runs all the time, and is also called a daemon process, and generally runs in a system background, has no control terminal, does not interact with a foreground, runs after the system is started, and is finished when the system is closed. Therefore, the demon process is used for monitoring the broadcast message sent by the sub-router, the condition of missing connection can not occur, and the whole synchronization efficiency is improved.
And step 22, monitoring the designated port of the UDP/TCP by utilizing the demon process of the main router.
Wherein, the appointed port is used for receiving the broadcast message.
Based on the same inventive concept as the method, an embodiment of the present invention further provides a synchronization apparatus for a software version of a wireless router in a mesh network, as shown in fig. 2, which is a schematic structural diagram of the apparatus embodiment and is applied to a main router, where the main router and a sub-router are configured into a mesh network, and the apparatus includes:
a broadcast message receiving module 31, configured to receive a broadcast message sent by the sub-router; the broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router;
a first judging module 32, configured to judge, according to the broadcast packet, whether the device model of the main router is consistent with the device model of the sub-router;
a second judging module 33, configured to judge whether the version of the software of the sub-router is older than the version of the software of the main router when the device model of the main router is consistent with the device model of the sub-router;
an update file obtaining module 34, configured to backup the software of the main router as an update file when the version of the software of the sub router is older than the version of the software of the main router;
the building module 35 is used for building an http server;
an uploading module 36, configured to upload the update file to the http server;
an upgrade instruction sending module 37, configured to send an upgrade instruction to the sub-router, so that the sub-router downloads the update file according to the upgrade instruction, and performs software update; and the upgrading instruction comprises a downloading address of the updating file in the http server.
In a possible embodiment, the apparatus further comprises:
a first starting module, configured to start a demon process of the main router before the broadcast packet receiving module 31 works;
the monitoring module is used for monitoring a UDP/TCP specified port by utilizing the demon process of the main router; wherein, the appointed port is used for receiving the broadcast message.
Based on the same inventive concept as in the foregoing embodiment, an embodiment of the present invention further provides a synchronization method for a software version of a wireless router in a mesh networking, and fig. 3 is a flowchart of the synchronization method for the software version of the wireless router in the mesh networking provided in the embodiment of the present invention, which is applied to a sub-router, where the sub-router and a main router are configured into a mesh network, and the method includes steps 41 to 44.
Step 41, sending a broadcast message to the master router.
The broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router.
And 42, receiving an upgrading instruction sent by the master router.
Wherein the upgrade instruction is generated by the main router when the main router assumes that the device model of the main router coincides with the device model of the sub router and the version of the software of the sub router is older than the version of the software of the main router; the upgrading instruction comprises a downloading address of the updating file in the http server; the updating file is generated by the main router through software backup; the http server is constructed by the main router and is used for storing the update file.
And 43, acquiring the updated file according to the download address of the updated file in the http server.
And step 44, updating the software of the sub-router according to the update file.
In a possible embodiment, in order to improve the reliability of communication between the sub router and the main router, the present invention further provides the following scheme:
before sending the broadcast packet to the master router, the method further includes:
step 51, starting the DHCP client and requesting an IP address from the master router.
And step 52, starting the demon process of the sub router and establishing communication connection with the main router.
Based on the same inventive concept as the method, an embodiment of the present invention further provides a synchronization apparatus for a software version of a wireless router in a mesh networking, as shown in fig. 4, the synchronization apparatus is a schematic structural diagram of the apparatus embodiment, and is applied to a sub-router, the sub-router and a main router are configured into a mesh network, and the apparatus includes:
a broadcast message sending module 61, configured to send a broadcast message to the main router; the broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router;
an upgrade instruction receiving module 62, configured to receive an upgrade instruction sent by the main router; wherein the upgrade instruction is generated by the main router when the main router assumes that the device model of the main router coincides with the device model of the sub router and the version of the software of the sub router is older than the version of the software of the main router; the upgrading instruction comprises a downloading address of the updating file in the http server; the update file is generated by the main router through software backup; the http server is constructed by the main router and used for storing the update file;
an update file obtaining module 63, configured to obtain the update file according to a download address of the update file in the http server;
and a software updating module 64, configured to update the software of the sub-router according to the update file.
In a possible embodiment, the apparatus further comprises:
a second starting module, configured to start a DHCP client before the broadcast packet sending module 61 works, and request an IP address from the main router;
and the second starting module is used for starting the demon process of the sub router and establishing communication connection with the main router.
Based on the same inventive concept as that in the foregoing embodiments, an embodiment of the present invention further provides a synchronization apparatus for a software version of a wireless router in a mesh networking, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the foregoing methods when executing the program.
Based on the same inventive concept as in the previous embodiments, embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of any of the methods described above.
The technical scheme provided by the embodiment of the invention at least has the following technical effects or advantages:
the embodiment of the invention judges whether the software version of the sub-router is old or not by the main router, and when the software version of the sub-router is old, the http server is used for backing up the software of the sub-router into the update file and sending the update file to the sub-router for software update, so that when the software is synchronized, the software update work of all the wireless routers can be completed only by updating the software version of the main router, thereby improving the synchronization efficiency of the software versions of the wireless routers in the mesh networking.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (modules, systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (6)
1. A synchronization method of wireless router software version in mesh networking is applied to a main router, the main router and a sub-router are organized into a mesh network, the method comprises the following steps:
receiving a broadcast message sent by the sub-router; the broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router; before the receiving the broadcast packet sent by the child router, the method further includes:
starting a main router demon process;
monitoring a UDP/TCP designated port by utilizing the demon process of the main router; wherein, the appointed port is used for receiving the broadcast message;
judging whether the equipment model of the main router is consistent with the equipment model of the sub router or not according to the broadcast message;
if yes, judging whether the software version of the sub router is older than that of the main router;
if yes, backing up the software of the main router into an update file;
building an http server;
uploading the update file to the http server;
sending an upgrading instruction to the sub-router so that the sub-router downloads the updating file according to the upgrading instruction and updates software; the upgrading instruction comprises a downloading address of the updating file in the http server;
and if the version of the software of the sub router is not older than that of the software of the main router, directly entering a heartbeat maintenance flow.
2. A synchronization device of wireless router software version in mesh networking is applied to a main router which is organized with sub-routers as a mesh network, and the device comprises:
a broadcast message receiving module, configured to receive a broadcast message sent by the sub-router; the broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router;
the first starting module is used for starting the demon process of the main router before the broadcast message receiving module works;
the monitoring module is used for monitoring a UDP/TCP specified port by utilizing the demon process of the main router; wherein the designated port is used for receiving the broadcast message
The first judging module is used for judging whether the equipment model of the main router is consistent with that of the sub-router according to the broadcast message;
a second judging module, configured to judge whether the version of the software of the sub-router is older than the version of the software of the main router when the device model of the main router is consistent with the device model of the sub-router;
an update file acquisition module, configured to backup the software of the main router as an update file when the version of the software of the sub router is older than the version of the software of the main router; if the version of the software of the sub router is not older than that of the main router, directly entering a heartbeat maintenance flow;
the building module is used for building an http server;
the uploading module is used for uploading the updated file to the http server;
the upgrading instruction sending module is used for sending upgrading instructions to the sub-routers so that the sub-routers download the updating files according to the upgrading instructions and update software; and the upgrading instruction comprises a downloading address of the updating file in the http server.
3. A synchronization method of wireless router software version in mesh networking is characterized in that the synchronization method is applied to a sub-router which is built into a mesh network with a main router, and the method comprises the following steps:
sending a broadcast message to the main router; the broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router; before sending the broadcast packet to the master router, the method further includes:
starting a DHCP client to request an IP address from the main router;
starting a demon process of a router, and establishing communication connection with the main router;
receiving an upgrading instruction sent by the main router; wherein the upgrade instruction is generated by the main router when the main router assumes that the device model of the main router coincides with the device model of the sub router and the version of the software of the sub router is older than the version of the software of the main router; the upgrading instruction comprises a downloading address of the updating file in the http server; the updating file is generated by the main router through software backup; the http server is constructed by the main router and used for storing the update file;
acquiring the update file according to the download address of the update file in the http server;
updating the software of the sub-router according to the update file;
and if the version of the software of the sub router is not older than that of the software of the main router, directly entering a heartbeat maintenance flow.
4. A synchronization device of wireless router software version in mesh networking is characterized in that the synchronization device is applied to a sub-router which is established as a mesh network with a main router, and the device comprises:
a broadcast message sending module, configured to send a broadcast message to the main router; the broadcast message comprises the equipment model of the sub-router and the version information of the software of the sub-router;
the second starting module is used for starting the DHCP client before the broadcast message sending module works and requesting an IP address to the main router;
the second starting module is used for starting the demon process of the sub-router and establishing communication connection with the main router;
the upgrading instruction receiving module is used for receiving the upgrading instruction sent by the main router; wherein the upgrade instruction is generated by the main router when the main router recognizes that the device model of the main router is identical to the device model of the sub router and the version of the software of the sub router is older than the version of the software of the main router; the upgrading instruction comprises a downloading address of the updating file in the http server; the updating file is generated by the main router through software backup; the http server is constructed by the main router and used for storing the update file; if the version of the software of the sub router is not older than that of the main router, directly entering a heartbeat maintenance flow;
the update file acquisition module is used for acquiring the update file according to the download address of the update file in the http server;
and the software updating module is used for updating the software of the sub-router according to the update file.
5. A device for synchronizing software versions of wireless routers in a mesh network, comprising:
a memory for storing a computer program;
a processor for executing the computer program to carry out the steps of the method of claim 1 or 3.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of claim 1 or 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010671910.8A CN111786893B (en) | 2020-07-14 | 2020-07-14 | method and device for synchronizing software versions of wireless routers in mesh networking |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010671910.8A CN111786893B (en) | 2020-07-14 | 2020-07-14 | method and device for synchronizing software versions of wireless routers in mesh networking |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111786893A CN111786893A (en) | 2020-10-16 |
CN111786893B true CN111786893B (en) | 2022-08-30 |
Family
ID=72767179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010671910.8A Active CN111786893B (en) | 2020-07-14 | 2020-07-14 | method and device for synchronizing software versions of wireless routers in mesh networking |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111786893B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486521A (en) * | 2020-12-14 | 2021-03-12 | 深圳市国科亿道科技有限公司 | Firmware upgrading method and system based on local area network |
CN112929428A (en) * | 2021-01-27 | 2021-06-08 | 上海商米科技集团股份有限公司 | Batch upgrading method for cloud control equipment |
CN112532529B (en) * | 2021-02-09 | 2021-05-11 | 深圳市乙辰科技股份有限公司 | Mesh routing topology networking method and system |
CN113821241A (en) * | 2021-09-14 | 2021-12-21 | 博为科技有限公司 | Router software upgrading method and related equipment |
CN113872864B (en) * | 2021-09-26 | 2023-02-03 | 烽火通信科技股份有限公司 | Method and device for realizing sub-route web management under mesh networking mode |
CN114245319B (en) * | 2021-12-03 | 2023-06-23 | 南京矽力微电子技术有限公司 | Enhanced broadcast concurrent OTA firmware upgrading method based on Bluetooth Mesh |
CN114666217B (en) * | 2022-03-18 | 2023-10-20 | 深圳市天贝物联科技有限公司 | One-key upgrading method and system based on easy mesh |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105141463A (en) * | 2015-09-21 | 2015-12-09 | 上海斐讯数据通信技术有限公司 | Router remote upgrade system and method based on server strategy |
CN105187262A (en) * | 2015-10-27 | 2015-12-23 | 上海斐讯数据通信技术有限公司 | Router upgrading method and system |
CN110266701A (en) * | 2019-06-24 | 2019-09-20 | 博普乐科技(北京)有限公司 | Smart machine data transmission method, device, medium and electronic equipment |
CN110275787A (en) * | 2019-06-24 | 2019-09-24 | 博普乐科技(北京)有限公司 | Online platform data transmission method, device, medium and electronic equipment |
CN110297753A (en) * | 2018-03-23 | 2019-10-01 | 中兴通讯股份有限公司 | A kind of method and system for verifying software version |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7668173B2 (en) * | 2005-12-01 | 2010-02-23 | Azalea Networks | Method and system for an adaptive wireless routing protocol in a mesh network |
-
2020
- 2020-07-14 CN CN202010671910.8A patent/CN111786893B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105141463A (en) * | 2015-09-21 | 2015-12-09 | 上海斐讯数据通信技术有限公司 | Router remote upgrade system and method based on server strategy |
CN105187262A (en) * | 2015-10-27 | 2015-12-23 | 上海斐讯数据通信技术有限公司 | Router upgrading method and system |
CN110297753A (en) * | 2018-03-23 | 2019-10-01 | 中兴通讯股份有限公司 | A kind of method and system for verifying software version |
CN110266701A (en) * | 2019-06-24 | 2019-09-20 | 博普乐科技(北京)有限公司 | Smart machine data transmission method, device, medium and electronic equipment |
CN110275787A (en) * | 2019-06-24 | 2019-09-24 | 博普乐科技(北京)有限公司 | Online platform data transmission method, device, medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111786893A (en) | 2020-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111786893B (en) | method and device for synchronizing software versions of wireless routers in mesh networking | |
CN108023773B (en) | Method for realizing zero configuration online of network equipment and configuration server | |
CN111541564B (en) | Method for upgrading equipment firmware in Mesh network | |
CN107357571B (en) | Maintenance method and system for equipment component program | |
CN107547245B (en) | Version upgrading method and device | |
CN101860545A (en) | System and method for implementing automatic configuration of equipment | |
CN102136934A (en) | Method, device and network system for realizing remote upgrading of Zigbee equipment | |
CN106549789B (en) | Method and system for realizing server installation | |
CN103957117A (en) | System and method for achieving intelligent installation of network equipment | |
EP4092524B1 (en) | Ota differential upgrade method and system of master-slave architecture | |
CN113110864B (en) | Application program updating method and device and storage medium | |
WO2015143794A1 (en) | Creating and upgrading methods, server, terminal, upgrading system, and storage media | |
US10469620B2 (en) | Method for transferring a new software version to at least one electricity meter via a communication network | |
WO2012174799A1 (en) | Method, server and system for downloading and installing upgrade package | |
CN105072398B (en) | A kind of device updating method and device | |
CN105357048A (en) | Method and system for data synchronization of network equipment | |
CN107395385A (en) | Method for upgrading software and device | |
CN103685530A (en) | Automatic upgrade control method and system for WLAN current network APs | |
CN112202877B (en) | Gateway linkage method, gateway, cloud server and user terminal | |
CN108882277B (en) | Version upgrading method and device | |
WO2016026313A1 (en) | Method, device and system for implementing information self-registration, and computer storage medium | |
CN115357308A (en) | Docker-based edge Internet of things proxy device, system and application method | |
CN112737847A (en) | Node upgrading method and device, storage medium and electronic device | |
CN114840243A (en) | Operating system upgrading system of distributed edge node | |
WO2017124741A1 (en) | Method and device for synchronizing apparatus version |
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 |