CN102238603A - Wireless sensor network updating method - Google Patents

Wireless sensor network updating method Download PDF

Info

Publication number
CN102238603A
CN102238603A CN2011102312061A CN201110231206A CN102238603A CN 102238603 A CN102238603 A CN 102238603A CN 2011102312061 A CN2011102312061 A CN 2011102312061A CN 201110231206 A CN201110231206 A CN 201110231206A CN 102238603 A CN102238603 A CN 102238603A
Authority
CN
China
Prior art keywords
node
communication module
new data
internet communication
aggregation 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.)
Pending
Application number
CN2011102312061A
Other languages
Chinese (zh)
Inventor
金仁成
邹军华
王立鼎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SUZHOU DINGHAN SENSOR NETWORK TECHNOLOGY Co Ltd
Original Assignee
SUZHOU DINGHAN SENSOR NETWORK TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUZHOU DINGHAN SENSOR NETWORK TECHNOLOGY Co Ltd filed Critical SUZHOU DINGHAN SENSOR NETWORK TECHNOLOGY Co Ltd
Priority to CN2011102312061A priority Critical patent/CN102238603A/en
Publication of CN102238603A publication Critical patent/CN102238603A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a wireless sensor network updating method. A wireless sensor network comprises a gateway node, a routing node and a sensing node, wherein the gateway node comprises a sink node and an Internet communication module. The method comprises the following steps of: after the Internet communication module establishes connection with an updating server, the updating server transmits an updating data frame to the Internet communication module; the Internet communication module, the sink node, the routing node and/or the sensing node download(s) updating data according to function codes in the updating data frame; and the Internet communication module, the sink node, the routing node and/or the sensing node check(s) the downloaded updating data, and are automatically reset to realize automatic updating. Compared with the prior art in which a manual way is adopted, the invention is not required to perform field maintenance and management on the network nodes to reduce the maintenance cost, and is particularly applied to network maintenance in remote areas.

Description

A kind of update method of wireless sensor network
Technical field
The invention belongs to the wireless sensor network technology field, relate in particular to a kind of update method of wireless sensor network.
Background technology
Wireless sensor network integrates sensor technology, micro electro mechanical system (MEMS) technology, embedded computing technique, wireless communication technology and distributed information processing, it is defined in the target area and disposes a large amount of microsensor nodes, the event information of node cooperative work that these are networked and perception area to be monitored, obtain user requested data, be transferred to the terminal use by multihop network at last.Because wireless sensor network is monitored the loaded down with trivial details uninteresting manpower work of can saving over, even can monitor the deathtrap that the past manually is difficult to monitor in real time, have a wide range of applications in fields such as national defense and military, environmental monitoring, Smart Home, medical treatment ﹠ health and Industry Control.
Because wireless sensor network node is deployed in open-air no man's land usually, in case sensing node and gateway node deployment success, if find that the intranodal program needs to upgrade, its cost will be huge.Therefore the maintainability that how to improve wireless sensor network node becomes a key issue, directly affects the reliability and the life cycle of network, has also limited its practice in engineering project simultaneously.
Be different from wired connection, wireless sensor network employing radio communication is set up the connection between the node, and radio communication exists error code, hidden danger such as packet loss.Prior art adopts manual type that the network node in subordinate zone is safeguarded that maintenance cost is big, and is special than being for some particular application, after system Once you begin moves, and artificial on-site maintenance or even impossible.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of update method of wireless sensor network, to solve the high problem of maintenance cost that prior art exists.
The embodiment of the invention is to realize like this, a kind of update method of wireless sensor network, described wireless sensor network comprises gateway node, routing node and sensing node, and described gateway node comprises aggregation node and the Internet communication module, said method comprising the steps of:
After a described the Internet communication module and a update service device connected, described update service device sent more new data frame to the Internet communication module;
According to the function code in the described more new data frame, described the Internet communication module, aggregation node, routing node and/or sensing node down loading updating data;
The more new data that described the Internet communication module, aggregation node, routing node and/or sensing node inspection are downloaded, and the realization that automatically resets is upgraded automatically.
Described more new data frame comprises the function code of upgrading aggregation node, the Internet communication module, routing node or sensing node in order to distinguish, when the function code in the described more new data frame is when upgrading described the Internet communication module in order to sign, the step of described the Internet communication module down loading updating data can may further comprise the steps: described the Internet communication module, and is stored in the nonvolatile memory in the described the Internet communication module by FTP down loading updating packet from described update service device.
When the function code in the described more new data frame is that the step of described aggregation node down loading updating data can may further comprise the steps when upgrading described aggregation node in order to sign:
Described the Internet communication module from described update service device by FTP down loading updating packet, and based on the ARQ agreement, send to described aggregation node by the interface between described the Internet communication module and the described aggregation node;
Described aggregation node judges based on the ARQ agreement whether the more new data packets of described the Internet communication module transmission is correct, is then described more new data packets to be stored in the nonvolatile memory of described aggregation node.
Whether correct described aggregation node can also return the Frame of an expression packet correctness according to judged result to described the Internet communication module after judging more new data packets that described the Internet communication module sends step; When described Frame represents that packet is correct, the Internet communication module then sends next more new data packets after receiving this Frame, when described Frame is represented packet error, described the Internet communication module resends a new data packets more after receiving described Frame.
The more new data that described the Internet communication module or aggregation node inspection are downloaded, and the automatic updating steps of realization that automatically resets specifically can may further comprise the steps:
Described the Internet communication module or aggregation node are with inner updating mark set, and startup resets;
Described the Internet communication module or aggregation node are checked the whether set of inner updating mark, if described updating mark does not have set, then continue to carry out upgrade before program;
If described updating mark set, whether the file identification and the version number that then check the transaction file in the nonvolatile memory of described the Internet communication module or aggregation node meet the demands, if do not meet the demands, then continue to carry out the preceding program of renewal, if meet the demands, then the more new data in the nonvolatile memory of described the Internet communication module or aggregation node is read also programming and advanced in the program storage of described the Internet communication module or aggregation node;
Carry out and upgrade the back program.
The step whether file identification of the transaction file in the nonvolatile memory of described inspection the Internet communication module or aggregation node and version number meet the demands can may further comprise the steps:
Whether the file identification of checking the transaction file in the nonvolatile memory of described the Internet communication module or aggregation node represents the transaction file of described the Internet communication module or aggregation node;
Whether the version number that checks transaction file simultaneously is newer than the fileversion number of described the Internet communication module or the current operation of aggregation node;
The file identification of the transaction file in the nonvolatile memory of described the Internet communication module or aggregation node is represented the transaction file of the Internet communication module or aggregation node, and when the version number of transaction file is newer than the fileversion number of described the Internet communication module or the current operation of aggregation node, meet the demands, otherwise do not meet the demands.
Function code in described more new data frame is to upgrade described routing node in order to sign, and the father node of described routing node is when being described aggregation node, and the step of described routing node down loading updating data can may further comprise the steps:
Described aggregation node down loading updating data;
Described routing node sends poll transaction file sign and version number information with directed polling mode to described aggregation node;
After described aggregation node receives described poll transaction file sign and version number information, reply in the aggregation node sign of transaction file in the nonvolatile memory, version number and new data initial memory address in the nonvolatile memory in described aggregation node more to described routing node;
Described routing node is after receiving the information of aggregation node, if transaction file be designated the routing node transaction file, and when the version number of transaction file is newer than current operating file version number, described routing node sends the request signal of down loading updating data to aggregation node, the described request signal comprised ask new data more in the nonvolatile memory of aggregation node initial memory address and ask the more length of new data;
Described aggregation node is according to the described request signal, according to the length of asking new data more and the initial memory address of asking new data more more new data send to described routing node;
The more new data that described routing node will receive deposits in after verification is errorless in the nonvolatile memory of routing node, and the more initial memory address of new data is asked in change.
The more new data that described routing node inspection is downloaded, and the automatic updating steps of realization that automatically resets specifically can may further comprise the steps:
Described routing node is inner updating mark set, and determines timing according to the degree of depth of corresponding routing node in wireless sensor network, when timing then, startup resets;
Described routing node is checked the whether set of inner updating mark, if described updating mark does not have set, then continue to carry out upgrade before program;
If described updating mark set, whether the file identification and the version number that then check the transaction file in the nonvolatile memory of described routing node meet the demands, if do not meet the demands, then continue to carry out the preceding program of renewal, if meet the demands, then the more new data in the nonvolatile memory of described routing node is read also programming and advanced in the program storage of described routing node;
Carry out and upgrade the back program;
Describedly determine that according to the degree of depth of corresponding routing node in wireless sensor network the step of timing may further comprise the steps: determine the degree of depth of corresponding routing node in wireless sensor network, described timing is the described network degree of depth and the product of the basic timing that prestores, and described basic timing is 15 seconds.
Function code in described more new data frame is to upgrade described sensing node in order to sign, and the father node of described sensing node is when being described aggregation node, and the step of described sensing node down loading updating data can may further comprise the steps:
After described sensing node timing dormancy is waken up, send poll transaction file sign and version number information to aggregation node, send the laggard resting state of going into that finishes with polling mode;
After described aggregation node receives this poll transaction file sign and version number information, will be in the buffer memory of aggregation node to sensing node information temporary storage to be replied, wait for that the sensing node timing dormancy wakes the back request msg up, this information to be replied comprises in the aggregation node sign of transaction file in the nonvolatile memory, version number and new data initial memory address in the nonvolatile memory in aggregation node more;
Described sensing node timing dormancy is waken the request signal of back to described aggregation node transmission down loading updating data up, and described sensing node is waited for and being replied and not dormancy;
The return information for the treatment of that described aggregation node will be kept in sends to described sensing node;
After described sensing node receives the information of aggregation node transmission, if transaction file be designated the sensing node transaction file, and when the version number of transaction file is newer than current operating file version number, described sensing node timing dormancy is waken the back sends request signal from the down loading updating data to aggregation node up, the described request signal comprised ask new data more in the nonvolatile memory of aggregation node initial memory address and ask the more length of new data, enter resting state after being sent completely;
Described aggregation node is according to the described request signal, new data more sent to routing node be temporary in the buffer memory of described aggregation node, waits for that described sensing node timing dormancy wakes the back request msg up;
Described sensing node timing dormancy is waken the back up to the aggregation node request msg, and described sensing node is waited for and replied not dormancy;
The more new data that described aggregation node will be kept in sends to described sensing node;
The more new data that described sensing node will receive deposits in after verification is errorless in the nonvolatile memory of described sensing node, and changes and to ask the more initial memory address of new data, enters resting state afterwards.
The more new data that described sensing node inspection is downloaded, and the automatic updating steps of realization that automatically resets specifically can may further comprise the steps:
Described sensing node is inner updating mark set, and determines timing according to the degree of depth of corresponding sensing node in wireless sensor network, when timing then, startup resets;
Described sensing node is checked the whether set of inner updating mark, if updating mark does not have set, then continue to carry out upgrade before program;
If updating mark set, check then whether the file identification and the version number of the transaction file in the nonvolatile memory of sensing node meets the demands, if do not meet the demands, then continue to carry out upgrade before program; If meet the demands, then the more new data in the nonvolatile memory of sensing node is read also programming and advanced in the program storage of sensing node;
Carry out and upgrade the back program;
Described according to determining that according to the degree of depth of corresponding sensing node in wireless sensor network the step of timing may further comprise the steps: as to determine the degree of depth of corresponding sensing node in wireless sensor network, described timing is the described network degree of depth and the product of the basic timing that prestores, and described basic timing is 15 seconds.
The update method of wireless sensor network provided by the invention is to utilize gateway node to upgrade to the remote update server requests, reach the purpose of upgrading each network node data of wireless senser, compared to the existing manual type that adopts, need not network node is carried out the on-site maintenance management, reduce maintenance cost, be specially adapted to the network operation of remote districts.
Description of drawings
Fig. 1 is in the prior art, the distribution schematic diagram of wireless sensor network;
Fig. 2 is the flow chart of the update method of wireless sensor network provided by the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Fig. 1 is in the prior art, the distribution schematic diagram of wireless sensor network, it only shows existing a kind of networking mode, and those skilled in the art should understand, its networking mode can adopt the network of star network, tree network or other topological classification according to application demand.
As can be seen, existing wireless sensor network comprises gateway node, routing node and sensing node.Wherein, gateway node mainly is responsible for the conversion of network communication of wireless sensor agreement and Internet protocol, can not dormancy; Routing node mainly is responsible for the forwarding and the routing to communicate of wireless sensor network data, can not dormancy; Sensing node mainly is responsible for the collection of wireless sensor network data, can dormancy.And gateway node has further comprised aggregation node and the Internet communication module, and therefore, the renewal of wireless sensor network has comprised the renewal to aggregation node, the Internet communication module, routing node and/or sensing node.In various networking modes based on different agreement, one or more can the omission in the Internet communication module, routing node and/or the sensing node, with the Zigbee network based on the IEEE802.15.4 standard is example, telegon in the Zigbee network promptly is equivalent to aggregation node, router in the Zigbee network promptly is equivalent to routing node, and the terminal equipment in the Zigbee network promptly is equivalent to sensing node.
Fig. 2 is the flow chart of the update method of wireless sensor network provided by the invention, and this method may further comprise the steps:
In step S101, after the Internet communication module and update service device connected, the update service device sent more new data frame to the Internet communication module.This upgrade data frame format can for:
Frame head Frame length Function code Postamble
Wherein, function code is the flag bit that upgrades aggregation node, the Internet communication module, routing node or sensing node in order to distinguish.
Wherein, the application layer file transfer protocol (FTP) (FTP) that being connected between the Internet communication module and the update service device is based on network layer transmission control protocol (TCP) and setting up.
In step S102, according to the function code in the new data frame more, the Internet communication module, aggregation node, routing node and/or sensing node down loading updating data.
When the function code in the new data frame more is when upgrading the Internet communication module in the gateway node in order to sign, the step of the Internet communication module down loading updating data specifically may further comprise the steps: the Internet communication module, and is stored in the nonvolatile memory in the Internet communication module by FTP down loading updating packet from the update service device.Wherein, nonvolatile memory is preferably flash memory.
When the function code in the new data frame more is when upgrading aggregation node in the gateway node in order to sign, the step of aggregation node down loading updating data specifically may further comprise the steps: the Internet communication module is passed through FTP down loading updating packet from the update service device, and based on automatic repeat requests (Automatic Repeat-reQuest, ARQ) agreement, send to aggregation node by the interface between the Internet communication module and the aggregation node; Aggregation node judges based on the ARQ agreement whether the more new data packets of the Internet communication module transmission is correct, is then to be stored in the nonvolatile memory of aggregation node.Wherein, nonvolatile memory is preferably flash memory, and the interface between the Internet communication module and the aggregation node is preferably serial communication interface, as: UART232, SPI, I2C etc.
Further, whether correct aggregation node can also return the Frame of an expression packet correctness to the Internet communication module according to judged result after judging more new data that the Internet communication module sends step; When Frame represents that packet is correct, the Internet communication module then sends next more new data packets, when Frame is represented packet error after receiving this Frame, the Internet communication module resends a new data packets more after receiving this Frame.
When the function code in the new data frame more is when upgrading routing node in order to sign, the father node of routing node may be aggregation node or routing node, when the father node of routing node is aggregation node, the more new data of routing node need experience single-hop transmission, when the father node of routing node was routing node, the more new data of routing node need experience the multi-hop transmission.Clear, succinct for what illustrate, be that the more new data experience single-hop transmission of aggregation node, routing node is that example describes with the father node of routing node below, at this moment, the step of routing node down loading updating data specifically may further comprise the steps: aggregation node down loading updating data; Routing node sends poll transaction file sign and version number information with directed polling mode to aggregation node, when this wireless sensor network is the Zigbee network, because Zigbee networked physics layer and MAC layer are followed the IEEE802.15.4 standard, therefore adopt the CSMA/CA algorithm can guarantee reliability transmission; After aggregation node receives this poll transaction file sign and version number information, reply in the aggregation node sign of transaction file in the nonvolatile memory, version number and new data initial memory address in the nonvolatile memory in aggregation node more to routing node; Routing node is after receiving the information of aggregation node, if transaction file be designated the routing node transaction file, and when the version number of transaction file is newer than current operating file version number, routing node sends the request signal of down loading updating data to aggregation node, this request signal comprised ask new data more in the nonvolatile memory of aggregation node initial memory address and ask the more length of new data; Aggregation node is according to this request signal, according to the length of asking new data more and the initial memory address of asking new data more more new data send to routing node; The more new data that routing node will receive deposits in after verification is errorless in the nonvolatile memory of routing node, and the more initial memory address of new data is asked in change; Repeat above-mentioned steps, can finish the more download of new data of routing node.Wherein, the step of aggregation node down loading updating data does not repeat them here as mentioned above.When the father node of routing node is routing node, on the above-mentioned steps basis, need to increase the transmission of wireless sensor network routing node multi-hop, for example adopt wireless self-networking as required plan range vector Routing Protocol (Ad hoc On-Demand Distance Vector Routing AODV) can realize.
When the function code in the new data frame more is when upgrading sensing node in order to sign, the father node of sensing node may be aggregation node or routing node, when the father node of routing node is aggregation node, the more new data of routing node need experience single-hop transmission, when the father node of routing node was routing node, the more new data of routing node need experience the multi-hop transmission.Clear, succinct for what illustrate, be that the more new data experience single-hop transmission of aggregation node, routing node is that example describes with the father node of routing node below, at this moment, the step of routing node down loading updating data specifically may further comprise the steps: aggregation node down loading updating data; After the sensing node timing dormancy is waken up, send poll transaction file sign and version number information with polling mode to aggregation node, the transmission laggard resting state of going into that finishes, when this wireless sensor network is the Zigbee network, because Zigbee networked physics layer and MAC layer are followed the IEEE802.15.4 standard, therefore adopt the CSMA/CA algorithm can guarantee reliability transmission; After aggregation node receives this poll transaction file sign and version number information, will be in the buffer memory of aggregation node to sensing node information temporary storage to be replied, wait for that the sensing node timing dormancy wakes the back request msg up, this information to be replied comprises in the aggregation node sign of transaction file in the nonvolatile memory, version number and new data initial memory address in the nonvolatile memory in aggregation node more; The sensing node timing dormancy is waken the request signal of back to aggregation node transmission down loading updating data up, and sensing node is waited for and being replied and not dormancy; The return information for the treatment of that aggregation node will be kept in sends to sensing node; After sensing node receives the information of aggregation node transmission, if transaction file be designated the sensing node transaction file, and when the version number of transaction file is newer than current operating file version number, the sensing node timing dormancy is waken the back sends request signal from the down loading updating data to aggregation node up, this request signal comprised ask new data more in the nonvolatile memory of aggregation node initial memory address and ask the more length of new data, enter resting state after being sent completely; Aggregation node is according to this request signal, new data more sent to routing node be temporary in the buffer memory of aggregation node, waits for that the sensing node timing dormancy wakes the back request msg up; The sensing node timing dormancy is waken the back up to the aggregation node request msg, and sensing node is waited for and replied not dormancy; The more new data that aggregation node will be kept in sends to sensing node; The more new data that sensing node will receive deposits in after verification is errorless in the nonvolatile memory of sensing node, and changes and to ask the more initial memory address of new data, enters resting state afterwards; Repeat above-mentioned steps, can finish the more download of new data of sensing node.
In step S103, the more new data that the Internet communication module, aggregation node, routing node and/or sensing node inspection are downloaded, and the realization that automatically resets is upgraded automatically.
Wherein, the more new data that the Internet communication module inspection is downloaded, and the automatic updating steps of realization that automatically resets specifically may further comprise the steps: the Internet communication module is with inner updating mark set, and startup resets; The Internet communication module is checked the whether set of inner updating mark, if updating mark does not have set, then continue to carry out upgrade before program; If updating mark set, check then whether the file identification and the version number of the transaction file in the nonvolatile memory of the Internet communication module meets the demands, if do not meet the demands, then continue to carry out upgrade before program; If meet the demands, then the more new data in the nonvolatile memory of the Internet communication module is read also programming and advanced in the program storage of the Internet communication module; Carry out and upgrade the back program.
Further, the file identification of the transaction file in the nonvolatile memory of inspection the Internet communication module and the step whether version number meets the demands can may further comprise the steps: whether the file identification of the transaction file in the nonvolatile memory of inspection the Internet communication module represents the transaction file of the Internet communication module; Whether the version number that checks transaction file simultaneously is newer than the fileversion number of the current operation of the Internet communication module; The file identification of the transaction file in the nonvolatile memory of the Internet communication module is represented the transaction file of the Internet communication module, and when the version number of transaction file is newer than the fileversion number of the current operation of the Internet communication module, meet the demands, otherwise do not meet the demands.
Wherein, the step of the more new data that described aggregation node inspection is downloaded is identical with the step of the more new data that the Internet communication module inspection is downloaded, and does not repeat them here.
Wherein, the more new data that the routing node inspection is downloaded, and the automatic updating steps of realization that automatically resets specifically may further comprise the steps: routing node is with inner updating mark set, and determine timing according to the degree of depth of corresponding routing node in wireless sensor network, when timing then, startup resets; Routing node is checked the whether set of inner updating mark, if updating mark does not have set, then continue to carry out upgrade before program; If updating mark set, check then whether the file identification and the version number of the transaction file in the nonvolatile memory of routing node meets the demands, if do not meet the demands, then continue to carry out upgrade before program; If meet the demands, then the more new data in the nonvolatile memory of routing node is read and the program storage of programming route by node in; Carry out and upgrade the back program.
Further, the file identification of the transaction file in the nonvolatile memory of inspection routing node and the step whether version number meets the demands can may further comprise the steps: whether the file identification of the transaction file in the nonvolatile memory of inspection routing node represents the transaction file of routing node; Whether the version number that checks transaction file simultaneously is newer than the fileversion number of the current operation of routing node; The file identification of the transaction file in the nonvolatile memory of routing node is represented the transaction file of routing node, and the version number of transaction file meets the demands, otherwise do not meet the demands when newer than the fileversion number of the current operation of routing node.
Further, determine that according to the degree of depth of corresponding routing node in wireless sensor network the step of timing may further comprise the steps: determine the degree of depth of corresponding routing node in wireless sensor network, when the father node of routing node is aggregation node, its network degree of depth is 1, the timing of this moment is the network degree of depth and the product of the basic timing that prestores, and this basic timing preferably is set to 15 seconds.The present invention determines the purpose of the reset time interval of routing node according to the network degree of depth, is in order to guarantee that to greatest extent routing node network topology structure before and after upgrading is unlikely to change.
Wherein, the more new data that the sensing node inspection is downloaded, and the more new data of automatically reset automatic updating steps of realization and routing node inspection download, and the above-mentioned steps that the realization that automatically resets is upgraded automatically is identical, does not repeat them here.
The update method of wireless sensor network provided by the invention is to utilize gateway node to upgrade to the remote update server requests, reach the purpose of upgrading each network node data of wireless senser, compared to the existing manual type that adopts, need not network node is carried out the on-site maintenance management, reduce maintenance cost, be specially adapted to the network operation of remote districts.
The above; only be the preferable embodiment of the present invention; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses; be equal to replacement or change according to technical scheme of the present invention and inventive concept thereof, all should be encompassed within protection scope of the present invention.

Claims (10)

1. the update method of a wireless sensor network is characterized in that, described wireless sensor network comprises gateway node, routing node and sensing node, and described gateway node comprises aggregation node and the Internet communication module, said method comprising the steps of:
After a described the Internet communication module and a update service device connected, described update service device sent more new data frame to the Internet communication module;
According to the function code in the described more new data frame, described the Internet communication module, aggregation node, routing node and/or sensing node down loading updating data;
The more new data that described the Internet communication module, aggregation node, routing node and/or sensing node inspection are downloaded, and the realization that automatically resets is upgraded automatically.
2. the update method of wireless sensor network as claimed in claim 1, it is characterized in that, described more new data frame comprises in order to distinguish upgrades aggregation node, the Internet communication module, routing node, or the function code of sensing node, when the function code in the described more new data frame is when upgrading described the Internet communication module in order to sign, the step of described the Internet communication module down loading updating data may further comprise the steps: described the Internet communication module, and is stored in the nonvolatile memory in the described the Internet communication module by FTP down loading updating packet from described update service device.
3. the update method of wireless sensor network as claimed in claim 2 is characterized in that, when the function code in the described more new data frame is that the step of described aggregation node down loading updating data may further comprise the steps when upgrading described aggregation node in order to sign:
Described the Internet communication module from described update service device by FTP down loading updating packet, and based on the ARQ agreement, send to described aggregation node by the interface between described the Internet communication module and the described aggregation node;
Described aggregation node judges based on the ARQ agreement whether the more new data packets of described the Internet communication module transmission is correct, is then described more new data packets to be stored in the nonvolatile memory of described aggregation node.
4. the update method of wireless sensor network as claimed in claim 3, it is characterized in that, whether correct described aggregation node return the Frame of an expression packet correctness to described the Internet communication module according to judged result after judging more new data packets that described the Internet communication module sends step; When described Frame represents that packet is correct, the Internet communication module then sends next more new data packets after receiving this Frame, when described Frame is represented packet error, described the Internet communication module resends a new data packets more after receiving described Frame.
5. the update method of wireless sensor network as claimed in claim 3 is characterized in that, the more new data that described the Internet communication module or aggregation node inspection are downloaded, and the automatic updating steps of realization that automatically resets specifically may further comprise the steps:
Described the Internet communication module or aggregation node are with inner updating mark set, and startup resets;
Described the Internet communication module or aggregation node are checked the whether set of inner updating mark, if described updating mark does not have set, then continue to carry out upgrade before program;
If described updating mark set, whether the file identification and the version number that then check the transaction file in the nonvolatile memory of described the Internet communication module or aggregation node meet the demands, if do not meet the demands, then continue to carry out the preceding program of renewal, if meet the demands, then the more new data in the nonvolatile memory of described the Internet communication module or aggregation node is read also programming and advanced in the program storage of described the Internet communication module or aggregation node;
Carry out and upgrade the back program.
6. the update method of wireless sensor network as claimed in claim 5, it is characterized in that the step whether file identification of the transaction file in the nonvolatile memory of described inspection the Internet communication module or aggregation node and version number meet the demands may further comprise the steps:
Whether the file identification of checking the transaction file in the nonvolatile memory of described the Internet communication module or aggregation node represents the transaction file of described the Internet communication module or aggregation node;
Whether the version number that checks transaction file simultaneously is newer than the fileversion number of described the Internet communication module or the current operation of aggregation node;
The file identification of the transaction file in the nonvolatile memory of described the Internet communication module or aggregation node is represented the transaction file of the Internet communication module or aggregation node, and when the version number of transaction file is newer than the fileversion number of described the Internet communication module or the current operation of aggregation node, meet the demands, otherwise do not meet the demands.
7. the update method of wireless sensor network as claimed in claim 2, it is characterized in that, function code in described more new data frame is to upgrade described routing node in order to sign, and when the father node of described routing node was described aggregation node, the step of described routing node down loading updating data may further comprise the steps:
Described aggregation node down loading updating data;
Described routing node sends poll transaction file sign and version number information with directed polling mode to described aggregation node;
After described aggregation node receives described poll transaction file sign and version number information, reply in the aggregation node sign of transaction file in the nonvolatile memory, version number and new data initial memory address in the nonvolatile memory in described aggregation node more to described routing node;
Described routing node is after receiving the information of aggregation node, if transaction file be designated the routing node transaction file, and when the version number of transaction file is newer than current operating file version number, described routing node sends the request signal of down loading updating data to aggregation node, the described request signal comprised ask new data more in the nonvolatile memory of aggregation node initial memory address and ask the more length of new data;
Described aggregation node is according to the described request signal, according to the length of asking new data more and the initial memory address of asking new data more more new data send to described routing node;
The more new data that described routing node will receive deposits in after verification is errorless in the nonvolatile memory of routing node, and the more initial memory address of new data is asked in change.
8. the update method of wireless sensor network as claimed in claim 7 is characterized in that, the more new data that described routing node inspection is downloaded, and the automatic updating steps of realization that automatically resets specifically may further comprise the steps:
Described routing node is inner updating mark set, and determines timing according to the degree of depth of corresponding routing node in wireless sensor network, when timing then, startup resets;
Described routing node is checked the whether set of inner updating mark, if described updating mark does not have set, then continue to carry out upgrade before program;
If described updating mark set, whether the file identification and the version number that then check the transaction file in the nonvolatile memory of described routing node meet the demands, if do not meet the demands, then continue to carry out the preceding program of renewal, if meet the demands, then the more new data in the nonvolatile memory of described routing node is read also programming and advanced in the program storage of described routing node;
Carry out and upgrade the back program;
Describedly determine that according to the degree of depth of corresponding routing node in wireless sensor network the step of timing may further comprise the steps: determine the degree of depth of corresponding routing node in wireless sensor network, described timing is the described network degree of depth and the product of the basic timing that prestores, and described basic timing be skilful second.
9. the update method of wireless sensor network as claimed in claim 2, it is characterized in that, function code in described more new data frame is to upgrade described sensing node in order to sign, and when the father node of described sensing node was described aggregation node, the step of described sensing node down loading updating data may further comprise the steps:
After described sensing node timing dormancy is waken up, send poll transaction file sign and version number information to aggregation node, send the laggard resting state of going into that finishes with polling mode;
After described aggregation node receives this poll transaction file sign and version number information, will be in the buffer memory of aggregation node to sensing node information temporary storage to be replied, wait for that the sensing node timing dormancy wakes the back request msg up, this information to be replied comprises in the aggregation node sign of transaction file in the nonvolatile memory, version number and new data initial memory address in the nonvolatile memory in aggregation node more;
Described sensing node timing dormancy is waken the request signal of back to described aggregation node transmission down loading updating data up, and described sensing node is waited for and being replied and not dormancy;
The return information for the treatment of that described aggregation node will be kept in sends to described sensing node;
After described sensing node receives the information of aggregation node transmission, if transaction file be designated the sensing node transaction file, and when the version number of transaction file is newer than current operating file version number, described sensing node timing dormancy is waken the back sends request signal from the down loading updating data to aggregation node up, the described request signal comprised ask new data more in the nonvolatile memory of aggregation node initial memory address and ask the more length of new data, enter resting state after being sent completely;
Described aggregation node is according to the described request signal, new data more sent to routing node be temporary in the buffer memory of described aggregation node, waits for that described sensing node timing dormancy wakes the back request msg up;
Described sensing node timing dormancy is waken the back up to the aggregation node request msg, and described sensing node is waited for and replied not dormancy;
The more new data that described aggregation node will be kept in sends to described sensing node;
The more new data that described sensing node will receive deposits in after verification is errorless in the nonvolatile memory of described sensing node, and changes and to ask the more initial memory address of new data, enters resting state afterwards.
10. the update method of wireless sensor network as claimed in claim 9 is characterized in that, the more new data that described sensing node inspection is downloaded, and the automatic updating steps of realization that automatically resets specifically may further comprise the steps:
Described sensing node is inner updating mark set, and determines timing according to the degree of depth of corresponding sensing node in wireless sensor network, when timing then, startup resets;
Described sensing node is checked the whether set of inner updating mark, if updating mark does not have set, then continue to carry out upgrade before program;
If updating mark set, check then whether the file identification and the version number of the transaction file in the nonvolatile memory of sensing node meets the demands, if do not meet the demands, then continue to carry out upgrade before program; If meet the demands, then the more new data in the nonvolatile memory of sensing node is read also programming and advanced in the program storage of sensing node;
Carry out and upgrade the back program;
Described according to determining that according to the degree of depth of corresponding sensing node in wireless sensor network the step of timing may further comprise the steps: as to determine the degree of depth of corresponding sensing node in wireless sensor network, described timing is the described network degree of depth and the product of the basic timing that prestores, and described basic timing is 15 seconds.
CN2011102312061A 2011-08-12 2011-08-12 Wireless sensor network updating method Pending CN102238603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102312061A CN102238603A (en) 2011-08-12 2011-08-12 Wireless sensor network updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102312061A CN102238603A (en) 2011-08-12 2011-08-12 Wireless sensor network updating method

Publications (1)

Publication Number Publication Date
CN102238603A true CN102238603A (en) 2011-11-09

Family

ID=44888691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102312061A Pending CN102238603A (en) 2011-08-12 2011-08-12 Wireless sensor network updating method

Country Status (1)

Country Link
CN (1) CN102238603A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595575A (en) * 2012-02-27 2012-07-18 杭州星纬物联技术有限公司 Full-network low-power-consumption algorithm using active and passive nodes by turns
CN102665196A (en) * 2012-04-28 2012-09-12 清华大学 On-line progressive program updating method for wireless sensor network
CN103686799A (en) * 2012-09-06 2014-03-26 苏州联科盛世科技有限公司 Method for updating sensing nodes in wireless sensor network
CN104535717A (en) * 2014-12-03 2015-04-22 河南汉威电子股份有限公司 Gas detector having on-line maintenance and upgrade functions as well as method thereof
CN105005800A (en) * 2015-06-11 2015-10-28 中国东方电气集团有限公司 Data updating method of electronic paper passive label
CN105046292A (en) * 2015-06-11 2015-11-11 中国东方电气集团有限公司 Energy consumption control method for electronic paper passive tag
CN105163333A (en) * 2015-06-18 2015-12-16 广东欧珀移动通信有限公司 Data processing method and data processing device
CN105306544A (en) * 2015-09-28 2016-02-03 成都世纪光合作用科技有限公司 Remote updating method
CN106453520A (en) * 2016-09-22 2017-02-22 合肥工业大学 Wireless program downloading method of collecting node of Internet of Things monitoring system
CN109348529A (en) * 2018-09-27 2019-02-15 深圳市欧瑞博科技有限公司 A kind of wireless communication method, terminal and computer readable storage medium
US20230396675A1 (en) * 2021-02-26 2023-12-07 C&Tech IoT COMMUNICATION SYSTEM SUPPORTING CONNECTION BETWEEN DEVICES

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765109A (en) * 2009-12-14 2010-06-30 浙江大学 Program dynamic updating method for wireless sensor network capable of resisting compromised node attack
CN101877723A (en) * 2010-06-18 2010-11-03 中兴通讯股份有限公司 Wireless sensor network node remote update system, method and equipment
CN102136934A (en) * 2010-10-21 2011-07-27 华为技术有限公司 Method, device and network system for realizing remote upgrading of Zigbee equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765109A (en) * 2009-12-14 2010-06-30 浙江大学 Program dynamic updating method for wireless sensor network capable of resisting compromised node attack
CN101877723A (en) * 2010-06-18 2010-11-03 中兴通讯股份有限公司 Wireless sensor network node remote update system, method and equipment
CN102136934A (en) * 2010-10-21 2011-07-27 华为技术有限公司 Method, device and network system for realizing remote upgrading of Zigbee equipment

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595575A (en) * 2012-02-27 2012-07-18 杭州星纬物联技术有限公司 Full-network low-power-consumption algorithm using active and passive nodes by turns
CN102665196A (en) * 2012-04-28 2012-09-12 清华大学 On-line progressive program updating method for wireless sensor network
CN102665196B (en) * 2012-04-28 2014-11-05 清华大学 On-line progressive program updating method for wireless sensor network
CN103686799B (en) * 2012-09-06 2016-08-17 苏州联科盛世科技有限公司 The update method of the sensing node in radio sensing network
CN103686799A (en) * 2012-09-06 2014-03-26 苏州联科盛世科技有限公司 Method for updating sensing nodes in wireless sensor network
CN104535717A (en) * 2014-12-03 2015-04-22 河南汉威电子股份有限公司 Gas detector having on-line maintenance and upgrade functions as well as method thereof
CN105046292B (en) * 2015-06-11 2018-05-22 中国东方电气集团有限公司 A kind of consumption control method of Electronic Paper passive label
CN105046292A (en) * 2015-06-11 2015-11-11 中国东方电气集团有限公司 Energy consumption control method for electronic paper passive tag
CN105005800B (en) * 2015-06-11 2018-05-22 中国东方电气集团有限公司 A kind of data-updating method of Electronic Paper passive label
CN105005800A (en) * 2015-06-11 2015-10-28 中国东方电气集团有限公司 Data updating method of electronic paper passive label
CN105163333A (en) * 2015-06-18 2015-12-16 广东欧珀移动通信有限公司 Data processing method and data processing device
CN105163333B (en) * 2015-06-18 2018-07-06 广东欧珀移动通信有限公司 A kind of data processing method and device
CN105306544A (en) * 2015-09-28 2016-02-03 成都世纪光合作用科技有限公司 Remote updating method
CN105306544B (en) * 2015-09-28 2019-12-17 成都世纪光合作用科技有限公司 Remote updating method
CN106453520A (en) * 2016-09-22 2017-02-22 合肥工业大学 Wireless program downloading method of collecting node of Internet of Things monitoring system
CN109348529A (en) * 2018-09-27 2019-02-15 深圳市欧瑞博科技有限公司 A kind of wireless communication method, terminal and computer readable storage medium
US20230396675A1 (en) * 2021-02-26 2023-12-07 C&Tech IoT COMMUNICATION SYSTEM SUPPORTING CONNECTION BETWEEN DEVICES

Similar Documents

Publication Publication Date Title
CN102238603A (en) Wireless sensor network updating method
US7539488B2 (en) Over-the-air download (OAD) methods and apparatus for use in facilitating application programming in wireless network devices of ad hoc wireless communication networks
EP3451716B1 (en) Systems and methods for using a mobile gateway in a low power wide area network
Kone et al. Performance management of IEEE 802.15. 4 wireless sensor network for precision agriculture
US7814478B2 (en) Methods and apparatus for use in updating application programs in memory of a network device
US8761706B2 (en) Passive RF devices that communicate using a wireless network protocol
CN103685227A (en) Wireless notification system and method for electronic rodent traps
CN106411843A (en) Server initiated remote device registration
US9185630B2 (en) Management of the connections of relay nodes to form an ad hoc network
JP6841368B2 (en) Wireless sensor system, wireless terminal device, communication control method and communication control program
CN103797863A (en) Wireless sensor networks
CN105306332A (en) Wireless local area sub-network of the Internet of things and data interaction method among networking devices thereof
CN104144466A (en) Access method for sensor in Internet of Things, Internet of Things system and server
JP2022046709A (en) System for connecting beacon device and gateway device
CN112566155B (en) Networking method, device and system
KR20150063072A (en) Data packet transport and delivery system and method
KR100744214B1 (en) Wireless network communication control apparatus and network system
US20150244611A1 (en) System, device, and method for communicating data over a mesh network
JP7152452B2 (en) Server device, communication device, terminal device, communication system, program and update method
CN105071953A (en) Internet-of-things intelligent equipment firmware and application upgrading method
KR101231285B1 (en) System of Radio Frequency IDentification and cummunication method of Radio Frequency IDentification
FI4014471T3 (en) A method of and an arrangement for communicating by a server with a node device of a network of interconnected node devices
KR20200021397A (en) Method and apparatus for updating software of device by using wireless communication system
CN103442021A (en) Network access method of wireless sensor nodes in centralized control type wireless sensor network
CN114339938B (en) System and method for optimizing transmission reliability of airborne wireless sensor network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111109