Windows 10中的虚拟COM端口:EV_TXEMPTY是否会触发? [英] Virtual COM ports in Windows 10: Does EV_TXEMPTY fire?
问题描述
在Windows 10下写入硬件串行端口后,EV_TXEMPTY信号显示为预期。
The EV_TXEMPTY signal appears as expected following a write to a hardware serial port under Windows 10.
在写入虚拟文件后,我从未见过EV_TXEMPTY信号触发与蓝牙适配器关联的串口。
I have never yet seen the EV_TXEMPTY signal fire after a write to a virtual serial port associated with a Bluetooth dongle.
此信号是否未针对虚拟串口实现?
Is this signal not implemented for virtual serial ports?
推荐答案
Hi Mockingbird,
Hi Mockingbird,
感谢您在此处发帖。
>>此信号是否未针对虚拟串行端口实施?
>>Is this signal not implemented for virtual serial ports?
没有办公室文件说明这一点。请尝试使用
GetCommState 功能,检查您是否可以与蓝牙适配器通信。并使用
SetCommMask 设置EV_TXEMPTY事件。
There is no office document said about that. Please try to use GetCommState function to check if you can communicate with Bluetooth dongle. And also use SetCommMask to set EV_TXEMPTY event.
或者您可以尝试使用
WriteFile 函数以同步方式与串口通信。
Or you can try to use WriteFile function to communicate with serial port in a synchronous way.
最好的问候,
Sera Yu
这篇关于Windows 10中的虚拟COM端口:EV_TXEMPTY是否会触发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!