通过USB连接两款Android设备连接在一起两款、设备、USB、Android

2023-09-06 01:53:51 作者:一路伴随我的你

是否有可能通过USB连接在一起的两个Android设备之间的通信。这是假设它们都具有USB OTG,并有支持它的内核。

Is it possible to communicate between two android devices connected together via USB. This is assuming they are both devices with USB OTG and have kernels that support it.

我试图寻找这一点,但不能找到一个很好的起点。我认为一台设备需要充当主机和一台作为客户端,这正是我需要的(唯一真正需要单向通信实际上)。

I've tried searching for this but cannot find a good starting point. I'd assume that one of the devices needs to act as a host and one as a client which is exactly what I need (only really require one way communication actually).

推荐答案

我尝试连接使用的是男A到男性为MicroB电缆再加上女性A-两部手机(一个运行ICS和其他JB)对男性为MicroB适配器,的手机之一检测到的另一个为USB设备。

I tried connecting two phones (one running ICS and the other JB) using a male-A-to-male-microB cable coupled with a female-A-to-male-microB adapter, and one of the phones detected the other one as a USB device.

无论我居然会能够在它们之间进行通信某种程度上是另一回事。也许href="http://developer.android.com/guide/topics/connectivity/usb/host.html" rel="nofollow"> Android开发者文档关于这一问题的

 
精彩推荐