Android 2.2的。如何设置串口(COM,RFCOMM)端口? [英] Android 2.2. How to set up serial port(com,rfcomm) port?

查看:379
本文介绍了Android 2.2的。如何设置串口(COM,RFCOMM)端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一个试图与Android版本2.2.1与我的电脑连接我的Nexus One,并使用一个终端程序,如Windows终端或超级终端进行通信。要做到这一点,我相信我需要建立一个传出串行COM端口。我配对设备。当我去我的电脑蓝牙 - >设置 - >添加COM端口Android设备不显示。

I a trying to connect my Nexus One with Android version 2.2.1 with my pc and use a terminal program such as windows terminal or hyper terminal to communicate. To do this I believe I need to set up an outgoing serial com port. I have paired the devices. When I go on my PC to Bluetooth -> settings -> "add com port" the android device does not display.

我在想什么?

难道Android的2.2.1支持SPP?该文件说,它确实。

Does android 2.2.1 support spp? The documentation says it does.

我需要根在Android中添加杆菌?

Do I need to root the android to add spp?

有没有人成功呢?

我的最终目标是编写一个Android应用程序与要求COM端口一个老同学的蓝牙设备进行通信?获得了Android与PC进行通信是一个中间步骤。

My final goal is to write an android app that communicates with an old school bluetooth device that requires com ports? Getting the android to communicate with the pc is an interim step.

我曾在我的Andr​​oid应用程序的一切我能想到的连接到我的电脑和Android设备,但都没有成功。我的Andr​​oid应用程序在本质上是一样的串行蓝牙提交xCaffeniated < /一>,但用更少的意见。有什么建议么?

I have tried everything I can think of in my android app to connect to my pc and android device but have not been successful. My android app is essentially the same as Serial over Bluetooth submitted by xCaffeniated but with fewer comments. Any suggestions?

推荐答案

试着使用的 BluetoothChat 的示例应用程序。那么你将不得不改变使用通用SPP UUID的UUID,

Try beginning with the BluetoothChat sample application. You will then have to alter the UUID used to the generic SPP UUID,

00001101-0000-1000-8000-00805F9B34FB

00001101-0000-1000-8000-00805F9B34FB

从这个角度你pretty的多少有你需要的一切。

From this point you pretty much have everything you need.

我曾在BluetoothChat程序问题配对。所以我需要配对使用设置菜单我的电脑,然后进入BluetoothChat计划。在BTChat进入菜单,撞上连接到设备,选择您的计算机。我只能说对于Windows XP SP3这是我使用的是什么。在这一点上我的机器上我接到一个任务栏弹出问我,如果我愿意让我的设备连接的串行端口。我允许它存在。现在,你的手机是相关联的计算机,你可以用一个特定的COM端口相关联的串行端口配置文件。

I have had issues pairing in the BluetoothChat program. So I was required to pair to my computer using the settings menu and then entering the BluetoothChat Program. In BTChat go to the menu and hit connect to a device, choose your computer. I can only speak for windows XP SP3 which is what I'm using. At this point on my machine I receive a task bar pop up asking me if I would like to allow my device to connect as a serial port. I allow it to. Now your phone is associated as the serial port profile on the computer, which you can associate with a specific com port.

这篇关于Android 2.2的。如何设置串口(COM,RFCOMM)端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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