Mac OSX [E] Socket has gone
Posted: 22 Apr 2012 16:10
This is similar to other posters but not clear to me if it was resolved. I can't get Z connector to talk to my USB stick and stay connected on OSX.
I am using Aeon USB Z Wave USB adaptor and Mac OSX Lion. I have installed SiLABS USB driver and when inserted the USB stick appears in /dev as cu.SLAB_USBtoUART.
I have compiled z-agent using the make command, and I have edited the Run_Z-agent.su file to reflect the correct device name... I also switched on --debug. Here is the output going through a couple of loops. It appears that the server is sending 01 03 00 07 FB a few times and getting no response then drops. The second loop there is a bunch of data waiting from the USB device. Server responds 06 three times then reverts back to 01 03 00 07 FB three times before closing the connection. This goes on but the server keeps closing the connection. I am guessing that the server isn't getting a response back from the USB device before timing out?
Opening device...
[D] Configuring device...
[D] Creating a socket...
[D] Enabling keep-alives on the socket...
Connecting to server...
[D] Initialising OpenSSL environment...
[D] Allocating SSL context...
[D] Loading personal certificate...
[D] Loading personal certificate key...
[D] Loading CA certificate...
[D] Setting verification mode...
Establishing SSL connection...
[D] Allocating SSL session...
[D] Assigning socket...
Performing SSL handshake...
[D] Initialising SSL state...
[D] Sending handshake...
[D] Server has closed the SSL connection
[D] Shutting down SSL session...
[D] Freeing SSL session...
Establishing SSL connection...
[D] Allocating SSL session...
[D] Assigning socket...
Performing SSL handshake...
[D] Initialising SSL state...
[D] Sending handshake...
Loop started
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] Server has closed the connection
[E] Socket has gone
Loop ended
[D] Shutting down SSL session...
[D] Freeing SSL session...
[D] Freeing SSL context...
Opening device...
[D] Configuring device...
[D] Creating a socket...
[D] Enabling keep-alives on the socket...
Connecting to server...
[D] Initialising OpenSSL environment...
[D] Allocating SSL context...
[D] Loading personal certificate...
[D] Loading personal certificate key...
[D] Loading CA certificate...
[D] Setting verification mode...
[I] Establishing SSL connection...
[D] Allocating SSL session...
[D] Assigning socket...
[I] Performing SSL handshake...
[D] Initialising SSL state...
[D] Sending handshake...
[D] Server has closed the SSL connection
[D] Shutting down SSL session...
[D] Freeing SSL session...
[I] Establishing SSL connection...
[D] Allocating SSL session...
[D] Assigning socket...
[I] Performing SSL handshake...
[D] Initialising SSL state...
[D] Sending handshake...
[I] Loop started
[D] device has data
[D] 135 bytes:
[D] 01 2B 01 07 03 07 00 86 00 02 00 01 FE 80 FE 88
[D] 0F 00 00 00 FB 97 7F 82 07 00 00 80 00 80 00 00
[D] 00 00 00 00 00 00 00 00 00 00 00 00 C2 01 2B 01
[D] 07 03 07 00 86 00 02 00 01 FE 80 FE 88 0F 00 00
[D] 00 FB 97 7F 82 07 00 00 80 00 80 00 00 00 00 00
[D] 00 00 00 00 00 00 00 00 00 C2 01 2B 01 07 03 07
[D] 00 86 00 02 00 01 FE 80 FE 88 0F 00 00 00 FB 97
[D] 7F 82 07 00 00 80 00 80 00 00 00 00 00 00 00 00
[D] 00 00 00 00 00 00 C2
[D] socket has data
[D] 1 bytes:
[D] 06
[D] socket has data
[D] 1 bytes:
[D] 06
[D] socket has data
[D] 1 bytes:
[D] 06
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] Server has closed the connection
[E] Socket has gone
[I] Loop ended
[D] Shutting down SSL session...
[D] Freeing SSL session...
[D] Freeing SSL context...
I am using Aeon USB Z Wave USB adaptor and Mac OSX Lion. I have installed SiLABS USB driver and when inserted the USB stick appears in /dev as cu.SLAB_USBtoUART.
I have compiled z-agent using the make command, and I have edited the Run_Z-agent.su file to reflect the correct device name... I also switched on --debug. Here is the output going through a couple of loops. It appears that the server is sending 01 03 00 07 FB a few times and getting no response then drops. The second loop there is a bunch of data waiting from the USB device. Server responds 06 three times then reverts back to 01 03 00 07 FB three times before closing the connection. This goes on but the server keeps closing the connection. I am guessing that the server isn't getting a response back from the USB device before timing out?
Opening device...
[D] Configuring device...
[D] Creating a socket...
[D] Enabling keep-alives on the socket...
Connecting to server...
[D] Initialising OpenSSL environment...
[D] Allocating SSL context...
[D] Loading personal certificate...
[D] Loading personal certificate key...
[D] Loading CA certificate...
[D] Setting verification mode...
Establishing SSL connection...
[D] Allocating SSL session...
[D] Assigning socket...
Performing SSL handshake...
[D] Initialising SSL state...
[D] Sending handshake...
[D] Server has closed the SSL connection
[D] Shutting down SSL session...
[D] Freeing SSL session...
Establishing SSL connection...
[D] Allocating SSL session...
[D] Assigning socket...
Performing SSL handshake...
[D] Initialising SSL state...
[D] Sending handshake...
Loop started
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] Server has closed the connection
[E] Socket has gone
Loop ended
[D] Shutting down SSL session...
[D] Freeing SSL session...
[D] Freeing SSL context...
Opening device...
[D] Configuring device...
[D] Creating a socket...
[D] Enabling keep-alives on the socket...
Connecting to server...
[D] Initialising OpenSSL environment...
[D] Allocating SSL context...
[D] Loading personal certificate...
[D] Loading personal certificate key...
[D] Loading CA certificate...
[D] Setting verification mode...
[I] Establishing SSL connection...
[D] Allocating SSL session...
[D] Assigning socket...
[I] Performing SSL handshake...
[D] Initialising SSL state...
[D] Sending handshake...
[D] Server has closed the SSL connection
[D] Shutting down SSL session...
[D] Freeing SSL session...
[I] Establishing SSL connection...
[D] Allocating SSL session...
[D] Assigning socket...
[I] Performing SSL handshake...
[D] Initialising SSL state...
[D] Sending handshake...
[I] Loop started
[D] device has data
[D] 135 bytes:
[D] 01 2B 01 07 03 07 00 86 00 02 00 01 FE 80 FE 88
[D] 0F 00 00 00 FB 97 7F 82 07 00 00 80 00 80 00 00
[D] 00 00 00 00 00 00 00 00 00 00 00 00 C2 01 2B 01
[D] 07 03 07 00 86 00 02 00 01 FE 80 FE 88 0F 00 00
[D] 00 FB 97 7F 82 07 00 00 80 00 80 00 00 00 00 00
[D] 00 00 00 00 00 00 00 00 00 C2 01 2B 01 07 03 07
[D] 00 86 00 02 00 01 FE 80 FE 88 0F 00 00 00 FB 97
[D] 7F 82 07 00 00 80 00 80 00 00 00 00 00 00 00 00
[D] 00 00 00 00 00 00 C2
[D] socket has data
[D] 1 bytes:
[D] 06
[D] socket has data
[D] 1 bytes:
[D] 06
[D] socket has data
[D] 1 bytes:
[D] 06
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] Server has closed the connection
[E] Socket has gone
[I] Loop ended
[D] Shutting down SSL session...
[D] Freeing SSL session...
[D] Freeing SSL context...