Re: Trouble parsing HID reports from PDP PS4 remote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 On Mon, Dec 20, 2021 at 11:02 AM Benjamin Tissoires
<benjamin.tissoires@xxxxxxxxxx> wrote:
> > The remote looks like this:
> > https://www.pdp.com/universal-media-remote-for-playstationr4
> >
> > hid-recorder output:
>
> Thanks for the logs (though your email client mangled the long lines,
> but not an issue TBH).

Also I forgot to reply-to-list.  For anyone who missed it, the
hid-recorder output is here: https://pastebin.com/8nKdtMT8

> So this device is not known to the HID stack nor hid-sony or hid-playstation.
> We will need to add a special case in one of those 2 drivers because
> as you realized, the way these keys are used is not standard.
>
> But I'd like to compare these logs to the PS5 remote that I have here.
> Maybe the proprietary fields 0xff000021 is something common in the
> PS4/PS5 world.
>
> Also, what happens if you press 2 "special" keys at the same time
> (pause and enter for example)?

For this trace I held down pause, pressed enter, then released both at
the same time:

# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    6 ,   26 ,   60 ,  193
,  164 ,   44
E: 000014.302803 10 01 08 00 00 06 1a 3c c1 a4 2c
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    6 ,   13 ,  251 ,   68
,  119 ,  175
E: 000015.312809 10 01 08 00 00 06 0d fb 44 77 af
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    6 ,   13 ,  251 ,   68
,  119 ,  175
E: 000016.475376 10 01 08 00 00 06 0d fb 44 77 af
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    6 ,    0 ,   70 ,   56
,  198 ,  209
E: 000016.510310 10 01 08 00 00 06 00 46 38 c6 d1

For this trace I held down pause, held down enter, released enter,
released pause:

# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,   26 ,  125 ,  240
,  191 ,   53
E: 000455.969112 10 01 08 00 00 07 1a 7d f0 bf 35
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,   13 ,  186 ,  117
,  108 ,  182
E: 000456.328187 10 01 08 00 00 07 0d ba 75 6c b6
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,   26 ,  125 ,  240
,  191 ,   53
E: 000457.236997 10 01 08 00 00 07 1a 7d f0 bf 35
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,    7 ,    9
,  221 ,  200
E: 000457.629132 10 01 08 00 00 07 00 07 09 dd c8

For this trace I held down pause, held down enter, released pause,
released enter:

# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,   26 ,  125 ,  240
,  191 ,   53
E: 000440.319208 10 01 08 00 00 07 1a 7d f0 bf 35
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,   13 ,  186 ,  117
,  108 ,  182
E: 000440.879087 10 01 08 00 00 07 0d ba 75 6c b6
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,   13 ,  186 ,  117
,  108 ,  182
E: 000441.541612 10 01 08 00 00 07 0d ba 75 6c b6
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,    7 ,    9
,  221 ,  200
E: 000442.027658 10 01 08 00 00 07 00 07 09 dd c8

For this trace I held down left arrow, pressed and released up arrow,
pressed and released down arrow, released left arrow:

# ReportID: 1 / Hat switch:   6 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,  102 ,  183
,  237 ,  119
E: 000584.269500 10 01 06 00 00 07 00 66 b7 ed 77
# ReportID: 1 / Hat switch:   7 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,  214 ,  158
,  141 ,   74
E: 000585.108210 10 01 07 00 00 07 00 d6 9e 8d 4a
# ReportID: 1 / Hat switch:   6 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,  102 ,  183
,  237 ,  119
E: 000588.489824 10 01 06 00 00 07 00 66 b7 ed 77
# ReportID: 1 / Hat switch:   5 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,  182 ,  205
,   77 ,   48
E: 000590.293643 10 01 05 00 00 07 00 b6 cd 4d 30
# ReportID: 1 / Hat switch:   6 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,  102 ,  183
,  237 ,  119
E: 000590.931154 10 01 06 00 00 07 00 66 b7 ed 77
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,    7 ,    9
,  221 ,  200
E: 000591.540598 10 01 08 00 00 07 00 07 09 dd c8

For this trace I held down left arrow and right arrow at the same
time, then released both.  I think this combination is unsupported:

# ReportID: 1 / Hat switch:   6 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,  102 ,  183
,  237 ,  119
E: 000900.413945 10 01 06 00 00 07 00 66 b7 ed 77
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,    7 ,    9
,  221 ,  200
E: 000900.897679 10 01 08 00 00 07 00 07 09 dd c8
# ReportID: 1 / Hat switch:   6 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,  102 ,  183
,  237 ,  119
E: 000902.959066 10 01 06 00 00 07 00 66 b7 ed 77
# ReportID: 1 / Hat switch:   8 | Button: 0  0  0  0  0  0  0  0  0  0
 0  0  0  0 | 0xff000020:   0 | 0xff000021:    7 ,    0 ,    7 ,    9
,  221 ,  200
E: 000903.017773 10 01 08 00 00 07 00 07 09 dd c8

So for the arrow keys ("hat switch") I get:

No buttons: 8
Up only: 0
Left only: 6
Right only: 2
Down only: 4
Left+up: 7
Right+up: 1
Right+down: 3
Left+down: 5



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux