How to solve munmap_chunk(): invalid pointer error in C++

I have an application in C++ and OpenCV which tries to use the classification model realized with SVMLight in order to add the weight values which can be use for HOG Calssificator under...

PC to PC USB communication

How can I communicate between two PC's via USB? I want a program to send numbers trough the USB port to another PC on which another program would show these numbers. I have the feeling that this...

pyUSB Not Discovering Devices

So, I've installed libusb and pyUSB on my OS X Lion (10.7.3) machine, and I have the following script running: import usb import time if __name__ == "__main__": while True: busses =...

Mounting a Samsung Galaxy Tab 2 7.0 with MTP on Linux

I'm trying to get a Samsung Galaxy Tab2 7.0" connected to a Debian Wheezy box over MTP. The askubuntu page at https://askubuntu.com/questions/186681/getting-mtp-to-work-with-a-galaxy-tab-2-7-0...

Using USBASP programmer for SPI communication

I'm trying to send some data from PC to ATmega328P chip through USBASP programmer. It is able to transmit up to 4 bytes over SPI. These 4 bytes сan be set in USB Setup Packet (2 bytes for wValue...

Communicate with USB device in C# using LibUsbDotNet

Working under Windows7 Ultimate 32-bit and installed linusb-win32-dlevel-filter 1.2.6.0. I tried showinfo example of libusb dotnet and got following result,[Please see the result...

How to install pyusb on ubuntu?

I tried this link, but got the following message on shell: sudo apt-get install python-pip : [email protected]:~$ sudo pip install --upgrade pyusb Downloading/unpacking pyusb Could not find a version...

libusb cannot open USB device, permission isse. NetBeans/Ubuntu

I'm writing a C/C++ application in NetBeans based on libusb-1.0 on Ubuntu 12.04. I can get basic information from the USB device (for example, the interface description) but I am not able to open...

How do I link a simple example project to libusb?

I'm trying to make use of LibUSB to interact with a small programmable LED device I've built. I have working code on Windows using the libusb-win32 port but I'm having trouble porting this to the...

Is there a Qt solution for detecting USB events (insertion and removal)?

As some other people already asked here some years ago, I want to be able to detect in a Qt application when a pendrive/datatraveler is plugged and when it is unplugged in my system (both in Linux...

No such file or directory "limits.h" when installing Pillow on Alpine Linux

I'm running alpine-linux on a Raspberry Pi 2. I'm trying to install Pillow via this command: pip install pillow This is the output from the command: Installing collected packages:...

hidapi Windows 8.1 hid_write fail

hw : lpc1549 eval board with usb hid test firmware ... endpoint size 64 bytes endpoint intr reads out-report buf and displays len and data in hex ... copies out_report into in_report buf and...

How can I get Linux device with FTDI D2XX driver API

I am using FTDI D2XX driver API to communicate with a FTDI device. It gives me some information about the device like locid, serialnumber, description but it is not enough. How can I get the...

Pyusb on windows 8.1 - no backend available - how to install libusb?

Working on pyinstaller 3.1, python 2.7.9, and tkinter. Try to use pyusb instead of pyserial, but no backend available. Looking into...

Is usb supported on Bash on Ubuntu on Windows 10?

I have no files or paths about usb on dev/ When I plug in a flash disk, nothing appears on dev/ or mnt/ or media/ about it. sudo lsusb returns: unable to initialize libusb: -99 What...

deallocating direct ByteBuffer when used in LibUSB

LibUSB (USB4Java) requires use of Direct ByteBuffers for sending/receiving bulk transfers. The problem is that according to the documentation for java.nio.ByteBuffer Direct ByteBuffer is out of...

Raspberry pi, libarmmem.so (cannot open shared object file) error

I'm using my Pi as a file server, recently when I logged in I saw a error message stating that libarmmem.so (cannot open shared object file), and despite some suggestions to run apt-get update +...

Android NDK : make: *** No rule to make target. Stop

I am trying to build libusb using the NDK. Here is my Android.mk and Application.mk I have checked this thread https://stackoverflow.com/questions/6243047/android-ndk-no-rule-to-make-target but it...

Android N libusb_init returns -1 failed to initialize libusb

I am using libusb library in my android application. I build this library and added *.so files for all architecture. I am calling libusb_init to initialize it but it returns -1 always. I am not...

FTDI kernel driver after using libftdi

I am using a custom board with an FTDI chip (FT4232) to get four serials communication over USB on a Linux system (Fedora 24). When the board is plugged, it is working great, the communication...

C/C++ TensorFlow hello_tf.c:(.text+0xa): undefined reference to `TF_Version'

Hello I am trying to use TensorFlow for C/C++. Currently I am trying to get the basic program they offer in their installation instructions to...

Can't Find Device with PyUSB

I found my device's VID and PID in the properties for the device on windows, which are 256 for the VID and 006 for the PID. I can't seem to get pyusb to find it. From what I've seen, most people...

How do I get Qemu USB Passthrough to work for iPad / iPhone?

I'm trying to setup a Mac OS virtual machine to do iPad development. The host system is Ubuntu 18.04, and I'm using the stock qemu packages from the Ubuntu repo. I've got a Mojave VM up and...

How to set camera to auto-exposure with OpenCV 3.4.2?

I am working with a PS-Eye-3 camera, libusb, PSEye driver, OpenCV 3.4.2 and Visual Studio 2015 / C++ on Windows 10. I can set the exposure of the camera to any value by using this...

docker --device works with absolute device path, fails with symlink

I have a USB GPIO device with some 3rd party drivers that I want to interface with in a container. Compiles, works fine on host. Also compiles, works fine in the container if I pass...

How could I get USB serial number using libusb in C code?

I'm trying to get the usb device serial number from a C code application in a embedded Linux platform (petalinux) using libusb. I've seen a few similar questions which helped me to get some...

Send output to a device to change channel in Logitech mouse/keyboard

I have Logitech mouse and keyboard supporting switching between multiple devices. The feature I am missing is to simultaneously switch mouse AND keboard by running a command or a shortcut. I would...

How to run Android Studio emulator on M1 Mac?

I'm having a devil of a time using the Android Emulator on my new M1 Mac. My Android project compiles fine, and I can run it on a hardware device. But I'm not able to run it on the Emulator. I...

USB device prototype timeouts with WinUSB or HID drivers, works fine with libusb

I'm trying to create a prototype for an USB (1.1) HID device using an Arudino board and a CH376 module. I have managed to write the Arduino code that sets the CH376 in device mode and handles all...

Use libusb in a MacOS GUI application

I'm trying to use libusb in a macOS application with GUI. But I always fail with "No such module 'CLibUSB'". I could use CLibUSB in a command line application, but cannot get it to work with a...