USB port current overload issue

Good Morning everyone, we are starting to have issues with our XRP units when the students connect to our laptops one of two errors arise either:

USB Device cannot be recognized or Power surge in USB port.

We have not changed anything with how we have been running our robots. But it just spontaneously arose.

Hi there, sorry to hear you’re having trouble!

If you turn the power switch on with the batteries installed, do both power LEDs turn on? Does any part of the control board get hot? If so, are you able to pinpoint which spot is getting hot? Please be careful to not burn yourself!

Some other users have reported a similar issue, but I’ve not been able to determine the root problem. If the control board is truly unusable, submit an RMA and link to this thread. If you ship the board back to us, then I can poke around with it to hopefully determine the root problem.

Thanks!

I’ve had a similar issue with some XRPs in the past. Usually, it comes from a python program still running on the XRPs for some reason that causes an issue. If you are using the XRPCode site editor, try pressing the reset button while connected to the site. This reboots the XRPs and allows them to reconnect to the site and fix themselves in my experiences.

However, this method is unfortunately not perfect, as one XRP we have is just plain corrupted and unusable, as every time we connect it the USB Device cannot be recognized error pops up. Hope the above fix works!

Yes, it can be difficult for XRPCode, and other programs, to stop the XRP when it is in a tight loop. We suggest adding a sleep timer when doing tight loops. Things get worse when we start to use bluetooth as there are more challenges to restarting the XRP to get its attention. Since we write the main.py that is in charge of starting your program, we also know when your program ends. We are looking at a future version where if we see the XRP restarting and the last program did not finish, then we don’t re-run the program and just go to the REPL. While there are some programs that are designed to never end, you would just have to hit reset twice to get them to run again. Curious on the communities thought on this.