We have written a simple code and attempted to deploy the code. The build is successful and communication with the robot is all clear. The comm light is red. I have reformatted the roboRIO with 2022.4.0. I noticed in the build.gradle that is uses 2022.4.1. I installed the latest version of FRC game tools and still nothing has changed. Does anyone know how I can fix this problem
Those versions you mentioned are the correct versions. GradleRio and the roborio image versions don’t need to match (though there are compatible/incompatible versions, but that’s a different conversation).
I’m not sure I understand what issue you’re having. If the Comm light on the driverstation is red, then that’s a connectivity issue, not a code (or code deployment) issue. When you say “communication with the robot is all clear”, what do you mean?
This is a common issue this year.
The only fix is re-imaging the rio. Hope it doesn’t happen between elims matches
In the Driver station, the Robot Communication colour is green, but Robot Code is still red after building and deploying the code
And the comm light is red on the roboRIO not the driver station
Ah okay. Yeah, solid red COMM light on the rio means no code is running, which matches what the DS is displaying (comms but no code).
Status Light Quick Reference — FIRST Robotics Competition documentation
Either your code is crashing (though I’d expect to see it restart periodically), or something else is going on (i.e. what those other threads @jtrv mentioned says). Can you check riolog for errors? Also you can try SSHing into the Rio to check the actual log file in case it’s just not making it back to the DS.
This is the only thing I get from the message console:
Warning 44004 FRC: The Driver Station has lost communication with the robot. Driver Station
Warning 44002 Ping Results: link-bad, DS radio(.4)-bad, robot radio(.1)-bad, roboRIO(.2)-bad, FMS-bad FRC: Driver Station ping status has changed. Driver Station
Info roboRIO: Game data update “” received by Robot
Warning 44008 76.046 74.545
FRC: Robot radio detection times.
Warning 44000 DS Disable Driver Station
Warning 44000 DS Disable Driver Station
Warning 44000 DS Disable Driver Station
Warning 44000 DS Disable Driver Station
Warning 44000 DS Disable Driver Station
Warning 44000 DS Disable Driver Station
Warning 44000 DS Disable Driver Station
Warning 44000 DS Disable Driver Station
Warning 44000 DS Disable Driver Station
Warning 44000 DS Disable Driver Station
This is what I get from the Driver Station
I also don’t see anything from the RIO log, it is completely empty
Has this radio been to any event where you have reprogrammed it? Did you remember that you need to flash it back to the stand alone mode so you can use the radio?
no this robot hasn’t seen competition yet, but I have a new radio on it
This sort of problem is unfortunately common and hard to debug. Some more suggestions for you:
- Check that your RoboRIO has the latest image (2022_v4.0 or later) of the right type for your device (v1 or v2). See Imaging your roboRIO.
- Check your DriverStation version (22.0 or later)
- I’m assuming you are connecting via WiFi. Does it work if you use an Ethernet tether? What about if you use a USB tether?
- Can you ping the RoboRIO? Can you SSH in?
- Can you post a screenshot of the terminal output in VS Code?
We faced a similar issue once and our solution was re-imaging the roboRIO.
Thank you for your quick reply. When I connect with USB or ethernet I face the same issue. I am still trying to figure out how to ping and SSH the roboRIO. Here is a screenshot of the terminal output.
I have already tried re-imaging the robot, nothing changed.
Do you have a window that looks like the “BUILD SUCCESSFUL” portion of the screenshots here?
Here are some instructions. You should find it at 10.40.69.2.
Are you sure there’s no error in your code that’s preventing it from running?
Yes. I see “BUILD SUCCESSFUL” every time I deploy the code.
VS Code isn’t underlining anything. I am not sure if there could be a bug in my program causing this error
That’s the terminal output. Can you provide a screen shot of it?