|
沙发
楼主 |
发表于 2018-12-12 07:57:15
|
只看该作者
- if (memcmp(rx_buffer, Master_Release_Semaphore, ALL_MSG_COMMON_LEN) == 0)
- {
- Master_Release_Semaphore_comfirm[ALL_MSG_SN_IDX] = frame_seq_nb;
- Master_Release_Semaphore_comfirm[ALL_MSG_TAG_IDX] = TAG_ID;
- dwt_writetxdata(sizeof(Master_Release_Semaphore_comfirm), Master_Release_Semaphore_comfirm, 0);
- dwt_writetxfctrl(sizeof(Master_Release_Semaphore_comfirm), 0);
- dwt_starttx(DWT_START_TX_IMMEDIATE);
复制代码 问题原因在于接收到Master Release 信号后,发送答复没有等发送成功就开始测距,发送poll message了,在发送后加上等待发送完成标志位,系统运行起来比较正常了。
|
|