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

How to listen for HID output reports as a device from the host? #285

Closed
nathanRamaNoodles opened this issue May 23, 2020 · 2 comments
Closed

Comments

@nathanRamaNoodles
Copy link

Is your feature request related to a problem? Please describe.
How can I listen for a2 reports: HID_MESSAGE_TYPE_DATC_DEPRECATED reports in our own custom packet_handler when they are getting passed into hid_device's own packet_handler.

Describe the solution you'd like
Give a way to listen on hid output reports

Basically, I'm trying to emulate a ps4 controller, but when the host sends an a2 HID output report, I am not able to process it even though I see it coming to me in Wireshark. Maybe there's already a way to do this and I can't see it?

Using the existing hid_gamepad_example from here; I am trying to see the HID output report in L2CAP_DATA_PACKET, but I get nothing.

@mringwal
Copy link
Member

Hi Nathan. Could you upload the .pklg file here please?

@nathanRamaNoodles
Copy link
Author

I figured it out. I never registered the report_callback

hid_device_register_report_data_callback

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

2 participants