<< 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. .
txrx_wsn_sink
, the others using project
txrx_wsn_node
.cat /dev/comx | ./txrx_wsn.py
on the computer hosting the sink node. You should see a graph similar to the one below.
Notification Switch
Would you like to follow the 'Ezwsn: experimenting with wireless sensor networks using the ez430-rf2500' conversation and receive update notifications?