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.

IWR1443: Matlab Code

Part Number: IWR1443

hi,

i just wanted to know, if anyone of you  would be so kind, as to share his/her code with me. I have been trying to get raw data also. But whatever i do, it just won't work

Regards

Patrick

  • Patrick,

    Could you please indicate which Matlab code are you looking for? If you are looking for code to parse the UART stream from the out of box (i.e. mmw demo), we don't have a Matlab code available for parsing the mmw Demo UART data. However, you can download the mmWaveDemoVisualizer source code and refer to the function process1 in mmWave.js to understand the parsing. Information on how to download the Visualizer source code can be found here.

    https://e2e.ti.com/support/sensors/f/1023/p/729467/2692336#2692336

    For IWR1443 out of box demo, you need to use and download the source code for mmWave_Demo_Visualizer 2.1.0 as shown below:

    Thanks

    -Nitin

  • Hi Nitin,

    Well the real issue i have is to get raw data through UART from the ADCbuff and parse them into a textarea i have added to the matlab app in real time.

    in the following function

    void VitalSignsDemo_transmitProcessedOutput(UART_Handle uartHandle,
                                                VitalSignsDemo_DataPathObj *obj)
    {    UART_writePolling(uartHandle,
                          (uint8_t*) &gMmwHwaMemBuf, sizeof(vitalSignsHwaBuf_t)); }

    I have added this code line.

    Now i want to know how to get these data to be written in the app. I don't really know where they are in the packet that is being sent.

    regards

    patrick  

  • Hi Patrick,

    If you look at the code for VitalSignsDemo_transmitProcessedOutput(), you can see that it inserts a header with a magic word as shown below.

    void VitalSignsDemo_transmitProcessedOutput(UART_Handle uartHandle,
                                                VitalSignsDemo_DataPathObj *obj)
    {
    
        MmwDemo_output_message_header header;
        uint32_t tlvIdx = 0;
        uint32_t numPaddingBytes;
        uint32_t packetLen;
        uint32_t itemPayloadLen;
        uint8_t padding[MMWDEMO_OUTPUT_MSG_SEGMENT_LEN];
    
        MmwDemo_output_message_tl   tl[MMWDEMO_OUTPUT_MSG_MAX];
    
        /* Clear message header */
        memset((void *)&header, 0, sizeof(MmwDemo_output_message_header));
        /* Header: */
        header.platform = 0xA1443;
        header.magicWord[0] = 0x0102;
        header.magicWord[1] = 0x0304;
        header.magicWord[2] = 0x0506;
        header.magicWord[3] = 0x0708;

    This magic word is used by the Matlab parser vitalSigns_demo_gui.m to sync to the output structure . Please understand this function and then modify it to insert the data you want to send after this magic word. You can remove all other data being output in this function by commenting out the corresponding code in this function. Correspondingly you will also need to modify the provided Matlab parser to match the new output structure after your modifications. Essentially, you need a magic word at the minimum before your data to identify the start of the data in the parser.

    Thanks

    -Nitin