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.

IWR6843AOPEVM: 3D people count - I want to receive one chirp 1DFFT

Part Number: IWR6843AOPEVM

added cmplx16ImRe_t radardata[RL_MAX] to typedef struct Pcount3DDemo_MSS_MCB_t

added memcpy(gMmwMssMCB.radardata, (cmplx16ImRe_t *) rangeProcObj->radarCubebuf , 1024); to rangeprochwa.c funtion DPU_RangeProcHWA_process

added UART_write(uartHandle, (uint8_t*)&gMmwMssMCB.radardata[n], 4); to mss_main.c funtion  MmwDemo_uartTxTask

Edited as pictured above, But the received data is strange

After swap byte and swap word , the data was displayed in 16 bits.

swap byte : Swaps the high-order 8 bits and the low-order 8 bits for every word in data.

swap word : Swaps the high-order 16 bits and the low-order 16 bits for every long integer in data.

part of the data graph

Please let me know what went wrong with this process and if there is another way.

Best Regards.

  • Hi,

    Are you able to debug this to check that the data looks as you expect before it is transmitted over UART?

    Best Regards,
    Alec

  • 희망합니다. 궤변점으로 볼 수 없습니다. 보나요? 데이터를 실현할 수 있습니다.

    Excluded because swap word is wrong

    memcpy를 다음과 같이 수정해도 결과는 같다

    for(nn = 0, nn <128, nn++){
    gMmwMssMCB.radardata[nn].imag = rangeProcObj->radarCubebuf[nn].imag;
    gMmwMssMCB.radardata[nn].real = rangeProcObj->radarCubebuf[nn].real;
    }

  • Hi,

    Could you please elaborate further on this?

    Best Regards,
    Alec

  • You can debug. But I can't check the data by setting a breakpoint

    If you input the input into memcpy as a constant and receive it, the same value comes out.

    What is the correct graph shape when receiving an fft signal?

    The graph data format in the question is uint16.

    Do I need a transformation to see the correct data?

  • Hi, 

    If you're looking to understand the format of this data better, it may be good to refer to the 3D People Counting Implementation Guide, which can be found in the mmWave Industrial Toolbox in the docs folder located under People Counting. You could also refer to the code using this data on DSP in order to better understand how it is formatted and utilized.

    Best Regards,
    Alec