最近加入的商品

0 件商品 共计 ¥0.00

加入购物车
您的购物车中还没有任何商品。

赛普盛科技

Embedded Computer System

专注嵌入式计算机系统

Android系统上如何使用UART串口

首页    TI AM335x 应用开发    AM335x 应用经验分享    Android系统上如何使用UART串口

Introduction

Here is a page describing the different ways you could use to connect an Android device to an RS232 peripheral.
 

Solutions

 

sk_suBCzayQFh1cy-2a94GQ.png (97.83 KB, 下载次数: 446)

下载附件  保存到相册

2014-12-18 09:19 上传

 


Solution 1

  • pros
    • No need for external API, the Android SDK provides the class BluetoothSocket
    • No need for hardware modifications
    • hardware flow control is supported
  • cons
    • Bluetooth consume battery
    • high latency
    • low bandwidth
  • API



Solution 2

  • pros
    • USB to RS232 adapters are cheap and easy to find
    • no hardware modification needed
    • no external battery needed
    • low latency
    • high bandwidth
  • cons
    • your Android device needs an USB host connector (most tablets have one, but phones usually don't)
    • your may need to root your device in order to change /dev/ttyUSB0 file permission, and to load a kernel module.
  • API
    • android-serialport-api


Solution 3


Solution 4

  • pros
    • compatible with any Android device with an USB slave connector, i.e. 99.9% of the Android devices.
    • no need to root your phone
    • low latency
    • high bandwidth
    • you may use other GPIOs of the microcontroller at the same time
  • cons
    •  
  • API

 

 

 

原文出处:https://code.google.com/p/android-serialport-api/wiki/android_to_rs232_guideline

2019年7月17日 16:59
浏览量:0
收藏
    • 联系客服

    • 0755 2955 4030
    • 189 2600 3503
    • sales@superfae.cn
    • 服务时间

    • 周一至周五 9:00-18:00
    • 微信二维码