[Tinyos-help] Set MOTECOM variable through java

2006-01-31 Thread Manjunath Prabhu
Hi all, Is there any method using which i can set the MOTECOM variable using java? I want to send packets over specific COM ports using MoteIF.send(). Currently I am using "[EMAIL PROTECTED]:tmote java net.tinyos.tools.test" from command line to send a packet using my "test" program over COM11. I w

Re: [Tinyos-help] Set MOTECOM variable through java

2006-01-31 Thread Michael Schippling
Since Java refuses to believe that there are environment variables we have to supply our own JNI impl of getenv(), which you can see in tinyos-1.x/tools/java/jni/net_tinyos_util_Env.c You could add your setenv() there. Or perhaps easier to dig a little deeper into the java code that reads the