Bluetooth Chat between Android device and PC(Android设备和PC之间的蓝牙聊天)
问题描述
是否可以将蓝牙聊天示例与 PC 连接?如何将信息接收到 PC?我认为我可以使用 Android 设备中的串行端口配置文件 (SPP) 并在 PC 上打开一个常规的 COM 终端.实际上,我的应用程序需要将加速度计和其他传感器信息发送到 PC 以了解智能手机的位置.我希望你能帮助我.
Is it possible to connect the Bluetooth Chat sample with a PC? How can I receive the information to the PC? I thought that I can use the Serial Port Profile (SPP) from the Android device and open a regular COM Terminal on the PC. Actually my application requires sending the accelerometers and other sensors information to a PC in order to know the position of the smartphone. I hope you can help me.
推荐答案
你问了一个一般性的问题,所以我能做的最好的就是给你一个一般性的答案.这是一个两方面的问题.听起来你知道你在 android 端做什么,但我们是你在 PC 端绊倒.对?就PC端而言,您基本上需要实现蓝牙服务器".您可以使用 bluecove 库或标准 javax.bluetooth 库.
You've asked a general question, so the best I can do is give you a general answer. This is a two prong problem. It sounds like you know what you're doing on the android side of things, but we're you're stumbling is on the PC side. Right? As far as PC side goes, you're basically going to need to implement a "bluetooth server". You can use the bluecove library or the standard javax.bluetooth library.
这篇关于Android设备和PC之间的蓝牙聊天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android设备和PC之间的蓝牙聊天


- 类似于 Mail.app 的 iPad 模态视图控制器? 2022-01-01
- URL编码Swift iOS 2022-01-01
- UITextView 内容插图 2022-01-01
- 如何在 iPhone 模拟器中重置 NSUserDefaults 数据? 2022-01-01
- 网上有没有好的 UIScrollView 教程? 2022-01-01
- GPS状态的广播接收器? 2022-01-01
- SetOnItemSelectedListener上的微调程序错误 2022-01-01
- Xcode 7.3 中带有 UILabel 的 UIStackView 2022-01-01
- 在 Iphone SDK 的导航栏上添加多个按钮 2022-01-01
- 使用自动布局向 UIScrollView 添加动态大小的视图 2022-01-01