Issues with depoloying over USB-B on Ubuntu

I have been having some issues with deploying code over USB on Ubuntu 20.04 with Gradle 7.3.3 and 2022 WPIlib. Whenever I attempt to deploy code over USB-B, Gradle spits out this error:

> Task :discoverroborio
Discovering Target roborio
admin @ 172.22.11.2: Resolved but not connected.
  Reason: TimeoutException
  Discovery timed out.
admin @ 10.22.40.2: Resolved but not connected.
  Reason: TimeoutException
  Discovery timed out.
admin @ roborio-2240-FRC.frc-field.local: Failed resolution.
  Reason: RuntimeException
  Unknown Host
admin @ roborio-2240-FRC.lan: Failed resolution.
  Reason: RuntimeException
  Unknown Host
admin @ roborio-2240-FRC: Failed resolution.
  Reason: RuntimeException
  Unknown Host
admin @ roborio-2240-FRC.local: Failed resolution.
  Reason: RuntimeException
  Unknown Host

Meanwhile, when I plug in the cable, it hangs on “Configuring network address” and after a while, I get a notification saying Wired Connection 0 was disabled. This is likely not an issue with the robot or the cable as it works on other (Windows) laptops. If you need any more info, I will be happy to provide it, thanks for any help.

The USB connection does not work on anything except for Windows. I know there are some ways to get it to work on Linux, but iirc it requires messing with drivers and is a pain.

Thanks for the help, I guess I’ll just switch out ethernet cables.

Hey - just saw this. Check out my work here:

Basically, the RIO is expecting a dhcp server to give it an address when connected over USB so you need to supply it with one. No driver twiddling needed - just some config.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.