AWR1843AOPEVM: mmWave Demo Visualizer record to CSV

Part Number: AWR1843AOPEVM
Other Parts Discussed in Thread: AWR1843AOP

Tool/software:

Hi Team, 

Do we have the version of mmWave Demo Visualizer with added record CSV feature, that saves object information to csv file for AWR1843AOP? I found one just for devices without AOP: 

https://dev.ti.com/gallery/view/6023734/mmWave_Demo_Visualizer_Record/ver/3.2.0/ 

Thank you,

Daria

  • Hey Daria,

    I would recommend using the Radar Toolbox Applications Visualizer which can be found under the <RTB_INSTALL_DIR>/tools/visualizers/Applications_Visualizer/Body_And_Chassis_Visualizer. You can then select File -> Options -> Save Binary Data to File which will cause the visualizer to output TLV data to .bin files every 100 frames to a local dated folder.

    The .bin files can be parsed using the following Python script and function. I've left this script to be open ended, but there are comments on what needs to be implemented or can be implemented. 

    8203.parseBin.py
    # Local File Imports
    # (OPTIONAL) END USER TODO: Point to directory of parseFrame.py
    from parseFrame import *
    
    # add path to TLV binary file
    # (OPTIONAL) END USER TODO: Add filepath to Python script using an argument parser
    filepath = "binData/<INSERT BIN FILE HERE>"
    
    def parseBin(filepath):
        # output list of decoded TLV data
        tlvDecoded = []
        with open(filepath, "rb") as f:
            # read entire binary file
            binaryFileData = bytearray(b'')
            binaryFileData = f.read()
            # separate out individual frames using magic word; first element is always b'' so skip it
            frames = binaryFileData.split(UART_MAGIC_WORD)[1:]
            for frameData in frames:
                tlvDecoded.append(parseStandardFrame(UART_MAGIC_WORD + frameData)) # magic word needs to be added back for parseStandardFrame to work
        return tlvDecoded
    
    def main():
        print("Parsing binary data . . . ")
        # parse through TLV binary file
        tlvDecoded = parseBin(filepath)
        # END USER TODO: use decoded TLV data for application
    
    if __name__ == "__main__":
        main()

    Regards,

    Kristien