<< Chapter < Page Chapter >> Page >

The source code is contained in project txrx_wsn This code is available in the downloadable source code . Open source_code/iar_v4.11/lab_ezwsn.eww with IAR. The project corresponding to this section is called txrx_wsn . . By default, each node transmits every 5+rand(5) seconds at -16dBm , on channel 0 . The sink node prints the content of the received packets.

Project txrx_wsn can not be compiled with the free edition of IAR because code size it larger than 4kB. Projects txrx_wsn_node and txrx_wsn_sink contain already compiled binary code for nodes and sink, respectively If you have a full edition of IAR, you can use project txrx_wsn directly. You will need to modify boolean IS_SINK_NODE in source file onehopmac.h to program either nodes or sink. .

  • Program only one board for the whole network using project txrx_wsn_sink , the others using project txrx_wsn_node .
  • Use PuTTY to read from the sink node and switch on the other motes.
  • enter command cat /dev/comx | ./txrx_wsn.py on the computer hosting the sink node. You should see a graph similar to the one below.
    connectivity_graph
    An example outputted graph with 12 nodes. Links interconnect neighbors; colors indicate link quality in dBm.
  • You may move nodes away from each other to obtain a multi-hop graph.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Ezwsn: experimenting with wireless sensor networks using the ez430-rf2500. OpenStax CNX. Apr 26, 2009 Download for free at http://cnx.org/content/col10684/1.10
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Ezwsn: experimenting with wireless sensor networks using the ez430-rf2500' conversation and receive update notifications?

Ask