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

How to fix an error with libsn0wcore "Failed to link opensn0w_cli!"?

I'm Brunodm. I keep getting this error (http://pastebin.com/NAApFYju) when I try to compile opensn0w (https://github.com/winocm/opensn0w) by @winocm in Ubuntu, that I've just reinstalled. I think I need some libraries to make it works, but I don't…
0
votes
0 answers

libusb c++ string descriptor with unicode support

I'd like to use libusb to retrieve information about my devices. I can read every descriptor and print every number associated inside theese descriptors. But I have troubles with the strings. How can I manage the string descriptors in a good way…
user2714602
  • 231
  • 4
  • 16
0
votes
2 answers

Undefined method all_input_usages using libusb

I wrote this little demo code with libusb: require 'libusb' usb = LIBUSB::Context.new device = usb.devices(:idVendor => 2362).first puts device.all_input_usages But somehow I don't get the error: undefined method `all_input_usages' for…
John Smith
  • 6,105
  • 16
  • 58
  • 109
0
votes
1 answer

Passing Product ID and Vendor ID

I am trying to get details of a Dongle (GSM Modem) using LibUSBDotNet library (here it is). Following is my attempt using System; using System.Collections.Generic; using System.Linq; using System.Text; using LibUsbDotNet; using…
PeakGen
  • 21,894
  • 86
  • 261
  • 463
0
votes
2 answers

FTDI via libusb error EPIPE

I'm trying to work with an FTDI-based USB device and I'm getting a -32 (EPIPE) error: 08-06 16:32:16.328: WARN/System.err(15547): ftdi_usb_open_dev() 08-06 16:32:16.328: WARN/System.err(15547): usb_detach_kernel_driver_np()libusb: 0.029116 debug…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
0
votes
0 answers

How to get Android USB API debug log

I have android app with implemented interaction over USB (with sources) and i'm facing some difficulties with implementing the same in native code using libusb. Is there any chanсe to get libusb invocations log for Android USB API? Update: It seems…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
0
votes
0 answers

Ant LibusbJava compile error: "jni.h: No such file"...fixed, now a memset error

There appears to be a Ant / jni.h problem (for my setup) with LibusbJava. I get the following error when setting up LibusbJava by running ant linux in CentOS 6.3 as root (quick and dirty test, thanks for those concerned about user level =0). I…
apollon
  • 95
  • 1
  • 2
  • 13
0
votes
1 answer

Reading data from a USB flash drive using libusb

I'm testing out some stuff in libusb (C++), but is it possible to read data (like getting folders and files) from a USB flash drive using libusb? I've searched for functions and stuff, but I haven't been able to find something. I'd love some…
user1568364
  • 113
  • 3
  • 9
0
votes
1 answer

Using libusb async bulk transfer, device stops receiving if we go idle

I'm writing a Linux program (using Qt 4.8 and libusb 1.0) which will communicate with a custom USB device (currently being programmed by a co-worker). Step 1 is to have a "heartbeat" going back and forth over USB at regular intervals. I'm currently…
Doug
  • 131
  • 6
0
votes
1 answer

Failing to link libusb to C project on Mac

I've got libusb installed on Mac OS X using Homebrew, and is located at /usr/local/Cellar/libusb it's tree looks as follows : . └── 1.0.9 ├── AUTHORS ├── COPYING ├── ChangeLog ├── INSTALL_RECEIPT.json ├── NEWS ├── README …
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
0
votes
1 answer

Does an HID device need libusbx Windows backend driver on Windows 7?

Current status: I have developed some USB based device and have developed a driver on Linux using libusb. I am now porting the driver to Windows 7. Device details My device is a touch screen with two interfaces, one for the OS to communicate with…
Prajosh Premdas
  • 970
  • 4
  • 17
  • 40
0
votes
1 answer

libusb dereferencing pointer to incomplete type

I know there are a lot of questions up about this issue, but specifically I'm having trouble with an implementation of the libusb library on Ubuntu. Here is my code: struct usb_bus *busses; struct usb_bus *bus; struct usb_device *digiSpark =…
eatonphil
  • 13,115
  • 27
  • 76
  • 133
0
votes
0 answers

Android libusb I/O error

I'm trying to use libusb on Android 2.3 to read a stream of data from a USB device connected to an Android development device using libusb and the Android NDK. The development device supports USB host mode even though my version of Android does not.…
Brian
  • 11
  • 5
0
votes
1 answer

Connecting multiple usb peripherals to a FPGA

I want to connect a USB peripherals to a FPGA. Basically FPGA should act like an USB host. Is there a FPGA board support a USB hub so that one could connect multiple(upto 4) USB peripherals at a time. I have a Digilent Nexys3 fpga which is based on…
0
votes
2 answers

How to print list of connected devices

Please have a look at the following code, which is coded to get the list of USB devices connected #include #include using namespace std; int main() { usb_init(); usb_find_busses(); usb_find_devices(); …
PeakGen
  • 21,894
  • 86
  • 261
  • 463