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
5
votes
1 answer

Android L 5.0 & libusb 1.0.9 - no permissions?

I currently have an Android application connecting to a device via USB OTG. The communication is done using the libusb 1.0.9 and it's working pretty well for other devices with api level < 21. (The communication must be native due to performance…
MichaelR
  • 83
  • 6
5
votes
2 answers

usb4java USB error 4: Unable to open USB device:

I am attempting to interface with the PS3's DS3 controller. I have managed to do so in C# using an implementation of libusb but decided to move my implementation to java. Unfortunately my move to java has not been so smooth. The device seems to be…
Devin Wall
  • 180
  • 1
  • 16
5
votes
2 answers

Acquiring Images from a USB mouse (Single Chip, ADNS-2700) via pyusb

I would like to extract the actual images captured by a single chip optical mouse sensor, specifically the ADNS-2700. As apposed to the various other tutorials on the internet that use a micro controller to talk to the SPI interface of the imaging…
Onlyjus
  • 5,799
  • 5
  • 30
  • 42
5
votes
2 answers

LibUSBDotNet: Strange errors after working with USB device for awhile

I'm using the LibUSBDotNet library in a WPF application that communicates with a simple USB device. I'm only sending 3 bytes to the device as a command, there's no response to be expected from it and my code works like a charm: MyUsbFinder = new…
mmvsbg
  • 3,570
  • 17
  • 52
  • 73
5
votes
1 answer

Reading data from a Tenma 72-7732 multimeter using PyUSB

I'm trying to read voltages from a Tenma 72-7732 multimeter with a HID USB connection using PyUSB and libusb. This is my code so far: def main(): import usb.core import usb.util import usb.backend import sys #find device …
Sophie
  • 85
  • 1
  • 1
  • 6
5
votes
4 answers

Libusb and how to use its packages in Ubuntu

I have installed libusb by using the following command. I am not sure if it was right or not and the command was sudo apt-get install libusb-dev Once I have installed (and I am not sure if it has installed or not because I am a novice user of…
Amjad
  • 1,950
  • 5
  • 26
  • 41
5
votes
2 answers

How to get device path using libusb in Linux

I was looking for a cross platform way of getting usb arrival and removal events in C# and i found "LibUsbDotNet C# USB Library" (http://sourceforge.net/projects/libusbdotnet/?source=navbar). It works as it should but in Linux it seems that i can't…
LAS
  • 51
  • 1
  • 2
5
votes
0 answers

Bluegiga Bluetooth LED USB dongle firmware update tool not working correctly

So I was following step by step BlueGiga's BGDemo application note but ran into a problem when using the dfutool.exe to update my USB dongle's firmware. The steps I took are as follow: Open BLEGUI and connect to my USB dongle. Press DFU to restart…
stellarowl12
  • 525
  • 6
  • 18
5
votes
1 answer

Converting a driver to linux

I'm trying to write a linux driver to a device that i have the windows driver of (Similar to the case described Here, but a different device) I'm using Libusb for the communication on the linux side, and SourceUSB as my USB sniffer (on the windows…
Nitay
  • 4,193
  • 6
  • 33
  • 42
4
votes
2 answers

USB getting data from a device

I am trying to read data from a HID device. I have a USB sniffer capture that basically does: Get Device Descriptor Get Device Descriptor Set Address Get Configuration Descriptor Get Configuration Descriptor Set Configuration Set Idle Get Input…
RunHolt
  • 1,892
  • 2
  • 19
  • 26
4
votes
1 answer

LUFA Coding an Example for AT90USB162

I'm with an open-source USB library for the USB-enabled AVR microcontrollers, LUFA (2011-10-09), and I am trying to code the CDC (a bootloader) example to my AT90USB162 chip. The sample code is in folder /Bootloads/CDC and comes prepared for…
Rego
  • 1,118
  • 1
  • 18
  • 40
4
votes
1 answer

Do I even need libusb?

I have a feature request on a project I work on, it is to integrate with a Paylife CC handheld, which has a USB connector to connect with the computer. I have the docs, and am reading up on it. When I searched on google how to read/write to a usb…
J. Martin
  • 1,683
  • 2
  • 17
  • 33
4
votes
1 answer

Python on M1 MBP trying to connect to USB devices - NoBackendError: No backend available

I am trying to connect with Python to my USB devices. The final result should be a connection to my Blood Pressure Monitor but I am failing already to connect to ANY device. My simple code - which I found here - is bellow. The Product- and Vendor ID…
4
votes
1 answer

How to detect USB insertion and removal in Rust

I'm examining rust to see if it suits my project requirements. One of my requirements is to watch for a USB insertion and removal which is identified by product id and vendor id. I found two crates libusb-rs and rusb. Both provide the following…
pouya
  • 3,400
  • 6
  • 38
  • 53
4
votes
2 answers

fatal error: libusb/libusb.h: No such file or directory librtlsdr install for GNU radio

Trying to install rtl-sdr (through git clone git://git.osmocom.org/rtl-sdr.git) thanks to the instructions here but can't go further than make in the first sequence of instructions: cd rtl-sdr/ mkdir build cd build cmake ../ make At my first try I…
Blupon
  • 959
  • 1
  • 12
  • 16