-
Notifications
You must be signed in to change notification settings - Fork 35
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
Reverse engeneering USB protocol (Redragon M711). #2
Comments
I'm glad that the README helped, if you have any other questions feel free to ask. I would recommend starting by capturing the data and writing a simple program to open the mouse, send the captured data, and close the mouse. After that works, the main work is capturing data for different settings, running Would you prefer to add support for the M711 to this program, or to have a separate program? |
I have added experimental support for the M711, there are still a few features missing because i don't have any captured data for them, and nothing is tested. I am leaving this issue open for now, in case you want to try it out and report what is broken and what works. |
I'm sorry for taking so long to answer, I've made quite a nice progress, and I'd be willing add support for the M711 to your program, or to have a separate program. It really depends a lot on what is best. I will checkout the support you have added and comment and collaborate with it. The only problem is that I am very busy nowadays because of work and college, so for now there is not much I can do. But in the future be assured to hear back from me. |
As there already is initial support for the M711 (and others) in this program, i think it is the best (and easiest) to have support for these mice in one program, and would be glad about any contribution and collaboration towards better hardware support. Feel free to take your time, and whenever you are ready, open a pull request. |
Hey @dokutan I bought a Mouse Cobra M711. Is there any data capture/commands that i could run to help on improving this device support? lsusb, grepping relevant id:
dmesg, cropping relevant usb mouse stuff:
|
Yes, these are the things that you can try:
A few links that i copied from a previous issue about the capturing process: That should be all, just ask if there are any questions remaining. |
I've had some progress, but had to leave this project on hold for a while because of work and univertsity. A lot of settings from the m908 work right away with the m711 (same config bytes). I have some notes from when I was reverse engineering it myself, but I can barely understand them, so it probably won't be of much help. |
No problem, that a lot of settings work gives me hope that it shouldn't be to dificult to implement the differing features (mainly different buttons i would assume), if you could post your notes i would have a look, we don't know if they are helpful unless i try. |
These are the notes, they are confusing as I said. |
Checking the diffs I can see a big addition in
|
Thanks, that was quite helpful. A bit of information for reference: the LED modes seem to be identical, i have since added a description of the byte values, the position can be found in the source or the annotated capture. The windows only actions aren't handled by windows but rely on the official software to be running in the background, therefore i wouldn't bother implementing them (unless someone wants them). If i understand it correctly, most settings did work, however in the recent versions of the M711 backend changing the scrollspeed, DPI, button mapping and USB poll/report rate were disabled due to a lack of information. I have enabled the generic implementation of all settings in the M711 backend in 40f42ad, if you @rolimans or @nwildner were to confirm that changing (some of) these settings works now, i would update the documentation accordingly. |
Ok. Maybe i'm stupid(and if i'm being, dont be afraid to tell me..lol) but i've tried to change simple things on my config file to test led colors, and setting them for each profile. Example:
So, profile 1 is red, while profile 2 is blue(should be green). Both profiles change the led color to white 5 seconds right after i execute something like |
That means that sending the settings to the mouse works (white is the default value for this software) but there is a bug in the preparation of the data packet (the offsets for the color, brightness and LED speed were wrong), that should be fixed in 040c401. PS @nwildner: I just noticed your fork with the PKBUILD is gone (i am using Arch myself and was therefore interested), are there any problems? |
I'll be ready to do extensive testing after thursday, then i'll finish that pkgbuild :) |
I have an M711 and here if you want testing or help. Let me know what to do! |
|
What are these hex values? They are 100% not my DPI.
|
There are four main aspects that need varying levels of effort. For the most part it boils down to trying various settings and checking if the results match as a big part of the model specific code has already been written. From my experience i can strongly recommend that you have the official software and a second input device available before trying to change the settings on the mouse (see https://github.com/dokutan/mouse_m908#safety).
If anything doesn't work as it should, please attach the config that you used and the output of |
isn't it weird that 100dpi = 0x0200? 200dpi = 0x400? |
Yes, these values follow a basic pattern (here are the values from the M908, and for the M719):
However, because the difference between adjacent values varies and the point at which the step size changes is different for each mouse i don't see a way around trying out at least the majority of DPI values. Additionally the minimum and maximum DPI (and therefore the amount of valid values) vary between mice.
I personally wouldn't interpret these values as anything but arbitrary keys for a map, therefore no. Edit: i have added initial support for actual DPI values (100-500) in 74d64a2. |
I didn't figure out how to use it, now my mouse doesn't move vertically. Would you help me? |
@LeonardHM I suggest you try out the official software to fix your mouse. To debug this program it would be helpful if you could provide the config you used, the output of |
I installed libusb, cloned the repository and installed it. I only use command line. I just used the commands from the repository page with some template overrides (examples/example_m711.ini -M 711). I probably did something wrong $ mouse_m908 -R - Model: 711Configuration created with mouse_m908 -R.This configuration can be send to the mouse with mouse_m908 -c.This feature is currently untested, please report your results.Note: reading the scrollspeed is not supported by the mouse.Currently active profile: 1[profile1] LED settingscolor=50ff00 DPI settingsActive dpi level for this profile: 2dpi1_enable=0 Button mapping is not implemented due to a lack of captured data[profile2] LED settingscolor=5000ff DPI settingsActive dpi level for this profile: 5dpi1_enable=1 Button mapping is not implemented due to a lack of captured data[profile3] LED settingscolor=ffffff DPI settingsActive dpi level for this profile: 2dpi1_enable=1 Button mapping is not implemented due to a lack of captured data[profile4] LED settingscolor=ffffff DPI settingsActive dpi level for this profile: 1dpi1_enable=1 Button mapping is not implemented due to a lack of captured data[profile5] LED settingscolor=ffffff DPI settingsActive dpi level for this profile: 5dpi1_enable=1 Button mapping is not implemented due to a lack of captured dataMacros;## macro8 ================================================== $ mouse_m908 -D - 02 08 2c 60 01 00 fa fa 00 02 08 48 64 07 00 fa fa 50 ff 00 01 01 02 02 02 08 50 64 07 00 fa fa 50 00 ff 01 08 04 03 02 08 58 64 07 00 fa fa ff ff ff 01 08 02 03 02 08 60 64 07 00 fa fa ff ff ff 01 08 02 03 02 08 68 64 07 00 fa fa ff ff ff 01 08 02 03 02 08 32 60 05 00 fa fa 02 00 08 00 08 02 08 38 60 03 00 fa fa 08 00 08 Part 2: 03 08 42 60 20 00 fa fa 01 00 00 04 00 00 00 00 01 16 00 00 00 00 01 2d 00 00 00 00 01 43 00 00 00 00 00 8c 00 00 00 00 03 08 02 61 20 00 fa fa 04 00 01 04 00 00 00 00 01 16 00 00 00 00 01 2d 00 00 00 00 01 43 00 00 00 00 01 8c 00 00 00 00 03 08 b2 61 20 00 fa fa 01 00 01 04 00 00 00 00 01 16 00 00 00 00 01 2d 00 00 00 00 01 43 00 00 00 00 01 8c 00 00 00 00 03 08 62 62 20 00 fa fa 00 00 01 04 00 00 00 00 01 16 00 00 00 00 01 2d 00 00 00 00 01 43 00 00 00 00 01 8c 00 00 00 00 03 08 12 63 20 00 fa fa 04 00 01 04 00 00 00 00 01 16 00 00 00 00 01 2d 00 00 00 00 01 43 00 00 00 00 01 8c 00 00 00 00 03 08 78 64 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 aa 64 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 dc 64 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 0e 65 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 40 65 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 72 65 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 a4 65 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 d6 65 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 08 66 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 3a 66 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 6c 66 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 9e 66 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 d0 66 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 02 67 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 34 67 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 66 67 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 98 67 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 ca 67 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 fc 67 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 2e 68 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 60 68 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 92 68 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 c4 68 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 f6 68 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 28 69 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 5a 69 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 8c 69 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 be 69 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 f0 69 32 00 fa fa ff 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 22 6a 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 54 6a 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 86 6a 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 b8 6a 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 ea 6a 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 1c 6b 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 4e 6b 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 80 6b 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 b2 6b 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 e4 6b 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 16 6c 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 48 6c 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 7a 6c 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 ac 6c 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 de 6c 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 10 6d 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 42 6d 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 74 6d 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 a6 6d 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 d8 6d 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 0a 6e 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 3c 6e 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 6e 6e 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 a0 6e 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 d2 6e 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 04 6f 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 36 6f 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 68 6f 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 9a 6f 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 cc 6f 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 fe 6f 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 30 70 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 62 70 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 94 70 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 c6 70 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 f8 70 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 2a 71 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 5c 71 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 8e 71 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 c0 71 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 f2 71 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 24 72 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 56 72 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 88 72 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 ba 72 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 ec 72 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 1e 73 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 50 73 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 82 73 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 b4 73 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 08 e6 73 32 00 fa fa 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Part 3: 02 08 82 60 04 00 fa fa 81 00 00 00 02 08 86 60 04 00 fa fa 82 00 00 00 02 08 8a 60 04 00 fa fa 83 00 00 00 02 08 8e 60 04 00 fa fa 85 00 00 00 02 08 92 60 04 00 fa fa 88 00 00 00 02 08 96 60 04 00 fa fa 8a 00 00 00 02 08 9a 60 04 00 fa fa 85 00 00 00 02 08 9e 60 04 00 fa fa 84 00 00 00 02 08 aa 60 04 00 fa fa 8b 00 00 00 02 08 42 61 04 00 fa fa 81 00 00 00 02 08 46 61 04 00 fa fa 82 00 00 00 02 08 4a 61 04 00 fa fa 83 00 00 00 02 08 4e 61 04 00 fa fa 85 00 00 00 02 08 52 61 04 00 fa fa 88 00 00 00 02 08 56 61 04 00 fa fa 8a 00 00 00 02 08 5a 61 04 00 fa fa 85 00 00 00 02 08 5e 61 04 00 fa fa 84 00 00 00 02 08 6a 61 04 00 fa fa 8b 00 00 00 02 08 f2 61 04 00 fa fa 81 00 00 00 02 08 f6 61 04 00 fa fa 82 00 00 00 02 08 fa 61 04 00 fa fa 83 00 00 00 02 08 fe 61 04 00 fa fa 85 00 00 00 02 08 02 62 04 00 fa fa 88 00 00 00 02 08 06 62 04 00 fa fa 8a 00 00 00 02 08 0a 62 04 00 fa fa 85 00 00 00 02 08 0e 62 04 00 fa fa 84 00 00 00 02 08 1a 62 04 00 fa fa 8b 00 00 00 02 08 a2 62 04 00 fa fa 81 00 00 00 02 08 a6 62 04 00 fa fa 82 00 00 00 02 08 aa 62 04 00 fa fa 83 00 00 00 02 08 ae 62 04 00 fa fa 85 00 00 00 02 08 b2 62 04 00 fa fa 88 00 00 00 02 08 b6 62 04 00 fa fa 8a 00 00 00 02 08 ba 62 04 00 fa fa 90 00 e0 00 02 08 be 62 04 00 fa fa 90 00 e1 00 02 08 ca 62 04 00 fa fa 8b 00 00 00 02 08 52 63 04 00 fa fa 81 00 00 00 02 08 56 63 04 00 fa fa 82 00 00 00 02 08 5a 63 04 00 fa fa 83 00 00 00 02 08 5e 63 04 00 fa fa 85 00 00 00 02 08 62 63 04 00 fa fa 88 00 00 00 02 08 66 63 04 00 fa fa 8a 00 00 00 02 08 6a 63 04 00 fa fa 85 00 00 00 02 08 6e 63 04 00 fa fa 84 00 00 00 02 08 7a 63 04 00 fa fa 8b 00 00 00 |
Sorry that i am only replying now, as far as i can tell you did absolutely nothing wrong. After having a look at the data you provided i see no obvious cause for this issue, i suspect it might be caused by accidentally setting the DPI in the vertical direction to 0.
|
I used the two redragon programs for this model and it didn't work. I think the only way is trying to modify your code |
That might be true, however there are two problems with that approach:
|
@dokutan all mouse buttons work as expected now thanks a lot! |
@1nekomata Thanks for the DPI mapping (edit: added in 0da955e). The known values are identical to the M908, if you can tell me the maximum supported DPI i could copy at least some values from the M908.
Perfect, that leaves only reading the button mapping from the mouse to be implemented. Could you capture the communication when opening RDCfg for the first time or connecting the mouse with RDCfg running for that?
If i understand you correctly, you are setting the DPI on linux woth mouse_m908, then get the actual value with RDCfg on wondows. Doing the reverse (setting woth RDCfg, checking with mouse_m908) might be easier.
There is no obvious reason it wouldn't work since all dependencies (libusb, c++ compile, make or cmake) should be available on windows as well. |
yes, hang on a sec
no, i'm actually trying to have RDCfg detect what dpi has been set using mouse_m908 in order to check if those values are actually correct |
ok |
Also i cant seem to be able to apply |
@dokutan |
What about e.g.
|
dunno gonna try now
yes i am |
@dokutan |
Thanks, fixed in b843ca9 |
@dokutan ok, everything seems to be working now |
i'm gonna test color, light modes, key mapping and applying dpi |
@dokutan here is what works led color works scrollspeed works dpi: dpi1 works key mapping: |
i think you can change status to "complete" |
Almost, two minor things are still missing for complete support:
|
oh right i forgot to send you the .pcap! |
only the M711 Cobra does. the M711-FPS can go up to 24k |
@1nekomata I have added the missing features in ded0775. Feel free to close the issue if everything works. Complete support for the M711-FPS should become a new issue. |
@dokutan i'll double check tomorrow but afaik everything works. Thank you! |
@dokutan macros are either not applied or are not captured by mouse_m908 --read / mouse_m908 -R - |
@1nekomata Could you figure that out by applying multiple macros with mouse_m908 and RDCfg? Some of the are other mice have buggy macros (only the first macro working, macros work but can't be read back, …), the same might be true for the M711. |
@dokutan ok give me a sec |
@dokutan i can't seem to be able to read macros using mouse_m908 -R - . im gonna try to get a .pcap of the macro getting applied |
@1nekomata I can only guess the reason but the capture doesn't contain a macro, only the normal settings. Maybe binding the macro to a button is required for RDCfg to transfer it. Have you tried setting a macro with mouse_m908 before? |
@dokutan i did try. but afaik it didn't work as i couldn't confirm the macro worked nor could i read it with mouse_m908. i sadly can't test today anymore but i will try tomorrow |
Hello, I'd like to the same you did, but with the model M711.
This is my first attempt reverse engineering something, so I'm having a hard time starting it.
After setting up the VM and Wireshark, I was able to capture some packets after changing values in the original software, but all packages were very small (average of 80 bytes) and were nothing like the dump found in your file "documentation/default-annotated".
Am I doing something wrong, or are the packages meant to be this size, and if so, how should I concat them to a better understending of the protocol.
Edit: just saw the README.md inside the documentation folder and it was very clarifying.
The text was updated successfully, but these errors were encountered: