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.

  • TI Thinks Resolved

IWR1443BOOST: DCA1000EVM---adc_data_Raw_0.bin size differs

Prodigy 55 points

Replies: 5

Views: 219

Part Number: IWR1443BOOST

Hello

 

I am currently using IWR1443 with DCA1000evm to collect raw data from Ethernet port. I was trying to control mmwave studio by matlab script which originated from mmwave studio user guide. However, the file ``adc_data_Raw_0.bin`` that I obtained using lua script is different from the same binary file that I obtained through clicking buttons of mmwave studio manually. Here, I upload the snapshot and the lua script.

Fig.1 binary file that I obtained through clicking buttons of mmwave studio

 

Fig.2 binary file that I obtained using lua script

 

It can be seen that the file size in Fig.1 is about 64KB while the size in Fig.2 is 65KB.

Then error info appears if I run packetrecordzerofill.exe to adc_data_Raw_0.bin of Fig.2.

For binary file of Fig.1, packetrecordzerofill.exe works fine.

I would like to know if there is any mistake on my lua script. 

Thank you.

 

 

Lua script

ar1.SOPControl(2)
RSTD.Sleep(20)
ar1.Connect(12,115200,1000)
RSTD.Sleep(20)
ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_01_00_00_00\\rf_eval_firmware\\radarss\\xwr12xx_xwr14xx_radarss_ES2.0.bin")
WriteToLog("BSS FW Download Success\n", "green")
RSTD.Sleep(20)
ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_01_00_00_00\\rf_eval_firmware\\masterss\\xwr12xx_xwr14xx_masterss_ES2.0.bin")
WriteToLog("MSS FW Download Success\n", "green")
RSTD.Sleep(20)
ar1.PowerOn(0, 1000, 0, 0)
WriteToLog("Power On Success\n", "green")
RSTD.Sleep(20)
ar1.RfEnable()
WriteToLog("RF Enable Success\n", "green")
RSTD.Sleep(20)
ar1.ChanNAdcConfig(1, 0, 0, 1, 0, 0, 0, 2, 2, 0)
WriteToLog("ChanNAdcConfig Success\n", "green")
RSTD.Sleep(20)
ar1.LPModConfig(0, 0)
WriteToLog("Regualar mode Cfg Success\n", "green")
RSTD.Sleep(20)
ar1.RfInit()
WriteToLog("RfInit Success\n", "green")
RSTD.Sleep(20)
ar1.DataPathConfig(513, 1216644097, 0)
WriteToLog("DataPathConfig Success\n", "green")
RSTD.Sleep(20)
ar1.LvdsClkConfig(1, 1)
WriteToLog("LvdsClkConfig Success\n", "green")
RSTD.Sleep(20)
ar1.LVDSLaneConfig(0, 1, 0, 0, 0, 1, 0, 0)
WriteToLog("LVDSLaneConfig Success\n", "green")
RSTD.Sleep(20)
ar1.ProfileConfig(0, 77, 7, 7, 212.8, 0, 0, 0, 0, 0, 0, 18.298, 1, 1024, 5000, 0, 0, 40)
WriteToLog("ProfileConfig Success\n", "green")
RSTD.Sleep(20)
ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
WriteToLog("ChirpConfig Success\n", "green")
RSTD.Sleep(20)
ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
WriteToLog("ChirpConfig Success\n", "green")
RSTD.Sleep(20)
ar1.FrameConfig(0, 0, 1, 4, 1, 0, 1)
WriteToLog("FrameConfig Success\n", "green")
RSTD.Sleep(20)
ar1.SelectCaptureDevice("DCA1000")
WriteToLog("SelectCaptureDevice Success\n", "green")
RSTD.Sleep(20)
--DATA CAPTURE CARD API
ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "12:34:56:78:90:12", 4096, 4098)
WriteToLog("CaptureCardConfig_EthInit Success\n", "green")
RSTD.Sleep(20)
ar1.CaptureCardConfig_Mode(1, 1, 1, 2, 3, 30)
WriteToLog("CaptureCardConfig_Mode Success\n", "green")
RSTD.Sleep(20)
ar1.CaptureCardConfig_PacketDelay(25)
WriteToLog("CaptureCardConfig_PacketDelay Success\n", "green")
RSTD.Sleep(20)
--Start Record ADC data
ar1.CaptureCardConfig_StartRecord("C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\PostProc\\adc_data.bin", 1)
--WriteToLog("ARM Start \n", "green")
RSTD.Sleep(20)
--Trigger frame
ar1.StartFrame()
--WriteToLog("Frame Start \n", "green")
RSTD.Sleep(2000)
-- Stop Recording
ar1.CaptureCardConfig_StopRecord()
--WriteToLog("Frame Start \n", "green")
RSTD.Sleep(20)

 

  • user5178559,

    let me run your script an ill report back.

    Alex
  • Xu,

    I ran your script and i was not able to reproduce the error, can you attach both log files for the captures?

    Alex
  • In reply to Alex Rivera:

    Hi, Alex

    Thank you for your quick reply. I double check my script and I found that the file of 64KB is produced by clicking “ARM” and “Trigger Frame” button after I run my lua script using Matlab. Probably this is not the proper order to collect data. On the contrary the file of 65KB works fine with packetrecordzerofill.exe. Anyway I uploaded the log file for reference. Thank you for taking you time on my script.

     Then I have one more problem where I had spent lot of time. I would like to repeat the process of data collection thousands of times. Rather than one whole record, I prefer a single record corresponding to one single collection process. However, if I use "for-loop" command in Matlab to repeat “Trigger Frame” command via lua script, mmwave studio will suddenly collapse after the first few loops. Could you help me figure it out at your convenience?  

    Thank you and have a nice day.

    Xu

    data_Collection.rarlogfile corresponding to button-clicking mode.rar

  • In reply to user5178559:

    Xu,

    The log that I need is this one, for both cases, just copy and paste it here or a text file

    Thanks 

    Alex

  • In reply to user5178559:

    Xu,

    I hope your issues are resolved, if not please let us know.

    Alex

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.