【问题标题】:How to read data from two Serial Port devices from Android device?如何从 Android 设备读取两个串口设备的数据?
【发布时间】:2017-01-17 12:57:41
【问题描述】:

我正在使用https://github.com/felHR85/SerialPortExample 使用 OTG 电缆和串行到 USB 转换器(多产 pl2303 芯片组)从一个串行设备读取数据。

我能够成功地从一个设备获取数据,但是当我使用 USB 集线器连接第二个设备时,我总是获取连接的第一个设备的数据。

项目博客页面为:https://felhr85.net/2015/01/09/a-dirty-and-quick-example-of-serial-port-communication-in-android/

非常感谢任何可以为我指明正确方向的帮助。

【问题讨论】:

    标签: android serial-port usbserial


    【解决方案1】:

    我有类似的要求,但发现不使用第三个控制器是不可能的,它将把这两个设备连接到移动应用程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-03
      • 2013-03-22
      • 2023-03-28
      • 1970-01-01
      • 2013-11-24
      • 1970-01-01
      • 1970-01-01
      • 2020-11-24
      相关资源
      最近更新 更多