[Tinyos-help] TelosB, SimpleCmd, and TOSBase
Bridget Benson
bridgetb at gmail.com
Thu Jan 25 19:28:22 PST 2007
I have two telosb motes. I have one mote connected to my PC running the
program 'TOSBase' and other mote connected to my laptop running
'SimpleCmd.' I used the java BcastInject tool on the PC to send the command
led_on to the motes. The mote on the PC (running TOSBase) toggles the red
led each time I send the command. This makes sense because in the TOSBase
code we have:
if (call RadioSend.send(radioQueue[radioOut]) == SUCCESS) {
call Leds.redToggle();
However, the mote on the laptop does not respond - and doesn't even appear
to be receiving any command as I'm running net.tinyos.tools.Listen on the
laptop and do not receive any data when I send a command from the PC.
I read some past posts on this topic and one post mentioned that I may have
update the .h files to make the messages word-allgined (16 - bit). I'm not
exactly sure what .h files this post refers to (I'm assuming the SimpleCmd.h)
and am not sure how to change the message to make it word-alligned. This
may be a secondary issue because as I mentioned, I don't even seem to be
receiving any packets, let alone not interpreting them correctly.
My overall goal is to be able to send data from one mote (Mote A) to the
other mote (Mote B) via the radio and then be able to send a command from
the PC to increase the rate at which Mote A sends info to Mote B.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070125/0000b1ff/attachment.html
More information about the Tinyos-help
mailing list