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.

CC2642R: 多任务下,手机不能发现蓝牙

Part Number: CC2642R


尊敬的TI工程师你好:

我使用的是CC2642,在工程里创建了两个任务,当同时使用两个任务的时候,手机就不能发现蓝牙任务。当只使用SimplePeripheral_createTask()任务时,手机就可以发现蓝牙,是多任务情况下自己创建的任务会影响SimplePeripheral_createTask()任务嘛?

  • 您好:

    TI-RTOS提供抢占式多线程,从您的描述来看您的程序出现了与您预想不同的结果,可能原因如下:

    1.您创建的任务的优先级可能与SimplePeripheral_createTask()相同(SimplePeripheral_createTask()的优先级默认为1)。

    2.您在执行SimplePeripheral_createTask()任务后开启了您的新任务,导致新任务抢占了您的旧任务。