怎么可以使CC2540主机搜索从机,配对成功后从机断开,与另一个从机进行连接配对,实现从机配对成功计数的功能呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
allen,
这个没问题啊,只要用引脚的GPIO功能就能实现啊,参考一下数据手册里面对GPIO的操作就可以。
至于查找,断开连接之类,都是应用层代码,非常简单,可以参考一下SimpleBLECentral 和 SimpleBLEPeripheral 工程。
Allen,
关于搜索,你可以参考一下SimpleBLECetnral工程中的SimpleBLECentral.c 文件中的 simpleBLECentralStartDiscovery()函数,再往下追踪。
如果涉及具体编程学习什么的话,请参考一下论坛置顶的资源,相当丰富。
另外,建议你看一下你安装好协议栈之后,里面带的documents里面的 TI_BLE_Software_Developer's_Guide.pdf,里面有非常好的代码结构解析。
Allen,
可以。
断开连接,立即搜索,立即广播,都是应用层可以定义的。请多看一下代码。
另外,请多看一下TI的BLE wiki,上面有很多你的问题的解答和你需要的资源:http://processors.wiki.ti.com/index.php/Category:BluetoothLE