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

How can I use libusb to send/receive data from ubuntu to Android?

The goal I'm looking to achieve is to send/receive data to/from an Android device from a Linux server. I feel like I've tried all the examples I could find on the Internet as well as reading the libusb APIs, which don't talk at my level of a total…
0
votes
0 answers

Undefined references for libusb library

I am trying to use GoogleTest to test a simple function, but as I run make in my build folder, the compiler throws Undefined Reference error messages at me for libusb library. I need to add libusb library in GTEST_SRCS_ part of the makefile but I…
0
votes
1 answer

Bulk transfer sending too much (multiple of usb packet?)

Problem I am trying to solve I am sending data over usb with libusb_bulk_transfer, with something like this: int sent = 0; int bulk_result = libusb_bulk_transfer(handle, endpoint_out->bEndpointAddress, buffer, …
JonasVautherin
  • 7,297
  • 6
  • 49
  • 95
0
votes
0 answers

Why am I getting an error when building my project that uses my static library. And my static library is using libusb-1.0

Please help me. I can't use my static library in my DeviceTest project. Below is my static libDevice. In it I use lusb-1.0. My libDevice building is successful. # =============================== Device.pro =============================== QT -=…
0
votes
1 answer

udev rule doesn't not work, someone claim iface prior to me

My device is :16c0:05dc ''''> $ lsusb Bus 002 Device 005: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor Bus 002 Device 007: ID 1cbe:00fd Luminary Micro Inc. In-Circuit Debug Interface Bus 002 Device 006: ID 16c0:05dc Van …
0
votes
1 answer

Linker Option with 1.0 in name Windows

I am trying to create a program using the libusb-1.0 library After I installed the library when I try to compile like so gcc -g main.c -o test.exe -lusb-1.0 i get the following error gcc.exe: error: .0: No such file or directory what do I have to…
Xyrho
  • 21
  • 3
0
votes
1 answer

LIBUSB Bulk Transfer, First URB failed, easy peasy

I'm trying to update a program from USB 0.1.4 to LIBUSB, So far everything seems to be working except: //endp = 0x01 or 0x81 both return the same error //static unsigned char samples[8*400]; //size=(samplelength*numberofDevices)<<1; …
0
votes
1 answer

Why isn't my barcode scanner listed as a /dev/ device?

I'm working on a project that will read a QR code. I purchased a small USB barcode QR code scanner and I connected it to my system and I can scan a QR code and it will send it to my application I'm writing, but I have to know the /dev/ device/port…
SouthernYankee65
  • 1,129
  • 10
  • 22
0
votes
0 answers

How to statically link libusb (1.0) into C++ executable with CMake?

Using CLion and CMake (3.12.2) with MinGW (W64 6.0), I am trying to compile a simple 'Stub' executable using some libusb example code. I would like for the executable to be statically linked, and not require the .dll to be placed alongside it upon…
FiveMike
  • 1
  • 1
0
votes
1 answer

What is causing libusb_exit to throw memory leak warning?

I'm working on a basic libusb Visual C++ application in vs2013, which has a Class that calls libusb_get_device_list(ctx, devices) 3 times; once in the constructor, and twice in two functions for printing devices and device descriptions. Each time I…
Frederik Petersen
  • 1,025
  • 3
  • 16
  • 30
0
votes
1 answer

In QT how can I detect when a USB port switches from serial mode to DFU when connected to an STM32

I have a Qt5.12.4 MinGw64 app where I want to catch a USB event. In Windows 10 the MS driver for STM/USB emits error messages and I can use that as a trigger. Inelegant but it works, until I try to run it in a Win7-8.1 app where the driver is a…
SailorRick
  • 41
  • 5
0
votes
1 answer

Sending a interrupt transfer using Libusb 1.0 returns an LIBUSB_ERROR_IO but not when receiving

I am setting up a testing framework (Google Test Framework) for some custom firmware. I am using USB with the Libusb 1.0 library to receive outputs from the firmware, but I also need to simulate an input to the firmware. I am able to receive the…
EYoung
  • 1
  • 1
0
votes
1 answer

how libusb can understand start reading?

On host side, how to understand the device want to send data using libusb-1.0? I mean ways except polling or setting time interval. Is there any way to get it based on signals, interrupt, etc?
Mojtaba Ahmadi
  • 1,044
  • 19
  • 38
0
votes
1 answer

Dll not found error while using monolibusb

I am trying to do a bulk transfer using monolibusb, but whenever I try to run the code, I get the following error. System.DllNotFoundException: 'libusb-1.0.dll not found. If this is a 64bit operating system, ensure that the 64bit version of…
Hassnain Ali
  • 222
  • 3
  • 12
0
votes
1 answer

Qt Creator linker error: LNK1104: cannot open fil 'usb-1.0.lib' - Windows

I'm trying to build a Qt project on QtCreator on Windows (already works on Ubuntu). I would like to build it on Debug mode and then on Release mode as I wish to deploy my app to Windows. When 1st compiling the project, I had the following error…
Juliette Marquis
  • 159
  • 1
  • 1
  • 13