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.

AWR1642BOOST-ODS: AWR1642Boost with DCA1000EVM

Part Number: AWR1642BOOST-ODS
Other Parts Discussed in Thread: AWR1843BOOST, AWR1642BOOST, AWR1642

I want to capture raw radar data by running vital sign lab in developer mode using ccs and DCA1000 CLI command for capturing. I'm attaching all me files and details below. Why I could not get the .bin file and there is no data capture please help in this regard.

.cfg file for vital sign lab:

sensorStop

flushCfg
dfeDataOutputMode 1
channelCfg 15 3 0
adcCfg 2 2
adcbufCfg -1 0 0 1 1
profileCfg 0 77 7 6 57 0 0 70 1 200 4000 0 0 48
lvdsStreamCfg -1 1 1 0
chirpCfg 0 0 0 0 0 0 0 1
frameCfg 0 0 2 0 50 1 0
lowPower 0 1
guiMonitor -1 1 1 0 0 0 1
cfarCfg -1 0 2 8 4 3 0 15 1
calibDcRangeSig -1 0 0 0 0
vitalSignsCfg 0.3 0.9 256 512 4 0.1 0.05 100000 300000
motionDetection 1 20 2.0 0
sensorStart
.Json file for CLI command:
{
  "DCA1000Config": {
    "dataLoggingMode": "raw",
    "dataTransferMode": "LVDSCapture",
    "dataCaptureMode": "ethernetStream",
    "lvdsMode": 2,
    "dataFormatMode": 3,
    "packetDelay_us": 25,
    "ethernetConfig": {
      "DCA1000IPAddress": "192.168.33.180",
      "DCA1000ConfigPort": 4096,
      "DCA1000DataPort": 4098
    },
    "ethernetConfigUpdate": {
      "systemIPAddress": "192.168.33.30",
      "DCA1000IPAddress": "192.168.33.180",
      "DCA1000MACAddress": "12.34.56.78.90.12",
      "DCA1000ConfigPort": 4096,
      "DCA1000DataPort": 4098
    },
    "captureConfig": {
      "fileBasePath": "C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\PostProc",
      "filePrefix": "adc_data1",
      "maxRecFileSize_MB": 600,
      "sequenceNumberEnable": 1,
      "captureStopMode": "infinite",
      "bytesToCapture": 50000,
      "durationToCapture_ms": 5000,
      "framesToCapture": 10
    },
    "dataFormatConfig": {
      "MSBToggle": 0,
      "laneFmtMap": 0,
      "reorderEnable": 1,
      "dataPortConfig": [
        {
          "portIdx": 0,
          "dataType": "complex"
        },
        {
          "portIdx": 1,
          "dataType": "complex"
        },
        {
          "portIdx": 2,
          "dataType": "complex"
        },
        {
          "portIdx": 3,
          "dataType": "complex"
        },
        {
          "portIdx": 4,
          "dataType": "complex"
        }
      ]
    }
  }
}
Hardware Setup:
SEE the RED LIGHT ON DCA1000 LVDS_PATH_ERROR
CLI Log File:
Tue Aug 16 13:07:22 2022
FPGA Configuration Command (req)

Tue Aug 16 13:07:22 2022
FPGA Configuration command : Success

Tue Aug 16 13:07:22 2022
Return status : 0

Tue Aug 16 13:07:43 2022
FPGA Configuration Command (req)

Tue Aug 16 13:07:43 2022
FPGA Configuration command : Success

Tue Aug 16 13:07:43 2022
Return status : 0

Tue Aug 16 13:07:52 2022
Configure Record Command (req)

Tue Aug 16 13:07:52 2022
Configure Record command : Success

Tue Aug 16 13:07:52 2022
Return status : 0

Tue Aug 16 13:09:30 2022
Start Record Command (req)

Tue Aug 16 13:09:31 2022
Start Record Command (req)

Tue Aug 16 13:09:31 2022
Start Record command : Success

Tue Aug 16 13:09:31 2022
Return status : 0

Tue Aug 16 13:09:31 2022
Start Record command : Success

Tue Aug 16 13:10:51 2022
Record Process :
Timeout Error! System disconnected

Tue Aug 16 13:10:51 2022
Record stop is done successfully
Please help me how I can capture the raw radar data through LVDS at the same time when Lab is running through CLI command.
Thank you and waiting for your reply.
  • Hi,

    It is not possible to do both at the same time with demo provided by TI.

    • run target demo
    • capture raw data through LVDS

    thank you

    Cesar

  • So is there any solution to it. because I want to collect raw data by start demo related to Human activity recognition. or vital sign lab.

    Mmwave studio result is below which only give me 2 sec of data every time but I didn't understand on it..

  • Hi,

    Using the DCA1000 and mmWave studio you should be able to Capture Data for several minutes.

    I recommend that you use a LUA script to configure mmWave Studio. In this way you can re-use the script for every capture.

    Thank you

    Cesar

  • How I can configure please can you help me. And how I can capture for several minutes please help me as well. 

    thank you

  • Hi,

    Please use this LUA script to start with.

    You will need to update

    • path to firmware being used
    • COM port
    • profile/chirp/frame configuration (use the one provided in the demo)

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/1023/AWR1843BOOST_5F00_TX2_5F00_capture_5F00_studio_5F00_2_5F00_1.lua

    Thank you

    Cesar

  • Thank you so much for the help.

    Sorry for being late. So you mean that, Start lab/demo of vital sign and run it for 10 minutes then stop it and change SW setting on AWR1642boost to SOP1 and SOP0 for DCA1000 and then open mmwave studio browse the LUA script  and run, right?

    Also tell me about DCA1000 SW2 setting as well.

    Thank you for helping me out.

    Kind regards,

    Fahad

  • I would like to share something with you.

    1) When I change framecfg the lab/demo didn't start.

    2) When I use same profile/chirp/frame cfg in lua script mmwave studio gives an error with failed to call script.

    3) I changed the following parameters in profile and frame so lab/demo didn't start.

    sensorStop
    flushCfg
    dfeDataOutputMode 1
    channelCfg 15 3 0
    adcCfg 2 1
    adcbufCfg -1 0 0 1 0
    profileCfg 0 60.25 100 6 60 0 0 0 0 0 0 29.982 0 256 10000 0 131072 30
    chirpCfg 0 0 0 0 0 0 0 1 1 0
    frameCfg 0 0 8 128 40 0 0 1
    lowPower 0 1
    guiMonitor 0 0 0 0 1
    calibDcRangeSig -1 0 0 0 0
    vitalSignsCfg 0.3 0.9 256 512 4 0.1 0.05 100000 300000
    lvdsStreamCfg -1 1 1 0
    motionDetection 1 20 2.0 0
    sensorStart

    Now what can I do with that.

    Thank you.

    Fahad

  • Hi,

    I noticed that in the profileCfg you have the starting frequency 60.25GHz. This will create an error

    The xWR1642 sensor works only in 76-81Ghz range.

    thank you

    Cesar

  • Hi,

    Yes you are right, but I tried for xWR6843AOP that is why I shared that file. I will try with 1642boost as well. But why with 6843AOP gives me an error.

    Thank you.

    Regards,
    fahad

  • For 6843AOP, please start a new thread since a different team will support this device.

    Let's use this thread for AWR1642 support

    thank you
    Cesar

  • Ok I understand I'll try 1642boost then back to you. hope this resolve my issue not bother you again.

    Thank you 

    Fahad

  • Thank you

    Cesar

  • Hi Cesar,

    I have question regarding above while using LUA script. I will change the profile/chirp/frame according to the lab/demo cfg file right? 

    Another question is you mean that, Start lab/demo of vital sign and run it for 10 minutes then stop it and change SW setting on AWR1642boost to SOP1 and SOP0 for DCA1000 and then open mmwave studio browse the LUA script  and run, right?

    Also tell me about DCA1000 SW2 setting as well.

    Thank you for helping me out.

    Kind regards,

    Fahad

  • I have question regarding above while using LUA script. I will change the profile/chirp/frame according to the lab/demo cfg file right? 

    Yes, this is correct

    Another question is you mean that, Start lab/demo of vital sign and run it for 10 minutes then stop it and change SW setting on AWR1642boost to SOP1 and SOP0 for DCA1000 and then open mmwave studio browse the LUA script  and run, right?

    No, we only discussed capturing raw data. We are not talking about using the lab/demo

    Again, it is not possible to process raw data at run time. It is however possible to capture 10min of raw ADC data

    thank you
    Cesar

  • I have question regarding above while using LUA script. I will change the profile/chirp/frame according to the lab/demo cfg file right? 

    Yes, this is correct.

    1) I changed it and again I got the same error as shown below.

    "GM: Constructor
    GM: Tue Aug 30 22:24:46 2022
    RSTD.Transmit("/Settings")
    [22:24:47]
    [22:24:47] ### Running Startup script: "C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts\Startup.lua" ###
    [22:24:47] RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
    [22:24:47] RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
    [22:24:47] Scripter ignored: Attempt to UnBuild() again or before Build.
    [22:24:47] RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\Clients\\\\LabClient.dll")
    [22:24:47] RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
    [22:24:47] RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
    [22:24:47] RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
    [22:24:47] RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
    [22:24:47] RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
    [22:24:47] RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\RunTime\\SAL.dll")
    [22:24:47] RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
    [22:24:47] RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
    [22:24:47] RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
    [22:24:47] RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
    [22:24:47] RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
    [22:24:47] RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
    [22:24:47] RSTD.Transmit("/")
    [22:24:47] RSTD.SaveSettings(): Settings saved to "C:\Users\2332489A\AppData\Roaming\RSTD\config.xml"
    [22:24:47] RSTD.Build()
    [22:24:47] RSTD.SaveSettings(): Settings saved to "C:\Users\2332489A\AppData\Roaming\RSTD\config.xml"
    [22:24:47] RSTD.Transmit("/")
    [22:24:47] RSTD.AL_Build()
    [22:24:47] RSTD.AL_LoadXml()
    [22:24:47] RSTD.Transmit("/")
    [22:24:47] RSTD.AL_Init()
    [22:24:47] RSTD.Clients_Build()
    [22:24:47] GM: Init
    [22:24:47] GM: Loaded 'C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Clients\\LabClient.dll'
    [22:24:47] GM: 1 Guest (s) init
    [22:24:47] GM: 1 Module(s) init
    [22:24:47] GM: 2 Tab (s) init
    [22:24:47] RSTD.Client_LoadXml()
    [22:24:47] [RadarAPI]: ar1.selectRadarMode(0)
    [22:24:47] [RadarAPI]: Status: Passed
    [22:24:47] Matlab Runtime Engine is installed
    [22:24:47] [RadarAPI]: Starting Matlab Engine..
    [22:24:51] [RadarAPI]: Matlab Engine Started!
    [22:24:54] [RadarAPI]: ar1.selectCascadeMode(0)
    [22:24:54] [RadarAPI]: Status: Passed
    [22:24:54] [RadarAPI]: ar1.LoadSettings('C:\Users\2332489A\AppData\Roaming\RSTD\ar1gui.ini')
    [22:24:55] TESTING = false
    [22:24:55] RstdNet: Port 2777: Listening..
    [22:24:55]
    [22:24:55] ***Script completed successfully.***
    [22:24:59] [RadarAPI]: Opening Gpio Control Port()
    [22:24:59] [RadarAPI]: Status: Passed
    [22:25:00] [RadarAPI]: Opening Board Control Port()
    [22:25:00] [RadarAPI]: Status: Passed
    [22:25:01] [RadarAPI]: ar1.FullReset()
    [22:25:01] [RadarAPI]: Status: Passed
    [22:25:01] [RadarAPI]: Closing Board Control Port()
    [22:25:01] [RadarAPI]: Status: Passed
    [22:25:01] [RadarAPI]: Closing Gpio Control Port()
    [22:25:01] [RadarAPI]: Status: Passed
    [22:25:01] [RadarAPI]: ar1.SOPControl(2)
    [22:25:01] [RadarAPI]: Status: Passed
    [22:25:07] [RadarAPI]: ar1.Connect(9,115200,1000)
    [22:25:08] [RadarAPI]: ar1.Calling_IsConnected()
    [22:25:10] [RadarAPI]: ar1.SelectChipVersion("AR1642")
    [22:25:10] [RadarAPI]: Status: Passed
    [22:25:10] [RadarAPI]: ar1.SelectChipVersion("AR1642")
    [22:25:10] [RadarAPI]: Status: Passed
    [22:25:10] [RadarAPI]: ar1.deviceVariantSelection("XWR1642")
    [22:25:10] [RadarAPI]: Status: Passed
    [22:25:10] [RadarAPI]: ar1.frequencyBandSelection("77G")
    [22:25:10] [RadarAPI]: ar1.SelectChipVersion("XWR1642")
    [22:25:10] [RadarAPI]: Status: Passed
    [22:25:10] Device Status : XWR1642/ASIL-B/SOP:2/ES:2
    [22:25:10] [RadarAPI]: ar1.SaveSettings('C:\Users\2332489A\AppData\Roaming\RSTD\ar1gui.ini')
    [22:25:22] [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\rf_eval_firmware\\radarss\\xwr16xx_radarss.bin")
    [22:25:22] [RadarAPI]: Downloading BSS Patch RPRC Binary..
    [22:25:30] [RadarAPI]: ar1.GetBSSFwVersion()
    [22:25:30] [RadarAPI]: BSSFwVersion:(02.00.00.01 (05/10/17))
    [22:25:31] [RadarAPI]: ar1.GetBSSPatchFwVersion()
    [22:25:31] [RadarAPI]: BSSPatchFwVersion:(01.02.05.02 (30/04/19))
    [22:25:31] [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\rf_eval_firmware\\masterss\\xwr16xx_masterss.bin")
    [22:25:31] [RadarAPI]: Downloading MSS RPRC Binary..
    [22:25:42] [RadarAPI]: ar1.GetMSSFwVersion()
    [22:25:42] [RadarAPI]: MSSFwVersion:(01.02.05.02 (16/07/19))
    [22:25:44] [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
    [22:25:44] [RadarAPI]: Status: Passed
    [22:25:44] MSS power up done async event received!
    [22:25:46] [RadarAPI]: ar1.SelectChipVersion("AR1642")
    [22:25:46] [RadarAPI]: Status: Passed
    [22:25:46] [RadarAPI]: ar1.SelectChipVersion("XWR1642")
    [22:25:46] [RadarAPI]: Status: Passed
    [22:25:46] Device Status : XWR1642/ASIL-B/SOP:2/ES:2
    [22:25:46] [RadarAPI]: ar1.RfEnable()
    [22:25:46] BSS power up done async event received!
    [22:25:46] [RadarAPI]: Status: Passed
    [22:25:47] [RadarAPI]: ar1.GetMSSFwVersion()
    [22:25:47] [RadarAPI]: MSSFwVersion:(01.02.05.02 (16/07/19))
    [22:25:47] [RadarAPI]: ar1.GetBSSFwVersion()
    [22:25:47] [RadarAPI]: BSSFwVersion:(02.00.00.01 (05/10/17))
    [22:25:48] [RadarAPI]: ar1.GetBSSPatchFwVersion()
    [22:25:48] [RadarAPI]: BSSPatchFwVersion:(01.02.05.02 (30/04/19))
    [22:25:55] [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 2, 0)
    [22:25:55] [RadarAPI]: Status: Passed
    [22:27:18] [RadarAPI]: ar1.LPModConfig(0, 1)
    [22:27:18] [RadarAPI]: Status: Passed
    [22:27:35] [RadarAPI]: ar1.RfInit()
    [22:27:35] RF Init async event received!
    [22:27:35] [RadarAPI]: Time stamp, Temperture: 108794,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; TxPhase Status, Update: 0, 0; RxIQMM Status, Update: 1, 1;
    [22:27:35] [RadarAPI]: Status: Passed
    [22:27:58] [RadarAPI]: ar1.DataPathConfig(513, 1216644097, 0)
    [22:27:58] [RadarAPI]: Status: Passed
    [22:28:09] [RadarAPI]: ar1.LvdsClkConfig(1, 1)
    [22:28:09] [RadarAPI]: Status: Passed
    [22:28:18] [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0)
    [22:28:18] [RadarAPI]: Status: Passed
    [22:28:28] [RadarAPI]: ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 0, 30)
    [22:28:28] [RadarAPI]: Status: Passed
    [22:28:54] [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
    [22:28:54] [RadarAPI]: Status: Passed
    [22:29:03] Test Source Already Disabled...!!!
    [22:29:03] [RadarAPI]: ar1.DisableTestSource(0)
    [22:29:03] [RadarAPI]: Status: Passed
    [22:29:03] [RadarAPI]: ar1.FrameConfig(0, 0, 8, 128, 40, 0, 0, 1)
    [22:29:03] [RadarAPI]: Status: Passed
    [22:29:26] [RadarAPI]: ar1.GetCaptureCardDllVersion()
    [22:29:27] [RadarAPI]: Sending dll_version command to DCA1000
    [22:29:27] [RadarAPI]:
    [22:29:27] DLL Version : 1.0
    [22:29:27] [RadarAPI]: ar1.SelectCaptureDevice("DCA1000")
    [22:29:27] [RadarAPI]: Status: Passed
    [22:29:29] [RadarAPI]: ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "12:34:56:78:90:12", 4096, 4098)
    [22:29:29] [RadarAPI]: ar1.CaptureCardConfig_Mode(1, 2, 1, 2, 3, 30)
    [22:29:29] [RadarAPI]: ar1.CaptureCardConfig_PacketDelay(25)
    [22:29:30] [RadarAPI]: Sending fpga command to DCA1000
    [22:29:30] [RadarAPI]:
    [22:29:30] FPGA Configuration command : Success
    [22:29:30] [RadarAPI]: Sending record command to DCA1000
    [22:29:30] [RadarAPI]:
    [22:29:30] Configure Record command : Success
    [22:29:30] [RadarAPI]: ar1.GetCaptureCardFPGAVersion()
    [22:29:30] [RadarAPI]: Sending fpga_version command to DCA1000
    [22:29:30] [RadarAPI]:
    [22:29:30]
    [22:29:30] FPGA Version : 2.8 [Record]
    [22:29:30]
    [22:30:35] [RadarAPI]: ar1.CaptureCardConfig_StartRecord("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\PostProc\\adc_data.bin", 1)
    [22:30:35] [RadarAPI]: Sending start_record command to DCA1000
    [22:30:41] [RadarAPI]: ar1.StartFrame()
    [22:30:41] [RadarAPI]: Status: Passed
    [22:30:41] Frame start async event received!
    [22:30:42] [RadarAPI]: Frame Ended
    [22:30:44] [RadarAPI]:
    [22:30:44] Start Record command : Success
    [22:30:44]
    [22:30:44] Record is completed
    [22:30:44]
    [22:30:44] Record stop is done successfully
    [22:30:44] Frame End async event received!
    [22:30:44] [RadarAPI]:
    [22:30:50] [RadarAPI]: ar1.StartMatlabPostProc("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\PostProc\\adc_data.bin")
    [22:30:50] [RadarAPI]: No of files Captured: 1, Total no of frames for each device : 8
    [22:32:29] [RadarAPI]: ar1.CaptureCardConfig_StartRecord("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\PostProc\\adc_data.bin", 1)
    [22:32:29] [RadarAPI]: Sending start_record command to DCA1000
    [22:32:34] [RadarAPI]: ar1.StartFrame()
    [22:32:34] [RadarAPI]: Status: Passed
    [22:32:34] Frame start async event received!
    [22:32:34] Frame End async event received!
    [22:32:35] [RadarAPI]: Frame Ended
    [22:32:36] [RadarAPI]:
    [22:32:36] [RadarAPI]:
    [22:32:39] [RadarAPI]: ar1.StartMatlabPostProc("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\PostProc\\adc_data.bin")
    [22:32:39] [RadarAPI]: No of files Captured: 1, Total no of frames for each device : 30
    [22:33:33] Test Source Already Disabled...!!!
    [22:33:33] [RadarAPI]: ar1.DisableTestSource(0)
    [22:33:33] [RadarAPI]: Status: Passed
    [22:33:33] [RadarAPI]: ar1.FrameConfig(0, 0, 50, 200, 40, 0, 0, 1)
    [22:33:33] [RadarAPI]: Status: Passed
    [22:33:35] [RadarAPI]: ar1.GetCaptureCardDllVersion()
    [22:33:35] [RadarAPI]: Sending dll_version command to DCA1000
    [22:33:36] [RadarAPI]:
    [22:33:36] DLL Version : 1.0
    [22:33:36] [RadarAPI]: ar1.SelectCaptureDevice("DCA1000")
    [22:33:36] [RadarAPI]: Status: Passed
    [22:33:41] [RadarAPI]: ar1.CaptureCardConfig_StartRecord("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\PostProc\\adc_data.bin", 1)
    [22:33:41] [RadarAPI]: Sending start_record command to DCA1000
    [22:33:44] [RadarAPI]: ar1.StartFrame()
    [22:33:44] [RadarAPI]: Status: Passed
    [22:33:44] Frame start async event received!
    [22:33:46] Frame End async event received!
    [22:33:46] [RadarAPI]: Frame Ended
    [22:33:49] [RadarAPI]:
    [22:33:49] Start Record command : Success
    [22:33:49]
    [22:33:49] Record is completed
    [22:33:49]
    [22:33:49] Record stop is done successfully
    [22:33:49] [RadarAPI]:
    [22:33:52] [RadarAPI]: ar1.StartMatlabPostProc("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\PostProc\\adc_data.bin")
    [22:33:52] [RadarAPI]: No of files Captured: 1, Total no of frames for each device : 50
    [22:35:24] Test Source Already Disabled...!!!
    [22:35:24] [RadarAPI]: ar1.DisableTestSource(0)
    [22:35:24] [RadarAPI]: Status: Passed
    [22:35:24] [RadarAPI]: ar1.FrameConfig(0, 0, 5000, 255, 42, 0, 0, 1)
    [22:35:24] [RadarAPI]: Status: Passed
    [22:35:28] [RadarAPI]: ar1.CaptureCardConfig_StartRecord("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\PostProc\\adc_data.bin", 1)
    [22:35:28] [RadarAPI]: Sending start_record command to DCA1000
    [22:35:31] [RadarAPI]: ar1.StartFrame()
    [22:35:31] [RadarAPI]: Status: Passed
    [22:35:31] Frame start async event received!
    [22:37:43] [RadarAPI]: ar1.StopFrame()
    [22:37:43] Frame End async event received!
    [22:37:46] [RadarAPI]:
    [22:37:46] [RadarAPI]:
    [22:37:46] Start Record command : Success
    [22:37:46]
    [22:37:46] Record is completed
    [22:37:46]
    [22:37:46] Record stop is done successfully
    [22:37:46] [RadarAPI]: Status: Passed
    [22:37:49] [RadarAPI]: ar1.StartMatlabPostProc("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\PostProc\\adc_data.bin")
    [22:37:49] [RadarAPI]: No of files Captured: 4, Total no of frames for each device : 5000
    [22:40:17] [RadarAPI]: ar1.PowerOff()
    [22:40:17] [RadarAPI]: Status: Passed
    [22:40:17] [RadarAPI]: Opening Gpio Control Port()
    [22:40:17] [RadarAPI]: Status: Passed
    [22:40:18] [RadarAPI]: ar1.Disconnect()
    [22:40:18] [RadarAPI]: ar1.Calling_ATE_DisconnectTarget()
    [22:40:18] [RadarAPI]: ar1.Calling_IsConnected()
    [22:40:18] [RadarAPI]: ar1.SaveSettings('C:\Users\2332489A\AppData\Roaming\RSTD\ar1gui.ini')
    [22:40:18] [RadarAPI]: Opening Board Control Port()
    [22:40:18] [RadarAPI]: Status: Passed
    [22:40:19] [RadarAPI]: ar1.FullReset()
    [22:40:19] [RadarAPI]: Status: Passed
    [22:40:20] [RadarAPI]: Closing Board Control Port()
    [22:40:20] [RadarAPI]: Status: Passed
    [22:40:20] [RadarAPI]: Closing Gpio Control Port()
    [22:40:20] [RadarAPI]: Status: Passed
    [22:40:20] [RadarAPI]: ar1.SOPControl(2)
    [22:40:20] [RadarAPI]: Status: Passed
    [22:40:24] [RadarAPI]: Opening Board Control Port()
    [22:40:24] [RadarAPI]: Status: Passed
    [22:40:25] [RadarAPI]: ar1.FullReset()
    [22:40:25] [RadarAPI]: Status: Passed
    [22:40:26] [RadarAPI]: Closing Board Control Port()
    [22:40:26] [RadarAPI]: Status: Passed
    [22:40:26] [RadarAPI]: Opening Gpio Control Port()
    [22:40:26] [RadarAPI]: Status: Passed
    [22:40:27] [RadarAPI]: Opening Board Control Port()
    [22:40:27] [RadarAPI]: Status: Passed
    [22:40:28] [RadarAPI]: ar1.FullReset()
    [22:40:28] [RadarAPI]: Status: Passed
    [22:40:28] [RadarAPI]: Closing Board Control Port()
    [22:40:28] [RadarAPI]: Status: Passed
    [22:40:29] [RadarAPI]: Closing Gpio Control Port()
    [22:40:29] [RadarAPI]: Status: Passed
    [22:40:29] [RadarAPI]: ar1.SOPControl(2)
    [22:40:29] [RadarAPI]: Status: Passed
    [22:40:29] [RadarAPI]: ar1.Connect(9,115200,1000)
    [22:40:30] [RadarAPI]: ar1.Calling_IsConnected()
    [22:40:31] [RadarAPI]: ar1.SelectChipVersion("AR1642")
    [22:40:31] [RadarAPI]: Status: Passed
    [22:40:31] [RadarAPI]: ar1.SelectChipVersion("XWR1642")
    [22:40:31] [RadarAPI]: Status: Passed
    [22:40:31] Device Status : XWR1642/ASIL-B/SOP:2/ES:2
    [22:40:31] [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\rf_eval_firmware\\radarss\\xwr16xx_radarss.bin")
    [22:40:32] [RadarAPI]: Downloading BSS Patch RPRC Binary..
    [22:40:39] [RadarAPI]: ar1.GetBSSFwVersion()
    [22:40:39] [RadarAPI]: BSSFwVersion:(02.00.00.01 (05/10/17))
    [22:40:40] [RadarAPI]: ar1.GetBSSPatchFwVersion()
    [22:40:40] [RadarAPI]: BSSPatchFwVersion:(01.02.05.02 (30/04/19))
    [22:40:40] BSS FW Download Success
    [22:40:41] [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\rf_eval_firmware\\masterss\\xwr16xx_masterss.bin")
    [22:40:42] [RadarAPI]: Downloading MSS RPRC Binary..
    [22:40:53] [RadarAPI]: ar1.GetMSSFwVersion()
    [22:40:53] [RadarAPI]: MSSFwVersion:(01.02.05.02 (16/07/19))
    [22:40:53] MSS FW Download Success
    [22:40:54] MSS power up done async event received!
    [22:40:54] [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
    [22:40:54] [RadarAPI]: Status: Passed
    [22:40:54] Power On Success
    [22:40:56] [RadarAPI]: ar1.SelectChipVersion("AR1642")
    [22:40:56] [RadarAPI]: Status: Passed
    [22:40:56] [RadarAPI]: ar1.SelectChipVersion("XWR1642")
    [22:40:56] [RadarAPI]: Status: Passed
    [22:40:56] Device Status : XWR1642/ASIL-B/SOP:2/ES:2
    [22:40:56] [RadarAPI]: ar1.RfEnable()
    [22:40:56] BSS power up done async event received!
    [22:40:56] [RadarAPI]: Status: Passed
    [22:40:57] [RadarAPI]: ar1.GetMSSFwVersion()
    [22:40:57] [RadarAPI]: MSSFwVersion:(01.02.05.02 (16/07/19))
    [22:40:57] [RadarAPI]: ar1.GetBSSFwVersion()
    [22:40:57] [RadarAPI]: BSSFwVersion:(02.00.00.01 (05/10/17))
    [22:40:58] [RadarAPI]: ar1.GetBSSPatchFwVersion()
    [22:40:58] [RadarAPI]: BSSPatchFwVersion:(01.02.05.02 (30/04/19))
    [22:40:58] RF Enable Success
    [22:40:59] [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 2, 0)
    [22:41:00] [RadarAPI]: Status: Passed
    [22:41:00] ChanNAdcConfig Success
    [22:41:01] [RadarAPI]: ar1.RfLdoBypassConfig(0x3)
    [22:41:01] [RadarAPI]: Status: Passed
    [22:41:01] [RadarAPI]: ar1.LPModConfig(0, 1)
    [22:41:01] [RadarAPI]: Status: Passed
    [22:41:01] Regualar mode Cfg Success
    [22:41:02] [RadarAPI]: ar1.RfInit()
    [22:41:02] RF Init async event received!
    [22:41:02] [RadarAPI]: Time stamp, Temperture: 5424,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: 0, 0; RxGain Status, Update: 1, 1; TxPhase Status, Update: 0, 0; RxIQMM Status, Update: 0, 0;
    [22:41:02] [RadarAPI]: Status: Passed
    [22:41:02] RfInit Success
    [22:41:03] [RadarAPI]: ar1.DataPathConfig(513, 1216644097, 0)
    [22:41:03] [RadarAPI]: Status: Passed
    [22:41:03] DataPathConfig Success
    [22:41:03] [RadarAPI]: ar1.LvdsClkConfig(1, 1)
    [22:41:03] [RadarAPI]: Status: Passed
    [22:41:03] LvdsClkConfig Success
    [22:41:03] [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0)
    [22:41:03] [RadarAPI]: Status: Passed
    [22:41:03] LVDSLaneConfig Success
    [22:41:04]
    [22:41:04] &&&&&&&&&&&&&&&&&&&&
    [22:41:04] ***Script FAILED!***
    [22:41:04] &&&&&&&&&&&&&&&&&&&&
    [22:41:04] Exception message is:
    [22:41:04] invalid arguments to method call"

    LUA Script

    ----------------------------- User Variables -----------------------------
    BSS_FW    = "C:\\ti\\mmwave_studio_02_01_01_00\\rf_eval_firmware\\radarss\\xwr16xx_radarss.bin"
    MSS_FW    = "C:\\ti\\mmwave_studio_02_01_01_00\\rf_eval_firmware\\masterss\\xwr16xx_masterss.bin"

    file_path = "D:\\Radar Labs\\AWR\\Capture File"

    adc_data_path1 = file_path.."\\BOOST_adc_data_profile77_81.bin"
    raw_data_path1 = file_path.."\\BOOST_adc_data_profile78_81_Raw_0.bin"
    pkt_log_path1  = file_path.."\\BOOST_profile78_81_pktlogfile.txt"
    adc_data_path2 = file_path.."\\BOOST_adc_data_profile78_79.bin"
    raw_data_path2 = file_path.."\\BOOST_adc_data_profile78_79_Raw_0.bin"
    pkt_log_path2  = file_path.."\\BOOST_profile78_79_pktlogfile.txt"
    adc_data_path3 = file_path.."\\BOOST_adc_data_profile79_80.bin"
    raw_data_path3 = file_path.."\\BOOST_adc_data_profile79_80_Raw_0.bin"
    pkt_log_path3  = file_path.."\\BOOST_profile79_80_pktlogfile.txt"
    adc_data_path4 = file_path.."\\BOOST_adc_data_profile80_81.bin"
    raw_data_path4 = file_path.."\\BOOST_adc_data_profile80_81_Raw_0.bin"
    pkt_log_path4  = file_path.."\\BOOST_profile80_81_pktlogfile.txt"

    COM_PORT = 9

    ----------------------------- Sensor Configuration -----------------------------
    --reset and connect
    ar1.FullReset()
    ar1.SOPControl(2)
    ar1.Connect(COM_PORT,115200,1000)

    --download BSS FW
    if (ar1.DownloadBSSFw(BSS_FW) == 0) then
        WriteToLog("BSS FW Download Success\n", "green")
    else
        WriteToLog("BSS FW Download failure\n", "red")
    end
    RSTD.Sleep(1000)

    -- Download MSS FW
    if (ar1.DownloadMSSFw(MSS_FW) == 0) then
        WriteToLog("MSS FW Download Success\n", "green")
    else
        WriteToLog("MSS FW Download failure\n", "red")
    end
    RSTD.Sleep(1000)

    -- SPI Connect
    if (ar1.PowerOn(1, 1000, 0, 0) == 0) then
        WriteToLog("Power On Success\n", "green")
    else
       WriteToLog("Power On failure\n", "red")
    end
    RSTD.Sleep(1000)

    -- RF Power UP
    if (ar1.RfEnable() == 0) then
        WriteToLog("RF Enable Success\n", "green")
    else
        WriteToLog("RF Enable failure\n", "red")
    end
    RSTD.Sleep(1000)

    -- Channel Config
    if (ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 2, 0) == 0) then
        WriteToLog("ChanNAdcConfig Success\n", "green")
    else
        WriteToLog("ChanNAdcConfig failure\n", "red")
    end
    RSTD.Sleep(1000)

    -- LDO Bypass Enable
    ar1.RfLdoBypassConfig(0x3)

    -- ADC Config
    if (ar1.LPModConfig(0, 1) == 0) then
        WriteToLog("Regualar mode Cfg Success\n", "green")
    else
        WriteToLog("Regualar mode Cfg failure\n", "red")
    end
    RSTD.Sleep(1000)

    -- RF Init
    if (ar1.RfInit() == 0) then
        WriteToLog("RfInit Success\n", "green")
    else
        WriteToLog("RfInit failure\n", "red")
    end
    RSTD.Sleep(1000)

    -- Data Path Config
    if (ar1.DataPathConfig(513, 1216644097, 0) == 0) then
        WriteToLog("DataPathConfig Success\n", "green")
    else
        WriteToLog("DataPathConfig failure\n", "red")
    end
    if (ar1.LvdsClkConfig(1, 1) == 0) then
        WriteToLog("LvdsClkConfig Success\n", "green")
    else
        WriteToLog("LvdsClkConfig failure\n", "red")
    end
    if (ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0) == 0) then
        WriteToLog("LVDSLaneConfig Success\n", "green")
    else
        WriteToLog("LVDSLaneConfig failure\n", "red")
    end
    RSTD.Sleep(1000)

    -- 78-81GHz Profile Config
    if (ar1.ProfileConfig(0, 77, 7, 6, 57, 0, 0, 70, 1, 200, 4000, 0, 0, 48) == 0) then
        WriteToLog("ProfileConfig Success\n", "green")
    else
        WriteToLog("ProfileConfig failure\n", "red")
    end
    if (ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1) == 0) then
        WriteToLog("ChirpConfig Success\n", "green")
    else
        WriteToLog("ChirpConfig failure\n", "red")
    end
    if (ar1.FrameConfig(0, 0, 2, 0, 50, 1, 0) == 0) then
        WriteToLog("FrameConfig Success\n", "green")
    else
        WriteToLog("FrameConfig failure\n", "red")
    end
    RSTD.Sleep(1000)

    -- Connect DCA1000
    if (ar1.SelectCaptureDevice("DCA1000") == 0) then
        WriteToLog("SelectCaptureDevice Success\n", "green")
    else
        WriteToLog("SelectCaptureDevice failure\n", "red")
    end
    if (ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "12:34:56:78:90:12", 4096, 4098) == 0) then
        WriteToLog("CaptureCardConfig_EthInit Success\n", "green")
    else
        WriteToLog("CaptureCardConfig_EthInit failure\n", "red")
    end
    if (ar1.CaptureCardConfig_Mode(1, 2, 1, 2, 3, 30) == 0) then
        WriteToLog("CaptureCardConfig_Mode Success\n", "green")
    else
        WriteToLog("CaptureCardConfig_Mode failure\n", "red")
    end
    if (ar1.CaptureCardConfig_PacketDelay(25) == 0) then
        WriteToLog("CaptureCardConfig_PacketDelay Success\n", "green")
    else
        WriteToLog("CaptureCardConfig_PacketDelay failure\n", "red")
    end
    RSTD.Sleep(1000)

    ----------------------------- Capture 1 -----------------------------
    --Start Record ADC data
    ar1.CaptureCardConfig_StartRecord(adc_data_path1, 1)
    RSTD.Sleep(1000)

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

    --Packet reorder utility processing the Raw_ADC_data
    --WriteToLog("Please wait for a few seconds for Packet reorder utility processing .....!!!! \n", "green")
    --ar1.PacketReorderZeroFill(raw_data_path1, adc_data_path1, pkt_log_path1)
    --RSTD.Sleep(10000)
    --WriteToLog("Packet reorder utility processing done.....!!!! \n", "green")
     
    2) cesar said:

    No, we only discussed capturing raw data. We are not talking about using the lab/demo

    Again, it is not possible to process raw data at run time. It is however possible to capture 10min of raw ADC data

    " I know we only discusses capturing but I'm talking about the SW setting for DCA1000 when collecting raw data and I'm extremely want to know about the possiblity of capturing for 10min of raw adc data"

    I know by changing No of Frames will give more time but how I can calculate for 10 min depends on No of Frames.

    Kind regards,

    Fahad

  • Hi,

    Can you please try first to perform one capture to make sure it works?

    Based on the log it seems that the data capture works. However it looks like you are performing several captures and over riding the raw data file

    thank you

    Cesar