This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-CC2640R2: Python example timeout error and AoA periodically repeating patterns

Part Number: LAUNCHXL-CC2640R2


Hi,

I have two questions regarding the rtls toolbox:

1.

I am currently working with the latest SDK version (v3.30.00.20) and i'm trying to get the Python example (rtls_example_with_rtls_util.py) to work. I flashed the devices via Code Composer Studio and the Resource Explorer. I did everything like it is described in "Realtime Localization System (RTLS) Introduction" in the SimpleLink Academy. It already works via the rtls_agent_cli.exe and RTLS_Monitor 0.9.5. I set up the Python virtual environment and I did the installations. But when I then start rtls_example_with_rtls_util.py I get a timeout error message:

So it seems that rtlsUtil.cci_start() is called, but then in the _rtls_wait function in rtls_util.py the timeout is reached because there is no 'RTLS_CMD_CONN_INFO' command received from the node. Below you can also see the corresponding log file:

[2019-11-14 12:41:06,708] rtls_util.py      ln 240 MainThread Level 51 - Setting nodes : 
[2019-11-14 12:41:06,708] rtls_util.py      ln 248 MainThread Level 51 - Message receiver started
[2019-11-14 12:41:06,708] rtls_util.py      ln 251 MainThread Level 51 - RTLS Manager started
[2019-11-14 12:41:08,721] rtls_util.py      ln 284 MainThread Level 51 - Done setting node
[2019-11-14 12:41:08,799] rtls_util.py      ln 113 Thread-1   Level 60 - PASSIVE: 54:6C:0E:A0:5B:4F --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_RESET_DEVICE", "payload": {"raw_payload": ""}}
[2019-11-14 12:41:08,814] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_RESET_DEVICE", "payload": {"raw_payload": ""}}
[2019-11-14 12:41:08,939] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "SyncRsp", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:10,967] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN_STOP", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:11,139] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "SyncRsp", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:11,139] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN", "payload": {"eventType": 0, "addrType": 0, "addr": "54:6C:0E:A0:46:C0", "rssi": -26, "dataLen": 11, "data": "0A:09:52:54:4C:53:53:6C:61:76:65"}}
[2019-11-14 12:41:13,136] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN_STOP", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:13,261] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "SyncRsp", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:13,261] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN", "payload": {"eventType": 0, "addrType": 0, "addr": "54:6C:0E:A0:46:C0", "rssi": -29, "dataLen": 11, "data": "0A:09:52:54:4C:53:53:6C:61:76:65"}}
[2019-11-14 12:41:15,257] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN_STOP", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:15,382] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "SyncRsp", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:17,379] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN_STOP", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:17,566] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "SyncRsp", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:17,566] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN", "payload": {"eventType": 0, "addrType": 0, "addr": "54:6C:0E:A0:46:C0", "rssi": -26, "dataLen": 11, "data": "0A:09:52:54:4C:53:53:6C:61:76:65"}}
[2019-11-14 12:41:19,532] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN_STOP", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:19,657] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "SyncRsp", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:21,653] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN_STOP", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:21,841] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "SyncRsp", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:23,837] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_SCAN_STOP", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:24,025] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "SyncRsp", "subsystem": "RTLS", "command": "RTLS_CMD_CONNECT", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:24,087] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_CONN_PARAMS", "payload": {"accessAddress": 633915463, "connInterval": 160, "hopValue": 9, "mSCA": 0, "currChan": 9, "chanMap": [255, 255, 255, 255, 31], "crcInit": 4428579}}
[2019-11-14 12:41:24,165] rtls_util.py      ln 113 Thread-1   Level 60 - PASSIVE: 54:6C:0E:A0:5B:4F --> {"originator": "Nwp", "type": "SyncRsp", "subsystem": "RTLS", "command": "RTLS_CMD_CONN_PARAMS", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:24,789] rtls_util.py      ln 113 Thread-1   Level 60 - PASSIVE: 54:6C:0E:A0:5B:4F --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_CONNECT", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:25,085] rtls_util.py      ln 115 Thread-1   Level 60 - MASTER: 54:6C:0E:A0:44:48 --> {"originator": "Nwp", "type": "AsyncReq", "subsystem": "RTLS", "command": "RTLS_CMD_CONNECT", "payload": {"status": "RTLS_SUCCESS"}}
[2019-11-14 12:41:25,148] rtls_util.py      ln 378 MainThread Level 51 - Connection process done

2.

When performing AoA there are now and then periodically repeating patterns like you can see in the images below. Do you now why that is?

Thanks for your help

  • I have assigned an expert to comment.

  • Hi,

    1- You cannot use CCI with CC2640R2. You need to disable it. To do so, in your python code you need to set the variable cci to False:

        ## Continuous Connection Info Demo Enable / Disable
        cci = False

    2- This type of results is generally due to a bad connection between the boosterpack antennas and the launchpad antenna. Have you moved the capacitor C51 and connected the boosterpack antennas to the launchpad antenna as described in the section "Preparations" of this document?

    I hope this will help,

    Regards,