Discussion:
[Libusb-devel] LIBUSB_ERROR_NOT_SUPPORTED
Quân Phạm Minh
13 years ago
Permalink
when I use libusb_open() get error: "operation not supported or
unimplemented on platform"
I use libusb1.x. Please help me fix bug, thank in advance
Xiaofan Chen
13 years ago
Permalink
Post by Quân Phạm Minh
when I use libusb_open() get error: "operation not supported or
unimplemented on platform"
I use libusb1.x. Please help me fix bug, thank in advance
What is the OS and what is the libusb-1.0 version you are using?
--
Xiaofan
Xiaofan Chen
13 years ago
Permalink
Post by Xiaofan Chen
Post by Quân Phạm Minh
when I use libusb_open() get error: "operation not supported or
unimplemented on platform"
I use libusb1.x. Please help me fix bug, thank in advance
What is the OS and what is the libusb-1.0 version you are using?
I use window 7 ultimate and libusb-1.0.9 (lastest)
sorry I use lisbusb-1.0.8
You should try the latest git or at least rc3.
http://git.libusb.org/?p=libusb.git;a=summary

Did you install the WinUSB driver using Zadig?
http://www.libusb.org/wiki/windows_backend
--
Xiaofan
Xiaofan Chen
13 years ago
Permalink
thank you very much! I haven't been install winusb driver yet
Then you can not use libusb_open() and it will fail.
--
Xiaofan
Xiaofan Chen
13 years ago
Permalink
although I never install winusb driver but I use libusb to get
information of my usb (kingston usb, and already
recognize by system)
Yes that is possible. But you can not open the device
and do further things. That is the confusing part for
new users with regard to libusb Windows backend,
and similarly for Mac OS X as well. libusb can
get some basic information for device with a
non-proper driver (e.g.: USB mass storage device), but
will not be able to open the device without changing
the driver to a supported one.
--
Xiaofan
Xiaofan Chen
13 years ago
Permalink
Please reply to the list instead of replying to me. Thanks.
...
Looks okay, but I am not a programmer
Peter Stuge
13 years ago
Permalink
..
    for(ssize_t i = 0; i < k; i++){
        libusb_device_handle *handler;
        int er = libusb_open(devs[i], &handler);
        switch(er){
                qDebug() <<"device opened";
                break;
                qDebug() <<"memory allocation failure";
I suggest to replace the entire switch() with perhaps:

qDebug() << er ? libusb_error_name(er) : "device opened";


//Peter

Continue reading on narkive:
Loading...