USB主机和附件
Android supports a variety of USB peripherals and Android USB
accessories (hardware that implements the Android accessory protocol)
through two modes: USB accessory and USB host. In USB accessory mode,
the external USB hardware act as the USB hosts. Examples of
accessories might include robotics controllers; docking stations;
diagnostic and musical equipment; kiosks; card readers; and much more.
This gives Android-powered devices that do not have host capabilities
the ability to interact with USB hardware. Android USB accessories
must be designed to work with Android-powered devices and must adhere
to the Android accessory communication protocol. In USB host mode, the
Android-powered device acts as the host. Examples of devices include
digital cameras, keyboards, mice, and game controllers. USB devices
that are designed for a wide range of applications and environments
can still interact with Android applications that can correctly
communicate with the device.
安卓支持各种不同的USB外围设备和安卓USB附件(硬件,实现了安卓Accessory Protocol)通过两个模式:USB 附件模式和USB
主机主机。在USB附件模式、外部USB硬件作为USB主机。可能例子包括机器人控制器配件;对接站;诊断和音乐设备;亭,读卡器,等等。在这种模式下
安卓没有能力保证连接的USB硬件的兼容性, 那么安卓附件必须完全符合安卓Accessory Protocol的通信协议。在USB主机模式,安卓
设备充当主人。可能的例子包括:数码相机、键盘、老鼠和游戏控制器。安卓USB被设计成设备具有广泛的应用领域,可以很好的完成人机互动应用的通信设
备。