Questions tagged [libusb]

libusb is a library that gives user level applications uniform access to USB devices across many different operating systems.

libusb is a library that gives user level applications uniform access to USB devices across many different operating systems. It's is an open source project licensed under the GNU Lesser General Public License.

There are two versions of the libusb API: the current libusb-1.0 API, and its legacy predecessor libusb-0.1. Please use libusb-1.0 for all new development.

861 questions
-1
votes
0 answers

how to stream your windows feed to mobile using usb cable only

So I wanna know how I can see the live camera feed of my laptop which uses a windows OS on my android phone over a usb cable specifically .I dont wanna use readymade app
-1
votes
1 answer

Error opening serial USB port for communication

I am trying to establish communication with electrical test equipment for remote control and data logging with a python script. I am unable to even get off the ground. It looks like I am unable to open the port? Any help is appreciated. I am on a…
-1
votes
1 answer

Printing usb devices gives Undefined symbols for architecture

As with my previous post: Installing linux library in C after having managed to successfully install the library for my project. I have been following some example code and cannot manage to get it to work. For example, I get multiple errors…
dollar bill
  • 258
  • 1
  • 9
-1
votes
1 answer

Libuse for communication through C232HM

I have a problem with communication with Atmega644P. I am using C232HM Cable and avrdude. Unfortunately, every attempt of communication ends with the following comment from the command prompt: avrdude: Error: no libftdi or libusb support. Install…
Szeryf
  • 1
-1
votes
1 answer

String gets transferred by libusb, but the printer wont print

I am using the tutorial at this link to send a string to get it printed. However, even though the printer says "receving data" the data does not get printed. In the code itself libusb_bulk_transfer returns the number of characters in the string that…
-1
votes
1 answer

How to achieve realtime usb storage detection with Ruby on Linux?

I am thinking ruby-dbus could be the right solution, but I cannot seem to find any examples of how to detect in realtime, whenever a storage device is connected to the Linux machine. Anyone have such an example?
Roman Gaufman
  • 1,104
  • 1
  • 13
  • 17
-1
votes
1 answer

C++ LibUSB write from one USB to another

There are two devices connected to my computer via USB. One of the devices receives a series of commands and then sends data to the computer every thirty seconds. The other device will be a SD card drive. The goal is to save the data as a file on…
-1
votes
1 answer

on windows 7/8, how to read usb device descriptor from a usb camera, and read picture stream with webcam meanwhile

I use webcam-capture(java api) to get video stream from a usb camera, it work fine. I want read a usb device descriptor(store some private information), i find out that should install WinUSB or libusbk as a driver to the usb devices. and it test…
tim
  • 21
  • 4
-1
votes
2 answers

How to avoid sprintf when joining variables

I am working on code to get USB device details into single String, and have following code, struct usb_bus *bus; struct usb_device *dev; usb_init(); usb_find_busses(); usb_find_devices(); for (bus = usb_busses; bus; bus =…
Mark
  • 11
  • 5
-1
votes
2 answers

PyUSB ValueError: No Backend available on windows 7. windows is detecting the device while pyusb is not detecting

I have tried all possible ways but not able to get out this error.Did anyone sorted out this problem? >>> import usb.core >>> import usb.util >>> dev=usb.core.find(idVendor=0x04D8) Error I'm getting is: Traceback (most recent call last): File…
dinece
  • 113
  • 1
  • 2
  • 12
-1
votes
1 answer

Reading a range of output from USB device with LibUSB

I am working on a program that communicates with a device connected through USB. When my program reads in data sent from the device (button presses, for example), it is sent as a byte array. I have key value pairs stored as a dictionary for the…
jacksonSD
  • 677
  • 2
  • 13
  • 27
-1
votes
1 answer

Installing MacPorts on MountainLion with this command: sudo port install libusb +universal

I'm trying to install MacPorts on MountainLion using this command: sudo port install libusb +universal I'm getting this error: org.macports.extract for port libusb returned: command execution failed and this: Processing of port libusb…
-1
votes
2 answers

Linking libusb to my project

I am having problem figure out how to use libusb, I put "libusb-1.0.18-rc1\libusb" in include directories (using Visua Studio), but it doesn't work. Can anyone enlighten me. Thanks a lot! error message: 1>test.obj : error LNK2019: unresolved…
Ga Zhua
  • 107
  • 3
  • 14
-1
votes
1 answer

How to detach ftdi kernel driver in android?

I've tried to detach ftdi kernel driver in android like this (libftdi-0.x code): #ifdef LIBUSB_HAS_GET_DRIVER_NP // Try to detach ftdi_sio kernel module. // Returns ENODATA if driver is not loaded. // // The return code is kept in a separate…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
-1
votes
1 answer

libusb: failed to get configuration descriptor on Android

I'm debugging opening a device on Android (permission granted in Android code and file descriptor received from connection.getFileDescriptor()) using libusb-compat and libusb-1.0, and I'm getting an error: 07-30 11:24:15.673: WARN/System.err(8934):…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
1 2 3
57
58