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.

CCS/IWR6843ISK-ODS: iwr6843+DCA1000 ar1. JsonExport command issue

Part Number: IWR6843ISK-ODS
Other Parts Discussed in Thread: IWR6843

Tool/software: Code Composer Studio

Hi 

I'm using iwr6843+DCA1000 for data captured. 

I want to export the the json file after setting the parameter via mmwave studio. I know the studio GUI can export the json on Import_Export tag as following

The setting in GUI could be transform as ar1.function, so I try to convert this behavior to ar1.JsonExport as line 46:

However, the export setup.json will lose part of DCA1000Config information, which I have set (above picture).

Comparing json below:

{
"createdByVersion": "2.0.0",
"createdOn": "2020-03-13T18:13:55.8449904+08:00",
"configUsed": "",
"captureHardware": "DCA1000",
"DCA1000Config": {
"dataLoggingMode": "raw",
"dataTransferMode": "LVDSCapture",
"dataCaptureMode": "ethernetStream",
"packetSequenceEnable": 1,
"packetDelay_us": 25
},
"mmWaveDevice": "iwr6843",
"operatingFreq": 60,
"mmWaveDeviceConfig": {
"RS232COMPort": "COM5",
"RS232BaudRate": "921600",
"radarSSFirmware": "C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\radarss\\xwr68xx_radarss.bin",
"masterSSFirmware": "C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\masterss\\xwr68xx_masterss.bin"
},
"mmWaveBoard": "test1",
"mmWaveBoardId": "test1",
"capturedFiles": {
"numFilesCollected": 1,
"fileBasePath": "C:\\ti\\mmwave_studio_02_00_00_02\\mmWaveStudio\\PostProc",
"files": [
{
"rawFileName": "adc_data_Raw_0.bin",
"processedFileName": "adc_data.bin",
"processedFileSummary": {
"numZeroFillBytes": 0
}
}
]
}
}

{
"createdByVersion": "2.0.0",
"createdOn": "2020-04-30T19:56:56.3016799+08:00",
"configUsed": "",
"captureHardware": "DCA1000",
"mmWaveDevice": "iwr6843",
"operatingFreq": 60,
"mmWaveDeviceConfig": {
"RS232COMPort": "COM3",
"RS232BaudRate": "921600",
"radarSSFirmware": "C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\radarss\\xwr68xx_radarss.bin",
"masterSSFirmware": "C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\masterss\\xwr68xx_masterss.bin"
},
"mmWaveBoard": "test1",
"mmWaveBoardId": "test1",
"capturedFiles": {
"numFilesCollected": 3,
"fileBasePath": "C:\\ti\\mmwave_studio_02_00_00_02\\mmWaveStudio\\PostProc",
"files": [
{
"rawFileName": "adc_data_Raw_0.bin",
"processedFileName": "adc_data.bin",
"processedFileSummary": {
"numZeroFillBytes": 0
}
},
{
"rawFileName": "adc_data_Raw_0.bin",
"processedFileName": "adc_data.bin",
"processedFileSummary": {
"numZeroFillBytes": 0
}
},
{
"rawFileName": "adc_data_Raw_0.bin",
"processedFileName": "adc_data.bin",
"processedFileSummary": {
"numZeroFillBytes": 0
}
}
]
}
}

Thanks

Ernie

  • HI, Ernie:

    The radar studio users guide mentioned that the json export should generate two output file XXX_setup.json and XXX_mmwave.json. 

    Do you see both of them?  

    Best,

    Zigang

  • Hi, Zigang:

    Yes, I can see the two output file XXX_setup.json and XXX_mmwave.json. 

    The XXX_mmwave.json files are the same with using studio GUI and  ar1. JsonExport .

    But the XXX_setup.json are different which I mentioned above.

    Thanks 

    Ernie

  • HI, Ernie:

    Thanks for the response.  Due to the special situation, I do not have a DCA1000 board to try at the moment.  I will get back to you as soon as I get the board back.  At the same time, I will forward your problem to the design team.

    Best,

    Zigang

  • HI, Ernie:

    Here is the response from the design team: 

    The json files exported will only contain the configuration that are issued to the device and are successful/passed.

    If the json file doesn’t have the DCA1000 Config structure, it means either it wasn’t issued or the configuration was not successful.

    ---------------------

    Can you check whether your DCA1000 configure command is passed successfully?

    Best,

    Zigang

  • Hi Zigang:

    I have check the DCA1000 configure command on Studio output screen, and the output is as following:

    It seems that the DCA1000 has been set as we wish.

    However, the JSON file still lose the DCA1000 Config structure.

    We're using Matlab to control the Studio. Due to the using requirements, we separate the lua scipt into three parts. Does it cause the issue of JSON file?

    Best

    Ernie

  • Hi, Ernie:

    After you going through these configurations, were you able to capture raw data successfully?

    Best,

    Zigang

  • Hi Zigang

    Yes, after the configurations, the raw data is captured successfully; and can be used in our experiment with losing the DCA1000 setting information in JSON file.

    Best, 

    Ernie

  • HI, 

    Looks like you are using Matlab to control the Studio. Can you try a stand-alone capture in the Studio session alone? 

    Best,

    Zigang

  • Hi,

    I run the example of script in mmwave studio script folder with adding the JsonExport function after data capture, and the code is  as following 

    json_path= "C:\\ti\\mmwave_studio_02_00_00_02\\"
    json_setup_name = json_path.. "test1.setup.json"
    json_mmwave_name = json_path.. "test1.mmwave.json"
    if (ar1.JsonExport(json_setup_name,json_mmwave_name, "Ernie", "test1", "test1") == 0) then
    WriteToLog("JSON File Export Success\n", "green")
    else
    WriteToLog("JSON File Export failure\n", "red")
    end
    RSTD.Sleep(2000)

    The output of setup json file is following:

    {
    "createdByVersion": "2.0.0",
    "createdOn": "2020-05-07T10:25:54.2047981+08:00",
    "configUsed": "",
    "captureHardware": "DCA1000",
    "mmWaveDevice": "iwr6843",
    "operatingFreq": 60,
    "mmWaveDeviceConfig": {
    "RS232COMPort": "COM3",
    "RS232BaudRate": "921600",
    "radarSSFirmware": "C:\\ti\\mmwave_studio_02_00_00_02\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\radarss\\xwr68xx_radarss.bin",
    "masterSSFirmware": "C:\\ti\\mmwave_studio_02_00_00_02\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\masterss\\xwr68xx_masterss.bin"
    },
    "mmWaveBoard": "test1",
    "mmWaveBoardId": "test1",
    "capturedFiles": {
    "numFilesCollected": 1,
    "fileBasePath": "C:\\ti\\mmwave_studio_02_00_00_02\\mmWaveStudio\\PostProc",
    "files": [
    {
    "rawFileName": "adc_data_Raw_0.bin",
    "processedFileName": "adc_data.bin",
    "processedFileSummary": {
    "numZeroFillBytes": 0
    }
    }
    ]
    }
    }

    It seems still lose the DCA1000 configure details. 

    Best, 

    Ernie

  • Hi, Ernie:

    Does this above experiment run through the radar studio GUI?  

    Best,

    Zigang

  • HI, Ernie:

    I finally get a DCA1000 board to try myself.  It does show the similar information as yours.   I then went back to the users guide, and it does not mention that the json file will contain the IP address configuration for DCA1000.   

    Best,

    Zigang

  • Hi

    Yes, all the experiments are controlled by Matlab and run by studio GUI.

    Does this issue cause by controlling with Matlab?

    Best,

    Ernie

  • Hi, Ernie:

    I tried the export json file and I did not see any DCA1000 IP address setting either.   It is not due to the MATLAB control because I am using radar studio GUI interface.   

    But when I went back to read the radar studio users guide, it does not mention that DCA1000 IP address setting will be included in the json file. So the information, you think is missing, is never plan to be included in json file. 

    Best,

    Zigang