Questions tagged [libusb-1.0]

There are two versions of the libusb API: the current libusb-1.0 API, and its legacy predecessor libusb-0.1. libusb-1.0 is an almost-rewrite of the previous stable branch, libusb-0.1. It is a lightweight library that can be efficiently integrated into applications of any kind, with several new features.

There are two versions of the libusb API: the current libusb-1.0 API, and its legacy predecessor libusb-0.1. libusb-1.0 is an almost-rewrite of the previous stable branch, libusb-0.1. It is a lightweight library that can be efficiently integrated into applications of any kind, with several new features.

libusb-1.0 development is being lead by Peter Stuge.

Links

211 questions
2
votes
1 answer

libusb - configure error (libudev not installed)

I'm trying to cross-compile the libusb v1.0.19 library using the arm-verifone-linux-gnueabi-gcc compiler in Cygwin, but at the end of the configure call it shows this error: udev support requested but libudev not installed. Here is my configure…
superm0
  • 963
  • 11
  • 19
2
votes
1 answer

LibUsbDotNet, no libusb-1.0.dll

I'm attempting to port some C source (Linux) using libusb to C# (Windows). I successfully installed LibUsbDotNet on Windows 7. Then I proceeded to add using MonoLibUsb, since it looks like the easiest path for porting. However, when running…
Magnus
  • 4,644
  • 1
  • 33
  • 49
2
votes
1 answer

Porting a Linux kernel driver to libusb

So I was wondering: Since libusb provides userspace access to USB, is it possible to port already existing kernel drivers to libusb? I do understand it might need rewriting of the driver, but do you think it is possible to write a "virtual kernel"…
Martin Marinov
  • 1,167
  • 3
  • 15
  • 25
2
votes
0 answers

How can libusbx drivers be installed automatically along with the application using an installer?

I have written an application for a device and I used the libusbx library. I had to install the WinUSB driver using Zadig to run my application. Now, I am deploying my application using the Inno Setup installer. How can I automatically install the…
adnan kamili
  • 8,967
  • 7
  • 65
  • 125
2
votes
1 answer

libusb_bulk_transfer() read hangs after first successful libusb_bulk_transfer() write on USB mass storage device

I am trying to perform write/read libusb_bulk_transfer() on my USB mass storage device. But after the first successful libusb_bulk_transfer() write, my program just hangs and does not perform a libusb_bulk_transfer() read. I observe that my USB…
Sourav Singh
  • 99
  • 2
  • 6
2
votes
1 answer

How to set RTS/DTR using libusb?

I can't see any setter RTS/DTR functions in both libusb-0.1 and libusb-1.0. Should i send smth special using usb_control_msg() ? usb device is CDC-device (not FTDI)
4ntoine
  • 19,816
  • 21
  • 96
  • 220
2
votes
2 answers

what does libusb_set_interface_alt_setting () do?

libusb provides libusb_set_interface_alt_setting() method for providing alternate setting for an interface. My question is what is the meaning of having alternate setting for a interface. if ((ret = libusb_claim_interface(handle, interface)) ==…
Sourav Singh
  • 99
  • 2
  • 6
2
votes
0 answers

Does LibUsb-win32 require every device to have its own INF file?

I'm trying to develop a USB board that can connect to the computer as a HID device and talk to a Python application I'd write. I want to use Python and I went with a HID device to be driver free. This seems like a great solution until I ran into…
user2559383
  • 106
  • 1
  • 3
1
vote
0 answers

Why does my libusb example end with runtime error

I wanted to try out libusb under Linux. I was using one of there examples: static void print_devs(libusb_device **devs) { libusb_device *dev; int i = 0, j = 0; uint8_t path[8]; while ((dev = devs[i++]) != NULL) { struct…
Darter
  • 11
  • 2
1
vote
1 answer

Cannot Open USB Device with vid-pid libusb-1.0 in C

I'm trying to learn USB Handling on Windows 10 using C and libusb-1.0. for starters I was able to initialize the library successfully using the libusb_init() function. I have verified the initialization with the return code as 0. Next I tried using…
1
vote
0 answers

C++: Migrate library with libusb-1.0 from arm32 to arm64

I've a C++ library which depends on libusb-1.0. This library is used in another program which works fine on arm32. Now I'm trying to the same with an arm64 device. In the library I modified the -L path where to find the libusb-1.0.so to account for…
erik7854
  • 150
  • 1
  • 16
1
vote
0 answers

Simulating a hotplug event with libusb (test, debugging)

How can I simulate a fake hotplug removal event with libusb? I'm writing an application that uses libusb-1.0 on Linux and MacOS to detect and respond to USB Hotplug Events (eg the user ejects a USB drive and then I run some code). I'm trying to do…
Michael Altfield
  • 2,083
  • 23
  • 39
1
vote
1 answer

Unable to understand libusb API

I am working in libusb and have minimal knowledge on C++. I am trying to understand the API of libusb and write code accordingly. But I am unable to understand how to declare and use variables as variable or pointer or double or triple pointer. The…
1
vote
0 answers

How to install libusb-1.0 on Windows Mingw

I have downloaded the binaries for libusb-1.0 and now need to add the library to my Mingw installation. I have tried adding the library to the "C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\lib" but the library is not…
Sid
  • 563
  • 6
  • 23
1
vote
2 answers

Dynamic library linking issue

I am trying to link a dynamic library in my COCOA application but I am getting the following strange error: dyld: Library not loaded: /opt/local/lib/libusb-0.1.4.dylib I want to link this library from application (Mac OS) directory as I don't want…
Farooq Zaman
  • 495
  • 1
  • 6
  • 21