您如何设置一个TI SensorTag收集供日后检索数据?日后、如何设置、数据、SensorTag

2023-09-04 07:10:08 作者:川岛奈奈子

我正与一个TI SensorTag ,我希望它能够存储数据时,我的手机是不在范围内通过蓝牙LE连接。目前,该传感器只传送数据时,一个设备是无线范围内。

通过访问对SensorTag固件,好像它应该有可能使之存储数据即使电话不在范围内,然后传送它,当一个设备变得可用。我使用的是iPhone,访问它使用他们为榜样code 。我还可以使用Android的code,如果有人认为这将更好地工作。

是否有可能告诉固件在本地登录该数据?那么,是什么命令需要通过蓝牙LE被传染?如果没有,可以在固件进行修改,以支持这一点?

解决方案

我有同样的问题,并希望当iPhone没有连接到记录数据。我通过修改SensorTag固件将数据记录解决这一点。基本上我实现了一个新的服务与一组额外的特性(比如启动/停止,复位,日志的间隔,开始阅读,阅读结束,数据)。

日志

不过,我告诉你,有相当要求的实施等一些修改和测试。您还需要IAR编译器和SDK从TI获得上手。我实现了温度和湿度只有记录。我不感兴趣的其他传感器数据。

I'm working with a TI SensorTag, and I want it to be able to store the data when my phone is not in range to connect via Bluetooth LE. Currently, the sensor only transmits data when the a device is within wireless range.

By accessing the firmware on the SensorTag, it seems like it should be possible to make it store data even when the phone is not in range and then transmit it when a device becomes available. I'm using an iPhone, accessing it using their example code. I can also use Android code, if someone thinks that would work better.

5步让你教你认识大数据

Is it possible to tell the firmware to log this data locally? If so, what commands need to be transmitted over Bluetooth LE? If not, can the firmware be modified to support this?

解决方案

I had the same issue and wanted to log data when the iPhone is not connected. I resolved this by modifying the SensorTag firmware to incorporate data recording. Essentially I implemented a new service for logging with an extra set of characteristics (like start/stop, reset, log interval, read start, read end, data).

However I tell you, there is quite some modifications and testing required for such implementation. You also need the IAR Compiler and SDK from TI to get started. I implemented temperature and humidity logging only. I was not interested in the other sensors data.