在调试串口通信时,如何判断串口接收数据已经完成?我在串口回调函数中加了一个osal_start_timerEx( simpleBLEPeripheral_TaskID, SBP_UART_TIMEOUT_EVT, UART_TIMEOUT );函数,当串口接收超时,就判断数据全部接收完,这样有问题么。还有从机和主机端连接后,我想从机端发个串口命令过去可以断开连接,断开连接具体是调用系统的哪个函数。
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.