IWR6843ISK: Long Range People Detection - How to Get Readable Data Over UART

Part Number: IWR6843ISK
Other Parts Discussed in Thread: UNIFLASH, MMWAVEICBOOST, IWR6843, MAX3232, MAX232

Tool/software:

Hello,

I am working with the IWR6843ISK and have flashed the Long Range People Detection pre-built binary using UniFlash. I am using the Industrial Visualizer from:
radar_toolbox_2_30_00_12\tools\visualizers\Applications_Visualizer\Industrial_Visualizer

I have successfully sent the configuration file "6843_50m_2D.cfg" from:
radar_toolbox_2_30_00_12\source\ti\examples\Industrial_and_Personal_Electronics\Long_Range_People_Detection\chirp_configs

The visualizer shows some detections, so the setup seems to be working. However, my goal is to get the detection data over UART so that I can process it using another MCU.

INFO     [gui_parser.py:287] Connected
b'sensorStop\n'
b'Ignored: Sensor is already stopped\n'
b'\rDone\n'
b'\rmmwDemo:/>flushCfg\n'
b'Done\n'
b'\rmmwDemo:/>dfeDataOutputMode 1\n'
b'Done\n'
b'\rmmwDemo:/>channelCfg 15 7 0\n'
b'Done\n'
b'\rmmwDemo:/>adcCfg 2 1\n'
b'Done\n'
b'\rmmwDemo:/>adcbufCfg -1 0 1 1 1\n'
b'Done\n'
b'\rmmwDemo:/>profileCfg 0 60 35 6 43.0 0 0 8.241 1 125 3433 0 0 48\n'
b'Done\n'
b'\rmmwDemo:/>chirpCfg 0 0 0 0 0 0 0 1\n'
b'Done\n'
b'\rmmwDemo:/>chirpCfg 1 1 0 0 0 0 0 4\n'
b'Done\n'
b'\rmmwDemo:/>frameCfg 0 1 128 0 100 1 0\n'
b'Done\n'
b'\rmmwDemo:/>lowPower 0 0\n'
b'Done\n'
b'\rmmwDemo:/>guiMonitor -1 1 0 0 0 0 0\n'
b'Done\n'
b'\rmmwDemo:/>cfarCfg -1 0 2 8 4 3 0 10 0\n'
b'Done\n'
b'\rmmwDemo:/>cfarCfg -1 1 0 4 2 3 1 10 0\n'
b'Done\n'
b'\rmmwDemo:/>multiObjBeamForming -1 1 0.5\n'
b'Done\n'
b'\rmmwDemo:/>clutterRemoval -1 1\n'
b'Done\n'
b'\rmmwDemo:/>calibDcRangeSig -1 0 -5 8 256\n'
b'Done\n'
b'\rmmwDemo:/>extendedMaxVelocity -1 0\n'
b'Done\n'
b'\rmmwDemo:/>bpmCfg -1 0 0 1\n'
b'Done\n'
b'\rmmwDemo:/>lvdsStreamCfg -1 0 0 0\n'
b'Done\n'
b'\rmmwDemo:/>compRangeBiasAndRxChanPhase 0.0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0\n'
b'Done\n'
b'\rmmwDemo:/>measureRangeBiasAndRxChanPhase 0 1.5 0.2\n'
b'Done\n'
b'\rmmwDemo:/>CQRxSatMonitor 0 3 4 63 0\n'
b'Done\n'
b'\rmmwDemo:/>CQSigImgMonitor 0 127 4\n'
b'Done\n'
b'\rmmwDemo:/>analogMonitor 0 0\n'
b'Done\n'
b'\rmmwDemo:/>aoaFovCfg -1 -90 90 -90 90\n'
b'Done\n'
b'\rmmwDemo:/>cfarFovCfg -1 0 0 59.99\n'
b'Done\n'
b'\rmmwDemo:/>cfarFovCfg -1 1 -30 30.00\n'
b'Done\n'
b'\rmmwDemo:/>staticBoundaryBox -50 50 0.5 60 -0.5 6\n'
b'Done\n'
b'\rmmwDemo:/>boundaryBox -50 50 0.5 60 -0.5 6\n'
b'Done\n'
b'\rmmwDemo:/>gatingParam 4 6 6 6 10\n'
b'Done\n'
b'\rmmwDemo:/>stateParam 4 10 60 600 20 600\n'
b'Done\n'
b'\rmmwDemo:/>allocationParam 30 30 0.5 3 2 2\n'
b'Done\n'
b'\rmmwDemo:/>maxAcceleration 0.1 0.1 0.1\n'
b'Done\n'
b'\rmmwDemo:/>trackingCfg 1 2 250 20 78 121 99\n'
b'Done\n'
b'\rmmwDemo:/>sensorPosition 2 0 0\n'
b'Done\n'
b'\rmmwDemo:/>presenceBoundaryBox -3 3 2 6 0.5 2.5\n'
b'Done\n'
b'\rmmwDemo:/>sensorStart\n'

What I Have Tried

  • I connected the configuration UART to Tera Term (baud rate: 115200) and successfully sent the configuration commands.
  • I connected the data UART to another Tera Term session. However, the output appears as junk characters, regardless of the baud rate I try.

Questions:

  1. What is the correct baud rate and settings for receiving readable detection data over the data UART?
  2. What is the expected format of the UART data? Is it binary, and does it require a specific parser?
  3. Are there any additional steps or settings required to correctly receive and interpret the data?
  4. Is there a recommended example code or tool for parsing and verifying the output from the data UART?

My goal is to detect a person/moving object and send the processed data over UART to another MCU. Any guidance on how to achieve this would be greatly appreciated.

Thank you!

  • Hello, 

    Thank you for the information! I understand what you are trying to do.

    I connected the data UART to another Tera Term session. However, the output appears as junk characters, regardless of the baud rate I try.

    These "junk characters" are expected for the data UART, the data is transmitted over UART in a raw binary format. It needs to be decoded and parsed for readability.

    What is the correct baud rate and settings for receiving readable detection data over the data UART?

    For most 6843 demos, the data UART speed should be 921600 while the configuration UART speed is 115200. 

    What is the expected format of the UART data? Is it binary, and does it require a specific parser?

    It is transmitted as binary data that needs to be decoded. Also, every frame, the data is transmitted out in this TLV format which is described here: Understanding UART data output format

    Is there a recommended example code or tool for parsing and verifying the output from the data UART?

    We provide the python source code for the industrial visualizer when you download the radar toolbox. This includes the code which decodes and parses the UART data. Please refer the code in parseFrame.py and parseTLV.py in {RADAR_TOOLBOX_INSTALL}\tools\visualizers\Applications_Visualizer\common\. 

    Best regards,

    Josh

  • Thanks for the details. I'll go through the parsing and see how it works. If I run into any issues, I may need some help.

    I am currently using the IWR6843ISK with the MMWAVEICBOOST, connecting the board to my PC via USB. However, I would like to use the IWR6843ISK in standalone mode without the ICBOOST.

    • How can I access the UART interfaces directly on the IWR6843ISK for configuration and data output?
    • Is it possible to obtain UART output data from the ICBOOST breakout pins when the IWR6843ISK is mounted on it?

    Best regards,

    Abhithlal C

  • Hi Abhithlal, 

    Which revision is your ISK EVM? Only rev C and later can be used in standalone mode. In that case you just connect to the USB on the EVM and the process is similar to using the ICBOOST except the com port name in windows will be different. Also the switch setup for standalone mode differs from with the ICBOOST, it is described on this page.

    Is it possible to obtain UART output data from the ICBOOST breakout pins when the IWR6843ISK is mounted on it?

    Yes, you just need to configure the switches such that the UART output is routed to the BP/LP connectors on the back instead of the USB port. Please refer to the ICBOOST user guide

    Best regards,

    Josh

  • Hi Josh,

    Thanks for your response! I am using IWR6843ISK Rev B, so I understand that standalone mode is not an option for my setup.

    Regarding UART output, I want to obtain TTL-level UART data when the IWR6843ISK is mounted on the MMWAVEICBOOST. Based on the documentation, it seems that I can access UART signals via the BP/LP connectors. Could you confirm if the correct pins for TTL UART are:

    • TX (from IWR6843 to external device (STM32WL)/PC): J6.3 (MSS Logger)
    • RX (from external device/PC to IWR6843): J6.4 (DSS Logger)
    • GND: J6.1

    Additionally, I see that S1.5 controls UART routing. If I set S1.5 to OFF, will the UART output be available on J6 instead of being routed to the onboard XDS110?

    Thanks again for your help!

    Best regards,
    Abhithlal

  • Hello, 

    What revision is your MMWAVE-ICBOOST board? I don't think those are the right pins. You can confirm by checking the MMWAVE-ICBOOST schematic. 

    BTW, MSS Logger is the data UART. It not bidirectional (TX only). RS232TX and RS232RX are the tx and rx signals for the configuration UART. 

    Best regards,

    Josh

  • My MMWAVEICBOOST revision is PROC074B-001



    It was my mistake, 

    • TX (from IWR6843 to external device (STM32WL)/PC): J6.9 (MSS Logger)


    RS232TX and RS232RX are the tx and rx signals for the configuration UART. 

    If that is the case,
    Can I directly connect RS232TX and RS232RX to an STM32 UART, or do I need an RS232-to-TTL converter (e.g., MAX232/MAX3232) to match voltage levels?

  • Hi Abhithlal, 

    My apologies for the delayed response. I'm not familiar with STM32 hw specifics but I believe you should be able to connect to the signals directly. 

    Best regards,

    Josh

  • Hi Josh,

    I appreciate your response! I'll explore connecting to the signals directly and see how it goes. Thanks

    Best regards,
    Abhithlal

  • Hi Josh,

    I have directly connected the RS232 TX and RX pins from the 40-Pin LP/BP on the MMWAVEICBOOST to the UART of the STM32. I was able to successfully configure the IWR6843ISK board through this connection.

    Now, I'm working on modifying the example project to handle both configuration and data output over the same UART interface. 

    Best regards,
    Abhithlal

  • Hi Abhithlal, 

    Okay, that's good to hear. Since you already have another thread open on that topic I will close this thread. 

    Best regards,

    Josh