On 3/10/06, David Moss <[EMAIL PROTECTED]> wrote:
> Let me know if the message payload size gives you any problems.  I uploaded
> some changes this morning to reflect a 28-byte payload maximum, which should
> be compatible with everyone's system.
>
> Before, I had the payload sizes of the FlashViewer messages set to my
> environment - 30 byte payloads, and that wasn't compatible with the default
> TinyOS java stuff.  I set all my AM.h payload lengths to 30 bytes because I
> wanted MicaZ's and TelosB's to interact seemlessly, and the micaz's payload
> size was 29 bytes while telos's were 28.
>
> So try it out and if it doesn't work, let me know
> -David

I can't get it to work, but the problem is related to the payload size
issue you describe.

I checked out the latest version from cvs to get the updated source
code, but the directory "tools", containing all the java code, was
missing so I had to use the dir from the zipfile. In the cvs version
the apps directory also only contained the Eavesdropper application,
not the FlashViewer, JDebug or TestHarness apps, but I got them from
the zip as well.

The apps/FlashViewer (from the zip) compiled without problems and I
was able to put it on a mica2 mote, but when I tried to compile the
java application tools/com/rincon/flashviewer (also the one from the
zip file) I got this error:

com/rincon/flashviewer/DataOutput.java:35: package
net.tinyos.flashimage.messages does not exist
import net.tinyos.flashimage.messages.JDebugMsg;
                                      ^
com/rincon/flashviewer/DataOutput.java:36: package
net.tinyos.flashimage.messages does not exist
import net.tinyos.flashimage.messages.NodeReply;

I can't find "flashimage" anywhere either in the base-tos tree, the
rincon cvs files or the zip file. Without flashimage I couldn't
recompile the java code for tools/com/rincon/flashviewer but
fortunately it was already compiled in the zip file so I was able to
run it.

With apps/FlashViewer on the mote and SerialForwarder running, I ran
the tools/com/rincon/flashviewer java program:

$ java com/rincon/flashviewer/FlashViewer -ping
receive error for com.rincon.flashviewer.messages.ViewerMsg (AM type
161): invalid length message received (too short)

The apps/FlashViewer program demonstrates nicely how the BlockRead and
BlockWrite works, but it would still be nice to have a working app.
Would you mind giving cvs another go so a clean checkout includes
everything you need to get the app to work. (or explain what I'm doing
wrong now).

Regards
/Kasper

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

Reply via email to