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.

点播通信的问题

有没有什么标志位,或者什么 协议栈自带的 返回值,能知道接收方是否已经收到数据了?

  • 主要是靠osal_msg_receive函数来接收的 return *uint8 - message information or NULL if no message

    /*********************************************************************
    * @fn osal_msg_receive
    *
    * @brief
    *
    * This function is called by a task to retrieve a received command
    * message. The calling task must deallocate the message buffer after
    * processing the message using the osal_msg_deallocate() call.
    *
    * @param uint8 task_id - receiving tasks ID
    *
    * @return *uint8 - message information or NULL if no message
    */

  • 第一次发帖   问题描述的可能不太清楚

    我是想问:点播通信,怎么做到发送数据不会丢失,要做到这样肯定得知道接收方是否接收到数据,没接收到就重发,这样就能做到不丢数据了。

    问题是::我怎么知道接收方有没有接收到数据,协议栈有没有这个功能,没有的话只有自己做应答重发机制了。

    等待您的回复!

  • 在SYS_EVENT_MSG时间中添加AF_DATA_CONFIRM_CMD,收到响应后,会触发这个事件,如果返回的状态为afStatus_SUCCESS,说明通信成功。