tmk / tmk_keyboard

Keyboard firmwares for Atmel AVR and Cortex-M
3.96k stars 1.7k forks source link

ADB: Debug #726

Open tmk opened 2 years ago

tmk commented 2 years ago

https://geekhack.org/index.php?topic=14290.msg3117929#msg3117929

tmk commented 2 years ago

NeXT Mouse: startup issue: timing? fails to change address

Listening:

TMK:deaa49/LUFA:d6a7df

Scan:
 addr:3, reg3:7A01

USB configured.

Loop start.
M:TMP: reg3:7601
M:EXT: reg3:7701
M:Classic 100cpi
M:POL: fail reg3:7C01

Scan:
 addr:15, reg3:7101

M:TMP: reg3:7E01
M:EXT: reg3:7101
M:Classic 100cpi
M:POL: fail reg3:7101

Scan:
 addr:15, reg3:7601

M:TMP: reg3:7801
M:EXT: reg3:7F01
M:Classic 100cpi
M:POL: fail reg3:7701

Scan:
 addr:15, reg3:7401

M:TMP: reg3:7B01
M:EXT: reg3:7A01
M:Classic 100cpi
M:POL: fail reg3:7401

Scan:
 addr:15, reg3:7601

M:TMP: reg3:7901
M:EXT: reg3:7201
M:Classic 100cpi
M:POL: done

Scan:
 addr:10, reg3:7801

M:[81 83 00 00 00] 02
MM:[ 81 83 ]
MM:[ 81 83 88 88 88 ]
M:[B:00 X:3(3) Y:1(1) V:0 A:1]
M:[80 81 00 00 00] 02
MM:[ 80 81 ]
MM:[ 80 81 88 88 88 ]
M:[B:00 X:1(1) Y:0(0) V:0 A:1]
M:[FF 80 00 00 00] 02
MM:[ FF 80 ]
MM:[ FF 80 F8 F8 F8 ]
M:[B:00 X:0(0) Y:-2(-1) V:0 A:2]
M:[80 81 00 00 00] 02
MM:[ 80 81 ]
MM:[ 80 81 88 88 88 ]
M:[B:00 X:1(1) Y:0(0) V:0 A:1]

https://geekhack.org/index.php?topic=14290.msg3117929#msg3117929

EDIT: need delay to wait for moving? https://github.com/tmk/tmk_keyboard/blob/d0cddedcdc543ce40ef387f31cbb7690552b61db/converter/adb_usb/matrix.c#L300-L309

tmk commented 2 years ago

dumb devices

They don't support changing address and keep residing at default address.

@ce2d9b

tmk commented 2 years ago

AlphaSmart

It shows Handler ID:5E at Appliance(7) but no reply for reg3 at Keyboard(2) address. It seems to be a kind of 'dumb' device that doesn't support command.


I have tried with the old firmware, it works. I have used the AlphaSmart as a keyboard, and i can send text for the word processor to the Mac.

Waiting for device:....
Listening:
Before init:
Scan: addr:7, reg3:605E
After init:
Scan: addr:7, reg3:6C5E
debug enabled.
Keyboard start.
Test
^C

https://geekhack.org/index.php?topic=14290.msg3121108#msg3121108 https://github.com/tmk/tmk_keyboard/tree/14e9a84c9c3b571cc932fcaaedbdb9354dbc2697/converter/adb_usb/binary


The AlphaSmart is working great. I can send text from the word processor to my mac. The only weird thing is the Caps Lock key : the key send only "B9FF" on the log.

TMK:ce2d9b/LUFA:d6a7df

Scan:

USB configured.

Loop start.
03FF f83FF B9FF B9FF B9FF

https://geekhack.org/index.php?topic=14290.msg3122428#msg3122428

tmk commented 2 years ago

Elecom mouse

Similar to NeXT mouser issue #730

TMK:ce2d9b/LUFA:d6a7df

Scan:

USB configured.

Loop start.
M:found: reg3:6301
M:TMP: reg3:6F01
M:EXT: reg3:6F02
M:Classic 200cpi
M:POL: fail reg3:6F02

Scan:
 addr:15, reg3:6F02

M:TMP: reg3:6F02
M:EXT: reg3:6F02
M:Classic 200cpi
M:POL: fail reg3:6F02

Scan:
 addr:15, reg3:6F02

M:TMP: reg3:6F02
M:EXT: reg3:6F02
M:Classic 200cpi
M:POL: fail reg3:6F02