Android USB host-to-serial connection?

后端 未结 5 649
温柔的废话
温柔的废话 2020-12-08 03:17

Apparently with Android 2.3.4 and 3.1 one can now access USB accessories.

I have a Ardupilot Mega (based on Arduino) board with a USB cable connected to my laptop, a

5条回答
  •  隐瞒了意图╮
    2020-12-08 03:48

    Maybe. Check out the Android Open Accessories announcement on the Android Developers Blog. The Arduino Mega ADK is compatible. Not sure about the Ardupilot Mega.

    From their page:

    The Android 3.1 platform (also backported to Android 2.3.4) introduces Android Open Accessory support, which allows external USB hardware (an Android USB accessory) to interact with an Android-powered device in a special "accessory" mode. When an Android-powered powered device is in accessory mode, the connected accessory acts as the USB host (powers the bus and enumerates devices) and the Android-powered device acts as the USB device. Android USB accessories are specifically designed to attach to Android-powered devices and adhere to a simple protocol (Android accessory protocol) that allows them to detect Android-powered devices that support accessory mode. Accessories must also provide 500mA at 5V for charging power. Many previously released Android-powered devices are only capable of acting as a USB device and cannot initiate connections with external USB devices. Android Open Accessory support overcomes this limitation and allows you to build accessories that can interact with an assortment of Android-powered devices by allowing the accessory to initiate the connection.

    Note: Accessory mode is ultimately dependent on the device's hardware and not all devices will support accessory mode. Devices that support accessory mode can be filtered using a "uses-feature" element in your corresponding application's Android manifest. For more information, see the USB Accessory Developer Guide.

    The following list of distributers are currently producing Android Open Accessory compatible development boards:

    The Arduino Store provides the Arduino Mega ADK (in EU nations or non-EU nations) that is based on the ATmega2560 and supports the ADK firmware. DIY Drones provides an Arduino-compatible board geared towards RC (radio controlled) and UAV (unmanned aerial vehicle) enthusiasts. Microchip provides a PIC based USB microcontroller board. Modern Device provides an Arduino-compatible board that supports the ADK firmware. RT Corp provides an Arduino-compatible board based on the Android ADK board design. Seeed Studio provides an Arduino-compatible board that supports the ADK firmware. SparkFun's IOIO board now has beta support for the ADK firmware.

提交回复
热议问题