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.

DCA1000EVM: Command to transfer ADC data though UDP protocol in LUA script for DCA1000

Part Number: DCA1000EVM

Hello.

I am trying to make my own python program for realtime data analyzer for mmWave Radar.

To capture ADC results in realtime, it seems that the command of ar1.CaptureCardConfig_StartRecord(adc_data_path, 1) is necessary to start UDP data transfer to PC.

However, the command also save the binary data files in PC too and the file size is huge.

I just want to start the ADC data transfer through the UDP protocol without saving the binary file in the hard disk.

1) Is there any other command to start ADC data transfer though the UDP?

2) Is there any other way to configure DCA1000EVM and Radar module or  run the lua script without mmWave Studio?

Thank you.

--Start Record ADC data
print("******* starting to record ADC data *******")
adc_data_path = "C:\\ti\\mmwave_studio_02_01_00_00\\mmWaveStudio\\PostProc\\test_data.bin"
ar1.CaptureCardConfig_StartRecord(adc_data_path, 1)
RSTD.Sleep(1000)

--Trigger frame
ar1.StartFrame()
RSTD.Sleep(5000)

  • Hello,

    You might want to refer to the below thread for a heads up :

    Please let us know if you've any further questions.

    Regards,

    Ishita

  • Hello.

    My question is how to bypass saving the binary file in PC.

    It seems that the command of ar1.CaptureCardConfig_StartRecord(adc_data_path, 1) is required to start the data stream.

    However, it is necessary to save the binary file in PC.

    Is there any other command to start the ADC data stream?

    Thank you.

  • Hello, 

    As mentioned in the previous thread, mmwave studio cannot be used for live processing. Its only architected for offline processing. "ar1.CaptureCardConfig_StartRecord()" is a studio command and hence cannot be used for real time capture.

    If you want to do live processing you would have to capture the raw data directly from the Ethernet port using your own application. 

    The last post in this thread by our expert mentions about the process you could do.

    Let me know if I didn't get your question right.

    Thanks,

    Ishita

  • Hello.

    Thank you for the reply.

    So, eventually, there is no way to stream the ADC data without saving file in PC.

    Is there any source file which ar1.CaptureCardConfig_StartRecord function is defined?

    I try to find the file in C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\ReferenceCode\DCA1000\SourceCode, however, I couldn't.

    If possible, I want to modify the function of ar1.CaptureCardConfig_StartRecord() to skip saving binary file.

    JG Kim

  • Hello JG Kim,

    Source code provided contains code for three instances ( if you refer makefile) : TARGET_DLL, TARGET_CTRL, TARGET_REC.

    Please refer rf_api.cpp: StartRecordData function where it actually trigger the capture event.

    I hope you can navigate from here to find out what you are looking for and make the required changes.

     

    Regards,

    Jitendra