微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > 如何去使用Running Speed and Cadence ?

如何去使用Running Speed and Cadence ?

时间:10-02 整理:3721RD 点击:

你好,我正使用TI CC2541 Mini Development Kit來做開發

我找到Running Speed and Cadence这个Service

问题1:请问cc2541有哪一个项目是使用这个Service的吗??

问题2:假设没有相关的传感器,那么是不是也无法使用Running Speed and Cadence这个Service ??

另外...想請問一下Profile與Service的差別

我看到Running Speed and Cadence这个Profile,底下有Running Speed and Cadencedevice_information这2个Service

所以...我如果在Android App要使用Running Speed and Cadence这个Profile

我就要分别要去使用Running Speed and Cadencedevice_information这2个Service的UUID

这样不是就直接去使用Running Speed and Cadencedevice_information这2个Service ?

问题3: 那请问这样有使用到Running Speed and Cadence这个Profile嗎?  因为这看起来是直接去使用Service...

问题4: 还是另外有方法去使用Running Speed and Cadence这个Profile?

wun,

good question!

是的,你必须挂上传感器才能真正使用。

TI给的demo里面所有的profile,service代码都是完整的,只是传感器的数据是模拟的。所以你只要有合适的传感器通过合适的驱动挂在到2541上,就能实现这个profile了。

Yan 謝謝你快速的回答

刚刚补充了几个问题,可以再麻烦你帮忙指导,解答一下吗?谢谢

wun,

关于profile 和 service, 虽然你提了那么多问题,写了那么多,其实你需要的是要去看一下 蓝牙的这两个profile和service 文档, 没你想象中那么复杂。

profile是由service组成的。

参考连接地址: https://www.bluetooth.org/en-us/specification/adopted-specifications,

CSCP Cycling Speed and Cadence Profile 1.0
CSCS Cycling Speed and Cadence Service 1.0

Yan 謝謝你的回覆

我需要的是RSCP以及RSCS,而我已经有下载的PDF档案也看过内容。

根据你的说法,profile是由service组成的。

Running Speed and Cadence这个Profile,底下有Running Speed and Cadencedevice_information2个Service

所以当我想要使用Running Speed and Cadence这个Profile

实际上就是去使用Running Speed and Cadencedevice_information2个Service

当然我也可以选择只有使用Running Speed and Cadence这个Service

这概念对吧?

wun,

不好意思,我复制错链接了 :)但大概概念相同。

是的,你的理解正确,用profile里面什么service你可以自己选择,也可以自己添加其他service 到这个profile中去。

但是有一点,spec 规定的profile, 包含的所有service, 比如说running speed and cadence, 它包含了两个service, 那么只有你的应用里面这两个service都存在的情况下,才能声称你的设备中有running speed and cadence这个profile。

这个涉及到你最后去做产品认证的时候,SIG会需要测试你产品声称支持的profile,如果你声称支持RSCP, 但只包含其中一个service, 那么你将无法通过认证。

SIG认证是以profile 为单位的。 

Yan  谢谢你详细的说明,我了解了!! 真的很感谢你!!

不好意思再请问最后一个问题,在running speed and cadence Service中,有计步的功能吗?

我看了running speed and cadence Service的PDF档

但我还不是很确定是否有计步器的功能在里面

wun,

不客气!

RSCS中并没有包含计步器功能。计步器功能是有专门算法的,一般配合G-Sensor 之类的应用。

计步器的算法TI 的MSP 430上有, 有兴趣的话可以参考 http://www.ti.com/mcu/docs/litabsmultiplefilelist.tsp?sectionId=96&tabId=1502&literatureNumber=slaa599&docCategoryId=1&familyId=342

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top