When Wi-Fi Direct connected but our robot didn't
Our Android phones could see each other on Wi-Fi Direct, but the FTC Driver Station still would not connect to the Robot Controller. With GitHub Copilot helping us investigate and build, we turned a frustrating reset into an open-source recovery tool that other phone-based teams can try.
Connected to Wi-Fi isn't the same as connected to the robot
On October 12, our phone-based Robot Controller and Driver Station were in a Wi-Fi Direct group, and both responded on the network. The Robot Controller web service was available. Still, the Driver Station was stuck connecting: a working network path had not become a working FTC app-to-app session.
That distinction mattered. It kept us from treating a successful ping or a visible Wi-Fi group as proof that the Driver Station had discovered the robot.
Look at each layer before changing things
With the user's permission, we used Android debugging and FTC logs alongside GitHub Copilot to compare the two ends of the connection. The apps were both version 12.0, the Driver Station had the required permissions, and the Robot Controller was reachable. But the Driver Station logs showed CONNECTING without the fresh connection-information event and peer discovery we expected.
A stale Wi-Fi Direct group or mismatch in app state was our leading hypothesis, not a proven root cause. After a targeted disconnect and reconnect, the team confirmed the connection worked again. That result led us to build a repeatable, student-friendly recovery path rather than assume every Wi-Fi problem has the same cause.
From investigation to FTC Reconnect
We used GitHub Copilot as a development and troubleshooting partner while building an Android companion app around the public Wi-Fi Direct APIs. Our first version checked the Driver Station, removed its FTC group, discovered the named Robot Controller, paired and verified its local web service before opening the official Driver Station app.
In one observed recovery, the helper reached ready in about 6.3 seconds. The Driver Station then received connection information, discovered the Robot Controller peer and showed the robot stopped. That's one successful trial, not a promise of the same timing or success on every device.
The current public version supports both phones and lets teams save their own exact device names. It is an unofficial helper, not a replacement for either FTC app. The code and signed release are available in our FTC-Robotics repository.
Try it with your team
Park and stop the robot first. Never run recovery during a match. FTC Reconnect is for two Android phones using a phone-based Robot Controller and Wi-Fi Direct; it does not support a REV Control Hub hotspot. Check the current README for requirements, permissions and the latest instructions.
- Install the signed release on both phones. Save the same exact, case-sensitive Driver Station and Robot Controller names on each, and grant the requested Wi-Fi Direct permissions.
- On the Robot Controller phone, tap Fix Connection. If a full reset is offered, proceed only when it is safe to disconnect every device in that active Wi-Fi Direct group. Open the official Robot Controller app when prompted.
- On the Driver Station phone, tap Fix Connection. Accept any pairing request on the Robot Controller phone, then confirm that the official Driver Station says Connected.
Work on one phone at a time; don't run both fixes or toggle Wi-Fi on both phones simultaneously. The app's What's Wrong? option inspects the link without disconnecting or pairing, but it cannot verify the FTC handshake.
What this does—and doesn't—prove
- The helper never presses INIT or START, starts an OpMode, changes robot code or drives the robot.
- It uses public Android APIs; it does not require root or modify the official FTC apps. Permissions and Android versions still matter.
- We observed a successful recovery on our setup. Other failures, phones, group states and competition environments need their own testing; a successful Wi-Fi connection is not by itself proof of a Driver Station handshake.
- FTC Reconnect is an unofficial team tool. Follow current FIRST rules and event staff instructions, and check the official Driver Station connection before operating.
Code and further reading
- Cookie Coders FTC-Robotics repository
Source, setup instructions, safety details and the latest release.
- Android Wi-Fi Direct documentation
Android's public peer-to-peer discovery and connection APIs.
- FIRST Tech Challenge Robot Controller repository
Official FTC software and documentation.