Re: [Tinyos-help] Use SerialForwarder or MoteIF?

2006-07-26 Thread Karthik Dantu
> 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


Re: [Tinyos-help] Use SerialForwarder or MoteIF?

2006-07-25 Thread Michael Schippling

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.

MS



Conor Todd wrote:
Hi.  I'm writing a bit of Java code to run on a PC connected to mote 
network.  I'm currently using TinyOS-1.x, but at some point I'm sure 
I'll move to TinyOS-2.x.  For my java code, should I connect to a Serial 
Forwarder to receive packets, or should I use MoteIF to connect directly?


The documentation in MoteIF would make it seem like it's far better than 
Serial Forwarder, and yet everyone seems to be using Serial Forwarder.

Thanks!

- Conor




___
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