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.

一些device失联一段时间后,发送Orphan Notification,协调器选择性回应Coord Realignment,是什么问题

Other Parts Discussed in Thread: CC2530

请问一下,这边用的是CC2530方案,弄了有30个device连接到协调器上,全部拿到很远的地方,让其失联一段时间,之后拿回来,所有的设备都发送Orphan Notification命令,协调器大部分会回应Coord Realignment,之后接管,正常入网上报数据,但是有一些设备一直发送Orphan Notification命令,网关没有回应,是不是网关已经把这些设备剔除了?有什么方法可以验证?

  • Coord Realignment回复是说明ZC还在覆盖范围就重新恢复了网络,部分设备无法收到,说明距离太远或者信号不好,拿进了试试。

    如果是3.0或者1.22a达到了child aging会从关联表踢掉。如果你没有修改timeout 值,这需要很长一段时间,

    但是你的现象基本属于第一种。

  • 关键是有部分设备,距离很近也不行,我奇了怪了,网关一点回应都没有
  • 你可以去读一下关联表,或者抓包分析。
    默认的child aging timeout为:

    // 256, // 8 256 minutes

    // Child aging management default values
    // Values are specified in table of nwk_globals.h module
    //timeoutValue[15]
    // 10, // 0 10 seconds
    // 2, // 1 2 minutes
    // 4, // 2 4 minutes
    // 8, // 3 8 minutes
    // 16, // 4 16 minutes
    // 32, // 5 32 minutes
    // 64, // 6 64 minutes
    // 128, // 7 128 minutes
    // 256, // 8 256 minutes
    // 512, // 9 512 minutes
    // 1024, // 10 1024 minutes
    // 2048, // 11 2048 minutes
    // 4096, // 12 4096 minutes
    // 8192, // 13 8192 minutes
    // 16384 // 14 16384 minutes
    //
    // This value is used by the parent ROUTER
    #if !defined ( NWK_END_DEV_TIMEOUT_DEFAULT )
    #define NWK_END_DEV_TIMEOUT_DEFAULT 8 // Default value per ZigBee core specification is 8
    #endif


    //Timeout after which an EndDevice will be removed from from the indirect MAC messages queue
    // NOTE: End devices which poll rate is slower than this will not receive the leave request
    #if !defined ( NWK_END_DEVICE_LEAVE_TIMEOUT )
    #define NWK_END_DEVICE_LEAVE_TIMEOUT 9
    #endif

    // Value used by END DEVICE when sending End Device Timeout Request
    // This is an index into table timeoutValue[] defined in nwk_globals.c
    #if !defined ( END_DEV_TIMEOUT_VALUE )
    #define END_DEV_TIMEOUT_VALUE 8 // Default value per ZigBee core specification is 8