Input/Output error

General discussion of using Roboclaw motor controllers
Post Reply
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: Input/Output error

Post by Basicmicro Support »

If you follow the hole trace the error is in the serial class(eg pyserial). This is not part of our code so we cant do much to debug the problem.

If you are using the USB to control the roboclaw this is the most likely cause. It appears to be a port failure in the serial port library which would happen if a USB Virtual Com Port had a glitch. Its a fact that noise from DC motors can cause problems with USB. This is most evident on Windows systems but I would not expect Linux to be able to recover 100% of the time. You may be able to modify the code to catch the exception and then re-initialize the serial port.

The easier solution, if you are using USB is to use a USB isolation adapter or switch to a TTL serial. I've had very good luck with USB Isolation adapters on Windows(not a single glitch since I started using one.

Post Reply