usb
“The semaphore timeout period has expired” error for USB connection
Okay, I am now connecting without the semaphore timeout problem. If anyone reading ever encounters the same thing, I hope that this procedure works for you; but no promises; hey, it’s windows. In my case this was Windows 7 I got a little hint from This page on eHow; not sure if that might help … Read more
Android – Losing incoming (hi-speed) USB data
I’ve encountered this kind of problem before. Forget using Java, in the background it’s doing untold number of things that prevent realtime access, e.g. garbage collection, thread processing. Also forget using event-driven programming, even in high priority threads, it can take a long time before the event is processed and you can lose data. The … Read more
Android USB host mode “soft-mode” drivers for standard class-compliant USB devices
I have started work on an IRDA driver stack over USB in user space. I am working out the basic plumbing but as far as I can see if I can create the equivalent user space driver to the linux kernel drivers such as the STIR4200 driver then I “ought” to then be able to … Read more
Connect USB device to Android Emulator?
The Android emulator is based on QEMU. Even if the emulator version is so ancient, there appears to be support for passing USB devices from the host. It does not seem to be available for ARM devices though, the emulated ARM machine does not have a USB controller. (I have already tried enabling all USB … Read more
How to programmatically unplug & replug an arbitrary USB device?
What about using Devcon.exe to “remove” and then “rescan”? DR
How can I listen for ‘usb device inserted’ events in Linux, in Python?
Update: As said in comments, Hal is not supported in recent distributions, the standard now is udev, Here is a small example that makes use of glib loop and udev, I keep the Hal version for historical reasons. This is basically the example in the pyudev documentation, adapted to work with older versions, and with … Read more
Android 3.1 USB-Host – BroadcastReceiver does not receive USB_DEVICE_ATTACHED
Aha! I figured it out. I was having the exact same problem. The gist of it is – if you have your application launch automatically when a device is plugged in (using the manifest file), then it appears the Android system gets the ACTION_USB_DEVICE_ATTACHED intent, and then since it knows your application wants to run … Read more
bypass android usb host permission confirmation dialog
I know it’s a bit late, but still… I had the same kind of problem and I think I’ve managed to solve it. There’s a service that Android uses internally that allows to manage USB devices and accessories. This service is hidden from thrid party developers and is not documented. If you check the source … Read more
What’s the difference between “COM”, “USB”, “Serial Port”? [closed]
Serial port is a type of device that uses an UART chip, a Universal Asynchronous Receiver Transmitter. One of the two basic ways to interface a computer in the olden days, parallel ports were the other way. Serial is simple to hook up, it doesn’t need a lot of wires. Parallel was useful if you … Read more