Dear Jan,
Good morning. I am working with a USB HID RFID reader (radio frequency id) and am having a bit of trouble. I have your book (USB Complete 4th ed) and have tried downloading the code from the website, but even the basic demo app seems to crash on a regular basis. I have been looking into other solutions and just can’t seem to get things licked.
First off, I should warn you I am not the best of programmers. However, having said that, I can usually figure things out with a bit of specific help/direction. The problems I seem to have with the demo on your web page is that the app keeps dying during the report exchange. I also get errors in the WndProc override.
Using the LibUsbDotNet tools, I get the following info about my device. As you will see, it is a fairly basic device and the software I am working on is specific for this hardware, so I don’t necessarily need to “learn” about the device – I can hard code much of the info such as report sizes. As a result, I have tried to comment out the sections that get the report sizes - still no luck.
Standard system devices) - USB Input Device OSVersion:Microsoft Windows NT 6.1.7601 Service Pack 1 LibUsbDotNet Version:2.2.8.104 DriverMode:LibUsb
Length:18
DescriptorType:Device
BcdUsb:0x0110
Class:PerInterface
SubClass:0x00
Protocol:0x00
MaxPacketSize0:64
VendorID:0x1325
ProductID:0xC029
BcdDevice:0x0000
ManufacturerStringIndex:1
ProductStringIndex:2
SerialStringIndex:0
ConfigurationCount:1
ManufacturerString:MTI
ProductString:RU-888
SerialString:
CONFIG #1
Length:9
DescriptorType:Configuration
TotalLength:41
InterfaceCount:1
ConfigID:1
StringIndex:0
Attributes:0x80
MaxPower:250
ConfigString:
INTERFACE (0,0)
Length:9
DescriptorType:Interface
InterfaceID:0
AlternateID:0
EndpointCount:2
Class:Hid
SubClass:0x00
Protocol:0x00
StringIndex:0
InterfaceString:
ENDPOINT 0x81
Length:7
DescriptorType:Endpoint
EndpointID:0x81
Attributes:0x03
MaxPacketSize:64
Interval:10
Refresh:0
SynchAddress:0x00
ENDPOINT 0x02
Length:7
DescriptorType:Endpoint
EndpointID:0x02
Attributes:0x03
MaxPacketSize:64
Interval:10
Refresh:0
SynchAddress:0x00
I am developing on a Win7, 64bit machine with c#.
Thanks
Kevin