About Buffer On Wireless Sensor Network
Background
I recently had a request from a customer about whether WSN nodes could save data if a gateway failed. I was aware of the flash available on board and got to work on a possible solution. This is a solution that I came up with (by no means the only way).- If
you read the WSN node manuals the official advice is that the flash on
board not be used to buffer data. This is because every time you write
to the flash it requires an erase and you only have a finite number of
erases. With this in mind:
- I have designed this to only log when the network is lost.
- I have added the ability to check the current levels.
- I would only use this when you really need it, you will limit the life of your nodes but obviously this is a calcuation you need to make. Additionally you could alter the firmware to change the rate at which you log to extend the life.
- This does require the WSN module and programmable nodes as it involves you working on custom firmware for the nodes.
- The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at:http://ni.com/samplecodelicense.
Attached Code
There are three parts to the attached code. There is a lot to this so the majority of the information is in the attached documentation.- WSN File Buffer Library: A library centered around an FGV to perform the buffering on the WSN node.
- Example Firmware: An example WSN application written for the 3212 that implements the buffering and an example command set.
- Host API: A LabVIEW class which talks to the example firmware to extract the relevant information.
More
Komentar
Posting Komentar