Part Number:LAUNCHXL-CC26X2R1Other Parts Discussed in Thread:SYSCONFIG
最近,我做了一些实验,关于如何控制16天线的的阵列问题。我修改了一些配置按照你们所介绍的产品,但是好像不能工作。这个问题应该是在于管脚的电压控制与天线之间的对应关系,按照四个二进制的数字排列组合,应该能够最最多控制16根天线,但是我感觉这个原理似乎和0到15个数字的对应关系不是完全陪陪的。至于为什要这么设计的问题提,我想关键的地方应该在于你们设计的原理是否清晰,天线的数量是可以改变的,同时天线的切换长度也是不受限制的。为什么只能在12根天线之内进行循环。所以这个问题还是不能够控制超过12根天线的天线阵列。
我得到了iq数据,但是我不知道这个iq到底来自那根天线。
首先我在那个code IDE 中导入工程,然后修改了配置。这个文件在iCallBLE 中的 ble_user_config.c文件中,需要修好天线个数,引脚配置以及最后定义的天线模式。
下面是我自己修改的配置。
#define ANTENNA_TABLE_SIZE 16 // BitMask of all the relevant GPIOs which needed for the antennas #define ANTENNA_IO_MASK BV(27)|BV(28)|BV(29)|BV(30) antennaIOEntry_t antennaTbl[ANTENNA_TABLE_SIZE] = {0,// antenna 1 GPIO configuration (all GPIOs in ANTENNA_IO_MASK are LOW)BV(27),// antenna 2BV(28),// antenna 3BV(27) | BV(28),// antenna 4BV(29),// antenna 5BV(27) | BV(29),// antenna 6BV(28) | BV(29),// antenna 7BV(27) | BV(28) | BV(29), // antenna 8BV(30),// antenna 9BV(27) | BV(30),// antenna 10BV(28) | BV(30),// antenna 11BV(27) | BV(28) | BV(30) // antenna 12BV(29) | BV(30),// antenna 13BV(27) | BV(29) | BV(30), // antenna 14BV(28) | BV(29) | BV(30), // antenna 15BV(27) | BV(28) | BV(29)| BV(30) // antenna 16 }; #endif //!defined(AOA_SYSCFG)
然后我又修改了python的控制天线的模式。具体代码如下。
def _angle_of_arrival(self, enable):if enable:aoa_params = {"aoa_run_mode": "AOA_MODE_RAW","aoa_cc26x2": {"aoa_slot_durations": self.angle_of_arrival_params.get('slot_duration', 2),"aoa_sample_rate": self.angle_of_arrival_params.get('sample_rate', 1),"aoa_sample_size": self.angle_of_arrival_params.get('sample_size', 1),"aoa_sampling_control": int('0x10' if self.angle_of_arrival_params.get('enable_filter', True) else '0x11', 16),"aoa_sampling_enable": 1,#"aoa_pattern_len": 32,#"aoa_ant_pattern": [0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 6, 7,#8, 9, 10, 11, 6, 7]"aoa_pattern_len": 12,"aoa_ant_pattern": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]}}
当天线数量定义少于12个,程序能够运行,并且能够得到iq值。
2022-04-26 09:35:28,330]root -INFO - Example Input Parameters ---------------------------------------------------------------------- Coordinator comport: COM8 Passive comports: None Connection monitor comports: None Active responder comports: None Responder BD Address: [] Scan time: 10 Sec Connection Interval: 100 mSec Enable Continues Connection Interval: No Enable Angle Of Arrival (AoA): YesAoA Enable Filter: YesAoA Slot Duration: 2AoA Sample Rate: 1AoA Sample Size: 1AoA CTE Length: 20AoA CTE Interval: 2 Data Collection Duration: 30 Data Collection iteration: 1 Provide Post Analyze Function: Yes Example Log Dir: I:\ti\simplelink_cc13xx_cc26xx_sdk_5_40_00_40\tools\ble5stack\rtls_agent\examples\rtls_connected_log Example Log File Name: 04_26_2022_09_35_28_rtls_connected.log ---------------------------------------------------------------------- [2022-04-26 09:35:28,330]root -INFO - Setting nodes : [2022-04-26 09:35:28,331]root -INFO - Message receiver started [2022-04-26 09:35:28,332]root -INFO - RTLS Manager started [2022-04-26 09:35:30,333]root -INFO - Done setting node [2022-04-26 09:35:30,333] rtlsnode -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_RESET_DEVICE', 'payload': None} [2022-04-26 09:35:30,363]root - WARNING - ConstError('parsing expected 254 but parsed 0') [2022-04-26 09:35:30,394]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_RESET_DEVICE', 'payload': {'raw_payload': ''}} [2022-04-26 09:35:30,435] rtlsnode -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-26 09:35:30,465]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:30,569]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -59, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-26 09:35:32,519]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:32,548] rtlsnode -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-26 09:35:32,579]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:32,654]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -59, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-26 09:35:34,604]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:34,663] rtlsnode -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-26 09:35:34,694]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:34,740]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -59, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-26 09:35:36,722]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:36,777] rtlsnode -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-26 09:35:36,820]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:36,820]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 0, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -66, 'advSID': 1, 'periodicAdvInt': 240, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-26 09:35:38,814]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:38,819] rtlsnode -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-26 09:35:38,849]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:38,939]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -62, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-26 09:35:40,889]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:40,935] rtlsnode -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_CONNECT', 'payload': {'addrType': 0, 'peerAddr': 'F8:8A:5E:2D:7B:9B', 'connInterval': 80}} [2022-04-26 09:35:40,965]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_CONNECT', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:41,039]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_CONN_PARAMS', 'payload': {'connHandle': 0, 'accessAddress': 1717503479, 'connRole': 8, 'connInterval': 160, 'hopValue': 10, 'mSCA': 0, 'currChan': 10, 'chanMap': [255, 255, 255, 255, 31], 'crcInit': 775606, 'peerAddr': 'F8:8A:5E:2D:7B:9B'}} [2022-04-26 09:35:42,135]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_CONNECT', 'payload': {'connHandle': 0, 'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:42,143]root -INFO - Connection process done [2022-04-26 09:35:42,143] rtlsnode -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_AOA_SET_PARAMS', 'payload': {'aoaRole': 'AOA_COORDINATOR', 'aoaResultMode': 'AOA_MODE_RAW', 'connHandle': 0, 'slotDurations': 2, 'sampleRate': 1, 'sampleSize': 1, 'sampleCtrl': 16, 'samplingEnable': 1, 'numAnt': 12, 'antArray': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]}} [2022-04-26 09:35:42,174]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_AOA_SET_PARAMS', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:42,244] rtlsnode -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_AOA_ENABLE', 'payload': {'connHandle': 0, 'enable': 1, 'cteInterval': 2, 'cteLength': 20}} [2022-04-26 09:35:42,275]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_AOA_ENABLE', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-26 09:35:42,344]root -INFO - AOA Started [2022-04-26 09:35:42,550]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -63, 'antenna': 0, 'channel': 2, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': -72, 'q': 0}, {'i': 4, 'q': -71}, {'i': 70, 'q': 26}, {'i': -19, 'q': 66}, {'i': -69, 'q': -12}, {'i': 10, 'q': -71}, {'i': 72, 'q': 16}, {'i': -16, 'q': 71}, {'i': -18, 'q': 71}, {'i': -77, 'q': 42}, {'i': -13, 'q': 35}, {'i': -54, 'q': -13}, {'i': -97, 'q': -52}, {'i': -63, 'q': -93}, {'i': -65, 'q': 7}, {'i': -55, 'q': -52}, {'i': -93, 'q': -8}, {'i': -25, 'q': -81}, {'i': -15, 'q': -9}, {'i': -18, 'q': 27}, {'i': -71, 'q': 24}, {'i': -78, 'q': -41}, {'i': -34, 'q': 8}, {'i': -31, 'q': -48}, {'i': -8, 'q': -115}, {'i': 48, 'q': -105}, {'i': -48, 'q': -43}, {'i': 14, 'q': -74}, {'i': -54, 'q': -86}, {'i': 44, 'q': -66}, {'i': -5, 'q': -20}, {'i': -38, 'q': -2}]}} [2022-04-26 09:35:42,556]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -63, 'antenna': 0, 'channel': 2, 'offset': 32, 'samplesLength': 45, 'samples': [{'i': -49, 'q': -54}, {'i': -11, 'q': -87}, {'i': -31, 'q': -24}, {'i': 19, 'q': -55}, {'i': 81, 'q': -73}, {'i': 109, 'q': -37}, {'i': 6, 'q': -64}, {'i': 66, 'q': -40}, {'i': 23, 'q': -89}, {'i': 78, 'q': 1}, {'i': 13, 'q': -14}, {'i': -17, 'q': -34}, {'i': -9, 'q': -72}]}} [2022-04-26 09:35:42,854]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -78, 'antenna': 0, 'channel': 32, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': -8, 'q': -2}, {'i': 2, 'q': -8}, {'i': 8, 'q': 2}, {'i': -3, 'q': 8}, {'i': -8, 'q': -3}, {'i': 4, 'q': -8}, {'i': 8, 'q': 4}, {'i': -5, 'q': 7}, {'i': -5, 'q': 8}, {'i': -10, 'q': -24}, {'i': 5, 'q': 7}, {'i': 13, 'q': -10}, {'i': 0, 'q': -69}, {'i': 10, 'q': -80}, {'i': -12, 'q': -14}, {'i': 9, 'q': -31}, {'i': 12, 'q': -22}, {'i': 41, 'q': -46}, {'i': 36, 'q': -14}, {'i': 26, 'q': -7}, {'i': -9, 'q': 2}, {'i': 8, 'q': -24}, {'i': 0, 'q': 8}, {'i': 17, 'q': 0}, {'i': 39, 'q': -54}, {'i': 49, 'q': -63}, {'i': 3, 'q': -19}, {'i': 31, 'q': -9}, {'i': 24, 'q': -8}, {'i': 62, 'q': -9}, {'i': 33, 'q': 21}, {'i': 23, 'q': 14}]}} [2022-04-26 09:35:42,860]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -78, 'antenna': 0, 'channel': 32, 'offset': 32, 'samplesLength': 45, 'samples': [{'i': -8, 'q': -3}, {'i': 23, 'q': -11}, {'i': -7, 'q': 4}, {'i': 9, 'q': 14}, {'i': 69, 'q': -4}, {'i': 81, 'q': 7}, {'i': 13, 'q': -13}, {'i': 31, 'q': 8}, {'i': 23, 'q': 11}, {'i': 47, 'q': 39}, {'i': 13, 'q': 36}, {'i': 7, 'q': 26}, {'i': -2, 'q': -9}]}} [2022-04-26 09:35:43,155]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -63, 'antenna': 0, 'channel': 25, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': 12, 'q': 76}, {'i': -78, 'q': 12}, {'i': -6, 'q': -82}, {'i': 75, 'q': -7}, {'i': 1, 'q': 77}, {'i': -77, 'q': 6}, {'i': -12, 'q': -76}, {'i': 76, 'q': -4}, {'i': 74, 'q': -5}, {'i': 38, 'q': 43}, {'i': 28, 'q': -15}, {'i': 27, 'q': 42}, {'i': 21, 'q': 64}, {'i': 41, 'q': 53}, {'i': 54, 'q': -1}, {'i': 1, 'q': 31}, {'i': 36, 'q': 91}, {'i': -23, 'q': 45}, {'i': -76, 'q': 32}, {'i': -122, 'q': -10}, {'i': 78, 'q': 2}, {'i': 33, 'q': 50}, {'i': 30, 'q': -16}, {'i': 24, 'q': 47}, {'i': 15, 'q': 70}, {'i': 28, 'q': 68}, {'i': 50, 'q': 21}, {'i': 6, 'q': 43}, {'i': 30, 'q': 98}, {'i': -20, 'q': 46}, {'i': -74, 'q': 33}, {'i': -115, 'q': -39}]}} [2022-04-26 09:35:43,166]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -63, 'antenna': 0, 'channel': 25, 'offset': 32, 'samplesLength': 45, 'samples': [{'i': 77, 'q': 9}, {'i': 26, 'q': 49}, {'i': 31, 'q': -15}, {'i': 16, 'q': 45}, {'i': 3, 'q': 68}, {'i': 43, 'q': 58}, {'i': 48, 'q': 29}, {'i': -3, 'q': 39}, {'i': 12, 'q': 100}, {'i': -26, 'q': 43}, {'i': -87, 'q': 21}, {'i': -116, 'q': -28}, {'i': 80, 'q': 8}]}} [2022-04-26 09:35:43,459]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -60, 'antenna': 0, 'channel': 18, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': 91, 'q': 57}, {'i': -59, 'q': 88}, {'i': -103, 'q': -44}, {'i': 38, 'q': -97}, {'i': 102, 'q': 39}, {'i': -49, 'q': 95}, {'i': -96, 'q': -50}, {'i': 50, 'q': -96}, {'i': 44, 'q': -90}, {'i': 41, 'q': 44}, {'i': 16, 'q': -32}, {'i': 10, 'q': 43}, {'i': -4, 'q': 65}, {'i': -48, 'q': -28}, {'i': -14, 'q': -57}, {'i': -5, 'q': -21}, {'i': 68, 'q': -95}, {'i': 26, 'q': -29}, {'i': 6, 'q': 53}, {'i': 47, 'q': 113}, {'i': -22, 'q': -107}, {'i': 57, 'q': 11}, {'i': -10, 'q': -33}, {'i': 33, 'q': 26}, {'i': 39, 'q': 57}, {'i': -54, 'q': -11}, {'i': -40, 'q': -44}, {'i': -15, 'q': -14}, {'i': 14, 'q': -116}, {'i': 8, 'q': -28}, {'i': 48, 'q': 32}, {'i': 104, 'q': 47}]}} [2022-04-26 09:35:43,459]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -60, 'antenna': 0, 'channel': 18, 'offset': 32, 'samplesLength': 45, 'samples': [{'i': -86, 'q': -61}, {'i': 58, 'q': -25}, {'i': -29, 'q': -22}, {'i': 48, 'q': -3}, {'i': 66, 'q': 27}, {'i': -43, 'q': 23}, {'i': -55, 'q': -19}, {'i': -16, 'q': -3}, {'i': -54, 'q': -111}, {'i': -13, 'q': -34}, {'i': 57, 'q': 9}, {'i': 115, 'q': -3}, {'i': -111, 'q': -6}]}} [2022-04-26 09:35:43,753]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -65, 'antenna': 0, 'channel': 11, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': 14, 'q': -43}, {'i': 41, 'q': 15}, {'i': -20, 'q': 40}, {'i': -41, 'q': -18}, {'i': 21, 'q': -39}, {'i': 38, 'q': 24}, {'i': -23, 'q': 38}, {'i': -39, 'q': -23}, {'i': -36, 'q': -28}, {'i': 31, 'q': -10}, {'i': -7, 'q': -20}, {'i': 3, 'q': 19}, {'i': 23, 'q': 64}, {'i': -34, 'q': 56}, {'i': 16, 'q': -18}, {'i': -10, 'q': 28}, {'i': 63, 'q': -53}, {'i': -15, 'q': 10}, {'i': -20, 'q': 27}, {'i': 10, 'q': 58}, {'i': 0, 'q': -45}, {'i': 25, 'q': 19}, {'i': 10, 'q': -18}, {'i': -12, 'q': 15}, {'i': -31, 'q': 62}, {'i': -66, 'q': 2}, {'i': 23, 'q': 4}, {'i': -29, 'q': 6}, {'i': 77, 'q': 28}, {'i': -17, 'q': -7}, {'i': -34, 'q': 2}, {'i': -37, 'q': 44}]}} [2022-04-26 09:35:43,753]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -65, 'antenna': 0, 'channel': 11, 'offset': 32, 'samplesLength': 45, 'samples': [{'i': 37, 'q': -24}, {'i': -2, 'q': 32}, {'i': 21, 'q': -3}, {'i': -19, 'q': 0}, {'i': -69, 'q': 7}, {'i': -39, 'q': -53}, {'i': 12, 'q': 21}, {'i': -21, 'q': -20}, {'i': 28, 'q': 77}, {'i': -6, 'q': -17}, {'i': -20, 'q': -27}, {'i': -58, 'q': -2}, {'i': 42, 'q': 13}]}} [2022-04-26 09:35:44,062]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -69, 'antenna': 0, 'channel': 4, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': -8, 'q': -24}, {'i': 24, 'q': -7}, {'i': 5, 'q': 25}, {'i': -24, 'q': 7}, {'i': -7, 'q': -25}, {'i': 25, 'q': -6}, {'i': 5, 'q': 24}, {'i': -25, 'q': 4}, {'i': -24, 'q': 6}, {'i': -12, 'q': -55}, {'i': -33, 'q': 0}, {'i': -20, 'q': -40}, {'i': 79, 'q': -41}, {'i': 79, 'q': -1}, {'i': 0, 'q': -79}, {'i': 41, 'q': -73}, {'i': 17, 'q': -56}, {'i': 68, 'q': 6}, {'i': 32, 'q': -24}, {'i': 31, 'q': -19}, {'i': -25, 'q': -4}, {'i': 20, 'q': -52}, {'i': -29, 'q': -15}, {'i': 3, 'q': -45}, {'i': 86, 'q': 6}, {'i': 72, 'q': 29}, {'i': 28, 'q': -72}, {'i': 73, 'q': -37}, {'i': 39, 'q': -43}, {'i': 59, 'q': 33}, {'i': 39, 'q': -7}, {'i': 36, 'q': -2}]}} [2022-04-26 09:35:44,067]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -69, 'antenna': 0, 'channel': 4, 'offset': 32, 'samplesLength': 45, 'samples': [{'i': -17, 'q': -17}, {'i': 40, 'q': -39}, {'i': -21, 'q': -27}, {'i': 23, 'q': -39}, {'i': 75, 'q': 48}, {'i': 51, 'q': 58}, {'i': 69, 'q': -39}, {'i': 84, 'q': -8}, {'i': 52, 'q': -24}, {'i': 35, 'q': 58}, {'i': 41, 'q': 8}, {'i': 33, 'q': 17}, {'i': -7, 'q': -23}]}} [2022-04-26 09:35:44,353]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -69, 'antenna': 0, 'channel': 34, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': 10, 'q': 53}, {'i': -54, 'q': 7}, {'i': -4, 'q': -55}, {'i': 54, 'q': -6}, {'i': 5, 'q': 55}, {'i': -54, 'q': 6}, {'i': -7, 'q': -54}, {'i': 55, 'q': -6}, {'i': 56, 'q': 0}, {'i': -12, 'q': 19}, {'i': 33, 'q': 8}, {'i': 6, 'q': 10}, {'i': -59, 'q': 10}, {'i': -74, 'q': 27}, {'i': -8, 'q': 36}, {'i': -64, 'q': 18}, {'i': 1, 'q': 0}, {'i': -77, 'q': -53}, {'i': -64, 'q': -43}, {'i': -25, 'q': -60}, {'i': 49, 'q': 24}, {'i': -21, 'q': 13}, {'i': 27, 'q': 22}, {'i': 0, 'q': 11}, {'i': -57, 'q': -20}, {'i': -79, 'q': -1}, {'i': -26, 'q': 27}, {'i': -65, 'q': -17}, {'i': 1, 'q': 0}, {'i': -47, 'q': -82}, {'i': -41, 'q': -65}, {'i': 6, 'q': -66}]}} [2022-04-26 09:35:44,359]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -69, 'antenna': 0, 'channel': 34, 'offset': 32, 'samplesLength': 45, 'samples': [{'i': 34, 'q': 44}, {'i': -23, 'q': 1}, {'i': 14, 'q': 31}, {'i': -5, 'q': 10}, {'i': -45, 'q': -40}, {'i': -71, 'q': -34}, {'i': -34, 'q': 13}, {'i': -49, 'q': -44}, {'i': 1, 'q': 2}, {'i': -17, 'q': -95}, {'i': -12, 'q': -76}, {'i': 29, 'q': -59}, {'i': 10, 'q': 53}]}} [2022-04-26 09:35:44,672]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -66, 'antenna': 0, 'channel': 27, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': 58, 'q': -49}, {'i': 47, 'q': 58}, {'i': -59, 'q': 45}, {'i': -46, 'q': -59}, {'i': 57, 'q': -43}, {'i': 40, 'q': 60}, {'i': -62, 'q': 42}, {'i': -42, 'q': -60}, {'i': -45, 'q': -58}, {'i': 57, 'q': -81}, {'i': -18, 'q': 13}, {'i': 3, 'q': -4}, {'i': 113, 'q': -50}, {'i': 41, 'q': -14}, {'i': -19, 'q': -35}, {'i': 0, 'q': -31}, {'i': 61, 'q': -83}, {'i': 106, 'q': -57}, {'i': 37, 'q': -1}, {'i': 102, 'q': 23}, {'i': -65, 'q': -35}, {'i': 14, 'q': -100}, {'i': -10, 'q': 16}, {'i': 1, 'q': -6}, {'i': 79, 'q': -93}, {'i': 29, 'q': -32}, {'i': -33, 'q': -21}, {'i': -9, 'q': -30}, {'i': 25, 'q': -102}, {'i': 70, 'q': -98}, {'i': 32, 'q': -19}, {'i': 98, 'q': -33}]}} [2022-04-26 09:35:44,690]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -66, 'antenna': 0, 'channel': 27, 'offset': 32, 'samplesLength': 45, 'samples': [{'i': -73, 'q': 1}, {'i': -34, 'q': -96}, {'i': 0, 'q': 21}, {'i': -2, 'q': -6}, {'i': 31, 'q': -121}, {'i': 15, 'q': -40}, {'i': -38, 'q': 1}, {'i': -25, 'q': -18}, {'i': -22, 'q': -101}, {'i': 26, 'q': -119}, {'i': 20, 'q': -32}, {'i': 67, 'q': -77}, {'i': -65, 'q': 34}]}} [2022-04-26 09:35:44,975]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -63, 'antenna': 0, 'channel': 20, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': 44, 'q': 68}, {'i': -71, 'q': 46}, {'i': -46, 'q': -63}, {'i': 60, 'q': -47}, {'i': 59, 'q': 55}, {'i': -60, 'q': 54}, {'i': -51, 'q': -58}, {'i': 52, 'q': -58}, {'i': 52, 'q': -61}, {'i': 76, 'q': 15}, {'i': 28, 'q': -24}, {'i': 42, 'q': 35}, {'i': 72, 'q': 73}, {'i': -21, 'q': 32}, {'i': 0, 'q': -59}, {'i': -10, 'q': -22}, {'i': 88, 'q': -35}, {'i': 40, 'q': -31}, {'i': -17, 'q': 36}, {'i': 5, 'q': 53}, {'i': -19, 'q': -76}, {'i': 43, 'q': -62}, {'i': -11, 'q': -43}, {'i': 54, 'q': -14}, {'i': 102, 'q': -20}, {'i': 22, 'q': 36}, {'i': -48, 'q': -33}, {'i': -18, 'q': -6}, {'i': 9, 'q': -87}, {'i': -4, 'q': -49}, {'i': 17, 'q': 43}, {'i': 44, 'q': 23}]}} [2022-04-26 09:35:44,986]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -63, 'antenna': 0, 'channel': 20, 'offset': 32, 'samplesLength': 45, 'samples': [{'i': -75, 'q': -23}, {'i': -16, 'q': -73}, {'i': -43, 'q': -14}, {'i': 19, 'q': -53}, {'i': 26, 'q': -102}, {'i': 41, 'q': 0}, {'i': -52, 'q': 14}, {'i': -13, 'q': 20}, {'i': -76, 'q': -62}, {'i': -42, 'q': -22}, {'i': 43, 'q': 6}, {'i': 50, 'q': -32}, {'i': -62, 'q': 51}]}} [2022-04-26 09:35:45,288]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -64, 'antenna': 0, 'channel': 13, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': -49, 'q': -49}, {'i': 52, 'q': -46}, {'i': 38, 'q': 57}, {'i': -63, 'q': 42}, {'i': -47, 'q': -56}, {'i': 54, 'q': -49}, {'i': 42, 'q': 59}, {'i': -62, 'q': 36}, {'i': -62, 'q': 36}, {'i': -43, 'q': -22}, {'i': -41, 'q': -18}, {'i': 43, 'q': -29}, {'i': 26, 'q': -58}, {'i': 49, 'q': 10}, {'i': -18, 'q': -52}, {'i': 41, 'q': 29}, {'i': -28, 'q': -102}, {'i': -19, 'q': 3}, {'i': 11, 'q': 88}, {'i': 4, 'q': 50}, {'i': -66, 'q': -25}, {'i': -17, 'q': -41}, {'i': -15, 'q': -40}, {'i': 47, 'q': 6}, {'i': 59, 'q': -18}, {'i': 15, 'q': 47}, {'i': 25, 'q': -46}, {'i': 6, 'q': 44}, {'i': 53, 'q': -99}, {'i': -17, 'q': -13}, {'i': -54, 'q': 72}, {'i': -36, 'q': 39}]}} [2022-04-26 09:35:45,288]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -64, 'antenna': 0, 'channel': 13, 'offset': 32, 'samplesLength': 45, 'samples': [{'i': -33, 'q': -65}, {'i': 18, 'q': -43}, {'i': 22, 'q': -40}, {'i': 29, 'q': 40}, {'i': 58, 'q': 26}, {'i': -14, 'q': 52}, {'i': 51, 'q': -20}, {'i': -24, 'q': 40}, {'i': 93, 'q': -45}, {'i': -2, 'q': -23}, {'i': -85, 'q': 10}, {'i': -54, 'q': 2}, {'i': 18, 'q': -68}]}} [2022-04-26 09:35:45,550]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -74, 'antenna': 0, 'channel': 6, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': 14, 'q': 3}, {'i': -3, 'q': 14}, {'i': -14, 'q': -4}, {'i': 3, 'q': -14}, {'i': 13, 'q': 6}, {'i': -6, 'q': 14}, {'i': -13, 'q': -6}, {'i': 6, 'q': -13}, {'i': 4, 'q': -14}, {'i': 19, 'q': 0}, {'i': -9, 'q': -36}, {'i': 34, 'q': -19}, {'i': 4, 'q': 4}, {'i': 15, 'q': 28}, {'i': 49, 'q': -25}, {'i': 55, 'q': 39}, {'i': 46, 'q': -6}, {'i': -24, 'q': 51}, {'i': 28, 'q': 62}, {'i': -5, 'q': 42}, {'i': 7, 'q': -12}, {'i': 18, 'q': 4}, {'i': 0, 'q': -35}, {'i': 35, 'q': -16}, {'i': 6, 'q': 5}, {'i': 15, 'q': 28}, {'i': 50, 'q': -19}, {'i': 51, 'q': 46}, {'i': 47, 'q': -5}, {'i': -30, 'q': 48}, {'i': 30, 'q': 58}, {'i': -5, 'q': 41}]}} [2022-04-26 09:35:45,556]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -74, 'antenna': 0, 'channel': 6, 'offset': 32, 'samplesLength': 45, 'samples': [{'i': 9, 'q': -11}, {'i': 18, 'q': 5}, {'i': -2, 'q': -36}, {'i': 38, 'q': -10}, {'i': 5, 'q': 5}, {'i': 12, 'q': 29}, {'i': 53, 'q': -15}, {'i': 42, 'q': 52}, {'i': 47, 'q': -1}, {'i': -36, 'q': 43}, {'i': 19, 'q': 64}, {'i': -7, 'q': 40}, {'i': 9, 'q': -10}]}} [2022-04-26 09:35:45,870]root -INFO - COORDINATOR : F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_AOA_RESULT_RAW', 'payload': {'connHandle': 0, 'rssi': -75, 'antenna': 0, 'channel': 36, 'offset': 0, 'samplesLength': 45, 'samples': [{'i': 9, 'q': -26}, {'i': 24, 'q': 10}, {'i': -8, 'q': 26}, {'i': -27, 'q': -6}, {'i': 9, 'q': -27}, {'i': 27, 'q': 9}, {'i': -11, 'q': 26}, {'i': -26, 'q': -10}, {'i': -26, 'q': -10}, {'i': 2, 'q': 32}, {'i': -42, 'q': -6}, {'i': -12, 'q': 3}, {'i': 12, 'q': 46}, {'i': 43, 'q': 34}, {'i': 25, 'q': -28}, {'i': 64, 'q': 38}, {'i': 0, 'q': 19}, {'i': 14, 'q': 111}, {'i': 45, 'q': 96}, {'i': 11, 'q': 95}, {'i': -23, 'q': -14}, {'i': -4, 'q': 32}, {'i': -41, 'q': -13}, {'i': -14, 'q': 0}, {'i': -1, 'q': 46}, {'i': 37, 'q': 41}, {'i': 31, 'q': -20}, {'i': 52, 'q': 49}, {'i': -4, 'q': 14}, {'i': -9, 'q': 112}, {'i': 29, 'q': 104}, {'i': -10, 'q': 95}]}}
但是当天线数量超过12个时,长须不会报错,但是得不到iq值。
我用逻辑分析仪测量了这个管脚的电压。
电压图如下
电平数值在这里。
Time[s], 通道 0, 通道 1, 通道 2, 通道 3 -0.005020, 0, 0, 0, 0 -0.000020, 0, 0, 1, 0 -0.000015, 0, 1, 1, 0 -0.000010, 0, 0, 0, 1 -0.000005, 0, 1, 0, 1 0.000000, 1, 1, 0, 0 0.000005, 1, 0, 1, 0 0.000010, 1, 1, 1, 0 0.000015, 1, 0, 0, 1 0.000020, 0, 0, 0, 0 0.000025, 0, 1, 0, 0 0.000030, 0, 0, 1, 0 0.000035, 0, 1, 1, 0 0.000040, 0, 1, 0, 1 0.000045, 1, 0, 0, 0 0.000050, 1, 1, 0, 0 0.000055, 1, 0, 1, 0 0.000060, 1, 0, 0, 1 0.000065, 1, 1, 0, 1 0.000070, 0, 0, 0, 0 0.000075, 0, 1, 0, 0 0.000080, 0, 1, 1, 0 0.000085, 0, 0, 0, 1 0.000090, 0, 1, 0, 1 0.000095, 1, 0, 0, 0 0.000100, 1, 0, 1, 0 0.000105, 1, 1, 1, 0 0.000110, 1, 0, 0, 1 0.000115, 1, 1, 0, 1 0.000120, 0, 0, 0, 0
Kevin Qiu1:
你使用的SDK版本是多少,例程中的12个天线代码只是提供了一个示例,不是仅限于12个天线切换,应根据特定的天线板修改程序
https://dev.ti.com/tirex/content/simplelink_academy_cc13xx_cc26xxsdk_5_40_00_00/modules/rtls_toolbox_ble5/ble_aoa/ble_aoa_locator.html
,
WenZhao Shu:
SDK是5.40,但是不能修改天线个数,当天线个数大于12的话程序不能运行。而且定义的天线模式是不一样的,不能完全进行匹配。你尝试过修改程序进行天线切换吗?
,
Kevin Qiu1:
我没有16个天线的天线阵列,没有进行过这样的测试,之前使用BOOSTXL-AOA测试过天线切换,没有发现问题
下面有一个类似的帖子,你可以参考:https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1034018/launchxl-cc26x2r1-aoa-16-antennas
,
WenZhao Shu:
我做了这个,但是程序不能运行。以下是程序的日志。
[2022-04-27 16:59:27,616]root -INFO -Example Input Parameters ---------------------------------------------------------------------- Coordinator comport: COM8 Passive comports: None Connection monitor comports: None Active responder comports: None Responder BD Address: [] Scan time: 10 Sec Connection Interval: 100 mSec Enable Continues Connection Interval: No Enable Angle Of Arrival (AoA): YesAoA Enable Filter: YesAoA Slot Duration: 2AoA Sample Rate: 1AoA Sample Size: 1AoA CTE Length: 20AoA CTE Interval: 2 Data Collection Duration: 30 Data Collection iteration: 1 Provide Post Analyze Function: Yes Example Log Dir: I:\ti\simplelink_cc13xx_cc26xx_sdk_5_40_00_40\tools\ble5stack\rtls_agent\examples\rtls_connected_log Example Log File Name: 04_27_2022_16_59_27_rtls_connected.log ----------------------------------------------------------------------[2022-04-27 16:59:27,617]root -INFO - Setting nodes :[2022-04-27 16:59:27,618]root -INFO - Message receiver started [2022-04-27 16:59:27,619]root -INFO - RTLS Manager started [2022-04-27 16:59:29,626]root -INFO - Done setting node [2022-04-27 16:59:29,627]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_RESET_DEVICE', 'payload': None} [2022-04-27 16:59:29,657]root -WARNING - ConstError('parsing expected 254 but parsed 0') [2022-04-27 16:59:29,688]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_RESET_DEVICE', 'payload': {'raw_payload': ''}} [2022-04-27 16:59:29,742]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-27 16:59:29,773]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:30,103]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -63, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-27 16:59:31,805]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:31,973]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-27 16:59:32,003]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:32,380]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -63, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-27 16:59:34,013]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:34,101]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-27 16:59:34,133]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:34,178]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -60, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-27 16:59:36,127]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:36,215]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-27 16:59:36,243]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:36,273]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -58, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-27 16:59:38,238]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:38,328]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-27 16:59:38,359]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:38,359]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -60, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-27 16:59:40,354]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:40,441]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_CONNECT', 'payload': {'addrType': 0, 'peerAddr': 'F8:8A:5E:2D:7B:9B', 'connInterval': 80}} [2022-04-27 16:59:40,473]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_CONNECT', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:40,549]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_CONN_PARAMS', 'payload': {'connHandle': 0, 'accessAddress': 776116713, 'connRole': 8, 'connInterval': 160, 'hopValue': 16, 'mSCA': 0, 'currChan': 16, 'chanMap': [255, 255, 255, 255, 31], 'crcInit': 11608993, 'peerAddr': 'F8:8A:5E:2D:7B:9B'}} [2022-04-27 16:59:41,838]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_CONNECT', 'payload': {'connHandle': 0, 'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:41,850]root -INFO - Connection process done [2022-04-27 16:59:41,851]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_AOA_SET_PARAMS', 'payload': {'aoaRole': 'AOA_COORDINATOR', 'aoaResultMode': 'AOA_MODE_RAW', 'connHandle': 0, 'slotDurations': 2, 'sampleRate': 1, 'sampleSize': 1, 'sampleCtrl': 16, 'samplingEnable': 1, 'numAnt': 16, 'antArray': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]}} [2022-04-27 16:59:41,884]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_AOA_SET_PARAMS', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:41,885]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_EVT_DEBUG', 'payload': {'debug_value': 17, 'debug_string': 'RTLS Services Error'}} [2022-04-27 16:59:41,885]root -INFO - Container:debug_value = 17debug_string = u'RTLS Services Error' (total 19) [2022-04-27 16:59:41,952]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_AOA_ENABLE', 'payload': {'connHandle': 0, 'enable': 1, 'cteInterval': 2, 'cteLength': 20}} [2022-04-27 16:59:41,985]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_AOA_ENABLE', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:41,985]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_EVT_DEBUG', 'payload': {'debug_value': 12, 'debug_string': 'RTLS Services Error'}} [2022-04-27 16:59:41,985]root -INFO - Container:debug_value = 12debug_string = u'RTLS Services Error' (total 19) [2022-04-27 16:59:42,052]root -INFO - AOA Started [2022-04-27 17:00:12,137]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_AOA_ENABLE', 'payload': {'connHandle': 0, 'enable': 0, 'cteInterval': 1, 'cteLength': 20}} [2022-04-27 17:00:12,177]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_AOA_ENABLE', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 17:00:12,177]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_EVT_DEBUG', 'payload': {'debug_value': 12, 'debug_string': 'RTLS Services Error'}} [2022-04-27 17:00:12,178]root -INFO - Container:debug_value = 12debug_string = u'RTLS Services Error' (total 19) [2022-04-27 17:00:12,239]root -INFO - AOA Stopped [2022-04-27 17:00:12,241]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_TERMINATE_LINK', 'payload': {'connHandle': 0}} [2022-04-27 17:00:12,269]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_TERMINATE_LINK', 'payload': {'raw_payload': '00'}} [2022-04-27 17:00:12,540]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_EVT_DEBUG', 'payload': {'debug_value': 0, 'debug_string': 'L2CAP COC: terminated connHandle: '}} [2022-04-27 17:00:12,540]root -INFO - Container:debug_value = 0debug_string = u'L2CAP COC: terminated connHandle'... (truncated, total 34) [2022-04-27 17:00:12,734]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_CONNECT', 'payload': {'connHandle': 0, 'status': 'RTLS_LINK_TERMINATED'}} [2022-04-27 17:00:12,756]root -INFO - Disconnect process done我找不到这个程序不能运行的原因。
,
Kevin Qiu1:
看起来并没有成功启用16个天线,SDK5.40默认使用sysconfig来配置天线控制IO:
iCallBLE 中的ble_user_config.c文件中的代码不会被运行,因此修改它是无效的
应该使用sysconfig来配置,查看任务一的Step 3 – Configure the rtls_coordinator project for your antenna board:
https://dev.ti.com/tirex/content/simplelink_academy_cc13xx_cc26xxsdk_6_10_01_00/modules/rtls_toolbox_ble5/ble_aoa/ble_aoa_locator.html
,
WenZhao Shu:
我尝试了这个解决办法,但是程序不能运行。
def _angle_of_arrival(self, enable):if enable:aoa_params = {"aoa_run_mode": "AOA_MODE_RAW","aoa_cc26x2": {"aoa_slot_durations": self.angle_of_arrival_params.get('slot_duration', 2),"aoa_sample_rate": self.angle_of_arrival_params.get('sample_rate', 1),"aoa_sample_size": self.angle_of_arrival_params.get('sample_size', 1),"aoa_sampling_control": int('0x10' if self.angle_of_arrival_params.get('enable_filter', True) else '0x11', 16),"aoa_sampling_enable": 1,#"aoa_pattern_len": 32,#"aoa_ant_pattern": [0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 6, 7,#8, 9, 10, 11, 6, 7]# "aoa_pattern_len": 12,# "aoa_ant_pattern": [0, 1, 2, 3, 4, 5, 6, `7, 8, 9, 10, 11]"aoa_pattern_len": 16,"aoa_ant_pattern": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]}}这是得到的日志,没有iq信息。
[2022-04-27 16:59:27,616]root -INFO -Example Input Parameters ---------------------------------------------------------------------- Coordinator comport: COM8 Passive comports: None Connection monitor comports: None Active responder comports: None Responder BD Address: [] Scan time: 10 Sec Connection Interval: 100 mSec Enable Continues Connection Interval: No Enable Angle Of Arrival (AoA): YesAoA Enable Filter: YesAoA Slot Duration: 2AoA Sample Rate: 1AoA Sample Size: 1AoA CTE Length: 20AoA CTE Interval: 2 Data Collection Duration: 30 Data Collection iteration: 1 Provide Post Analyze Function: Yes Example Log Dir: I:\ti\simplelink_cc13xx_cc26xx_sdk_5_40_00_40\tools\ble5stack\rtls_agent\examples\rtls_connected_log Example Log File Name: 04_27_2022_16_59_27_rtls_connected.log ----------------------------------------------------------------------[2022-04-27 16:59:27,617]root -INFO - Setting nodes :[2022-04-27 16:59:27,618]root -INFO - Message receiver started [2022-04-27 16:59:27,619]root -INFO - RTLS Manager started [2022-04-27 16:59:29,626]root -INFO - Done setting node [2022-04-27 16:59:29,627]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_RESET_DEVICE', 'payload': None} [2022-04-27 16:59:29,657]root -WARNING - ConstError('parsing expected 254 but parsed 0') [2022-04-27 16:59:29,688]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_RESET_DEVICE', 'payload': {'raw_payload': ''}} [2022-04-27 16:59:29,742]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-27 16:59:29,773]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:30,103]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -63, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-27 16:59:31,805]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:31,973]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-27 16:59:32,003]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:32,380]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -63, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-27 16:59:34,013]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:34,101]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-27 16:59:34,133]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:34,178]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -60, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-27 16:59:36,127]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:36,215]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-27 16:59:36,243]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:36,273]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -58, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-27 16:59:38,238]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:38,328]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_SCAN', 'payload': None} [2022-04-27 16:59:38,359]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_SCAN', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:38,359]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN', 'payload': {'eventType': 19, 'addrType': 0, 'addr': 'F8:8A:5E:2D:7B:9B', 'rssi': -60, 'advSID': 255, 'periodicAdvInt': 0, 'dataLen': 18, 'data': '0E:08:52:54:4C:53:52:65:73:70:6F:6E:64:65:72:02:01:06'}} [2022-04-27 16:59:40,354]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_SCAN_STOP', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:40,441]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_CONNECT', 'payload': {'addrType': 0, 'peerAddr': 'F8:8A:5E:2D:7B:9B', 'connInterval': 80}} [2022-04-27 16:59:40,473]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_CONNECT', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:40,549]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_CONN_PARAMS', 'payload': {'connHandle': 0, 'accessAddress': 776116713, 'connRole': 8, 'connInterval': 160, 'hopValue': 16, 'mSCA': 0, 'currChan': 16, 'chanMap': [255, 255, 255, 255, 31], 'crcInit': 11608993, 'peerAddr': 'F8:8A:5E:2D:7B:9B'}} [2022-04-27 16:59:41,838]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_CONNECT', 'payload': {'connHandle': 0, 'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:41,850]root -INFO - Connection process done [2022-04-27 16:59:41,851]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_AOA_SET_PARAMS', 'payload': {'aoaRole': 'AOA_COORDINATOR', 'aoaResultMode': 'AOA_MODE_RAW', 'connHandle': 0, 'slotDurations': 2, 'sampleRate': 1, 'sampleSize': 1, 'sampleCtrl': 16, 'samplingEnable': 1, 'numAnt': 16, 'antArray': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]}} [2022-04-27 16:59:41,884]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_AOA_SET_PARAMS', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:41,885]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_EVT_DEBUG', 'payload': {'debug_value': 17, 'debug_string': 'RTLS Services Error'}} [2022-04-27 16:59:41,885]root -INFO - Container:debug_value = 17debug_string = u'RTLS Services Error' (total 19) [2022-04-27 16:59:41,952]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_AOA_ENABLE', 'payload': {'connHandle': 0, 'enable': 1, 'cteInterval': 2, 'cteLength': 20}} [2022-04-27 16:59:41,985]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_AOA_ENABLE', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 16:59:41,985]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_EVT_DEBUG', 'payload': {'debug_value': 12, 'debug_string': 'RTLS Services Error'}} [2022-04-27 16:59:41,985]root -INFO - Container:debug_value = 12debug_string = u'RTLS Services Error' (total 19) [2022-04-27 16:59:42,052]root -INFO - AOA Started [2022-04-27 17:00:12,137]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_AOA_ENABLE', 'payload': {'connHandle': 0, 'enable': 0, 'cteInterval': 1, 'cteLength': 20}} [2022-04-27 17:00:12,177]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_AOA_ENABLE', 'payload': {'status': 'RTLS_SUCCESS'}} [2022-04-27 17:00:12,177]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_EVT_DEBUG', 'payload': {'debug_value': 12, 'debug_string': 'RTLS Services Error'}} [2022-04-27 17:00:12,178]root -INFO - Container:debug_value = 12debug_string = u'RTLS Services Error' (total 19) [2022-04-27 17:00:12,239]root -INFO - AOA Stopped [2022-04-27 17:00:12,241]rtlsnode -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 <-- {'type': 'Command', 'command': 'RTLS_CMD_TERMINATE_LINK', 'payload': {'connHandle': 0}} [2022-04-27 17:00:12,269]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Response', 'command': 'RTLS_CMD_TERMINATE_LINK', 'payload': {'raw_payload': '00'}} [2022-04-27 17:00:12,540]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_EVT_DEBUG', 'payload': {'debug_value': 0, 'debug_string': 'L2CAP COC: terminated connHandle: '}} [2022-04-27 17:00:12,540]root -INFO - Container:debug_value = 0debug_string = u'L2CAP COC: terminated connHandle'... (truncated, total 34) [2022-04-27 17:00:12,734]root -INFO - COORDINATOR: F8:8A:5E:2D:9D:41 --> {'type': 'Event', 'command': 'RTLS_CMD_CONNECT', 'payload': {'connHandle': 0, 'status': 'RTLS_LINK_TERMINATED'}} [2022-04-27 17:00:12,756]root -INFO - Disconnect process done
,
WenZhao Shu:
我发现了一些问题,就是逻辑分析仪在一段时间内不工作。
Time[s], 通道 0, 通道 1, 通道 2, 通道 3 -0.001010, 1, 1, 1, 1 -0.000020, 0, 1, 0, 0 -0.000016, 0, 0, 1, 0 -0.000012, 0, 1, 1, 0 -0.000008, 0, 0, 0, 1 -0.000004, 0, 1, 0, 1 0.000000, 1, 0, 0, 0 0.000004, 1, 1, 0, 0 0.000008, 1, 0, 1, 0 0.000012, 1, 1, 1, 0 0.000016, 1, 0, 0, 1 0.000020, 1, 1, 0, 1 0.000024, 0, 0, 0, 0 0.000040, 1, 1, 1, 1 0.000044, 0, 1, 0, 0 0.000048, 0, 0, 1, 0 0.000052, 0, 1, 1, 0 0.000056, 0, 0, 0, 1 0.000060, 0, 1, 0, 1 0.000064, 1, 0, 0, 0 0.000068, 1, 1, 0, 0 0.000072, 1, 0, 1, 0 0.000076, 1, 1, 1, 0 0.000080, 1, 0, 0, 1 0.000084, 1, 1, 0, 1 0.000088, 0, 0, 0, 0 0.000104, 1, 1, 1, 1 0.000108, 0, 1, 0, 0 0.000112, 0, 0, 1, 0 0.000116, 0, 1, 1, 0 0.000120, 0, 0, 0, 1 0.000124, 1, 1, 1, 1
,
Kevin Qiu1:
是的,看起来会暂停一段时间,用rtls ui试一下:https://dev.ti.com/tirex/content/simplelink_academy_cc13xx_cc26xxsdk_6_10_01_00/modules/rtls_toolbox_ble5/ble_aoa/ble_rtls.html
另外你的连线方式看起来不是很好,也有可能是连接不稳定造成的