Perhaps Urs's advice has helped the initial problem but I would
recommend that you just skip the SF processes and go directly to the
serial ports. You could start a java thread to wait on each port and
deliver the data for whatever processing you wish...

Anyway there is indication in the T1 tools that you can do something
like this:

        PacketSource ps = BuildSource.makePacketSource( "<motecom-value>" );
        ps.open(PrintStreamMessenger.err);

        while( (packet = ps.readPacket()) != null )
                // do stuff

where "<motecom-value>" is what you would normally put in the MOTECOM
environment variable, e.g.: [EMAIL PROTECTED]:mica2

MS


[EMAIL PROTECTED] wrote:
The problem is that I would like to connect several base stations to a
juste one pc in the way that they can communicate to the java
application which is running on this pc.

My idea was to have a SerialForwarder for each base station in the way
that they can communicate to my application on diffrent ports.
That's why I need to use SerialForwarder rather than any other packet
source.
Does anybody have an idea about how can I handel the problem below:
Cheers,
B.

"I create a SerialForwarder and I try to associate it to moteIF object
as below:

PhoenixSource source =
BuildSource.makePhoenix(BuildSource.makeSF(this.hostname,9002),PrintStreamMessenger.err);

           MoteIF mote=new MoteIF(source);

When I run the programe I get this:

[EMAIL PROTECTED]:9002 died - exiting (java.net.ConnectException: Connection
refused)

I've checked there is no other SerialForwarder or another application which
is running on this port .I've tried to unset MOTECOM but it's useless"
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

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

Reply via email to