|
查看: 3814|回复: 7

How to adjust period of "Route Request" command of sampleLight ?

[复制链接]

33

主题

27

回帖

487

积分

璀璨钻石

积分
487
发表于 2024-12-30 19:04:36 | 显示全部楼层 |阅读模式 来自 韩国
information
说明:   建议参照本版块置顶帖内容输入必要信息
芯片型号: TLSR8258
SDK及版本: zigbee_ble_concurrent_sdk_v2.4.0.0
本帖最后由 jylee@kme21.com 于 2024-12-31 14:16 编辑

How to adjust period of "Route Request" (NWK_CMD_ROUTE_REQUEST) command of sampleLight ?

How to send "Route Request" command  (NWK_CMD_ROUTE_REQUEST) periodic on sampleLight ?

29

主题

364

回帖

1167

积分

版主

积分
1167
发表于 2024-12-31 20:23:07 | 显示全部楼层 来自 上海
本帖最后由 TL_YB 于 2024-12-31 20:25 编辑

When the protocol stack network layer receives data from the upper layer, it will check the destination address and decides whether to send AODV routing requests.

Are you referring to periodic broadcast sending MTO requests?

33

主题

27

回帖

487

积分

璀璨钻石

积分
487
 楼主| 发表于 2025-1-2 07:23:03 | 显示全部楼层 来自 韩国
本帖最后由 jylee@kme21.com 于 2025-1-2 10:20 编辑
TL_YB 发表于 2024-12-31 20:23
When the protocol stack network layer receives data from the upper layer, it will check the destinat ...

yes. i want periodic.
and I want to adjust the periodic times when a coordinator is connected and disconnected.

29

主题

364

回帖

1167

积分

版主

积分
1167
发表于 2025-1-2 19:51:22 | 显示全部楼层 来自 上海
You can adjust the MTO periodic time of the Coordinator by following these steps,
1. set NWK_NIB().concentratorDiscoveryTime to the new value as needed, the unit is seconds.
2. call the zb_routeDiscReq() function to restart the MTO periodic timer.
  1. nlme_routeDisc_req_t req;
  2. req.dstAddrMode = ZB_ADDR_NO_ADDR;
  3. req.dstAddr = 0xFFFC;
  4. req.radius = NWK_NIB().concentratorRadius;
  5. req.noRouteCache = NWK_ROUTE_RECORD_TABLE_SIZE ? FALSE : TRUE;
  6. zb_routeDiscReq(&req);
复制代码

33

主题

27

回帖

487

积分

璀璨钻石

积分
487
 楼主| 发表于 2025-1-3 07:13:55 | 显示全部楼层 来自 韩国
TL_YB 发表于 2025-1-2 19:51
You can adjust the MTO periodic time of the Coordinator by following these steps,
1. set NWK_NIB().c ...

Is there any way to send "Route Request" command (NWK_CMD_ROUTE_REQUEST) from sampleLight?

29

主题

364

回帖

1167

积分

版主

积分
1167
发表于 2025-1-3 09:37:33 | 显示全部楼层 来自 上海
simpleLight does not support MTO, and a destination address must be specified.
  1. nlme_routeDisc_req_t req;
  2. req.dstAddrMode = ZB_ADDR_16BIT_DEV_OR_BROADCAST;
  3. req.dstAddr = 0x0000;//coordinator
  4. req.radius = 0;
  5. req.noRouteCache = 1;
  6. zb_routeDiscReq(&req);
复制代码

33

主题

27

回帖

487

积分

璀璨钻石

积分
487
 楼主| 发表于 2025-1-8 10:03:05 | 显示全部楼层 来自 韩国
TL_YB 发表于 2025-1-3 09:37
simpleLight does not support MTO, and a destination address must be specified.

It is not effected.

Currently, sampleLight send "Route Request" every 1minutes(60 seconds) when coordinator is detected.
Can I change this time to every 10 seconds when coordinator is connected and not connected ?

29

主题

364

回帖

1167

积分

版主

积分
1167
发表于 2025-1-8 15:08:35 | 显示全部楼层 来自 上海
The sampleLight does not support periodic MTO routing,
you can create a timer task to send AODV routing requests.

本版积分规则

关注公众号
隐私政策|Telink forum

相关侵权、举报、投诉及建议等,请发 E-mail:forum@telink-semi.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.|沪ICP备17008231号-1 |沪公网安备31011502403548号

在本版发帖返回顶部