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: 数据串口波特率

Part Number: IWR6843AOPEVM


固件:C:\ti\mmwave_industrial_toolbox_4_11_0\labs\Vital_Signs\Vital_Signs_With_People_Tracking\prebuilt_binaries\vital_signs_tracking_68xx_demo.bin

设备: IWR6843AOPEVM 单个

固件烧入后设备后,运行Vital_Signs_GUI.exe,是可以得到正确的数据。

但想自己写串口数据进行解释,却不知它的波特率是多少?

串口读出的数据与文档的协议不一样。

  • 请参考以下文档9 UART and Output to the Host:

    The UART is configured at 921600 bps in DMA mode.

    mmwave_industrial_toolbox_4_11_0/labs/People_Counting/docs/3D_people_counting_demo_implementation_guide.pdf

  • 我用baud rate:921600

    data bits:8

    stop bits :1

    parity :none

    flow control :none

    却无法读到正确的数据头: 01 02 03 04 05  06 07 08

    上面的配置是否有问题

  • 串口若是按16进制读是乱码;

    按字符却是乱码

  • 不好意思说错了:

    串口若是按16进制读是没有01 02 03 04 05 06 07 08

    按字符却是乱码

  • 大端,小端不说明白呢,是02 01 04 03 06 06 08 07

  • 是否有参考参考过 mmwave_industrial_toolbox_4_11_0\labs\People_Counting\3D_People_Counting\src\68xx\mss\mss_mian.c的配置:

     /* Open the UART Instance */
        gMmwMssMCB.commandUartHandle = UART_open(0, &uartParams);
        if (gMmwMssMCB.commandUartHandle == NULL)
        {
            Pcount3DDemo_debugAssert (0);
            return;
        }
    
        /* Setup the default UART Parameters */
        UART_Params_init(&uartParams);
        uartParams.writeDataMode = UART_DATA_BINARY;
        uartParams.readDataMode = UART_DATA_BINARY;
        uartParams.clockFrequency = gMmwMssMCB.cfg.platformCfg.sysClockFrequency;
        uartParams.baudRate       = gMmwMssMCB.cfg.platformCfg.loggingBaudRate;
        uartParams.isPinMuxDone   = 1U;
    
        uartParams.dmaHandle      = dmaHandle;
        uartParams.txDMAChannel   = UART_DMA_TX_CHANNEL;  
        uartParams.rxDMAChannel   = UART_DMA_RX_CHANNEL;  
    
        /* Open the Logging UART Instance: */
        gMmwMssMCB.loggingUartHandle = UART_open(1, &uartParams);
        if (gMmwMssMCB.loggingUartHandle == NULL)
        {
            System_printf("Error: Unable to open the Logging UART Instance\n");
            Pcount3DDemo_debugAssert (0);
            return;
        }
    

    串口若是按16进制读是没有01 02 03 04 05 06 07 08

    UART_DATA_BINARY 模式下会缺失syncPattern部分的内容,其它部分都能正常读出吗?