Asked — Edited

Ezb Controller Disconnects With Error

My EZB controller keeps disconnecting after a couple of minutes and issues the message below, any ideas as to the problem?

Comm Err: System.IO.IOException: Unable to read data from the transport connection: 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. ---> System.Net.Sockets.SocketException: 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 at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at EZ_B.EZB.Ux3dmvwAYl(Int32 , Byte[] cmdData) BbytesToExpect: 2 ? Received: 0 0 Disconnected


ARC Pro

Upgrade to ARC Pro

ARC Pro is more than a tool; it's a creative playground for robot enthusiasts, where you can turn your wildest ideas into reality.

#1  

Are you doing anything when it disconnects? Ie what controls are you using? What devices are connected to the ez-b?

PRO
USA
#2  

I'm not using ARC and no scripts are running. The controls open are Read ADC, Connection Box, Script Manager, Sound Servo, Speech Settings and Speech Synthesis. I get this error within 5 minutes of connecting to EzRobot. Just sitting there doing nothing.

PRO
Synthiam
#3  

Is your ezb damaged?

Does it make the startup sound when powered on? Does it make a connection sound when ARC connects?

Lastly, try removing some controls and see if one of them is timing out the connection. Or at least pause the controls before connecting. Diagnose the issue with process of elimination :)

PRO
USA
#4  

Makes the connection sound and I get connected via WIFI great. Working through process of elimination.

PRO
Synthiam
#5  

Nice. Keep me updated

#6  

Try turning off your anti virus protection. Also make sure you have a good WiFi signal and you're using a uncrowded channel.

PRO
USA
#7  

It is the Read ADC Value control. It does it even when the sensor is disconnected from the robot. If I have the control not paused but nothing connected to the robot. I get disconnected.

PRO
USA
#8  

So I have tried different ports and different interval times up to 1500 ms. The connection still drops. Any other things to try?

#9  

You simply can't let the adc control run. It takes up too much resources. I only use it to quickly check the port voltage then pause it. Another thing you can try is to open up the control and adjust how often it reads the voltage. I slowed mine down to 250 ms and that seemed to help.

I'm told that the new v4/2 ezb is much faster and this is not an issue (unless it's your system that is slow).

PRO
USA
#10  

Dave. Thanks, good to know. Didn't realize it couldn't just run. I moved it to 2000 still knocks it offline, but it takes longer.

PRO
Synthiam
#11  

dbeard - it technically shouldn't knock it offline. What happens if you pause the control during connection, and unpause after connecting?

I suggest upgrading your ez-b with EZ-B v4/2 Comm Upgrade

Also, to answer dave's question - i doubt you'll ever be able to flood the data channel on an iotiny or ezb v4.x/2... they're remarkable

PRO
USA
#12  

I will try that, If the control is paused (when I connect and never unpause it), runs without disconnecting. My EZB upgrade arrives tomorrow!

PRO
Synthiam
#13  

Woo! You're going to love the upgrade.

ARC has grown sooooooooooooo much with features that the first generation EZ-B has trouble keeping up. Sometimes silliness happens with the first gen ez-b v4. I'm pretty excited for you to experience the ez-b v4.x/2!

I'm going to make a quick video today on how to perform the upgrade. Nothing fancy, but at least it'll demonstrate how to do :D