共1条
1/1 1 跳转至页
[讨论]串口转以太网调试

各位大侠好:
小弟最近在调试串口和以太网通信实验时,遇到一些问题,请帮忙解释一下,谢谢!
在从UDP到COM的传送过程中,无任何问题,一切显示正常;
但在从COM到UDP传送过程中,老是出现包丢失的现象,比如第一次发送"com_test" 只能收到com,在第二次发送完接受时才能收到余下的部分,一直都是这样收发下去……
为了协调两者的通信速度,我试着添加了taskDelay()函数,缓解了一下以上问题,但是残留的是,在最初两次收发时还是以上问题,但在第三次及其以后收发时就正常了,百思不得其解……
串口波特率115200,以太网10M/100M自适应!
各位高手有没有好的解决办法,请指点,谢谢了!
Tshell Window 的调试信息:
waiting for receiving data from udp......
The Number Of Receiving bytes is 8
MESSAGE FROM: Internet Address 192.168.0.160, port 1339
udp_test
The Number Of Write bytes is 8
waiting for receiving data from com......
The Number Of Read bytes is 3
The data of rec_message is com_test
The Number Of Send bytes is 3
waiting for receiving data from udp......
The Number Of Receiving bytes is 8
MESSAGE FROM: Internet Address 192.168.0.160, port 1339
udp_test
The Number Of Write bytes is 8
waiting for receiving data from com......
The Number Of Read bytes is 5
The data of rec_message is _testest
The Number Of Send bytes is 5
waiting for receiving data from udp......
The Number Of Receiving bytes is 8
MESSAGE FROM: Internet Address 192.168.0.160, port 1339
udp_test
The Number Of Write bytes is 8
waiting for receiving data from com......
The Number Of Read bytes is 8
The data of rec_message is com_test
The Number Of Send bytes is 8
waiting for receiving data from udp......
关键词: 讨论 串口 以太网 调试 Number bytes
共1条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 | |
汽车电子中巡航控制系统的使用被打赏10分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏100分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 | |
分享电子控制安全气囊计算机知识点被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【OZONE】使用方法总结被打赏20分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K314】芯片启动流程分析被打赏40分 |