找回密码
 立即注册

微信扫码登录

查看: 5671|回复: 2

Fragmentation

[复制链接]

1

主题

0

回帖

19

积分

英勇黄铜

积分
19
发表于 2024-10-11 14:35:17 | 显示全部楼层 |阅读模式 来自 美国
Hello,


We have a working Zigbee router application and need to support to transmit larger packets which will require adding fragmentation.  How can we enable fragmentation?  Is there any documentation on this?

I'm guessing I need to change APS_MAX_WINDOW_SIZE from 1 to a larger value.  Anything else?

Thank you.

27

主题

331

回帖

1069

积分

版主

积分
1069
发表于 2024-10-11 15:49:11 | 显示全部楼层 来自 上海
Hi,
This parameter APS_MAX_WINDOW_SIZE does not need to be modified.
When sending a message, simply set its corresponding bit to 1, like as
epInfo_t dstEpInfo;
memset((u8 *)&dstEpInfo, 0, sizeof(epInfo_t ));

dstEpInfo.txOptions |= APS_TX_OPT_FRAG_PERMITTED;

...

af_dataSend(...);



3

主题

3

回帖

111

积分

荣耀黄金

积分
111
发表于 2026-6-13 19:05:22 | 显示全部楼层 来自 美国
Hello, I’m dealing with this exact same scenario! I am trying to send a 120-byte message to my coordinator.

At first, I only set the flags: dstEpInfo.txOptions |= (APS_TX_OPT_ACK_TX | APS_TX_OPT_FRAG_PERMITTED); but the transmission still failed.

I finally got it working, but only after I changed my APS_MAX_WINDOW_SIZE setting to 2.

Does anyone know why modifying the window size was the magic fix for this? I want to make sure I understand the underlying APS logic so I don't run into memory or routing issues down the road.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Telink forum ( 沪ICP备17008231号-1 |沪公网安备31011502403548号 )

GMT+8, 2026-7-10 22:48 , Processed in 0.081970 second(s), 22 queries .

Powered by Discuz! 隐私政策

泰凌微电子版权所有 © 。保留所有权利。 2024

快速回复 返回顶部 返回列表