设置简单的蓝牙服务器控制台? [英] Setup simple bluetooth server console?
问题描述
您好我想用我的Android设备的某些蓝牙通信工作。
如何测试蓝牙连接容易吗?
Hi i wanna work with some bluetooth communication using my Android device. How can i test bluetooth connections easy?
让说IM创建一个简单的应用程序,将在连接时发送邮件的Hello World。我想一些服务器应用程序控制台我能火起来对我的iMac和有我的Android应用程序连接。
Let say im creating a simple application that will send the message "Hello World" upon connection. I would like some sort of server application console i could fire up on my iMac and have my android application connect to.
服务器应用程序应该仅仅是显示所有接收到的数据,也许输入回一个响应控制台或什么的。
The server application should just be a console or something that displays all the data it receives and maybe a input to back a response.
有anykind程序,允许这一点?
或者我真的需要2个Android设备创建具有蓝牙一个简单的服务器/客户端交互?
Is there anykind of program that allow this ? Or do i really need 2x android devices to create a simple server / client interaction with bluetooth?
推荐答案
这的Android蓝牙聊天应用将是很好的起点。
你可以使这个连接到MAC通过串行端口配置文件。
this Android Bluetooth Chat App will be good starting point . you can make this connect to the mac over serial port profile.
上面的例子是最新的Android版本(它可能与Android的1.x版也做到这一点,你将不得不使用在较旧的Android版本还支持相应的API)
The example above is for the latest Android versions (it is possible to accomplish this with 1.x versions of android also, you will have to use the appropriate api that are supported in older android versions also)
有关在Mac编程参考<一个href=\"http://developer.apple.com/library/mac/#documentation/DeviceDrivers/Conceptual/Bluetooth/BT_Develop_BT_Apps/BT_Develop_BT_Apps.html#//apple_ref/doc/uid/TP30000997-CH216-TPXREF113\"相对=nofollow>这
For Programming in the Mac refer to This
这篇关于设置简单的蓝牙服务器控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!