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.

IWR6843: Problem with sensor restart using python script.

Part Number: IWR6843


I wrote a Python script to save sensor data using the pyserial and struct libraries. First run always goes well and the data is saved, but if I want to run the same script again, then at the configuration input stage UART-COMPORT does not accept the adcbufCfg, cfarCfg, doaCfg, trackingCfg commands, as a result of which the radar does not start and I have to restart the radar by disabling from power. How to solve this problem?

  • Former Member
    0 Former Member

    Which demo are you running? Is it a people counting demo?

    It is likely that the demo you are running doesn't support reconfiguration without stopping. If you don't need to reconfigure the sensor. I would just use sensorStop/Start if you want to stop and start data capture on subsequent runs.

  • Yes, I'm running people counting 2D. I use default configuration from lab and as you can see sensorStop's in first place. Does this mean sensor stops after this command and there must be no problem with reconfiguration? Is there any list of demos that don't support reconfiguration?

    sensorStop
    flushCfg
    dfeDataOutputMode 1
    channelCfg 15 5 0
    adcCfg 2 1
    adcbufCfg 0 1 1 1
    profileCfg 0 60.6 30 10 62 0 0 53 1 128 2500 0 0 30
    chirpCfg 0 0 0 0 0 0 0 1
    chirpCfg 1 1 0 0 0 0 0 4
    frameCfg 0 1 128 0 50 1 0
    lowPower 0 1
    cfarCfg 6 4 4 4 4 16 16 4 4 55 67 0
    doaCfg 600 1875 30 1 1 0
    SceneryParam -6 6 0.5 6
    GatingParam 3 2 2 0
    StateParam 10 5 100 100 5
    AllocationParam 250 250 0.25 30 1 2
    trackingCfg 1 2 250 20 52 82 50 90
    sensorStart

    You mentioned I can use sensorStop/Start as solution, but when I tried to do this earlier, sensor never started. It's the problem with my parser or it may be another reasons for this situation? Example of code:

    serial_cmd.write("sensorStop\n".encode())
    print(serial_cmd.readline())
    print(serial_cmd.readline())
    serial_cmd.write("sensorStart\n".encode())
    print(serial_cmd.readline())
    print(serial_cmd.readline())

    It returns Done but sensor sending no data. There is the same result when I use "sensorStart 0".

  • I realized that i used industrial tool 4.1.0. After I installed the new version, all problems were resolved.