-
Notifications
You must be signed in to change notification settings - Fork 14
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
How to reverse engineering usb windows captures #40
Comments
Well that was quick: hid-t150/attributes.c
so 1080 is 0xffff, looking into captures:
then to confirm: hid-t150/settings.c
and SET40_RANGE=0x11, and t150_settings_set40 has
confirming code So after compare two capture sessions, I would say combine pedals happens when a HID Data appears, so filtering on
so removing that I only see to HID Data events, and that match with what I did, change from separate to combined and back to separate:
I see set_gain using 0x43, so probably this is correct |
I have a short tutorial over in https://github.com/Kimplul/hid-tmff2/wiki#how-to-capture-what-usb-packets-the-driver-sends-to-the-device, but no worries.
Nice work. Out of curiosity, in which situations are combined pedals useful? Flight simulators come to mind, but are wheels typically used in those cases? |
Those notes are cool, I would love to code some dissector: https://www.golinuxcloud.com/wireshark-dissector-tutorial/ at some point The part to run under a virtual machine is super! didn't expect I can do that, I just use another laptop with Windows, so this can speed up things a lot Looking for what combined pedals are helpful, I found it is probably to support old games: https://www.reddit.com/r/LogitechG/comments/nu30t0/recent_update_to_logitechs_lghub_broke_combined/
I don't really need this functionality, just trying to cover all features device provide. Out of curiosity, is thrustmaster collaborative on this? does anyone tried to send an email to ask for protocol definition? |
I see. Sure, makes sense.
I tried asking, but was promptly ignored. This person claims that he was forwarded to their R&D department, but haven't heard any updates in a while: Kimplul/hid-tmff2#58 (comment). |
I open a thrustmaster account and open a new ticket! probably kernel people supporting hid_thrustmaster knows better. I think scarburato/hid-tminit#11 will get some light on what we can expect. I think work on wiki and try to create a wireshark dissector are the way to go. Info collected. Let's close this by now |
From https://github.com/scarburato/t150_driver/blob/master/hid-t150/packet.h#L1
so
looks like a great start to filter packets @scarburato I don't have permissions to edit wiki, can you grant me those? |
done |
I try to improve wireshark to autoselect last packet: Details on https://gitlab.com/wireshark/wireshark/-/issues/18948 |
@scarburato, @Kimplul: To add missing features, like combined pedal models , we need to a guide to read usb captures. (sorry if this is already described elsewhere, I look around but didn't find much info)
I add here a capture of range change: from 900 to 140, then to 1080 and then to 900 again, so this is a feature already covered in range property.
t150-range_140_1080_900.zip
Then, I'm adding a capture for change pedals from default (separate mode) to combined pedals (that means accel and brake is always in the middle, and accel reduces brake axis, while brake increases brake axis
t150-combined_pedals.zip
NOTE: Captures are in pcapng format and in txt (with bytes) so should be easy to recognize patterns and filter pings and responses from host to device to isolate codes to setup device.
The text was updated successfully, but these errors were encountered: