MATLAB interface plugin Distance2Go 24 GHz radar demo kit

Announcements

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User15583
Level 3
Level 3
First solution authored 10 replies posted 5 replies posted
Hi,

I am working with the Infineon Distance2Go 24 GHz radar demo kit for ranging, movement and presence detection (with a XMC 4200 microcontroller and BGT24MTR11 for radar purposes). The board and the Radar GUI (as a part of the Infineon Toolbox) are working fine, but I'd like to gather live data from the baord with MATLAB.
In the application note AN543 is said 'A Matlab Interface plugin is also available to extract the raw IF data from the radar module via the USB interface to the PC/laptop for further signal processing'.
Where can I find/download/install that plugin? Using the MATLAB search for additional toolboxes there is only the XMC Library for Embedded Coder (by Infineon) but this does not seem to be the right software.

Has someone else already tried to use this board in connection with MATLAB and can help me?

Thank you in advance!
0 Likes
8 Replies
User15757
Level 1
Level 1
First like received 5 replies posted First question asked
Hey, have you found the software package yet? It's in the provided software under hostcommunication -> matlab.
0 Likes
User15583
Level 3
Level 3
First solution authored 10 replies posted 5 replies posted
Hey,
yes thank you, I found it in the meantime 🙂
0 Likes
User16579
Level 1
Level 1
Hi,
please, can someone help with MATLAB script that can help readout velocity, range and FFT values. I also want them saved for further analysis.

Many thanks

ID
0 Likes
Montassar-BR
Employee
Employee
5 questions asked 250 sign-ins 25 likes received
Hi IdUlster,

Which radar platform from Infienon are you using ?
Please try to browse to /Firmware_Software/Communication Library/ComLib_Matlab_Interface.zip file.

Cheers,
Montassar.
0 Likes
User16579
Level 1
Level 1
Hi Montassar,

I am using Disatance2go and have tried using the zip file but could not read out velocity and range data as would on the Infineon Radar GUI. Please,am I missing out something?
Many thanks

IdUlster
0 Likes
Montassar-BR
Employee
Employee
5 questions asked 250 sign-ins 25 likes received
Hi IdUIster,

Please refer to the matlab\RadarSystemDocumentation\MATLAB Radar System API Distance2Go.pdf file.
You can there find details about the get_targets() API, that returns the received target information as a struct containing the target information like speed and distance...

Let me know about your findings.
Cheers,
Montassar.
0 Likes
User16579
Level 1
Level 1
Hi Montassar,

Million thanks for your help but trust me, I am a complete novice with MATLAB. I have tried the codes on the pdf file and some more online to no avail. I will be grateful if you can help me out with the codes, please.

here is what I tried:

clc
disp('******************************************************************');
addpath('..\..\RadarSystemImplementation'); % add Matlab API
clear all %#ok
close all
resetRS; % close and delete ports

% 1. Create radar system object
szPort = findRSPort; % scan all available ports
oRS = RadarSystem(szPort); % setup object and connect to board

% The automatic trigger runs after startup by default
oRS.oEPRadarBase.stop_automatic_frame_trigger; % stop it to change values
oRS.oEPRadarFMCW.lower_frequency_kHz = 24025000; % lower FMCW frequency
oRS.oEPRadarFMCW.upper_frequency_kHz = 24225000; % upper FMCW frequency
oRS.oEPRadarFMCW.tx_power = oRS.oEPRadarBase.max_tx_power;
oRS.oEPRadarBase.num_chirps_per_frame = 1;
oRS.oEPRadarBase.num_samples_per_chirp = 256; % [32, 64, 128, 256]
oRS.oEPRadarBase.rx_mask = bin2dec('0001'); % D2Go has single Rx
oRS.oEPRadarFMCW.direction = 'Up Only';
% 3. Trigger radar chirp, get the raw data and plot it
[mxRawData, sInfo] = oRS.oEPRadarBase.get_frame_data; % get raw data
plot([real(mxRawData(:,1)), imag(mxRawData(:,1))]); % plot data

...I also tried 'get_speed_kmh'

Many thanks

IdUlster
0 Likes
User18379
Level 1
Level 1
First reply posted First question asked
Hi
I where can I find Matlab codes for the doppler Radar?
0 Likes