usb

Pylibftdi library not working (serial mode, UM232H)

感情迁移 提交于 2019-12-05 07:54:24
问题 First of all I am quite new with both python and Linux. That said I am trying to communicate to an FTDI UM232H chip using the pylibftdi library. I am running my scripts on Linux Ubuntu 12.04. I installed the library that I got here: http://pylibftdi.readthedocs.org/en/latest/ and apparently everything worked fine. I was also able to run some of the examples successfully. I then tried to write some code to communicate with the device: I wired it in a bus powered configuration (in order to get

USB Barcode Scanner and WM_KEYDOWN

一曲冷凌霜 提交于 2019-12-05 07:54:23
问题 I am trying to write a program that can will read a barcode scanner. In addition, I need it to read the input even when the application is not the window in focus (i.e., running in system tray, etc). I found this article, titled Distinguishing Barcode Scanners from the Keyboard in WinForms, that seems to solve the exact problem. It is working pretty good, it detects my device and handles the WM_INPUT message. However, it is checking to see if the RAWINPUT.keyboard.Message is WM_KEYDOWN (0x100

Data exchange directy to USB device with VID and PID in Delphi

♀尐吖头ヾ 提交于 2019-12-05 07:25:26
I've been trying to find some free and working code on the net about how to send and receive data (or frames as its seemed to be called) to and from a specific USB device by using VID and PID. Does anybody know how to do this in delphi? There seems to be nothing about this for delphi, at all! LU RD See Robert Marquardt's HID controller suite for Delphi . It will give you communication possibilities with a USB device. This unit is incorporated in Project Jedi as well. See also Jan Axelson's HID page for examples. I think he has written book also. USB Complete . On his page are som Delphi

android ADK - USB OTG (Host mode)

旧时模样 提交于 2019-12-05 06:46:24
问题 I am just starting to get into android soft dev and will be designing accessory hardware to interface the android device. It appears that there are some limitation in what USB modes can be used on the device dependent on the firmware. Based on a documentation on USB from the developer.android.com site. USB host mode is only supported on firmware versions 3.1 and up. However, it appears that the samsung galaxy 2 supports OTG (host mode), at least natively, as demonstrated in this youtube video

send data from android to PC via USB [closed]

烂漫一生 提交于 2019-12-05 06:33:00
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . How to send a simple data (with java programming) from android to PC connected via USB? I am using android 2.3.3. Also can someone tell me what APIs should i look for doing this? ..Thanks See the android USB-Host documentation: http://developer.android.com/guide/topics/usb/host.html 来源: https://stackoverflow.com/questions/7317690/send-data-from-android-to-pc-via-usb

How to get the system ip address after usb tethering of android phone?

谁都会走 提交于 2019-12-05 06:13:40
问题 I'm developing a mobile application in android. Here I want to detect the IP address of the computer,system,etc after the usb tethering of the any android phone I cannot find the solution. If I put the following code then it takes the only the IP address of phone ,I need IP address of system The following are code ArrayList<InetAddress> arrayList=new ArrayList<InetAddress>(); try { for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {

Android USB API: Switch between charge and data send

亡梦爱人 提交于 2019-12-05 05:33:39
I'm starting to use the Android USB API to send data from an Arduino to an Android device. Is it possible to programmatically switch between send/receive data and just charge the Android phone? I know that you cannot do both things at the same time, and, since you have to open a FileInputStream in order to be able to receive data, as long as this is open the device won't be charged. Will it be just as simple as closing this stream to charge again? If is as simple as it, can the Arduino then send basic information in order to ask the device to open the stream again? I am not sure, I understand

Using the ACS ACR1252U USB NFC Card reader in Linux

自闭症网瘾萝莉.ら 提交于 2019-12-05 05:29:59
问题 I'm using a ACS ACR1252U card reader (http://www.acs.com.hk/en/products/342/acr1252u-usb-nfc-reader-iii-nfc-forum-certified-reader/) connected via USB and to be honest I have no idea how to get it working. I've Googled a ton of stuff but no luck. I'm using a variant of Debian. The following is more or less what I've done: I get the following using dmesg: [ 7173.059710] usb 1-1.3: new full-speed USB device number 6 using dwc_otg [ 7173.160500] usb 1-1.3: not running at top speed; connect to a

USB: low latency (< 1ms) with interrupt transfer and raw HID

微笑、不失礼 提交于 2019-12-05 05:17:10
问题 I have a project that requires reading an external IMU gyroscope data at regular interval and sending the data over to an Android phone. I am using a teensy 2.0 board to query the IMU via I2C and send it over USB using raw HID. I am using RawHID variable which is declared in usb_api.h of usb_rawhid of teensyduino. I have read that a full-speed USB using interrupt transfer can have a 1ms maximum latency and would like to achieve this 1ms maximum latency. I am not sure what to look for to

Writing USB Drive Portable Applications in C#

风格不统一 提交于 2019-12-05 05:16:33
One of my favorite things about owning a USB flash storage device is hauling around a bunch of useful tools with me. I'd like to write some tools, and make them work well in this kind of environment. I know C# best, and I'm productive in it, so I could get a windows forms application up in no time that way. But what considerations should I account for in making a portable app? A few I can think of, but don't know answers to: 1) Language portability - Ok, I know that any machine I use it on will require a .NET runtime be installed. But as I only use a few windows machines regularly, this