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

libusb endpoint direction printer

I want to address directly a USB device (a receipts printer) using libusb-1.0 library. I've managed to do it with another printer (also for printing receipts, but another brand), but the one I try now presents a new problem: it has two endpoints,…
Zorn
  • 1
  • 2
0
votes
0 answers

Human Interface Device sharing [HIDAPI]

I have a Human Interface Device (HID) that I'm trying to talk to with HIDAPI and I am having some difficulty talking to it when another program has a handle on the device; namely the device vendor's development software. The device in question is an…
audiFanatic
  • 2,296
  • 8
  • 40
  • 56
0
votes
0 answers

libusb mass storage works continuously

I'm writing and reading data on usb flash disc. Despite I free resources and call libusb_exit, USB disk's led continuously flashes and device gets heated after a while. Moreover, this happens even if I close my application. It stops if I detach and…
emrahustun
  • 31
  • 1
  • 5
0
votes
2 answers

Using libusb-win32 to communicate with USB to DMX512 interface, can't find any endpoints

I am trying to send raw data to a set lights from my computer through a USB to DMX512 interface using libusb-win32. So far everything seems to be working well, except for some reason the program doesn't recognize any endpoints on the adapter. Here…
0
votes
1 answer

USB device not valid in MonoLibUsb

I'm trying to open a USB device handle in MonoLibUsb (on Linux), but every time I open it I get IsInvalid == true on the device handle. The USB device is definitely compatible with LibUsb as I've connected it to my Windows PC and can successfully…
TheHvidsten
  • 4,028
  • 3
  • 29
  • 62
0
votes
1 answer

How to detect USB storage in Qt?

Target: In our embedded Linux system, we want to use Qt to detect the insertion of a USB storage device, to inform the system when the USB storage device is plugged in or out, then we can mount its file system. Later we can access the files on the…
James.Zhou
  • 131
  • 1
  • 2
  • 14
0
votes
1 answer

Installing WinUSB and libusb at the same time

After installing WinUSB (so that I could play around with libusb), whenever i plug an usb flash drive into the PC usb port, windows no longer recognizes it and doesnt put a new drive letter in file explorer. So it seems if I have WinUsb driver…
user5199516
  • 27
  • 3
  • 9
0
votes
2 answers

libusb custom file system

I need to read and write bytes to a mass storage USB FLASH drive, but I dont want to use any file system, or files. I just want to have a blank unformatted USB flash drive, then start writing raw bytes to it using libUsb. I read that mass storage…
user5199516
  • 27
  • 3
  • 9
0
votes
0 answers

Cannot link against LibUSB Visual Studio 2013. Linker error 2019 (LNK2019)

Apparently there's nothing I have more difficulty with than flipping switches in VS and using DLLs. No matter how many times I do it, I can never seem to get it right. Anyway, I'm trying to link LibUSB against a test application. I've downloaded the…
audiFanatic
  • 2,296
  • 8
  • 40
  • 56
0
votes
0 answers

libusb LIBUSB_ERROR_IO when transferring

I am running the program below which returns an error code(-1, LIBUSB_ERROR_IO, Bytes sent: 0) when trying to transfer the data. I am using the libusb-1.0 dll. #include #include "inc/libusb.h" int main(void) { libusb_device_handle…
gkatev
  • 81
  • 1
  • 2
  • 7
0
votes
1 answer

why libusb-1.0 example not print any info on NetBSD7.0?

Install libusb 1.0.19 on NetBSD7.0, use root user to run the sample "listdevs", can not print any info. ( which work well on centos7) I can sure that there 2 usb mass storage devices. Anyone try it? Should other configuration?
jim ying
  • 361
  • 4
  • 17
0
votes
1 answer

LibUsbDotNet -unable to find the usb device error

Using the below link as reference, I try to communicate with USB from my PC. The below code public static UsbDeviceFinder MyUsbFinder = new UsbDeviceFinder(1234, 1); if (MyUsbDevice == null) throw new Exception("Device Not Found."); returns…
user1648142
0
votes
1 answer

Python script to detect USBs in java GUI

I'm making a java GUI application (javafx) that calls a python script (python2.7) which detects connected devices. The reason for this is so I can automate my connections with multiple devices. In my python script, I use pyusb. However to detect a…
0
votes
1 answer

Polling USB for data using USB4Java

I'm using USB4Java to poll a certain USB device on a thread and immediately read in the data when available. The problem I'm facing is that there's no available() method like there is for streams, which checks the available number of bytes on the…
ddukki
  • 189
  • 2
  • 13
0
votes
1 answer

libusb support to Yocto build for Freescale imx6 board

I am currently working with creating an alternative BSP using Yocto to replace the existing BSP. I am new to Yocto and I need to know how I can add libusb support to Yocto to detect the bluetooth dongle when attached. Regards, Pavan
pavanpadawan
  • 66
  • 1
  • 8