Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-03 Thread Pete Batard
> On Thu, Jan 3, 2013 at 5:50 PM, Mohamed HAMZAOUI wrote: >> YES IT WORKS Should have realized that this was the same behaviour as something that was fixed a few weeks ago. Apologies for having you waste your time on something we should have been able to answer a lot quicker (and as usual,

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-03 Thread Xiaofan Chen
On Thu, Jan 3, 2013 at 5:50 PM, Mohamed HAMZAOUI wrote: > YES IT WORKS Glad to hear that. > THAANKS for your help and your time. You are welcome. -- Xiaofan -- Master Visual Studio, SharePoint, SQL, ASP.NE

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-03 Thread Mohamed HAMZAOUI
YES IT WORKS THAANKS for your help and your time. Regards, Mohamed On Thu, Jan 3, 2013 at 10:07 AM, Xiaofan Chen wrote: > On Thu, Jan 3, 2013 at 4:56 PM, Xiaofan Chen wrote: >> On Thu, Jan 3, 2013 at 4:48 PM, Xiaofan Chen wrote: >>> Do you have other applications accessing your de

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-03 Thread Xiaofan Chen
On Thu, Jan 3, 2013 at 4:56 PM, Xiaofan Chen wrote: > On Thu, Jan 3, 2013 at 4:48 PM, Xiaofan Chen wrote: >> Do you have other applications accessing your device at the same time? >> >> https://github.com/libusbx/libusbx/wiki/Windows-Backend#wiki-Known_Restrictions >> WinUSB does not support mult

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-03 Thread Xiaofan Chen
On Thu, Jan 3, 2013 at 4:48 PM, Xiaofan Chen wrote: > Do you have other applications accessing your device at the same time? > > https://github.com/libusbx/libusbx/wiki/Windows-Backend#wiki-Known_Restrictions > WinUSB does not support multiple concurrent applications (as > per the MSDN documentati

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-03 Thread Xiaofan Chen
On Thu, Jan 3, 2013 at 4:04 PM, Mohamed HAMZAOUI wrote: > My device is a CAN/LIN - USB interface, i use the gadget zero pid/vid > just for testing, after that i'll buy another vid/pid. Okay. Actually there are VID/PIDs specially for testing purpose. > I'm not the first one who detect this proble

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-03 Thread Mohamed HAMZAOUI
My device is a CAN/LIN - USB interface, i use the gadget zero pid/vid just for testing, after that i'll buy another vid/pid. I'm not the first one who detect this problem, I have found in libusb mailing list the same problem but the discussion is not complete : http://www.mail-archive.com/libusbx-

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-02 Thread Xiaofan Chen
On Thu, Jan 3, 2013 at 10:30 AM, Xiaofan Chen wrote: > I run your program and I can not reproduce the issue with my device > (ST-Link V2 debugger, default WinUSB driver from ST, 0483:3748). I > just change the debug log level to 4 and change the vid/pid to > suit my device and nothing else of your

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-02 Thread Xiaofan Chen
On Wed, Jan 2, 2013 at 5:07 PM, Mohamed HAMZAOUI wrote: > this is the log with level 4 verbosity : > ... > [ 0.165009] [0dfc] libusbx: debug [libusb_get_device_descriptor] > 8086:27c9 (bus 3, device 1) > [ 0.169009] [0dfc] libusbx: debug [libusb_get_device_descriptor] > 8086:27cb (bus 5, d

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-02 Thread Pete Batard
I'll try to have a look at this issue by the end of the week. Regards, /Pete -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-02 Thread Mohamed HAMZAOUI
this is the log with level 4 verbosity : [timestamp] [threadID] facility level [function call] [ 0.068004] [0dfc] libusbx: debug [libusb_get_device_list] [ 0.072004] [23cc] libusbx: debug [windows_clock_getti

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-02 Thread Xiaofan Chen
On Wed, Jan 2, 2013 at 4:27 PM, Mohamed HAMZAOUI wrote: > Hi, > I use libusb1.0.14/WinUSB (v6.1.7600.16385) > This is a simple program which can reproduce the problem (output is in > the last) : Thanks. I can try this program by myself later to see if I can reproduce the issue. > libusb_set_debu

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-02 Thread Mohamed HAMZAOUI
Hi, I use libusb1.0.14/WinUSB (v6.1.7600.16385) This is a simple program which can reproduce the problem (output is in the last) : #include #include "libusb.h" struct device_descriptor { uint16_t vid; uint16_t pid; }; static struct device_descriptor managed_devices[] = { { 0x0525, 0xA4A0 }, };

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-01 Thread Xiaofan Chen
On Tue, Jan 1, 2013 at 8:21 PM, Mohamed HAMZAOUI wrote: > I have just describe for you the summary of the sequence of actions in > a large program ... Could you reproduce the issue with a simpler program and post the debug log? > There are various purposes for which you can open and close a dev

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2013-01-01 Thread Mohamed HAMZAOUI
Hi, On Tue, Jan 1, 2013 at 7:57 AM, Xiaofan Chen wrote: > On Tue, Jan 1, 2013 at 2:43 AM, Mohamed HAMZAOUI wrote: >> Hi, >> Happy new year for everyone :) >> >> I have a strange problem with libusbx 1.0.14 on windows 7 >> >> when i run this test : >> >> status = libusb_init(&ctx); >> >> libusb_g

Re: [Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2012-12-31 Thread Xiaofan Chen
On Tue, Jan 1, 2013 at 2:43 AM, Mohamed HAMZAOUI wrote: > Hi, > Happy new year for everyone :) > > I have a strange problem with libusbx 1.0.14 on windows 7 > > when i run this test : > > status = libusb_init(&ctx); > > libusb_get_device_list(ctx,&list_devices); > > libusb_open(libusb_dev[dev_inde

[Libusbx-devel] libusb_open LIBUSB_ERROR_ACCESS problem

2012-12-31 Thread Mohamed HAMZAOUI
Hi, Happy new year for everyone :) I have a strange problem with libusbx 1.0.14 on windows 7 when i run this test : status = libusb_init(&ctx); libusb_get_device_list(ctx,&list_devices); libusb_open(libusb_dev[dev_index], &handle); libusb_close(handle); libusb_open(libusb_dev[dev_index], &ha