Hi, The command BuildSource.makeSF() does not create a serial forwarder, it rather tries to connect to one.
In the code I would either use a call to BuildSource.makePhoenix(PrintStreamMessenger.err) to create a default packet source, or to BuildSource.makePhoenix(srcURL, PrintStreamMessenger.err) to connect to a specific source URL. For instance if you are using tmotes on a linux system, the following srcURL might work: "serial@/dev/ttyUSB0:tmote". Cheers, Urs [EMAIL PROTECTED] schrieb: > Hi, > > 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, > > Can u any body help me ? > Cheers, > B. _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
