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

Pass-through of PS/2 keyboard in addition to PS/2 Trackball? #3

Open
sobukus opened this issue Apr 5, 2024 · 1 comment
Open

Pass-through of PS/2 keyboard in addition to PS/2 Trackball? #3

sobukus opened this issue Apr 5, 2024 · 1 comment

Comments

@sobukus
Copy link

sobukus commented Apr 5, 2024

Maybe this is trivial or it is impossible: Do you think it is feasible to translate both a PS/2 trackball and pass through an PS/2 keyboard at the same time? This would be a straight upgrade from the simple PS/2 to USB converter I have here (could repurpose its casing, even;-) and would enable having the trackball and a matching IBM Model M wired up only using one USB port.

Can the 32u4 drive two PS/2 devices at the same time? I imagine a keyboard being a lot less work than a pointing device.

@seife
Copy link
Owner

seife commented Jul 3, 2024

I did not try this yet. The 32u4 should be able to handle both PS2 ports at the same time, especially since this code now is interrupt driven, so there should be no "concurrent access timing issues" AFAICS.

My guess is you would need to do two instances of mbuf (or mbuf[2]) and hook these up to two interupts (for two ports), then just process them differently, where keyboard is probably even more trivial than interpreting the logitech protocol (my guess is that you can more or less pass through the ps2 key codes 1:1 to USBHID, but you would need to verify that).

Sounds like an interesting project :-) But I'll certainly (if ever) only take this up in (some distant...) winter.

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

2 participants