关于虚拟串口和硬件串口的区别问题 VIRTUAL USART PORT PROBLEM
最近发现用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!