Yes, MIB600 is pingable. The correct way of connecting with
SerialForwarder is:

1. Start SF and enter the IP and port of your MIB600 to the appropriate
boxes

2. export [EMAIL PROTECTED]:9001

3. Run your java app

I suspect you've started SF with the MIB600 IP and the java connection
is refused because SF has already occupied the device (if you've done
step 1 mentioned above).

As Michael said, you don't need SF if there's only one listener app, in
that case your approach should work.

Regards,

        Harri 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Michael Schippling
Sent: Thursday, September 28, 2006 4:26 AM
To: David Tacconi
Cc: [email protected]
Subject: Re: [Tinyos-help] Fwd: MoteIF error with XBow MIB600

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-h
> elp
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel
p

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

Reply via email to