Hi,
I am building a c# application which has to get input from a custom USB keyboard. I downloaded sharpUSBLib and attempted to connect to my USB keyboard. I was able to connect and get the device description just fine, but when I attempted to use bulkRead on the device, I wasn't able to read anything from the device. Perhaps I am not using the correct endpoint? I used libusb test program to determin which endpoints to use and this is what it tells me:
Serial Number: Ver 0.34 02/03/06
wTotalLength: 41
bNumInterfaces: 1
bConfigurationValue: 1
iConfiguration: 0
bmAttributes: c0h
MaxPower: 50
bInterfaceNumber: 0
bAlternateSetting: 0
bNumEndpoints: 2
bInterfaceClass: 3
bInterfaceSubClass: 0
bInterfaceProtocol: 0
iInterface: 0
bEndpointAddress: 81h
bmAttributes: 03h
wMaxPacketSize: 8
bInterval: 10
bRefresh: 0
bSynchAddress: 0
bEndpointAddress: 01h
bmAttributes: 03h
wMaxPacketSize: 64
bInterval: 10
bRefresh: 0
bSynchAddress: 0
I tried to use 0x81 and 0x01 to read from the keyboard like so:
device.BulkRead(0x81, result);
but that didn't work. What could this be caused by? I'd like to hear from somebody who has successfully used bulkRead method. Thank you in advance for your response.