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: The lvds data obtained by running the lua script is empty, what should I do?

Part Number: DCA1000EVM
Other Parts Discussed in Thread: IWR1642

I am running with a script and the DATA_TRAN_PRG light from the DCA1000EVM is lit green, but this light is not flashing. And I found the file save path on the PC and found that all the files collected are 0kb. What should I do? A screenshot of the script and data collection files is listed below.Except for running this script, what configuration do I need to do about iwr1642?

  • Hello,

    Please try capturing through mmWave studio software, and let me know if this works.  Here is a training video on how to capture with the DCA1000.  Once you've successfully captured using mmWave studio, you can use the output log from mmWave studio to help write your script.

    - Chloe

  • [11:17:37] [RadarAPI]: Opening Gpio Control Port()
    [11:17:37] [RadarAPI]: Status: Passed
    [11:17:37] [RadarAPI]: Opening Board Control Port()
    [11:17:37] [RadarAPI]: Status: Passed
    [11:17:38] [RadarAPI]: ar1.FullReset()
    [11:17:38] [RadarAPI]: Status: Passed
    [11:17:39] [RadarAPI]: Closing Board Control Port()
    [11:17:39] [RadarAPI]: Status: Passed
    [11:17:39] [RadarAPI]: Closing Gpio Control Port()
    [11:17:39] [RadarAPI]: Status: Passed
    [11:17:39] [RadarAPI]: ar1.SOPControl(2)
    [11:17:39] [RadarAPI]: Status: Passed
    [11:18:07] [RadarAPI]: ar1.Connect(9,921600,1000)
    [11:18:10] [RadarAPI]: Warning: Connected with baudrate 115200
    [11:18:11] [RadarAPI]: Warning: Disconnected existing BaudRate
    [11:18:11] [RadarAPI]: Warning: Trying to connect with baudrate 921600
    [11:18:13] [RadarAPI]: ar1.Calling_IsConnected()
    [11:18:14] [RadarAPI]: ar1.SelectChipVersion("AR1642")
    [11:18:14] [RadarAPI]: Status: Passed
    [11:18:14] [RadarAPI]: RS232 is not connected ..!!!!
    [11:18:14] [RadarAPI]: ar1.frequencyBandSelection("77G")
    [11:18:14] [RadarAPI]: ar1.SelectChipVersion("XWR1642")
    [11:18:14] [RadarAPI]: Status: Passed
    [11:18:14] Device Status : XWR1642/QM/SOP:2/ES:2
    [11:18:15] [RadarAPI]: ar1.SelectChipVersion("AR1642")
    [11:18:15] [RadarAPI]: Status: Passed
    [11:18:15] [RadarAPI]: ar1.SelectChipVersion("XWR1642")
    [11:18:15] [RadarAPI]: Status: Passed
    [11:18:15] Device Status : XWR1642/QM/SOP:2/ES:2
    [11:18:15] [RadarAPI]: ar1.SaveSettings('C:\Users\liao\AppData\Roaming\RSTD\ar1gui.ini')
    [11:21:44] [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\radarss\\xwr16xx_radarss.bin")
    [11:21:44] [RadarAPI]: Downloading BSS Patch RPRC Binary..
    [11:21:46] [RadarAPI]: ar1.GetBSSFwVersion()
    [11:21:46] [RadarAPI]: BSSFwVersion:(02.00.00.01 (05/10/17))
    [11:21:47] [RadarAPI]: ar1.GetBSSPatchFwVersion()
    [11:21:47] [RadarAPI]: BSSPatchFwVersion:(01.02.00.03 (24/10/18))
    [11:21:47] [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\masterss\\xwr16xx_masterss.bin")
    [11:21:48] [RadarAPI]: Downloading MSS RPRC Binary..
    [11:21:50] [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
    [11:21:50] [RadarAPI]: Status: Passed
    [11:21:50] MSS power up done async event received!
    [11:21:52] [RadarAPI]: ar1.RfEnable()
    [11:21:52] [RadarAPI]: Status: Passed
    [11:21:52] BSS power up done async event received!
    [11:21:53] [RadarAPI]: ar1.GetBSSFwVersion()
    [11:21:53] [RadarAPI]: BSSFwVersion:(02.00.00.01 (05/10/17))
    [11:21:53] [RadarAPI]: ar1.GetBSSPatchFwVersion()
    [11:21:53] [RadarAPI]: BSSPatchFwVersion:(01.02.00.03 (24/10/18))
    [11:21:58] [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 2, 0)
    [11:21:58] [RadarAPI]: Status: Passed
    [11:21:59] [RadarAPI]: ar1.LPModConfig(0, 0)
    [11:21:59] [RadarAPI]: Status: Failed, Error Type: REGULAR ADC MODE NOT SUPPORTED IN 5 MHz PART VARIANT DEVICE
    [11:22:00] [RadarAPI]: ar1.RfInit()
    [11:22:00] RF Init async event received!
    [11:22:00] [RadarAPI]: Status: Passed
    [11:22:00] [RadarAPI]: Time stamp, Temperture: 8265,37; 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; TxPhase Status, Update: 0, 0; RxIQMM Status, Update: 1, 1;
    [11:22:02] [RadarAPI]: ar1.DataPathConfig(513, 1216644097, 0)
    [11:22:02] [RadarAPI]: Status: Passed
    [11:22:03] [RadarAPI]: ar1.LvdsClkConfig(1, 1)
    [11:22:03] [RadarAPI]: Status: Passed
    [11:22:04] [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0)
    [11:22:04] [RadarAPI]: Status: Passed
    [11:22:07] [RadarAPI]: ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 0, 30)
    [11:22:07] [RadarAPI]: Status: Passed
    [11:22:08] [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
    [11:22:08] [RadarAPI]: Status: Passed
    [11:22:09] Test Source Already Disabled...!!!
    [11:22:09] [RadarAPI]: Status: Passed
    [11:22:09] [RadarAPI]: ar1.FrameConfig(0, 0, 8, 128, 40, 0, 1)
    [11:22:09] [RadarAPI]: Status: Passed
    [11:22:10] [RadarAPI]: ar1.SelectCaptureDevice("DCA1000")
    [11:22:10] [RadarAPI]: passed
    [11:22:11] [RadarAPI]: StatusDCCard Event Registered
    [11:22:11] [RadarAPI]: Status: Passed
    [11:22:11] [RadarAPI]: ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "12:34:56:78:90:12", 4096, 4098)
    [11:22:11] [RadarAPI]: SYSTEM_CONNECT_CMD_CODE Async event recieved(9)
    [11:22:12] [RadarAPI]: ConnectRFDCCard Status: Passed
    [11:22:12] [RadarAPI]: ReadRFDCCarFpgaVersion Status: Passed
    [11:22:12] [RadarAPI]: READ_FPGA_VERSION_CMD_CODE event recieved(14)
    [11:22:12] [RadarAPI]: ar1.CaptureCardConfig_Mode(1, 2, 1, 2, 3, 30)
    [11:22:12] [RadarAPI]: Status: Passed
    [11:22:12] [RadarAPI]: CONFIG_FPGA_GEN_CMD_CODE Async event recieved(3)
    [11:22:12] [RadarAPI]: ar1.CaptureCardConfig_PacketDelay(25)
    [11:22:12] [RadarAPI]: CONFIG_PACKET_DATA_CMD_CODE Async event recieved(11)
    [11:22:12] [RadarAPI]: Status: Passed
    [11:22:14] [RadarAPI]: ar1.CaptureCardConfig_StartRecord("C:\\ti\\mmwave_studio_02_00_00_02\\mmWaveStudio\\PostProc\\adc_data.bin", 1)
    [11:22:14] [RadarAPI]: Status: Passed
    [11:22:14] [RadarAPI]: RECORD_START_CMD_CODE Async event recieved(5)
    [11:22:17] [RadarAPI]: ar1.StartFrame()
    [11:22:17] [RadarAPI]: Status: Passed
    [11:22:17] Frame start async event received!
    [11:22:17] Frame End async event received!
    [11:22:17] [RadarAPI]: Frame Ended
    [11:22:19] [RadarAPI]: STS_RECORD_COMPLETED Async event recieved(8)
    [11:22:19] [RadarAPI]: ar1.CaptureCardConfig_StopRecord()
    [11:22:19] [RadarAPI]: Status: Passed
    [11:22:19] [RadarAPI]: RECORD_STOP_CMD_CODE Async event recieved(6)

  • Hello,

    It looks as though you were able to successfully capture through mmWave studio. You are able to create a lua script that successfully captures from this output log by removing everything that doesn't start with "ar1.".

    Hope this helps.

    - Chloe
  • I had done a lua script by removing everything that doesn't start with "ar1.".but all the file is empty.
  • Hello,

    Is the ADC_Data_Raw file empty when you run the lua script? You need to include the 'PostProc' ar.1 commands in your lua script.

    - Chloe