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: TIMAC - When changing the channel, how do I know the operation has been completed?

Part Number: CC2630

Is there a way to get a callback or read some kind of flag indicating that the MAC channel has changed after execution of the following code:

uint8_t channel = 20;
MAC_MlmeSetReq(MAC_LOGICAL_CHANNEL, &channel);

My code is sending messages on the old channel even though I'm tuning the radio to the new channel using the code above prior to sending the message.

  • Hi,

    If there is an active TX, then the channel change occurs after that TX completes.

    What is the return value of MAC_MlmeSetReq?

    Another check is using MAC_MlmeGetReq to see if the logical channel was changed to the desired value in the PIB.



    Regards,
    Toby