Hello arduino friends;
I've been trying to conect a ps4 controller to an arduino, and I successfully achieve that objective with a USB cable. The thing is that I am not able to conect it by bluetooth and I would like to ask you for help.
I'm using a USB host, a bluetooth dongle and the USB host library 2.0, first of all, I'm the code i'm working with is the PS4BT example. With that being said I will describe you what I've done and what I've tried.
The first thing I did was to plug the dongle in the USB host and see what message the console showed, I only got this message:
PS4 Bluetooth LibraD: 0A5C PID: 4500
BTD Init Failed, error code: D1
PS4 Bluetooth Library Started
Unknown Device Connected - VID: 0A5C PID: 4500
BTD Init Failed, error code: D1
Reading the code I found this "//USBHub Hub1(&Usb); //Some dongles have a hub inside", I deleted the first "//" so the code wasn't undestood as a comment and then, when I uploaded to the arduino, I got this message in the console:
PS4 Bluet
Unknown Device Connected - VID: 0A5C PID: 4502
BTD Init Failed, error code: D1
PS4 Bluetooth Library Started
Unknown Device Connected - VID: 0A5C PID: 4502
BTD Init Failed, error code: D1
Unknown Device Connected - VID: 0A5C PID: 4503
BTD Init Failed, error code: D1
Bluetooth Dongle Initialized
No response to HCI Reset
HCI Reset complete
Write class of device
Local Bluetooth Address: 00:1A:7D:0A:C4:C3
Please enable discovery of your device
Couldn't find HID device
Wait For Incoming Connection Request
Then I have tried to connect the PS4 controller by holding down the PS and Share button at the same time but nothing happened, I have also tried to disconnect the dongle, connect the PS4 controller by USB and then disconnecting the controller and connecting the dongle but I only got this message:
Unknown Device Connected - VID: 054C PID: 05C4
BTD Init Failed, error code: D1
Do you have any idea fix it? Thank you and sorry for my grammar, english is not my native language.