Hi,
When you run the Listen tool, you get the hex numbers, right? Seems to
be working then. The listen tool prints simply the message contents (as
hex numbers). So apparently you receive messages from the mote.
For more information check the tutorial:
http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder
Here is a document that was mentioned in another thread on this
mailing-list. It should give you more information about the data format
of the packets.
http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Packets.pdf
Cheers,
Urs
Hazem Al- Ojeh wrote:
Hi all,
I am using Cygwin on winxp, tinyos2.0.2;
I run tos-check-env with no errors.
I tried running TestSerial but it did not work, so then i tried:
$ java net.tinyos.tools.Listen -comm [EMAIL PROTECTED]:57600 (because i am using
mica2).
it said i needed jni, so after searching on the mail list, I ended up copying
toscomm.dll and getenv.dll from /usr/lib/tinyos to the java bin.
but now when i run $ java net.tinyos.tools.Listen -comm [EMAIL PROTECTED]:57600
i get hex numbers like:
00 FF FF 00 00 02 00 09 18 82
00 FF FF 00 00 02 00 09 18 83
00 FF FF 00 00 02 00 09 18 84
00 FF FF 00 00 02 00 09 18 85
00 FF FF 00 00 02 00 09 18 86
etc...
I also tried tos-locate-jre --jni but it did give me the right path
how ever when I type, tos-install-jni it still does not work, and i also tried
to open the tos-install-jni.in file and change the bin/sh to bash, but i still
cant install it or find *-32.dll anywhere... i still get the same results as
above when ever i run $ java net.tinyos.tools.Listen -comm [EMAIL
PROTECTED]:57600.
anyone knows whats wrong?
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help