+ Reply to Thread
Results 1 to 3 of 3

Thread: Is it possible to read two radar data streams at one time ?

  1. #1
    New Member New Member dory is on a distinguished road dory's Avatar
    Join Date
    Sep 2020

    Is it possible to read two radar data streams at one time ?


    I have recently purchased two Demo Position2Go boards. I want to retrieve processed data (range, velocity, angle) from both of the radar devices simultaneously--i.e., at each time instant I want to obtain the target data reported by radar 1 followed by radar 2. I am using C interface of the Radar Host Communication library.
    I modified the example file given (extract_raw_data.c) to get the processed target info instead of the raw ADC data and it works for one device.
    However, when two of the radar devices are connected to two USB ports, even after registering two callbacks and providing the appropriate protocol handle and endpoint for each radar, only the data from first radar device is recorded. i.e., the same data (from radar 1) is repeated for the call to ep_targetdetect_get_targets() function with protocol handle and endpoint for radar device 2.
    Could you kindly help me with this, pls.?


  2. #2
    Beginner Beginner
    Infineon Employee
    Infineon Employee
    tinymanta is on a distinguished road
    Join Date
    Jan 2019
    Hello Dory,

    Yes, it is possible to read two radar data streams at one time, but there are some pitfalls.

    In general the ComLib is capable to handle multiple connections at the same time, thatís why the connection handle must always be specified in each function call.
    You can easily start two P2G devices, and then call get_next_frame() alternatingly for both devices. Here devices are working simultaneously, but ComLib usage is not really simultaneously.
    For both devices always the same callback function with the same context pointer is called, and must check the connection handle to find out what device sent the callback and route the data accordingly.

    To be really simultaneous, both devices must be handled in different threads. That will become somewhat complicated, because ComLib is not thread safe.
    Itís not possible to open different connections and register callbacks from different threads. If that setup part is kept in a common main thread, then fetching data from different threads should work.
    If user wants to do the setup in different threads, than there is a need for some wrapper code around ComLib that handles locking.

    Best Regards,

  3. #3
    New Member New Member Brayden is on a distinguished road
    Join Date
    Dec 2020
    Two data streams? What are the hardware requirements?

+ Reply to Thread

Tags for this Thread


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.