Starting commissioner gives error in thread example

Hi,

I am programming a commissioner through Openthread's API on the older thread and zigbee SDK and I can't seem to get it up and running.

No matter what I try I seem to get this error: <error> app: Failed to start Thread Commissioner: 24

Currently I have set up all my network parameters and started the thread network on the device before calling otCommissionerStart(); which ends up giving me that error.

Does anyone know what the error means and maybe what I could be doing wrong?

Thanks,
Glen

  • Hi, 

    No matter what I try I seem to get this error: <error> app: Failed to start Thread Commissioner: 24

    Currently I have set up all my network parameters and started the thread network on the device before calling otCommissionerStart(); which ends up giving me that error.

    The error code 24 in OpenThread corresponds to OT_ERROR_BUSY, which means that the operation failed because the commissioner is already active. This error can occur if you're trying to start the commissioner when it's already running.
    Here are a few things you could check:
    1. Ensure that the commissioner is not already active before calling otCommissionerStart(). You can check the state of the commissioner using the otCommissionerGetState() function. If the commissioner is already active, you may need to stop it using otCommissionerStop() before starting it again.
    2. Make sure that the device is properly connected to the Thread network before starting the commissioner. You can check the device's role in the network using the otThreadGetDeviceRole() function.
    3. Check if there are any other operations in progress that could be causing the commissioner to be busy. For example, if you're in the process of adding a joiner to the commissioner's allowlist, you may need to wait for that operation to complete before starting the commissioner.

    Regards,
    Amanda H.

Related