This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AWR1843BOOST: radar board, DCA1000 board and mmwave studio time synch with RealSense Camera

Part Number: AWR1843BOOST

Tool/software:

Hi,

I'm using the AWR1843BOOST connected to the DCA1000. I'm using mmwavestudio 2.0.0.1 and got it fully functional and was able to collect data. I now want to synch the radar data collection with a RealSense camera. I have the start time synching working using a python script that automatically clicks the Trigger Frame button in mmwave studio and then starts collecting real sense camera data at the same time. I need a way to now get the real sense camera to stop data collection once the radar stops data collection. As previously mentioned, my start time synch relies on clicking the start button in the mmwave gui and then starting the RealSense but as the radar runs and then stops data collection after a certain amount of frames has been collected, there is no way for me to be able to tell in my python script when the radar data has finished collecting data to then be able to stop the RealSense from collecting data.

My question therefore: is there a way to set mmwave studio to send some kind of signal to my python script indicating that the data collection is done. I'd prefer to do this without some type of hardware trigger (using a software signal only between mmwave studio and a python script)? Any help would be appreciated thanks!

  • Hi again,

    I've decided to write a lua script that starts capturing the radar data. It works and i capture the raw adc data until the specified amount of frames i put in the frame configuration in mmwave studio. I was wondering if there is a way (like one of the ar1. functions) that will allow me to tell that Frame End async event received! Frame Ended was received so that i could add this to the lua script to be able to tell that the radar data collection has been completed. I will then go about sending a signal to python to stop the camera data collection. This is my lua script so far: 

    info = debug.getinfo(1, 'S')
    file_path = (info.source)
    file_path = string.gsub(file_path, "@", "")
    file_path = string.gsub(file_path, "StartCaptureKauthar.lua", "")
    fw_path   = file_path .. "..\\..\\rf_eval_firmware"

    -- Load bit operations script
    bitopfile = file_path .. "\\" .. "bitoperations.lua"
    dofile(bitopfile)

    -- Define ADC data path (ensure this is correct for your setup)
    adc_data_path = file_path .. "adc_data_test.bin" -- Example path, adjust as needed

    -- Start ADC data recording
    local record_status = ar1.CaptureCardConfig_StartRecord(adc_data_path, 1)
    if record_status == 0 then
        WriteToLog("ADC data recording started successfully\n", "green")
    else
        WriteToLog("Failed to start ADC data recording\n", "red")
        return  -- Exit script on failure
    end
    RSTD.Sleep(1000)  -- Wait 1 second

    -- Trigger radar frame
    local frame_status = ar1.StartFrame()
    if frame_status == 0 then
        WriteToLog("Radar frame triggered successfully\n", "green")
    else
        WriteToLog("Failed to trigger radar frame\n", "red")
        return  -- Exit script on failure
    end
    RSTD.Sleep(5000)  -- Wait 5 seconds (adjust based on frame duration)

    WriteToLog("Data collection completed successfully\n", "blue")


    I just need a function to tell that the radar has finished data collection to add to my script if this is possible
  • Hello,

    You could set up a time on the python code when its safe to assume the radar has collected the data if the no. fo frames is not going to change during application.

    -E. Shareef

  • Hi, 

    Thanks for the reply. This could work thanks! Is there no ar1. commands for the lua script that I could use though? If not I'll give this method a try.

  • I am checking iwth my software colleagues. 

    Thanks,

    E. Shareef

  • Thank you, just let me know if there is an update.

  • Hello Kauthar,

    There is no command to let you know its completed, so you will not be able to use that type of system.
    Here you know how long the radar is running for as in you know the frame timings as you have programmed those, why not use that only to stop the camera?

    Regards,
    Saswat Kumar