Questions tagged [libusb]

libusb is a library that gives user level applications uniform access to USB devices across many different operating systems.

libusb is a library that gives user level applications uniform access to USB devices across many different operating systems. It's is an open source project licensed under the GNU Lesser General Public License.

There are two versions of the libusb API: the current libusb-1.0 API, and its legacy predecessor libusb-0.1. Please use libusb-1.0 for all new development.

861 questions
0
votes
1 answer

Unable to read USB interrupt data on Raspbian (already working on Ubuntu)

I'm trying to read a Wacom tablet thanks to libusb. The program runs well on Ubuntu, but it is not reading the data on Raspbian. The device is recognized by the OS (lsusb -v) and also by my program, but the function "libusb_interrupt_transfer" (from…
Pavel glv
  • 1
  • 1
0
votes
0 answers

Device not found libusb debian

I have a small problem with the libusb.I want to open a USB port, but this port is never found. Result of lsusb command : Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root…
simon
  • 1,180
  • 3
  • 12
  • 33
0
votes
1 answer

libusb_claim_interface fails on mac osx

I have to use libusb 1.0 to communicate with CDC. It will work on linux but i'm testing on Mac 10.10.3. r = libusb_claim_interface(dev_handle, connection.usb_interface_index); // returns -3 log: 2015-07-02 23:43:13.901 xctest[66961:4625911] [TRACE …
4ntoine
  • 19,816
  • 21
  • 96
  • 220
0
votes
2 answers

C-code (class/framework/library) in Objective-C

How can I reference a class/framework/library like libusb in an Objective-C class? Currently I have tried to initiate an enum/struct-function from the library inside my @interface in my .h-file. But that doesn't work, apparently. :/ I have it…
johankj
  • 1,765
  • 16
  • 34
0
votes
0 answers

libusb: What is the source of these read errors?

I am sending the English alphabets with one second delay from an Arduino to my laptop: void loop() { delay(1000); Serial.write('N'); } I am trying to catch and print the alphabets from a C++ program using libusb. Here is the relevant…
daltonfury42
  • 3,103
  • 2
  • 30
  • 47
0
votes
1 answer

usb.core.USBError: [Errno 19] No such device (it may have been disconnected)

My code to retrieve a value from a USB device in Python is as follows: import usb.core import usb.util VENDOR_ID = 0x0922 PRODUCT_ID = 0x8005 # find the USB device device = usb.core.find(idVendor=VENDOR_ID, …
James Anderson
  • 556
  • 3
  • 16
  • 41
0
votes
0 answers

usb_libusb10.h(72): error C2146: syntax error : missing ';' before identifier 'cb'

I am getting the following error even though it seems there are no syntax errors. usb_libusb10.h(72): error C2146: syntax error : missing ';' before identifier 'cb' The line where the error is generating is given below- fnusb_iso_cb cb; I also tried…
C Hamilton
  • 11
  • 1
  • 5
0
votes
1 answer

Linking errors with libusb, wxWidgets, and MSVC 2013

I'm working on a utility for a USB device which uses wxWidgets in C++ to display a GUI. I'm trying to link libusb (which I precompiled with MSVC 2013) to the project. I made a simple window based off of the "minimal" example. Everything is fine…
neptune798
  • 141
  • 1
  • 3
0
votes
2 answers

Enumerating a USB device in Linux

Is there a command to enumerate the USB device (HID) programmatically or through some commands? In Windows we can do the same using Device Manager or devcon. I tried doing rmmod and insmoding the device driver, but it didn't enumerate the device.
Raulp
  • 7,758
  • 20
  • 93
  • 155
0
votes
1 answer

Linking error with vrpn and libusb in Mac OS X

I'm getting the following error when I try to compile vrpn 7.33 on a Mac. It says that libusb was compiled for a different architecture than vrpn is being compiled: Linking CXX executable client_and_server ld: warning: ignoring file…
Daniel
  • 21,933
  • 14
  • 72
  • 101
0
votes
1 answer

Symbols not found in libusb

Note that I am new to iOS (actually, iDevices) internals. I'm trying to compile iRecovery, a tool used to communicate with iBoot, iOS's bootloader. Sadly... I'm getting errors about libusb while compiling : ./configure: line 15323: syntax error near…
Perceval
  • 247
  • 2
  • 14
0
votes
1 answer

Teensy to imitate a USB bulk data transfer

I've purchased a teensy 3.0 in the hope I can use it to imitate the USB bulk transfer from another piece of hardware. I am developing some software to read and process the data coming over USB in a bulk transfer But I am trying to do this prior to…
bph
  • 10,728
  • 15
  • 60
  • 135
0
votes
1 answer

Android USB without ROOT permission

I am working on an Android application which talks to webcam over USB. I am using JNI to use the device libraries (*.so files). The application itself is in USB host mode and is working as expected on a custom image where I give read-write…
Anil Maddala
  • 898
  • 16
  • 34
0
votes
0 answers

libusb driver installation with NSIS on Windows 8

I have a problem by installing the libusb driver on Windows 8. I generated a .inf file, which includes the device information like vid, pid, name,.... In my installer (currently generated with NSIS) I call the rundll32.exe: ExecWait 'rundll32.exe…
moudi
  • 478
  • 4
  • 17
0
votes
1 answer

STM32F4 Discovery USB in HS mode?

I want to convert the USB HID MOUSE demonstration example (from the STM32F4 Discovery board firmware package) into HIGH SPEED and be able to transfer 128Bytes in a single Xfer. I changed the following places; HID REPORT; REPORT_SIZE…
pacman
  • 41
  • 2
  • 8