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
0
votes
1 answer

Installing libusb on windows for use with Qt

I'm trying to install libusb (not libusb-win32) on windows 7. I have to link it with Qt 5.0.1. Here are the problems I'm facing In the INSTALL file in the extracted libusb folder, it tells me to cd to the current folder then…
user3079474
  • 1,653
  • 2
  • 24
  • 37
0
votes
1 answer

program to know list of attached devices to my linux laptop

I am writing a small apllication that will tell list of attached devices to my linux laptop.There is one utility that is udev that can be used for hot plugging but is their some other way where i can write simple c program where it will tell that…
Srb
  • 219
  • 3
  • 13
0
votes
0 answers

Register accessory to android phone, but when communication is established I receive “No installed aps work with this USB accessory”

I'm trying to register a custom accessory to my android phone (4.4.2, Slimkat and Cyanogen). I use a BeagleBoneBlack in Revision A5B running an Ubuntu with kernel version 3.8.13 as USB host. My accesory is recognized by the android device as the…
x'mpl'
  • 113
  • 13
0
votes
1 answer

Toggle pins of ethernet port to high / low state?

I am trying to set the ethernet port pins directly to send High / Low signals to light up four LEDs. Is there any way I can simply connect LEDs to the ethernet cable? What would be the best approach, if using ethernet is not a good option, to light…
Nj Subedi
  • 317
  • 4
  • 15
0
votes
3 answers

How to load external node module in node-webkit application

I have a problem with loading node-modules in my node-webkit application. For example module usb (https://npmjs.org/package/usb). It was successfully installed from npm (npm install usb --save-dev) and works in simple Node.js, also it was…
Alex Skakun
  • 323
  • 1
  • 4
  • 10
0
votes
1 answer

Maximize throughput using java-libusb

I’m presently developing a USB device (microcontroller based data logger) and would like to collect data from the device to a host computer for visualization. Libusbjava is used for USB data transfer. Presently, I’m able to connect to the device and…
Camilo Guevara
  • 165
  • 1
  • 12
0
votes
1 answer

installing usbmuxd under Mac OS X

I installed the latest version of libusb and now I'm trying to install usbmuxd. However, it gives this error: configure: error: Package requirements (libusb-1.0 >= 1.0.3) were not met: No package 'libusb-1.0' found Consider adjusting the…
A.G.
  • 2,037
  • 4
  • 29
  • 40
0
votes
1 answer

Locating files and dependencies I installed via Homebrew and uninstalling them properly

I'm trying to hack an Xbox Kinect and have followed the instructions located here. Through this process I installed the following files. XQuartz CMake MacPorts libtool libusb OpenNI SensorKinect NiTE I've been advised to uninstall these and…
Shane Yost
  • 231
  • 6
  • 14
0
votes
1 answer

associate usb label with usbDevice usb4java

i have to know the product id and vendor id of a specific usb device. I can retrieve all usb devices id but i don t know how i can associate them with their own label ("F:"). This is my code for finding usb devices id: List perepheriques =…
Sceik
  • 275
  • 1
  • 3
  • 13
0
votes
1 answer

Condense gcc statement

I'm using OS X Mavericks (10.9). Is there a way to condense my gcc command a bit, so I don't have to type the following verbose version of a command just to compile? gcc -L /usr/local/Cellar/libusb/1.0.9/lib -I /usr/local/include -o xout usbtest.c…
user342706
0
votes
1 answer

Device firmware update and libusbx API in Windows CE

I am trying to update the firmware on an Atmel device from a Windows CE environment. Here is snippet of my source code: uint8_t buf[127]; struct libusb_device_handle *handle=NULL; fp = fopen("\\Nandflash\\a.hex", "r+"); size_t re = fread(buf, 4, 1,…
user3068597
  • 13
  • 1
  • 5
0
votes
3 answers

How to include a dynamic library in C++

If I search for files that include file libusb.h, $grep -r "libusb.h" /usr/local/lib/ I get: Binary file /usr/local/lib//libusb-1.0.0.dylib matches Binary file /usr/local/lib//libusb-1.0.a matches Binary file /usr/local/lib//libusb-1.0.dylib…
Jackie
  • 21,969
  • 32
  • 147
  • 289
0
votes
1 answer

Undefined reference to libusb_hotplug_register_callback

I am writing a libusb program. It works fine, I can do bulk transfers, control transfers, etc. Now, I wanted to add the hotplug support. As per libusb 1.0 documentation, hot plug support is not available on Windows. So, the following snippet returns…
adnan kamili
  • 8,967
  • 7
  • 65
  • 125
0
votes
3 answers

How to pass callback function to libusb bulk transfer function in C++ Class

I am using libusb to interact with a usb device. I have created a Class and a member function will receive the input from the device and process it. I am using Asynchronous api. Now the libusb_fill_bulk_transfer() function call throws a compilation…
adnan kamili
  • 8,967
  • 7
  • 65
  • 125
0
votes
1 answer

C# Usb Device - Oral Camera Snap ButtonPress Event

I want to take snapshot when pressed oral camera snap button. I used WndProc function for monitor all event but when l pressed snap button, No event doesn't work. İ sniff usb camera usb port. when I pressed snap button, received 4byte data. Request…
EvrenD
  • 1
  • 1