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.

CCS/LAUNCHXL-CC26X2R1: rtls_master Manually Changing Functionalities

Part Number: LAUNCHXL-CC26X2R1
Other Parts Discussed in Thread: CC2640R2F

Tool/software: Code Composer Studio

Hello,

I have a couple of questions about the rtls_master project:

  1. Where in the rtls_master code can I find the functionality that lets it find & connect to a rlts_slave device?
    • In the diagram below, it shows that the master can dictate if it can find a slave device or not.
    • I want to change the functionality of how it chooses these rtls_slave devices

2. How exactly does the rtls_master locate a rtls_slave? By the rtls_slave's manufacturer advertising data, or something else?

    • I'm thinking about this like the central-peripheral BLE ideology
    • Since rtls_master would be the central in this case, would it look for a peripheral that's advertising a specific data?
    • Or does it base its selection on other information as well?

Thank you,

Stefano

  • Stefano,

    Currently the Master Looks for the slave scan response data RTLSSlave in the GAP_DEVICE_INFO_EVENT. Then it adds the device info to later be parsed. You can add whatever information you'd like to look for to add to this list. We just use RTLSSlave.

    The master reports the device info the RTLS node manager and the node manager sends a RTLS_REQ_CONN event to the master through uNPI which ends up calling the following function: RTLSMaster_processRTLSConnReq to setup the connection. 

  • Hi Evan,

    Thank you for the response.

    I am unable to find the GAP_DEVICE_INFO_EVENT inside the rtls_master project. Will I need to manually add this to the code in order to customize how it scans for RTLSSlave? Are there any resources in how to do this?

    Thank you,

    Stefano

  • Stefano,

    Excuse me, the GAP_DEVICE_INFO_EVENT is in the RTLSMaster.c for the CC2640R2F. 

    For the CC26x2 you can find the device is enabled to scan and when a result is found via, the RTLSCtrl_scanResultEvt which ens up sending the event to the RTLS Host which is the python script which decides if it wants to connect. If it does, the RTLS_CONN_REQ is sent by the host and processed via  RTLSMaster_processRTLSConnReq.