Newbie on SBL2e: timeout on port 1000?
Posted: Sat Jun 04, 2011 8:34 pm
Hi everyone,
I am running a .Net application on a Windows box, talking to the SB2LE over the network via port 1000, and using it to turn a relay on and off on the GPIO pins.
When I start up, I can connect using a System.Net.Sockets.TcpClient object, and send messages like P07=1 and P07=0 to turn the relay on and off to my heart's content.
After an hour, if I try again, the .net runtime returns this error:
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host
If I attempt to reconnect on port 1000, the command that worked previoulsy throws the following error:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.0.174:1000
If I power the SB2LE down and up again, then I can connect and toggle the pins just fine.
Any suggestions as to what I am doing wrong?
Thanks.
Marc
I am running a .Net application on a Windows box, talking to the SB2LE over the network via port 1000, and using it to turn a relay on and off on the GPIO pins.
When I start up, I can connect using a System.Net.Sockets.TcpClient object, and send messages like P07=1 and P07=0 to turn the relay on and off to my heart's content.
After an hour, if I try again, the .net runtime returns this error:
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host
If I attempt to reconnect on port 1000, the command that worked previoulsy throws the following error:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.0.174:1000
If I power the SB2LE down and up again, then I can connect and toggle the pins just fine.
Any suggestions as to what I am doing wrong?
Thanks.
Marc