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 MOTECOM and opens the port, so you could set it directly.

MS


Manjunath Prabhu wrote:
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 want to send the came packet over COM12 and COM13.

I want to change the MOTECOM variable dynamically using java. It would be great if some of you could provide some pointers.

Thanks,
Manjunath


------------------------------------------------------------------------

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

Reply via email to