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

Look for Endpoint 0/IN exchanges between host and controller #8

Open
sm-Fifteen opened this issue Mar 19, 2017 · 1 comment
Open

Look for Endpoint 0/IN exchanges between host and controller #8

sm-Fifteen opened this issue Mar 19, 2017 · 1 comment

Comments

@sm-Fifteen
Copy link
Owner

It seems like messages 0xa1 and 0xae are special in that they're preeceded by the host sending a device-to-host control to the controller, which then replies with a 64 bytes payload which appears to change depending on the last control transfer recieved.

I can get this to occur reliably by opening the controller settings menu, I suspect those to be related to the firmware version. This was done wirelessly, BTW, it's possible this is a reviever thing.

@sm-Fifteen sm-Fifteen changed the title Check what's up with endpoint 0 Look for Endpoint 0/IN exchanges between host and controller Mar 19, 2017
@sm-Fifteen
Copy link
Owner Author

sm-Fifteen commented Mar 20, 2017

Ok, so it would seem like Endpoint 0/IN is used bothed in wired and wireless mode to query the controller. The host sends a device-to-host (curiously enough) interface-class control to the controller, which then replies with a "GET REPORT RESPONSE" containing data. What the packet contains appears to depend on what the last control it received contained (the first byte seems to match).

For some messages, the controller returns data. So far, those all seem to be there to setup this kind of operation :

  • 0xae
  • 0xba
  • 0xa1 (wireless only?)
  • 0xb4
  • 0x83

I have a few instances of those occuring after a feedback control was last sent (seemingly after shutting down, so that might be the receiver replying, needs more testing) and the controller replies with 0x8f and 63 bytes of padding, so there does seem to be a relation and that all controls can be used to setup a query, but not all of them will return useful information.

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

1 participant