Main Content

Configure Radar Using a Configuration (.cfg) File for Reading Detections

To configure the TI mmWave radar board, you must send a sequence of commands to the board using the serial port. This sequence specifies parameters such as the chirp profile, sampling rate, and desired outputs. The commands must be saved in a configuration (config) file with a .cfg extension and used in the appropriate workflow to configure the radar. For more information on the commands, see the user guide for respective boards.

For all supported boards except IWRL643BOOST, see the Configuration (.cfg) File Format section in mmWave SDK user guide.

For IWRL6432BOOST, refer to Parameter Tuning and Customization Guide for the IWRL6432 Motion/Presence Detection Demo. You can find information about this guide at this link.

Specify Config File for mmWaveRadar and dca1000

For the mmWaveRadar object that is used to read detections, and the dca1000 object that is used to read IQ data (ADC data) in MATLAB, use the property or name-value argument ConfigFile to specify the required config file. You need to specify the filename with full file path and extension.

For instance, if tiradar is the name of the mmWaveRadar object that you created and you want to configure the radar using the file C:\Configs\ xwr68xx_2Tx_BestRange_UpdateRate_10.cfg, then specify the config file as shown below:

tiradar.ConfigFile = "C:\Configs\ xwr68xx_2Tx_BestRange_UpdateRate_10.cfg";

The mmWaveRadar object and dc1000 object set a few properties of the object based on the parameters in the configuration file.

Note

The outputs obtained using mmWaveRadar object also depends on the config file specified. For more information about the outputs that you obtain in MATLAB, see mmWaveRadar. At the default baud rate of 921600, for getting heat map outputs, set the frame rate to less than or equal to 5 fps. For more information, see Performance Considerations for Using mmWave Radar Sensors for Reading Object Detections

Specify Config file for Read Detections Block

For Read Detections block in Simulink, specify the config file in the option available in the block mask. You need to specify the filename with full file path and extension.

After you click Apply, the parameters under Configurations get updated as per the specified configuration file.

Note

The parameter corresponding to outputting the detections (point cloud) must be enabled in the Configuration (.cfg) file to read detections using the Read Detections block.

Sample Config Files

You can use a sample configuration file provided with the support package instead of generating a configuration file. The sample files are stored in the configfiles folder in TI Radar Support package install directory. To navigate to this directory, execute the following commands in MATLAB® command window.

installDir = matlabshared.supportpkg.getSupportPackageRoot
tiradarCfgFileDir = fullfile(installDir,'toolbox','target', 'supportpackages', 'timmwaveradar', 'configfiles');
cd(tiradarCfgFileDir)

Once you identify the config file you need to use to configure the TI radar, specify this file name with full file path and extension as mentioned in the previous sections.

Generate Configuration File for All Supported Boards Except IWRL6432BOOST

Instead of using the sample files, you can use your own Configuration (.cfg) file and specify the full path to the file while defining the ConfigFile property.

For all the supported boards except the IWRL6432BOOST board, use mmWave Demo visualizer application to generate the configuration file.

Use the Setup Details and Scene Selection sections in the application to specify the required configurations.

Select the appropriate platform for your TI board:

  • xwr68xx for TI IWR6843ISK or TI AWR6843ISK

  • xwr68xx_AOP for TI IWR6843AOPEVM or TI AWR6843AOPEVM

  • xwr16xx for TI AWR1642BOOST or TI IWR1642BOOST

  • xwr18xx for TI AWR1843BOOST or TI IWR1843BOOST

  • xwr18xx_AOP for TI AWR1843AOP

Use the check boxes in Plot Selection section to specify the required outputs:

  • Select Scatter plot for getting detections (point cloud) outputs.

  • Select Range Profile and Noise Profile for getting range profile and noise profile outputs respectively.

  • Select Range Doppler Heat Map and Range Azimuth Heat Map for getting range doppler and range angle responses in outputs respectively.

Once you have specified the required configurations, click Save Config to PC to generate the corresponding .cfg file.

Generate Configuration (.cfg) File for IWRL6432BOOST

To generate the Configuration (.cfg) file for the IWRL6432BOOST, refer to Parameter Tuning and Customization Guide for the IWRL6432 Motion/Presence Detection Demo. You can find information about this guide at this link.