请教下,AOA的广播包发送间隔是100ms,如果不改rtls_example.py,在程序中应该在哪里更改广播包发送机间隔?谢谢
Alvin Chen:
据我所知只能在rtls_example.py修改。
dev.ti.com/…/node
user5995410:
回复 Alvin Chen:
这个广播间隔是master发给slaver设备的吧,最小可设置为7.5ms么?没有用过python,感觉改那个感觉会比较麻烦。谢谢
Alvin Chen:
回复 user5995410:
你说的7.5MS是最小连接间隔。
广播间隔为Advertising Interval: 20ms to 10.24sPeriodic advertising; also called Connectionless CTE
Connection; also called Connection CTEConstant Tone Extension (CTE)
The constant tone extension is a section of consecutive 1's without whitening, which is effectively a +250kHz wave on top of the carrier wave. In the Bluetooth Core Specification Version 5.1, both periodic advertising packets and connection packets can contain a constant tone extension(CTE) after the CRC. The CTE can only be sent using uncoded PHY.我们使用的Connection CTE 理论上可以做到7.5ms
Alvin Chen:
回复 Alvin Chen:
更正之前的回复,是可以通过RTLSCtrl_setAoaParams去设置slave 的aoa参数的。
void RTLSCtrl_setAoaParams(uint8_t *pParams)
Alvin Chen:
回复 Alvin Chen:
在python 脚本里面为:if aoa_supported:# Find the role based on capabilities of sending noderole = 'AOA_MASTER' if sending_node.capabilities.get('RTLS_MASTER', False) else 'AOA_PASSIVE'# Send AoA paramssending_node.rtls.aoa_set_params(role, aoa_run_mode,aoa_cte_scan_ovs,aoa_cte_offset,aoa_cte_time)
Alvin Chen:
回复 Alvin Chen:
samples_per_burst = 256 # Should be dividable by 16. Hint: in a 100ms interval, there are about 300~ samples
这个参数可以通过RTLSCtrl_setTofParams
user5995410:
回复 Alvin Chen:
是的,就是connection cte的广播间隔。我是测试的AOA,没有用TOF,默认的好像是100ms吧,如果不在python里面改动,这个应该怎么改?谢谢
Alvin Chen:
回复 user5995410:
TOF 的间隔是100ms在脚本里可以看到。至于AOA的间隔设置我没在脚本中看到。aoa 和TOF的参数设置用的上面提到的两个函数
Alvin Chen:
回复 Alvin Chen:
发送间隔最小 7.5 ms如何更改我需要去问一下。
user5995410:
回复 Alvin Chen:
您觉得从字面意思理解,slave设备cte广播的间隔是不是就是这个connection interval?