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.

IWR1642BOOST: How to send the .cfg to radar through USB to boot the mmWave demo Visualizer?

Part Number: IWR1642BOOST

I've flashed the .bin of the mmWave demo Visualizer using IWR1642BOOST. I tried to send the .cfg to the radar through python code but it didn't work. 

#serial_transmit

import serial
import time

ser = serial.Serial()

#open the port
def port_open(index, rate):
    ser.port = index
    ser.baudrate = rate
    ser.bytesize = 8
    ser.stopbits = 1
    ser.party = 'N'
    ser.open()
    if(ser.isOpen()):
        print("open_successfully!")
    else:
        print("open_fail!")

#close the port
def port_close():
    ser.close()
    if(ser.isOpen()):
        print("close_fail!")
    else:
        print("close_successfully!")

#send the cfg
def send_cfg(dest):
    length = len(open(dest).readlines())
    f = open(dest)
    for i in range(length):
        a = f.readline()
        if(ser.isOpen()):
            ser.write(a.encode('utf-8'))
            time.sleep(1)
    print("write_successfully!")

#main
if __name__ == "__main__":
    dest = "F:/DirEng/profile(1).cfg"
    port_open('COM6', 115200)
    send_cfg(dest)
    port_close()
    port_open('COM5', 921600)
    
    
    

  • Hello, 

    Can you please confirm which .bin file and which .cfg file you are using? They need to be for the same demo to be compatible. Can you also confirm which industial toolbox version and SDK version you are using? The latest toolbox is 4.5.1 and SDK is 3.5.

    In the latest toolbox, there is an example of sending the .cfg file via python. Look at the file oob_parser.py and the function sendcfg().

    "C:\ti\mmwave_industrial_toolbox_4_5_1\labs\people_counting\visualizer\oob_parser.py"

    Regards,

    Jackson

  • Dear Jackson,


    Thanks for your help. I've found the oob_parser.py and tried to rewrite it.

     It seems that the cfg has been sent, but the radar did not work.

    Below are my versions 

     SDK:mmwave_sdk_01_00_00_05

     bin:C:\ti\mmwave_sdk_01_00_00_05\packages\ti\demo\xwr16xx\mmw\xwr16xx_mmw_demo.bin

     toolbox:4_4_1

  • Hello,

    I don't know if you included the entire response from sending the cfg file, but there needs to be a 'sensorStart' command sent at the end to start up the sensor again after configuring the settings. Is this included in the .cfg file?

    Can you describe what you mean by 'the radar did not work'? Are you trying to run a demo visualizer? Which one? The SDK and toolbox you are using are very old. I suggest downloading the latest toolbox and SDK, using those binary and cfg files, and running the out of box demo to start.

    Regards,

    Jackson

  • Dear Jackson,

    My cfg does include a 'sensorStart', but code got stuck just right before 'sensorStart', then I power off the device, 'sensorStart' showed up as below.

     

  • Dear Jackson,

    I 've figure it out. The radar works well. Thanks a lot for your help!