macbook adb cannot open interface

I ran into this error as well, and it turned out that the problem for me was that a Stetho tab was open in Chrome (i.e. a tab at URL chrome://inspect/#devices ), which I guess was causing the device to be in use. Closing that tab, then running adb kill-server, made adb devices work again.

Android USB host read from device

You can use UsbSerial Lib of from https://github.com/mik3y/usb-serial-for-android My example code: UsbManager usbManager = null; UsbDeviceConnection connection = null; UsbSerialDriver driver = null; UsbSerialPort port = null; usbManager = (UsbManager) context.getSystemService(Context.USB_SERVICE); List<UsbSerialDriver> availableDrivers = UsbSerialProber.getDefaultProber().findAllDrivers(manager); // Open a connection to the first available driver. for (UsbSerialDriver usd : availableDrivers) { UsbDevice udv = usd.getDevice(); if … Read more

Linux USB: turning the power on and off?

There is a sys entry for this in Linux. From Documentation/usb/power-management.txt: power/level This file contains one of three words: “on”, “auto”, or “suspend”. You can write those words to the file to change the device’s setting. “on” means that the device should be resumed and autosuspend is not allowed. (Of course, system suspends are still … Read more

Using a remote host’s USB port as local USB (Linux and Windows) [closed]

There is an open source project called usbip that provides functionality to share and/or mount a remote USB device over an IP network (LAN/Internet). There are also at least three commercial products that provide this functionality with better documentation and UI. I’ve included links to the commercial products at the end of this reply. From … Read more

How do I connect to a terminal to a serial-to-USB device on Ubuntu 10.10 (Maverick Meerkat)?

First check with dmesg | grep tty if system recognize your adapter. Then try to run minicom with sudo minicom -s, go to “Serial port setup” and change the first line to /dev/ttyUSB0. Don’t forget to save config as default with “Save setup as dfl”. It works for me on Ubuntu 11.04 on VirtualBox.

Is it possible to program Android to act as physical USB keyboard?

I’ve modified kernel on Nexus 7 to act like standard HID keyboard and mouse, without losing MTP/ADB/other USB functionality. You can use usb-gadget-test commandline utility to send keystrokes and mouse movements to your PC. I want to create a remote admin app later, which will send key events and receive video from camera. Kernel patch, … Read more

Get List of connected USB Devices

Add a reference to System.Management for your project, then try something like this: namespace ConsoleApplication1 { using System; using System.Collections.Generic; using System.Management; // need to add System.Management to your project references. class Program { static void Main(string[] args) { var usbDevices = GetUSBDevices(); foreach (var usbDevice in usbDevices) { Console.WriteLine(“Device ID: {0}, PNP Device ID: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)