| 
      
      
      From: Stephan M. <Ste...@ia...> - 2007-11-09 09:36:33
      
     | 
| See http://www.nabble.com/-Libusb-win32-devel--HID-device-problem-tf2149995.html#a6006965 Stephan > Hi Xiaofan, > > I tried your command line suggestion, but after I hit enter, nothing > happens, and I got the prompt back. How do I debug if there is a > problem with installation? Below is my inf file; would you please > have a look to see if I made anything obviously wrong/ > ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// > ;C:\Program Files\SlimLinePcuDriver\driver>rundll32 libusb0.dll, > usb_install_driver_np_rundll sl_tpcu.inf > ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// > > [Version] > Signature = "$Chicago$" > provider = %manufacturer% > DriverVer = 03/09/2005,0.1.10.1 > CatalogFile = sl_tpcu.cat > > Class = LibUsbDevices > ClassGUID = {EB781AAF-9C70-4523-A5DF-642A87ECA567} > > [ClassInstall] > AddReg=ClassInstall.AddReg > > [ClassInstall32] > AddReg=ClassInstall.AddReg > > [ClassInstall.AddReg] > HKR,,,,"LibUSB-Win32 Devices" > HKR,,Icon,,"-20" > > [Manufacturer] > %manufacturer%=Devices > > ;-------------------------------------------------------------------------- > ; Files > ;-------------------------------------------------------------------------- > > [SourceDisksNames] > 1 = "Libusb-Win32 Driver Installation Disk",, > > [SourceDisksFiles] > libusb0.sys = 1,, > libusb0.dll = 1,, > > [DestinationDirs] > LIBUSB.Files.Sys = 10,System32\Drivers > LIBUSB.Files.Dll = 10,System32 > > [LIBUSB.Files.Sys] > libusb0.sys > > [LIBUSB.Files.Dll] > libusb0.dll > > ;-------------------------------------------------------------------------- > ; Device driver > ;-------------------------------------------------------------------------- > > [LIBUSB_DEV] > CopyFiles = LIBUSB.Files.Sys, LIBUSB.Files.Dll > AddReg = LIBUSB_DEV.AddReg > > [LIBUSB_DEV.NT] > CopyFiles = LIBUSB.Files.Sys, LIBUSB.Files.Dll > > [LIBUSB_DEV.HW] > DelReg = LIBUSB_DEV.DelReg.HW > > [LIBUSB_DEV.NT.HW] > DelReg = LIBUSB_DEV.DelReg.HW > > [LIBUSB_DEV.NT.Services] > AddService = libusb0, 0x00000002, LIBUSB.AddService > > [LIBUSB_DEV.AddReg] > HKR,,DevLoader,,*ntkern > HKR,,NTMPDriver,,libusb0.sys > > [LIBUSB_DEV.DelReg.HW] > HKR,,"LowerFilters" > > ;-------------------------------------------------------------------------- > ; Services > ;-------------------------------------------------------------------------- > > [LIBUSB.AddService] > DisplayName = "LibUsb-Win32 - Kernel Driver 03/09/2005, 0.1.10.1 " > ServiceType = 1 > StartType = 3 > ErrorControl = 0 > ServiceBinary = %12%\libusb0.sys > > ;-------------------------------------------------------------------------- > ; Devices > ;-------------------------------------------------------------------------- > > [Devices] > "SlimLine TPCU_xx Keyboard"=LIBUSB_DEV, USB\VID_0471&PID_0206 > ;"SlimLine TPCU_xx Keyboard"=LIBUSB_DEV, USB\VID_0471&PID_0206&Rev_0000&Col01 > ;"SlimLine TPCU_xx Mouse"=LIBUSB_DEV, USB\VID_0471&PID_0206&Rev_0000&Col02 > ;"SlimLine TPCU_xx Joystic"=LIBUSB_DEV, USB\VID_0471&PID_0206&Rev_0000&Col03 > > [Strings] > manufacturer = "Thales Avionics" > > > ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// > ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// > Thank you very much for your help > > Vu > > On Nov 7, 2007 12:05 PM, < lib...@li... > > wrote: > Send Libusb-win32-devel mailing list submissions to > lib...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > or, via email, send a message with subject or body 'help' to > lib...@li... > > You can reach the person managing the list at > lib...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Libusb-win32-devel digest..." > > > Today's Topics: > > 1. Re: Libusb-win32-devel Digest, Vol 17, Issue 4 (Vu Nguyen) > 2. Re: Libusb-win32-devel Digest, Vol 17, Issue 4 (Xiaofan Chen) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 6 Nov 2007 18:17:59 -0800 > From: "Vu Nguyen" <vu...@gm...> > Subject: Re: [Libusb-win32-devel] Libusb-win32-devel Digest, Vol 17, > Issue 4 > To: lib...@li... > Message-ID: > < 935...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi Xiaofan, > > It has been a while since I got your answer; My device is a HID keyboard > and mouse device; I tried to update the driver as you suggested with the > INF file I created, but WindowsXP does not take my INF file; > I used innoSetup to install the libUsb driver also; > I also looked at the device manager for it HW ID and match that in the INF > file, but nothing works; > Is there something I missed? > > Thank you in advance. > > Vu > > > > > On 10/3/07, Vu Nguyen <vu...@gm...> wrote: > > > > I have a hid keyboard device running windowsXP with libusb version > > > 0.1.12.1; > > > > I need to send vendor specific command to my device; > > > > > > > > I tried to claim the interface so I called the usb_set_configuration() > > > > function first. it hangs and never returns; > > > > > > You need to use device driver and not the filter driver, > > > which means you have to "update" the HID driver to > > > the libusb-win32 driver. Therefore you lose the function > > > of using the original application. > > > > > > The new libusb1 development version will have an HID > > > backend and will solve this problem. However it is not > > > working yet. > > > > > > Xiaofan > > > > > > > > > > > > ------------------------------ > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > > > > ------------------------------ > > > > > > _______________________________________________ > > > Libusb-win32-devel mailing list > > > Lib...@li... > > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > > > > > End of Libusb-win32-devel Digest, Vol 17, Issue 3 > > > ************************************************* > > > > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > > > ------------------------------ > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > > ------------------------------ > > > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > > End of Libusb-win32-devel Digest, Vol 17, Issue 4 > > ************************************************* > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Wed, 7 Nov 2007 11:02:40 +0800 > From: "Xiaofan Chen" <xia...@gm...> > Subject: Re: [Libusb-win32-devel] Libusb-win32-devel Digest, Vol 17, > Issue 4 > To: lib...@li... > Message-ID: > < a27...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > On 11/7/07, Vu Nguyen <vu...@gm...> wrote: > > It has been a while since I got your answer; My device is a HID keyboard > > and mouse device; I tried to update the driver as you suggested with the > > INF file I created, but WindowsXP does not take my INF file; > > I used innoSetup to install the libUsb driver also; > > I also looked at the device manager for it HW ID and match that in the INF > > file, but nothing works; > > Is there something I missed? > > > > > > Last time I had some problems with PICkit 2 as well since Windows > does not like the INF file generated by the INF wizard. > > Stephan taught me to use the following and it worked. You can try > to install/update the driver by using the DLL's (undocumented) > usb_install_driver_np function? > > You can call it from the command line through its rundll interface > rundll32 libusb0.dll,usb_install_driver_np_rundll your_inf_file.inf > > Try it and see if this works for you. > > Regards, > Xiaofan > http://mcuee.blogspot.com > > > ---------- Forwarded message ---------- > From: Stephan Meyer <ste...@we...> > Date: Aug 25, 2006 1:22 AM > Subject: Re: [Libusb-win32-devel] HID device problem > To: lib...@li... > > > > Have you tried to install/update the driver by using the DLL's > (undocumented) usb_install_driver_np function? > > You can call it from the command line through its rundll interface: > > rundll32 libusb0.dll,usb_install_driver_np_rundll your_inf_file.inf > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > ------------------------------ > > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > End of Libusb-win32-devel Digest, Vol 18, Issue 3 > ************************************************* > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel |