ghigorenzulli
2012-Apr-23 13:09 UTC
[Wine] HID device (USB protection dongle) not recognized
Hi everyone,
I'm trying to run a software that relies on an USB protection dongle.
Windows sees the dongle as a HID device, and my Debian detects it correctly.
Here's the dump from lsusb for that device:
Code:
Bus 002 Device 002: ID 0e50:0002
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0e50
idProduct 0x0002
bcdDevice 1.01
iManufacturer 1 TDi GmbH - Germany
iProduct 2 USB-Chip
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 8mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 51
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 255
I've built Wine 1.4 with USB patch from http://wiki.winehq.org/USB but the
device is still undetected.
The device require no driver on Windows and it's controlled by a DLL
(matrix32.dll). This DLL depends on KERNEL32.DLL, USER32.DLL, WINSPOOL.DRV,
ADVAPI32.DLL.
I see that these functions are imported from WINSPOOL.DRV: ClosePrinter,
SetPrinterA, OpenPrinterA, EnumPrintersA.
Maybe the device is not detected because support for these functions is still
not complete? Or there could be another reason?
Some test I can do?
Thanks in advance.
ghigorenzulli
2012-Apr-23 14:12 UTC
[Wine] Re: HID device (USB protection dongle) not recognized
I tried to track down the problem. Following the procedure on http://wiki.winehq.org/USB, I copied the driver hidusb.sys to .wine/windows/system32/drivers. But then I realized that this driver needs both USBD.SYS and HIDCLASS.SYS... Mr. Dmitry says that> Drivers which depend on modules other than ntoskrnl.exe, hal.dll, usbd.sys will not workSo I guess there is no way to get this device working. Some other ideas?