infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 4 of 4

Thread: Extract I / Q data and calculate range from raw data of Distance2Go

  1. #1
    New Member New Member jackiechau is on a distinguished road
    Join Date
    Oct 2018
    Posts
    2
    Points
    37.5

    Extract I / Q data and calculate range from raw data of Distance2Go

    By using the extract_raw_data.c of ComLib_C_Interface provided by Infineon, frame_info->sample_data[i] 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?

  2. #2
    New Member New Member jackiechau is on a distinguished road
    Join Date
    Oct 2018
    Posts
    2
    Points
    37.5
    Quote Originally Posted by jackiechau View Post
    By using the extract_raw_data.c of ComLib_C_Interface provided by Infineon, frame_info->sample_data[i] 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?

  3. #3
    New Member New Member radaruser is on a distinguished road
    Join Date
    Aug 2018
    Posts
    23
    Points
    155
    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?
    Last edited by radaruser; Oct 26th, 2018 at 03:58 AM.

  4. #4
    Intermediate Intermediate
    Infineon Employee
    Infineon Employee
    tinymanta is on a distinguished road
    Join Date
    Jan 2019
    Location
    Munich
    Posts
    15
    Points
    270
    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 views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.