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: how to manually load raw data for analyze?

Part Number: DCA1000EVM
Other Parts Discussed in Thread: IWR1443BOOST,

Hello,

I have set up IWR1443Boost with DCA1000EVM and captured some data, the post processing tool in mmwave studio showed that there are 300 frames, each frame 128 chirp loops, and each loop 3 chirps (Tx1, Tx2, Tx3), for each chirp, 256 samples are collected. There are four receivers, and I think that the total length of the raw data should be 2bytes*2(I,Q)*4(4Rxs)*256(samples)*3(3Tx)*128(chirp loops)*300 = 471,859,200 bytes. However, the bin file (adc_data.bin) generated was 547,688,960 bytes, so I do not know how to load the raw bin file. Could you please help me with this?

Thank you!

Best,

Peijun

  • Peijun,

    Can you please upload a copy of your log output window from mmwave studio in the form of a text file.

    thanks
    Alex
  • Hello!

    Thanks for replying. I put the log in a txt file. 

    Thank you very much!

    Best,

    Peijun Zhao

    GM: Constructor
    GM: Thu Jan 24 20:19:54 2019
    RSTD.Transmit("/Settings")
    [20:19:54]  
    [20:19:54]  ### Running Startup script: "C:\ti\mmwave_studio_01_00_00_00\mmWaveStudio\Scripts\Startup.lua" ###
    [20:19:54]  RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
    [20:19:54]  RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
    [20:19:54]  Scripter ignored: Attempt to UnBuild() again or before Build.
    [20:19:54]  RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Clients\\\\LabClient.dll")
    [20:19:54]  RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
    [20:19:54]  RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
    [20:19:54]  RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
    [20:19:54]  RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
    [20:19:54]  RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
    [20:19:54]  RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\RunTime\\SAL.dll")
    [20:19:54]  RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
    [20:19:54]  RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
    [20:19:54]  RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
    [20:19:54]  RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
    [20:19:54]  RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
    [20:19:54]  RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
    [20:19:54]  RSTD.Transmit("/")
    [20:19:54]  RSTD.SaveSettings(): Settings saved to "C:\Users\zhaoy\AppData\Roaming\RSTD\config.xml"
    [20:19:55]  RSTD.Build()
    [20:19:55]  RSTD.SaveSettings(): Settings saved to "C:\Users\zhaoy\AppData\Roaming\RSTD\config.xml"
    [20:19:55]  RSTD.Transmit("/")
    [20:19:55]  RSTD.AL_Build()
    [20:19:55]  RSTD.AL_LoadXml()
    [20:19:55]  RSTD.Transmit("/")
    [20:19:55]  RSTD.AL_Init()
    [20:19:55]  RSTD.Clients_Build()
    [20:19:55]  GM: Init
    [20:19:55]  GM: Loaded 'C:\ti\mmwave_studio_01_00_00_00\mmWaveStudio\Clients\\LabClient.dll'
    [20:19:55]  GM: 1 Guest (s) init
    [20:19:55]  GM: 1 Module(s) init
    [20:19:55]  GM: 2 Tab   (s) init
    [20:19:55]  RSTD.Client_LoadXml()
    [20:19:55]  [RadarAPI]: Starting Matlab Engine..
    [20:20:14]  [RadarAPI]: Matlab Engine Started!
    [20:20:18]  [RadarAPI]: ar1.LoadSettings('C:\Users\zhaoy\AppData\Roaming\RSTD\ar1gui.ini')
    [20:20:19]  TESTING = false
    [20:20:19]  
    [20:20:19]  ***Script completed successfully.***
    [20:20:22]  [RadarAPI]: Opening Gpio Control Port()
    [20:20:22]  [RadarAPI]: Status: Passed
    [20:20:23]  [RadarAPI]: Opening Board Control Port()
    [20:20:23]  [RadarAPI]: Status: Passed
    [20:20:24]  [RadarAPI]: ar1.FullReset()
    [20:20:24]  [RadarAPI]: Status: Passed
    [20:20:25]  [RadarAPI]: Closing Board Control Port()
    [20:20:25]  [RadarAPI]: Status: Passed
    [20:20:25]  [RadarAPI]: Closing Gpio Control Port()
    [20:20:25]  [RadarAPI]: Status: Passed
    [20:20:25]  [RadarAPI]: ar1.SOPControl(2)
    [20:20:25]  [RadarAPI]: Status: Passed
    [20:20:37]  [RadarAPI]: ar1.Connect(6,115200,1000)
    [20:20:38]  [RadarAPI]: ar1.Calling_IsConnected()
    [20:20:39]  [RadarAPI]: ar1.SelectChipVersion("XWR1443")
    [20:20:39]  [RadarAPI]: Status: Passed
    [20:20:39]  [RadarAPI]: ar1.SelectChipVersion("XWR1443")
    [20:20:39]  [RadarAPI]: Status: Passed
    [20:20:40]  [RadarAPI]: ar1.SaveSettings('C:\Users\zhaoy\AppData\Roaming\RSTD\ar1gui.ini')
    [20:38:21]  [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_01_00_00_00\\rf_eval_firmware\\radarss\\xwr12xx_xwr14xx_radarss_ES2.0.bin")
    [20:38:21]  [RadarAPI]: Downloading BSS ROM Legacy Binary..
    [20:39:02]  [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_01_00_00_00\\rf_eval_firmware\\masterss\\xwr12xx_xwr14xx_masterss_ES2.0.bin")
    [20:39:02]  [RadarAPI]: Downloading MSS Legacy Binary..
    [20:41:16]  [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
    [20:41:16]  [RadarAPI]: Status: Passed
    [20:41:16]  MSS power up done async event received!
    [20:41:16]  [RadarAPI]: ar1.SaveSettings('C:\Users\zhaoy\AppData\Roaming\RSTD\ar1gui.ini')
    [20:41:17]  [RadarAPI]: ar1.RfEnable()
    [20:41:17]  BSS power up done async event received!
    [20:41:17]  [RadarAPI]: Status: Passed
    [20:41:31]  [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 1, 1, 1, 1, 1, 2, 2, 0)
    [20:41:31]  [RadarAPI]: Status: Passed
    [20:41:33]  [RadarAPI]: ar1.LPModConfig(0, 0)
    [20:41:33]  [RadarAPI]: Status: Passed
    [20:41:34]  [RadarAPI]: ar1.RfInit()
    [20:41:34]  RF Init async event received!
    [20:41:34]  [RadarAPI]: Status: Passed
    [20:41:34]  [RadarAPI]: Time stamp, Temperture: 16992,40; APLL Status, Update: 1, 0; SynthVCO1 Status, Update: 1, 1; SynthVCO2 Status, Update: 1, 1; LODist Status, Update: 1, 1; RxADCDC Status, Update: 1, 1; HPFcutoff Status, Update: 1, 1; LPFcutoff Status, Update: 1, 1; PeakDetector Status, Update: 1, 1; TxPower Status, Update: 1, 1; RxGain Status, Update: 1, 1; RxIQMM Status, Update: 1, 1; 
    [20:41:45]  [RadarAPI]: ar1.DataPathConfig(513, 1216644097, 0)
    [20:41:45]  [RadarAPI]: Status: Passed
    [20:41:49]  [RadarAPI]: ar1.LvdsClkConfig(1, 1)
    [20:41:49]  [RadarAPI]: Status: Passed
    [20:41:51]  [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 1, 1, 1, 0, 0)
    [20:41:51]  [RadarAPI]: Status: Passed
    [20:42:04]  [RadarAPI]: ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 0, 30)
    [20:42:04]  [RadarAPI]: Status: Passed
    [20:42:42]  [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
    [20:42:42]  [RadarAPI]: Status: Passed
    [20:42:46]  [RadarAPI]: ar1.ChirpConfig(1, 1, 0, 0, 0, 0, 0, 0, 1, 0)
    [20:42:46]  [RadarAPI]: Status: Passed
    [20:42:49]  [RadarAPI]: ar1.ChirpConfig(2, 2, 0, 0, 0, 0, 0, 0, 0, 1)
    [20:42:49]  [RadarAPI]: Status: Passed
    [20:43:07]  [RadarAPI]: ar1.DisableTestSource(0)
    [20:43:07]  [RadarAPI]: Status: Passed
    [20:43:07]  [RadarAPI]: ar1.FrameConfig(0, 2, 0, 128, 100, 0, 1)
    [20:43:07]  [RadarAPI]: Status: Passed
    [20:43:10]  [RadarAPI]: ar1.SelectCaptureDevice("DCA1000")
    [20:43:10]  [RadarAPI]: passed
    [20:43:12]  [RadarAPI]: StatusDCCard Event Registered
    [20:43:12]  [RadarAPI]: Status: Passed
    [20:43:12]  [RadarAPI]: ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "12:34:56:78:90:12", 4096, 4098)
    [20:43:12]  [RadarAPI]: SYSTEM_CONNECT_CMD_CODE Async event recieved(9)
    [20:43:12]  [RadarAPI]: ConnectRFDCCard Status: Passed
    [20:43:12]  [RadarAPI]: ReadRFDCCarFpgaVersion Status: Passed
    [20:43:12]  [RadarAPI]: READ_FPGA_VERSION_CMD_CODE event recieved(14)
    [20:43:12]  [RadarAPI]: ar1.CaptureCardConfig_Mode(1, 1, 1, 2, 3, 0)
    [20:43:12]  [RadarAPI]: Status: Passed
    [20:43:12]  [RadarAPI]: CONFIG_FPGA_GEN_CMD_CODE Async event recieved(3)
    [20:43:12]  [RadarAPI]: ar1.CaptureCardConfig_PacketDelay(25)
    [20:43:12]  [RadarAPI]: Status: Passed
    [20:43:12]  [RadarAPI]: CONFIG_PACKET_DATA_CMD_CODE Async event recieved(11)
    [20:43:16]  [RadarAPI]: ar1.CaptureCardConfig_ResetFPGA()
    [20:43:16]  [RadarAPI]: Status: Passed
    [20:43:16]  [RadarAPI]: RESET_FPGA_CMD_CODE Async event recieved(1)
    [20:43:16]  [RadarAPI]: Status: Passed
    [20:43:16]  [RadarAPI]: READ_FPGA_VERSION_CMD_CODE event recieved(14)
    [20:43:16]  [RadarAPI]: ar1.CaptureCardConfig_Mode(1, 1, 1, 2, 3, 0)
    [20:43:16]  [RadarAPI]: Status: Passed
    [20:43:16]  [RadarAPI]: CONFIG_FPGA_GEN_CMD_CODE Async event recieved(3)
    [20:43:16]  [RadarAPI]: ar1.CaptureCardConfig_PacketDelay(25)
    [20:43:16]  [RadarAPI]: Status: Passed
    [20:43:16]  [RadarAPI]: CONFIG_PACKET_DATA_CMD_CODE Async event recieved(11)
    [20:43:44]  [RadarAPI]: ar1.CaptureCardConfig_StartRecord("F:\\raw_temp\\adc_data.bin", 1)
    [20:43:44]  [RadarAPI]: Status: Passed
    [20:43:44]  [RadarAPI]: RECORD_START_CMD_CODE Async event recieved(5)
    [20:43:46]  [RadarAPI]: ar1.StartFrame()
    [20:43:46]  [RadarAPI]: Status: Passed
    [20:43:46]  Frame start async event received!
    [20:44:21]  [RadarAPI]: ar1.StopFrame()
    [20:44:21]  [RadarAPI]: ar1.CaptureCardConfig_StopRecord()
    [20:44:21]  [RadarAPI]: StopRecordData Status: Passed
    [20:44:21]  [RadarAPI]: RECORD_STOP_CMD_CODE Async event recieved(6)
    [20:44:21]  [RadarAPI]: Status: Passed
    [20:44:21]  Frame End async event received!
    [20:44:29]  [RadarAPI]: Packet Reorder Utility Started...please wait...
    [20:44:29]  [RadarAPI]: ar1.PacketReorderZeroFill("F:\\raw_temp\\adc_data_Raw_0.bin", "F:\\raw_temp\\adc_data.bin", "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\PostProc\\pktlogfile.txt")
    [20:44:44]  [RadarAPI]: Packet Reorder Utility process completed!
    [20:44:49]  Reordering required : NO
    [20:44:49]  Packet loss : NO
    [20:44:49]  Number of packets received : 376160
    [20:44:49]  Number of zero filled packets : 0
    [20:44:49]  Number of zero filled bytes : 0
    [20:44:49]  [RadarAPI]: ar1.StartMatlabPostProc("F:\\raw_temp\\adc_data.bin")
    [16:02:32]  [RadarAPI]: Packet Reorder Utility Started...please wait...
    [16:02:32]  [RadarAPI]: ar1.PacketReorderZeroFill("F:\\raw_temp\\adc_data_Raw_0.bin", "F:\\raw_temp\\adc_data.bin", "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\PostProc\\pktlogfile.txt")
    [16:02:47]  [RadarAPI]: Packet Reorder Utility process completed!
    [16:02:52]  Reordering required : NO
    [16:02:52]  Packet loss : NO
    [16:02:52]  Number of packets received : 376160
    [16:02:52]  Number of zero filled packets : 0
    [16:02:52]  Number of zero filled bytes : 0
    [16:02:52]  [RadarAPI]: ar1.StartMatlabPostProc("F:\\raw_temp\\adc_data.bin")

  • Peijun,

    let me look it over and ill report back.

    Alex
  • Hello Alex,

    Is there any update on my question?

    Thank you!
    Best,
    Peijun
  • Peijun,

    Sorry for the delay, from your log i was able to reproduce your setup and I do not see the discrepancy.

    Below you can see the end of the .bin file after the post processing has been done.

    There are 29,491,200 (lines) * 16 bytes = 471859200

      

    Verify these settings on your DCA1000

    Let me know if this does not solve it.

    Alex

  • Dear Alex,

    Thank you so much for replying. 

    I checked my DCA1000EVM, and the 6th switch of sw2 is different from your setting. I will try again tomorrow with the settings you provide, and will let you know if it works.

    Thank you!

    Best,

    Peijun Zhao

  • Peijun,

    SW2.6 is a "dont care" in this case, OFF loads data from EEPROM, ON loads data from FPGA, Unless you have modified the EEPROM it loads the default. in simpler words, EEPROM = FPGA, unless EEPROM has been modified.

    Try wireshark and verify the amount of data.
    You might also want to try a very simple chirp configuration, 1 frame, 1 chirp, 1 RX and 1TX, and verify your output.

    Alex