TI SensorTag Accelerometer服务不是广告

时间:2015-06-26 17:24:18

标签: swift bluetooth-lowenergy ibeacon ios-bluetooth

我正在使用Swift环境中的TI SensorTag并且能够连接,但只有温度,湿度和气压的UUID作为服务广告,而不是磁,陀螺和加速传感器。是使用Swift让传感器宣传这些服务的例子吗?

4 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。我发生的事情是电池电量不足,第一件停止工作的是陀螺仪。令人困惑的是Lux,温度和其他传感器都运行良好。

我现在开始使用通过USB供电的标签。或者你可以不时地更换电池吗?

答案 1 :(得分:0)

您是否拥有最新的Sensortag(CC2650),但您使用的是特定于原始Sensortag的库?

有关CC2650服务的列表,可在本页底部找到GATT表:http://www.ti.com/ww/en/wireless_connectivity/sensortag2015/tearDown.html

Node Sensortag也非常有用,它支持两者并显示差异:https://github.com/sandeepmistry/node-sensortag/tree/master/lib

答案 2 :(得分:0)

我建议使用IBM wearables SDK连接到sensorTag,它用swift编写,并且有简单的API用于处理所有传感器。

看看: http://wearables.mybluemix.net/

代码: https://github.com/ibm-wearables-sdk-for-mobile/ibm-wearables-swift-sdk

答案 3 :(得分:0)

The problem has to do with the change in UUID's. The new 2650 uses the MPU-9250 and you have to write your Swift code with AA80-AA83 for the UUID for Gyro + Accelerometer + Compass. Vs the past code that used a unique UUID for each of those 3 sensors.