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.

CC2530: BDB stop commissioning procedure

Part Number: CC2530


Hello,

I am developing a router application on ZSTACK 3.0.1. Could anyone suggest me a way how to stop BDB commissioning procedure after starting it. So far I see that bdb commissioning procedure is automatically stopped after one cycle of network discovery scan is finished (primary + secondary channels). That is fine but I would like to stop it immediately after button is pressed and not to wait whole network discovery cycle to finish. So far I did not find such function in BDB API.

Best Regards

  • Hello,

    This isn't commissioning then, exactly what part of network steering would you like to perform after a button press? If you want to only initialize then call bdb_StartCommissioning without any commissioning modes, otherwise you should evaluate ZDOInitDeviceEx and ZDO_StartDevice to figure out exactly what you would like to achieve.

    Regards,
    Ryan
  • Hello,

    to be more precise, after appTask initialization network steering is started via button press - bdb_StartCommissioning( BDB_COMMISSIONING_MODE_NWK_STEERING ). If node is not already joined to any ZigBee network network discovery will be finished after several seconds with status BDB_COMMISSIONING_NO_NETWORK received in RS_ProcessCommissioningStatus(...). I want to stop joining process(when joining is already started) immediately after button is pressed and not to wait several seconds to get commissioning status in RS_ProcessCommissioningStatus(...) callback.

    So, I wonder if there is a way to cancel on going joining process immediately - like in EZ-MODE where state machine is canceled if it is re-triggered.

  • Hi,

    There is no API for stopping BDB commissioning after it has begun, however you can control the amount of time in which this process occurs with the BDBC_REC_SAME_NETWORK_RETRY_ATTEMPS, BDB_DEFAULT_[PRIMARY/SECONDARY]_CHANNEL_SET, and BDB_DEFAULT_SCAN_DURATION macros inside bdb_interface.h

    Regards,
    Ryan