CN112737847A - Node upgrading method and device, storage medium and electronic device - Google Patents
Node upgrading method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN112737847A CN112737847A CN202011606094.9A CN202011606094A CN112737847A CN 112737847 A CN112737847 A CN 112737847A CN 202011606094 A CN202011606094 A CN 202011606094A CN 112737847 A CN112737847 A CN 112737847A
- Authority
- CN
- China
- Prior art keywords
- mesh network
- wireless mesh
- node
- version file
- network node
- 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.)
- Granted
Links
Images
Classifications
-
- 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
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/04—Network management architectures or arrangements
- H04L41/046—Network management architectures or arrangements comprising network management agents or mobile agents therefor
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a node upgrading method and device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring version file information of all nodes of the wireless mesh network stored in an agent node in the wireless mesh network and an upgrade version file received by the agent node from equipment; under the condition that the version of the version file information is lower than that of the upgraded version file, the upgraded version file is sequentially transmitted to all nodes of the wireless Mesh network through the proxy node according to the fission mode, so that all nodes carry out node upgrading according to the upgraded version file, namely, the nodes are upgraded according to the version file information of the nodes, the problems that in the related technology, the upgrading of a plurality of Mesh nodes is inconvenient, the efficiency is low and the like are solved, the upgrading efficiency of the nodes is improved, and the user experience is improved.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a node upgrade method and apparatus, a storage medium, and an electronic apparatus.
Background
The Mesh network can be a one-to-many network topology, and a certain node in the network can be connected with the mobile phone through a BLE gap access by being used as a proxy node so as to connect the mobile phone into the Mesh network; other nodes also have the capability of proxy nodes, and as long as a certain node is connected with the mobile phone through BLE, the node is the proxy node in the network. The topological structure is shown in figure 1:
and during OTA, the version file to be upgraded is uploaded to the cloud server, the version file is downloaded through the mobile phone, and the mobile phone is issued to the Mesh node through BLE connection, so that the Mesh node is upgraded.
In this case, the conventional method of the Mesh node OTA is as follows:
the Mesh node needing OTA upgrading has to establish BLE connection with the mobile phone, and the mobile phone issues an upgrading version file to the connected Mesh node so that the node can complete upgrading. Generally, a plurality of Mesh nodes exist in a Mesh network, and if all the Mesh nodes are upgraded by adopting the method, the method is inconvenient and low in efficiency.
Aiming at the problems of inconvenient upgrading of a plurality of Mesh nodes, low efficiency and the like in the related technology, an effective solution is not provided yet.
Disclosure of Invention
The embodiment of the invention provides a node upgrading method and device, a storage medium and an electronic device, and aims to at least solve the problems that in the related art, upgrading of a plurality of Mesh nodes is inconvenient, efficiency is low and the like.
According to an aspect of an embodiment of the present invention, a node upgrade method is provided, including: acquiring version file information of all nodes of a wireless mesh network stored in an agent node in the wireless mesh network and an upgrade version file received by the agent node from equipment; and under the condition that the version of the version file information is lower than that of the upgraded version file, sequentially transmitting the upgraded version file to all nodes of the wireless mesh network through the proxy node in a fission mode so as to enable all the nodes to carry out node upgrading according to the upgraded version file.
In an exemplary embodiment, sequentially transmitting the upgraded version file to all nodes of the wireless mesh network via the proxy node in a fission manner includes: transparently transmitting the upgraded file to a first wireless mesh network node through the agent node, wherein a wireless mesh network channel exists between the first wireless mesh network node and the agent node; and under the condition that a second wireless mesh network node connected with the first wireless mesh network node exists, the upgrade version file is sent to the second wireless mesh network node through the first wireless mesh network node.
In an exemplary embodiment, sequentially transmitting the upgraded version file to all nodes of the wireless mesh network via the proxy node in a fission manner includes: transmitting the upgrade version file to a third wireless mesh network node through a second wireless mesh network node, wherein the third wireless mesh network node and the second wireless mesh network node have a wireless mesh network access; and under the condition that a fourth wireless mesh network node connected with the third wireless mesh network node exists, the upgrade version file is sent to the fourth wireless mesh network node through the third wireless mesh network node.
In one exemplary embodiment, transparently transmitting the upgraded version file to the first wireless mesh network node through the proxy node includes: instructing the agent node to perform a verification operation on the upgraded version file; and under the condition that the upgrade version file passes the verification operation, the upgrade version file which completes the verification operation is transmitted to the first wireless mesh network node through the proxy node.
In one exemplary embodiment, prior to transmitting the upgraded version file to a second wireless mesh network node by the first wireless mesh network node, determining whether the first wireless mesh network node and the second wireless mesh network node are single-connected by: determining that the first wireless mesh network node and the second wireless mesh network node are in single connection when no wireless mesh network access exists between the second wireless mesh network node and the proxy node and a unique wireless mesh network access exists between the first wireless mesh network node and the second wireless mesh network node.
In an exemplary embodiment, before obtaining the upgrade version file received by the proxy node from the device, the method further includes: sending, by the proxy node, firmware version information to the device to instruct the device to download the upgrade version file from a remote server if the firmware version information is inconsistent with firmware version information of a firmware version file stored in the remote server; receiving, by the proxy node, the upgraded version file from the device.
According to another aspect of the embodiments of the present invention, there is also provided a node upgrade apparatus, including: an obtaining module, configured to obtain version file information of all nodes of a wireless mesh network stored in an agent node in the wireless mesh network, and an upgrade version file received by the agent node from a device; and the processing module is used for sequentially transmitting the upgraded version file to all nodes of the wireless mesh network through the proxy node in a fission mode under the condition that the version of the version file information is lower than that of the upgraded version file so as to enable all the nodes to carry out node upgrading according to the upgraded version file.
In one exemplary embodiment, the processing module further comprises: the first processing unit is used for transparently transmitting the upgrade version file to a first wireless mesh network node through the proxy node, wherein a wireless mesh network access exists between the first wireless mesh network node and the proxy node; and the second processing unit is used for sending the upgrade version file to a second wireless mesh network node through the first wireless mesh network node under the condition that the first wireless mesh network node has the second wireless mesh network node connected with the first wireless mesh network node.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above node upgrade method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the node upgrade method through the computer program.
By the embodiment, version file information of all nodes of the wireless mesh network stored in the proxy node in the wireless mesh network and the upgrade version file received by the proxy node from equipment are obtained; and under the condition that the version of the version file information is lower than that of the upgraded version file, sequentially transmitting the upgraded version file to all nodes of the wireless Mesh network through the proxy node according to a fission mode, so that all the nodes upgrade the nodes according to the upgraded version file, namely, the nodes are upgraded according to the version file information of the nodes, and the problems that in the related technology, the upgrading of a plurality of Mesh nodes is inconvenient, the efficiency is low and the like are solved, the upgrading efficiency of the nodes is improved, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a prior art Mesh network topology;
fig. 2 is a block diagram of a hardware structure of a device terminal of a node upgrade method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a node upgrade method according to an embodiment of the present invention;
FIG. 4 is a flowchart of a node upgrade method according to an alternative embodiment of the present invention;
FIG. 5 is a flowchart of a node upgrade method according to an alternative embodiment of the present invention;
FIG. 6 is a flowchart of a node upgrade method according to an alternative embodiment of the present invention;
FIG. 7 is a flowchart of a node upgrade method according to an alternative embodiment of the present invention;
fig. 8 is a schematic diagram of a self-organizing network topology of nodes in a Mesh network according to an alternative embodiment of the present invention;
FIG. 9 is a flow diagram of a multi-node split OTA method within a Mesh network according to an alternative embodiment of the present invention;
fig. 10 is a block diagram of a structure of a node upgrade apparatus according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a computer terminal, a device terminal or a similar operation device. Taking the operation on the device terminal as an example, fig. 2 is a hardware structure block diagram of the device terminal of the node upgrading method according to the embodiment of the present invention. As shown in fig. 2, the device terminal may include one or more (only one shown in fig. 2) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the terminal of the above-described device. For example, the device terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 2 or more functionality than that shown in FIG. 2.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the node upgrade method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the device terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the device terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a node upgrading method is provided, and fig. 3 is a flowchart of a node upgrading method according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, obtaining version file information of all nodes of the wireless mesh network stored in an agent node in the wireless mesh network and an upgrade version file received by the agent node from equipment;
step S204, under the condition that the version of the version file information is lower than that of the upgraded version file, the upgraded version file is sequentially transmitted to all nodes of the wireless mesh network through the proxy node in a fission mode, so that all the nodes carry out node upgrading according to the upgraded version file.
Through the steps S202 to S204, version file information of all nodes of the wireless mesh network stored in a proxy node in the wireless mesh network and an upgrade version file received by the proxy node from a device are acquired; and under the condition that the version of the version file information is lower than that of the upgraded version file, sequentially transmitting the upgraded version file to all nodes of the wireless Mesh network through the proxy node according to a fission mode, so that all the nodes upgrade the nodes according to the upgraded version file, namely, the nodes are upgraded according to the version file information of the nodes, and the problems that in the related technology, the upgrading of a plurality of Mesh nodes is inconvenient, the efficiency is low and the like are solved, the upgrading efficiency of the nodes is improved, and the user experience is improved.
Fig. 4 is a flowchart of a node upgrading method according to an alternative embodiment of the present invention, as shown in fig. 4, the step S204 includes:
step S302, the upgrade version file is transmitted to a first wireless mesh network node through the agent node, wherein a wireless mesh network access exists between the first wireless mesh network node and the agent node;
step S304, when there is a second wireless mesh network node connected to the first wireless mesh network node, the upgrade version file is sent to the second wireless mesh network node through the first wireless mesh network node.
That is, the upgrade version file is transmitted to the first mesh network node through the proxy node, and the upgrade text file is transmitted to the second wireless mesh network node through the first wireless mesh network node.
Fig. 5 is a schematic flow chart of a node upgrading method according to an alternative embodiment of the present invention (ii), as shown in fig. 5, the step S204 includes:
step S402, the upgrade version file is transmitted to a third wireless mesh network node through a second wireless mesh network node, wherein the third wireless mesh network node and the second wireless mesh network node have a wireless mesh network access;
step S404, in a case where a fourth wireless mesh network node connected to the third wireless mesh network node exists, sending the upgrade version file to the fourth wireless mesh network node through the third wireless mesh network node.
That is, the upgrade version file is transmitted to the third wireless mesh network node through the second wireless mesh network node, and the upgrade version file is provided to the fourth wireless mesh network node by the third wireless mesh network node.
Fig. 6 is a schematic flow chart (iii) of a node upgrading method according to an alternative embodiment of the present invention, and as shown in fig. 6, the step S302 includes:
step S502, the agent node is instructed to execute the verification operation on the upgrade version file;
step S504, under the condition that the upgrade version file passes the verification operation, the upgrade version file which completes the verification operation is transmitted to the first wireless mesh network node through the proxy node.
That is, it is necessary to transparently transmit the upgrade version file to the first wireless mesh network node through the proxy node: the upgrade version file is verified through the agent node, and the upgrade version file is transmitted to the first wireless mesh network node through the agent node after the upgrade version file passes the verification.
Fig. 7 is a flowchart illustrating a node upgrading method according to an alternative embodiment of the present invention, as shown in fig. 7, before the step S304, the method further includes:
step S303, determining whether the first wireless mesh network node and the second wireless mesh network node are single-connected by: determining that the first wireless mesh network node and the second wireless mesh network node are in single connection when no wireless mesh network access exists between the second wireless mesh network node and the proxy node and a unique wireless mesh network access exists between the first wireless mesh network node and the second wireless mesh network node.
That is, it may also be necessary to determine whether the first wireless mesh network node is singly connected with the second wireless mesh network node before transmitting the upgraded version file to the second wireless mesh network node.
Optionally, before step S202, the method further includes: sending, by the proxy node, firmware version information to the device to instruct the device to download the upgrade version file from a remote server if the firmware version information is inconsistent with firmware version information of a firmware version file stored in the remote server; receiving, by the proxy node, the upgraded version file from the device.
That is, before the agent node acquires the upgrade version file, it is also necessary to send the firmware version information to the device, and receive the upgrade version file when the firmware version information is inconsistent.
Fig. 8 is a schematic diagram of a self-organizing network topology of nodes in a Mesh network according to an alternative embodiment of the present invention, as shown in fig. 8, including: cloud server, mobile phone and multiple Mesh nodes
Specifically, because the mobile phone (equivalent to the device in the embodiment of the present invention) and the Mesh node (equivalent to the wireless Mesh network node in the embodiment of the present invention) and the Mesh node and the node are influenced by factors such as distance, signal strength, and the like, the mobile phone can establish BLE connection with which Mesh node without consideration, as long as conditions allow the mobile phone to establish BLE connection with any Mesh node; in addition, each node between the Mesh nodes can communicate with other nodes without consideration, and the Mesh nodes can communicate freely. Therefore, in the network, the specific in-network structure is automatically determined by the in-network nodes in a layered mode, and manual work or program participation is not needed. Assuming that nodes which can communicate between the proxy node Mesh node 1 through the Mesh passage are the Mesh node 2 and the Mesh node 3, nodes which can communicate between the Mesh node 2 and the Mesh node 3 through the Mesh passage are the Mesh node 4 to the Mesh node N, and so on, the communication is carried out layer by layer, and the networking structure is determined by self.
Fig. 9 is a flowchart of a multi-node split OTA method in Mesh network according to an alternative embodiment of the present invention, as shown in fig. 9, including:
step S1, reporting the address of the Mesh node;
step S2, saving addresses from Mesh node 4 to N;
step S3, reporting addresses of the Mesh node 4 and the Mesh node N;
step S4, saving addresses from Mesh node 2 to N;
step S5, the mobile phone establishes BLE connection with the Mesh node;
step S6, reporting firmware version information;
step S7, acquiring firmware version information of a Mesh node G at a cloud server;
step S8, issuing firmware version information of the Mesh node at the cloud server side;
step S9, comparing whether the firmware version information of the Mesh node at the cloud server end is consistent with the firmware version information reported by the Mesh node, ending the consistency, and continuing the inconsistency to S10;
step S10, requesting to download a Mesh node firmware version file of the cloud server;
step S11, issuing a Mesh node firmware version file;
step S12, checking whether the version file is correct after downloading, returning the result to the cloud, and if not, continuing to S13 if correct;
step S13, issuing the downloaded Mesh node firmware version file through BLE connection;
step S14, checking whether the version file is correct after receiving, returning the result to the mobile phone, and continuing to S15 if the result is incorrect;
step S15, issuing the downloaded firmware version file of the Mesh node through a Mesh passage;
step S16, checking whether the version file is correct after the receiving is finished, returning the result to the Mesh node 1, finishing the incorrect operation, and continuing to S17 if the version file is correct;
step S17, issuing the downloaded firmware version file of the Mesh node through a Mesh passage;
step S18, checking whether the version file is correct after the receiving is finished, returning the result to the Mesh node 1, finishing the incorrect operation, and continuing to S19 if the version file is correct;
step S19, reporting the firmware version information after upgrading;
step S20, comparing whether all the issued Mesh nodes are successfully upgraded or not, and continuing to step S13 until all the nodes are successfully upgraded;
step S21, reporting the firmware version information after upgrading;
step S22, comparing whether all the issued Mesh nodes are successfully upgraded or not, and continuing to step S13 until all the nodes are successfully upgraded;
and step S23, returning to upgrade success and ending.
When the Mesh node OTA is used, firstly, the mobile phone sends the upgrade version file to the proxy node (equivalent to the proxy node in the embodiment of the invention) through BLE connection, the proxy node sends the upgrade version file to each Mesh node which can establish communication with the proxy node through a Mesh passage, and the Mesh nodes send the upgrade version file to other Mesh nodes which can establish communication with the proxy node, so that the aim of the crack-change upgrade of a plurality of nodes in the Mesh network is fulfilled.
By the embodiment, the mobile phone is connected with one Mesh node, so that all Mesh nodes in the network can be upgraded; the nodes in the network determine the structure in the network by self-layering according to whether the nodes can receive messages of other nodes in the network or not without manual work or program participation; duplicate removal and message continuity judgment can be carried out according to the message source address and the message SN, and the situation that version file data are disordered in the communication process is not needed to be worried about.
Furthermore, the Mesh node determines the network structure through a message mechanism, so that the sending direction of the version file data and the feedback direction of the upgrading result in OTA are determined without manual work or program participation. The Mesh node performs message duplicate removal and message continuity judgment through the message source address and the message SN, and does not need to worry about upgrading failure caused by version file data confusion. And in OTA, all nodes in the network can be upgraded by only connecting one node with a mobile phone, so that user experience and upgrading efficiency are greatly improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a node upgrading apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not described again after the description is given. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 10 is a block diagram of a node upgrade apparatus according to an embodiment of the present invention, and as shown in fig. 10, the apparatus includes:
an obtaining module 1002, configured to obtain version file information of all nodes of a wireless mesh network stored in an agent node in the wireless mesh network, and an upgrade version file received by the agent node from a device;
a processing module 1004, configured to, when the version file information includes a version lower than the version of the upgraded version file, sequentially transmit the upgraded version file to all nodes of the wireless mesh network through the proxy node in a fission manner, so that all nodes perform node upgrade according to the upgraded version file.
By the device, version file information of all nodes of the wireless mesh network stored in the proxy node in the wireless mesh network and an upgrade version file received by the proxy node from equipment are obtained; and under the condition that the version of the version file information is lower than that of the upgraded version file, sequentially transmitting the upgraded version file to all nodes of the wireless Mesh network through the proxy node according to a fission mode, so that all the nodes upgrade the nodes according to the upgraded version file, namely, the nodes are upgraded according to the version file information of the nodes, and the problems that in the related technology, the upgrading of a plurality of Mesh nodes is inconvenient, the efficiency is low and the like are solved, the upgrading efficiency of the nodes is improved, and the user experience is improved.
In an optional embodiment, the processing module further comprises: the first processing unit is used for transparently transmitting the upgrade version file to a first wireless mesh network node through the proxy node, wherein a wireless mesh network access exists between the first wireless mesh network node and the proxy node; and the second processing unit is used for sending the upgrade version file to a second wireless mesh network node through the first wireless mesh network node under the condition that the first wireless mesh network node has the second wireless mesh network node connected with the first wireless mesh network node.
That is, the upgrade version file is transmitted to the first mesh network node through the proxy node, and the upgrade text file is transmitted to the second wireless mesh network node through the first wireless mesh network node.
In an optional embodiment, the processing module is further configured to: transmitting the upgrade version file to a third wireless mesh network node through a second wireless mesh network node, wherein the third wireless mesh network node and the second wireless mesh network node have a wireless mesh network access; and under the condition that a fourth wireless mesh network node connected with the third wireless mesh network node exists, the upgrade version file is sent to the fourth wireless mesh network node through the third wireless mesh network node.
That is, the upgrade version file is transmitted to the third wireless mesh network node through the second wireless mesh network node, and the upgrade version file is provided to the fourth wireless mesh network node by the third wireless mesh network node.
In an optional embodiment, the processing module is further configured to: instructing the agent node to perform a verification operation on the upgraded version file; and under the condition that the upgrade version file passes the verification operation, the upgrade version file which completes the verification operation is transmitted to the first wireless mesh network node through the proxy node.
That is, it is necessary to transparently transmit the upgrade version file to the first wireless mesh network node through the proxy node: the upgrade version file is verified through the agent node, and the upgrade version file is transmitted to the first wireless mesh network node through the agent node after the upgrade version file passes the verification.
In an optional embodiment, the processing module is further configured to: determining whether the first wireless mesh network node and the second wireless network node are single-connected by: determining that the first wireless mesh network node and the second wireless mesh network node are in single connection when no wireless mesh network access exists between the second wireless mesh network node and the proxy node and a unique wireless mesh network access exists between the first wireless mesh network node and the second wireless mesh network node.
That is, it may also be necessary to determine whether the first wireless mesh network node is singly connected with the second wireless mesh network node before transmitting the upgraded version file to the second wireless mesh network node.
In an optional embodiment, the apparatus further includes a verification module, configured to send firmware version information to the device through the proxy node, so as to instruct the device to download the upgraded version file from a remote server if the firmware version information is inconsistent with firmware version information of a firmware version file stored in the remote server; receiving, by the proxy node, the upgraded version file from the device.
That is, before the agent node acquires the upgrade version file, it is also necessary to send the firmware version information to the device, and receive the upgrade version file when the firmware version information is inconsistent.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, obtaining version file information of all nodes of the wireless mesh network stored in the proxy node in the wireless mesh network and the upgrade version file received by the proxy node from the equipment;
and S2, when the version file information has a version lower than that of the upgraded version file, sequentially transmitting the upgraded version file to all nodes of the wireless mesh network through the proxy node in a fission mode so as to enable all nodes to carry out node upgrade according to the upgraded version file.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to execute the following steps by a computer program:
s1, obtaining version file information of all nodes of the wireless mesh network stored in the proxy node in the wireless mesh network and the upgrade version file received by the proxy node from the equipment;
and S2, when the version file information has a version lower than that of the upgraded version file, sequentially transmitting the upgraded version file to all nodes of the wireless mesh network through the proxy node in a fission mode so as to enable all nodes to carry out node upgrade according to the upgraded version file.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A node upgrade method, comprising:
acquiring version file information of all nodes of a wireless mesh network stored in an agent node in the wireless mesh network and an upgrade version file received by the agent node from equipment;
and under the condition that the version of the version file information is lower than that of the upgraded version file, sequentially transmitting the upgraded version file to all nodes of the wireless mesh network through the proxy node in a fission mode so as to enable all the nodes to carry out node upgrading according to the upgraded version file.
2. The method of claim 1, wherein transmitting the upgraded version file through the proxy node in a fissile manner sequentially to all nodes of the wireless mesh network comprises:
transparently transmitting the upgraded file to a first wireless mesh network node through the agent node, wherein a wireless mesh network channel exists between the first wireless mesh network node and the agent node;
and under the condition that a second wireless mesh network node connected with the first wireless mesh network node exists, the upgrade version file is sent to the second wireless mesh network node through the first wireless mesh network node.
3. The method of claim 1, wherein transmitting the upgraded version file through the proxy node in a fissile manner sequentially to all nodes of the wireless mesh network comprises:
transmitting the upgrade version file to a third wireless mesh network node through a second wireless mesh network node, wherein the third wireless mesh network node and the second wireless mesh network node have a wireless mesh network access;
and under the condition that a fourth wireless mesh network node connected with the third wireless mesh network node exists, the upgrade version file is sent to the fourth wireless mesh network node through the third wireless mesh network node.
4. The method of claim 2, wherein transparently transmitting the upgraded version of the file to the first wireless mesh network node via the proxy node comprises:
instructing the agent node to perform a verification operation on the upgraded version file;
and under the condition that the upgrade version file passes the verification operation, the upgrade version file which completes the verification operation is transmitted to the first wireless mesh network node through the proxy node.
5. The method of claim 2, wherein prior to sending the upgraded version file to a second wireless mesh network node via the first wireless mesh network node, determining whether the first wireless mesh network node and the second wireless mesh network node are single-connected by:
determining that the first wireless mesh network node and the second wireless mesh network node are in single connection when no wireless mesh network access exists between the second wireless mesh network node and the proxy node and a unique wireless mesh network access exists between the first wireless mesh network node and the second wireless mesh network node.
6. The method of claim 1, wherein prior to obtaining the upgraded version file received by the proxy node from the device, the method further comprises:
sending, by the proxy node, firmware version information to the device to instruct the device to download the upgrade version file from a remote server if the firmware version information is inconsistent with firmware version information of a firmware version file stored in the remote server;
receiving, by the proxy node, the upgraded version file from the device.
7. A node upgrade apparatus, comprising:
an obtaining module, configured to obtain version file information of all nodes of a wireless mesh network stored in an agent node in the wireless mesh network, and an upgrade version file received by the agent node from a device;
and the processing module is used for sequentially transmitting the upgraded version file to all nodes of the wireless mesh network through the proxy node in a fission mode under the condition that the version of the version file information is lower than that of the upgraded version file so as to enable all the nodes to carry out node upgrading according to the upgraded version file.
8. The apparatus of claim 7, wherein the processing module further comprises:
the first processing unit is used for transparently transmitting the upgrade version file to a first wireless mesh network node through the proxy node, wherein a wireless mesh network access exists between the first wireless mesh network node and the proxy node;
and the second processing unit is used for sending the upgrade version file to a second wireless mesh network node through the first wireless mesh network node under the condition that the first wireless mesh network node has the second wireless mesh network node connected with the first wireless mesh network node.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011606094.9A CN112737847B (en) | 2020-12-28 | 2020-12-28 | Node upgrading method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011606094.9A CN112737847B (en) | 2020-12-28 | 2020-12-28 | Node upgrading method and device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112737847A true CN112737847A (en) | 2021-04-30 |
CN112737847B CN112737847B (en) | 2023-02-03 |
Family
ID=75610172
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011606094.9A Active CN112737847B (en) | 2020-12-28 | 2020-12-28 | Node upgrading method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112737847B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113259928A (en) * | 2021-05-08 | 2021-08-13 | 生迪智慧科技有限公司 | OTA (over the air) upgrading method and device, electronic equipment, storage medium and program product |
CN113727461A (en) * | 2021-07-27 | 2021-11-30 | 上海艾拉比智能科技有限公司 | Ad-hoc network flashing method of automobile assembly production line |
CN114286366A (en) * | 2021-12-23 | 2022-04-05 | 深圳创维数字技术有限公司 | Wireless grid network upgrading method and device, main node and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103391215A (en) * | 2013-05-20 | 2013-11-13 | 江苏物联网研究发展中心 | Remote software downloading and updating method, device and system based on chain network |
US20140089912A1 (en) * | 2012-09-21 | 2014-03-27 | Silver Spring Networks, Inc. | System and method for efficiently updating firmware for nodes in a mesh network |
WO2014161278A1 (en) * | 2013-04-03 | 2014-10-09 | 中兴通讯股份有限公司 | Mobile terminal and upgrade method therefor |
CN105554731A (en) * | 2015-12-16 | 2016-05-04 | 青岛海信移动通信技术股份有限公司 | OTA upgrading method and OTA upgrading device |
CN105743948A (en) * | 2014-12-11 | 2016-07-06 | 中兴通讯股份有限公司 | Network version upgrading method and apparatus |
CN105763350A (en) * | 2014-12-16 | 2016-07-13 | 中兴通讯股份有限公司 | Method of using multicast mode to upgrade version and apparatus thereof |
CN106411540A (en) * | 2015-07-27 | 2017-02-15 | 中兴通讯股份有限公司 | Software version management method and device |
CN107315620A (en) * | 2017-07-28 | 2017-11-03 | 国网山东省电力公司电力科学研究院 | Collector intelligent remote upgrade method in a kind of AMRS |
CN105993147B (en) * | 2014-07-23 | 2019-03-05 | 华为技术有限公司 | A kind of terminal staging method and relevant device |
CN109769239A (en) * | 2019-03-06 | 2019-05-17 | 乐鑫信息科技(上海)股份有限公司 | Method for carrying out OTA firmware upgrade to the node in bluetooth Mesh network |
CN111538516A (en) * | 2020-04-24 | 2020-08-14 | 苏州浪潮智能科技有限公司 | Server power firmware upgrading method, device, equipment and readable storage medium |
-
2020
- 2020-12-28 CN CN202011606094.9A patent/CN112737847B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140089912A1 (en) * | 2012-09-21 | 2014-03-27 | Silver Spring Networks, Inc. | System and method for efficiently updating firmware for nodes in a mesh network |
WO2014161278A1 (en) * | 2013-04-03 | 2014-10-09 | 中兴通讯股份有限公司 | Mobile terminal and upgrade method therefor |
CN103391215A (en) * | 2013-05-20 | 2013-11-13 | 江苏物联网研究发展中心 | Remote software downloading and updating method, device and system based on chain network |
CN105993147B (en) * | 2014-07-23 | 2019-03-05 | 华为技术有限公司 | A kind of terminal staging method and relevant device |
CN105743948A (en) * | 2014-12-11 | 2016-07-06 | 中兴通讯股份有限公司 | Network version upgrading method and apparatus |
CN105763350A (en) * | 2014-12-16 | 2016-07-13 | 中兴通讯股份有限公司 | Method of using multicast mode to upgrade version and apparatus thereof |
CN106411540A (en) * | 2015-07-27 | 2017-02-15 | 中兴通讯股份有限公司 | Software version management method and device |
CN105554731A (en) * | 2015-12-16 | 2016-05-04 | 青岛海信移动通信技术股份有限公司 | OTA upgrading method and OTA upgrading device |
CN107315620A (en) * | 2017-07-28 | 2017-11-03 | 国网山东省电力公司电力科学研究院 | Collector intelligent remote upgrade method in a kind of AMRS |
CN109769239A (en) * | 2019-03-06 | 2019-05-17 | 乐鑫信息科技(上海)股份有限公司 | Method for carrying out OTA firmware upgrade to the node in bluetooth Mesh network |
CN111538516A (en) * | 2020-04-24 | 2020-08-14 | 苏州浪潮智能科技有限公司 | Server power firmware upgrading method, device, equipment and readable storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113259928A (en) * | 2021-05-08 | 2021-08-13 | 生迪智慧科技有限公司 | OTA (over the air) upgrading method and device, electronic equipment, storage medium and program product |
CN113727461A (en) * | 2021-07-27 | 2021-11-30 | 上海艾拉比智能科技有限公司 | Ad-hoc network flashing method of automobile assembly production line |
CN114286366A (en) * | 2021-12-23 | 2022-04-05 | 深圳创维数字技术有限公司 | Wireless grid network upgrading method and device, main node and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112737847B (en) | 2023-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112737847B (en) | Node upgrading method and device, storage medium and electronic device | |
KR101905019B1 (en) | Method for upgrading terminal system, terminal, and system | |
CN111885115B (en) | Device binding changing method and device | |
CN111885594B (en) | Equipment binding method and device | |
US10469620B2 (en) | Method for transferring a new software version to at least one electricity meter via a communication network | |
CN112671904B (en) | Method and device for transmitting equipment state information, storage medium and electronic device | |
CN113422814A (en) | Method and system for sending device control command, storage medium and electronic device | |
CN112596768B (en) | Updating method and device of equipment, storage medium and electronic device | |
CN108882277B (en) | Version upgrading method and device | |
CN113721966A (en) | Node upgrading method and device, storage medium and electronic device | |
CN112764803A (en) | Version upgrading method and device, storage medium and electronic device | |
WO2017124741A1 (en) | Method and device for synchronizing apparatus version | |
CN113596792A (en) | Binding method and device of electronic equipment, storage medium and electronic device | |
CN115004650B (en) | Node configuration method, node configuration device, distributed system and computer readable medium | |
CN112511621A (en) | Data transmission method and device, storage medium, and electronic device | |
CN112769935B (en) | Equipment upgrading method and device, storage medium and electronic device | |
JP6568998B2 (en) | Terminal arrangement management method and device | |
CN114125052A (en) | Target operation execution method and device, storage medium and electronic device | |
CN114697375B (en) | Voice packet switching method and device, storage medium and electronic device | |
CN112698948A (en) | Method and device for acquiring product resources, storage medium and electronic device | |
CN112751706A (en) | Target data transmission method and device | |
CN110532012A (en) | A kind of distributed system software upgrade method and device | |
WO2022001830A1 (en) | Configuration method, terminal, service terminal and configuration system | |
CN113132986B (en) | Method and device for realizing mesh network of WiFi based on DPP protocol, and storage medium | |
CN112653637A (en) | Mesh gateway selection method and device |
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 |