![]() ![]() btw, I’m using a standard arduino USB host shield not the – could that be the issue? In non pairing mode it sits at the waiting for connection even though it says its – ok, I ordered another one. Sometimes fails to solid white following is an example of that: nothing more happens) after line Bluetooth pin is set too: 0000 – light continues to blink in the pairing mode sequence L2CAP Connection Request – PSM: 00 11 SCID: 00 42 Identifier: 02 I’ve just enabled the EXTRADEBUG in BTHID and get this output on a failed pairing connection: In this run the BT pairing happens almost instantaneously and the front controller goes to solid blue LeftHatX: 129 LeftHatY: 138 RightHatX: 122 RightHatY: 124 In paring mode I can get it connected maybe one time in 5.įollowing output was from one of the successful connections I’m still completely unable to get a connection in non-pairing mode. I forgot to mention in my previous post that the front LED goes solid white – so maybe it does some to be connected at some level but is not getting complete connection? ![]() The code was inspired by this Linux driver. It is now also possible to control the rumble and light as well. For more information see this excellent Wiki: by Frank Zhao. To enable the full output the code sends out a get feature report. The problem is that the controller does not send out this information via Bluetooth by default. I now also figured out how to read the IMU and touchpad data via Bluetooth. It allows you to read the gyroscope, accelerometer and touchpad as well. Please leave a comment below if you got any questions and I will answer as quickly as possible.Ī USB version of the library is now also available. ![]() I still haven’t written a library to use it via USB, but I will do that in the coming weeks, when I have time. I will work on making all the Bluetooth classes like that, so it will reduce the footprint of the libraries, but also make it much easier to maintain, as all the L2CAP communication would be handled in only one class. This is much more modular and easier to maintain. The PS4 Bluetooth library actually uses the BTHID library to handle all the Bluetooth communication. You should also check out the readme which will always have the newest information available. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |