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

CKBT51 documentation #252

Open
4z3 opened this issue Apr 11, 2024 · 4 comments
Open

CKBT51 documentation #252

4z3 opened this issue Apr 11, 2024 · 4 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@4z3
Copy link

4z3 commented Apr 11, 2024

Issue Description

I'm trying to make raw_hid_receive() work for a bluetooth connected K13 Pro. Unfortunately this doesn't seem straight forward.

When looking at keyboards/keychron/bluetooth/ckbt51.c it appears that packets get read from and written to WT_DRIVER, which seems to do some pre- and postprocessing to the packets. In particular it doesn't seem possible to send arbitrary packets to ckbt51.c.

E.g. when sending following report to the device:

30 17 FF 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

it doesn't arrive at all at ckbt51_event_handler().

Is there any documentation or source code available to study? My cursory searches didn't bring up anything relevant related to CKBT51.

Please advise. :)

@4z3 4z3 added help wanted Extra attention is needed question Further information is requested labels Apr 11, 2024
@lokher
Copy link
Member

lokher commented Apr 12, 2024

May I know what were you trying to do?

@4z3
Copy link
Author

4z3 commented Apr 12, 2024

I want bidirectional communication between QMK and the host, i.e. I want the host to be able to configure and query the keyboard.This already works when connected via USB, but I'd also like to do that via bluetooth.
The specifics aren't too important, but for example settings LEDs or query battery state.

Basically I'd like to have a fully functioning rawhid interface.

@lokher
Copy link
Member

lokher commented Apr 16, 2024

CKBT51 doesn't have rawhid interface over bluetooth.

@4z3
Copy link
Author

4z3 commented Apr 16, 2024

I do realize that it doesn't provide a rawhid interface over bluetooth, that's why I asked whether there is any documentation available. I was hoping that rawhid could be simulated with an appropriate host component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants