Part Number:LAUNCHXL-CC26X2R1
使用的仅master和slave两块板子做的调试, BOOSTXL-AOA接在master上,且master已经修改了c51使用外置天线
按文档修改了master的rtlsConfig结构 rtlsConfig.rtlsCapab = (rtlsCapabilities_e)(RTLS_CAP_RTLS_MASTER | RTLS_CAP_AOA_RX);
修改了 rtfs_example_with_tls_util.py中的天线配置参数
"aoa_cc26x2": {"aoa_slot_durations": 1,"aoa_sample_rate": 1,"aoa_sample_size": 1,"aoa_sampling_control": int('0x10', 16),## bit 0- 0x00 - default filtering, 0x01 - RAW_RF no filtering,## bit 4,5 - default: 0x10 - ONLY_ANT_1, optional: 0x20 - ONLY_ANT_2"aoa_sampling_enable": 1,"aoa_pattern_len": 3,"aoa_ant_pattern": [0, 1, 2] }
运行之后看日志输出,antenna 一直是1 没有做天线切换,按配置是在A1.1\A1.2\A1.3天线之间切换采样,是配置问题还是其他问题呢?
Kevin Qiu1:
是按照Task 1 – Running the AoA application中的Option 3操作的吗,python配置没有问题
用RTLS UI看一下显示信息
,
Conghao Hu:
对的,按 Task 1 – Running the AoA application 中的 Option 3 操作的,我尝试过了使用RTLS UI,在Logs只中同样只能看到 ant1
,
Kevin Qiu1:
有角度且在变化说明天线是在切换的,这里所有的 ant代表的应该不是天线标号,而是天线组1
你可以按照Task 2 – Modify AoA application to use the other antenna array修改为天线组2看下结果
https://dev.ti.com/tirex/explore/node?node=AHYhhuDNTaRXzkOlahOlvA__pTTHBmu__LATEST
,
Conghao Hu:
所以我需要如何获取每根天线的iq值数据,而不是直接取到一组天线数据,我需要计算每两根天线之间的相位差
,
Conghao Hu:
是否方便回复下这个问题
,
Kevin Qiu1:
上面的的链接中有说明如何导出IQ数据并计算相位差,默认设置天线采样顺序是0,1,2
,
Conghao Hu:
[2021-07-05 13:46:47,274] root – INFO – PASSIVE : 80:6F:B0:EE:B1:23 –> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -66, 'antenna': 1, 'channel': 4, 'offset': 32, 'samplesLength': 512, 'samples': [{'q': -649, 'i': 17}, {'q': -592, 'i': 300}, {'q': -450, 'i': 603}, {'q': -240, 'i': 837}, {'q': 85, 'i': 982}, {'q': 419, 'i': 956}, {'q': 773, 'i': 753}, {'q': 996, 'i': 450}, {'q': 1094, 'i': 38}, {'q': 1006, 'i': -385}, {'q': 778, 'i': -716}, {'q': 401, 'i': -971}, {'q': 14, 'i': -1071}, {'q': -413, 'i': -1010}, {'q': -766, 'i': -780}, {'q': -981, 'i': -458}, {'q': -1071, 'i': -29}, {'q': -999, 'i': 329}, {'q': -750, 'i': 616}, {'q': -416, 'i': 724}, {'q': -4, 'i': 695}, {'q': 348, 'i': 558}, {'q': 552, 'i': 383}, {'q': 660, 'i': 148}, {'q': 658, 'i': -85}, {'q': 569, 'i': -338}, {'q': 400, 'i': -535}, {'q': 193, 'i': -638}, {'q': -81, 'i': -651}, {'q': -325, 'i': -568}, {'q': -553, 'i': -369}, {'q': -674, 'i': -122}]}}
[2021-07-05 13:46:47,290] root – INFO – PASSIVE : 80:6F:B0:EE:B1:23 –> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -66, 'antenna': 1, 'channel': 4, 'offset': 96, 'samplesLength': 512, 'samples': [{'q': -1093, 'i': -36}, {'q': -1046, 'i': 327}, {'q': -797, 'i': 615}, {'q': -459, 'i': 729}, {'q': -41, 'i': 698}, {'q': 276, 'i': 583}, {'q': 510, 'i': 398}, {'q': 615, 'i': 181}, {'q': 621, 'i': -32}, {'q': 546, 'i': -270}, {'q': 408, 'i': -450}, {'q': 183, 'i': -586}, {'q': -85, 'i': -631}, {'q': -323, 'i': -582}, {'q': -551, 'i': -428}, {'q': -681, 'i': -207}, {'q': -699, 'i': 74}, {'q': -581, 'i': 279}, {'q': -294, 'i': 360}, {'q': 65, 'i': 258}, {'q': 333, 'i': 57}, {'q': 467, 'i': -200}, {'q': 416, 'i': -387}, {'q': 224, 'i': -511}, {'q': 11, 'i': -544}, {'q': -213, 'i': -500}, {'q': -388, 'i': -377}, {'q': -490, 'i': -205}, {'q': -540, 'i': 27}, {'q': -506, 'i': 236}, {'q': -364, 'i': 412}, {'q': -148, 'i': 494}]}}麻烦问下这样一行数据代表的是什么呢?
,
Kevin Qiu1:
这就是采集到数据内容,重要的就是RSSI IQ,前面的标识就是数据的类型