libusb

PyUSB: reading from a USB device

眉间皱痕 提交于 2020-03-04 05:42:38
问题 This is an updated and shortened question. Communicating with a USB-device should be easy via PyUSB. So, I'm trying to read from a USB-device (oscilloscope) using PyUSB under Win10. Apparently, the USB-driver (libusb-win32 v1.2.6.0) is installed correctly since the device is found and I get some response from print(dev) (see below). From this I can see that the output endpoint address is 0x3 and the input endpoint address is 0x81 According to the Oscilloscope manual, I'm supposed to send

find_libusb_device(). libusb device(s) are all unavalable.

别等时光非礼了梦想. 提交于 2020-02-28 07:16:02
问题: Wmware ubuntu 18.04 Azure Kinect DK 摄像头驱动,error : [2020-02-26 22:39:38.407] [critical] [t=2928] /__w/1/s/extern/Azure-Kinect-Sensor-SDK/src/usbcommand/usbcommand.c (360): find_libusb_device(). libusb device(s) are all unavalable. Is the device being used by another application? 解决方式: 创建99-k4a.rules: # Bus 002 Device 116: ID 045e:097a Microsoft Corp. # Bus 001 Device 015: ID 045e:097b Microsoft Corp. # Bus 002 Device 118: ID 045e:097c Microsoft Corp. # Bus 002 Device 117: ID 045e:097d Microsoft Corp. # Bus 001 Device 016: ID 045e:097e Microsoft Corp. BUS!="usb", ACTION!="add", SUBSYSTEM!==

CMake can't find “FindLibUSB.cmake” in CMAKE_MODULE_PATH despite it being there

风流意气都作罢 提交于 2020-01-24 20:15:49
问题 In my CMakelists.txt file, I specify: set (CMAKE_MODULE_PATH “${<ProjectName>_SOURCE_DIR}/cmake_modules”) And in my project root directory, there's a subdirectory called cmake_modules with a file called FindLibUSB.cmake , but when I run cmake , I get the following error: By not providing "FindLibUSB.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "LibUSB", but CMake did not find one. Why can't it find the file? It seems to me it's

LibUsbDotNet No devices found when calling UsbDevice.AllDevices

混江龙づ霸主 提交于 2020-01-21 17:24:06
问题 I am executing the example code of LibUsbDotNet which will return me the information of all connected usb devices. You can find this code below. using System; using LibUsbDotNet; using LibUsbDotNet.Info; using LibUsbDotNet.Main; using System.Collections.ObjectModel; namespace Examples { internal class ShowInfo { public static UsbDevice MyUsbDevice; public static void Main(string[] args) { // Dump all devices and descriptor information to console output. UsbRegDeviceList allDevices = UsbDevice

LibUsbDotNet No devices found when calling UsbDevice.AllDevices

℡╲_俬逩灬. 提交于 2020-01-21 17:23:47
问题 I am executing the example code of LibUsbDotNet which will return me the information of all connected usb devices. You can find this code below. using System; using LibUsbDotNet; using LibUsbDotNet.Info; using LibUsbDotNet.Main; using System.Collections.ObjectModel; namespace Examples { internal class ShowInfo { public static UsbDevice MyUsbDevice; public static void Main(string[] args) { // Dump all devices and descriptor information to console output. UsbRegDeviceList allDevices = UsbDevice

Trouble linking libusb using Cmake

早过忘川 提交于 2020-01-04 05:20:30
问题 I've been trying to 'hack' 2 programs together and one of them (openTLD) uses cmake. I've been reading up and working on this issue for a bit now and can't seem to sort it. When I 'make' where there is no instantiation of the cpp object it compiles fine, when I have an object (that relies on libusb) that I hacked in I'm getting linking (I think) errors. My CMakeLists (added bits delimeted by ** or CAPS) #Set minimum version requered cmake_minimum_required(VERSION 2.4.6) #just to avoid the

Acquiring Images from a USB mouse (Single Chip, ADNS-2700) via pyusb

半城伤御伤魂 提交于 2020-01-01 16:55:53
问题 I would like to extract the actual images captured by a single chip optical mouse sensor, specifically the ADNS-2700. As apposed to the various other tutorials on the internet that use a micro controller to talk to the SPI interface of the imaging chip (like this), the chip I am trying to work with has a USB interface integrated. ADNS-2700 Datasheet System: Windows 7, Python2.7, PyUSB 1.0 I have successfully extracted the button presses, velocity, and scroll wheel following this example:

Determine USB device file Path

这一生的挚爱 提交于 2020-01-01 04:37:07
问题 How can i get USB device file path correctly in Linux. I used command: find / -iname "usb" and got the result as below: /dev/bus/usb /sys/bus/usb /sys/bus/usb/drivers/usb /sys/kernel/debug/usb Under /dev/bus/usb i see: 001 002 003 004 005 006 But I think they aren't files as i need. Under /sys/bus/usb/devices/: sh-3.2# ls /sys/bus/usb/devices/ 1-0:1.0 1-1:1.0 3-0:1.0 5-0:1.0 usb1 usb3 usb5 1-1 2-0:1.0 4-0:1.0 6-0:1.0 usb2 usb4 usb6 And Under /sys/bus/scsi/devices/ when i pluged an USB i see:

Ruby libusb: Stall error

核能气质少年 提交于 2019-12-25 07:16:36
问题 So I've been playing with the controllers for the PS2 game, Buzz. I've successfully used libusb to poll and read the buttons, and all is merry and bright. The trouble is, I'd love to use the in-built lights to signal the folks who're using them (specifically to show them who has buzzed first). I know there's lights, I know that the PS2 was able to turn them on and off at will, and I know that someone has managed it with python. So I set out to implement their code with libusb in Ruby. I've

How are USB peripherals' bIntervals enforced?

只谈情不闲聊 提交于 2019-12-25 02:44:33
问题 I have a FullSpeed USB Device that sends a Report Descriptor, whose relevant Endpoint Descriptor declares a bInterval of 8, meaning 8ms. The following report extract is obtained from a USB Descriptor Dumper when the device's driver is HidUsb: Interface Descriptor: // +several attributes ------------------------------ 0x04 bDescriptorType 0x03 bInterfaceClass (Human Interface Device Class) 0x00 bInterfaceSubClass 0x00 bInterfaceProtocol 0x00 iInterface HID Descriptor: // +bLength, bCountryCode