Wireless Code Upload
It is possible to upload code onto your Robot Controller (RC) without a USB cord. (Please note that these instructions assume that (a) you are using Android Studio and (b) Android Studio already functions normally.)
​
First, connect the Robot Controller to the computer, and connect the Robot Controller and the computer to the same Wi-Fi network. Alternatively, connect the computer to the Robot Controller's Wi-Fi Direct network. (This is preferable as it is usually faster and is also FTC legal to do in the Pit at competition as per Game Manual Part 1, Section 4.3, Rule T5.)
​
Then, open command prompt and type
​
adb start-server
then
adb tcpip 5555
then
adb connect [RC IP address]
​
The IP address of your RC can be found by the following steps: Open Wi-Fi settings and click "advanced". There should be a field called "IP address" that will contain the IP address of the RC.
Note: These instructions are for a ZTE speed. Procedure may vary for other brands.
​
Or, if you are using the RC's Wi-Fi Direct, go into "advanced settings" on the RC app. The advanced settings will tell you the IP address of the RC for the Wi-Fi Direct network.
​
​
At this point, the RC should be connected to the computer wirelessly. Unplug the RC from the computer. Now, when you try to run the application from Android Studio, the phone will still show up in the list of connected devices.
​
IMPORTANT NOTE: According to the game manual, it is NOT LEGAL to do this at a competition by connecting to a Wi-Fi network there. However, according to the game manual, it is legal for a computer to connect to the RC in the pit during competition using Wi-Fi direct to program it, so that method is legal.