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: Krakora, R. V <rob...@de...> - 2007-09-22 20:21:11
|
If you can afford it, Device Monitor Studio (USB Version) by HDDSoftware is outstanding. www.hddsoftware.com=20 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: Saturday, September 22, 2007 3:09 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 16, Issue 12 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. Possibility of acquiring raw USB packets with Libusb-win32 (Varuna De Silva) 2. Re: Possibility of acquiring raw USB packets with Libusb-win32 (Xiaofan Chen) ---------------------------------------------------------------------- Message: 1 Date: Sat, 22 Sep 2007 15:16:37 +0530 From: "Varuna De Silva" <va...@gm...> Subject: [Libusb-win32-devel] Possibility of acquiring raw USB packets with Libusb-win32 To: lib...@li... Message-ID: <cfa...@ma...> Content-Type: text/plain; charset=3D"iso-8859-1" Hi, I need to get raw USB packets with its protocol headers, these protocol packets we need to convert to a pcap format to be decode by WireShark. Is it possible with Libusb-win32 API to get these raw packets by sniffing the USBus , or do we have to write a special kernel level filter for this. Please be kind enough to guide us. Thank you Varuna -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Sat, 22 Sep 2007 18:14:09 +0800 From: "Xiaofan Chen" <xia...@gm...> Subject: Re: [Libusb-win32-devel] Possibility of acquiring raw USB packets with Libusb-win32 To: lib...@li... Message-ID: <a27...@ma...> Content-Type: text/plain; charset=3DISO-8859-1 On 9/22/07, Varuna De Silva <va...@gm...> wrote: > > I need to get raw USB packets with its protocol headers, these protocol > packets we need to convert to a pcap format to be decode by WireShark. > > Is it possible with Libusb-win32 API to get these raw packets by sniffing > the USBus , or do we have to write a special kernel level filter for this. > > Please be kind enough to guide us. > I am not an USB expert but I guess that the answer is no and you need a special filter driver. Do the existing open source sniffers like SnoopyPro and SniffUSB work for you? Both of them use a filter driver. 1. SnoopyPro: http://sourceforge.net/projects/usbsnoop/ 2. SniffUSB http://benoit.papillault.free.fr/usbsnoop/doc.php.en http://www.pcausa.com/Utilities/UsbSnoop/default.htm For libusb-win32, you can capature the debug message and I think you are asking more than that. Three steps to capature the debug message. * add usb_set_debug(255) to your code after the call of usb_init() * download DebugView from microsoft.com http://www.microsoft.com/technet/sysinternals/utilities/debugview.mspx * run DebugView to capture the driver's an the DLL's debug messages Example output: http://forum.microchip.com/tm.aspx?m=3D270049&mpage=3D2 Regards, Xiaofan ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ------------------------------ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel End of Libusb-win32-devel Digest, Vol 16, Issue 12 ************************************************** ***************************************************************************= ************* 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-09-22 10:14:14
|
On 9/22/07, Varuna De Silva <va...@gm...> wrote: > > I need to get raw USB packets with its protocol headers, these protocol > packets we need to convert to a pcap format to be decode by WireShark. > > Is it possible with Libusb-win32 API to get these raw packets by sniffing > the USBus , or do we have to write a special kernel level filter for this. > > Please be kind enough to guide us. > I am not an USB expert but I guess that the answer is no and you need a special filter driver. Do the existing open source sniffers like SnoopyPro and SniffUSB work for you? Both of them use a filter driver. 1. SnoopyPro: http://sourceforge.net/projects/usbsnoop/ 2. SniffUSB http://benoit.papillault.free.fr/usbsnoop/doc.php.en http://www.pcausa.com/Utilities/UsbSnoop/default.htm For libusb-win32, you can capature the debug message and I think you are asking more than that. Three steps to capature the debug message. * add usb_set_debug(255) to your code after the call of usb_init() * download DebugView from microsoft.com http://www.microsoft.com/technet/sysinternals/utilities/debugview.mspx * run DebugView to capture the driver's an the DLL's debug messages Example output: http://forum.microchip.com/tm.aspx?m=270049&mpage=2 Regards, Xiaofan |
|
From: Varuna De S. <va...@gm...> - 2007-09-22 09:46:39
|
Hi, I need to get raw USB packets with its protocol headers, these protocol packets we need to convert to a pcap format to be decode by WireShark. Is it possible with Libusb-win32 API to get these raw packets by sniffing the USBus , or do we have to write a special kernel level filter for this. Please be kind enough to guide us. Thank you Varuna |
|
From: Vincent J. <vin...@gm...> - 2007-09-18 15:45:00
|
Hello list, Is there a way to manually remove libusb drivers files from the system (or automaticaly using an libusb-win32 tool)? I mean, during developpement, several .inf files can be created (corresponding to different phase of developpement or different trials) and installed, to test different firmware version of an usb device. At the end of the developpement, there are several .inf files installed that are out-of-date and useless, and (I guess several) instances in the system registry. Is there a way to find and remove all these files and references to these usb devices that are no longer in use? (For those of you who know the USBIO tool from Thesycon, the demo version is delivered with a "cleaning wizard" that does what I am refering to here). Can someone explain me how to proceed, or point me a ressource on the internet. Thank you V. |
|
From: Kitsok <ko...@ki...> - 2007-09-18 09:35:40
|
Thanks, Stephan! Another question - is there a FAQ or something anywhere where people can find the answers to the questions like that? Stephan Meyer-2 wrote: > > > * add usb_set_debug(255) to your code after the call of usb_init() > * download DebugView from microsoft.com > * run DebugView to capture the driver's an the DLL's debug messages > > -- View this message in context: http://www.nabble.com/Few-questions-about-libusb-win32-tf4465243.html#a12752258 Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com. |
|
From: Stephan M. <Ste...@ia...> - 2007-09-17 11:33:35
|
> > Hello all! > > I'm developing custom gaming device and use libusb-win32 as a driver. > I use bulk read and write functions, and I'm stuck. > > I don't know if the problem is in driver or in firmware, but after some > consequentive bulk writes my host program fails with "write timeout". After > that I have to unplug my device, reset it and plug it back. Otherwise WinXP > even doesn't enumerate it. > > So I've decided to go deeper into the driver, and few questions raised: > 1. Do I understand correctly that I have to use MinGW compiler to compile > the sources from SVN? You can either use Mingw, Cygwin, or the Microsoft DDK > 2. What branch should I take - libusb or libusb1? Take the stable 'libusb' branch > 3. And, finnaly, how to enable and read debug output of the driver? * add usb_set_debug(255) to your code after the call of usb_init() * download DebugView from microsoft.com * run DebugView to capture the driver's an the DLL's debug messages > > Thanks! > > Best regards, > Konstantin Klubnichkin > -- > View this message in context: http://www.nabble.com/Few-questions- > about-libusb-win32-tf4465243.html#a12731698 > Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel |
|
From: #Cyrille37# <cyr...@gm...> - 2007-09-17 10:43:10
|
Ok I've found the solution.
In the system properties, in the hardware manager, I'd a look at=20
"hardware identification numbers" and use exactly the same in the .inf :
USB\Vid_03eb&Pid_ff07&Rev_0100&MI_03
=2EINF changes :
[Devices]
;;;"TUX RF DONGLE"=3DLIBUSB_DEV, USB\VID_03eb&PID_ff07
"TUX RF DONGLE"=3DLIBUSB_DEV, USB\VID_03eb&PID_ff07&Rev_0100&MI_03
[Devices.NT]
;;;"TUX RF DONGLE"=3DLIBUSB_DEV, USB\VID_03eb&PID_ff07
"TUX RF DONGLE"=3DLIBUSB_DEV, USB\VID_03eb&PID_ff07&Rev_0100&MI_03
and it's work !
In system hardware properties I've got :
LibUSB-Win32 Devices
TUX RF DONGLE
#Cyrille37# a =E9crit :
> Hello,
>
> I've just got a Tux Droid (tuxisalive.com) and all software are for=20
> Linux. That's normal ;-)
> But I would like to develop software to run the Tux Droid on windows.=20
> The first step is to install an USB Driver for it.
>
> I used inf-wizard.exe to generate the .inf File. At this point it's=20
> working. It generate a .inf file for USB Vendor ID: 03EB ProductID: FF0=
7
> The problem is when I plug the device and point the install wizard to=20
> the .inf file, windows tell that there is not device information in=20
> that file (the message is in french so I can't give the exact english=20
> version).
>
> Perhaps it miss something, like a device familly for windows ? I=20
> really don't find any idea to make it work.
>
> Thanks for help
> cyrille.
>
> Here is the generated .inf file :
>
> [Version]
> Signature =3D "$Chicago$"
> provider =3D %manufacturer%
> DriverVer =3D 03/20/2007,0.1.12.1
> CatalogFile =3D TuxDroid.cat
> CatalogFile.NT =3D TuxDroid.cat
> CatalogFile.NTAMD64 =3D TuxDroid_x64.cat
>
> Class =3D LibUsbDevices
> ClassGUID =3D {EB781AAF-9C70-4523-A5DF-642A87ECA567}
>
> [ClassInstall]
> AddReg=3Dlibusb_class_install_add_reg
>
> [ClassInstall32]
> AddReg=3Dlibusb_class_install_add_reg
>
> [libusb_class_install_add_reg]
> HKR,,,,"LibUSB-Win32 Devices"
> HKR,,Icon,,"-20"
>
> [Manufacturer]
> %manufacturer%=3DDevices,NT,NTAMD64
>
> ;----------------------------------------------------------------------=
----=20
>
> ; Files
> ;----------------------------------------------------------------------=
----=20
>
>
> [SourceDisksNames]
> 1 =3D "Libusb-Win32 Driver Installation Disk",,
>
> [SourceDisksFiles]
> libusb0.sys =3D 1,,
> libusb0.dll =3D 1,,
> libusb0_x64.sys =3D 1,,
> libusb0_x64.dll =3D 1,,
>
> [DestinationDirs]
> libusb_files_sys =3D 10,system32\drivers
> libusb_files_sys_x64 =3D 10,system32\drivers
> libusb_files_dll =3D 10,system32
> libusb_files_dll_wow64 =3D 10,syswow64
> libusb_files_dll_x64 =3D 10,system32
>
> [libusb_files_sys]
> libusb0.sys
>
> [libusb_files_sys_x64]
> libusb0.sys,libusb0_x64.sys
>
> [libusb_files_dll]
> libusb0.dll
>
> [libusb_files_dll_wow64]
> libusb0.dll
>
> [libusb_files_dll_x64]
> libusb0.dll,libusb0_x64.dll
>
> ;----------------------------------------------------------------------=
----=20
>
> ; Device driver
> ;----------------------------------------------------------------------=
----=20
>
>
> [LIBUSB_DEV]
> CopyFiles =3D libusb_files_sys, libusb_files_dll
> AddReg =3D libusb_add_reg
>
> [LIBUSB_DEV.NT]
> CopyFiles =3D libusb_files_sys, libusb_files_dll
>
> [LIBUSB_DEV.NTAMD64]
> CopyFiles =3D libusb_files_sys_x64, libusb_files_dll_wow64,=20
> libusb_files_dll_x64
>
> [LIBUSB_DEV.HW]
> DelReg =3D libusb_del_reg_hw
> AddReg =3D libusb_add_reg_hw
>
> [LIBUSB_DEV.NT.HW]
> DelReg =3D libusb_del_reg_hw
> AddReg =3D libusb_add_reg_hw
>
> [LIBUSB_DEV.NTAMD64.HW]
> DelReg =3D libusb_del_reg_hw
> AddReg =3D libusb_add_reg_hw
>
> [LIBUSB_DEV.NT.Services]
> AddService =3D libusb0, 0x00000002, libusb_add_service
>
> [LIBUSB_DEV.NTAMD64.Services]
> AddService =3D libusb0, 0x00000002, libusb_add_service
>
> [libusb_add_reg]
> HKR,,DevLoader,,*ntkern
> HKR,,NTMPDriver,,libusb0.sys
>
> ; Older versions of this .inf file installed filter drivers. They are n=
ot
> ; needed any more and must be removed
> [libusb_del_reg_hw]
> HKR,,LowerFilters
> HKR,,UpperFilters
>
> ; Device properties
> [libusb_add_reg_hw]
> HKR,,SurpriseRemovalOK, 0x00010001, 1
>
> ;----------------------------------------------------------------------=
----=20
>
> ; Services
> ;----------------------------------------------------------------------=
----=20
>
>
> [libusb_add_service]
> DisplayName =3D "LibUsb-Win32 - Kernel Driver 03/20/2007, 0.1.12.1"
> ServiceType =3D 1
> StartType =3D 3
> ErrorControl =3D 0
> ServiceBinary =3D %12%\libusb0.sys
>
> ;----------------------------------------------------------------------=
----=20
>
> ; Devices
> ;----------------------------------------------------------------------=
----=20
>
>
> [Devices]
> "Tux Droid"=3DLIBUSB_DEV, USB\VID_03eb&PID_ff07
>
> [Devices.NT]
> "Tux Droid"=3DLIBUSB_DEV, USB\VID_03eb&PID_ff07
>
> [Devices.NTAMD64]
> "Tux Droid"=3DLIBUSB_DEV, USB\VID_03eb&PID_ff07
>
>
> ;----------------------------------------------------------------------=
----=20
>
> ; Strings
> ;----------------------------------------------------------------------=
----=20
>
>
> [Strings]
> manufacturer =3D "TuxIsAlive"
>
>
|
|
From: #Cyrille37# <cyr...@gm...> - 2007-09-17 10:06:58
|
Hello, I've just got a Tux Droid (tuxisalive.com) and all software are for Linux. That's normal ;-) But I would like to develop software to run the Tux Droid on windows. The first step is to install an USB Driver for it. I used inf-wizard.exe to generate the .inf File. At this point it's working. It generate a .inf file for USB Vendor ID: 03EB ProductID: FF07 The problem is when I plug the device and point the install wizard to the .inf file, windows tell that there is not device information in that file (the message is in french so I can't give the exact english version). Perhaps it miss something, like a device familly for windows ? I really don't find any idea to make it work. Thanks for help cyrille. Here is the generated .inf file : [Version] Signature = "$Chicago$" provider = %manufacturer% DriverVer = 03/20/2007,0.1.12.1 CatalogFile = TuxDroid.cat CatalogFile.NT = TuxDroid.cat CatalogFile.NTAMD64 = TuxDroid_x64.cat Class = LibUsbDevices ClassGUID = {EB781AAF-9C70-4523-A5DF-642A87ECA567} [ClassInstall] AddReg=libusb_class_install_add_reg [ClassInstall32] AddReg=libusb_class_install_add_reg [libusb_class_install_add_reg] HKR,,,,"LibUSB-Win32 Devices" HKR,,Icon,,"-20" [Manufacturer] %manufacturer%=Devices,NT,NTAMD64 ;-------------------------------------------------------------------------- ; Files ;-------------------------------------------------------------------------- [SourceDisksNames] 1 = "Libusb-Win32 Driver Installation Disk",, [SourceDisksFiles] libusb0.sys = 1,, libusb0.dll = 1,, libusb0_x64.sys = 1,, libusb0_x64.dll = 1,, [DestinationDirs] libusb_files_sys = 10,system32\drivers libusb_files_sys_x64 = 10,system32\drivers libusb_files_dll = 10,system32 libusb_files_dll_wow64 = 10,syswow64 libusb_files_dll_x64 = 10,system32 [libusb_files_sys] libusb0.sys [libusb_files_sys_x64] libusb0.sys,libusb0_x64.sys [libusb_files_dll] libusb0.dll [libusb_files_dll_wow64] libusb0.dll [libusb_files_dll_x64] libusb0.dll,libusb0_x64.dll ;-------------------------------------------------------------------------- ; Device driver ;-------------------------------------------------------------------------- [LIBUSB_DEV] CopyFiles = libusb_files_sys, libusb_files_dll AddReg = libusb_add_reg [LIBUSB_DEV.NT] CopyFiles = libusb_files_sys, libusb_files_dll [LIBUSB_DEV.NTAMD64] CopyFiles = libusb_files_sys_x64, libusb_files_dll_wow64, libusb_files_dll_x64 [LIBUSB_DEV.HW] DelReg = libusb_del_reg_hw AddReg = libusb_add_reg_hw [LIBUSB_DEV.NT.HW] DelReg = libusb_del_reg_hw AddReg = libusb_add_reg_hw [LIBUSB_DEV.NTAMD64.HW] DelReg = libusb_del_reg_hw AddReg = libusb_add_reg_hw [LIBUSB_DEV.NT.Services] AddService = libusb0, 0x00000002, libusb_add_service [LIBUSB_DEV.NTAMD64.Services] AddService = libusb0, 0x00000002, libusb_add_service [libusb_add_reg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,libusb0.sys ; Older versions of this .inf file installed filter drivers. They are not ; needed any more and must be removed [libusb_del_reg_hw] HKR,,LowerFilters HKR,,UpperFilters ; Device properties [libusb_add_reg_hw] HKR,,SurpriseRemovalOK, 0x00010001, 1 ;-------------------------------------------------------------------------- ; Services ;-------------------------------------------------------------------------- [libusb_add_service] DisplayName = "LibUsb-Win32 - Kernel Driver 03/20/2007, 0.1.12.1" ServiceType = 1 StartType = 3 ErrorControl = 0 ServiceBinary = %12%\libusb0.sys ;-------------------------------------------------------------------------- ; Devices ;-------------------------------------------------------------------------- [Devices] "Tux Droid"=LIBUSB_DEV, USB\VID_03eb&PID_ff07 [Devices.NT] "Tux Droid"=LIBUSB_DEV, USB\VID_03eb&PID_ff07 [Devices.NTAMD64] "Tux Droid"=LIBUSB_DEV, USB\VID_03eb&PID_ff07 ;-------------------------------------------------------------------------- ; Strings ;-------------------------------------------------------------------------- [Strings] manufacturer = "TuxIsAlive" |
|
From: Kitsok <ko...@ki...> - 2007-09-17 08:42:00
|
Hello all! I'm developing custom gaming device and use libusb-win32 as a driver. I use bulk read and write functions, and I'm stuck. I don't know if the problem is in driver or in firmware, but after some consequentive bulk writes my host program fails with "write timeout". After that I have to unplug my device, reset it and plug it back. Otherwise WinXP even doesn't enumerate it. So I've decided to go deeper into the driver, and few questions raised: 1. Do I understand correctly that I have to use MinGW compiler to compile the sources from SVN? 2. What branch should I take - libusb or libusb1? 3. And, finnaly, how to enable and read debug output of the driver? Thanks! Best regards, Konstantin Klubnichkin -- View this message in context: http://www.nabble.com/Few-questions-about-libusb-win32-tf4465243.html#a12731698 Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com. |
|
From: Varuna De S. <va...@gm...> - 2007-09-17 04:07:25
|
>> Hi all, >> >> Is it possible for us to sniff the USB bus, to get the raw USB protocol >> packets, We need to get them and convert it to Pcap format to be decoded >>By Wireshark. >> >> If not the USB bus is it possible to sniff only to a particular device >>attached to the USB bus. But we cant keep the device for ourselves >> but only to sniff what is being transfered out from there. >> >> If both these things are impossible are able to get the raw protocol >> packets, with their protocol headers, from a device, to be decoded by >> our software. >There are several hardware USB sniffers that can capture USB traffic, >but I never heard of one that can send it to wireshark. >It's also possible to sniff on the software level, capturing anything >(almost anything) exchanged between the USB driver and the USB device. >An. example is http://www.pcausa.com/Utilities/UsbSnoop/default.htm >Kind regards, >Bertrik Hello, Thanks for the quick reply, I want to get these packets out from the USB bus, And I am happy about your remark that I can do it :-) I used the USBSnoop and saw it decoding the URBs, But In order to use it I believe I have to modify it code (probably at the driver level) to capture the raw packets to port them to WireShark. Instead Can I use the Libusb-win32 API, without modifying it, to get these packets? Then I can work on the user level rather than at the Kernel level to convert it to the format that, WireShark can Understand. Thanks Best regards Xavier |
|
From: <Kar...@pr...> - 2007-09-15 20:03:10
|
I will be out of the office starting 15.09.2007 and will not return un= til 30.09.2007. I will respond to your message when I return. In urgent matter please contact Markus Kraus (mar...@pr... ) or Johann Loesl (joh...@pr...). Ich bin zur Zeit nicht im B=FCro und werde Ihre Email nach meiner R=FCc= kkehr als bald als m=F6glich beantworten. In dringenden F=E4llen wenden Sie s= ich bitte an Herrn Kraus (mar...@pr...) oder Herrn L=F6sl (Joh...@pr...). Mit freundlichen Gr=FC=DFe With best regards Karl Achter = |
|
From: Bertrik S. <be...@si...> - 2007-09-15 09:04:21
|
Varuna De Silva wrote: > Hi all, > > Is it possible for us to sniff the USB bus, to get the raw USB protocol > packets, We need to get them and convert it to Pcap format to be decoded > By Wireshark. > > If not the USB bus is it possible to sniff only to a particular device > attached to the USB bus. But we cant keep the device for ourselves > but only to sniff what is being transfered out from there. > > If both these things are impossible are able to get the raw protocol > packets, with their protocol headers, from a device, to be decoded by > our software. There are several hardware USB sniffers that can capture USB traffic, but I never heard of one that can send it to wireshark. It's also possible to sniff on the software level, capturing anything (almost anything) exchanged between the USB driver and the USB device. An example is http://www.pcausa.com/Utilities/UsbSnoop/default.htm Kind regards, Bertrik |
|
From: Varuna De S. <va...@gm...> - 2007-09-15 08:50:30
|
Hi all, Is it possible for us to sniff the USB bus, to get the raw USB protocol packets, We need to get them and convert it to Pcap format to be decoded By Wireshark. If not the USB bus is it possible to sniff only to a particular device attached to the USB bus. But we cant keep the device for ourselves but only to sniff what is being transfered out from there. If both these things are impossible are able to get the raw protocol packets, with their protocol headers, from a device, to be decoded by our software. Thank alot Best regards Xavier |
|
From: amol s. <amo...@gm...> - 2007-09-14 18:08:47
|
Sean:
As far as my knowledge goes, libusb is for Linux platform whereas
libusb-win32 is for Windows platform. Their APIs are compatible with each
other.
On 9/14/07, sea...@ne... <sea...@ne...> wrote:
>
> Hi,
>
> There appears to be two home pages for libUSB:
> http://libusb.sourceforge.net/index.html
> http://libusb-win32.sourceforge.net/
>
> Are they describing the same product? Or are they describing two different
> competing products?
> Is there a difference between libusb and libusb-win32?
>
>
> Faithfully,
> Sean B. Durkin
> (s.d...@gr...)
> ------------------------------
> *Check Out the new free AIM(R) Mail*<http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aim/en-us/index.htm>-- Unlimited storage and industry-leading spam and email virus protection.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>
>
|
|
From: <sea...@ne...> - 2007-09-14 00:20:13
|
Hi, ? There appears to be two home pages for libUSB: ? http://libusb.sourceforge.net/index.html ? http://libusb-win32.sourceforge.net/ ? Are they describing the same product? Or are they describing two different competing products? Is there a difference between libusb and libusb-win32? ? ? Faithfully, Sean B. Durkin (s.d...@gr...) ________________________________________________________________________ Check Out the new free AIM(R) Mail -- Unlimited storage and industry-leading spam and email virus protection. |
|
From: Stephan M. <Ste...@ia...> - 2007-09-10 06:41:33
|
> Hi Stephan, > Please provide a solution to my problem regd > usb_control_msg() returning -1. Please provide more debugging information! What does usb_strerror() return? > > With thanks & Regards, > Prabhu > > > On 9/8/07, lib...@li... < > lib...@li...> wrote: > Send Libusb-win32-devel mailing list submissions to > lib...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > or, via email, send a message with subject or body 'help' to > lib...@li... > > You can reach the person managing the list at > lib...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Libusb-win32-devel digest..." > > > Today's Topics: > > 1. usb_control_msg() returning -1 (Prabhu R) > 2. Antwort: [RMX:##] Re: LibUsb_win32 license question > (Stephan Meyer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 7 Sep 2007 09:50:42 +0530 > From: "Prabhu R" <ece...@gm...> > Subject: [Libusb-win32-devel] usb_control_msg() returning -1 > To: lib...@li... > Message-ID: > <784...@ma... > > Content-Type: text/plain; charset="iso-8859-1" > > Hi Guys, > > I tried to use usb_control_msg() for a vendor specific request, > but its returning -1(failure). I have one of my device connected. My code is > given below. > My values for the parameter are the following, > RequestType - 0xc1 (vendor specific request) > Request - 0x82 > Value - 0 > Index - 0 > buffer - char data[10] > length - 10 > timeout - 1000 > > Please provide a suggestion. > > Source Code: > > #include <stdio.h> > > #include "usb.h" > > main() > > { > > int i; > > char data[10]; > > struct usb_bus *bus; > > struct usb_device *device; > > struct usb_dev_handle *handle; > > usb_init(); > > i = usb_find_busses(); > > printf("No of busses found = %d\n", i); > > i = usb_find_devices(); > > printf("No of devices found = %d\n", i); > > for(bus = usb_get_busses(); bus; bus = bus->next) > > { > > for(device = bus->devices; device; device = device->next) > > { > > printf("Starting to open device.....\n"); > > handle = usb_open(device); > > i = usb_control_msg(handle, 0xc1, 0x82, 0, 0, data, 10, 1000); > > printf("Return Value of usb_control_msg() = %d", i); > > usb_close(handle); > > } > > } > > getch(); > > } > > Output: > > No of busses found = 1 > > No of devices found = 1 > > Starting to open device..... > > Return Value of usb_control_msg() = -1 > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Fri, 7 Sep 2007 12:51:58 +0200 > From: Stephan Meyer <Ste...@ia... > > Subject: [Libusb-win32-devel] Antwort: [RMX:##] Re: LibUsb_win32 > license question > To: "Vincent Julien" <vin...@gm...> > Cc: lib...@li... > Message-ID: > <OF6...@re... > > Content-Type: text/plain; charset="US-ASCII" > > libusb.lib is *not* a static version of libusb0.dll it's just > an import library that loads the DLL at runtime. > > Apart from that I don't know (I'm no LGPL expert) > whether or not its legal to *statically* link a proprietary > application with a LGPL library. > > Stephan > > > > Hello Stephan, > > > > Thank you for taking time to answer me. > > Just to make sure that everything is clear on my side : the > > requirements below apply if I link my code with a static version of > > the library ? (That is, my code is linked with libusb.lib, and it > > does not load the DLL) > > > > Thanks > > Vincent > > > > > > > > > To fulfill the requirements of the license (LGPL/GPL) > > > you ... > > > > > > - DO NOT have to distribute the source code of your > > > own application. The LGPL explicitly allows you to > > > link your (closed source) application against the > > > library > > > - if you distribute libusb-win32's driver or DLL > > > along with your own application then you either > > > have to provide libusb-win32's source code or > > > point your users to a location where they can > > > download it. You also have to include libusb-win32's > > > licence and copyright so that your users know about > > > their rights (and responsibilities) > > > > > > > > > Stephan > > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > ------------------------------ > > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > End of Libusb-win32-devel Digest, Vol 16, Issue 5 > ************************************************* |
|
From: Stephan M. <Ste...@ia...> - 2007-09-07 10:52:35
|
libusb.lib is *not* a static version of libusb0.dll it's just an import library that loads the DLL at runtime. Apart from that I don't know (I'm no LGPL expert) whether or not its legal to *statically* link a proprietary application with a LGPL library. Stephan > Hello Stephan, > > Thank you for taking time to answer me. > Just to make sure that everything is clear on my side : the > requirements below apply if I link my code with a static version of > the library ? (That is, my code is linked with libusb.lib, and it > does not load the DLL) > > Thanks > Vincent > > > > > To fulfill the requirements of the license (LGPL/GPL) > > you ... > > > > - DO NOT have to distribute the source code of your > > own application. The LGPL explicitly allows you to > > link your (closed source) application against the > > library > > - if you distribute libusb-win32's driver or DLL > > along with your own application then you either > > have to provide libusb-win32's source code or > > point your users to a location where they can > > download it. You also have to include libusb-win32's > > licence and copyright so that your users know about > > their rights (and responsibilities) > > > > > > Stephan |
|
From: Prabhu R <ece...@gm...> - 2007-09-07 04:20:48
|
Hi Guys,
I tried to use usb_control_msg() for a vendor specific request,
but its returning -1(failure). I have one of my device connected. My code is
given below.
My values for the parameter are the following,
RequestType - 0xc1 (vendor specific request)
Request - 0x82
Value - 0
Index - 0
buffer - char data[10]
length - 10
timeout - 1000
Please provide a suggestion.
Source Code:
#include <stdio.h>
#include "usb.h"
main()
{
int i;
char data[10];
struct usb_bus *bus;
struct usb_device *device;
struct usb_dev_handle *handle;
usb_init();
i = usb_find_busses();
printf("No of busses found = %d\n", i);
i = usb_find_devices();
printf("No of devices found = %d\n", i);
for(bus = usb_get_busses(); bus; bus = bus->next)
{
for(device = bus->devices; device; device = device->next)
{
printf("Starting to open device.....\n");
handle = usb_open(device);
i = usb_control_msg(handle, 0xc1, 0x82, 0, 0, data, 10, 1000);
printf("Return Value of usb_control_msg() = %d", i);
usb_close(handle);
}
}
getch();
}
Output:
No of busses found = 1
No of devices found = 1
Starting to open device.....
Return Value of usb_control_msg() = -1
|
|
From: Stephan M. <Ste...@ia...> - 2007-09-06 06:49:52
|
To fulfill the requirements of the license (LGPL/GPL) you ... - DO NOT have to distribute the source code of your own application. The LGPL explicitly allows you to link your (closed source) application against the library - if you distribute libusb-win32's driver or DLL along with your own application then you either have to provide libusb-win32's source code or point your users to a location where they can download it. You also have to include libusb-win32's licence and copyright so that your users know about their rights (and responsibilities) Stephan > Hello everybody on the list, > > This is my first post on this list, and I hope that someone here > could bring me precisions, even if my question may sounds dumb. > > I am developping an application for my employer (that is, a > commercial application, although this application will maybe be > distributed freely). > This application uses LibUsb-win32 in order to establish an usb > communication with an usb device and exchange data via bulk transfers. > The application is (currently) compiled with VisualStudio, includes > the usb.h header and libusb.lib (in order to compile). The LibUsb- > win32 library in itself has not been changed in any way. > > My question is about license and distribution : I have carrefully > read the LGPL v2.1, but I would like to make sure that I fully > understand all the terms, in order not to deny the authors rights inany way. > > Since my application "contains no derivative of any portion of the > library, but is designed to work with the library by being compiled > or linked with it", it is a "work that uses the library", and I > think that I am free to distribute my application without providing > the source code and/or the object files of my application. Am I right? > In a case where my application would display copyright notice, I > plan to mention LibUsb-Win32. > I also plan to distribute the LibUsb-Win32 library, including > copyright notice, disclamer of warranty and a copy of the LGPL, as expected. > > Could someone confirms that I not going the wrong way? > If I am not in a case that allows me to distribute my application > without providing the source and objets files of my application, > what should I do to be allowed to do so? > > Thank you in advance for your support > And sorry for this rather boring question (My aim is to make sure > that I satisfy my obligations under the license, and to go against > the rights of the authors) > > V. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel |
|
From: Vincent J. <vin...@gm...> - 2007-09-04 16:35:43
|
Hello everybody on the list, This is my first post on this list, and I hope that someone here could bring me precisions, even if my question may sounds dumb. I am developping an application for my employer (that is, a commercial application, although this application will maybe be distributed freely). This application uses LibUsb-win32 in order to establish an usb communication with an usb device and exchange data via bulk transfers. The application is (currently) compiled with VisualStudio, includes the usb.h header and libusb.lib (in order to compile). The LibUsb-win32 library in itself has not been changed in any way. My question is about license and distribution : I have carrefully read the LGPL v2.1, but I would like to make sure that I fully understand all the terms, in order not to deny the authors rights in any way. Since my application "contains no derivative of any portion of the library, but is designed to work with the library by being compiled or linked with it", it is a "work that uses the library", and I think that I am free to distribute my application without providing the source code and/or the object files of my application. Am I right? In a case where my application would display copyright notice, I plan to mention LibUsb-Win32. I also plan to distribute the LibUsb-Win32 library, including copyright notice, disclamer of warranty and a copy of the LGPL, as expected. Could someone confirms that I not going the wrong way? If I am not in a case that allows me to distribute my application without providing the source and objets files of my application, what should I do to be allowed to do so? Thank you in advance for your support And sorry for this rather boring question (My aim is to make sure that I satisfy my obligations under the license, and to go against the rights of the authors) V. |
|
From: Krakora, R. V <rob...@de...> - 2007-09-03 13:57:50
|
Amin:
=20
It looks like there is possibly a bug in your code. The variable i=
contains the size of reading blocks and that is passed in to=
usb_bulk_read(). However, if the size of reading blocks is greater than=
the size of the allocated buffer then there can be a buffer overrun in the=
driver causing a blue screen or PC reboot (based on how you have Windows=
configured to handle the exception blue screen vs. automatic reboot). To=
fix this, malloc() the buffer after calculating the size of reading blocks=
(do not forget to free it). You can configure Windows to show a blue=
screen instead of automatically rebooting. The blue screen will indicate=
in which driver the exception occurred and show a dump of registers and=
memory.
=20
Best Regards,
=20
Rob Krakora
Software Engineer
Delphi Electronics & Safety
e-mail: rob...@de...
phone: 765-451-8574
________________________________
From: lib...@li... on behalf of=
lib...@li...
Sent: Sat 9/1/2007 3:04 PM
To: lib...@li...
Subject: Libusb-win32-devel Digest, Vol 16, Issue 1
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 Windows XP 64-bit (Xiaofan Chen)
2. USB_BULK_READ() (amin mosayyebzadeh)
----------------------------------------------------------------------
Message: 1
Date: Sat, 1 Sep 2007 11:01:21 +0800
From: "Xiaofan Chen" <xia...@gm...>
Subject: Re: [Libusb-win32-devel] libUsb Windows XP 64-bit
To: lib...@li...
Message-ID:
<a27...@ma...>
Content-Type: text/plain; charset=3DWINDOWS-1252
On 8/31/07, Spiro Trikaliotis <an-...@sp...>=
wrote:
> * On Thu, Aug 30, 2007 at 07:54:14PM +0800 Xiaofan Chen wrote:
> > On 8/30/07, Bachelier, Georges <geo...@at...> wrote:
> > > We provide the libUsb-Win32 driver and DLL to our customers within=
our
> > > software package (Atmel ? In-System Programming application). One of=
our
> > > customers is asking for an XP 64-bit version of libUsb. Is there=
anything
> > > available or planned?
> >
> > According to the forum archive, XP 64bit is supported but not Vista=
64bit.
>
> Unless someone is willing to contribute his Verisign (or similar) key to
> sign a 64 bit driver, it is unlikely that this will change soon. That
> is, this holds true as long as there is no new implementation that
> utilizes the built-in driver winusb.sys.
I am not an USB expert but even with winusb.sys one still needs to
provide an INF file. Does that mean the situation will be any better
unless the INF is WHQLed? I do not have Vista now.
For example, people still need to provide an inf file for CDC-ACM
device even though they use the default usbser.sys in Windows.
The safe bet is HID which does not need an inf file in most cases.
> Citing Stephan in Message-Id: <206...@we...>:
>
> * On Mon, Jun 25, 2007 at 09:03:58PM +0200 Stephan Meyer 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/
>
> So, you might want to help Stephan in getting the new version done in
> order to get the Vista 64-bit version.
>
I would like to help but I do not know much about programming. I
can certainly help for testing. I've tested the HID backend and
it is only partially working. Not so sure anout the WinUSB
backend since I am still learning how to use WinUSB. There
are very few WinUSB examples on the web. For example, I am
having problems with WinUSB here.
http://forum.microchip.com/tm.aspx?m=3D264046
Now I have an WinUSB host example in Visual C++ 2005
Express so I am learning how to use it.
Hopefully some other person will help Stephan to get the HID
and WinUSB backend to work. That would be really nice.
Regards,
Xiaofan
------------------------------
Message: 2
Date: Sat, 1 Sep 2007 15:50:05 +0330
From: "amin mosayyebzadeh" <sir...@gm...>
Subject: [Libusb-win32-devel] USB_BULK_READ()
To: lib...@li...
Message-ID:
<e71...@ma...>
Content-Type: text/plain; charset=3D"iso-8859-1"
hi all,
I use usb_bulk_read() for reading usb device sending data, but if I try to
read once again, PC will be reseted.(in below code, when I change prime
value of k to 2).
if I plug device out then plug in to pc, I can read again. Do you know why?
thanks.
int usb_test(usb_dev_handle *udev, int cnt) {
time_t start, end;
double dif=3D0;
ofstream ofile;
ofile.open("result.txt");
time (&start);
time (&end);
//PROBLEM IS HERE
for(int k =3D 1; k>0; k--){
char* rb;
char* wb;
int i=3D0, result;
rb =3D new char[4096];
wb =3D new char[2048];
int count =3D cnt;
//getting size of reading blocks;
ifstream ifile;
ifile.open("test.txt");
while(!ifile.eof()){
ifile.get();
i++;
}
ifile.close();
//reading received data
result =3D usb_bulk_read (udev, 2, rb, i, 1000);
if (result < 0) {
printf("\nCould not read: %s", usb_strerror());
return result;
} else {
count -=3D result;
printf("\nread %d bytes ", result);
}
//print read buffer
for (int j=3D0; j<result; j++) {
ofile << rb[j];
}
time(&end);
dif =3D difftime(end , start);
delete rb;
delete wb;
}
ofile.close();
return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
------------------------------
_______________________________________________
Libusb-win32-devel mailing list
Lib...@li...
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
End of Libusb-win32-devel Digest, Vol 16, Issue 1
*************************************************
***************************************************************************=
*************
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: amin m. <sir...@gm...> - 2007-09-01 12:20:14
|
hi all,
I use usb_bulk_read() for reading usb device sending data, but if I try to
read once again, PC will be reseted.(in below code, when I change prime
value of k to 2).
if I plug device out then plug in to pc, I can read again. Do you know why?
thanks.
int usb_test(usb_dev_handle *udev, int cnt) {
time_t start, end;
double dif=0;
ofstream ofile;
ofile.open("result.txt");
time (&start);
time (&end);
//PROBLEM IS HERE
for(int k = 1; k>0; k--){
char* rb;
char* wb;
int i=0, result;
rb = new char[4096];
wb = new char[2048];
int count = cnt;
//getting size of reading blocks;
ifstream ifile;
ifile.open("test.txt");
while(!ifile.eof()){
ifile.get();
i++;
}
ifile.close();
//reading received data
result = usb_bulk_read (udev, 2, rb, i, 1000);
if (result < 0) {
printf("\nCould not read: %s", usb_strerror());
return result;
} else {
count -= result;
printf("\nread %d bytes ", result);
}
//print read buffer
for (int j=0; j<result; j++) {
ofile << rb[j];
}
time(&end);
dif = difftime(end , start);
delete rb;
delete wb;
}
ofile.close();
return 0;
}
|
|
From: Xiaofan C. <xia...@gm...> - 2007-09-01 03:01:37
|
On 8/31/07, Spiro Trikaliotis <an-...@sp...> wrote= : > * On Thu, Aug 30, 2007 at 07:54:14PM +0800 Xiaofan Chen wrote: > > On 8/30/07, Bachelier, Georges <geo...@at...> wrote: > > > We provide the libUsb-Win32 driver and DLL to our customers within ou= r > > > software package (Atmel =96 In-System Programming application). One o= f our > > > customers is asking for an XP 64-bit version of libUsb. Is there anyt= hing > > > available or planned? > > > > According to the forum archive, XP 64bit is supported but not Vista 64= bit. > > Unless someone is willing to contribute his Verisign (or similar) key to > sign a 64 bit driver, it is unlikely that this will change soon. That > is, this holds true as long as there is no new implementation that > utilizes the built-in driver winusb.sys. I am not an USB expert but even with winusb.sys one still needs to provide an INF file. Does that mean the situation will be any better unless the INF is WHQLed? I do not have Vista now. For example, people still need to provide an inf file for CDC-ACM device even though they use the default usbser.sys in Windows. The safe bet is HID which does not need an inf file in most cases. > Citing Stephan in Message-Id: <206...@we...>: > > * On Mon, Jun 25, 2007 at 09:03:58PM +0200 Stephan Meyer 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/libus= b1/ > > So, you might want to help Stephan in getting the new version done in > order to get the Vista 64-bit version. > I would like to help but I do not know much about programming. I can certainly help for testing. I've tested the HID backend and it is only partially working. Not so sure anout the WinUSB backend since I am still learning how to use WinUSB. There are very few WinUSB examples on the web. For example, I am having problems with WinUSB here. http://forum.microchip.com/tm.aspx?m=3D264046 Now I have an WinUSB host example in Visual C++ 2005 Express so I am learning how to use it. Hopefully some other person will help Stephan to get the HID and WinUSB backend to work. That would be really nice. Regards, Xiaofan |
|
From: Xiaofan C. <xia...@gm...> - 2007-08-30 23:19:15
|
On 8/31/07, Thomas Spellman <th...@th...> wrote: > Does libusb-win32 support isochronous transfers? Yes. Search the forum and you will get some sample codes from Stephan. I have used it on testing a simple isoc device but I do not quite understand how it works right now. Regards, Xiaofan |
|
From: <Kar...@pr...> - 2007-08-30 20:02:01
|
I will be out of the office starting 25.08.2007 and will not return un= til 10.09.2007. I will respond to your message when I return. In urgent matter please contact Markus Kraus (mar...@pr... ) or Johann Loesl (joh...@pr...). Ich bin zur Zeit nicht im B=FCro und werde Ihre Email nach meiner R=FCc= kkehr als bald als m=F6glich beantworten. In dringenden F=E4llen wenden Sie s= ich bitte an Herrn Kraus (mar...@pr...) oder Herrn L=F6sl (Joh...@pr...). Mit freundlichen Gr=FC=DFe With best regards Karl Achter = |