Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked
Resolved Resolved by Dave Schulpius!

Ezb 4 Keeps Disconnecting

Here is the error message.

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.uLPj05fKtsNO6QRVyY6(Object , Object , Int32 , Int32 )
at EZ_B.EZB.odIYt9CUmk(Int32 , Byte[] cmdData)
BbytesToExpect: 12

Received: 0 0 0 0 0 0 0 0 0 0 0 0
Disconnected


Any idea as to what is causing this?


Related Hardware EZ-B v4

ARC Pro

Upgrade to ARC Pro

ARC Early Access will give you immediate updates and new features needed to unleash your robot's potential!

AI Support Bot
Related Content
Synthiam
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
PRO
Canada
#1  
I get this error up stairs. Did you try and move closer to your wifi router?
PRO
Synthiam
#2  
Or the ezb is browning out. What’s connected to it? Ezrobot has some good info to diagnose their controller on their website to. But mostly that’s caused to something drawling too much current. Or you’re not connected at all. Or there’s a virus scanner preventing connection. Or there’s a loose wire on an i2c connection.
PRO
Canada
#3  
Brown outs are fun. I also get this when I have a lot of servos connected.   I find enabling and disabling servo's as required helps especially when I calibrate.  I have to run several calibration frames each focusing on specific servo group versus all servos when I have a lot of them connected.
PRO
Synthiam
#4   — Edited
If you initialize servos into positions at startup - do so one at a time. That'll prevent a large current spike that may brown out the ezb. Just remember to check these things..

- something drawling too much current browning out ezb
- dropping wifi connection because it is poor connection or interference (change wifi channel in ezb)
- there’s a virus scanner preventing connection
- there’s a loose wire on an i2c connection.
#5   — Edited
If it turns out to be a power issue browning outing the EZB you should do a couple things. 

*Make sure your power supply is capable of supplying the needed peak amps all your devices need all at once. 
*Bypass the EZB and run the wires that feed your motors/servos directly from the power supply. Don't feed your motors/servos from the EZB power out & ground. pins. 
*If you must attach your motors/servos power wires to the EZB there is a hack that may keep your motors from drawing too much current from the EZB. It involves attaching a Super Capacitor to the EZB.  Here's a couple links to show you how and what to use:

https://synthiam.com/Community/Questions/Specific-Recommendation-For-Power-Adapter-4522/comments
https://synthiam.com/Community/Questions/Ping-Jeremie-1663/comments