Topic

FAQ
Login Register
8258 unit period 时长定义
Apr 25, 2024 11:45

/

A

/A

你好。

在802.15.4SDK里面的tl_zb_mac_pib.h里面,给出了indirect 传输timeout的定义

u16 transactionPersistenceTime;//! The maximum time (in unit periods) that a transaction is stored by a coordinator and indicated in its beacon.


在zb_config.h里面,他的缺省值是500

transactionPersistenceTime = 0x01f4 //=500


请问一下这里面解释的'in unit periods'的单位是多少?秒?1/10秒?还是其他和时钟相关的单位

谢谢




cosame [Author] Apr 26, 2024 09:44
0
/A

谢谢回答。


#define ZB_BEACON_INTERVAL_USEC 15360 /* in microseconds */

#define TL_SUPERFRAMETIME_TO_US(n) (n * ZB_BEACON_INTERVAL_USEC)


15360 * 500 = 7,680,000

这样就是7.68秒。这么计算对么?

3 replies
TL_Soyo Apr 25, 2024 17:20
0
/A

你好,

  15.4里面的超帧时间,可以用TL_SUPERFRAMETIME_TO_US()换算成us。

cosame [Author] Apr 26, 2024 09:44
0
/A

谢谢回答。


#define ZB_BEACON_INTERVAL_USEC 15360 /* in microseconds */

#define TL_SUPERFRAMETIME_TO_US(n) (n * ZB_BEACON_INTERVAL_USEC)


15360 * 500 = 7,680,000

这样就是7.68秒。这么计算对么?

Related topics
No related topics