usb

Can't see mouse and keyboard device with usbManager android

 ̄綄美尐妖づ 提交于 2020-01-02 10:04:13
问题 I work on a project where I need get data of keyboard and mouse on a service. I also have to be able to send data to my device hid. To do this, I want use the usb host mode. When I get list of device, I can see a mass storage but no mouse and keyboard. After search, I have seen that usbManager don't return mouse and keyboard device. I have tried to change permissions (on /system/etc/permissions) whitout success). I have run the application USB Device Info and I see mouse and keyboard on linux

Transfer files from computer (Mac) to iOS device (jailbroken if necessary) via USB using terminal

痴心易碎 提交于 2020-01-02 09:29:15
问题 I am looking for a way to transfer files from my Mac to the iPhone via USB, and it needs to be done either using the terminal or programmatically. So far, I have seen some other questions on that topic on StackOverflow, and the most common reply was to use GUI-tools such as iExplorer. Unfortunately, I cannot use GUI-based tools. One interesting answer was this one (https://stackoverflow.com/a/15795578/299711), which mentioned the MobileDevice library, but alas, it seems very poorly documented

Access USB port from C# and send and receive data

筅森魡賤 提交于 2020-01-02 01:03:31
问题 How to access a USB port in C#, send a data stream and receive other data? 回答1: there's a .net library for that: SharpUSBLib http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx 回答2: The term "usb port" doesn't mean anything. The B in USB means "bus", it is a generic way for any kind of device to talk to the machine. A driver is required to make the device usable. Just as you have drivers for your video card and your NIC. A common way make USB device usable from user mode code is

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:

Transferring larger amounts of data USB

泄露秘密 提交于 2020-01-01 15:29:10
问题 Hey I have been trying to work on this for some time but I am just getting no where I am trying to get bytes in from a USB device, this works fine for one or two lines coming in but when it gets to quite a few it just doesn't work. I am using this line of code to bring in data: conn.bulkTransfer(epIN, buffer, 57600, 500); is there any way to do a USB transfer over and over again until there is no more data coming in? Because the amount of data coming in can be anything from 8 bytes to a few

How use thermal printer(USB/Ethernet) on android, without using vendor SDK,?

人盡茶涼 提交于 2020-01-01 10:30:21
问题 I already implemented EPSON SDK(for Bluetooth) and working fine, but not Working on other printers, is there is any general way to accomplish it. what is ESC command, How it works?, 回答1: Please find this one.It will help your problem. ESC/POS Command Reference provides detailed information on ESC/POS commands, such as standard command syntax and protocol. It targets programmers who want to control the printer with ESC/POS commands. ESC/POS Command Reference is provided as replacement of ESC

How use thermal printer(USB/Ethernet) on android, without using vendor SDK,?

邮差的信 提交于 2020-01-01 10:30:10
问题 I already implemented EPSON SDK(for Bluetooth) and working fine, but not Working on other printers, is there is any general way to accomplish it. what is ESC command, How it works?, 回答1: Please find this one.It will help your problem. ESC/POS Command Reference provides detailed information on ESC/POS commands, such as standard command syntax and protocol. It targets programmers who want to control the printer with ESC/POS commands. ESC/POS Command Reference is provided as replacement of ESC

Is there a way to communicate with USB devices on Android?

社会主义新天地 提交于 2020-01-01 09:04:12
问题 I have a really short question: Is it possible to communicate/use USB devices on Android OS? I assume it might be tablet device. Lest say i want to connect some sort of USB card scanner to android tablet. Will it work? Do i need to write drivers by myself? Thanks. 回答1: First, you need a USB host port on your tablet. Except for On-the-Go (which is a special design that can be either host or device), it is not possible to connect two USB devices together. The incompatibility is electrical, no

Communicating with Arduino from Android

爱⌒轻易说出口 提交于 2020-01-01 07:14:08
问题 i'm trying to communicate with Arduino board (Duemilanove) from Android 3.1 device with USB-host support using Android USB Host API. The goal is to communicate with the board in the same way as via Serial. I follow this manual (http://android.serverbox.ch/?p=427) but have few problems (f.e. failed to claim interface) and of coarse dev guide (http://developer.android.com/reference/android/hardware/usb/package-summary.html) but no luck. The questions are: how to prepare arduino board (modify

Communicating with Arduino from Android

有些话、适合烂在心里 提交于 2020-01-01 07:13:11
问题 i'm trying to communicate with Arduino board (Duemilanove) from Android 3.1 device with USB-host support using Android USB Host API. The goal is to communicate with the board in the same way as via Serial. I follow this manual (http://android.serverbox.ch/?p=427) but have few problems (f.e. failed to claim interface) and of coarse dev guide (http://developer.android.com/reference/android/hardware/usb/package-summary.html) but no luck. The questions are: how to prepare arduino board (modify