libusb

java: No Endpoint found, but python works

给你一囗甜甜゛ 提交于 2019-12-11 18:36:57
问题 I want to try out the java libusb from http://libusbjava.sourceforge.net and cant even connect to my device... I had this python code before: def discover(): my_device = None for bus in usb.busses(): for dev in bus.devices: if dev.idVendor == 0x16c0 and dev.idProduct == 0x05dc: handle = dev.open() which worked really great. now i wanted to build the same in java and made this: Device dev = USB.getDevice((short) 0x16c0, (short) 0x05dc); try { dev.open(1, 0, -1); } catch (USBException e) { }

Install XFSTK in ubuntu 16.04

我的未来我决定 提交于 2019-12-11 17:43:33
问题 I am trying to install XFSTK in Ubuntu 16.04(64 bit). I followed XFSTK to install this package. While building package, it throws This Error. INPUT : libusb is already installed in /usr/lib/x86_64-linux-gnu/libusb.a. I created symlink in /usr/lib/, It threw Linking error (ld). So how can i install xfstk on 64 bit Ubuntu 16.04 ? 回答1: The prebuilt images for xfstk worked, And for libboost_program_options.so.1.62.0 lib, I had to install libboost-all-dev package. And finally u-boot console came

How can we get data from iOS device using USB commands when its connected with Mac?

北战南征 提交于 2019-12-11 09:56:29
问题 When any iOS Device connected with Mac, I want device's all data in Custom developed desktop app (not Itunes), I want data like installed app list, all settings list, all installed provisioning profile list, all media content (iBooks, News, Videos, Music etc.), running application list, current screen of applications with the help of USB commands. In other words, I want all data (the data which we can take from iTunes) in my desktop app with the help of USB Commands. Is there any way to send

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

时光怂恿深爱的人放手 提交于 2019-12-11 04:27:00
问题 I am trying to build libusb using the NDK. Here is my Android.mk and Application.mk I have checked this thread Android NDK: No rule to make target but it didn't work for me. Android.mk include $(CLEAR_VARS) LOCAL_MODULE := libusb LOCAL_SRC_FILES := libusb/core.c libusb/descriptor.c libusb/io.c libusb/sync.c libusb/os/linux_usbfs.c LOCAL_LDLIBS := -llog include $(BUILD_SHARED_LIBRARY) Application.mk APP_ABI:= all APP_LDFLAGS:= -llog APP_STL:= stlport_shared APP_CPP_FEATURES:= exceptions APP

I cannot mimic sniffed urb interruption using libusb for Ruby

谁说胖子不能爱 提交于 2019-12-11 04:25:26
问题 Sniffed URB_INTERRUPTions I sniffed communication between some application (SoundLab) and device (sonometer with usb). I found a packet responsible for returning current state: USB URB [Source: host] [Destination: 1.1.2] USBPcap pseudoheader length: 27 IRP ID: 0xffff858d126f4a60 IRP USBD_STATUS: USBD_STATUS_SUCCESS (0x00000000) URB Function: URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER (0x0009) IRP information: 0x00, Direction: FDO -> PDO 0000 000. = Reserved: 0x00 .... ...0 = Direction: FDO ->

Interfacing a libUSB device powered by V-USB library for AVR

醉酒当歌 提交于 2019-12-11 02:13:12
问题 I've wrote a simple program (based on the following tutorial) that send data from an AVR chip (Attiny 2313) to the computer via a USB port, since this device doesn't have a built-in USB port, I've used the V-USB library to emulate such a port via software. The device works as expected, and I had no problem to interface the it with C using the libusb library, However I want to access it with Java, so I looked up for a java implementation of libusb.The only library that I've managed to set up,

Python libusb pyusb “mach-o, but wrong architecture”

老子叫甜甜 提交于 2019-12-11 01:12:04
问题 I am having some trouble with the pyusb module. I have narrowed down the problem to a single line, and have created a small example script to replicate the error. #!/usr/bin/env python """ This module was created to isolate the problem in the pyusb package. Operating system: Mac OS 10.6.3 Python Version: 2.6.4 libusb 1.0.8 has been successfully installed using: sudo port install libusb I have also tried modifying /opt/local/etc/macports/macports.conf to force the i386 architecture instead of

How can I prevent linux from initializing a USB HID device

有些话、适合烂在心里 提交于 2019-12-10 23:34:26
问题 I have a USB HID device that can work in two different modes. The selection of modes is based on the sequence of USB enumeration/initialization packets sent to it. I am using a Raspberry Pi 3 running Raspbian, however I also see the same issue if I compile my code for my desktop Ubuntu distro. The issue I have is that linux is recognizing the USB device as a HID device and then sending the sequence of commands that it deems necessary to start the device, and this works correctly and starts

I'm having trouble finding example code for libftdi's mpsse (SPI) mode

a 夏天 提交于 2019-12-10 17:06:32
问题 This is not a homework problem, though it is a work problem. Where months ago, I would have just written up a specification and the boss would have contracted it out, money's tight. So I'm trying to do this myself. I'm a weak C coder, and I'm lucky if gcc spits out something that will run without segfaulting, or sometimes anything at all. Still, I manage. Libftdi is built, I've carefuly perused both its example executables/code, and the documentation. But I'm still lost. Does anyone know of a

libusb semi-working, but libusb_device_descriptor undeclared?

大憨熊 提交于 2019-12-10 16:04:24
问题 I'm trying a C sample with libusb and things were working fine up to the point where I'm trying to do the following: libusb_device_descriptor descriptor; int result = libusb_get_device_descriptor(usb_device, &descriptor); The compiler is telling me, that some elements defined in the same libusb.h header, as other libusb structs I am using, is not declared. WTH? Here's the code in full: #include <stdio.h> #include <stdlib.h> #include <libusb.h> void printdev(libusb_device *usb_device); /** *