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.

cc2540 uart接收数据问题

Other Parts Discussed in Thread: CC2540

请问,我调试uart时候,使用调试助手发送数据,然后调用接口Hal_UART_RxBufLen时返回的数据不是完整的数据,相当于被拆包了呢?谢谢。

uart数据回调函数:


    if( (numBytes = Hal_UART_RxBufLen(port)) > 0 )
    {
        HalUARTRead (port, pktBuffer, numBytes);
        HalUARTWrite(port,pktBuffer,numBytes);
        CommondHandle(pktBuffer, numBytes);
    }