串行 COM 连接 64 位版本
我有一个 .net 应用程序,它将文本写入串行 COM 端口,更准确地说,是 POS 收据打印机。我正在使用 Rs232 类库来写入和读取串行设备。
我现在的问题是,一些已将操作系统更新到 WIN7 64 位版本的客户端无法创建与 COM 端口的连接。
com 端口似乎被其他进程占用,这阻止了我的应用程序打开新连接。所以对于我的问题,有谁知道如何关闭与 com 端口的所有连接?或者看看是什么阻碍了它?再次强调,这似乎只影响 win7 和 64 位用户。
谢谢
I have a .net Application that writes text to a serial COM port, a POS reciept printer to be more exact. i am using the Rs232 class library to write and read to a serial device.
My problem is now with some clients that have updated their operatingsystem to WIN7 64bit version, have trouble to create a connection to the COM-port.
the com-port seemes to get occupied with some other process and that blocks my application to opening a new connection. so for my question, does anyone know how i can close all connections to a com port? or see whats blocking it? once again this seems to only to affect win7 and 64bit users.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须找到劫持 COM 端口的进程。 SysInternals 的 Handle 实用程序应该可以帮助您找到它。除此之外,我还看到电话服务占用了我的一台计算机上的 COM 端口。
You'll have to find the process that is hijacking the COM port. SysInternals' Handle utility should help you find it. Other than that, I've seen the Telephony service grab a COM port on one of my machines.