8 years, 9 months ago.

Pairing the Controller and Dongle

Hi, I'm trying to use this library and I believe that I have the circuit set up correctly for the USB connection to the Xbox Dongle, but when I try to pair my controller to it I can never get it to land on the "Player 1" light status and the code's execution never makes it past the "while(!xpad.connect())" stage. What I've tried doing: While the Xbox 360 controller is on, I pressed the "pair" button on the top of the controller and the LEDs started doing the running in circles animation. Then while that was running, I pressed the button on the Xbox dongle which caused it to flash on and off. Immediately afterward, the Xbox 360 controller started doing a solid flash on and off of all the LEDs.

If anybody still watches this page and has any suggestions, any help would be greatly appreciated!

Question relating to:

Funny this, trying to repurpose my now RRoD'd controller. getting the same trouble. Wish I new more...

posted by edward dalton 25 Jul 2015

1 Answer

8 years, 9 months ago.

Have you tried pairing through a PC first? Using the Microsoft program first to make sure it does link. I'm sure you have though. I'm using the wireless board out of my Xbox. Its a working input for my laptop, so why not the Mbed?

I haven't paired through a PC, however I have used the same dongle on an Arduino project using a USB Host shield and it's library (the library's page is https://github.com/felis/USB_Host_Shield_2.0 and links to the hardware sites). I have had no problem using the Xbox360 controller through the libraries provided with the shield, but one of the reasons I chose the LPC1768 was for the ability to connect the dongle and essentially convert my previously Arduino-based project to an mbed one. My wiring setup looks like this https://drive.google.com/file/d/0B_YsOwRGeVOJTVpobHFtSnNMT2s/view?usp=sharing I have the D+ and D- bridged to ground via two 15K ohm resistors like the diagram specified for the LPC1768, and Vcc is connected to the 3.3V regulated supply (I believe that's what Vcc usually gets connected to). The light on the dongle lights up, but in the Xpad_HelloWorld program on my LPC1768 I get the output "Waiting on connect..." and the dongle fails to pair with the remote.

posted by Nick Mosher 10 Aug 2015