Questions tagged [libusb-1.0]

There are two versions of the libusb API: the current libusb-1.0 API, and its legacy predecessor libusb-0.1. libusb-1.0 is an almost-rewrite of the previous stable branch, libusb-0.1. It is a lightweight library that can be efficiently integrated into applications of any kind, with several new features.

There are two versions of the libusb API: the current libusb-1.0 API, and its legacy predecessor libusb-0.1. libusb-1.0 is an almost-rewrite of the previous stable branch, libusb-0.1. It is a lightweight library that can be efficiently integrated into applications of any kind, with several new features.

libusb-1.0 development is being lead by Peter Stuge.

Links

211 questions
1
vote
1 answer

Android NDK : make: *** No rule to make target. Stop

I am trying to build libusb using the NDK. Here is my Android.mk and Application.mk I have checked this thread Android NDK: No rule to make target but it didn't work for me. Android.mk include $(CLEAR_VARS) LOCAL_MODULE := libusb LOCAL_SRC_FILES…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
1
vote
1 answer

libusb-1.0 hotplug events stop working in parent after fork(), when child calls libusb_exit()

I've been developing an application that monitors the USB device tree using libusb_hotplug_register_callback(). When a device that matches some criteria is attached, it will fork() and exec() an application to handle this device. The application has…
Attie
  • 6,690
  • 2
  • 24
  • 34
1
vote
2 answers

Undefined reference to libusb functions

I was given some sample code from a vendor that relies on libusb. I get this when I try to compile using make: mkdir -p .obj gcc -I./ -I../libsoccptp/include -std=gnu++11 -pthread -g -o .obj/authentication.o -c authentication.cpp -lusb-1.0 -lusb gcc…
Dan Laks
  • 211
  • 2
  • 9
1
vote
0 answers

cmake: pkg_check_modules libusb version

I have two versions of libusb installed: $ pkg-config --libs libusb -lusb $ pkg-config --libs libusb-1.0 -lusb-1.0 For a project I want to use the libusb-1.0 version, hence I have the following in my CMakeLists.txt: pkg_check_modules(LIBUSB…
Georg P.
  • 2,785
  • 2
  • 27
  • 53
1
vote
5 answers

USB error 9 during control transfer

I'm trying to make a little driver to communicate with an USB thermometer, using java library Libusb (org.usb4java.LibUsb). I'm testing it on a Raspeberry Pi (3b) with vanilla linux-arm. My problem is that I don't succeed in transferring a control…
Belze88
  • 41
  • 1
  • 5
1
vote
1 answer

LibUSB ErrNo 16 Resource Busy - Magstripe reader

I am using a rPi 2B to which I have plugged in a Magstripe Card Reader (using a PS/2 to USB converter). I determined the correct Vendor/Product ID's using lsusb and then am using the following code which uses libusb to connect to the reader. This…
Matthew
  • 9,851
  • 4
  • 46
  • 77
1
vote
1 answer

gcc Linker error despite specifying -l flag for libusb-1.0

I'm specifying an -l flag for my library, so can anyone help me understand why I receive this error for this command? $ gcc `pkg-config --libs --cflags libusb-1.0` sourcefile.c /tmp/cclBFhzY.o: In function `main': sourcefile.c:(.text+0x57):…
JellicleCat
  • 28,480
  • 24
  • 109
  • 162
1
vote
1 answer

Unable to bundle app with libusb1 in PyInstaller

I'm running Python 2.7.12 with a simple python file and importing a couple of modules (PyQt5 and usb1). No additional assets or files. When I try to bundle the app, with a default spec file, the app works fine on my host machine. But trying to run…
kko
  • 97
  • 8
1
vote
3 answers

libusb_hotplug_register_callback does not accept my callback function

I am developing an app to detect when an USB is plugged in and out in vc++ with visual studio 2012. I have added the libusb 1.0 library which it is a cross platform library right now. I have a problem of compilation with the callback function while…
Michael Delgado
  • 47
  • 2
  • 13
1
vote
0 answers

How to get usb mass storage size using libusb library?

I am finding out usb mass storage related information using libusb library. But don't know how to get usb mass storage size? My tryout is: void printdev(libusb_device *dev); int main() { libusb_device **devs; libusb_context *ctx = NULL;…
Ravi Bhushan
  • 253
  • 3
  • 17
1
vote
0 answers

Communicating with Nexus-4 using libusb in firmware update mode

I am trying to develop a simple program to communicate with the Nexus-4 bootloader in firmware update mode. Nexus -4 has three usb interfaces. Interface-1 has two 2 endpoints - 2 and 131. I wrote a program to write the command, get-device-info,…
vivek b
  • 11
  • 2
1
vote
1 answer

Usb4Java usage in Android

I want to use usb4java for my project. I'm giving dependencies for usb4java on gradle. I can import usb4java classes but when I want to run code on android device I'm getting "Native library not found in classpath:…
bzkrtmurat
  • 189
  • 1
  • 3
  • 15
1
vote
0 answers

libusb_interrupt_transfer ends with LIBUSB_ERROR_IO

Writting to the device with libusb_interrupt_transfer(...), ends with LIBUSB_ERROR_IO all the time. Libusb version: libusb-1.0.4 STM32F103 code - st example for hid devices Checked: Endpoint in code is set to as in lsusb : 0x81 in usbmon I can see…
pholat
  • 467
  • 5
  • 20
1
vote
1 answer

libusb 1.0.20 wont compile on osx yosemite

I'm trying to install the new libusb 1.0.20 version on my mac for a project i;m working on. Mainly i'm interested in the libusb static libraries .a and .la I got the source code from online and I go into the directory and type ./configure adn the…
JJ Adams
  • 481
  • 4
  • 17
1
vote
2 answers

hidapi Windows 8.1 hid_write fail

hw : lpc1549 eval board with usb hid test firmware ... endpoint size 64 bytes endpoint intr reads out-report buf and displays len and data in hex ... copies out_report into in_report buf and echoes back with write funct and len host : using qt5 ,…