|
From: Xiaofan C. <xia...@gm...> - 2007-06-25 23:14:35
|
On 6/25/07, Stephan Meyer <ste...@we...> wrote: > > The current version (0.1.12.1) works without any problems > on vista-32bit but NOT on vista-64bit. > Furture versions of the DLL will use vista's built-in winusb.sys > driver and will therefore work on both platforms. If you're > interrested in a pre-pre-alpha version then grab the latest sources > from the SVN and try it out. > http://libusb-win32.svn.sourceforge.net/viewvc/libusb-win32/trunk/libusb1/ > > Stephan > Nice to see that the new version will have three backend (libusb-win32, HID and winusb). I built the new version with MinGW and it seems to run fine. I have two HID device attached, a PICkit 2 USB programmer from Microchip and a Microsoft Baisc Optical Mouse. Using the default system HID driver, I can still run the test program. Can I assume that the HID backend is kind of working now? PICkit 2 does have two configurations, now it only display the first. Is this normal? And if I want to try out a libusb based program ported from Linux, how do I use the HID backend (without using the device driver)? By the way, I am using Windows XP SP2. XFCHEN@APSGSGPXFCHEN /c/Myprog/libusb-win32/libusb1 $ ./testlibusb.exe -v Dev #3: Microchip Technology Inc. - PICkit 2 Microcontroller Programmer - Serial Number: PIC18F2550 wTotalLength: 41 bNumInterfaces: 1 bConfigurationValue: 1 iConfiguration: 0 bmAttributes: 80h MaxPower: 50 bInterfaceNumber: 0 bAlternateSetting: 0 bNumEndpoints: 2 bInterfaceClass: 3 bInterfaceSubClass: 0 bInterfaceProtocol: 0 iInterface: 0 bEndpointAddress: 81h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 10 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 02h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 10 bRefresh: 0 bSynchAddress: 0 Dev #2: Microsoft - Basic Optical Mouse wTotalLength: 34 bNumInterfaces: 1 bConfigurationValue: 1 iConfiguration: 0 bmAttributes: 80h MaxPower: 50 bInterfaceNumber: 0 bAlternateSetting: 0 bNumEndpoints: 1 bInterfaceClass: 3 bInterfaceSubClass: 0 bInterfaceProtocol: 0 iInterface: 0 bEndpointAddress: 81h bmAttributes: 03h wMaxPacketSize: 4 bInterval: 10 bRefresh: 0 bSynchAddress: 0 XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 $ ./pk2.exe -on Fatal error> Could not find PICkit2 programmer-- you might try lsusb to see if it's actually there. PK2 version 3.00 alpha 10 - 2007/06/10 c:\Myprog\pickit\pk2-3.00-alpha10\pk2.exe -on Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) found 5 busses Regards, Xiaofan |