在Android中使用串口RS-232? [英] using serial port RS-232 in android?

查看:222
本文介绍了在Android中使用串口RS-232?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过串口使用Android设备上的JavaComm API类发送信号,这里是我想象的:



1- Android设备是:Archos 3.2具有Android 2.2和USB主机模式。



2-包含我的Android应用程序的RxTx lib包。并且包括使用Android NDK的RxTx本机代码。



3-短线是usb - > serial。



<你可以向我解释我可能面临的问题吗?

解决方案

我刚将JavaCOMM(GNU RXTX)库移植到Android。以下是 http://v-lad.org/projects/gnu.io的链接。 android /



您仍然可能需要重建内核,或者可能为您的环境重新编译共享库。但这应该让你开始。


I want to send signals via serial port using the JavaComm API classes on an Android device, and here is how I imagine it:

1- the Android device would be: Archos 3.2 which has android 2.2 and USB host mode.

2- include RxTx lib package with my Android app. and include RxTx native code using Android NDK.

3- a short cable which is usb-->serial.

Could you explain to me where I might face problems?

解决方案

I just ported the JavaCOMM ( GNU RXTX ) library to the Android. Here is the link http://v-lad.org/projects/gnu.io.android/

You still might need to rebuild your kernel and maybe recompile the shared library for your environment. But this should get you started.

这篇关于在Android中使用串口RS-232?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆