Oct 10, 2018
08:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 10, 2018
08:02 PM
By using the extract_raw_data.c of ComLib_C_Interface provided by Infineon, frame_info->sample_data of received_frame_data() can be printed.
1. How to extract I and Q data from sample_data[]? Are sample_data[0-254] and sample_data[255-499] belonged to I and Q data respectively?
2. FFT of Python is used, how to calculate the range from I & Q data?
3. How to calculate the velocify?
1. How to extract I and Q data from sample_data[]? Are sample_data[0-254] and sample_data[255-499] belonged to I and Q data respectively?
2. FFT of Python is used, how to calculate the range from I & Q data?
3. How to calculate the velocify?
Solved! Go to Solution.
1 Solution
Mar 11, 2019
06:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 11, 2019
06:16 AM
Hi,
The extract_raw_data.c example of the ComLib_C_Interface provided by Infineon within the D2G FW package is configured as follows:
interleaved_rx = 0, data_format = RADAR_RX_DATA_COMPLEX (please refer to frame_info->interleaved_rx, and frame_info->data_format)
The radar data of multiple RX antennas (1 for D2G) is stored in consecutive data blocks, where each block holds data of one antenna. Thus, the first 2 x 256 samples received are I1, Q1
The index calculation of a certain data sample captured from a certain RX antenna depends on the data interleaving and on real/complex data format.
For the extract_raw_data.c example default frame format configuration, the following code demonstrates how to access a data sample.
data_value_real = frame_start [(2 * ANTENNA_NUMBER ) * num_samples_per_chirp + SAMPLE_NUMBER];
data_value_imag = frame_start [(2 * ANTENNA_NUMBER + 1) * num_samples_per_chirp + SAMPLE_NUMBER];
Best Regards,
Montassar
The extract_raw_data.c example of the ComLib_C_Interface provided by Infineon within the D2G FW package is configured as follows:
interleaved_rx = 0, data_format = RADAR_RX_DATA_COMPLEX (please refer to frame_info->interleaved_rx, and frame_info->data_format)
The radar data of multiple RX antennas (1 for D2G) is stored in consecutive data blocks, where each block holds data of one antenna. Thus, the first 2 x 256 samples received are I1, Q1
The index calculation of a certain data sample captured from a certain RX antenna depends on the data interleaving and on real/complex data format.
For the extract_raw_data.c example default frame format configuration, the following code demonstrates how to access a data sample.
data_value_real = frame_start [(2 * ANTENNA_NUMBER ) * num_samples_per_chirp + SAMPLE_NUMBER];
data_value_imag = frame_start [(2 * ANTENNA_NUMBER + 1) * num_samples_per_chirp + SAMPLE_NUMBER];
Best Regards,
Montassar
3 Replies
Oct 19, 2018
01:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 19, 2018
01:08 AM
jackiechau wrote:
By using the extract_raw_data.c of ComLib_C_Interface provided by Infineon, frame_info->sample_data of received_frame_data() can be printed.
1. How to extract I and Q data from sample_data[]? Are sample_data[0-254] and sample_data[255-499] belonged to I and Q data respectively?
2. FFT of Python is used, how to calculate the range from I & Q data?
3. How to calculate the velocify?
Can anyone help?
Oct 26, 2018
03:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 26, 2018
03:56 AM
I am not using the C interface but by looking at the sizes it would mean you have 255 I (0-254) and 245 Q (255-499) data which doesn't look correct.
In the config.h (DAVE) it says 250 is the maximum value for data size, so it should be 250 I and 250 Q or 125 I and 125 Q, not sure which one. Probably 125 each?
In the config.h (DAVE) it says 250 is the maximum value for data size, so it should be 250 I and 250 Q or 125 I and 125 Q, not sure which one. Probably 125 each?
Mar 11, 2019
06:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 11, 2019
06:16 AM
Hi,
The extract_raw_data.c example of the ComLib_C_Interface provided by Infineon within the D2G FW package is configured as follows:
interleaved_rx = 0, data_format = RADAR_RX_DATA_COMPLEX (please refer to frame_info->interleaved_rx, and frame_info->data_format)
The radar data of multiple RX antennas (1 for D2G) is stored in consecutive data blocks, where each block holds data of one antenna. Thus, the first 2 x 256 samples received are I1, Q1
The index calculation of a certain data sample captured from a certain RX antenna depends on the data interleaving and on real/complex data format.
For the extract_raw_data.c example default frame format configuration, the following code demonstrates how to access a data sample.
data_value_real = frame_start [(2 * ANTENNA_NUMBER ) * num_samples_per_chirp + SAMPLE_NUMBER];
data_value_imag = frame_start [(2 * ANTENNA_NUMBER + 1) * num_samples_per_chirp + SAMPLE_NUMBER];
Best Regards,
Montassar
The extract_raw_data.c example of the ComLib_C_Interface provided by Infineon within the D2G FW package is configured as follows:
interleaved_rx = 0, data_format = RADAR_RX_DATA_COMPLEX (please refer to frame_info->interleaved_rx, and frame_info->data_format)
The radar data of multiple RX antennas (1 for D2G) is stored in consecutive data blocks, where each block holds data of one antenna. Thus, the first 2 x 256 samples received are I1, Q1
The index calculation of a certain data sample captured from a certain RX antenna depends on the data interleaving and on real/complex data format.
For the extract_raw_data.c example default frame format configuration, the following code demonstrates how to access a data sample.
data_value_real = frame_start [(2 * ANTENNA_NUMBER ) * num_samples_per_chirp + SAMPLE_NUMBER];
data_value_imag = frame_start [(2 * ANTENNA_NUMBER + 1) * num_samples_per_chirp + SAMPLE_NUMBER];
Best Regards,
Montassar