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
46
votes
12 answers

More than one file was found with OS independent path 'lib/x86/libusb.so'

I am using libusb in my android application. When I am trying to build libusb native library then I get below error message, *.so files generated. Error:Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'. More than one…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
19
votes
4 answers

libusb_open_device_with_vid_pid failed when trying to access USB device

I am trying to get a USB device to connect to an Android 5.1.1 device. Previously I had been using regular libusb for KitKat, but Lollipop has increased security and this no longer works. This is well documented, requiring root to set the SELinux…
Matt Ellen
  • 11,268
  • 4
  • 68
  • 90
18
votes
3 answers

How to use libusb and libusb_get_device_descriptor()?

I'm learning to use libusb v1.0.0 for the first time on Ubuntu 12.10. Here is some small test code I'm using to try and understand how to use this API: #include ... libusb_device **list; libusb_get_device_list(ctx, &list); //…
Stéphane
  • 19,459
  • 24
  • 95
  • 136
12
votes
3 answers

Error message 'Interface not claimed' from libusb

I'm trying to use libusb, but I am get the following error message: usbfs: process 24665 (myprogram) did not claim interface 0 before use I don't really understand why, because as far as I can tell, I'm doing it according to the description found…
Robert
  • 6,855
  • 4
  • 35
  • 43
11
votes
1 answer

Cross-platform USB communication using ASP.NET Core

Overview I've ported a web application to .NET Core and I'm finding that it's able to communicate with a microcontroller over USB when running on Windows but not when running on Linux. I'm trying to work out: Why this is the case (is it a bug in…
Tagc
  • 8,736
  • 7
  • 61
  • 114
11
votes
5 answers

libusb cannot open USB device, permission isse. NetBeans/Ubuntu

I'm writing a C/C++ application in NetBeans based on libusb-1.0 on Ubuntu 12.04. I can get basic information from the USB device (for example, the interface description) but I am not able to open the device. The function libusb_open gives me the…
raff5184
  • 344
  • 1
  • 2
  • 15
11
votes
3 answers

How to send data to USB device in node.js using libusb

I have try to get data from device (USB thermometer), following this documentation, but I have not any result. For getting themperature data from device, I should send the data like that 'd\n'. This is my code: var usb = require('usb'), term =…
Alex Skakun
  • 323
  • 1
  • 4
  • 10
9
votes
1 answer

Get access to USB device on Linux (libusb-1.0)?

I am writing a small program to communicate with a specific USB HID product (identified by vendor and product IDs), using libusb-1.0 on Linux. Right now, I have to run the program as root because "libusb requires write access to USB device nodes". …
erjiang
  • 44,417
  • 10
  • 64
  • 100
9
votes
3 answers

PyUSB 1.0: NotImplementedError: Operation not supported or unimplemented on this platform

I just began to use pyusb, and basically I'm playing with the sample code here. I'm using Windows7 64 bit, and downloaded the zip version from https://walac.github.io/pyusb/. Backend is libusb-1.0.19 that is downloaded the windows binary from…
Bomin
  • 1,619
  • 5
  • 24
  • 39
8
votes
2 answers

Installing libusb-1 and libudev to get openni to compile on Fedora

I have just changed to Fedora 20 and I am trying to get used to it and to learn it. Before I have only worked with ubuntu so there are some new things for me. I have tried to compile openni_master by downloading the package from git. The first step…
El_Loco
  • 1,716
  • 4
  • 20
  • 35
7
votes
1 answer

Using libusb in Android application: how to allow application to access USB

I'd like to use libusb in my Android app (java GUI + native(C++) core). I have already compiled libusb and tried calling its functions, but libusb_open return LIBUSB_ERROR_ACCESS. I suppose there is a problem with USB access permissions, but I don't…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
7
votes
5 answers

Get string descriptor using PyUSB usb.util.get_string()

I am having trouble getting the string descriptor of a USB device. What I'm looking for is the human friendly Manufacturer and Product names. I am using libusb-1.0 as backend and am able to get the Manufacturer name using the provided libusb test…
smattmyers
  • 215
  • 1
  • 3
  • 10
7
votes
3 answers

Pyusb on Windows 7 cannot find any devices

So I installed Pyusb 1.0.0-alpha-1 Under Windows, I cannot get any handles to usb devices. >>> import usb.core >>> print usb.core.find() None I do have 1 usb device plugged in(idVendor=0x04d8, idProduct=0x0042), and I tried…
Ponkadoodle
  • 5,777
  • 5
  • 38
  • 62
7
votes
1 answer

libusb_claim_interface fails on Mac OS X Mountain Lion

I've searched for hours with no avail. I've seen it everywhere that libusb_detach_kernel_driver isn't supported on Mac OS X, but I haven't been able to find a patch or alternative for it. libusb_claim_interface returns this: libusb: 0.863377 error…
George Morgan
  • 669
  • 10
  • 23
6
votes
1 answer

What is "zero-length packet"?

USB standard mentions writing "zero-length" packets in some scenarios. Can anyone please explain what is the meaning of "zero-length" packets in USB terminology ? What is "short packet" ? (seems that both "short packet" and "zero-length packet" are…
ransh
  • 1,589
  • 4
  • 30
  • 56
1
2 3
14 15