找回密码
 立即注册

微信扫码登录

查看: 195|回复: 7

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

[复制链接]

11

主题

11

回帖

187

积分

荣耀黄金

积分
187
发表于 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 ?

27

主题

212

回帖

699

积分

版主

积分
699
发表于 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?

11

主题

11

回帖

187

积分

荣耀黄金

积分
187
 楼主| 发表于 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.

27

主题

212

回帖

699

积分

版主

积分
699
发表于 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);
复制代码

11

主题

11

回帖

187

积分

荣耀黄金

积分
187
 楼主| 发表于 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?

27

主题

212

回帖

699

积分

版主

积分
699
发表于 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);
复制代码

11

主题

11

回帖

187

积分

荣耀黄金

积分
187
 楼主| 发表于 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 ?

27

主题

212

回帖

699

积分

版主

积分
699
发表于 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 ( 沪ICP备17008231号-1 )

GMT+8, 2025-1-19 20:55 , Processed in 0.083842 second(s), 20 queries .

Powered by Telink 隐私政策

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

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