EnvisaLink 4 TPI Issues: Regular timeouts
Posted: Fri Apr 22, 2016 8:46 am
I've been working on a TPI application and for the most part everything is working fine. I'm seeing some issues with the reliability of the connection to the EVL, though. After some random amount of time, the socket read times out, and for several seconds after that, I can't connect at all. Eventually I can connect again, but it takes a minute or two before I can connect again.
Here's the code connection log ->
Any thoughts?
Here's the code connection log ->
Code: Select all
2016-04-22 08:42:46.125 VirtualKeypad[74433:5067239] Did read data: %00,01,1C08,08,00,****DISARMED**** Ready to Arm $
2016-04-22 08:42:46.125 VirtualKeypad[74433:5067239] Set panel status to: ****DISARMED**** Ready to Arm
2016-04-22 08:43:06.125 VirtualKeypad[74433:5071371] Disconnected with error: Error Domain=GCDAsyncSocketErrorDomain Code=4 "Read operation timed out" UserInfo={NSLocalizedDescription=Read operation timed out}
2016-04-22 08:43:11.637 VirtualKeypad[74433:5071371] Connected...
2016-04-22 08:43:11.640 VirtualKeypad[74433:5071371] Disconnected with error: Error Domain=GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo={NSLocalizedDescription=Socket closed by remote peer}
2016-04-22 08:43:21.674 VirtualKeypad[74433:5069323] Connected...
2016-04-22 08:43:21.677 VirtualKeypad[74433:5069323] Disconnected with error: Error Domain=GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo={NSLocalizedDescription=Socket closed by remote peer}
2016-04-22 08:43:36.714 VirtualKeypad[74433:5073801] Connected...