|
From: 손창범 <ckd...@gm...> - 2019-04-26 16:51:28
|
Hello libusb team! I'm dealing with usb headset(audio device). I want to send libusb_control_transfer and failed with error code -9(error pipe : people say usually it means stall(invalid parameter)) below is the contents bmRequest Type bRequest wValue wIndex wLength Data 10100001b GET_CUR GET_MIN GET_MAX GET_RES Control Selector (CS) Terminal ID and Interface Length of Parameter block Parameter block bmRequest Type : 10100001= 0xA1 bRequest : 0x81 GET_CUR wValue : COPY_PROTECT_CONTROL 0x0100 wIndex : 0x0100(0x01 :terminal ID 0x00 : Interface 0(alternate 0) ) wLength : 0x0001(1byte) Data : I declared it like uint8_t data; And my code here r1 = libusb_control_transfer(dev_handle, 0xA1, 0x81, 0x0100, 0x0100, &data, 0x0001, 1); can it be the Issues like byte_ordering(my VS is little_endian order) Can you guys help me with correct this error? |