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

libusb on OSX returns less devices

I have a small xcode project that is mixed with c and Swift. The C side calling libusb_get_device_list returns less number of USB devices than it should. Only few times it returns the correct count. I checked the sandbox USB option ON. Also,…
fra87kdk
  • 23
  • 4
1
vote
0 answers

Is there a way to work with PyUSB under Windows (10) without changing drivers?

I tried to run PyUSB under Windows and in a first test simply wanted to read out all my USB devices with usb.core.find(find_all = True). But that failed with backends iibusb0 and libusb1. Meanwhile I read several times that I need to change the…
1
vote
1 answer

libusb error when doing libusb_control_transfer

I'm trying to control a USB webcam device by following what is mentioned on this thread: https://sourceforge.net/p/linux-uvc/mailman/message/35920367/. That thread says: You can also send direct USB commands in C, allowing you to work around the…
gregoiregentil
  • 1,793
  • 1
  • 26
  • 56
1
vote
1 answer

Trying to communicate with DMC20xx through USB interface NET2888

I am trying to communicate with a galil motion controler DMC2070 through its USB interface. The USB interface of the DMC2070 is made with a NET2888 chip but it is not supported by windows 7 or 10. I currently load the winusb driver and try to…
user2019716
  • 587
  • 4
  • 13
1
vote
0 answers

List all connected USB devices c++ libusb/win32

Hi hope everyone is doing well! I got a task to do and I have no idea how to complete this! I need to list all USB devices currently connected and also have listeners updating if any new devices are connected or disconnected! The language is c++ and…
1
vote
0 answers

Issues porting libusb USB firmware over to Windows 10

I'm working with a custom USB firmware written in C utilizing the libusb API. The goal is to have this firmware compatible with Linux, Mac, and Windows. Thus far, testing w/a Beaglebone Black with debug probe on Ubuntu & Mac has yielded proper USB…
kapkong
  • 117
  • 1
  • 7
1
vote
0 answers

Is device.is_kernel_driver_active() not working in libusb-1.0.22.7z?

Why am I getting the "Operation not supported or unimplemented on this platform" message? I am running windows 10 64 bit and have installed python 3.7 64 bit, pyusb 1.0.2 and libusb-1.0.22.7z. For libusb-1.0.22.7z I unzipped it and copied the…
Tom Locke
  • 41
  • 7
1
vote
1 answer

Undefined reference usb_init()

I am working on customized USB driver for keyboard using libusb. I wrote a simple program and tried to compile that program i received warning and output file is not generated. This is my program. #include #include…
PSatishKR
  • 40
  • 7
1
vote
1 answer

libusb_control_transfer() never returns

I am communicating with a Cypress FX3 kit device. I send the information using: unsigned int file_size; unsigned short wLength = 16; unsigned int timeout = 1000; unsigned short wValue = 0, wIndex = 1; /* Here I get my file_size value */ file_size =…
J Agustin Barrachina
  • 3,501
  • 1
  • 32
  • 52
1
vote
1 answer

libusb connects to device fine, interrupt transfer results in LIBUSB_ERROR_IO

I have created a USB device based on STM32 which works perfectly with Python during prototyping. I am currently attempting to port it to C++/Qt for production. I have integrated libusb with Qt and can successfully open and close the device and read…
Erik Johnson
  • 858
  • 1
  • 7
  • 29
1
vote
1 answer

undefined reference to libusb using cyusb

I have downloaded linux software of cypress SDK EZ-USB FX3 Software Development Kit. Inside Cypress/cyusb_linux_1.0.5/src there's many .cpp file that I compile with make and that work perfectly. I wanted to do my own cpp project so I copy the code…
J Agustin Barrachina
  • 3,501
  • 1
  • 32
  • 52
1
vote
1 answer

Casting problems with passing a struct by reference instead of a pointer to a buffer

I get casting errors when passing a struct by reference. Passing a pointer to a buffer works fine. The function getstuff() is actually libusb_claim_interface() with irrelevant parts removed. I am trying to get a chunk of data back from a USB device…
Frotz
  • 535
  • 4
  • 21
1
vote
3 answers

qemu-system-aarch64: undefined symbol: libusb_free_streams

I'm having problems using qemu on Ubuntu hoan@hoan-pfiev09:~$ qemu-system-aarch64 qemu-system-aarch64: symbol lookup error: qemu-system-aarch64: undefined symbol: libusb_free_streams hoan@hoan-pfiev09:~$ (Actually the command I want to run:…
1
vote
0 answers

Why does libusb Library block in the interface libusb_interrupt_transfer?

I could send the data to a usb device successfully, but the response from the devices fails every time. I'm sure the endpoint is correct due to the successful communications with the same devices by using the hid api from windows. Here is my…
ZacharyLiu
  • 31
  • 9
1
vote
2 answers

C++ send data with libusb (working with RS 232)

I'm sending 199 151 2 3 3 7 63 173 174 block to serial port and got success. But when i do it with libusb nothing happens. No error or nothing happens. here how i send data to serial (RS 232): unsigned char data[9]; //filling…
Marijke Buurlage
  • 331
  • 5
  • 21