Just tossing in a few cents that probably won't make any sense...but...

The addr: 192.168.2.8:10002 is that of the MIB600? If so this is what
SF will want to attach to. I dunno if the MIB is pingable, but you
might see if it responds at that addr.

It's not clear if it's your app or SF that is returning your error...
If it's the app, you probably need to change the MOTECOM to one
appropriate for the SF, not the MIB. Although I would think that
you could dispense with SF and go directly to the MIB...

If you can run netstat on the .2.8 host you can see what state
that port is in, it might not be accepting for some reason. Often
a reboot is in order to clear the TCP state machine. The same goes
for the SF port on whatever host it is running.

Also there could be permission problems...say your app is actually
an applet...It's too bad, but Connection Refused is kinda a catchall,
maybe you can debug in and see where it is really throwing.

MS



David Tacconi wrote:
Hello,


I am trying to connect with a java application to a MIB600 (the ethernet one). I first do

export [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> :10002
i
n my cygwin window and then I run SerialForwarder and my java app.
Although the same application works when I am running it with MIB510, then over the serial port, when I try to run it on top of SerialForwarder, I get the following Exception:


java.net.ConnectException : Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress (PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java :516)
        at java.net.Socket.connect(Socket.java:466)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:179)
at net.tinyos.packet.NetworkByteSource.openStreams (NetworkByteSource.jav
a:54)
        at net.tinyos.packet.StreamByteSource.open(StreamByteSource.java:52)
        at net.tinyos.packet.Packetizer.openSource(Packetizer.java:119)
        at net.tinyos.packet.AbstractSource.open (AbstractSource.java:77)
        at net.tinyos.packet.Packetizer.open(Packetizer.java:114)
        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:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java :195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:516)
        at java.net.Socket.connect (Socket.java:466)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:179)
at net.tinyos.packet.NetworkByteSource.openStreams(NetworkByteSource.jav
a:54)
        at net.tinyos.packet.StreamByteSource.open(StreamByteSource.java:52)
        at net.tinyos.packet.Packetizer.openSource(Packetizer.java:119)
        at net.tinyos.packet.AbstractSource.open(AbstractSource.java :77)
        at net.tinyos.packet.Packetizer.open(Packetizer.java:114)
        at net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)
[EMAIL PROTECTED]:10002 died - exiting (java.net.ConnectException: Connection
refused: connect)

SerialForwarder is correctly receivin packets also with MIB600. The MOTECOM variable looks correctly set from the exception.

I looked in the web for similar errors, but I did not find anything. I asked also the Crossbow assistance, but they told it is neyond their knowledge.

Do you have any idea of what is happening here? Is it just that the MoteIF class is not working with ethernet base stations as MIB600?

Thanks in advance,
David


--
_______________________________________
David Tacconi
Telecommunication and Software Engineer
+393478683464


------------------------------------------------------------------------

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

Reply via email to