Hello!
I am working with a arduino uno, Keyes USB host shield and Bluetooth dongle. Together with the PS3BT library (and example code) I have easily been able to connect to my PS3 control (clone) :).
However when I lose connection to the PS3 controller and the usb host it wont reconnect. For instance if I reload software, push reset button or go out of range with the controller.
To be able to reconnect I need to remove and insert the BT dongle, alternatively toggle the power supply to the board.
Anybody have any experience with this library and know what may causing the error? I am grateful for all help I can receive!
I have enabled the debugging which output following in the different scenarios.
Inserting BT Dongle
Bluetooth Dongle Initialized
HCI Reset complete
Write class of device
Local Bluetooth Address: 00:1B:10:00:2A:EC
Wait For Incoming Connection Request
Connecting with PS3 controller
Keyboard is connecting
Incoming Connection Request
Remote Name: PLAYSTATION(R)3Conteroller-PAN�
Connected to Device: 02:AD:93:8E:63:25
HID Control Incoming Connection Request
HID Control Successfully Configured
HID Interrupt Incoming Connection Request
HID Interrupt Successfully Configured
Wait For Incoming Connection Request
Dualshock 3 Controller Enabled
00 00 00 00 00 7F 7F 7F 7F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 04 14 00 00 00 00 23 6D 77 01 1D 02 00 02 00 01 80 02 00
00 00 00 00 00 7F 7F 7F 7F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 04 14 00 00 00 00 23 6D 77 01 1D 02 00 02 00 01 80 02 00
........
Resetting Arduino board with reset button to simulate issue
HCI Reset complete
Write class of device
Local Bluetooth Address: 00:1B:10:00:2A:EC
Wait For Incoming Connection Request
Trying to connect PS3 controller (looks like it connects :/)
Keyboard is connecting
Incoming Connection Request
Remote Name: PLAYSTATION(R)3Conteroller-PAN�
Connected to Device: 02:AD:93:8E:63:25
HID Control Incoming Connection Request
Wait For Incoming Connection Request
Stuck, controller does not work