简体   繁体   English

两个Android设备通过USB设置套接字通信

[英]Two android devices setup socket communication via USB

I want to setup socket communication between Android Tablet and Android cellphone via USB. 我想通过USB设置Android Tablet和Android手机之间的套接字通信。 My Idea is using the " ADB foward " after the two devices connect each other viar usb otg. 在两个设备通过USB OTG相互连接后,我的想法是使用“ ADB转发器”。 Or do you have any better ideas? 还是您有更好的主意?

It seems that both two devices need to support OTG before they could see each other. 看来这两个设备必须先支持OTG,然后才能看到对方。

So my question is do I really need two android devices with otg support to do my job? 所以我的问题是,我真的需要两个支持otg的android设备来完成我的工作吗?

I have once tried setup socket communication between my cellphone and emulators using the " ADB foward ". 我曾经尝试使用“ ADB foward”在手机和仿真器之间建立套接字通信。 Maybe you can try this. 也许您可以尝试一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM