CN112737847B - Node upgrading method and device, storage medium and electronic device - Google Patents

Node upgrading method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112737847B
CN112737847B CN202011606094.9A CN202011606094A CN112737847B CN 112737847 B CN112737847 B CN 112737847B CN 202011606094 A CN202011606094 A CN 202011606094A CN 112737847 B CN112737847 B CN 112737847B
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.)
Active
Application number
CN202011606094.9A
Other languages
Chinese (zh)
Other versions
CN112737847A (en
Inventor
张晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011606094.9A priority Critical patent/CN112737847B/en
Publication of CN112737847A publication Critical patent/CN112737847A/en
Application granted granted Critical
Publication of CN112737847B publication Critical patent/CN112737847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor

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 a proxy node in the wireless mesh network and an upgrade version file received by the proxy node from equipment; under the condition that the version of the version file information is lower than that of the upgrade version file, the upgrade version file is sequentially transmitted to all nodes of the wireless grid network through the proxy node according to the fission mode, so that all nodes carry out node upgrade according to the upgrade version file, namely, the nodes are upgraded according to the version file information of the nodes, the problems that in the related technology, the upgrade of a plurality of Mesh nodes is inconvenient, the efficiency is low and the like are solved, the upgrade efficiency of the nodes is improved, and the user experience is improved.

Description

Node upgrading method and device, storage medium and electronic device
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 a mobile phone through a BLE gap access as a proxy node so as to connect the mobile phone to 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 inconvenience in upgrading of a plurality of Mesh nodes, low efficiency and the like in the related art, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a node upgrading method and device, a storage medium and an electronic device, and at least solves the problems that in the related technology, 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 through the proxy node in a fission manner includes: the upgrade version file is transmitted to a first wireless grid network node through the agent node, wherein a wireless grid network access exists between the first wireless grid 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 an exemplary embodiment, transparently transmitting the upgraded version file to the first wireless mesh network node through 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.
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 a single connection if 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 firmware version information to the device through the proxy node 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 acquisition module, configured to acquire version file information of all nodes of a 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; and the processing module is used for sequentially transmitting the upgraded version file to all nodes of the wireless grid network through the proxy node according to 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 ensure that all nodes 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 transmitting the upgrade version file to a first wireless grid network node through the proxy node, wherein a wireless grid network access exists between the first wireless grid 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, where 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.
Through the embodiment, the 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 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 an equipment terminal of a node upgrading method according to an embodiment of the present invention;
FIG. 3 is a flow diagram 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. 2 is only an illustration and is not intended to limit the structure of the terminal of the device. For example, the device terminal may also include more or fewer components than shown in FIG. 2, 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 to communicate 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 wireless mesh network node through the proxy node, and then 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 passing the verification.
Fig. 7 is a schematic flow diagram (iv) of 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 connected by the following method: determining that the first wireless mesh network node and the second wireless mesh network node are connected in a single connection if 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: the system comprises a cloud server, a mobile phone and a plurality of Mesh nodes;
specifically, because the cell phone (which is equivalent to the device in the embodiment of the present invention) and the Mesh node (which is 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, it is not necessary to consider which Mesh node the cell phone can establish BLE connection with, as long as conditions allow the cell 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. The nodes which can be communicated by the proxy node Mesh node 1 through the Mesh passage are assumed to be a Mesh node 2 and a Mesh node 3, the nodes which can be communicated by the Mesh node 2 and the Mesh node 3 through the Mesh passage are assumed to be a Mesh node 4 to a Mesh node N, and the communication is carried out layer by analogy, so that the networking structure is determined by self.
Fig. 9 is a schematic flowchart of a multi-node fission 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 a Mesh node per se;
s2, storing addresses from the Mesh node 4 to the N;
s3, reporting addresses from the Mesh node 4 to the N;
s4, saving addresses from the Mesh nodes 2 to N;
s5, establishing BLE connection between the mobile phone and the Mesh node;
step S6, reporting firmware version information;
s7, acquiring firmware version information of a Mesh node G at a cloud server;
s8, issuing firmware version information of a Mesh node at a cloud server side;
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 S10 if the firmware version information of the Mesh node is inconsistent;
step S10, requesting to download a Mesh node firmware version file of a cloud server side;
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 step S13 if correct;
step S13, issuing the downloaded firmware version files of the Mesh nodes through BLE connection;
step S14, checking whether the version file is correct after the receiving is finished, returning the result to the mobile phone, and if the result is incorrect, continuing to the step S15;
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, and if the result is incorrect, continuing to the step S17;
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, and if the result is incorrect, continuing to the step S19;
step S19, reporting the firmware version information of the user after upgrading;
step S20, comparing whether all the issued Mesh nodes are successfully upgraded or not, and continuing S13 until all the nodes are successfully upgraded;
s21, reporting the firmware version information of the user after upgrading;
s22, comparing whether all the issued Mesh nodes are successfully upgraded or not, and continuing 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 Mesh node, so that the purpose of the fission upgrade of a plurality of nodes in the Mesh network is achieved.
Through the embodiment, the mobile phone is connected with one Mesh node, and then 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 a proxy node in the wireless mesh network, and an upgrade version file received by the proxy 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 wireless 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.
Namely, the upgrade version file is transmitted to the first wireless mesh network node through the proxy node, which requires: 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 mesh network node are single-connected by: determining that the first wireless mesh network node and the second wireless mesh network node are connected in a single connection if 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 upgrade version file from the remote server in a case that 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 needs to send the firmware version information to the device, and receives the upgrade version file if 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.
An embodiment of the present invention further provides a storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the method embodiments described above when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, 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 S2, 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.
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 a wireless mesh network stored in a proxy node in the wireless mesh network and an upgrade version file received by the proxy node from equipment;
and S2, 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 grid network through the proxy node in a fission mode so as to enable all nodes to carry out node upgrading according to the upgraded version file.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented in a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and they may be implemented in program code that is executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed in an order different from that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps therein 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 (9)

1. A node upgrade method, comprising:
acquiring version file information of all nodes of the wireless mesh network, which is stored in a proxy node in the wireless mesh network, and an upgrade version file received by the proxy node from equipment, wherein the proxy node is any wireless mesh network node which establishes BLE connection with the equipment in the wireless mesh network;
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;
before obtaining the upgrade version file received by the agent 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.
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 transmitting said upgraded version file to a second wireless mesh network node by said first wireless mesh network node, determining whether said first wireless mesh network node and said 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 connected in a single connection if 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. A node upgrade apparatus, comprising:
the wireless mesh network updating system comprises an acquisition module, a storage module and a updating module, wherein the acquisition module is used for acquiring version file information of all nodes of the wireless mesh network stored in a proxy node in the wireless mesh network and an updating version file received by the proxy node from equipment, and the proxy node is any wireless mesh network node which establishes BLE connection with the equipment in the wireless mesh network;
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 file information has a version 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;
a verification module for sending firmware version information to the device through the proxy node 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. The apparatus of claim 6, 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.
8. 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 5.
9. 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 5 by means of the computer program.
CN202011606094.9A 2020-12-28 2020-12-28 Node upgrading method and device, storage medium and electronic device Active CN112737847B (en)

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 CN112737847A (en) 2021-04-30
CN112737847B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
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
CN114286366B (en) * 2021-12-23 2023-07-14 深圳创维数字技术有限公司 Wireless grid network upgrading method and device, master node and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9081643B2 (en) * 2012-09-21 2015-07-14 Silver Sring Networks, Inc. System and method for efficiently updating firmware for nodes in a mesh network
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
CN106411540A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Software version management method and device
CN107315620B (en) * 2017-07-28 2020-07-31 国网山东省电力公司电力科学研究院 Intelligent remote upgrading method for collector in electric power centralized meter reading system
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014161278A1 (en) * 2013-04-03 2014-10-09 中兴通讯股份有限公司 Mobile terminal and upgrade method therefor
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
CN105554731A (en) * 2015-12-16 2016-05-04 青岛海信移动通信技术股份有限公司 OTA upgrading method and OTA upgrading device

Also Published As

Publication number Publication date
CN112737847A (en) 2021-04-30

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
CN111786893B (en) method and device for synchronizing software versions of wireless routers in mesh networking
US10469620B2 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN104954394A (en) Software differential packet production and update method, server, terminal and update system
CN112187531B (en) Module upgrading method and system, storage medium and electronic device
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN111885115A (en) Equipment binding change method and device
CN112596768B (en) Updating method and device of equipment, storage medium and electronic device
CN111142905A (en) OTA (over-the-air) upgrading method, OTA server and OTA upgrading system
CN112764803A (en) Version upgrading method and device, storage medium and electronic device
CN113721966A (en) Node upgrading method and device, storage medium and electronic device
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN112738785B (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN112511621B (en) Data transmission method and device, storage medium, and electronic device
CN115004650B (en) Node configuration method, node configuration device, distributed system and computer readable medium
CN112769935B (en) Equipment upgrading method and device, storage medium and electronic device
CN110532012B (en) Distributed system software upgrading method and device
CN113794751A (en) Data interaction method, system, equipment and storage medium of Internet of things system
CN114125052A (en) Target operation execution method and device, storage medium and electronic device
CN112698948A (en) Method and device for acquiring product resources, storage medium and electronic device
CN114697375B (en) Voice packet switching method and device, storage medium and electronic device
CN111970136A (en) Firmware upgrading method, LoRa gateway, LoRa system and computer readable storage medium
CN107710681B (en) Method and apparatus for upgrading multi-dwelling unit
CN111385110A (en) Network management 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