Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADB: Debug #726

Open
3 of 4 tasks
tmk opened this issue Mar 30, 2022 · 4 comments
Open
3 of 4 tasks

ADB: Debug #726

tmk opened this issue Mar 30, 2022 · 4 comments

Comments

@tmk
Copy link
Owner

tmk commented Mar 30, 2022

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

@tmk
Copy link
Owner Author

tmk commented Mar 30, 2022

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?

// Move to address 10 for mouse polling
adb_host_flush(ADB_ADDR_MOUSE_TMP);
adb_host_listen(ADB_ADDR_MOUSE_TMP, ADB_REG_3, ((reg3 >> 8) & 0xF0) | ADB_ADDR_MOUSE_POLL, 0xFE);
adb_host_flush(ADB_ADDR_MOUSE_POLL);
reg3 = adb_host_talk(ADB_ADDR_MOUSE_TMP, ADB_REG_3);
if (reg3) {
dmprintf("POL: fail reg3:%04X\n", reg3);
} else {
dmprintf("POL: done\n");
}

@tmk tmk changed the title ADB: Mouse debug ADB: Debug Apr 26, 2022
@tmk
Copy link
Owner Author

tmk commented Apr 26, 2022

  • Keypad - dumb Keyboard
  • dumb Mouse
  • Glidepoint - not work - dumb Mouse

dumb devices

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

@ce2d9b

@tmk
Copy link
Owner Author

tmk commented Apr 27, 2022

AlphaSmart

  • CapsLock issue

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
Copy link
Owner Author

tmk commented Apr 27, 2022

Elecom mouse

  • fails when moving.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant