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.

AWR1843: View Recorded Data

Part Number: AWR1843
Other Parts Discussed in Thread: AWR1443,

Is there a better way to capture data from the mmWave Demo Visualizer?  I have used the "Record Start" button in the plots tab.  Then I tried viewing the produced .dat file using the parsing code for Python in this post: https://e2e.ti.com/support/sensors/f/1023/p/680074/2505643#2505643).  It doesn't seem to give me anything worth while and it continually copy and pastes the same information in a text file in a loop until the file is too large.

Is there an up to date version of this parsing file for Python? Or perhaps a MATLAB code that uses the .dat file?  My end goal is to get the coordinate information (and potentially receive power information) from the points in time and then plot them on my own accord in something like MATLAB. 

Thank you for your help.

  • Hi

    Please see following thread. A forum member updated the python script for the AWR1443 SDK 2.1

    I recommend you diff the two versions and you perform the updates for the SDK 3.x

    Thank you

    Cesar

  • Hi Cesar,

    I found the python code that was created by the other user, but after replacing the filename with my own created .dat file I receive errors in Python.  Here is the error: "unpack requires a buffer of 8 bytes".   I am not used to programming in Python, but it seems that this refers to the structure in the function tlvHeaderDecode where there is a size specification of '<2I'.  I am not sure if this is correct or if its different for my AWR1843 demo .dat file.

    Perhaps there is a better way of capturing data from the development board?  Is there other software I could potentially use to save the location of targets in the scene over time?  I like how the demo gives the X,Y coordinates out of the box.  Ideally, I would like to see the return power in dBm rather than relative power as well.  

    Thank you

  • Hi,

    You would probably have to modify the python script to match the AWR1843 output format.

    If you are more familiar with matlab of C you could write your own code to parse the .dat file.

    I am not aware of any other software to read the .dat file.

    thank you

    Cesar

  • Cesar,

    A potential problem is that the demo is outputting corrupted .dat files which gives the error described above.  Would it be possible for you to share with me a .dat file that is confirmed to be working with the python code provided?

    Thank you,

    Lucas

  • Hi,

    The thread that was linked in previous post includes a .dat file provided by the person who created the thread.

    Again, the python script is supported by the community since it is not released as part of an official sw release by TI

    thank you

    Cesar

  • Thanks Cesar,

    I found completely different code for MATLAB that works.  I am able to parse the data coming from the radar and look at the xyz coordinates and snr values of the targets.  Would you happen to know what the units are for the snr values that this radar is sending out?  In what way is that measured?

    I am referring to the snr and noise values from the output message: MMWDEMO_UART_MSG_DETECTED_POINTS_SIDE_INFO

    Thank you,

    Luke

  • Hey Luke,

    can you please refer me to the matlab code you are using because I am also using demo visualizer and AWR1843

    Thank You,

    Sannan 

  • Sure Sannan,

    I found MATLAB and Python code from this link: https://github.com/ibaiGorordo/AWR1843-Read-Data-Python-MMWAVE-SDK-3-

    Best,

    Lucas

  • Thanks Lucas 

    Regards 

    Sannan