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

How to check if kernel driver is attached with libusb-0.1?

In libusb-1.0 one can use libusb_kernel_driver_active for this: if (libusb_kernel_driver_active(dev_handle, 0) == 1) { //find out if kernel driver is attached cout<<"Kernel Driver Active"<
4ntoine
  • 19,816
  • 21
  • 96
  • 220
1
vote
1 answer

Error in creating .so file from .o files generated using multiple .c files

I have created the .o file as follows, *gcc -I/home/vineeshvs/Dropbox/wel/workspace/Atmel -I /home/vineeshvs/Downloads/libusb-1.0.9 -I /home/vineeshvs/Downloads/libusb-1.0.9/libusb/ usb_comm.c hex2bin.c hex_read.c crc32.c -o vs.o -lusb-1.0* Then I…
vineeshvs
  • 479
  • 7
  • 32
1
vote
1 answer

Segmentation fault in libusb 1.0 program when run as user, not as sudo

I'm writing a camera capture program that uses libusb 1.0 and cImg. It connects to my Atik 314L astronomy camera and captures images to display on screen. It compiles fine when compiled as regular or superuser and runs well when executed as a root…
1
vote
0 answers

libusbdotnet inf package how to make the inf valid

I'm new to the USB programming. We have a custom hardware that we plug into the computer and send/receive data from it. I used the USB InfWizard provided by LibUsbDotNet to create the USB inf/setup packages. I noticed that I couldn't right click…
pdiddy
  • 6,217
  • 10
  • 50
  • 111
1
vote
0 answers

How can I track send progress using libusb_bulk_transfer with libusb?

Given an application using libusb calling 'libusb_bulk_transfer' how can I track progress of how much has been sent over a data buffer to the end device?
tomasz
  • 323
  • 1
  • 4
  • 13
1
vote
1 answer

libusb-1.0 - Where does the data go after a successful libusb_bulk_transfer() call?

I ran the following code sample obtained from a tutorial here: http://www.dreamincode.net/forums/topic/148707-introduction-to-using-libusb-10/ I ran it against a tablet running Android 4 attached via USB to a MacBook Pro running Mac OS X Mountain…
ytw
  • 1,335
  • 2
  • 20
  • 42
1
vote
1 answer

Strange macro declaration in C

Possible Duplicate: Why are there sometimes meaningless do/while and if/else statements in C/C++ macros? do { … } while (0) what is it good for? Exploring libusb-1.0.9 source code, I have found such line (./os/poll_windows.c:78): #define…
Andrey Atapin
  • 7,745
  • 3
  • 28
  • 34
1
vote
0 answers

libusb data transfer

Hii I have to make a code to read data from usb drive which can be pendrive and later a data acquisition card . i have written this much of code which detects all usb connection n print their info. Altough i don't know how to proceed further . I m…
0
votes
1 answer

libusb-1.0 write rights for generic usb device

I'm programming in C with Anjuta a small application with libusb library. libusb has need the write rights for some purpose. This argoment was already dealt in this topic: "Get access to USB device on Linux (libusb-1.0)?". Maybe the topic solution…
luca
  • 21
  • 1
  • 4
0
votes
0 answers

Libnfc installation on Rhel 8 for ACR122U nfc reader

this is my first time asking a technical question in a community, so please excuse my clumsiness I'm working on a Rhel 8 and I have to read nfc data with an nfc reader ACR122U, for configuring it, I need several libraries as pcsc-lite,libnfc. I'm…
0
votes
1 answer

No Backend Available - Path Directly Specified

I have troubleshooted for days with no luck, I hope someone here can help please? There's lots of discussions about this online all with roughly the same answer so I won't go to much into depth. Here are my system specs for all that I know needs…
Dmitry
  • 1
  • 1
0
votes
0 answers

Bulk USB transfer using libusb, timing out

I am trying to communicate with an ICOM R8600 radio receiver via USB, more specifically with its I/Q USB output port (vendor ID 0x0c26, product ID 0x0022). This port is documented quite well in an ICOM…
BigMick
  • 595
  • 1
  • 4
  • 7
0
votes
0 answers

libusb_blk_transfer works but libusb_fill_bulk_transfer/libusb_submit_transfer does not

I want to setup an asynchronous bulk transfer to a callback routine but I never enter the callback routine. I changed the code to a synchronous transfer and it works. Please help me understand what I'm doing wrong with the asynchronous transfer.…
0
votes
0 answers

libusb bulk transfer to an HID GadgetFS error: data padded with zeros

I have created a gadget HID device on embedded linux. -It's a high-speed device and has two endpoint In and Out, both endpoints are bulk endpoints and have 512 Bytes report length each. I have installed winusb driver and associated it to my device…
0
votes
0 answers

Differentiate between duplicate VendorID & ProductID

I have two USB to Serial-Converters plugged into my PC. Both of them use FTDI chips so their VendorID and ProductID is the same. I need to read and write to only one of them but when I use usb.core.find(VendorID, ProductID) it always finds the wrong…
mugnuff
  • 37
  • 3