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.

[参考译文] CC2652P:收藏品演示 CAN#39;t 关联其他收藏品

Guru**** 2589280 points
Other Parts Discussed in Thread: SIMPLELINK-CC13X2-26X2-SDK

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

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/969304/cc2652p-collecter-demo-can-t-associate-other-collecter

器件型号:CC2652P
主题中讨论的其他器件:SIMPLELINK-CC13X2-26X2-SDK

大家好、TI 团队

我使用15.4 stack .sdk simplelink_cc13x2_26x2_sdk_4_20_00_35

我想使用 collector Demo 将其他 collector.但是我发现 collector Demo 调用 ApiMac_mlmeAssociateReq (&assocReq)无法成功。

传感器演示可以将成功与关联起来。

我的收款人代码:

void WPAN_mlme_associate_req (uint8_t 逻辑通道、
uint8_t ChannelPage、
ApiMac_sAddr_t *CoordAddrSpec、
bool 能力信息、
uint16_t PANID)
{
ApiMac_mlmeAssociateReq_t Associate_req;

associate_req.sec.securityLevel = ApiMac_sectionLevel_none;
Associate_req.logicalChannel = 11/*LogicalChannel*/;
associate_req.channelPage = 0/*ChannelPage*/;
Associate_req.phyID = CONFIG_PHY_ID;

Associate_req.coordAddress.addrMode = ApiMac_addrType_short/*CoordAddrSpec->addrMode*/;
Associate_req.coordAddress.addr.shortAddr = 12/*CoordAddrSpec->addr.shortAddr*/;
//memcpy (associate_req.coordAddress.addr.extAddr、&CoordAddrSpec->addr.extAddr、APIMAC_SADDR_EXT_LEN);
Associate_req.coordPanId = 1/* PANID*/;
associate_req.capabilityInformation.allocAddr = true/*CapabilityInformation*/;
associate_req.capabilityInformation.ffd = false;
associate_req.capabilityInformation.mainsPower = false;
associate_req.capabilityInformation.panCoord = false;
associate_req.capabilityInformation.rxOnWhenIdle = true;
associate_req.capabilityInformation.security = false;
ApiMac_mlmeAssociateReq (&associate_req);
} 

 关联确认回调状态0x18、我不知道错误代码。

collector 项目是否无法使用 ApiMac_mlmeAssociateReq()?

传感器演示调用 ApiMac_mlmeAssociateReq (&associate_req):

收集器调用 ApiMac_mlmeAssociateReq (&associate_req):

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

    您好、Liu、

    15.4-Stack 仅在星形网络中运行、其中多个终端节点(即传感器)仅连接到中央节点(即收集器)。  因此、在单个网络中不能有多个收集器相互连接。  收集器无法请求关联、这就是为什么在 ApiMac_mlmeAssociateReq 上返回 ApiMac_STATUS_UNSUPPORTED (0x18)状态的原因。  如果您需要2.4GHz 网状网络(使用多个互连的路由器件)、Zigbee 或 Thread 堆栈是更好的替代方案。  如 需更多信息、请浏览 SIMPLELINK-CC13X2-26X2-SDK TIREx 文档

    此致、
    Ryan