04-07-2022 07:15 PM - edited 04-07-2022 07:19 PM
We have a RoboRio 1 that seemed to function fine for two competitions. We added a camera using the I2C port and soon after it would lose Coms.
We removed the camera and corresponding code but continue to have the same dropped Coms issue. Restarting the RoboRio would “fix” things for a few minutes then we started to get memory full errors.
We reflashed the device and this got things working for 20 minutes or so. Once we started to have dropped Coms issues we also noticed our autonomous code would seem to skip steps. Restarting the RoboRio would correct this for 10-15 minutes and the back to random actions.
We noticed thus issue in 2020 as well but time limitations made it necessary purchase a replacement.
Solved! Go to Solution.
04-08-2022 07:28 AM
Thanks for posting.
If you view the driver station logs, does the memory gradually grow? (https://docs.wpilib.org/en/stable/docs/software/driverstation/driver-station-log-viewer.html)
What programming language are you using?
04-08-2022 11:01 AM
We use Java, and when we get the out of memory error there is nothing gradual about it. We turned in the robot and then tried to upload the code.
The only thing that changed between when it worked and now is we tested code for a Pixycam attached using I2C.
We have not tested that code on a different RoboRio to see if we get similar results.
04-11-2022 10:03 AM
Is the camera still connected?
Do you still have code for for it?
If you boot the rio into safe mode, are you able to image the rio and have it stay on long enough to deploy code? (https://docs.wpilib.org/en/stable/docs/software/roborio-info/recovering-a-roborio-using-safe-mode.ht...)
04-11-2022 11:02 AM
We no longer have anything connected to it, it was removed and replaced on our Competition bot as it will not sustain a communications connection for more than a few minutes.
We were finally able to get code loaded onto it on the test bench, it stayed connected for a couple minutes and then lost comms again. At this point since NI has no interest in doing anything about it, we will likely toss it out as we have no use for a RoboRio that cannot maintain communications.
The last attempt to get things running we removed the Pixy cam and all the code. We finally got it to reimage and then wrote some simple code to loot at line break sensors to test them for margin of error purposes. About 3 minutes after starting the code we lost comms again.
04-11-2022 11:14 AM - edited 04-11-2022 11:16 AM
NI is interested in supporting your success. I'm trying to verify if it is an odd hardware issue warranting an RMA, or an issue with software that will persist even if you got a new one.
When you say "it was removed and replaced on our Competition bot as it will not sustain a communications connection for more than a few minutes." do you mean that another rio is running with the same software without issue?
> "... got it to reimage and then wrote some simple code to loot at line break sensors to test them for margin of error purposes. About 3 minutes after starting the code we lost comms again."
Does this issue persist in safe mode? (when no code is running)
04-11-2022 12:47 PM
Yes, We replaced the problematic RIO with a spare one we took off of a previous robot. No change to the code, simply updated the RIO to this years firmware and uploaded our current code. This one does not have the same issues as the one we took off.
As for whether or not the issue persist in safe mode, I am not sure as we only ran it long enough to test range of a line break sensor and then it lost Comms again so we turned it off and put it in on a shelf with our recycle electronics to dispose of at the end of the season.
We will be in the build room this evening preparing for our upcoming competition. I can have our programming lead run tests and post results if there is something specific you would like to see.
04-11-2022 02:23 PM
I would appreciate confirmation that if the rio is booted into safe mode that it continues to report memory errors and loose coms after a short time.
I'll also send you a private message on how to start the RMA process.
04-11-2022 03:12 PM
I will have the programmers put it back on the test bench and run it in safe mode when we get to the shop.
04-11-2022 05:31 PM
We cannot get the Rio to connect in Safe Mode over wireless. Using USB in safe mode we can see the Rio to reflash but no communications to the drive station.