TIDA-020032: Need example code for both BLE and CAN working together

Part Number: TIDA-020032

Hello, 

We are able to run the BLE  for project zero and able to detect it on Android smartphone.

We are able to use a CAN project and send the CAN messages to a CAN simulator PCAN device. 

However, we are unable to find a project code, which does the BLE pairing and also sends the information via CAN. 

Can you point us the example code / document on the same?

Also we would like to receive both RSSI and AoA via CAN when we detect a BLE device on the board. How do we populate these via CAN?

  • Hello Premkiran,

    I have assigned an expert to help you with your query.

    Sincerely,

    Jan

  • Hello,

     We should have an example ready by end of the week. We are using the rtls_master as the baseline.

       Best regards,

         David

  • Hello

    Would we be able to connect an android phone having SimpleLink App, and then get the data via CAN for RSSI and AoA together?

    Please also let us know when the example is available, and process to test the same.

    regards,

    Prem

  • Hello David, 

    can you estimate when you are able to send our colleagues the example code that they can get the board running? 

    Thanks in advance!

    Best Regards, 

    Robin 

  • Hi please let us know when this example would be available, as we would like to test our TIDA 020032 with it. We want to receive ApA and RSSI information together when BLE discovers and connect to 5.1 android phone. 

  • Hello,

     I'm in the process of releasing the example code, this might take a one or two more days. In the meantime please find attached a binary for you to test. This binary will automatically scan and connect to a rtls_slave.

    rtls_master_CC26X2R1_TID_020032_tirtos_ccs.hex

    As soon as it connects, the AoA and RSSI will be shown in a CAN message, please see the image below.

    Best regards,

      David

  • Hello,

      Please find attached the example code. Please unzip in your SDK 4.40 example folder, for example: 

    rtls_master_tida020032.zip

    C:\ti\simplelink_cc13x2_26x2_sdk_4_40_xx_xx\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\rtls_master_tida020032.

      Hopefully this helps.

       David

  • Hello David,

    Thanks for the above update.

    Yes, we are able to get the message with Id 0x330 and some data, but to validate it, we need below info.

    1. What is the Bluetooth device name appear on BT 5.1 device (Ex: Mobile) when we flash the above example on our TIDA-020032 board. For example, when we flash Project Zero, we are able to connect to a device called "Project Zero" on our mobile BT application.

    2. We see 8 bytes of data receiving on trace window, but how to interpret which bytes are related to AoA and RSSI.

    3. Do we have any conversion formula to convert the 8 byte data to extract AoA and RSSI.

    4. Can you pls share if you have picture with Detection of TIDA board on BT 5.1 device.

    Kindly help us in getting this info and redirect us if we missed anything.

  • Hello Prasad,

    1. What is the Bluetooth device name appear on BT 5.1 device (Ex: Mobile) when we flash the above example on our TIDA-020032 board. For example, when we flash Project Zero, we are able to connect to a device called "Project Zero" on our mobile BT application.

    The rtls_master is acting as central, so it is scanning instead of advertising. 

    2. We see 8 bytes of data receiving on trace window, but how to interpret which bytes are related to AoA and RSSI.

                msgTxData[0] = 0;                   // Node number
                msgTxData[1] = LO_UINT16(avgDeg);   // Angle Average Low
                msgTxData[2] = HI_UINT16(avgDeg);   // Angle Average High
                msgTxData[3] = avgRssi;             // Average rssi
                msgTxData[4] = antResult->ch;       // channel
                msgTxData[5] = Not used
                msgTxData[6] = Not used
                msgTxData[7] = Not used

    4. Can you pls share if you have picture with Detection of TIDA board on BT 5.1 device.

    Please take a look at this document https://www.ti.com/lit/an/tida029/tida029.pdf 

    Best regards,

      David