usb

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

南笙酒味 提交于 2020-04-11 06:23:08
问题 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 running using these instructions, and in the script to boot the VM, I've added this line: -device usb-host,vendorid=0x05ac,productid=0x12ab \ The devices in question are an iPad Air 2, and an iPad Mini 4, which seem to share the same product ids, according to lsusb. Here's the issue: when I boot into my

OpenCV VideoCapture device index / device number

折月煮酒 提交于 2020-03-23 08:24:12
问题 I have a python environment (on Windows 10) that uses OpenCV VideoCapture class to connect to multiple usb cameras. As far as I know, there is no way to identify a specific camera in OpenCV other than the device parameter in the VideoCapture class constructor / open method. The problem is that the device parameter changes depending on how many cameras are actually connected and to which usb ports. I want to be able to identify a specific camera and find its "device index" or "camera index" no

Android Usb Host Problem with Samsung Galaxy 10.1 Tablet

孤人 提交于 2020-03-11 13:14:43
问题 I am attempting to leverage the USB host capability on the Samsung Galaxy Tablet. I purchased the attachment dongle from samsung (http://www.samsung.com/us/mobile/galaxy-tab-accessories/EPL-1PL0BEGSTA). When I first connected a usb device via this dongle, I had a high power error from the Galaxy Tablet -- FYI use an externally powered USB hub and you can bipass this. Now that the device itself is acknowledging the existance of a USB peripheral when I attach it, I attempted to use Android's

PyUSB: reading from a USB device

帅比萌擦擦* 提交于 2020-03-04 05:43:13
问题 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

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

Developing a smartcard reader in Android

旧巷老猫 提交于 2020-02-26 08:21:10
问题 We developed a prototype board with a microcontroller, which can communicate with a SmartCard (It can read the ATR, issue and read responses to APDU commands, etc).Now I want to use this hardware with an Android phone or tablet. Our board has a USB connection, through which we can read and write to the MCU via Android. The end goal is to have a functioning smartcard reader on the Android platform with PKCS #11 support and provide a library to the end-users of the SmartCard reader so they can

Python: How to search only USB flash drives? [closed]

一世执手 提交于 2020-02-25 08:41:26
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have a Python script which is designed to be run from a USB flash drive, and would not work if run from a PC hard drive, so it is safe to assume all copies exist on connected USBs. I have another script

read usb serial code in bash using udevadm

浪尽此生 提交于 2020-02-25 06:51:35
问题 I am trying to read usb unique id in bash using using udevadm command. used command is: udevadm info --query=all --name=/dev/sdc1 output is proper while using a regular usb storage, E: ID_SERIAL=JetFlash_Transcend_2GB_7FYD0N04-0:0 E: ID_SERIAL_SHORT=7FYD0N04 But when i use a mp3 player, output is something odd like: E: ID_SERIAL=10d6_USB_2.0_FS__FLASH_DISK_USB_2.0_FS__FLASH_DISK E: ID_SERIAL_SHORT=USB_2.0_FS__FLASH_DISK Is there some thing unique other than ID_SERIAL_SHORT for a usb storage?

read usb serial code in bash using udevadm

ぐ巨炮叔叔 提交于 2020-02-25 06:51:11
问题 I am trying to read usb unique id in bash using using udevadm command. used command is: udevadm info --query=all --name=/dev/sdc1 output is proper while using a regular usb storage, E: ID_SERIAL=JetFlash_Transcend_2GB_7FYD0N04-0:0 E: ID_SERIAL_SHORT=7FYD0N04 But when i use a mp3 player, output is something odd like: E: ID_SERIAL=10d6_USB_2.0_FS__FLASH_DISK_USB_2.0_FS__FLASH_DISK E: ID_SERIAL_SHORT=USB_2.0_FS__FLASH_DISK Is there some thing unique other than ID_SERIAL_SHORT for a usb storage?

Say USB path without letter (vbs)

℡╲_俬逩灬. 提交于 2020-02-23 07:09:10
问题 I am writing a piece of VBScript in which I want to Save a file (say, notepad) into my USB Stick. To do so, I am using AppActive and SendKeys "^s" which will pop up a window asking for the path. The problem is I don't know what letter will my USB have on certain computers. On mine, it's E, but on my friend's PC it is G (anyway, irrelevant). Is there a way to say the path without including the letter? I named my usb "USB" and simply tried to write the path without the letter. It works for my