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.

zigbee 数据包超过128个字节该如何

要发送的zigbee 数据包超过128个字节协议栈会自动分包吗?还是需要自己设计?

  • 自动拆包的程序以及library提供,在发送数据的时候会自动封装好拆分的数据包。

    if (len > afDataReqMTU( &mtu ) )
    {
    if (apsfSendFragmented)
    {
    stat = (*apsfSendFragmented)( &req );
    }
    else
    {
    stat = afStatus_INVALID_PARAMETER;
    }
    }
    else
    {
    stat = APSDE_DataReq( &req );
    }

    可以参考论坛帖子 http://www.deyisupport.com/question_answer/wireless_connectivity/zigbee/f/104/t/52847.aspx

  • 可是接收不到大于128个字节的数据

  • 是全收不到还是只能接收到一部分?

  • 还是谢谢了,问题解决了,是可以收到完整的数据的,我在sniffer里看到ERR以为没有数据接收到!!

  • 您好,

          我遇到的问题是,发送广播包的数据长度超过了最大数据长度,但是执行函数stat = (*apsfSendFragmented)( &req );返回了错误值,通过协议分析仪抓包也没有看到无线数据发送出来。也就是说,广播包不能自动拆包传输,这个问题该如何解决?

    请指教,谢谢!!