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: 协调器创建网络,网络创建问题

Part Number: CC2530

程序下载首次运行

调用 bdb_StartCommissioning(BDB_COMMISSIONING_MODE_NWK_FORMATION | BDB_COMMISSIONING_MODE_FINDING_BINDING);

并判断 bdbAttributes.bdbNodeIsOnANetwork。

当 bdbAttributes.bdbNodeIsOnANetwork = FLALSE;

FORMATION 操作会提示成功 也就是 BDB_COMMISSIONING_SUCCESS;

重新启动设备

变量bdbAttributes.bdbNodeIsOnANetwork已被设为TRUE并写入设备;

调用 bdb_StartCommissioning(BDB_COMMISSIONING_MODE_NWK_FORMATION | BDB_COMMISSIONING_MODE_FINDING_BINDING);

会有一个 恢复网络操作,

并返回

mode -> BDB_COMMISSIONING_INITIALIZATION;

status -> BDB_COMMISSIONING_NETWORK_RESTORED;

同时返回一个 

mode -> BDB_COMMISSIONING_FORMATION;

status -> BDB_COMMISSIONING_FORMATION_FAILURE;

所以我有一个疑问,网络创建成功的具体判断依据是什么?

有能方便告知的吗?