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.

协调器创建网络的问题



当协议栈中,协调器选择默认的信道DDEFAULT_CHANLIST=0x00000800  // 11 - 0x0B

创建网络的时候,协调器创建的信道就是oxob,如果另外一个协调器也使用默认的信道,那么创建的也还是oxob的信道,只是PANID不一样;

当多个协调器都用这个默认配置的时候,协调器创建网络也都是在这个信道上,有没有什么接口或者内部会自动扫描信道后,自动更换成其他的信道?

  • MAC_MlmeScanReq()去执行信道扫描

    扫描方式

    MAC_SCAN_ACTIVE   /* Active scan.  The device tunes to each channel, sends a beacon
                                                 request and listens for beacons.  The PAN descriptors are returned
                                                 at the end of the scan */

    如果有其他设备回复,说明信道被占用,可以切换到其他信道。

  • 这个扫描要在协议栈的哪部分添加?还是内部已经有执行这部分了??

  • 这个扫描是协调器创建网络前,会自己去扫描么???

    还是得自己写代码?