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之间的蓝牙聊天
基础教程推荐
- UIImage 在开始时不适合 UIScrollView 2022-01-01
- Play 商店的设备兼容性问题 2022-01-01
- Android Volley - 如何动画图像加载? 2022-01-01
- navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮? 2022-01-01
- SwiftUI-ScrollViewReader的ScrollTo不滚动 2022-01-01
- Xcode UIView.init(frame:) 只能在主线程中使用 2022-01-01
- 如何比较两个 NSDate:哪个是最近的? 2022-01-01
- iOS - UINavigationController 添加多个正确的项目? 2022-01-01
- 如何将图像从一项活动发送到另一项活动? 2022-01-01
- 为什么姜饼模拟器方向卡在应用程序中? 2022-01-01
