| 
      
      
      From: Xiaofan C. <xia...@gm...> - 2006-08-23 02:09:34
       | 
| I have a little cute MCU programmer Microchip PICKit 2 and I beta tests alternative driving programs using libusb under Linux and Windows. Under Windows I need to use libusb-win32 device driver. It runs fine for my home desktop under Windows XP professional SP2 in Singapore (along with various versions of Linux). For more detail, please refer to the following posts. http://forum.microchip.com/tm.aspx?m=110205 Now I am under training in USA and I only has access to the corporate desktop running Windows XP SP2. I have one problem now. Normally PICkit 2 will appear under device manager as two device: "HID-compliant device" and "USB Human Interface Device". And it did appear as two device initially and I could also use the Microchip provided Windows program (using native Windows HID driver) to run it. Then I was trying to "update" the native HID driver to the device driver generated by libusb-win32 (1stly the 20060518 version and then the 0.1.10.1 version). Somehow it failed. This was working for my desktop at home. And then I have a major problem now: PICkit 2 only appears as a "HID-compliant device" inside device manager instead of both "HID-compliant device" and "USB Human Interface Device". The Microchip PC application still works. But I am not able to test the libusb based application since I am not able to install the libusb-win32 device driver. I know I can not use the filter driver due to the fact that this PICkit 2 has dual configurations (HID and custom). We had a discussion on this last year when I was trying to port the libusb based Linux application to Windows with libusb-win32. This is kind of stranger. Is there a reason why an HID device only has one entry in the device manager? Sorry for the long email. Regards, Xiaofan | 
| 
      
      
      From: Xiaofan C. <xia...@gm...> - 2006-08-23 02:15:53
       | 
| On 8/22/06, Xiaofan Chen <xia...@gm...> wrote: > I have a little cute MCU programmer Microchip PICKit 2 and I beta > tests alternative driving programs using libusb under Linux and Windows. > Under Windows I need to use libusb-win32 device driver. > > It runs fine for my home desktop under Windows XP professional > SP2 in Singapore (along with various versions of Linux). For more > detail, please refer to the following posts. > http://forum.microchip.com/tm.aspx?m=110205 > > Now I am under training in USA and I only has access to the corporate > desktop running Windows XP SP2. I have one problem now. > > Normally PICkit 2 will appear under device manager as two > device: "HID-compliant device" and "USB Human Interface Device". > > And it did appear as two device initially and I could also use the > Microchip provided Windows program (using native Windows > HID driver) to run it. > > Then I was trying to "update" the native HID driver to the device driver > generated by libusb-win32 (1stly the 20060518 version and then > the 0.1.10.1 version). Somehow it failed. This was working for my > desktop at home. > > And then I have a major problem now: PICkit 2 only > appears as a "HID-compliant device" inside device manager > instead of both "HID-compliant device" and "USB Human Interface > Device". The Microchip PC application still works. But I am not > able to test the libusb based application since I am not able to > install the libusb-win32 device driver. > > I know I can not use the filter driver due to the fact that this > PICkit 2 has dual configurations (HID and custom). We had > a discussion on this last year when I was trying to port the > libusb based Linux application to Windows with libusb-win32. > > This is kind of stranger. Is there a reason why an HID device > only has one entry in the device manager? > > Sorry for the long email. > Note I could only "update" the driver using the entry "USB Human Interface Device" but not the entry ""HID-compliant device" before. As described in my Microchip Forum post, the procedure to switch the driver to libusb-win32 device driver is the following. ***************************** Step 1: Go to Device Manager, verify that under Human Interface Devices there are two PICkit 2 related device (HID-compilant device and USB Human Interface Device). You know that through the details tab (Device Instance Id: VID_04D8&PID_0033\xxx). Step 2: Right click "USB Human Interface Device" and select "Update Driver..." Choose No to the Windows update question and click Next. Choose "Install from a list of specific location Advanced" and click Next. Choose "Don't search. I will choose the driver to install" and choose Next. Choose "Have Disk" and browse to the device driver directory "C:\Program Files\libusb-win32-device-bin-0.1.10.1\bin" and select pickit2.inf. Pickit2 should be in the Model text box. Ignore the warning "This driver is not digitally signed". (MS will most likely not sign an LGPL/GPLed driver). Select Pickit 2 and click Next. Windows will install the driver. ******************************** Regards, Xiaofan |