Hello,

 

I have compiled the Surge application using:

 

make cricket

 

Then I have installed the program in the base station:

 

make cricket reinstall.0

 

I have also done in a different mote:

 

make cricket reinstall.1


Then I went to tools/java/net/tinyos/surge I have typed:

 

make

 

Then, I have connected the base station to my computer using a serial cable and 
I have started both motes (the base station and the other one).

I have executed:

 

java net.tinyos.surge.MainClass 125

 

Then, I obtain the following error:



$ java net.tinyos.surge.MainClass 125
Using AM group ID 125 (0x7d)
Starting mote listener...
java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:426)
        at java.net.Socket.connect(Socket.java:376)
        at java.net.Socket.<init>(Socket.java:291)
        at java.net.Socket.<init>(Socket.java:119)
        at net.tinyos.packet.SFSource.openSource(SFSource.java:56)
        at net.tinyos.packet.AbstractSource.open(AbstractSource.java:77)
        at net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)
java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:426)
        at java.net.Socket.connect(Socket.java:376)
        at java.net.Socket.<init>(Socket.java:291)
        at java.net.Socket.<init>(Socket.java:119)
        at net.tinyos.packet.SFSource.openSource(SFSource.java:56)
        at net.tinyos.packet.AbstractSource.open(AbstractSource.java:77)
        at net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)
s...@localhost:9001 died - exiting (java.net.ConnectException: Connection 
refused:
 connect)

 

Could you please tell me what is the problem?

 

Thank you very much!

 

Sofia

 
> Date: Tue, 16 Jun 2009 13:37:24 -0700
> Subject: Re: [Tinyos-help] Question about rounting protocols for tinyos-1.x
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
> On Tue, Jun 16, 2009 at 3:28 AM, sofia
> aparicio<[email protected]> wrote:
> > Hello,
> >
> > I am using Cricket motes and I want to create a wireless network. I have
> > several motes but only 1 base station. I need a routing protocol to send the
> > information from every mote to the base station. Sometimes the mote is far
> > from the station and data has to be send through other motes.
> > Do you have any library for tinyos-1.x to do that? I have seen that you have
> > a ctp (colleting tree protocol) for tinyos2.x. But Cricket motes only work
> > with tinyos1.x
> > I would like to know if you have something similar for this version of
> > tinyos.
> 
> You can look at Surge application for an example on how to use
> multihop routing libraries in TinyOS 1.x.
> 
> - om_p

_________________________________________________________________
Nuevo Windows Live, un mundo lleno de posibilidades. Descúbrelo.
http://www.microsoft.com/windows/windowslive/default.aspx
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to