Looks like you two might be experiencing the same problem in some way.  Raja
- were you able to download files in the /contrib/rincon/tools/java
directory?  It shows on my CVS these files were uploaded to HEAD, so they
should exist for everybody to download just like the other directories on
there.  If they're not there, then obviously something went wrong on my end.

The DataOutput.java file contains two imports that shouldn't be there and
are not referenced, from the net.tinyos.flashimage.messages directory.  It
is possible to remove these two import lines from the top of the
DataOutput.java file to get the file to compile.  Since the
net.tinyos.flashimage directory existed on my system, I didn't get this
error before uploading.

I have uploaded the changes to CVS.  Thanks for the catch, Kasper, and sorry
for the issues in getting this going on your system,

David







-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kasper
Bonne
Sent: Monday, March 13, 2006 7:00 AM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] write/read from flash on telosb mote


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
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to