Questions tagged [libusb-win32]

libusb-win32 is a Windows port of the (now deprecated) USB library libusb-0.1

libusb-win32 is a port of the USB library libusb-0.1 (https://sourceforge.net/projects/libusb/) to 32/64bit Windows. The library allows user space applications to access many USB device on Windows. (https://sourceforge.net/projects/libusb-win32/)

There are two versions of the libusb API: the current libusb-1.0 API, and its legacy predecessor libusb-0.1. (http://www.libusb.org/#Gettingstarted)

18 questions
4
votes
2 answers

Sending a message to a USB device using usb4java - Input/Output Error

I am trying to send a message to my USB device (Silicon Labs USB-UART Bridge) using this code: public void sendMessage(UsbInterface iface, String message, int i){ UsbPipe pipe = null; try { iface.claim(new…
pilgrimm
  • 43
  • 1
  • 5
3
votes
0 answers

libusb_config_descriptor return negative value on windows

I'm trying to get a list of all USB devices on a Windows System using VC++ and Windows Backend of LibUSB. But it seems the libusb_get_config_descriptor(dev, 0, &config); returns a negative value. static void print_devs(libusb_device **devs) { …
Jishnu U Nair
  • 512
  • 5
  • 12
  • 29
2
votes
2 answers

USB device prototype timeouts with WinUSB or HID drivers, works fine with libusb

I'm trying to create a prototype for an USB (1.1) HID device using an Arudino board and a CH376 module. I have managed to write the Arduino code that sets the CH376 in device mode and handles all the USB transactions. As long as I declare the device…
Konamiman
  • 49,681
  • 17
  • 108
  • 138
2
votes
2 answers

Install libusb-win32 driver on Windows 8 without a digital certificate

I am trying to write an installer for an application that includes the installation of libusb-win32 on Windows 8. I have encountered the fact that Windows 8 requires driver packages to have a CAT file but I don't have a digital Certificate. The…
Cristina
  • 159
  • 3
  • 16
1
vote
1 answer

Python code runs in interactive prompt but not as script

I am trying to interface with an Ocean optics spectrometer using seabreeze (seabreeze) and pyseabreeze (pyseabreeze). If I enter python from the command prompt (cmd) in windows and enter the following code line by line, it works. However, if I put…
Gelat Cact
  • 11
  • 2
1
vote
0 answers

how to use libusb--win32 to read my usbcamera?I need some help about the libusb-win32

I want to use the isochronous transfer to read from my usb camera,but when i prepare to read,some problem happened. i can not read the data from my device. here is my reading-data(written in c++ by Qt) code: { void* async_context = NULL; …
1
vote
0 answers

CC2538 - sending/receiving bulk data using libusb-win32

In short what my general aim is: I want to send bulk data from my CC2538EM via USB to the PC. And there the data is ought to be read using a C# application. As I could not install TI's CDC Driver of the "CC2538 firmware foundation" (link), I decided…
alogheo
  • 11
  • 4
1
vote
0 answers

Windows/Linux/Mac: Detecting Android (as an accessory) when connected

I want to be able to detect when an Android device is connected to the computer. As "Android" is a collection of devices with varying vendor/product IDs, how are we able to identify if a product is an Android device upon USB connection? To make…
twig
  • 4,034
  • 5
  • 37
  • 47
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
0
votes
0 answers

Error IoTimedOut when reading data from the device

I used libUsbDotNet library (C#) to read data from USB device. The program sees the device and turns to it, but gives a response IoTimedOut. The program code is shown below. public static UsbDeviceFinder MyUsbFinder = new UsbDeviceFinder(0x10C4,…
0
votes
1 answer

Libusb-win32,DDK,"make.cmd all" ERROR: "Invalid WinDDK Directory C:\WinDDK\7600.16385.1\"

Thanks a lot for my question, When i compiled libusb-win32,i built ddk envirment,i met "Invalid WinDDK Directory C:\WinDDK\7600.16385.1\" but this document existed, enter image description here Help
shiver
  • 1
0
votes
1 answer

Error getting number of devices using Libusb-win32-1.2.6.0

I am trying to run a simple code written with libusb-win32 on VS2010 to get information about the USB devices connected. I cannot get it run sucessfully. #include #include #include "lusb0_usb.h" int verbose = 1; int…
anna.sarp
  • 187
  • 2
  • 14
0
votes
0 answers

Can't run libusb on windows QT

Development evnironment: Qt Creator 4.0.2 Основан на Qt 5.7.0 (MSVC 2013, 32 бита) Operating system: WIndows 7 x64 Error: :-1: ошибка: No rule to make target 'libusb-win32-bin-1.2.6.0/lib/gcc/libusb.a', needed by 'debug\TestUsb.exe'. Stop. I want…
murzagurskiy
  • 1,273
  • 1
  • 20
  • 44
0
votes
2 answers

pyusb - [Error 5] on Linux, but not Windows

I'm trying to communicate with an AD9913 evaluation board (Analog Devices), which has a Cypress FX-2 USB controller. I wrote a fully functional Python library which works flawlessly on Windows 7 (using a driver generated through…
IonicSolutions
  • 2,559
  • 1
  • 18
  • 31
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
1
2