安卓通过usb互相通信,通过USB连接两款Android设备连接在一起

博主尝试通过USB OTG将两台Android设备(一台运行ICS,一台运行JB)连接起来进行通信。已知设备都支持USB主机和客户端模式,但目前仅能识别而无法实现通信。博主查阅资料未找到明确的解决方案,并提到Android开发者文档可能提供帮助。
摘要由CSDN通过智能技术生成

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).

解决方案

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.

Whether I'd actually be able to communicate between them somehow is a different matter. Perhaps the Android developers documentation on this subject could be of some help.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值