Chumby One /dev/input/by_id
Thanks for the pointer to to Open /dev/input/by-id/*-ts-*.
That helped, but I still have a problem.
Using hexdump it is easy to see how the top bar and the
volume control work, but I don't understand the touchscreen
output.
For the volume control:
chumby:/dev/input/by-id# hexdump soc-noserial-event-joystick
hexdump 1.02
soc-noserial-event-joystick
00000000: c72f0100 0ae70200 02000800 01000000
00000010: c82f0100 6b010900 02000800 01000000
00000020: c92f0100 8c0e0c00 02000800 01000000
00000030: cb2f0100 cc1b0f00 02000800 01000000
00000040: ce2f0100 2c600100 02000800 01000000
00000050: d02f0100 7cc40900 02000800 ffffffff
00000060: d22f0100 8a010900 02000800 ffffffff
00000070: d42f0100 9ab70600 02000800 ffffffff
00000080: d52f0100 dc3d0800 02000800 ffffffff
Turning the volume control clockwise:
The fourth word is 01000000, every other click.
Turning the volume control counter clockwise:
The fourth word is ffffffff, every other click.
For the top Bar:
chumby:/dev/input/by-id# hexdump soc-noserial-event-kbd
hexdump 1.02
soc-noserial-event-kbd
00000000: 06300100 cf100f00 01008200 01000000
00000010: 07300100 bc900200 01008200 00000000
00000020: 08300100 f3240200 01008200 01000000
00000030: 08300100 5cdd0400 01008200 00000000
00000040: 0a300100 46360900 01008200 01000000
00000050: 0e300100 225a0400 01008200 00000000
Depressing the bar causes the fourth word to be
01000000 while releasing it produces 00000000.
However I don't understand the two touchscreen devices.
To test the touchscreen I touched the 4 corners
starting at the upper left going clockwise and
got this:
chumby:/dev/input/by-id# hexdump soc-noserial-ts
hexdump 1.02
soc-noserial-ts
00000070: 74fa3988 812900d8 09010209 0200287f
00000080: ff080700 097f0119 fe000900 032802fc
00000090: 19f97f09 002f0900 05090001 2900fd38
000000a0: 88f91981 0119fa00 19ff0019 ff010900
000000b0: 0639fffe 2803fd39 fd812900 d72900fd
000000c0: 09010308 0200297f fd097f00 09060039
000000d0: fdfe0900 02080200 09027f09 002919fc
000000e0: 04090107 09000128 01f01981 07198100
I don't see any pattern other than you get one
set of 4 words per touch.
For soc-noserial-event-ts, I get a continus
stream of data when I do a touch, but I don't
see a pattern.
Any suggestions?
chumby:/dev/input/by-id# hexdump soc-noserial-event-ts
hexdump 1.02
soc-noserial-event-ts
00000000: 913e0100 c8420600 03001800 01000000 .>...B..........
00000010: 913e0100 2dde0600 03000000 1f030000 .>..-...........
00000020: 913e0100 4cde0600 03000100 ee0c0000 .>..L...........
00000030: 913e0100 6cde0600 01004a01 01000000 .>..l.....J.....
00000040: 913e0100 6cde0600 00000000 00000000 .>..l...........
00000050: 913e0100 8c7a0700 03000000 fd020000 .>...z..........
00000060: 913e0100 ea7a0700 03000100 b60c0000 .>...z..........
00000070: 913e0100 097b0700 00000000 00000000 .>...{..........
00000080: 913e0100 0f260800 03000000 1c030000 .>...&..........
00000090: 913e0100 4d260800 03000100 d10c0000 .>..M&..........
000000a0: 913e0100 4d260800 03001800 00000000 .>..M&..........