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

Packet captures #4

Open
twifty opened this issue Aug 8, 2018 · 4 comments
Open

Packet captures #4

twifty opened this issue Aug 8, 2018 · 4 comments

Comments

@twifty
Copy link

twifty commented Aug 8, 2018

I'm guessing you used USBPCap and wireshark to sniff the packets. Would you mind sharing those logs?

I am working on the AMD Spire fan, which comes with the Ryzen 27000X. Cooler Master must be using the same protocol since the packets I've captured are very similar to what you have documented. I now need to cross reference my data with keyboard packets to try and figure out what the individual flags/values mean.

@chmod222
Copy link
Owner

Sure. They are fairly unorganized and don't cover all use cases, but maybe they'll help anyway.

traces.tar.gz

Most of the information is distilled in the protocol file though.

@twifty
Copy link
Author

twifty commented Aug 14, 2018

Thanks for that. I've come across references to keyboard settings in both the firmware and software, even though the software is only for fans. Though there are some differences to your findings. I wouldn't be surprised if they have used the same, or slightly modified, firmware.

@scottjbarr
Copy link

scottjbarr commented May 5, 2019

Does anyone have a packet capture for a "set profile" command?

This is an on MK730, which is basially a tenkeyless MK750. I had to define some new values for this to work. (Happy to share once I've advanced a bit).

I am able to get the profile OK, but setting the profile using cmmk_set_active_profile doesn't actually change the profile.

Below is the request and response for the "set active profile" interaction. The first 2 bytes of the response are ff aa, which I suspect is an error code?

>>
        0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
000000: 51 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00  Q...............
000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
<<
        0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
000000: ff aa 00 00 51 00 00 00 00 00 00 00 00 00 00 00  ....Q...........
000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

@sam97
Copy link

sam97 commented Sep 2, 2019

@scottjbarr I've just successfully tried setting the profile after getting the same "error codes" that you've mentioned. I know this is coming late, but have you tried setting the control mode to profile customization? Calling cmmk_set_control_mode(dev, CMMK_PROFILE_CUSTOMIZATION) before setting the profile should work. Don't forget to go back to CMMK_FIRMWARE once finished.

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

4 participants