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
0 answers

Can't send data to HID with libusb on windows

I'm currently trying to make a little piece of code that receive and send data to a HID (Texas Instrument HDK). There is no bug on the embedded system code (i can send data with a java program on mac OS to the device). The reception is working but i…
0
votes
1 answer

GNURadio libusb error using PyBombs

I am attempting to install GNURadio using PyBombs on Ubuntu 14.04. I am following the quickstart steps found at https://github.com/gnuradio/pybombs/ During the build I get the following errors: Linking CXX executable…
Pobbel
  • 159
  • 1
  • 9
0
votes
1 answer

c# Detect incoming data from usb port

Hi I'm working on a project using a fingerprint reader. I would like to know if there is any way to detect incoming data from that device, what I want to do is: When data detected from the fingerprint reader show a form(the form show data from the…
user2461687
  • 173
  • 1
  • 13
0
votes
1 answer

Pyusb: Ressource busy / USB bar code Scanner

I'm trying to get value from a barcode scanner, this with pyusb on Ubuntu. After investigations, I found that the barcode scanner need to receive an activation data to be able to scan barcode. I found this data, modify my rules.d file in order to…
Majonsi
  • 384
  • 1
  • 4
  • 17
0
votes
1 answer

/dev/bus/usb not created/found

We are moving from 3.4 Kernel to 3.14 Kernel In 3.4, we were using the usbfs (CONFIG_USB_DEVICEFS=y) and using the following command to mount it. mount -t usbfs none /proc/bus/usb Obviously the mounting fails because usbfs is no longer supported in…
ahamed101
  • 110
  • 2
  • 9
0
votes
1 answer

libusb_get_device_descriptor() always returns 0. How do I detect failure?

Prior to version 1.0.16 of libusb, libusb_get_device_descriptor() would return 0 for success or a negative integer to indicate failure. With version 1.0.16 and later, this function always returns 0. How do I detect and figure out why I fail to get…
Frotz
  • 535
  • 4
  • 21
0
votes
1 answer

Underlying hardware beneath virtual Com port

I have a device connected to USB port via USB cable to my PC and in device Manager it says - > "XYZ corp Virtual COM port (COM A)" Is this is same as Serial Com Port.?What is the underlying hardware under it both at device side and Host Side - a…
Raulp
  • 7,758
  • 20
  • 93
  • 155
0
votes
1 answer

Is it possible to share USB port hooked by libusb-win32 among several applications?

To make my program could communicate with Nokia phone I have setup libusb-win32 library. But after I have this library installed any standard Nokia soft like PC Suite refuses not only to communicate but even to detect my phone! The phone is still…
amahalaj
  • 55
  • 4
0
votes
1 answer

Native library not found exception for usb4java usage in android device

I want to develop usb application with usb4java for Android device. I'm using Android Studio as an IDE and Ubuntu 14.04 as an operating system. I have added usb4java-1.2.0 file to my project. I can use Libusb function in my application. Firstly I…
bzkrtmurat
  • 189
  • 1
  • 3
  • 15
0
votes
0 answers

USB: Virtual COM port specification

In Windows it is possible to create a virtual COM port to communicate with an USB device. However I could not find any specification how this actually works under the hood, i.e. how input to this device is converted into USB commands (control…
Marcus Ilgner
  • 6,935
  • 2
  • 30
  • 44
0
votes
1 answer

libusb crash when run as non root user

backtrace : Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7bca558 in add_to_flying_list (transfer=0x6527b0) at io.c:1364 1364 struct libusb_context *ctx = ITRANSFER_CTX(transfer); (gdb) bt 0 0x00007ffff7bca558 in…
chenna
  • 159
  • 1
  • 4
  • 14
0
votes
3 answers

GCC compilation error

When I tried to compile a program this came up: C:\Users\Mohit\Developer\C_Workspace\iPhoneInteraction\Debug>make all Building file: ../src/test.c Invoking: Cygwin C Compiler gcc -I"C:\cygwin\usr\include" -O0 -g3 -Wall -c -fmessage-length=0 -MMD…
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
0
votes
1 answer

segmentation fault on libusb_get_device_with_vid_pid

I'm trying to open a connection to a camera from a raspberry pi 2 over usb. I'm able to detect the camera but when I try to open a connection using libusb_open_device_with_vid_pid(null, vendor id, product id); But I receive a…
Mathew Wright
  • 95
  • 1
  • 11
0
votes
0 answers

Call to libusb_bulk_transfer hangs on some devices, works on others

I wrote the below code to access USB barcode scanners on a raspbian system and read scanned data from them using libusb. For the longest time I've had the problem that the call to libusb_bulk_transfer would not return; although the scanner was used,…
waldrumpus
  • 2,540
  • 18
  • 44
0
votes
0 answers

Create new USB Endpoint in Linux

I have an Intel Edison that I would like to use as a USB device capable of responding to queries made by a host. Currently, it is serving as a USB device providing functionality such as a serial com port, and a filesystem (as well as providing…
Zwade
  • 1,682
  • 4
  • 17
  • 28