On Apr 26, 2010, at 7:41 AM, arthi p wrote:

> Hi all,
>  
> I tried to run DIP protocol in TOSSIM and motelab. My apps folder contained 
> EasyDisseminationAppc.nc, EasyDisseminationC.nc,makefile, datainject.java 
> files.
> When I tried to give the cmd "java DipInject 0a 2 "ab cd ef" am getting the 
> following error.
>  
> $ java DipInject 0a 2 "ab cd ef"
> Usage: java DipInject [key] [version] [hex data delimit space in quotes]
> Key: 10
> Version: 2
> Data: 171 205 239
> getenv JNI library not found. Env.getenv will not work
> (run the tos-install-jni tool, see man tos-install-jni for more details)
> s...@localhost:9002 died - exiting (java.net.ConnectException: Connection re
>  connect)
>  
> while testing in motelab i do not know to upload which class file..also i am 
> getting the following error in motelab.
>  
> DBLOGGER ERROR: dbDump: could not extract AMTYPE from message class. Exiting.
> java.lang.NoSuchFieldException: AM_TYPE
> at java.lang.Class.getField(Class.java:1520)
> at dbDump.parseClasses(dbDump.java:213)
> at dbDump.main(dbDump.java:736)
>   
> Please help me out.. Can you tell me how to run the DIP in tossim and also in 
> motelab.
>  
> Thanks and Regards,
> Arthi

Well, this is pretty clearly not an error in the DIP protocol, but rather an 
error in how you're setting up your Java environment.

The first error is because either you don't have a serial forwarder running or 
it died for some reason -- chances are this isn't a TinyOS code issue; are you 
running a serial forwarder? Is it connected to the mote in question? Please 
read the tutorials on these topics.

As for Motelab, you're best off contacted them; I don't believe folks at 
Harvard check this list for motelab issues.

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

Reply via email to