Main Content

Configure Radar Using a Configuration (.cfg) File for Reading Raw ADC (IQ) Data

To configure the TI mmWave radar board, you must send a sequence of commands to the board using the serial port. The sequence includes commands specifying the chirp profile, sampling rate, required outputs, and so on. For more information on the commands, see the Configuration (.cfg) File Format section in mmWave SDK user guide. Use the ConfigFile property of the dca1000 object to send the sequence of commands to the board.

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 MATALB 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 the value of the property ConfigFile of the dca1000 object

For example, if tiradar is the name of the dca1000 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 dca1000 object sets a few properties of the object based on the parameters in the configuration file.

Generate Configuration File for All Supported Boards

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

Clear (uncheck) the check boxes in Plot Selection section to optimize the performance.

Once you have specified the required configurations, click SAVE CONFIG TO PC to generate the corresponding .cfg file. For more information about the outputs that you obtain in MATLAB, see dca1000 object.