|
From: Maxime B. <bla...@gm...> - 2015-02-09 23:32:10
|
Thanks for your response! I don't have Garmin Express running or any other Ant software running. I Tried it on 2 different computer so far with the same result. I compiled libUsb with msvc2012 and I'm using the static lib. I also tried with the dll instead of the static lib. I'd love to use libUsb instead of the current ANT library I'm using ( http://www.thisisant.com/developer/resources/downloads/) This one is no longer maintained and has problem with USB1 stick. Is there a way to help debug and see a more specific cause of receiving " LIBUSB_ERROR_ACCESS" when claiming an interface? I get this in the console log : libusb: error [winusbx_claim_interface] could not access interface 0: [8] Not enough storage is available to process this command. My device is running a good driver of libUsb (libusb0 v.1.2.40.201) that should be usable? https://www.dropbox.com/s/29ika674kwyl48m/versionStickLibUsb.png?dl=0 ****************************************** *Here is my complete project file :* QT += core gui widgets TARGET = testLibUSB TEMPLATE = app CONFIG += c++11 #// Win - Can't claim an interface? win32 { INCLUDEPATH += C:\Dropbox\libusb-1.0.19\libusb LIBS += C:\Dropbox\libusb-1.0.19\Win32\Release\lib\getopt.lib LIBS += C:\Dropbox\libusb-1.0.19\Win32\Release\lib\libusb-1.0.lib } #// Mac - Working 100% macx { #OSX Libs LIBS += -framework IOKit LIBS += -framework CoreFoundation INCLUDEPATH += /Users/tourlou2/Dropbox/libusb-1.0.19_mac/libusb/ LIBS += -lobjc LIBS += /Users/tourlou2/Dropbox/libusb-1.0.19_mac/libusb/lib/libusb-1.0.a } On Mon, Feb 9, 2015 at 3:54 PM, Tim Roberts <ti...@pr...> wrote: > Maxime Blais wrote: > > > > I'm having problems claiming an interface on Windows, my code works > > fine on OSX for example. > > > > I tried resetting the device, getting and setting back the > > configuration, but still have the problem. > > The rest of the libUsb functions seems to work fine, if I could just > > get access to the interface.. > > Do you have the Garmin Express Agent running? Only one application at a > time can claim that interface. If the agent is already running, you can > do control pipe stuff, but you can't claim the interface. Check in the > system tray for their icon and quit it. > > -- > Tim Roberts, ti...@pr... > Providenza & Boekelheide, Inc. > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > libusb-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel > |