On 6/4/07, Ákos Maróy <[EMAIL PROTECTED]> wrote:
I can't seem to get the TOSComm JNI shared object to work on my system.
Even though my mote seems to send data fine (connecting to it with
kermit show that it the TestSend sample app sends data regularly) - I
just can't make any of the Java-based TinyOS 2.x apps read from my mote.

I also tried the C-based sf application from the TinyOS 1.5
distribution, but whenever I wanted to chain it to a TinyOS 2 Java-based
stuff, it says: protocol error.

You want the C based sf application from TinyOS 2.x. It's in
tinyos-2.x/support/sdk/c.

So, I guess the easiest thing to do is to write a javacomm-based
connector to comminicate with the mote. This raises two questions:

- where do I find a description of the TinyOS serial protocol?
- is there a way to implement this so that the Java-based apps that are
distributed with TinyOS 2 work? (Or, are they hard-wired to use TOSComm?)

There's some stuff in TEP 113
http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep113.html

There's a description (see the comment at the beginning) and implementation in
tinyos-2.x/support/sdk/java/net/tinyos/packet/Packetizer.java
The description was more readable before someone carelessly
reformatted it (insert some line breaks before the dashes ( - ) to fix
this).

David Gay

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to