Wirelessly Uploading Code From Android Studio?

Our robotics team is new to Android Studio this year. We initially relied on a USB cable for code uploads to our robot. At our first qualifier, we discovered the possibility of wireless code uploads. Unfortunately, we couldn’t ask other teams about this method.

We are currently using the REV Hardware Controller software for wireless uploads. However, we’ve noticed that it uploads the code twice, and the process takes significantly longer (29+ seconds) compared to wired uploads (19-22 seconds). Sometimes it doesn’t what to upload the code at all. So Frustrating

What is the most efficient and reliable method for wirelessly uploading code from Android Studio to our robot?

Thanks!

Wireless deploys won’t be any faster, but for convenience, I just use adb (Android Debug Bridge) on the command line while using a wifi usb adapter so that I have a second wifi adapter to connect to the Control Hub with. Using a second adapter you can be connected to your home or school network at the same time you are connected to the Control Hub.

There’s a short writeup on using adb directly here: Managing a Control Hub — FIRST Tech Challenge Docs 0.2 documentation

The biggest challenge is often figuring out where the Android Studio installation put adb on your file system.

1 Like