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/AWR1642BOOST: how to export tracking data

Part Number: AWR1642BOOST
Other Parts Discussed in Thread: TMDSEMU110-U

Tool/software: Code Composer Studio

Hello,

In SRR demo, i try to export the target data (after tracking process and before classification), which corresponds to the data structure 'trackerOpFinal'  in function 'populateOutputs()' of 'dss_data_path.c' . Someone has told me that I have to write code for exporting the data, but I don't know exactly what should I do. Should this process be:

1. add some code which output the tracking data to a new file:

(1)where should I add these code, in 'MmwDemo_interFrameProcessing' of  'dss_data_path.c'? 

(2)where should I definite the location of this new data file. 

2. build the poject again.

3. how to make the new modified project into AWR1642BOOST firmware so that I can execute it and get the exported data file?

Thanks a lot in advance!

Best wishes,

Kathy

  • And by the way do I need a specific hardware (like TMDSEMU110-U: XDS110 JTAG Debug Probe) for this use?
  • Hello Kathy,

    A1: The tracking data is also available for you on the MSS side and you can choose to log this tracking data before sending it out on UART. You can use some routines of the debug server to dump this data .But when you do this the JTAG will halt and can cause fault in your application. The solution for you would be to get the data on the UART and log it to file on PC. You can refer to the matlab GUI application to see how you can receive the data tracking from the device.

    A2: If you decide to use the UART for logging the data on PC then you will not need to build the code.

    A3: If you decide to use the UART for logging the data on PC then you will not need to build the code.

    As you are using the AWR1642BOOST, you do not need any separate debugger. It already has the XDS110 debugger for JTAG and debug interface.

    -Raghu

  • Hello Raghu,

    thanks a lot for your reply, it's very helpful. So I now try to get the data on the UART and log it to file on PC. I need the information of tracked objects during an observation period, not only the location information but also the echo feature data(range profile, range doppler map, etc.) . So I read the SRR_DSS_SendProcessOutputToMSS() function to see what kind of information is sent by UART. There are 4 "if" conditions in this function, but I don't know the difference between them:
    int32_t SRR_DSS_SendProcessOutputToMSS(...)
    {
    if (obj->numDetObj > 0)
    memcpy(ptrCurrBuffer, (void *) &descr, itemPayloadLen);
    memcpy(&ptrCurrBuffer[sizeof(MmwDemo_output_message_dataObjDescr)], (void *) obj->detObjFinal, itemPayloadLen);

    if ((obj->processingPath == POINT_CLOUD_PROCESSING) && (obj->dbScanReport.numCluster > 0))
    memcpy(ptrCurrBuffer, (void *) &descr, itemPayloadLen);
    memcpy(&ptrCurrBuffer[sizeof(MmwDemo_output_message_dataObjDescr)], (void *) obj->clusterOpFinal, itemPayloadLen);

    if (obj->processingPath == POINT_CLOUD_PROCESSING)
    memcpy(ptrCurrBuffer, (void *) &descr, itemPayloadLen);
    memcpy(&ptrCurrBuffer[sizeof(MmwDemo_output_message_dataObjDescr)], (void *) obj->parkingAssistBins, itemPayloadLen);

    if ((obj->processingPath == MAX_VEL_ENH_PROCESSING) && (obj->numActiveTrackers > 0))
    memcpy(ptrCurrBuffer, (void *) &descr, itemPayloadLen);
    memcpy(&ptrCurrBuffer[sizeof(MmwDemo_output_message_dataObjDescr)], (void *) obj->trackerOpFinal, itemPayloadLen);
    }
    And I noticed that only the last "if" condition mentions the "trackerOpFinal", is it the only one that contains tracked objects data? And I also noticed that, "trackerOpFinal" is given value from the function populateoutput() , which minimizes the object data to a small set which contains only location information of detected objects. So do I need to modify this line of code: declare another variable that includes all the tracked objects information I want, and replace "trackerOpFinal" in this line?
    "memcpy(&ptrCurrBuffer[sizeof(MmwDemo_output_message_dataObjDescr)], (void *) obj->trackerOpFinal, itemPayloadLen);"

    I am not sure that my way is right. Would you please help me again?

    Best wishes,

    Kathy