传感器和Android手机之间通过蓝牙传输数据 [英] Data transfer between sensor and android phone through bluetooth
问题描述
我正在开发一个应用程序,它通过Android操作系统上的传感器来代表测量。传感器包含移动所采取的措施。传感器通过蓝牙与Android连接。我打开了Android手机和传感器上的蓝牙,手机通过其MAC地址识别传感器(这是手机本身的选项)。那么''连接''就在那里,但是我如何从头开始从该传感器获取数据?有人有一步一步说明如何做到这一点? (我真的没有任何经验,只有基本的Java)。
I am developping an application that represents meassurements by a sensor on an android OS. The sensor contains the meassurements taken by moving. The sensor has a connection with Android through bluetooth. I switched the bluetooth on both the android phone and sensor on, and the phone recognized the sensor through its MAC address (this is the option of the phone itself). So the ''connection'' is there, but how do I start from scratch with obtaining the data from that sensor? Does someone has an step by step example of how to do this? (I really don''t have any experience in it, only basic Java).
推荐答案
Google Play中有一个名为Bluetooth SSP的应用程序:
Blutooth SPP
它可以帮助您与传感器和Android手机通信。
there is an app in Google Play named Bluetooth SSP:
Blutooth SPP
It can help you communicate with your sensor and Android phone.
这篇关于传感器和Android手机之间通过蓝牙传输数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!