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.

CC2630周期性发送数据出现卡顿现象



利用HA中SampleDoorLockController的例程,添加了一个定时任务,

       Util_constructClock(
          &send_dataHandler,
          DLCSApp_processsend_dataCallback,
          10,
          10,
          false,
          0);

通过按键启动时钟Util_startClock(&send_dataHandler);接着在回掉函数里  触发发送数据事件:

static void DLCSApp_processsend_dataCallback(UArg a0)      
{
     (void)a0; // Parameter is not used

    events |= DLCSAPP_SEND_DATA;
//    // Wake up the application thread when it waits for clock event
    Semaphore_post(sem);
}

在事件DLCSAPP_SEND_DATA利用zcl_SendCommand()发送数据

问题:1.整个任务都是在ZCL_EZMODE下,发送的数据不是很规律的周期性发,有卡顿好像被什么时间占用而推迟了,有人了解么?

      2.Util_constructClock中第3,4个数据不是特别懂,并不像是定时的时间,求解答!