Skip to content

LIBUSB_ERROR_NOT_FOUND thrown on libusb_bulk_transfer() #57

@jndok

Description

@jndok

Hi, I am encountering some issues with libusb. I was trying to read input from my keyboard, and came across libusb_bulk_transfer(). I wrote a simple prgram that loops through every device attached to my computer and when it finds the correct one (Product ID: 0x203) opens an handle and tries to call libusb_bulk_transfer().

Here is a copy/paste of my code: http://pastebin.com/qjtugkuR

Error in output:
screen shot 2015-03-07 at 14 19 54

The problem is that libusb_bulk_transfer() absolutely refuses to work, by throwing a -5 error code, aka LIBUSB_ERROR_NOT_FOUND. I have tried to use it in different ways, but the error is always there. Even tried on a different computer! Also tried running it in privileged mode with sudo and with different keyboards.

I am using OS X, on both my machines. Is this a libusb problem or am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionTechnical support, will be closed if deemed not a libusb issue. Please use mailing list.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions