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 do I read data from a pendrive through USB using libusb on Windows using the C programming language

I am trying to read data from a pendrive connected through USB on Windows using libusb and C-programming. I am able to list out my USB connections, but I couldn't connect to one and transfer data from the USB in to my computer. #include…
san432
  • 9
  • 2
0
votes
1 answer

Linking errors when compiling a shared library

I am attempting to compile third party code to a shared library so I can call it from Python using ctypes. This is my first time knowingly working with shared libraries. I build the object code using: gcc -c -fPIC -o elisa3-lib.o ../elisa3-lib.c …
user1336958
  • 105
  • 2
  • 10
0
votes
0 answers

Libusb matching USB vendor id/product id with path in linux

I have the following code that lists the IDVendor and IDProduct #include #include int main() { …
aram
  • 1,415
  • 13
  • 27
0
votes
1 answer

Finding the details of the single USB device plugged using java

pardon my english as english is not my main language. I am currently a student - to be frank and i am trying to work on my project . Languages used is JAVA and IDE is eclipse. Currently i used LIBUSB for my project which i downloaded from…
Zi Ming
  • 389
  • 4
  • 9
  • 15
0
votes
0 answers

Not cretaing proc/bus/ entry in Linux-3.10.14 for usb modem

My Linux kernel version is 3.10.14 and I am using libusb-1.0.21 . I cross compiled it for mipsel-linux on my router for usb modem. when I try to run usb_modeswitch I got the following error : Error: Failed to initialize libusb. LIBUSB_ERROR_OTHER…
0
votes
2 answers

Need to find and open a USB serial device on linux

I'm writing a small C application to run on my (Linux) QNAP NAS that will talk to an Arduino (I have no difficulty with any of the USB code for the arduino). (The arduino has a trusted application on it that accepts text commands via USB…
X-Ray
  • 2,816
  • 1
  • 37
  • 66
0
votes
0 answers

deallocating direct ByteBuffer when used in LibUSB

LibUSB (USB4Java) requires use of Direct ByteBuffers for sending/receiving bulk transfers. The problem is that according to the documentation for java.nio.ByteBuffer Direct ByteBuffer is out of Java HEAP and therefore it is out of reach of…
Mazmart
  • 2,703
  • 4
  • 17
  • 20
0
votes
1 answer

/usr/include/libfreenect.hpp:33: error: libusb.h: No such file or directory

I installed libfreenect. I opened QT and began to coding. When I use libfreenect.h no error occurres. But when I use libfreenect.hpp, this error occurred:"error: libusb.h: No such file or directory" contents of .pro file is: QT += core QT -=…
ma98
  • 83
  • 3
  • 14
0
votes
2 answers

libusb_get_string_descriptor_ascii() timeout error?

I'm trying to get the serial number of a USB device using libusb-1.0. The problem I have is that sometimes the libusb_get_string_descriptor_ascii() function returns -7 (LIBUSB_ERROR_TIMEOUT) in my code, but other times the serial number is…
0
votes
1 answer

Usb4Java: Pipe Error (-9)

I want to send a single package to an USB device (Arduino controller) using Usb4Java's Low-Level API but I receive following error: org.usb4java.LibUsbException: USB error 9: Pipe error Here is the code for the critical part: …
Bastian
  • 1,553
  • 13
  • 33
0
votes
1 answer

Enumerate commands available for a usb chip in fedora 24

I am learning to program a USB device (iBall 3.5g USB Dongle) using libusb.h header library. Until now I am able to identify my device using the Vendor ID and also open the device for operation. As a next step I would like to know the available…
Rahul Jadhav
  • 413
  • 3
  • 9
0
votes
1 answer

Is USB4Java a wrapper for libusb 1.0 or 0.1? Is it recommended for new java developments?

I am trying to find the proper way to use a USB device with java. Most of the posts from StackOverflow recommend to use usb4java, for which the latest activity seems to be in early 2014, so I am not sure if it is still active. Anyways, digging a…
Camilo Guevara
  • 165
  • 1
  • 12
0
votes
0 answers

Loader.class.getResource() returns null on another computer

I am working on a programm which reads the data from a barcodescanner. To connect with the scanner, i use usb4java which works great. After i finished my programm i wanted to test in on another computer. The result is a LoaderException from…
mavok
  • 27
  • 14
0
votes
3 answers

System.USB: serial port from Device

I'm using usb-1.3.0.4 / System.USB. Having scanned and selected a relevant serial USB device, how do I find the corresponding serial port (e.g. COM3 on Windows)? Here is an example of what I'm after: module Main (main) where import…
marangisto
  • 260
  • 2
  • 8
0
votes
1 answer

Docker: Error creating aufs mounts: Invalid argument (Booting from live usb)

I have a Ubuntu setup running off of a live usb device. When I try to run and Docker run commands I get the following error: Error creating aufs mounts: Invalid argument. Could this be caused from using a live boot? Does anyone have a solution to…
Tyler Hilbert
  • 2,107
  • 7
  • 35
  • 55