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.

CC2640R2F 在自定义task内的函数调用问题

专家们好,

目前在multi_role项目的基础上增加了两个task,分别用于uart读和写。目的是通过uart接口来控制开发板。目前这两个task都可以运行了,收发都正常。

但目前收到命令之后的处理好像不对,请专家们帮忙看一下。以scan为例:

pc通过uart接口发给开发板scan start命令,开发板这边读到之后,调用multi_role.c里面的mr_doScan。然后我的理解,正常情况下,scan会启动,并陆续收到广播包或者scan response包。但是目前我这边在mr_doScan里面的if (linkDB_NumActive() < maxNumBleConns)处就卡住了。请问这是为什么?如何解决?另外不知道我这样的做法有没有什么不妥的地方,所以如果有什么其他的建议,也欢迎提出,谢谢!

附带提一下,uart读task初始化的时候已经注册到ICall了:ICall_registerApp(&selfEntity, &syncEvent);