> Don't know about forward portability, but the basic question boils down to: > Do you want your Java code to connect directly to the serial port (meaning > always run on the local host that has the programmer attached), or do you > want to always have to start SerialForwarder on the local host and be able > to connect your program from anywhere on the net (modulo firewalls etal). > > If your code is always local, use MoteIF or BuildSource. Otherwise you > need SF to be your local intermediary. My personal belief system defines > SF as an unnecessary and confusing annoyance, but YMMV. >
The other advantage of SF (probably the main one in my mind) is that you can have multiplex your serial port using it. I use one app (like Listen) to log incoming packets and another app to display the useful data from the packets. This does not work so well if you connect to the serial port directly. Also, from the initial question, Im not sure why you are required to change your java code? All you need is to set the MOTECOM environment variable as described in the SerialComm documentation. http://www.tinyos.net/tinyos-1.x/doc/serialcomm/index.html KAR. _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help