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

ctrl_transfer #4

Open
brksnn opened this issue Jul 28, 2018 · 0 comments
Open

ctrl_transfer #4

brksnn opened this issue Jul 28, 2018 · 0 comments

Comments

@brksnn
Copy link

brksnn commented Jul 28, 2018

Hi,

I am working on UNI-T UT372 Tachometer and I want to understand how you specify the parameters of ctrl_transfer.

Your parameters;
bmRequestType = 0x21 #0b00100001 #Host to Device
bmRequest = 9
wValue = 0x0300 # Report Type
wIndex = 0 # interface
payload = message = [0x00, 0x4b, 0x00, 0x00, 0x03]

I also cheking this parameters from the following link.
http://www.usb.org/developers/hidpage/HID1_11.pdf

The request type is from host to device but I just want to read from device. Thus it should be 0xA1 (0b10100001). Also, Request should change. However, I am getting pipe error.

Can you inform me in detail, please? Especially, the message array?

Best,

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