Re: [Libusbx-devel] issue: libusb_interrupt_or_bulk_transfer result in device disappear

2012-05-01 Thread Xiaofan Chen
On Wed, May 2, 2012 at 2:40 PM, 付帅兵 wrote: > 1.The Linux distro is ubuntu9.10 and the kernel is 2.6.24. > 2.the kernel is not debug , so the relevant output of "dmesg" is only "usb > 1-6: USB disconnect, address 13". So the device got kicked out by the kernel and most likely the device is buggy

[Libusbx-devel] 回复: Re: issue: libusb_interrupt_or_bulk_transfer result in device disappear

2012-05-01 Thread 付帅兵
1.The Linux distro is ubuntu9.10 and the kernel is 2.6.24. 2.the kernel is not debug , so the relevant output of "dmesg" is only "usb 1-6: USB disconnect, address 13". 3. for Most of U disk the user mode driver is ok, but for a few U disk which is made by Unknow manufacturer, it is not

Re: [Libusbx-devel] issue: libusb_interrupt_or_bulk_transfer result in device disappear

2012-05-01 Thread Xiaofan Chen
On Wed, May 2, 2012 at 1:35 PM, 付帅兵 wrote: > I used libusbx which version is 1.0.10 for LINUX OS, > copy data from PC to U disk, sometimes the device disapeared for > special U disk. > I look for code and find the libusb_interrupt_or_bulk_transfer return > error which > is " libusb_interrup_or

[Libusbx-devel] issue: libusb_interrupt_or_bulk_transfer result in device disappear

2012-05-01 Thread 付帅兵
I used libusbx which version is 1.0.10 for LINUX OS, copy data from PC to U disk, sometimes the device disapeared for special U disk. I look for code and find the libusb_interrupt_or_bulk_transfer return error which is " libusb_interrup_or_bulk_transfer read fail: LIBUSB_ERROR_NO_DEVICE

[Libusbx-devel] Microsoft's view on the perceived WinUSB limitations

2012-05-01 Thread Xiaofan Chen
Reference: http://www.osronline.com/showthread.cfm?link=223812 In the above thread, Microsoft's Doron Holan (Windows driver expert) answered Microsoft's view on the perceived WinUSB limitations. I think this is of good reference to the list member here. Q1. WinUSB cannot be used to send an actua

Re: [Libusbx-devel] [PATCH] windows_usb: submit_*_transfer: call usbi_fd_notification

2012-05-01 Thread Xiaofan Chen
On Wed, May 2, 2012 at 5:53 AM, Peter Stuge wrote: > Pete Batard wrote: >> please note that, while maintainer of the original branch of >> libusb, Peter Stuge is neither a maintainer nor a moderator of >> libusbx, and as such he does not speak with any authority on this >> list. As such, he may no

Re: [Libusbx-devel] [PATCH] windows_usb: submit_*_transfer: call usbi_fd_notification

2012-05-01 Thread Xiaofan Chen
On Wed, May 2, 2012 at 4:00 AM, Pete Batard wrote: > Hi Uri, > > Thanks for this. The usbi_fd_notification calls were indeed > inadvertently removed, and I have now pushed your fix to the > git repository. > > I expect versions of libusbx running on Windows without this fix to be > fairly severely

Re: [Libusbx-devel] [PATCH] autogen.sh: do not run ./configure if $NOCONFIGURE env-var is defined

2012-05-01 Thread Ludovic Rousseau
2012/5/1 Pete Batard : > By the way, do you still consider the update of version.h and the > running of autotools that results as something you want to see fixed? As > I said, we can move the nano into its own nano.h to avoid the issue, but > I'm not sure of how important you or anybody else sees t

Re: [Libusbx-devel] [PATCH] windows_usb: submit_*_transfer: call usbi_fd_notification

2012-05-01 Thread Peter Stuge
Pete Batard wrote: > please note that, while maintainer of the original branch of > libusb, Peter Stuge is neither a maintainer nor a moderator of > libusbx, and as such he does not speak with any authority on this > list. As such, he may not be up to speed with previous work that > occurred on th

Re: [Libusbx-devel] usbclerk: Windows service for signing and installing usb device drivers

2012-05-01 Thread Orin Eman
On Tue, May 1, 2012 at 2:17 PM, Pete Batard wrote: > On 2012.04.29 06:42, Arnon Gilboa wrote: > >> I see that you used wdi_register_logger() in an "Hack for wdi logging" > >> section (currenlty disabled). > >> Can you elaborate on the limitation you found there and if you would > >> like an enhan

Re: [Libusbx-devel] [PATCH] autogen.sh: do not run ./configure if $NOCONFIGURE env-var is defined

2012-05-01 Thread Pete Batard
On 2012.05.01 22:05, Ludovic Rousseau wrote: > If the only benefit of running ./configure in autogen.sh is speed on > Windows I propose to use an opt-in option and run ./configure only on > Windows or if requested. Speed was part of it. But we also found a few examples of autogen.sh that called o

Re: [Libusbx-devel] usbclerk: Windows service for signing and installing usb device drivers

2012-05-01 Thread Pete Batard
On 2012.05.01 15:34, Uri Lublin wrote: >> Assuming you don't need to change the device's install class, > > I'm think that assumption is not true with WinUSB based libusb driver. > A new install class is created for all WinUSB libusb devices. > (Maybe we can make use the same class used for USB dev

Re: [Libusbx-devel] usbclerk: Windows service for signing and installing usb device drivers

2012-05-01 Thread Pete Batard
On 2012.04.29 06:42, Arnon Gilboa wrote: >> I see that you used wdi_register_logger() in an "Hack for wdi logging" >> section (currenlty disabled). >> Can you elaborate on the limitation you found there and if you would >> like an enhancement of libwdi's logging facility? >> > I simply wanted wdi u

Re: [Libusbx-devel] [PATCH] autogen.sh: do not run ./configure if $NOCONFIGURE env-var is defined

2012-05-01 Thread Ludovic Rousseau
2012/5/1 Pete Batard : > On 2012.05.01 16:56, Uri Lublin wrote: >> For example usefull when running autogen.sh in src-dir and >> running configure in a (different) build-dir. > > We had a discussion previously (on a different mailing list) about > removing the call to configure altogether, but the

Re: [Libusbx-devel] [RFC PATCH] windows_usb: get_device_list: if the backend api changed, use the new api

2012-05-01 Thread Pete Batard
On 2012.05.01 16:52, Uri Lublin wrote: > Only if old backend api is UNSUPPORTED. > > This happens when a libusb driver (e.g. WinUSB) is installed > after a device has been setup/discovered (with get_device_list). > > --- > > We want to install libusb driver for USB devices dynamically following a >

Re: [Libusbx-devel] [PATCH] autogen.sh: do not run ./configure if $NOCONFIGURE env-var is defined

2012-05-01 Thread Pete Batard
On 2012.05.01 16:56, Uri Lublin wrote: > For example usefull when running autogen.sh in src-dir and > running configure in a (different) build-dir. We had a discussion previously (on a different mailing list) about removing the call to configure altogether, but the outcome was fairly mixed, as s

Re: [Libusbx-devel] [PATCH] windows_usb: submit_*_transfer: call usbi_fd_notification

2012-05-01 Thread Pete Batard
Hi Uri, Thanks for this. The usbi_fd_notification calls were indeed inadvertently removed, and I have now pushed your fix to the git repository. I expect versions of libusbx running on Windows without this fix to be fairly severely impacted, when the library is used for non-trivial operations,

Re: [Libusbx-devel] [RFC PATCH] windows_usb: get_device_list: if the backend api changed, use the new api

2012-05-01 Thread Peter Stuge
Uri Lublin wrote: > Only if old backend api is UNSUPPORTED. > > This happens when a libusb driver (e.g. WinUSB) is installed > after a device has been setup/discovered (with get_device_list). I think this is a bug in the Windows backend. _get_device_list() should never re-use data from a previous

Re: [Libusbx-devel] [PATCH] autogen.sh: do not run ./configure if $NOCONFIGURE env-var is defined

2012-05-01 Thread Peter Stuge
Uri Lublin wrote: > For example usefull when running autogen.sh in src-dir and > running configure in a (different) build-dir. > --- > autogen.sh |4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/autogen.sh b/autogen.sh > index 782bec7..2a05191 100755 > --- a/autoge

Re: [Libusbx-devel] [PATCH] windows_usb: submit_*_transfer: call usbi_fd_notification

2012-05-01 Thread Peter Stuge
Uri Lublin wrote: > > Commit 4cccbed825fe1dc13812 removes the possibility to choose between > > DYNAMIC_FDS and not, and makes the previously optional behavior > > enforced, so the code in !defined() was likely removed on purpose. > > (DYNAMIC_FDS was on by default, so it has always been used on Wi

Re: [Libusbx-devel] usbclerk: Windows service for signing and installing usb device drivers

2012-05-01 Thread Tim Roberts
Arnon Gilboa wrote: > Seems like much more than setting the service. > Any idea if some of this changes can be dropped? Many of them just don't matter. They are copied here from the INF file and are used only for the Device Manager user interface. > $ diff usbstor1307.reg winusb1307.reg > 20,24c

Re: [Libusbx-devel] usbclerk: Windows service for signing and installing usb device drivers

2012-05-01 Thread Tim Roberts
Arnon Gilboa wrote: > > Do we still need to prepare the driver (patch the inf for the specific > vid-pid and sign a cat file) or just replace "USBSTOR" to "WinUSB"? > How does it know where to find the new driver ("service")? If you're are dinking with driver installation, you really should kn

[Libusbx-devel] [RFC PATCH] windows_usb: get_device_list: if the backend api changed, use the new api

2012-05-01 Thread Uri Lublin
Only if old backend api is UNSUPPORTED. This happens when a libusb driver (e.g. WinUSB) is installed after a device has been setup/discovered (with get_device_list). --- We want to install libusb driver for USB devices dynamically following a request by users. There is a problem however to acces

[Libusbx-devel] [PATCH] autogen.sh: do not run ./configure if $NOCONFIGURE env-var is defined

2012-05-01 Thread Uri Lublin
For example usefull when running autogen.sh in src-dir and running configure in a (different) build-dir. --- autogen.sh |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/autogen.sh b/autogen.sh index 782bec7..2a05191 100755 --- a/autogen.sh +++ b/autogen.sh @@ -15,4 +15,6

Re: [Libusbx-devel] usbclerk: Windows service for signing and installing usb device drivers

2012-05-01 Thread Uri Lublin
On 04/30/2012 08:44 PM, Tim Roberts wrote: > Arnon Gilboa wrote: >> Tim Roberts wrote: >>> although I suspect it >>> would be easier just to rewrite the Enum registry entry to switch to the >>> new service. >>> >> Can you pls explain this point? > Assuming you don't need to change the device's inst

Re: [Libusbx-devel] [PATCH] windows_usb: submit_*_transfer: call usbi_fd_notification

2012-05-01 Thread Uri Lublin
On 05/01/2012 04:59 PM, Peter Stuge wrote: > Uri Lublin wrote: >> Commit 4cccbed825fe1dc13812 accidently removed those calls, >> when ! ifdef DYNAMIC_FDS blocks were removed. > Commit 4cccbed825fe1dc13812 removes the possibility to choose between > DYNAMIC_FDS and not, and makes the previously opti

Re: [Libusbx-devel] usbclerk: Windows service for signing and installing usb device drivers

2012-05-01 Thread Arnon Gilboa
Arnon Gilboa wrote: > Tim Roberts wrote: > >> Arnon Gilboa wrote: >> >> >>> Tim Roberts wrote: >>> >>> although I suspect it would be easier just to rewrite the Enum registry entry to switch to the new service. >>> Can you pls

Re: [Libusbx-devel] [PATCH] windows_usb: submit_*_transfer: call usbi_fd_notification

2012-05-01 Thread Peter Stuge
Uri Lublin wrote: > Commit 4cccbed825fe1dc13812 accidently removed those calls, > when ! ifdef DYNAMIC_FDS blocks were removed. Commit 4cccbed825fe1dc13812 removes the possibility to choose between DYNAMIC_FDS and not, and makes the previously optional behavior enforced, so the code in !defined()

Re: [Libusbx-devel] usbclerk: Windows service for signing and installing usb device drivers

2012-05-01 Thread Arnon Gilboa
Tim Roberts wrote: > Arnon Gilboa wrote: > >> Tim Roberts wrote: >> >>> although I suspect it >>> would be easier just to rewrite the Enum registry entry to switch to the >>> new service. >>> >>> >> Can you pls explain this point? >> > > Assuming you don't need to change the

[Libusbx-devel] [PATCH] windows_usb: submit_*_transfer: call usbi_fd_notification

2012-05-01 Thread Uri Lublin
Commit 4cccbed825fe1dc13812 accidently removed those calls, when ! ifdef DYNAMIC_FDS blocks were removed. --- libusb/os/windows_usb.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 709157a..1957964 100644 --- a/lib