If I remember correctly there were two paths through the BT messaging the pS4 took. One when it did an actual initial binding and one when it did not. And with one of these paths, we did not receive any data that we could deduce what type of joystick it was...
I may need to see if I still have any of this data captured...
I did do a USB capture this morning of starting up sketch, plugging in BT and then press button in on PS4, and this time it connected and started dumping data...
When I stopped the USB capture in Saleae and had it dump packets to a CSV file, there were about 1.9 million lines of text output, which might take me a while to look through
I did the linux grep for IN, OUT, SETUP lines where it also output the previous line as well, and this cut it down to a little over 19 thousand lines, which is a bit better.
I then edited in sublime text and cut this down to < 6500 lines, which again is manageable.. But again all raw data, plus there were lots of data groups, once it connected.
Like the last few are like:
Code:
23.21607064 IN 0x02 0x18 0x48 0x20 0x53 0x00 0x4F 0x00 0x71 0x00 0xA1 0x11 0xC0 0x00 0x81 0x7C 0x81 0x7C 0x08 0x00 0x48 0x00 0x00 0xA0 0x7F 0xFC 0x0E 0x00 0x00 0x00 0x05 0x00 0x81 0x0A 0x7C 0x1E 0x1A 0x00 0x00 0x00 0x00 0x00 0x00 0x09 0x00 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x00
23.21707062 IN 0x02 0x18 0x80 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x00 0x00 0xC3 0x7D 0xE1 0x8C
23.21807067 IN 0x02 0x18 0x48 0x20 0x53 0x00 0x4F 0x00 0x71 0x00 0xA1 0x11 0xC0 0x00 0x81 0x7C 0x81 0x7C 0x08 0x00 0x4C 0x00 0x00 0xF7 0x80 0xFC 0x0E 0x00 0x00 0x00 0x05 0x00 0x69 0x0A 0x83 0x1E 0x09 0x00 0x00 0x00 0x00 0x00 0x00 0x09 0x00 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x00
23.21907066 IN 0x02 0x18 0x80 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x80 0x00 0x00 0x00 0x00 0x00 0x54 0x59 0xCC 0x75
The interesting thing here is for this much data, returned by the joystick it requires two full packets of data, over USB... Wonder if we can/should increase packet sizes?
Also maybe a prod back up to the Logic Beta group for HLA support, especially with maybe translating data into more USB HLA stuff...