[Tinyos-help] serialsend.c problem
Vijay Gabale
vijay.gabale at gmail.com
Fri Jun 12 21:07:55 PDT 2009
Hi all,
I have to send some x bytes of data every y milliseconds to the mote. The
java program in TestSerial (tests/TestSerial) works good but I want the c
program sdk/c/sf/serialsend.c to do the same task. Unfortunately when I make
the serialsend.c send some data, the mote does not receive it.
Digging deeper, it seems that the java defines AM_TYPE to be 0x89 which we
have to specify while defining AMRecieverC(AM_TYPE). I do not know where the
c program does this. When I printed the AM_TYPE serialDispatcherP.nc
(lib/serial) for the c program, it showed "12". Now even when I set AM_TYPE
to 12 in the program to be installed on the mote, I do not receive any
packets.
If anyone has working tinyos program along with serialsend.c, I would be
more than obliged if you could send it.
Vijay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090613/659c6d35/attachment-0001.htm
More information about the Tinyos-help
mailing list