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.

[参考译文] CC1352R:ZStack 和 ApiMac 的能力信息结构差异

Guru**** 2465890 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/1158364/cc1352r-zstack-and-apimac-capabilityinfo-structure-difference

器件型号:CC1352R

为什么 ZStack_CapabilityInfo_t 结构没有"allocAddr"位、

/** Structure defines the Capabilities Information bit field. */
typedef struct _zstack_capabilityinfo_t
{
    /** True if the device is a PAN Coordinator */
    bool panCoord;
    /** True if the device is a full function device (FFD) */
    bool ffd;
    /** True if the device is mains powered */
    bool mainsPower;
    /** True if the device's RX is on when the device is idle */
    bool rxOnWhenIdle;
    /** True if the device is capable of sending and receiving secured frames
      */
    bool security;
} zstack_CapabilityInfo_t;

但 ApiMac_capabilityInfo_t 结构具有它吗?

typedef struct _apimac_capabilityinfo
{
    /*! True if the device is a PAN Coordinator */
    bool panCoord;
    /*! True if the device is a full function device (FFD) */
    bool ffd;
    /*! True if the device is mains powered */
    bool mainsPower;
    /*! True if the device's RX is on when the device is idle */
    bool rxOnWhenIdle;
    /*! True if the device is capable of sending and receiving secured frames
     */
    bool security;
    /*!
     True if allocation of a short address in the associate procedure
     is needed.
     */
    bool allocAddr;
} ApiMac_capabilityInfo_t;

这是否意味着我无法处理中的 caped_alLOC_ADDR 位

         案例 zstackmsg_CmdIDs_ZDO_DEVICE_INSAFLEVED:
         {
             zstackmsg_zdoDeviceAnnounced_t * Pind;

因为 ZStack_CapabilityInfo_t 结构没有该位?

尽管我看到设备通知消息中的位已设置。

但我在 zstackmsg_CmdIDs_ZDO_DEVICE_RECORELETE 事件中接收 Capinfo = 0x0E、最高位未设置。

为什么不包含它?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Alex:

    如描述中所述、allocAddr 是 关联过程中短地址的分配。  它是 Zigbee 规范要求的、并由底层 IEEE 802.15.4 MAC 层控制。   您将无法针对  zstackmsg_CmdIDs_ZDO_DEVICE_INouncate 评估此位、同时即使重新加入 Zigbee 器件、此位也始终为真、因此它不应为应用提供任何优势。

    此致、
    Ryan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    感谢您的回答!