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.

[参考译文] LAUNCHXL-CC1310:CC1310:安全问题:commStatusIndCB 原因 ApiMac_commStatusReason_rxSecure

Guru**** 2343840 points
Other Parts Discussed in Thread: CC1310, SYSCONFIG
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1501498/launchxl-cc1310-cc1310-security-problem-commstatusindcb-reason-apimac_commstatusreason_rxsecure

器件型号:LAUNCHXL-CC1310
Thread 中讨论的其他器件:CC1310SysConfig

工具/软件:

您好:

重要事项: 我们在非信标模式下使用 SDK simplelink_cc13x0_SDK_2_30_00_20和 CC1310、并禁用 FH。

收集器示例可以获得的方法。

/*!
 * @brief      Process the MAC Comm Status Indication Callback
 *
 * @param      pCommStatusInd - Comm Status indication
 */
static void commStatusIndCB(ApiMac_mlmeCommStatusInd_t *pCommStatusInd)
{
    if(pCommStatusInd->reason == ApiMac_commStatusReason_assocRsp)
    {
        if(pCommStatusInd->status != ApiMac_status_success)
        {
            Cllc_associated_devices_t *pDev;

            pDev = findDevice(&pCommStatusInd->dstAddr);
            if(pDev)
            {
                /* Mark as inactive and clear config and tracking states */
                pDev->status = 0;
            }
        }
    }
}


例如、收集器具有此 pCommStatusInd 如果传感器与协调器建立了正确的关联、则您具有正确的->原因、并且可以。
但是,如果节点具有 association 和 coordinador 的信息,原因会变为 ApiMac_commStatusReason_rxSecure ,然后我尝试将设备添加到安全表中,并尝试将设备信息添加到 coordinator 中,但对我来说唯一可行 的是断开节点和 asossiate。

为什么我不能 取消 传感器的关联并 再次关联?
您可以尝试重复此操作、停止收集器进程(在 Linux 中运行、而不是在嵌入式)、删除 nv-simulation.bin 并再次启动收集器、然后您会看到 securiry.c 的问题

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

    尊敬的 Matheus:

    出现此安全错误的原因是、两个设备都需要存储关联信息才能无缝重新连接。 如果只有一个设备包含信息、则会导致安全错误。


    要在网络运行时断开传感器与堆栈的连接,您可以从收集器向传感器发送不关联请求: cllc.c: Cllc_sendDisassociationRequest ()。

    如果要手动断开两个设备、则需要清除传感器和收集器上的 NV 闪存(csf.c: csf_clearAllNVItems ();)

    或者,您也只能使用 csv.c: removeTheFirstDevice ()中显示的机制擦除传感器的 NV 并从收集器网络表中删除传感器。

    此致、
    Theo

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

    您好 Theo、

    感谢您的评分。

    有趣,但真正的问题是: 不可能,返回这个信息收集器(网关)? 不 发送 Disassocation 请求(Cllc_sendDisassociationRequest ())或清除传感器设备中的 Nv。

    我不知道 ApiMac 是否允许它。  

     此致、

    马修斯  

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

    尊敬的 Matheus:

    感谢您的澄清。

    收集器将在下一个跟踪间隔中意识到传感器无响应、因为它不会响应跟踪请求。 此间隔可在 SysConfig 中配置。

    您可以查看 collector.c: generateTrackingRequests()并修改跟踪错误/超时的处理,以删除无响应传感器的设备信息。  

    此致、
    Theo