关于虚拟串口和硬件串口的区别问题 VIRTUAL USART PORT PROBLEM

pb1005 2015-07-06 09:02:04
最近发现用API编写的程序(书上的实际例子,未改动,不是使用控件编程的),它能够操作实际的串口正常收发,但一遇到虚拟串口就不稳定,有时可以收发有时则不行,非常不稳定。
而用一些串口精灵去操作虚拟串口,则没有这种问题。说明虚拟串口本身无问题。
所以很困惑,在VC涉及到虚拟串口时,为什么会发生这种不稳定现象,应该注意一些什么?
请求VC串口高手解答。谢谢!

I found some existing API samples for USART they actually run unstable if I use virtual USART instead of hardware.
However a mature software operates my virtual USART port very well without any problem. This demostrates the virtual port can be well cotrolled and there is no problem.
Obviously, the problem is how to inprove the API program. I have no idea what is the difference between hardware ports and vitual ports and how to write program to adapt.
Plesase give me asistance if you have similar expericnces. Thanks you!
...全文
452 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2015-07-06
  • 打赏
  • 举报
回复

3,882

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 其它技术问题
社区管理员
  • 其它技术问题社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧