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-CC2640R2: Code Composer Studio™ forum

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

Tool/software: Code Composer Studio

I have two CC2640R2F launchpads, I want to establish a wireless connection between two. Read the value of RSSI and sent to Matlab. I have seen the readme for simple central example and followed the steps. I connected the two boards to the laptop. One programmed simple central, the other one programmed simple peripheral. I want to know if I want the wide range of RSSI, do I need to connect tow boards to two laptops respectively and how to upload the value of RSSI to MatLab. Is there any other reference for me. Thank you very much.

  • Hello Dazhi,

    I am working to find the appropriate expert to help you. This may take some time to reach the right person depending on availability. Please expect an update by 7/27. I appreciate your patience.

    Regards,

    Luis

  • Dazhi,

    This request is very application-specific. I don't think we have any applicable reference.

    Here's my suggestion:

    1) Modify the code so that you print the RSSI through UART. Maybe, you can find out how to do that line after line (instead of same line all the time as the example)

    2) Have Putty or a similar program log (record) the data

    3) Analyze your log with a python script (how to do that is out of scope of this forum) or as you said, Matlab. With Python, I've found Pandas and csv files super useful in the past.

    I hope this helps.

    Luis

  • Luis,

    Thank you for your suggestions

    If I modify the code of simple central to print the RSSI, is there any TI software can output the RSSI to a data file, like .scv.

    Dazhi

  • Hello Dazhi,

    No, I don't think there is any specific software from TI.

    My recommendation is to simply use Putty (if on Windows) or the "screen" terminal command (if on a Mac), and log the textual output. On putty, do this on Session -> Logging and select "All session output" and select the file name and its location. That's going to write all your text data received through UART into a file. 

    If you intend to create a comma-separated value (csv) file, you just need to modify your firmware to format your prints so that values are written in a csv-style form. For example:

    timestamp, received rssi,   (<<< print only once on the firmware)

    5, 65,

    6, 68,

    7, 67,

    ... and so on. Then you can just log this file as a csv, and open in excel or in Matlab or Python.

    I hope this helps.

    -Luis

  • Luis,

    Thank you very much!That help me a lot.

    Dazhi

  • Luis,

    sorry, one more question. Is there any reference for modifying the code to print the RSSI through UART.

    Dazhi