Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error code -12 when opening Novint Falcon #185

Closed
agirault opened this issue May 10, 2016 · 2 comments
Closed

Error code -12 when opening Novint Falcon #185

agirault opened this issue May 10, 2016 · 2 comments
Labels
question Technical support, will be closed if deemed not a libusb issue. Please use mailing list.

Comments

@agirault
Copy link

agirault commented May 10, 2016

I am working on making libusb1 the default USB communication library for LibNifalcon on Windows:
libnifalcon/libnifalcon#46. So far libftd2xx was used for Windows and libusb1 for Unix and Mac only.

I built against libusb-1.0.20.

I manage to get the device list with libusb_get_device_list, loop through it to find the Novint Falcon (vendorId = 1027, productId = 52040) using the libusb_get_device_descriptor, but libusb_open returns -12.

Here is what the libusb_device gives me in the debugger:

falconDevice    0x00000000003af720  libusb_device *
    lock    0x0000000000000124  void *
    refcnt  1   int
    ctx 0x000000000037ec70 {debug=0 debug_fixed=0 event_pipe=0x000000000037ec78 {0, 0} ...} libusb_context *
    bus_number  2 '\x2' unsigned char
    port_number 1 '\x1' unsigned char
    parent_dev  0x00000000003b5a80 {lock=0x0000000000000120 refcnt=3 ctx=0x000000000037ec70 {debug=0 debug_fixed=0 event_pipe=...} ...} libusb_device *
    device_address  3 '\x3' unsigned char
    num_configurations  1 '\x1' unsigned char
    speed   LIBUSB_SPEED_FULL (2)   libusb_speed
    list    {prev=0x00000000003b60d0 {prev=0x00000000003b6780 {prev=0x00000000003b6f40 {prev=0x000000000037ec80 {...} ...} ...} ...} ...}   list_head
    session_data    841 unsigned long
    device_descriptor   libusb_device_descriptor
        bLength 18 '\x12'   unsigned char
        bDescriptorType 1 '\x1' unsigned char
        bcdUSB  512 unsigned short
        bDeviceClass    0 '\0'  unsigned char
        bDeviceSubClass 0 '\0'  unsigned char
        bDeviceProtocol 0 '\0'  unsigned char
        bMaxPacketSize0 8 '\b'  unsigned char
        idVendor    1027    unsigned short
        idProduct   52040   unsigned short
        bcdDevice   1024    unsigned short
        iManufacturer   1 '\x1' unsigned char
        iProduct    2 '\x2' unsigned char
        iSerialNumber   3 '\x3' unsigned char
        bNumConfigurations  1 '\x1' unsigned char
    attached    1   int
    os_priv 0x00000000003af77c "\x1\x1\x1"  unsigned char[0]

Any idea?

Thank you.

@mcuee
Copy link
Member

mcuee commented May 12, 2016 via email

@mcuee
Copy link
Member

mcuee commented Jun 12, 2016

Closing this issue since this is not a libusb issue.

@mcuee mcuee closed this as completed Jun 12, 2016
@mcuee mcuee added the question Technical support, will be closed if deemed not a libusb issue. Please use mailing list. label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Technical support, will be closed if deemed not a libusb issue. Please use mailing list.
Projects
None yet
Development

No branches or pull requests

2 participants