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

Reading multiple reports (USB-HID-KBE) #122

Open
minrajnepali opened this issue Oct 8, 2020 · 1 comment
Open

Reading multiple reports (USB-HID-KBE) #122

minrajnepali opened this issue Oct 8, 2020 · 1 comment

Comments

@minrajnepali
Copy link

Hi,

I have a device which is configured as USB-HID-KBE. It has two reports with report Ids as 0x01 and 0x02. 0x01 is designated as keyboard report ,0x02 is output report which i use to move data out from and to the device. Using "HidDevices.Enumerate(VendorId_KBE, ProductId_KBE).FirstOrDefault();" i can only read report 0x00 which actually is not present , I cannot write to or read from report Id 0x02. what might have been the reason?

This is the report structure ;
/* Keyboard page here
HID_Usage(0x06),
HID_ReportID (0x01),
/
HID_UsagePageVendor(0x00 ),
HID_Usage (0x01 ),
HID_Collection ( HID_Application ),
HID_ReportID (0x02),
HID_LogicalMin ( 0 ), /
value range: 0 - 0xFF /
HID_LogicalMaxS ( 0xFF ),
HID_ReportSize ( 8 ), /
8 bits */
HID_Usage (0x1A),
HID_ReportCount (HID_DECODE_STATUS_BYTE),
HID_Input (HID_Data | HID_Variable | HID_Absolute ),
HID_Usage (0x1B),
HID_ReportCount (HID_OUTPUT_REPORT_BYTES_VENDOR),
HID_Output (HID_Data | HID_Variable | HID_Absolute | HID_Array),
HID_EndCollection

@minrajnepali minrajnepali changed the title Reading multipld reports (USB-HID-KBE) Reading multiple reports (USB-HID-KBE) Oct 8, 2020
@amullins83
Copy link
Collaborator

@mikeobrien Can chime in if he wants, but I don't believe this library is intended to be used with a keyboard, as those are handled differently by the operating system.

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