简体   繁体   English

Windows PC作为USB主机通过USB与Android设备进行通信

[英]Windows PC as USB Host communicating over USB with Android Device

i would like to transfer data (programmatically) over USB from an Android App to a Server on a Windows PC. 我想通过USB将数据(以编程方式)从Android应用程序传输到Windows PC上的服务器。 I´ve searched the web for over 3-4 days and couldn´t find any sample code, etc. 我在网上搜索了3-4天以上,无法找到任何示例代码等。

Is there any way to realize this in Java, C#, etc? 有没有办法在Java,C#等中实现这一点? I´ve established a connection via adb, but adb isn´t an option. 我已经通过adb建立了连接,但adb不是一个选项。

使用rxtx用于PC端( http://rxtx.qbang.org/wiki/index.php/Main_Page )并使用android usb api( http://developer.android.com/guide/topics/connectivity/usb/accessory。 html )安装设备USB驱动程序后的Android端

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

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