dbeard
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?
I get this error up stairs. Did you try and move closer to your wifi router?
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.
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.
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..
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
Thanks everyone.