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
1
vote
1 answer

qt5 and usblib in win7 (mingw32) linker produces undefined references to `_imp__SetupDiGetClassDevsA@16'

I'm using qt5.5 in linux and win7 (mingw32) ... in linux it works (i had to build new usblibs for compatibility reasons) in windows using this library /usr/local/.../code-qt/libusb-1.0.19-rc1-win/MinGW32/static/ i get the following errors and a few…
1
vote
0 answers

Libusb Error:failed to set Configuration

When I try to set a configuration by libusb_set_configuration after performing libusb_set_auto_detach_kernel_driver I am getting the following error below. Can anyone tell me how I will be able to rectify the issue below? Error:- Kernel driver…
sack92
  • 55
  • 8
1
vote
0 answers

How can I properly read data from bar code scanner?

I am working on project which aims at saving articles information on database. To do so, I implement a dialog box (using wxWidgets c++) that allows to enter information about an article. When the user scan the bar code of a given article, my app…
Wabbina
  • 15
  • 3
1
vote
1 answer

Device Handling in usb4java

I'm using libusb for communicating with usb device in java. My operating system is linux. But I have problem about open device. DeviceHandle handle = LibUsb.openDeviceWithVidPid(null, VENDOR_ID, PRODUCT_ID_1); if(handle == null){ …
bzkrtmurat
  • 189
  • 1
  • 3
  • 15
1
vote
1 answer

How to compile libusb as shared library?

I am trying to build libusb as shared library as follows. Following are two steps. 1. Configure 2. Make. I pass "--enable-shared" to configure script assuming it will generate the shared .so file Configure ./configure…
Milind Dumbare
  • 3,104
  • 2
  • 19
  • 32
1
vote
2 answers

What is the correct place to list and examine ports in erl_driver

In the tutorial for erl_driver there seems to be no indication to where does the first ErlDrvPort object comes from. Say I want to wrap libusb-1.0 to use it from erlang. There is no place in the API described by ErlDrvEntry for any index methods.…
lonelyelk
  • 598
  • 9
  • 25
1
vote
0 answers

Libusb Display New Device

firstly I must say that I'm newbie at libusb. I have a usb device and I'm writing code for this device in linux. In my code I'm displaying devices' vendor and product id. After that I'm sending datas from host to device. As expected, product id is…
bzkrtmurat
  • 189
  • 1
  • 3
  • 15
1
vote
1 answer

Linking libusb-1.0 library in Nsight Eclipse?

I'm trying to use libusb-1.0 library with Nsight Eclipse. I followed the following steps to do it: Downloaded the libusb-1.0 tarball and installed in the host (Ubuntu). As per instructions given at the end of libusb installation: Libraries have…
Red Devil
  • 19
  • 3
1
vote
1 answer

libusb doesn't enumerate a device if cleanup failed in previous program execution. Can I prevent this, or recover from the bad state in software?

I have code that opens a libusb device, does some asynchronous transfers, and then quits. Sometimes the cleanup code at the end works out and I can re-run the program without problems, but other times libusb_cancel_transfer returns LIBUSB_ERROR_PIPE…
01d55
  • 1,872
  • 13
  • 22
1
vote
1 answer

After installing MPLAB X qemu started reporting undefined symbol: libusb_get_device_speed and unknown OS type hvm

After installing MPLAB X some programs started reporting undefined symbol: libusb_get_device_speed. Qemu example: 2014-06-02 12:41:50.059+0000: 1963: error : virCommandWait:2348 : internal error: Child process (LC_ALL=C…
goozez
  • 614
  • 12
  • 21
1
vote
1 answer

Reading continuously incoming data (usb4java)

I have spent a considerable amount of time trying to figure out the best way of reading continuously a large amount of data using the Low-level functions of usb4java (Libusb). The amount of data I need to read is 640kbyte/s in a Full Speed device,…
Camilo Guevara
  • 165
  • 1
  • 12
1
vote
1 answer

Can libusb be ported onto a microcontroller?

I am looking forward to implement some file operations on a USB device which will be plugged into a microcontroller-based bench-top device. The device does not have any OS/RTOS and only runs on a firmware code that I plan to develop. The firmware…
user2045557
1
vote
1 answer

libusb 1.0 messes up OS X Mavericks (10.9) USB drivers

A simple run of ./listdevs from the libusb examples directory (without any devices connected) results in kernel messages like: kernel[0]: [0xffffff8023f73c00](1)/(5) Device not responding kernel[0]: com_apple_driver_AppleUSBCardReaderUMC::…
David Fokkema
  • 320
  • 2
  • 9
1
vote
1 answer

libusb - Segmentation fault: 11

I've got a very basic, bare minimum libusb example going, which compiles, but the output produced by the following application: #include #include #include int main(void) { puts("Looking for USB…
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
1
vote
0 answers

Modifying a Kernel Space Function in openSUSE-11.3

I have been working on a K-space USB driver for learning purposes. As far as I have studied the Kernel Space Source files that are included during the time when the USB driver is performing its routines, I have found announce_devices() is the…
user2045557