• Transducers radio buttons. Eight radio buttons
that allow the user to select which transducers ac-
tivate on the Motes during the experiment.
• Online Data check button. If selected, the data
are sent to the sink in real-time when they are ac-
quired by the target Mote.
• Store Info. If selected, the acquired data are
stored in the flash memory of the target Mote
(these two last options can be jointly checked).
• Target Mote text box. Specifies the ID of the
Mote from which to acquire data. Note that, in or-
der to avoid collisions, only one mote is allowed
if the Online Data modality is set, that is the real-
time data can be received from one mote at a time.
• Broadcast checkbox. This option is available
only for the Store Info mode and to erase the flash
memory of the motes. By checking it, the storing
of data in the flash memory, or its deletion, can be
requested contemporarily on all the motes.
• Note textbox. It allows the user to associate the
experiment entry with a textual comment.
• Command buttons Start, Stop, Download, and
Reset Flash. Once a new experiment entry has
been created, the sampling task is activated by
clicking on the Start button. As consequence, the
Mote specified in the Target Mote text-field will
start sending its acquired data and they will be
visualized in the GUI. If the Store Info modality
was set, the blue LED toggling on the Motes noti-
fies the writing of the acquired data into the flash
memory. The Stop button terminates the sampling
task. This command can also be sent in broadcast
by checking the Broadcast checkbox. To down-
load the data stored in a Mote into the database,
the button Download is used. In order to avoid
collisions, this operation is allowed for only one
Mote at a time. The green LED toggling on the
target Mote notifies the reading from the flash.
The receiveddata are stored in the DataSample ta-
ble of the database in the same order as they have
been acquired in the Mote and they are stored with
the reference to the experiment in the table Ex-
periments that contains the timestamps at which
the sampling started and the sampling frequency.
The Reset button erases the flash memory of the
Mote. This operation may take a long time and its
progress is signaled by the red LED on the Mote:
it is on during the execution of the operation and it
is turned off when it is completed. This command
can also be sent in broadcast. It is important to ex-
ecute this command in order to have always clean
data.
Figure 3: The GUI of the data logger.
5 CONCLUSIONS
In this article we have presented a data logger for
WSN that allows both real-time data acquisition
and storing on the acquired data in the flash mem-
ory of the Motes for off-line analysis. The soft-
ware is freely downloadable at www.nmis.isti.cnr.it/
gennaro/logger.zip and runs on Linux where Postgres
DBMS (www.postgresql.org) is installed. As future
developments, we aim at providing the possibility to
execute the on-line data acquisition on all the sensors
at the same time, by implementing a mechanism for
avoiding the collision of the packets.
REFERENCES
Arora, A., Dutta, P., Bapat, S., Kulathumani, V., Zhang,
H., Naik, V., Mittal, V., Cao, H., Gouda, M., Choi, Y.,
Herman, T., Kulkarni, S., Arumugam, U., Nesterenko,
M., Vora, A., and Miyashita, M. (2004). A line in the
sand: A wireless sensor network for target detection,
classification, and tracking. Computer Networks (El-
sevier, 46:605–634.
Baronti, P., Pillai, P., Chook, V. W., Chessa, S., Gotta, A.,
and Hu, Y. F. (2007). Wireless sensor networks: A sur-
vey on the state of the art and the 802.15.4 and zigbee
standards. Computer Communications, 30(7):1655 –
1695. ¡ce:title¿Wired/Wireless Internet Communica-
tions¡/ce:title¿.
Culler, D., Estrin, D., and Srivastava, M. (2004). Guest
editors’ introduction: Overview of sensor networks.
Computer, 37:41–49.
SENSORNETS2013-2ndInternationalConferenceonSensorNetworks
68