You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
(27) |
Dec
(9) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(2) |
Feb
(19) |
Mar
(13) |
Apr
(15) |
May
(11) |
Jun
(17) |
Jul
(31) |
Aug
(45) |
Sep
(10) |
Oct
(40) |
Nov
(39) |
Dec
(45) |
| 2005 |
Jan
(113) |
Feb
(45) |
Mar
(38) |
Apr
(53) |
May
(11) |
Jun
(42) |
Jul
(56) |
Aug
(50) |
Sep
(32) |
Oct
(32) |
Nov
(47) |
Dec
(22) |
| 2006 |
Jan
(19) |
Feb
(32) |
Mar
(40) |
Apr
(40) |
May
(41) |
Jun
(44) |
Jul
(37) |
Aug
(51) |
Sep
(30) |
Oct
(30) |
Nov
(51) |
Dec
(20) |
| 2007 |
Jan
(7) |
Feb
(20) |
Mar
(17) |
Apr
(67) |
May
(13) |
Jun
(73) |
Jul
(16) |
Aug
(58) |
Sep
(29) |
Oct
(5) |
Nov
(74) |
Dec
(9) |
| 2008 |
Jan
(17) |
Feb
(12) |
Mar
(65) |
Apr
(22) |
May
(40) |
Jun
(32) |
Jul
(11) |
Aug
(8) |
Sep
(3) |
Oct
(41) |
Nov
(34) |
Dec
(12) |
| 2009 |
Jan
(44) |
Feb
(33) |
Mar
(16) |
Apr
(109) |
May
(11) |
Jun
(22) |
Jul
(21) |
Aug
(37) |
Sep
(5) |
Oct
(23) |
Nov
(7) |
Dec
(7) |
| 2010 |
Jan
(36) |
Feb
(40) |
Mar
(35) |
Apr
(45) |
May
(42) |
Jun
(104) |
Jul
(135) |
Aug
(50) |
Sep
(65) |
Oct
(110) |
Nov
(129) |
Dec
(75) |
| 2011 |
Jan
(105) |
Feb
(48) |
Mar
(93) |
Apr
(166) |
May
(169) |
Jun
(188) |
Jul
(106) |
Aug
(33) |
Sep
(85) |
Oct
(46) |
Nov
(102) |
Dec
(105) |
| 2012 |
Jan
(81) |
Feb
(115) |
Mar
(56) |
Apr
(93) |
May
(56) |
Jun
(77) |
Jul
(88) |
Aug
(52) |
Sep
(72) |
Oct
(16) |
Nov
(70) |
Dec
(70) |
| 2013 |
Jan
(23) |
Feb
(85) |
Mar
(38) |
Apr
(48) |
May
(40) |
Jun
(49) |
Jul
(33) |
Aug
(28) |
Sep
(66) |
Oct
(28) |
Nov
(28) |
Dec
(16) |
| 2014 |
Jan
(33) |
Feb
(58) |
Mar
(17) |
Apr
(50) |
May
(16) |
Jun
(24) |
Jul
(19) |
Aug
(32) |
Sep
(10) |
Oct
(10) |
Nov
(4) |
Dec
(10) |
| 2015 |
Jan
(11) |
Feb
(2) |
Mar
(4) |
Apr
(14) |
May
(1) |
Jun
(6) |
Jul
(16) |
Aug
(29) |
Sep
(6) |
Oct
(26) |
Nov
(10) |
Dec
|
| 2016 |
Jan
|
Feb
(20) |
Mar
(6) |
Apr
|
May
(3) |
Jun
(3) |
Jul
|
Aug
(16) |
Sep
(6) |
Oct
|
Nov
(15) |
Dec
|
| 2017 |
Jan
(1) |
Feb
(2) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2018 |
Jan
|
Feb
(8) |
Mar
(10) |
Apr
(16) |
May
|
Jun
(15) |
Jul
|
Aug
(3) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(3) |
Aug
|
Sep
(6) |
Oct
(2) |
Nov
(4) |
Dec
|
| 2022 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(3) |
Mar
(1) |
Apr
(1) |
May
(11) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
(3) |
Dec
|
|
From: Dan E. <dan...@ne...> - 2007-06-28 08:16:46
|
Krakora, Robert V wrote: > > Dan: > > Yes, I see your point. There are a couple of other filter drivers > installed on my Windows XP SP2 PC. Could they possibly be causing > problems for set_configuration()? I was trying to call > set_configuration() originally from my driver and it had no effect. I > saw that it was commented out in pnp.c, so I commented it back in, > rebuilt the libusb0.sys driver, installed it, rebooted my PC and saw > that none of my USB devices were working. When I set > "MaximumTransferSize" to 65535 in pnp.c and repeated these steps my USB > devices again functioned after the reboot. ??? I believe HDD's Device > Monitoring Studio installed a filter driver. > Well it wouldn't be the first time that Microsoft documentation was a bit light on the truth! Your experience suggests that the maximum transfer size field is doing something (contrary to the MS online docs). Slightly off topic, there's also a MS app note stating that for a USB mass storage device to have an executable autorun on it, then it must have the removable bit clear in the response to the SCSI INQUIRY command. Well I've been looking at a U3 flash stick here on the analyzer, and it has that bit set! It has 2 luns, the main one for writing to, and a subsidiary one which appears as a CDROM drive (it fills the first byte of the SCSI INQUIRY command with a 5), and off which loads some application software which runs automatically. As for your set configuration problem, have you turned on debugging in the driver and seen why the set configuration failed? I've never used libusb in filter mode. Dan. |
|
From: Krakora, R. V <rob...@de...> - 2007-06-27 19:32:20
|
Dan & Stephan: Please forgive me for my stupidity on resolving my set_configuration() issue. Regards, Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of lib...@li... Sent: Wednesday, June 27, 2007 3:05 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 13, Issue 25 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: set_configuration() fixed (Stephan Meyer) (Dan Ellis) 2. Re: Libusb-win32-devel Digest, Vol 13, Issue 22 (Krakora, Robert V) ---------------------------------------------------------------------- Message: 1 Date: Wed, 27 Jun 2007 10:40:53 +0100 From: Dan Ellis <dan...@ne...> Subject: Re: [Libusb-win32-devel] set_configuration() fixed (Stephan Meyer) To: lib...@li... Message-ID: <468...@ne...> Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed Krakora, Robert V wrote: > > You had select_configuration() commented out in pnp.c and if I > uncommented it as it was previously coded with 65536 as the maximum > transfer size, then none of my USB devices would function. With 65535 > as the maximum transfer size, my USB devices function properly. USB > devices being the mouse, keyboard, etc...this is on Windows XP SP2 > running on a Dell Precision M65. > It's not necessarily a good idea to call set_configuration automatically in pnp, since it should really be under control of the application, and it can fail if there is insufficient power. The application should choose which configuration to set (and be aware of what to do if there isn't enough power). Also if the device has multiple interfaces, then you really don't want libusb to be setting the configuration since it should already be set. Linux does set the configuration automatically... I don't understand why you are worried about the maximum transfer size setting, from MS website: http://msdn2.microsoft.com/en-us/library/ms790478.aspx In Windows 2000 *USBD_CreateConfigurationRequestEx* <http://msdn2.microsoft.com/en-us/library/ms790505.aspx> initializes *Pipes[i].MaximumTransferSize* to the default maximum transfer size for a single URB read/write request. The client driver can specify a different maximum transfer size in the *Pipes[i].MaximumTransferSize*. The USB stack ignores this value in Windows XP, Windows Server 2003 and later operating system. So according to that it shouldn't make any difference what it's set to on XP. More assertively: http://msdn2.microsoft.com/en-us/library/ms790486.aspx Windows XP, Windows Server 2003 and Later Operating Systems In Windows XP, Windows Server 2003 and later operating system, the *MaximumTransferSize* member of the USBD_PIPE_INFORMATION <http://msdn2.microsoft.com/en-us/library/ms793357.aspx> structure is obsolete. The USB stack ignores the value in *MaximumTransferSize* for both composite and non-composite devices. To regulate the bandwidth used by their devices, client drivers must either change the Alt settings for an interface or restrict the maximum packet size by setting *MaximumPacketSize* to some value less than or equal to the value of of /wMaxPacketSize /defined in device firmware for the current Alt settings. . Dan Ellis. ------------------------------ Message: 2 Date: Wed, 27 Jun 2007 11:37:40 -0400 From: "Krakora, Robert V" <rob...@de...> Subject: Re: [Libusb-win32-devel] Libusb-win32-devel Digest, Vol 13, Issue 22 To: <lib...@li...> Message-ID: =09 <3C7...@US... Auto.net> =09 Content-Type: text/plain; charset=3D"us-ascii" Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of lib...@li... Sent: Tuesday, June 26, 2007 3:08 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 13, Issue 22 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 SVN version and HID backend (Xiaofan Chen) 2. Re: Progress of Windows Vista support (Filippos Papadopoulos) 3. Re: Progress of Windows Vista support (Stephan Meyer) 4. Re: set_configuration() fixed (Stephan Meyer) 5. Re: libusb-win32 SVN version and HID backend (Stephan Meyer) ---------------------------------------------------------------------- Message: 1 Date: Mon, 25 Jun 2007 19:29:59 -0400 From: "Xiaofan Chen" <xia...@gm...> Subject: Re: [Libusb-win32-devel] libusb-win32 SVN version and HID backend To: lib...@li... Message-ID: <a27...@ma...> Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed On 6/25/07, Xiaofan Chen <xia...@gm...> wrote: > 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/libusb 1/ > > > > 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. > If I am using the libusb-win32 device driver, then I have the following results. XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 $ ./pk2.exe -on 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) LIBUSB-DLL - trace: usb_init(): dll version: 1.0.0.0 Found USB PICkit as device 'dev0002' on USB bus /bus0 Communication established. PICkit2 firmware version is 2.2.0 $ ./testlibusb.exe -v Dev #3: 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 Dev #2: 4Microchip Technology Inc. - HPICkit 2 Microcontroller Programmer - Serial Number: PIC18F2550 wTotalLength: 41 bNumInterfaces: 1 bConfigurationValue: 1 iConfiguration: 2 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: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 wTotalLength: 32 bNumInterfaces: 1 bConfigurationValue: 2 iConfiguration: 4 bmAttributes: 80h MaxPower: 50 bInterfaceNumber: 0 bAlternateSetting: 0 bNumEndpoints: 2 bInterfaceClass: 255 bInterfaceSubClass: 0 bInterfaceProtocol: 0 iInterface: 0 bEndpointAddress: 81h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 Regards, Xiaofan ------------------------------ Message: 2 Date: Tue, 26 Jun 2007 10:23:51 +0300 From: "Filippos Papadopoulos" <psy...@gm...> Subject: Re: [Libusb-win32-devel] Progress of Windows Vista support To: lib...@li... Message-ID: <9f0...@ma...> Content-Type: text/plain; charset=3DUTF-8; format=3Dflowed Well it doesnt work for me. I have Vista Business 32-bit. When i install libusb-win32-filter-bin-0.1.12.1 all the USB devices stop to work. E.g the USB mouse. When i reboot more devices like the sound card dont work because windows cant load its drivers... See also http://sourceforge.net/tracker/index.php?func=3Ddetail&aid= =3D1742798&group_i d=3D78138&atid=3D552265 Thanks. 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/libusb 1/ > > Stephan > > > > > > Hi, > > i would like to ask whats the progress of supporting Windows Vista. > > > > Thanks, > > Filip. > > > > ------------------------------------------------------------------------ - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > ________________________________________________________________________ __ > Erweitern Sie FreeMail zu einem noch leistungsst?rkeren E-Mail-Postfach! > Mehr Infos unter http://produkte.web.de/club/?mc=3D021131 > > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > ------------------------------ Message: 3 Date: Tue, 26 Jun 2007 09:27:09 +0200 From: Stephan Meyer <Ste...@ia...> Subject: Re: [Libusb-win32-devel] Progress of Windows Vista support To: lib...@li... Message-ID: =09 <OF8...@re...> Content-Type: text/plain; charset=3D"ISO-8859-1" Use libusb as a normal device driver (.inf file install). It will work then. Stephan > Well it doesnt work for me. I have Vista Business 32-bit. > When i install libusb-win32-filter-bin-0.1.12.1 all the USB devices > stop to work. E.g the USB mouse. When i reboot more devices like the > sound card dont work because windows cant load its drivers... > See also > http://sourceforge.net/tracker/index.php? > func=3Ddetail&aid=3D1742798&group_id=3D78138&atid=3D552265 >=20 >=20 > Thanks. >=20 >=20 > 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. > >=20 http://libusb-win32.svn.sourceforge.net/viewvc/libusb-win32/trunk/libusb 1/ > > > > Stephan > > > > > > > > > > Hi, > > > i would like to ask whats the progress of supporting Windows Vista. > > > > > > Thanks, > > > Filip. > > > > > >=20 ------------------------------------------------------------------------ - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Libusb-win32-devel mailing list > > > Lib...@li... > > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > > > > >=20 ________________________________________________________________________ __ > > Erweitern Sie FreeMail zu einem noch leistungsst?rkeren=20 E-Mail-Postfach! > > Mehr Infos unter http://produkte.web.de/club/?mc=3D021131 > > > > > >=20 ------------------------------------------------------------------------ - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > >=20 ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 ------------------------------ Message: 4 Date: Tue, 26 Jun 2007 18:40:24 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] set_configuration() fixed To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 Why do you think that a max transfer size of 65536 (0x10000) is wrong?=20 This number must be an integer multiple of common endpoint buffer sizes (8, 64, 512, 1024). If it would be 0x10000 - 1 then transfers >=3D 0x10000 bytes won't work any more. Stephan=20 >=20 >=20 > I fixed set_configuration() which I found to be broken. The > max transfer size on the pipes was being set to 65536 instead of 65535.=20 > Attached is the header file in which I changed a #define from 65536 to 65535.=20 > Also attached is a version of pnp.c with the set_configuration() call > uncommented. Please forgive the formatting on pnp.c. I had to format it with > by code beautifier in order to follow the code. I will be 40 next month and I > am starting to become near-sighted. >=20 >=20 > =20 >=20 >=20 > Best Regards, >=20 >=20 > =20 >=20 >=20 > Rob Krakora >=20 >=20 > Software Engineer >=20 >=20 > Delphi Electronics > & Safety >=20 >=20 > e-mail: rob...@de... >=20 >=20 > phone: 765-451-8574 >=20 >=20 > =20 >=20 > ----------------------------------------------------------------- > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ >=20 > ----------------------------------------------------------------- > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000066 ------------------------------ Message: 5 Date: Tue, 26 Jun 2007 19:03:53 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] libusb-win32 SVN version and HID backend To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 >=20 > 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/libusb 1/ > > > > Stephan > > >=20 > Nice to see that the new version will have three backend (libusb-win32, > HID and winusb). >=20 > 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? >=20 It's only working partially. The backend is fully coded but has not been tested very much and I don't know if real data transfers actually work. What's still missing are more unit-tests (see tests/src folder) and a test firmware that's 100% compliant with the HID spec (see tests/firmware folder). It would be really nice if someone with good HID expertise would contribute to this backend. > PICkit 2 does have two configurations, now it only display the first. Is this > normal? Yes that's normal. The descriptors you see when using Windows' HID driver are not read from the device (Windows doesn't provide any API for this). These descriptors are instead generated by the HID backend based on the information provided by Windows' HID API. Have a look at the source code and see how it works. The backend assumes that every HID device has only one configuration, one interface, and 1-2 interrupt endpoints. >=20 > 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)? You can just use the libusb API as if the HID would be a 'normal' libusb based device.=20 >=20 > By the way, I am using Windows XP SP2. >=20 > 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 >=20 > XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 > $ ./pk2.exe -on >=20 > Fatal error> Could not find PICkit2 programmer-- > you might try lsusb to see if it's actually there. >=20 >=20 > PK2 version 3.00 alpha 10 - 2007/06/10 > c:\Myprog\pickit\pk2-3.00-alpha10\pk2.exe -on >=20 > Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) > found 5 busses >=20 > Regards, > Xiaofan >=20 > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000066 ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel End of Libusb-win32-devel Digest, Vol 13, Issue 22 ************************************************** ************************************************************************ **************** Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.=20 ************************************************************************ **************** ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel End of Libusb-win32-devel Digest, Vol 13, Issue 25 ************************************************** ***************************************************************************= ************* Note: If the reader of this message is not the intended recipient, or an= employee or agent responsible for delivering this message to the intended= recipient, you are hereby notified that any dissemination, distribution or= copying of this communication is strictly prohibited. If you have received= this communication in error, please notify us immediately by replying to= the message and deleting it from your computer. Thank you.=20 ***************************************************************************= ************* |
|
From: Krakora, R. V <rob...@de...> - 2007-06-27 19:16:01
|
Dan: Yes, I see your point. There are a couple of other filter drivers installed on my Windows XP SP2 PC. Could they possibly be causing problems for set_configuration()? I was trying to call set_configuration() originally from my driver and it had no effect. I saw that it was commented out in pnp.c, so I commented it back in, rebuilt the libusb0.sys driver, installed it, rebooted my PC and saw that none of my USB devices were working. When I set "MaximumTransferSize" to 65535 in pnp.c and repeated these steps my USB devices again functioned after the reboot. ??? I believe HDD's Device Monitoring Studio installed a filter driver. Stephan: I was able to get the latest source via SVN. Thanks for adding the composite device support!!! Best Regards, Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of lib...@li... Sent: Wednesday, June 27, 2007 3:05 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 13, Issue 25 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: set_configuration() fixed (Stephan Meyer) (Dan Ellis) 2. Re: Libusb-win32-devel Digest, Vol 13, Issue 22 (Krakora, Robert V) ---------------------------------------------------------------------- Message: 1 Date: Wed, 27 Jun 2007 10:40:53 +0100 From: Dan Ellis <dan...@ne...> Subject: Re: [Libusb-win32-devel] set_configuration() fixed (Stephan Meyer) To: lib...@li... Message-ID: <468...@ne...> Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed Krakora, Robert V wrote: > > You had select_configuration() commented out in pnp.c and if I > uncommented it as it was previously coded with 65536 as the maximum > transfer size, then none of my USB devices would function. With 65535 > as the maximum transfer size, my USB devices function properly. USB > devices being the mouse, keyboard, etc...this is on Windows XP SP2 > running on a Dell Precision M65. > It's not necessarily a good idea to call set_configuration automatically in pnp, since it should really be under control of the application, and it can fail if there is insufficient power. The application should choose which configuration to set (and be aware of what to do if there isn't enough power). Also if the device has multiple interfaces, then you really don't want libusb to be setting the configuration since it should already be set. Linux does set the configuration automatically... I don't understand why you are worried about the maximum transfer size setting, from MS website: http://msdn2.microsoft.com/en-us/library/ms790478.aspx In Windows 2000 *USBD_CreateConfigurationRequestEx* <http://msdn2.microsoft.com/en-us/library/ms790505.aspx> initializes *Pipes[i].MaximumTransferSize* to the default maximum transfer size for a single URB read/write request. The client driver can specify a different maximum transfer size in the *Pipes[i].MaximumTransferSize*. The USB stack ignores this value in Windows XP, Windows Server 2003 and later operating system. So according to that it shouldn't make any difference what it's set to on XP. More assertively: http://msdn2.microsoft.com/en-us/library/ms790486.aspx Windows XP, Windows Server 2003 and Later Operating Systems In Windows XP, Windows Server 2003 and later operating system, the *MaximumTransferSize* member of the USBD_PIPE_INFORMATION <http://msdn2.microsoft.com/en-us/library/ms793357.aspx> structure is obsolete. The USB stack ignores the value in *MaximumTransferSize* for both composite and non-composite devices. To regulate the bandwidth used by their devices, client drivers must either change the Alt settings for an interface or restrict the maximum packet size by setting *MaximumPacketSize* to some value less than or equal to the value of of /wMaxPacketSize /defined in device firmware for the current Alt settings. . Dan Ellis. ------------------------------ Message: 2 Date: Wed, 27 Jun 2007 11:37:40 -0400 From: "Krakora, Robert V" <rob...@de...> Subject: Re: [Libusb-win32-devel] Libusb-win32-devel Digest, Vol 13, Issue 22 To: <lib...@li...> Message-ID: =09 <3C7...@US... Auto.net> =09 Content-Type: text/plain; charset=3D"us-ascii" Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of lib...@li... Sent: Tuesday, June 26, 2007 3:08 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 13, Issue 22 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 SVN version and HID backend (Xiaofan Chen) 2. Re: Progress of Windows Vista support (Filippos Papadopoulos) 3. Re: Progress of Windows Vista support (Stephan Meyer) 4. Re: set_configuration() fixed (Stephan Meyer) 5. Re: libusb-win32 SVN version and HID backend (Stephan Meyer) ---------------------------------------------------------------------- Message: 1 Date: Mon, 25 Jun 2007 19:29:59 -0400 From: "Xiaofan Chen" <xia...@gm...> Subject: Re: [Libusb-win32-devel] libusb-win32 SVN version and HID backend To: lib...@li... Message-ID: <a27...@ma...> Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed On 6/25/07, Xiaofan Chen <xia...@gm...> wrote: > 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/libusb 1/ > > > > 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. > If I am using the libusb-win32 device driver, then I have the following results. XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 $ ./pk2.exe -on 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) LIBUSB-DLL - trace: usb_init(): dll version: 1.0.0.0 Found USB PICkit as device 'dev0002' on USB bus /bus0 Communication established. PICkit2 firmware version is 2.2.0 $ ./testlibusb.exe -v Dev #3: 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 Dev #2: 4Microchip Technology Inc. - HPICkit 2 Microcontroller Programmer - Serial Number: PIC18F2550 wTotalLength: 41 bNumInterfaces: 1 bConfigurationValue: 1 iConfiguration: 2 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: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 wTotalLength: 32 bNumInterfaces: 1 bConfigurationValue: 2 iConfiguration: 4 bmAttributes: 80h MaxPower: 50 bInterfaceNumber: 0 bAlternateSetting: 0 bNumEndpoints: 2 bInterfaceClass: 255 bInterfaceSubClass: 0 bInterfaceProtocol: 0 iInterface: 0 bEndpointAddress: 81h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 Regards, Xiaofan ------------------------------ Message: 2 Date: Tue, 26 Jun 2007 10:23:51 +0300 From: "Filippos Papadopoulos" <psy...@gm...> Subject: Re: [Libusb-win32-devel] Progress of Windows Vista support To: lib...@li... Message-ID: <9f0...@ma...> Content-Type: text/plain; charset=3DUTF-8; format=3Dflowed Well it doesnt work for me. I have Vista Business 32-bit. When i install libusb-win32-filter-bin-0.1.12.1 all the USB devices stop to work. E.g the USB mouse. When i reboot more devices like the sound card dont work because windows cant load its drivers... See also http://sourceforge.net/tracker/index.php?func=3Ddetail&aid= =3D1742798&group_i d=3D78138&atid=3D552265 Thanks. 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/libusb 1/ > > Stephan > > > > > > Hi, > > i would like to ask whats the progress of supporting Windows Vista. > > > > Thanks, > > Filip. > > > > ------------------------------------------------------------------------ - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > ________________________________________________________________________ __ > Erweitern Sie FreeMail zu einem noch leistungsst?rkeren E-Mail-Postfach! > Mehr Infos unter http://produkte.web.de/club/?mc=3D021131 > > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > ------------------------------ Message: 3 Date: Tue, 26 Jun 2007 09:27:09 +0200 From: Stephan Meyer <Ste...@ia...> Subject: Re: [Libusb-win32-devel] Progress of Windows Vista support To: lib...@li... Message-ID: =09 <OF8...@re...> Content-Type: text/plain; charset=3D"ISO-8859-1" Use libusb as a normal device driver (.inf file install). It will work then. Stephan > Well it doesnt work for me. I have Vista Business 32-bit. > When i install libusb-win32-filter-bin-0.1.12.1 all the USB devices > stop to work. E.g the USB mouse. When i reboot more devices like the > sound card dont work because windows cant load its drivers... > See also > http://sourceforge.net/tracker/index.php? > func=3Ddetail&aid=3D1742798&group_id=3D78138&atid=3D552265 >=20 >=20 > Thanks. >=20 >=20 > 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. > >=20 http://libusb-win32.svn.sourceforge.net/viewvc/libusb-win32/trunk/libusb 1/ > > > > Stephan > > > > > > > > > > Hi, > > > i would like to ask whats the progress of supporting Windows Vista. > > > > > > Thanks, > > > Filip. > > > > > >=20 ------------------------------------------------------------------------ - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Libusb-win32-devel mailing list > > > Lib...@li... > > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > > > > >=20 ________________________________________________________________________ __ > > Erweitern Sie FreeMail zu einem noch leistungsst?rkeren=20 E-Mail-Postfach! > > Mehr Infos unter http://produkte.web.de/club/?mc=3D021131 > > > > > >=20 ------------------------------------------------------------------------ - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > >=20 ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 ------------------------------ Message: 4 Date: Tue, 26 Jun 2007 18:40:24 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] set_configuration() fixed To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 Why do you think that a max transfer size of 65536 (0x10000) is wrong?=20 This number must be an integer multiple of common endpoint buffer sizes (8, 64, 512, 1024). If it would be 0x10000 - 1 then transfers >=3D 0x10000 bytes won't work any more. Stephan=20 >=20 >=20 > I fixed set_configuration() which I found to be broken. The > max transfer size on the pipes was being set to 65536 instead of 65535.=20 > Attached is the header file in which I changed a #define from 65536 to 65535.=20 > Also attached is a version of pnp.c with the set_configuration() call > uncommented. Please forgive the formatting on pnp.c. I had to format it with > by code beautifier in order to follow the code. I will be 40 next month and I > am starting to become near-sighted. >=20 >=20 > =20 >=20 >=20 > Best Regards, >=20 >=20 > =20 >=20 >=20 > Rob Krakora >=20 >=20 > Software Engineer >=20 >=20 > Delphi Electronics > & Safety >=20 >=20 > e-mail: rob...@de... >=20 >=20 > phone: 765-451-8574 >=20 >=20 > =20 >=20 > ----------------------------------------------------------------- > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ >=20 > ----------------------------------------------------------------- > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000066 ------------------------------ Message: 5 Date: Tue, 26 Jun 2007 19:03:53 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] libusb-win32 SVN version and HID backend To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 >=20 > 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/libusb 1/ > > > > Stephan > > >=20 > Nice to see that the new version will have three backend (libusb-win32, > HID and winusb). >=20 > 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? >=20 It's only working partially. The backend is fully coded but has not been tested very much and I don't know if real data transfers actually work. What's still missing are more unit-tests (see tests/src folder) and a test firmware that's 100% compliant with the HID spec (see tests/firmware folder). It would be really nice if someone with good HID expertise would contribute to this backend. > PICkit 2 does have two configurations, now it only display the first. Is this > normal? Yes that's normal. The descriptors you see when using Windows' HID driver are not read from the device (Windows doesn't provide any API for this). These descriptors are instead generated by the HID backend based on the information provided by Windows' HID API. Have a look at the source code and see how it works. The backend assumes that every HID device has only one configuration, one interface, and 1-2 interrupt endpoints. >=20 > 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)? You can just use the libusb API as if the HID would be a 'normal' libusb based device.=20 >=20 > By the way, I am using Windows XP SP2. >=20 > 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 >=20 > XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 > $ ./pk2.exe -on >=20 > Fatal error> Could not find PICkit2 programmer-- > you might try lsusb to see if it's actually there. >=20 >=20 > PK2 version 3.00 alpha 10 - 2007/06/10 > c:\Myprog\pickit\pk2-3.00-alpha10\pk2.exe -on >=20 > Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) > found 5 busses >=20 > Regards, > Xiaofan >=20 > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000066 ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel End of Libusb-win32-devel Digest, Vol 13, Issue 22 ************************************************** ************************************************************************ **************** Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.=20 ************************************************************************ **************** ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel End of Libusb-win32-devel Digest, Vol 13, Issue 25 ************************************************** ***************************************************************************= ************* Note: If the reader of this message is not the intended recipient, or an= employee or agent responsible for delivering this message to the intended= recipient, you are hereby notified that any dissemination, distribution or= copying of this communication is strictly prohibited. If you have received= this communication in error, please notify us immediately by replying to= the message and deleting it from your computer. Thank you.=20 ***************************************************************************= ************* |
|
From: Krakora, R. V <rob...@de...> - 2007-06-27 15:42:26
|
Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of lib...@li... Sent: Tuesday, June 26, 2007 3:08 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 13, Issue 22 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 SVN version and HID backend (Xiaofan Chen) 2. Re: Progress of Windows Vista support (Filippos Papadopoulos) 3. Re: Progress of Windows Vista support (Stephan Meyer) 4. Re: set_configuration() fixed (Stephan Meyer) 5. Re: libusb-win32 SVN version and HID backend (Stephan Meyer) ---------------------------------------------------------------------- Message: 1 Date: Mon, 25 Jun 2007 19:29:59 -0400 From: "Xiaofan Chen" <xia...@gm...> Subject: Re: [Libusb-win32-devel] libusb-win32 SVN version and HID backend To: lib...@li... Message-ID: <a27...@ma...> Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed On 6/25/07, Xiaofan Chen <xia...@gm...> wrote: > 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/libusb 1/ > > > > 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. > If I am using the libusb-win32 device driver, then I have the following results. XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 $ ./pk2.exe -on 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) LIBUSB-DLL - trace: usb_init(): dll version: 1.0.0.0 Found USB PICkit as device 'dev0002' on USB bus /bus0 Communication established. PICkit2 firmware version is 2.2.0 $ ./testlibusb.exe -v Dev #3: 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 Dev #2: 4Microchip Technology Inc. - HPICkit 2 Microcontroller Programmer - Serial Number: PIC18F2550 wTotalLength: 41 bNumInterfaces: 1 bConfigurationValue: 1 iConfiguration: 2 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: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 wTotalLength: 32 bNumInterfaces: 1 bConfigurationValue: 2 iConfiguration: 4 bmAttributes: 80h MaxPower: 50 bInterfaceNumber: 0 bAlternateSetting: 0 bNumEndpoints: 2 bInterfaceClass: 255 bInterfaceSubClass: 0 bInterfaceProtocol: 0 iInterface: 0 bEndpointAddress: 81h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 Regards, Xiaofan ------------------------------ Message: 2 Date: Tue, 26 Jun 2007 10:23:51 +0300 From: "Filippos Papadopoulos" <psy...@gm...> Subject: Re: [Libusb-win32-devel] Progress of Windows Vista support To: lib...@li... Message-ID: <9f0...@ma...> Content-Type: text/plain; charset=3DUTF-8; format=3Dflowed Well it doesnt work for me. I have Vista Business 32-bit. When i install libusb-win32-filter-bin-0.1.12.1 all the USB devices stop to work. E.g the USB mouse. When i reboot more devices like the sound card dont work because windows cant load its drivers... See also http://sourceforge.net/tracker/index.php?func=3Ddetail&aid= =3D1742798&group_i d=3D78138&atid=3D552265 Thanks. 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/libusb 1/ > > Stephan > > > > > > Hi, > > i would like to ask whats the progress of supporting Windows Vista. > > > > Thanks, > > Filip. > > > > ------------------------------------------------------------------------ - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > ________________________________________________________________________ __ > Erweitern Sie FreeMail zu einem noch leistungsst?rkeren E-Mail-Postfach! > Mehr Infos unter http://produkte.web.de/club/?mc=3D021131 > > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > ------------------------------ Message: 3 Date: Tue, 26 Jun 2007 09:27:09 +0200 From: Stephan Meyer <Ste...@ia...> Subject: Re: [Libusb-win32-devel] Progress of Windows Vista support To: lib...@li... Message-ID: =09 <OF8...@re...> Content-Type: text/plain; charset=3D"ISO-8859-1" Use libusb as a normal device driver (.inf file install). It will work then. Stephan > Well it doesnt work for me. I have Vista Business 32-bit. > When i install libusb-win32-filter-bin-0.1.12.1 all the USB devices > stop to work. E.g the USB mouse. When i reboot more devices like the > sound card dont work because windows cant load its drivers... > See also > http://sourceforge.net/tracker/index.php? > func=3Ddetail&aid=3D1742798&group_id=3D78138&atid=3D552265 >=20 >=20 > Thanks. >=20 >=20 > 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. > >=20 http://libusb-win32.svn.sourceforge.net/viewvc/libusb-win32/trunk/libusb 1/ > > > > Stephan > > > > > > > > > > Hi, > > > i would like to ask whats the progress of supporting Windows Vista. > > > > > > Thanks, > > > Filip. > > > > > >=20 ------------------------------------------------------------------------ - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Libusb-win32-devel mailing list > > > Lib...@li... > > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > > > > >=20 ________________________________________________________________________ __ > > Erweitern Sie FreeMail zu einem noch leistungsst?rkeren=20 E-Mail-Postfach! > > Mehr Infos unter http://produkte.web.de/club/?mc=3D021131 > > > > > >=20 ------------------------------------------------------------------------ - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > >=20 ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 ------------------------------ Message: 4 Date: Tue, 26 Jun 2007 18:40:24 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] set_configuration() fixed To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 Why do you think that a max transfer size of 65536 (0x10000) is wrong?=20 This number must be an integer multiple of common endpoint buffer sizes (8, 64, 512, 1024). If it would be 0x10000 - 1 then transfers >=3D 0x10000 bytes won't work any more. Stephan=20 >=20 >=20 > I fixed set_configuration() which I found to be broken. The > max transfer size on the pipes was being set to 65536 instead of 65535.=20 > Attached is the header file in which I changed a #define from 65536 to 65535.=20 > Also attached is a version of pnp.c with the set_configuration() call > uncommented. Please forgive the formatting on pnp.c. I had to format it with > by code beautifier in order to follow the code. I will be 40 next month and I > am starting to become near-sighted. >=20 >=20 > =20 >=20 >=20 > Best Regards, >=20 >=20 > =20 >=20 >=20 > Rob Krakora >=20 >=20 > Software Engineer >=20 >=20 > Delphi Electronics > & Safety >=20 >=20 > e-mail: rob...@de... >=20 >=20 > phone: 765-451-8574 >=20 >=20 > =20 >=20 > ----------------------------------------------------------------- > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ >=20 > ----------------------------------------------------------------- > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000066 ------------------------------ Message: 5 Date: Tue, 26 Jun 2007 19:03:53 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] libusb-win32 SVN version and HID backend To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 >=20 > 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/libusb 1/ > > > > Stephan > > >=20 > Nice to see that the new version will have three backend (libusb-win32, > HID and winusb). >=20 > 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? >=20 It's only working partially. The backend is fully coded but has not been tested very much and I don't know if real data transfers actually work. What's still missing are more unit-tests (see tests/src folder) and a test firmware that's 100% compliant with the HID spec (see tests/firmware folder). It would be really nice if someone with good HID expertise would contribute to this backend. > PICkit 2 does have two configurations, now it only display the first. Is this > normal? Yes that's normal. The descriptors you see when using Windows' HID driver are not read from the device (Windows doesn't provide any API for this). These descriptors are instead generated by the HID backend based on the information provided by Windows' HID API. Have a look at the source code and see how it works. The backend assumes that every HID device has only one configuration, one interface, and 1-2 interrupt endpoints. >=20 > 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)? You can just use the libusb API as if the HID would be a 'normal' libusb based device.=20 >=20 > By the way, I am using Windows XP SP2. >=20 > 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 >=20 > XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 > $ ./pk2.exe -on >=20 > Fatal error> Could not find PICkit2 programmer-- > you might try lsusb to see if it's actually there. >=20 >=20 > PK2 version 3.00 alpha 10 - 2007/06/10 > c:\Myprog\pickit\pk2-3.00-alpha10\pk2.exe -on >=20 > Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) > found 5 busses >=20 > Regards, > Xiaofan >=20 > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000066 ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel End of Libusb-win32-devel Digest, Vol 13, Issue 22 ************************************************** ***************************************************************************= ************* Note: If the reader of this message is not the intended recipient, or an= employee or agent responsible for delivering this message to the intended= recipient, you are hereby notified that any dissemination, distribution or= copying of this communication is strictly prohibited. If you have received= this communication in error, please notify us immediately by replying to= the message and deleting it from your computer. Thank you.=20 ***************************************************************************= ************* |
|
From: Dan E. <dan...@ne...> - 2007-06-27 09:38:55
|
Krakora, Robert V wrote: > > You had select_configuration() commented out in pnp.c and if I > uncommented it as it was previously coded with 65536 as the maximum > transfer size, then none of my USB devices would function. With 65535 > as the maximum transfer size, my USB devices function properly. USB > devices being the mouse, keyboard, etc...this is on Windows XP SP2 > running on a Dell Precision M65. > It's not necessarily a good idea to call set_configuration automatically in pnp, since it should really be under control of the application, and it can fail if there is insufficient power. The application should choose which configuration to set (and be aware of what to do if there isn't enough power). Also if the device has multiple interfaces, then you really don't want libusb to be setting the configuration since it should already be set. Linux does set the configuration automatically... I don't understand why you are worried about the maximum transfer size setting, from MS website: http://msdn2.microsoft.com/en-us/library/ms790478.aspx In Windows 2000 *USBD_CreateConfigurationRequestEx* <http://msdn2.microsoft.com/en-us/library/ms790505.aspx> initializes *Pipes[i].MaximumTransferSize* to the default maximum transfer size for a single URB read/write request. The client driver can specify a different maximum transfer size in the *Pipes[i].MaximumTransferSize*. The USB stack ignores this value in Windows XP, Windows Server 2003 and later operating system. So according to that it shouldn't make any difference what it's set to on XP. More assertively: http://msdn2.microsoft.com/en-us/library/ms790486.aspx Windows XP, Windows Server 2003 and Later Operating Systems In Windows XP, Windows Server 2003 and later operating system, the *MaximumTransferSize* member of the USBD_PIPE_INFORMATION <http://msdn2.microsoft.com/en-us/library/ms793357.aspx> structure is obsolete. The USB stack ignores the value in *MaximumTransferSize* for both composite and non-composite devices. To regulate the bandwidth used by their devices, client drivers must either change the Alt settings for an interface or restrict the maximum packet size by setting *MaximumPacketSize* to some value less than or equal to the value of of /wMaxPacketSize /defined in device firmware for the current Alt settings. . Dan Ellis. |
|
From: Krakora, R. V <rob...@de...> - 2007-06-26 21:27:24
|
I get the following when I try to check out the project... C:\Documents and Settings\pzs7gp>svn co https://libusb-win32.svn.sourceforge.net /svnroot/libusb-win32 libusb-win32 svn: PROPFIND request failed on '/svnroot/libusb-win32' svn: PROPFIND of '/svnroot/libusb-win32': Could not resolve hostname `libusb-win 32.svn.sourceforge.net': The requested name is valid and was found in the databa se, but it does not have the correct associated data being resolved for. (http s://libusb-win32.svn.sourceforge.net) Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of lib...@li... Sent: Tuesday, June 26, 2007 4:58 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 13, Issue 23 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. libusb-win32 composite device support (Krakora, Robert V) 2. Re: libusb-win32 composite device support (Stephan Meyer) 3. Re: set_configuration() fixed (Stephan Meyer) (Krakora, Robert V) ---------------------------------------------------------------------- Message: 1 Date: Tue, 26 Jun 2007 15:40:29 -0400 From: "Krakora, Robert V" <rob...@de...> Subject: [Libusb-win32-devel] libusb-win32 composite device support To: <lib...@li...> Message-ID: =09 <3C7...@US... Auto.net> =09 Content-Type: text/plain; charset=3D"us-ascii" All: =20 Does anyone know how I can modify the source code to add support for composite devices? =20 Best Regards, =20 Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 =20 ************************************************************************ **************** Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.=20 ************************************************************************ **************** -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Tue, 26 Jun 2007 22:19:10 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] libusb-win32 composite device support To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 Support for composite devices has been added recently. You'll find the latest source code in the SVN: http://sourceforge.net/svn/?group_id=3D78138 Stephan >=20 >=20 > All: >=20 >=20 > =20 >=20 >=20 > Does anyone know how I can modify the source code to add > support for composite devices? >=20 >=20 > =20 >=20 >=20 > Best Regards, >=20 >=20 > =20 >=20 >=20 > Rob Krakora >=20 >=20 > Software Engineer >=20 >=20 > Delphi Electronics > & Safety >=20 >=20 > e-mail: rob...@de... >=20 >=20 > phone: 765-451-8574 >=20 >=20 > =20 >=20 > ----------------------------------------------------------------- > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ >=20 > ----------------------------------------------------------------- > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 ________________________________________________________________________ _ In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=3D021114 ------------------------------ Message: 3 Date: Tue, 26 Jun 2007 16:57:54 -0400 From: "Krakora, Robert V" <rob...@de...> Subject: Re: [Libusb-win32-devel] set_configuration() fixed (Stephan Meyer) To: <lib...@li...> Message-ID: =09 <3C7...@US... Auto.net> =09 Content-Type: text/plain; charset=3D"us-ascii" Stephan: >From kb832430: "Requests on the default control endpoint are limited to 4 KB for compatibility with earlier versions of drivers. The USB specification limits other control transfers to 64 KB. However, there is no specific limitation in the USB driver stack for non-control endpoints. The results of specifying a transfer that is larger than 64 KB on a non-control endpoint are undefined." http://aech.net/Driver/USB%E7%A8%8B%E5%BA%8F%E7%9A%84%E5%8A%A0%E8%BD%BD. doc=20 http://support.microsoft.com/kb/832430=20 http://support.microsoft.com/kb/200977/=20 You had select_configuration() commented out in pnp.c and if I uncommented it as it was previously coded with 65536 as the maximum transfer size, then none of my USB devices would function. With 65535 as the maximum transfer size, my USB devices function properly. USB devices being the mouse, keyboard, etc...this is on Windows XP SP2 running on a Dell Precision M65. Best Regards, Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de...=20 phone: 765-451-8574 Message: 4 Date: Tue, 26 Jun 2007 18:40:24 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] set_configuration() fixed To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 Why do you think that a max transfer size of 65536 (0x10000) is wrong?=20 This number must be an integer multiple of common endpoint buffer sizes (8, 64, 512, 1024). If it would be 0x10000 - 1 then transfers >=3D 0x10000 bytes won't work any more. Stephan=20 >=20 >=20 > I fixed set_configuration() which I found to be broken. The > max transfer size on the pipes was being set to 65536 instead of 65535.=20 > Attached is the header file in which I changed a #define from 65536 to 65535.=20 > Also attached is a version of pnp.c with the set_configuration() call > uncommented. Please forgive the formatting on pnp.c. I had to format it with > by code beautifier in order to follow the code. I will be 40 next month and I > am starting to become near-sighted. >=20 >=20 > =20 >=20 >=20 > Best Regards, >=20 >=20 > =20 >=20 >=20 > Rob Krakora >=20 >=20 > Software Engineer >=20 >=20 > Delphi Electronics > & Safety >=20 >=20 > e-mail: rob...@de... >=20 >=20 > phone: 765-451-8574 Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of lib...@li... Sent: Tuesday, June 26, 2007 3:08 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 13, Issue 22 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 SVN version and HID backend (Xiaofan Chen) 2. Re: Progress of Windows Vista support (Filippos Papadopoulos) 3. Re: Progress of Windows Vista support (Stephan Meyer) 4. Re: set_configuration() fixed (Stephan Meyer) 5. Re: libusb-win32 SVN version and HID backend (Stephan Meyer) ---------------------------------------------------------------------- Message: 1 Date: Mon, 25 Jun 2007 19:29:59 -0400 From: "Xiaofan Chen" <xia...@gm...> Subject: Re: [Libusb-win32-devel] libusb-win32 SVN version and HID backend To: lib...@li... Message-ID: <a27...@ma...> Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed On 6/25/07, Xiaofan Chen <xia...@gm...> wrote: > 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/libusb 1/ > > > > 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. > If I am using the libusb-win32 device driver, then I have the following results. XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 $ ./pk2.exe -on 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) LIBUSB-DLL - trace: usb_init(): dll version: 1.0.0.0 Found USB PICkit as device 'dev0002' on USB bus /bus0 Communication established. PICkit2 firmware version is 2.2.0 $ ./testlibusb.exe -v Dev #3: 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 Dev #2: 4Microchip Technology Inc. - HPICkit 2 Microcontroller Programmer - Serial Number: PIC18F2550 wTotalLength: 41 bNumInterfaces: 1 bConfigurationValue: 1 iConfiguration: 2 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: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 wTotalLength: 32 bNumInterfaces: 1 bConfigurationValue: 2 iConfiguration: 4 bmAttributes: 80h MaxPower: 50 bInterfaceNumber: 0 bAlternateSetting: 0 bNumEndpoints: 2 bInterfaceClass: 255 bInterfaceSubClass: 0 bInterfaceProtocol: 0 iInterface: 0 bEndpointAddress: 81h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 Regards, Xiaofan ------------------------------ Message: 2 Date: Tue, 26 Jun 2007 10:23:51 +0300 From: "Filippos Papadopoulos" <psy...@gm...> Subject: Re: [Libusb-win32-devel] Progress of Windows Vista support To: lib...@li... Message-ID: <9f0...@ma...> Content-Type: text/plain; charset=3DUTF-8; format=3Dflowed Well it doesnt work for me. I have Vista Business 32-bit. When i install libusb-win32-filter-bin-0.1.12.1 all the USB devices stop to work. E.g the USB mouse. When i reboot more devices like the sound card dont work because windows cant load its drivers... See also http://sourceforge.net/tracker/index.php?func=3Ddetail&aid= =3D1742798&group_i d=3D78138&atid=3D552265 Thanks. 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/libusb 1/ > > Stephan > > > > > > Hi, > > i would like to ask whats the progress of supporting Windows Vista. > > > > Thanks, > > Filip. > > > > ------------------------------------------------------------------------ - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > ________________________________________________________________________ __ > Erweitern Sie FreeMail zu einem noch leistungsst?rkeren E-Mail-Postfach! > Mehr Infos unter http://produkte.web.de/club/?mc=3D021131 > > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > ------------------------------ Message: 3 Date: Tue, 26 Jun 2007 09:27:09 +0200 From: Stephan Meyer <Ste...@ia...> Subject: Re: [Libusb-win32-devel] Progress of Windows Vista support To: lib...@li... Message-ID: =09 <OF8...@re...> Content-Type: text/plain; charset=3D"ISO-8859-1" Use libusb as a normal device driver (.inf file install). It will work then. Stephan > Well it doesnt work for me. I have Vista Business 32-bit. > When i install libusb-win32-filter-bin-0.1.12.1 all the USB devices > stop to work. E.g the USB mouse. When i reboot more devices like the > sound card dont work because windows cant load its drivers... > See also > http://sourceforge.net/tracker/index.php? > func=3Ddetail&aid=3D1742798&group_id=3D78138&atid=3D552265 >=20 >=20 > Thanks. >=20 >=20 > 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. > >=20 http://libusb-win32.svn.sourceforge.net/viewvc/libusb-win32/trunk/libusb 1/ > > > > Stephan > > > > > > > > > > Hi, > > > i would like to ask whats the progress of supporting Windows Vista. > > > > > > Thanks, > > > Filip. > > > > > >=20 ------------------------------------------------------------------------ - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Libusb-win32-devel mailing list > > > Lib...@li... > > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > > > > >=20 ________________________________________________________________________ __ > > Erweitern Sie FreeMail zu einem noch leistungsst?rkeren=20 E-Mail-Postfach! > > Mehr Infos unter http://produkte.web.de/club/?mc=3D021131 > > > > > >=20 ------------------------------------------------------------------------ - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > >=20 ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 ------------------------------ Message: 4 Date: Tue, 26 Jun 2007 18:40:24 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] set_configuration() fixed To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 Why do you think that a max transfer size of 65536 (0x10000) is wrong?=20 This number must be an integer multiple of common endpoint buffer sizes (8, 64, 512, 1024). If it would be 0x10000 - 1 then transfers >=3D 0x10000 bytes won't work any more. Stephan=20 >=20 >=20 > I fixed set_configuration() which I found to be broken. The > max transfer size on the pipes was being set to 65536 instead of 65535.=20 > Attached is the header file in which I changed a #define from 65536 to 65535.=20 > Also attached is a version of pnp.c with the set_configuration() call > uncommented. Please forgive the formatting on pnp.c. I had to format it with > by code beautifier in order to follow the code. I will be 40 next month and I > am starting to become near-sighted. >=20 >=20 > =20 >=20 >=20 > Best Regards, >=20 >=20 > =20 >=20 >=20 > Rob Krakora >=20 >=20 > Software Engineer >=20 >=20 > Delphi Electronics > & Safety >=20 >=20 > e-mail: rob...@de... >=20 >=20 > phone: 765-451-8574 >=20 >=20 > =20 >=20 > ----------------------------------------------------------------- > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ >=20 > ----------------------------------------------------------------- > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000066 ------------------------------ Message: 5 Date: Tue, 26 Jun 2007 19:03:53 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] libusb-win32 SVN version and HID backend To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 >=20 > 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/libusb 1/ > > > > Stephan > > >=20 > Nice to see that the new version will have three backend (libusb-win32, > HID and winusb). >=20 > 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? >=20 It's only working partially. The backend is fully coded but has not been tested very much and I don't know if real data transfers actually work. What's still missing are more unit-tests (see tests/src folder) and a test firmware that's 100% compliant with the HID spec (see tests/firmware folder). It would be really nice if someone with good HID expertise would contribute to this backend. > PICkit 2 does have two configurations, now it only display the first. Is this > normal? Yes that's normal. The descriptors you see when using Windows' HID driver are not read from the device (Windows doesn't provide any API for this). These descriptors are instead generated by the HID backend based on the information provided by Windows' HID API. Have a look at the source code and see how it works. The backend assumes that every HID device has only one configuration, one interface, and 1-2 interrupt endpoints. >=20 > 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)? You can just use the libusb API as if the HID would be a 'normal' libusb based device.=20 >=20 > By the way, I am using Windows XP SP2. >=20 > 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 >=20 > XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 > $ ./pk2.exe -on >=20 > Fatal error> Could not find PICkit2 programmer-- > you might try lsusb to see if it's actually there. >=20 >=20 > PK2 version 3.00 alpha 10 - 2007/06/10 > c:\Myprog\pickit\pk2-3.00-alpha10\pk2.exe -on >=20 > Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) > found 5 busses >=20 > Regards, > Xiaofan >=20 > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000066 ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel End of Libusb-win32-devel Digest, Vol 13, Issue 22 ************************************************** ************************************************************************ **************** Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.=20 ************************************************************************ **************** ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel End of Libusb-win32-devel Digest, Vol 13, Issue 23 ************************************************** ***************************************************************************= ************* Note: If the reader of this message is not the intended recipient, or an= employee or agent responsible for delivering this message to the intended= recipient, you are hereby notified that any dissemination, distribution or= copying of this communication is strictly prohibited. If you have received= this communication in error, please notify us immediately by replying to= the message and deleting it from your computer. Thank you.=20 ***************************************************************************= ************* |
|
From: Xiaofan C. <xia...@gm...> - 2007-06-26 21:18:58
|
On 6/26/07, Stephan Meyer <ste...@we...> wrote: > > 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)? > > You can just use the libusb API as if the HID would be a 'normal' libusb > based device. > Somehow this does not work yet. It fails to find PICKit 2 with this approach. If I "update" the HID driver to the libusb-win32 device driver, then it works. XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 $ ./pk2.exe -on PK2 version 3.00 alpha 10 - 2007/06/10 Fatal error> Could not find PICkit2 programmer-- you might try lsusb to see if it's actually there. If I am using the libusb-win32 device driver, then it seems to work. XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 $ ./pk2.exe -on PK2 version 3.00 alpha 10 - 2007/06/10 Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) LIBUSB-DLL - trace: usb_init(): dll version: 1.0.0.0 Found USB PICkit as device 'dev0002' on USB bus /bus0 Communication established. PICkit2 firmware version is 2.2.0 |
|
From: Krakora, R. V <rob...@de...> - 2007-06-26 20:58:03
|
Stephan: >From kb832430: "Requests on the default control endpoint are limited to 4 KB for compatibility with earlier versions of drivers. The USB specification limits other control transfers to 64 KB. However, there is no specific limitation in the USB driver stack for non-control endpoints. The results of specifying a transfer that is larger than 64 KB on a non-control endpoint are undefined." http://aech.net/Driver/USB%E7%A8%8B%E5%BA%8F%E7%9A%84%E5%8A%A0%E8%BD%BD. doc=20 http://support.microsoft.com/kb/832430=20 http://support.microsoft.com/kb/200977/=20 You had select_configuration() commented out in pnp.c and if I uncommented it as it was previously coded with 65536 as the maximum transfer size, then none of my USB devices would function. With 65535 as the maximum transfer size, my USB devices function properly. USB devices being the mouse, keyboard, etc...this is on Windows XP SP2 running on a Dell Precision M65. Best Regards, Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de...=20 phone: 765-451-8574 Message: 4 Date: Tue, 26 Jun 2007 18:40:24 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] set_configuration() fixed To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 Why do you think that a max transfer size of 65536 (0x10000) is wrong?=20 This number must be an integer multiple of common endpoint buffer sizes (8, 64, 512, 1024). If it would be 0x10000 - 1 then transfers >=3D 0x10000 bytes won't work any more. Stephan=20 >=20 >=20 > I fixed set_configuration() which I found to be broken. The > max transfer size on the pipes was being set to 65536 instead of 65535.=20 > Attached is the header file in which I changed a #define from 65536 to 65535.=20 > Also attached is a version of pnp.c with the set_configuration() call > uncommented. Please forgive the formatting on pnp.c. I had to format it with > by code beautifier in order to follow the code. I will be 40 next month and I > am starting to become near-sighted. >=20 >=20 > =20 >=20 >=20 > Best Regards, >=20 >=20 > =20 >=20 >=20 > Rob Krakora >=20 >=20 > Software Engineer >=20 >=20 > Delphi Electronics > & Safety >=20 >=20 > e-mail: rob...@de... >=20 >=20 > phone: 765-451-8574 Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of lib...@li... Sent: Tuesday, June 26, 2007 3:08 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 13, Issue 22 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 SVN version and HID backend (Xiaofan Chen) 2. Re: Progress of Windows Vista support (Filippos Papadopoulos) 3. Re: Progress of Windows Vista support (Stephan Meyer) 4. Re: set_configuration() fixed (Stephan Meyer) 5. Re: libusb-win32 SVN version and HID backend (Stephan Meyer) ---------------------------------------------------------------------- Message: 1 Date: Mon, 25 Jun 2007 19:29:59 -0400 From: "Xiaofan Chen" <xia...@gm...> Subject: Re: [Libusb-win32-devel] libusb-win32 SVN version and HID backend To: lib...@li... Message-ID: <a27...@ma...> Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed On 6/25/07, Xiaofan Chen <xia...@gm...> wrote: > 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/libusb 1/ > > > > 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. > If I am using the libusb-win32 device driver, then I have the following results. XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 $ ./pk2.exe -on 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) LIBUSB-DLL - trace: usb_init(): dll version: 1.0.0.0 Found USB PICkit as device 'dev0002' on USB bus /bus0 Communication established. PICkit2 firmware version is 2.2.0 $ ./testlibusb.exe -v Dev #3: 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 Dev #2: 4Microchip Technology Inc. - HPICkit 2 Microcontroller Programmer - Serial Number: PIC18F2550 wTotalLength: 41 bNumInterfaces: 1 bConfigurationValue: 1 iConfiguration: 2 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: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 wTotalLength: 32 bNumInterfaces: 1 bConfigurationValue: 2 iConfiguration: 4 bmAttributes: 80h MaxPower: 50 bInterfaceNumber: 0 bAlternateSetting: 0 bNumEndpoints: 2 bInterfaceClass: 255 bInterfaceSubClass: 0 bInterfaceProtocol: 0 iInterface: 0 bEndpointAddress: 81h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 Regards, Xiaofan ------------------------------ Message: 2 Date: Tue, 26 Jun 2007 10:23:51 +0300 From: "Filippos Papadopoulos" <psy...@gm...> Subject: Re: [Libusb-win32-devel] Progress of Windows Vista support To: lib...@li... Message-ID: <9f0...@ma...> Content-Type: text/plain; charset=3DUTF-8; format=3Dflowed Well it doesnt work for me. I have Vista Business 32-bit. When i install libusb-win32-filter-bin-0.1.12.1 all the USB devices stop to work. E.g the USB mouse. When i reboot more devices like the sound card dont work because windows cant load its drivers... See also http://sourceforge.net/tracker/index.php?func=3Ddetail&aid= =3D1742798&group_i d=3D78138&atid=3D552265 Thanks. 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/libusb 1/ > > Stephan > > > > > > Hi, > > i would like to ask whats the progress of supporting Windows Vista. > > > > Thanks, > > Filip. > > > > ------------------------------------------------------------------------ - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > ________________________________________________________________________ __ > Erweitern Sie FreeMail zu einem noch leistungsst?rkeren E-Mail-Postfach! > Mehr Infos unter http://produkte.web.de/club/?mc=3D021131 > > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > ------------------------------ Message: 3 Date: Tue, 26 Jun 2007 09:27:09 +0200 From: Stephan Meyer <Ste...@ia...> Subject: Re: [Libusb-win32-devel] Progress of Windows Vista support To: lib...@li... Message-ID: =09 <OF8...@re...> Content-Type: text/plain; charset=3D"ISO-8859-1" Use libusb as a normal device driver (.inf file install). It will work then. Stephan > Well it doesnt work for me. I have Vista Business 32-bit. > When i install libusb-win32-filter-bin-0.1.12.1 all the USB devices > stop to work. E.g the USB mouse. When i reboot more devices like the > sound card dont work because windows cant load its drivers... > See also > http://sourceforge.net/tracker/index.php? > func=3Ddetail&aid=3D1742798&group_id=3D78138&atid=3D552265 >=20 >=20 > Thanks. >=20 >=20 > 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. > >=20 http://libusb-win32.svn.sourceforge.net/viewvc/libusb-win32/trunk/libusb 1/ > > > > Stephan > > > > > > > > > > Hi, > > > i would like to ask whats the progress of supporting Windows Vista. > > > > > > Thanks, > > > Filip. > > > > > >=20 ------------------------------------------------------------------------ - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Libusb-win32-devel mailing list > > > Lib...@li... > > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > > > > >=20 ________________________________________________________________________ __ > > Erweitern Sie FreeMail zu einem noch leistungsst?rkeren=20 E-Mail-Postfach! > > Mehr Infos unter http://produkte.web.de/club/?mc=3D021131 > > > > > >=20 ------------------------------------------------------------------------ - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > >=20 ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 ------------------------------ Message: 4 Date: Tue, 26 Jun 2007 18:40:24 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] set_configuration() fixed To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 Why do you think that a max transfer size of 65536 (0x10000) is wrong?=20 This number must be an integer multiple of common endpoint buffer sizes (8, 64, 512, 1024). If it would be 0x10000 - 1 then transfers >=3D 0x10000 bytes won't work any more. Stephan=20 >=20 >=20 > I fixed set_configuration() which I found to be broken. The > max transfer size on the pipes was being set to 65536 instead of 65535.=20 > Attached is the header file in which I changed a #define from 65536 to 65535.=20 > Also attached is a version of pnp.c with the set_configuration() call > uncommented. Please forgive the formatting on pnp.c. I had to format it with > by code beautifier in order to follow the code. I will be 40 next month and I > am starting to become near-sighted. >=20 >=20 > =20 >=20 >=20 > Best Regards, >=20 >=20 > =20 >=20 >=20 > Rob Krakora >=20 >=20 > Software Engineer >=20 >=20 > Delphi Electronics > & Safety >=20 >=20 > e-mail: rob...@de... >=20 >=20 > phone: 765-451-8574 >=20 >=20 > =20 >=20 > ----------------------------------------------------------------- > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ >=20 > ----------------------------------------------------------------- > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000066 ------------------------------ Message: 5 Date: Tue, 26 Jun 2007 19:03:53 +0200 From: Stephan Meyer <ste...@we...> Subject: Re: [Libusb-win32-devel] libusb-win32 SVN version and HID backend To: lib...@li... Message-ID: <206...@we...> Content-Type: text/plain; charset=3Diso-8859-15 >=20 > 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/libusb 1/ > > > > Stephan > > >=20 > Nice to see that the new version will have three backend (libusb-win32, > HID and winusb). >=20 > 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? >=20 It's only working partially. The backend is fully coded but has not been tested very much and I don't know if real data transfers actually work. What's still missing are more unit-tests (see tests/src folder) and a test firmware that's 100% compliant with the HID spec (see tests/firmware folder). It would be really nice if someone with good HID expertise would contribute to this backend. > PICkit 2 does have two configurations, now it only display the first. Is this > normal? Yes that's normal. The descriptors you see when using Windows' HID driver are not read from the device (Windows doesn't provide any API for this). These descriptors are instead generated by the HID backend based on the information provided by Windows' HID API. Have a look at the source code and see how it works. The backend assumes that every HID device has only one configuration, one interface, and 1-2 interrupt endpoints. >=20 > 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)? You can just use the libusb API as if the HID would be a 'normal' libusb based device.=20 >=20 > By the way, I am using Windows XP SP2. >=20 > 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 >=20 > XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 > $ ./pk2.exe -on >=20 > Fatal error> Could not find PICkit2 programmer-- > you might try lsusb to see if it's actually there. >=20 >=20 > PK2 version 3.00 alpha 10 - 2007/06/10 > c:\Myprog\pickit\pk2-3.00-alpha10\pk2.exe -on >=20 > Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) > found 5 busses >=20 > Regards, > Xiaofan >=20 > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000066 ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel End of Libusb-win32-devel Digest, Vol 13, Issue 22 ************************************************** ***************************************************************************= ************* Note: If the reader of this message is not the intended recipient, or an= employee or agent responsible for delivering this message to the intended= recipient, you are hereby notified that any dissemination, distribution or= copying of this communication is strictly prohibited. If you have received= this communication in error, please notify us immediately by replying to= the message and deleting it from your computer. Thank you.=20 ***************************************************************************= ************* |
|
From: Stephan M. <ste...@we...> - 2007-06-26 20:19:24
|
Support for composite devices has been added recently. You'll find the latest source code in the SVN: http://sourceforge.net/svn/?group_id=78138 Stephan > > > All: > > > > > > Does anyone know how I can modify the source code to add > support for composite devices? > > > > > > Best Regards, > > > > > > Rob Krakora > > > Software Engineer > > > Delphi Electronics > & Safety > > > e-mail: rob...@de... > > > phone: 765-451-8574 > > > > > ----------------------------------------------------------------- > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > ----------------------------------------------------------------- > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > _________________________________________________________________________ In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114 |
|
From: Krakora, R. V <rob...@de...> - 2007-06-26 19:40:46
|
All: =20 Does anyone know how I can modify the source code to add support for composite devices? =20 Best Regards, =20 Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 =20 ***************************************************************************= ************* Note: If the reader of this message is not the intended recipient, or an= employee or agent responsible for delivering this message to the intended= recipient, you are hereby notified that any dissemination, distribution or= copying of this communication is strictly prohibited. If you have received= this communication in error, please notify us immediately by replying to= the message and deleting it from your computer. Thank you.=20 ***************************************************************************= ************* |
|
From: Stephan M. <ste...@we...> - 2007-06-26 17:09:10
|
> > 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? > It's only working partially. The backend is fully coded but has not been tested very much and I don't know if real data transfers actually work. What's still missing are more unit-tests (see tests/src folder) and a test firmware that's 100% compliant with the HID spec (see tests/firmware folder). It would be really nice if someone with good HID expertise would contribute to this backend. > PICkit 2 does have two configurations, now it only display the first. Is this > normal? Yes that's normal. The descriptors you see when using Windows' HID driver are not read from the device (Windows doesn't provide any API for this). These descriptors are instead generated by the HID backend based on the information provided by Windows' HID API. Have a look at the source code and see how it works. The backend assumes that every HID device has only one configuration, one interface, and 1-2 interrupt endpoints. > > 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)? You can just use the libusb API as if the HID would be a 'normal' libusb based device. > > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 |
|
From: Stephan M. <ste...@we...> - 2007-06-26 16:40:34
|
Why do you think that a max transfer size of 65536 (0x10000) is wrong? This number must be an integer multiple of common endpoint buffer sizes (8, 64, 512, 1024). If it would be 0x10000 - 1 then transfers >= 0x10000 bytes won't work any more. Stephan > > > I fixed set_configuration() which I found to be broken. The > max transfer size on the pipes was being set to 65536 instead of 65535. > Attached is the header file in which I changed a #define from 65536 to 65535. > Also attached is a version of pnp.c with the set_configuration() call > uncommented. Please forgive the formatting on pnp.c. I had to format it with > by code beautifier in order to follow the code. I will be 40 next month and I > am starting to become near-sighted. > > > > > > Best Regards, > > > > > > Rob Krakora > > > Software Engineer > > > Delphi Electronics > & Safety > > > e-mail: rob...@de... > > > phone: 765-451-8574 > > > > > ----------------------------------------------------------------- > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > ----------------------------------------------------------------- > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 |
|
From: Stephan M. <Ste...@ia...> - 2007-06-26 07:27:36
|
Use libusb as a normal device driver (.inf file install). It will work then. Stephan > Well it doesnt work for me. I have Vista Business 32-bit. > When i install libusb-win32-filter-bin-0.1.12.1 all the USB devices > stop to work. E.g the USB mouse. When i reboot more devices like the > sound card dont work because windows cant load its drivers... > See also > http://sourceforge.net/tracker/index.php? > func=3Ddetail&aid=3D1742798&group=5Fid=3D78138&atid=3D552265 >=20 >=20 > Thanks. >=20 >=20 > 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. > >=20 http://libusb-win32.svn.sourceforge.net/viewvc/libusb-win32/trunk/libusb1/ > > > > Stephan > > > > > > > > > > Hi, > > > i would like to ask whats the progress of supporting Windows Vista. > > > > > > Thanks, > > > Filip. > > > > > >=20 ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > > > Libusb-win32-devel mailing list > > > Lib...@li... > > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > > > > >=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > > Erweitern Sie FreeMail zu einem noch leistungsst=E4rkeren=20 E-Mail-Postfach! > > Mehr Infos unter http://produkte.web.de/club/?mc=3D021131 > > > > > >=20 ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > >=20 ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 |
|
From: Filippos P. <psy...@gm...> - 2007-06-26 07:23:53
|
V2VsbCBpdCBkb2VzbnQgd29yayBmb3IgbWUuIEkgaGF2ZSBWaXN0YSBCdXNpbmVzcyAzMi1iaXQu CldoZW4gaSBpbnN0YWxsIGxpYnVzYi13aW4zMi1maWx0ZXItYmluLTAuMS4xMi4xIGFsbCB0aGUg VVNCIGRldmljZXMKc3RvcCB0byB3b3JrLiBFLmcgdGhlIFVTQiBtb3VzZS4gV2hlbiBpIHJlYm9v dCBtb3JlIGRldmljZXMgbGlrZSB0aGUKc291bmQgY2FyZCBkb250IHdvcmsgYmVjYXVzZSB3aW5k b3dzIGNhbnQgbG9hZCBpdHMgZHJpdmVycy4uLgpTZWUgYWxzbwpodHRwOi8vc291cmNlZm9yZ2Uu bmV0L3RyYWNrZXIvaW5kZXgucGhwP2Z1bmM9ZGV0YWlsJmFpZD0xNzQyNzk4Jmdyb3VwX2lkPTc4 MTM4JmF0aWQ9NTUyMjY1CgoKVGhhbmtzLgoKCk9uIDYvMjUvMDcsIFN0ZXBoYW4gTWV5ZXIgPHN0 ZV9tZXllckB3ZWIuZGU+IHdyb3RlOgo+Cj4gVGhlIGN1cnJlbnQgdmVyc2lvbiAoMC4xLjEyLjEp IHdvcmtzIHdpdGhvdXQgYW55IHByb2JsZW1zCj4gb24gdmlzdGEtMzJiaXQgYnV0IE5PVCBvbiB2 aXN0YS02NGJpdC4KPiBGdXJ0dXJlIHZlcnNpb25zIG9mIHRoZSBETEwgd2lsbCB1c2UgdmlzdGEn cyBidWlsdC1pbiB3aW51c2Iuc3lzCj4gZHJpdmVyIGFuZCB3aWxsIHRoZXJlZm9yZSB3b3JrIG9u IGJvdGggcGxhdGZvcm1zLiBJZiB5b3UncmUKPiBpbnRlcnJlc3RlZCBpbiBhIHByZS1wcmUtYWxw aGEgdmVyc2lvbiB0aGVuIGdyYWIgdGhlIGxhdGVzdCBzb3VyY2VzCj4gZnJvbSB0aGUgU1ZOIGFu ZCB0cnkgaXQgb3V0Lgo+IGh0dHA6Ly9saWJ1c2Itd2luMzIuc3ZuLnNvdXJjZWZvcmdlLm5ldC92 aWV3dmMvbGlidXNiLXdpbjMyL3RydW5rL2xpYnVzYjEvCj4KPiBTdGVwaGFuCj4KPgo+ID4KPiA+ IEhpLAo+ID4gaSB3b3VsZCBsaWtlIHRvIGFzayB3aGF0cyB0aGUgcHJvZ3Jlc3Mgb2Ygc3VwcG9y dGluZyBXaW5kb3dzIFZpc3RhLgo+ID4KPiA+IFRoYW5rcywKPiA+ICBGaWxpcC4KPiA+Cj4gPiAt LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tCj4gPiBUaGlzIFNGLm5ldCBlbWFpbCBpcyBzcG9uc29yZWQgYnkgREIy IEV4cHJlc3MKPiA+IERvd25sb2FkIERCMiBFeHByZXNzIEMgLSB0aGUgRlJFRSB2ZXJzaW9uIG9m IERCMiBleHByZXNzIGFuZCB0YWtlCj4gPiBjb250cm9sIG9mIHlvdXIgWE1MLiBObyBsaW1pdHMu IEp1c3QgZGF0YS4gQ2xpY2sgdG8gZ2V0IGl0IG5vdy4KPiA+IGh0dHA6Ly9zb3VyY2Vmb3JnZS5u ZXQvcG93ZXJiYXIvZGIyLwo+ID4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX18KPiA+IExpYnVzYi13aW4zMi1kZXZlbCBtYWlsaW5nIGxpc3QKPiA+IExpYnVz Yi13aW4zMi1kZXZlbEBsaXN0cy5zb3VyY2Vmb3JnZS5uZXQKPiA+IGh0dHBzOi8vbGlzdHMuc291 cmNlZm9yZ2UubmV0L2xpc3RzL2xpc3RpbmZvL2xpYnVzYi13aW4zMi1kZXZlbAo+ID4KPgo+Cj4g X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX18KPiBFcndlaXRlcm4gU2llIEZyZWVNYWlsIHp1IGVpbmVtIG5vY2gg bGVpc3R1bmdzc3TDpHJrZXJlbiBFLU1haWwtUG9zdGZhY2ghCj4gTWVociBJbmZvcyB1bnRlciBo dHRwOi8vcHJvZHVrdGUud2ViLmRlL2NsdWIvP21jPTAyMTEzMQo+Cj4KPiAtLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tCj4gVGhpcyBTRi5uZXQgZW1haWwgaXMgc3BvbnNvcmVkIGJ5IERCMiBFeHByZXNzCj4gRG93 bmxvYWQgREIyIEV4cHJlc3MgQyAtIHRoZSBGUkVFIHZlcnNpb24gb2YgREIyIGV4cHJlc3MgYW5k IHRha2UKPiBjb250cm9sIG9mIHlvdXIgWE1MLiBObyBsaW1pdHMuIEp1c3QgZGF0YS4gQ2xpY2sg dG8gZ2V0IGl0IG5vdy4KPiBodHRwOi8vc291cmNlZm9yZ2UubmV0L3Bvd2VyYmFyL2RiMi8KPiBf X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+IExpYnVzYi13 aW4zMi1kZXZlbCBtYWlsaW5nIGxpc3QKPiBMaWJ1c2Itd2luMzItZGV2ZWxAbGlzdHMuc291cmNl Zm9yZ2UubmV0Cj4gaHR0cHM6Ly9saXN0cy5zb3VyY2Vmb3JnZS5uZXQvbGlzdHMvbGlzdGluZm8v bGlidXNiLXdpbjMyLWRldmVsCj4K |
|
From: Xiaofan C. <xia...@gm...> - 2007-06-25 23:30:02
|
On 6/25/07, Xiaofan Chen <xia...@gm...> wrote: > 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. > If I am using the libusb-win32 device driver, then I have the following results. XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 $ ./pk2.exe -on 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) LIBUSB-DLL - trace: usb_init(): dll version: 1.0.0.0 Found USB PICkit as device 'dev0002' on USB bus /bus0 Communication established. PICkit2 firmware version is 2.2.0 $ ./testlibusb.exe -v Dev #3: 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 Dev #2: 4Microchip Technology Inc. - HPICkit 2 Microcontroller Programmer - Serial Number: PIC18F2550 wTotalLength: 41 bNumInterfaces: 1 bConfigurationValue: 1 iConfiguration: 2 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: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 wTotalLength: 32 bNumInterfaces: 1 bConfigurationValue: 2 iConfiguration: 4 bmAttributes: 80h MaxPower: 50 bInterfaceNumber: 0 bAlternateSetting: 0 bNumEndpoints: 2 bInterfaceClass: 255 bInterfaceSubClass: 0 bInterfaceProtocol: 0 iInterface: 0 bEndpointAddress: 81h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 bEndpointAddress: 01h bmAttributes: 03h wMaxPacketSize: 64 bInterval: 1 bRefresh: 0 bSynchAddress: 0 Regards, Xiaofan |
|
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 |
|
From: Stephan M. <ste...@we...> - 2007-06-25 19:04:10
|
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=20 interrested in a pre-pre-alpha version then grab the latest sources=20 from the SVN and try it out. http://libusb-win32.svn.sourceforge.net/viewvc/libusb-win32/trunk/libusb1/= Stephan >=20 > Hi, > i would like to ask whats the progress of supporting Windows Vista. >=20 > Thanks, > Filip. >=20 > ------------------------------------------------------------------------= - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= Erweitern Sie FreeMail zu einem noch leistungsst=E4rkeren E-Mail-Postfach! =09 Mehr Infos unter http://produkte.web.de/club/=3Fmc=3D021131 |
|
From: Stephan M. <ste...@we...> - 2007-06-25 18:53:52
|
Running 'install-filter -i' reinstalls the filter driver for all devices.=20 This is probably not what you want. Stephan > Hello Dan,=20 > =20 > I resolved the problem today. After to create the inf file with inf wiza= rd application is necessary to run install-filter -i, then testlibusb-win = show me all usb devices and my application works correctly.=20 > =20 > Thanks,=20 > =20 > Fl=E1vio. >=20 > Dan Ellis <dan...@ne...> escreveu: Fl=E1vio Yuiti= wrote: > > I used debugview to analyze the problem and It shows the following=20 > > message: > >=20 > > LIBUSB-DRIVER - get=5Fdescriptor(): getting descriptor failed status:=20 > > 0xc0000010 > > LIBUSB=5FDLL: error: usb=5Fos=5Ffind=5Fdevices: couldn't read device descripto= r > > > That seems very strange. Is this a commodity printer, or your own=20 > firmware=3F Have you tried talking to a different > device=3F >=20 > Have you tried rebuilding the DLL and driver from source=3F >=20 > I'm only using a version I built myself, and it works fine here. I don't= =20 > use it in filter mode - just attached to one device with an inf file. >=20 > Dan. >=20 > ------------------------------------------------------------------------= - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 >=20 >=20 > =20 > =20 > ----------------------------------------------------------------- > Novo Yahoo! Cad=EA=3F - Experimente uma nova busca.=20 > ----------------------------------------------------------------- > ------------------------------------------------------------------------= - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ >=20 > ----------------------------------------------------------------- > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/=3Fmc=3D100071&distributionid=3D000000000066 |
|
From: Stephan M. <ste...@we...> - 2007-06-25 18:49:28
|
> > Hi Dave ! > > Thanks for your answer. I don't really see how the length of the timeout > makes any difference. The application in question does already run in a > separate thread and a FIFO is used for the data received. The timing gap > I'm trying to close with the ping-pong solution is from the point where > usb_bulk_read() returns with data to the point in time where > usb_bulk_read() is entered again. There is no 'gap' you have to close because there's no data being send between the two read requests. Libusb and Windows only transfer data when you send a read or write request to your device. > > I have also noticed that libusb (or is it windows usb subsystem ?) > actually buffers data, but I have no idea of the size of the buffers... Neither libusb nor Windows buffers any data. All data read from your device is written straight into your read buffer. Stephan > > Best regards, > Kjell Eirik > > > -----Original Message----- > From: lib...@li... > [mailto:lib...@li...] On Behalf Of > lib...@li... > Sent: 19. juni 2007 21.09 > To: lib...@li... > Subject: Libusb-win32-devel Digest, Vol 13, Issue 16 > > 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. USB transfers are sometimes lost (Kjell Eirik Andersen) > 2. Re: USB transfers are sometimes lost (Dave Higton) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 19 Jun 2007 15:21:06 +0200 > From: "Kjell Eirik Andersen" > <kje...@ta...> > Subject: [Libusb-win32-devel] USB transfers are sometimes lost > To: <lib...@li...> > Message-ID: > > <C02...@EU... > > > > Content-Type: text/plain; charset="us-ascii" > > > > After having used libusb-win32 exstensively for more than a year I have > come across a problem with usb_bulk_read(). > > After several hours of errorfree communication, an usb bulk read package > is lost (it shows on a SW bus analyzer). > > > > > > A bulk endpoint is continously read like this : > > > > while ( ! TerminateThread ) > > { > > i = usb_bulk_read( pDevH, 0x82, buffer, 64, 1000 ); // 1 sec > timeout > > if ( i > 0 ) > > process the data > > else if ( i != TIMEOUT ) > > process error > > } > > > > Q1 : Can anybody confirm that using the libusb API in this way may > result in lost packages ? > > > > The plan now is to try using the async API with 2 buffers (ping-pong) > like shown below and check if the problem disappears : > > > > i = 0; > > i += usb_bulk_setup_async( pDevH, &context1, 0x82 ); > > i += usb_bulk_setup_async( pDevH, &context2, 0x82 ); > > i += usb_submit_async( context1, ibuf1, 64 ); > > i += usb_submit_async( context2, ibuf2, 64 ); > > if ( i != 0 ) > > printf( "\nErrors : %d", i ); // Close down, replug etc. ?? > > > > while ( ! TerminateThread ) > > { > > //--- Buffer 1 --- > > i = usb_reap_async( context1, INFINITE ); // INIFINITE = -1 > > if ( i < 0 ) > > printf( "\nReap 1 error : %d", i ); > > else > > { > > printf( "\nReap 1 received : %d, %c", i, ibuf1[0] ); > > process data > > } > > i = 0; > > //i += usb_free_async( &context1 ); > > //i += usb_bulk_setup_async( pDevH, &context1, 0x82 ); > > i += usb_submit_async( context1, ibuf1, 64 ); > > if ( i != 0 ) > > printf( "\nErrors : %d", i ); // Close down, replug etc. ?? > > > > //--- Buffer 2 --- > > i = usb_reap_async( context2, INFINITE ); > > if ( i < 0 ) > > printf( "\nReap 2 error : %d", i ); > > else > > { > > printf( "\nReap 2 received : %d, %c", i, ibuf2[0] ); > > process data > > } > > i = 0; > > //i += usb_free_async( &context2 ); > > //i += usb_bulk_setup_async( pDevH, &context2, 0x82 ); > > i += usb_submit_async( context2, ibuf2, 64 ); > > if ( i != 0 ) > > printf( "\nErrors : %d", i ); // Close down, replug etc. ?? > > } > > > > i = usb_cancel_async( context1 ); > > i += usb_cancel_async( context2 ); > > i += usb_free_async( &context1 ); > > i += usb_free_async( &context2 ); > > > > Q2 : Is this the correct way to use the async API ? > > > > Q3 : Am I right in assuming that the usb_free_async() and > usb_bulk_setup_async() which is commented out inside the loop is really > unneccessary ? (it seems to work with a small limited testprogram) > > > > Any response on my three questions would be greatly appreciated ! > > > > Best regards, > > Kjell Eirik > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Tue, 19 Jun 2007 15:01:01 +0100 > From: "Dave Higton" <DAV...@ni...> > Subject: Re: [Libusb-win32-devel] USB transfers are sometimes lost > To: <lib...@li...> > Message-ID: > <B71...@so...> > Content-Type: text/plain; charset="us-ascii" > > > From: lib...@li... > > [mailto:lib...@li...] > > On Behalf Of Kjell Eirik Andersen > > Sent: 2007 June 19 14:21 > > To: lib...@li... > > Subject: [Libusb-win32-devel] USB transfers are sometimes lost > > > > After having used libusb-win32 exstensively for more than a year > > I have come across a problem with usb_bulk_read(). > > > > After several hours of errorfree communication, an usb bulk read > > package is lost (it shows on a SW bus analyzer). > > > > A bulk endpoint is continously read like this : > > > > while ( ! TerminateThread ) > > { > > i = usb_bulk_read( pDevH, 0x82, buffer, 64, 1000 ); // 1 sec > timeout > > if ( i > 0 ) > > process the data > > else if ( i != TIMEOUT ) > > process error > > } > > > > Q1 : Can anybody confirm that using the libusb API in this way > > may result in lost packages ? > > Not strictly an answer to your question, but I have used the > Linux version of libusb with interrupt transfers, in other > respects like you show above. Yes, I lost packets occasionally. > I had to buy a USB analyser to show where the problem occurred. > > You need to set the timeout high enough that it will only ever > be invoked in the case of a genuine failure. > > If this gives you a problem of responsiveness in your programme, > i.e. you really need asynchronous transfers, then yes, it's a > problem. I solved it by using pthreads and a FIFO. I'm pleased > to report that pthreads seems to work OK under win32 too. > > Dave > > > ************************************************************************ > ************************************************************************ > ************************************************************************ > ************************* > > NICE CTI Systems UK Limited ("NICE") is registered in England under > company number, 3403044. The registered office of NICE is at Tollbar > Way, Hedge End, Southampton, Hampshire SO30 2ZP. > > Confidentiality: This communication and any attachments are intended for > the above-named persons only and may be confidential and/or legally > privileged. Any opinions expressed in this communication are not > necessarily those of NICE. If this communication has come to you in > error you must take no action based on it, nor must you copy or show it > to anyone; please delete/destroy and inform the sender by e-mail > immediately. > > Monitoring: NICE may monitor incoming and outgoing e-mails. > > Viruses: Although we have taken steps toward ensuring that this e-mail > and attachments are free from any virus, we advise that in keeping with > good computing practice the recipient should ensure they are actually > virus free. > > ************************************************************************ > ************************************************************************ > ************************************************************************ > **************************** > > > > > > > ------------------------------ > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > ------------------------------ > > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > End of Libusb-win32-devel Digest, Vol 13, Issue 16 > ************************************************** > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 |
|
From: Filippos P. <psy...@gm...> - 2007-06-25 12:38:00
|
Hi, i would like to ask whats the progress of supporting Windows Vista. Thanks, Filip. |
|
From: Krakora, R. V <rob...@de...> - 2007-06-21 23:32:24
|
Hello: =20 MTP (PlaysForSure) Devices fail when libusb-win32 is installed. There is a device arrival followed by a device removal when a Samsung YP-25 or SansaConnect is plugged in to the USB port. When libusb-win32 is uninstalled MTP devices work just fine. =20 Regards,=20 =20 Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de...=20 phone: 765-451-8574 ***************************************************************************= ************* Note: If the reader of this message is not the intended recipient, or an= employee or agent responsible for delivering this message to the intended= recipient, you are hereby notified that any dissemination, distribution or= copying of this communication is strictly prohibited. If you have received= this communication in error, please notify us immediately by replying to= the message and deleting it from your computer. Thank you.=20 ***************************************************************************= ************* |
|
From: <f_...@ya...> - 2007-06-21 17:18:55
|
Hello Dan, I resolved the problem today. After to create the inf file with inf wizard application is necessary to run install-filter -i, then testlibusb-win show me all usb devices and my application works correctly. Thanks, Flávio. Dan Ellis <dan...@ne...> escreveu: Flávio Yuiti wrote: > I used debugview to analyze the problem and It shows the following > message: > > LIBUSB-DRIVER - get_descriptor(): getting descriptor failed status: > 0xc0000010 > LIBUSB_DLL: error: usb_os_find_devices: couldn't read device descriptor > That seems very strange. Is this a commodity printer, or your own firmware? Have you tried talking to a different device? Have you tried rebuilding the DLL and driver from source? I'm only using a version I built myself, and it works fine here. I don't use it in filter mode - just attached to one device with an inf file. Dan. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel --------------------------------- Novo Yahoo! Cadê? - Experimente uma nova busca. |
|
From: Dan E. <dan...@ne...> - 2007-06-21 08:45:52
|
Flávio Yuiti wrote: > I used debugview to analyze the problem and It shows the following > message: > > LIBUSB-DRIVER - get_descriptor(): getting descriptor failed status: > 0xc0000010 > LIBUSB_DLL: error: usb_os_find_devices: couldn't read device descriptor > That seems very strange. Is this a commodity printer, or your own firmware? Have you tried talking to a different device? Have you tried rebuilding the DLL and driver from source? I'm only using a version I built myself, and it works fine here. I don't use it in filter mode - just attached to one device with an inf file. Dan. |
|
From: Dave H. <DAV...@ni...> - 2007-06-20 07:08:27
|
> -----Original Message-----
> From: lib...@li...=20
> [mailto:lib...@li...] On=20
> Behalf Of Kjell Eirik Andersen
> Sent: 2007 June 20 07:53
> To: lib...@li...
> Subject: Re: [Libusb-win32-devel] Libusb-win32-devel Digest,=20
> Vol 13, Issue 16
>=20
> Hi Dave !
>=20
> Thanks for your answer. I don't really see how the length of=20
> the timeout
> makes any difference. The application in question does=20
> already run in a
> separate thread and a FIFO is used for the data received. The=20
> timing gap
> I'm trying to close with the ping-pong solution is from the=20
> point where
> usb_bulk_read() returns with data to the point in time where
> usb_bulk_read() is entered again.
Yes, there is a problem AFAIUI. The best that can be done at
present is for the read thread to transfer its data to the
FIFO and immediately begin the next read. The problem is that
the gap is of course non-zero, so it appears possible for data
to be lost during that time.
It's not a system that you'd stake your life on :-(
We have a small USB device embedded in one of our products.
This device can be reprogrammed in-application. My worst
nightmare is that data loss will occur out in the field
during reprogramming and turn the machine into a brick.
It will be expensive to recover.
> I have also noticed that libusb (or is it windows usb subsystem ?)
> actually buffers data, but I have no idea of the size of the=20
> buffers...
I don't know. However, I'd suggest that it would be useful
to have a FIFO built in to libusb at low level so that data
loss can't happen. I don't mind whether the calling programme
mallocs the space and passes it to libusb, or the calling
programme requests libusb to reserve it itself.
Unless someone has a neater way to avoid data loss?
Dave
***************************************************************************=
***************************************************************************=
***************************************************************************=
****************
NICE CTI Systems UK Limited ("NICE") is registered in England under company=
number, 3403044. The registered office of NICE is at Tollbar Way, Hedge E=
nd, Southampton, Hampshire SO30 2ZP.
Confidentiality: This communication and any attachments are intended for th=
e above-named persons only and may be confidential and/or legally privilege=
d. Any opinions expressed in this communication are not necessarily those o=
f NICE. If this communication has come to you in error you must take no act=
ion based on it, nor must you copy or show it to anyone; please delete/dest=
roy and inform the sender by e-mail immediately.
Monitoring: NICE may monitor incoming and outgoing e-mails.
Viruses: Although we have taken steps toward ensuring that this e-mail and=
attachments are free from any virus, we advise that in keeping with good c=
omputing practice the recipient should ensure they are actually virus free.
***************************************************************************=
***************************************************************************=
***************************************************************************=
*******************
=20
|
|
From: Kjell E. A. <kje...@ta...> - 2007-06-20 06:53:40
|
Hi Dave ! Thanks for your answer. I don't really see how the length of the timeout makes any difference. The application in question does already run in a separate thread and a FIFO is used for the data received. The timing gap I'm trying to close with the ping-pong solution is from the point where usb_bulk_read() returns with data to the point in time where usb_bulk_read() is entered again. I have also noticed that libusb (or is it windows usb subsystem ?) actually buffers data, but I have no idea of the size of the buffers... Best regards, Kjell Eirik -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of lib...@li... Sent: 19. juni 2007 21.09 To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 13, Issue 16 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. USB transfers are sometimes lost (Kjell Eirik Andersen) 2. Re: USB transfers are sometimes lost (Dave Higton) ---------------------------------------------------------------------- Message: 1 Date: Tue, 19 Jun 2007 15:21:06 +0200 From: "Kjell Eirik Andersen" <kje...@ta...> Subject: [Libusb-win32-devel] USB transfers are sometimes lost To: <lib...@li...> Message-ID: =09 <C02...@EU... > =09 Content-Type: text/plain; charset=3D"us-ascii" =20 After having used libusb-win32 exstensively for more than a year I have come across a problem with usb_bulk_read(). After several hours of errorfree communication, an usb bulk read package is lost (it shows on a SW bus analyzer). =20 =20 A bulk endpoint is continously read like this : =20 while ( ! TerminateThread ) { i =3D usb_bulk_read( pDevH, 0x82, buffer, 64, 1000 ); // 1 sec timeout if ( i > 0 ) process the data else if ( i !=3D TIMEOUT ) process error } =20 Q1 : Can anybody confirm that using the libusb API in this way may result in lost packages ? =20 The plan now is to try using the async API with 2 buffers (ping-pong) like shown below and check if the problem disappears : =20 i =3D 0; i +=3D usb_bulk_setup_async( pDevH, &context1, 0x82 ); i +=3D usb_bulk_setup_async( pDevH, &context2, 0x82 ); i +=3D usb_submit_async( context1, ibuf1, 64 ); i +=3D usb_submit_async( context2, ibuf2, 64 ); if ( i !=3D 0 ) printf( "\nErrors : %d", i ); // Close down, replug etc. ?? =20 while ( ! TerminateThread ) =20 { //--- Buffer 1 --- i =3D usb_reap_async( context1, INFINITE ); // INIFINITE =3D -1 if ( i < 0 ) printf( "\nReap 1 error : %d", i ); else { printf( "\nReap 1 received : %d, %c", i, ibuf1[0] ); process data } i =3D 0; =20 //i +=3D usb_free_async( &context1 ); //i +=3D usb_bulk_setup_async( pDevH, &context1, 0x82 ); i +=3D usb_submit_async( context1, ibuf1, 64 ); if ( i !=3D 0 ) printf( "\nErrors : %d", i ); // Close down, replug etc. ?? =20 //--- Buffer 2 --- i =3D usb_reap_async( context2, INFINITE ); if ( i < 0 ) printf( "\nReap 2 error : %d", i ); else { printf( "\nReap 2 received : %d, %c", i, ibuf2[0] ); process data } i =3D 0; =20 //i +=3D usb_free_async( &context2 ); //i +=3D usb_bulk_setup_async( pDevH, &context2, 0x82 ); i +=3D usb_submit_async( context2, ibuf2, 64 ); if ( i !=3D 0 ) printf( "\nErrors : %d", i ); // Close down, replug etc. ?? } =20 i =3D usb_cancel_async( context1 ); i +=3D usb_cancel_async( context2 ); i +=3D usb_free_async( &context1 ); i +=3D usb_free_async( &context2 ); =20 Q2 : Is this the correct way to use the async API ? =20 Q3 : Am I right in assuming that the usb_free_async() and usb_bulk_setup_async() which is commented out inside the loop is really unneccessary ? (it seems to work with a small limited testprogram) =20 Any response on my three questions would be greatly appreciated ! =20 Best regards, Kjell Eirik -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Tue, 19 Jun 2007 15:01:01 +0100 From: "Dave Higton" <DAV...@ni...> Subject: Re: [Libusb-win32-devel] USB transfers are sometimes lost To: <lib...@li...> Message-ID: <B71...@so...> Content-Type: text/plain; charset=3D"us-ascii" > From: lib...@li... > [mailto:lib...@li...] > On Behalf Of Kjell Eirik Andersen > Sent: 2007 June 19 14:21 > To: lib...@li... > Subject: [Libusb-win32-devel] USB transfers are sometimes lost > > After having used libusb-win32 exstensively for more than a year > I have come across a problem with usb_bulk_read(). > > After several hours of errorfree communication, an usb bulk read > package is lost (it shows on a SW bus analyzer). > > A bulk endpoint is continously read like this : > > while ( ! TerminateThread ) > { > i =3D usb_bulk_read( pDevH, 0x82, buffer, 64, 1000 ); // 1 sec timeout > if ( i > 0 ) > process the data > else if ( i !=3D TIMEOUT ) > process error > } > > Q1 : Can anybody confirm that using the libusb API in this way > may result in lost packages ? Not strictly an answer to your question, but I have used the Linux version of libusb with interrupt transfers, in other respects like you show above. Yes, I lost packets occasionally. I had to buy a USB analyser to show where the problem occurred. You need to set the timeout high enough that it will only ever be invoked in the case of a genuine failure. If this gives you a problem of responsiveness in your programme, i.e. you really need asynchronous transfers, then yes, it's a problem. I solved it by using pthreads and a FIFO. I'm pleased to report that pthreads seems to work OK under win32 too. Dave ************************************************************************ ************************************************************************ ************************************************************************ ************************* NICE CTI Systems UK Limited ("NICE") is registered in England under company number, 3403044. The registered office of NICE is at Tollbar Way, Hedge End, Southampton, Hampshire SO30 2ZP. Confidentiality: This communication and any attachments are intended for the above-named persons only and may be confidential and/or legally privileged. Any opinions expressed in this communication are not necessarily those of NICE. If this communication has come to you in error you must take no action based on it, nor must you copy or show it to anyone; please delete/destroy and inform the sender by e-mail immediately. Monitoring: NICE may monitor incoming and outgoing e-mails. Viruses: Although we have taken steps toward ensuring that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. ************************************************************************ ************************************************************************ ************************************************************************ **************************** =20 ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel End of Libusb-win32-devel Digest, Vol 13, Issue 16 ************************************************** |