the given port name does not start with COM/com异常解决办法
2011-10-26 20:41
846 查看
程序每次打开串口时,都会出现如下错误:
the given port name does not start with COM/com or does not resolve to a valid serial port.(给定的端口名称未以 COM/com 开头或未解析为有效的串行端口)
Parameter name :portName.
这个问题一直困扰了我好几天,最开始,只能在电脑的设备管理器中找到com口,然后先把com口停用,然后启用才行。
但是,这样治标不治本,在网上找了半天,最后在一个国外的论坛上找到了答案。
原来是COM1的端口被打印机驱动占用了,把打印驱动指向的端口改成其他就可以了。
原来是打印机用了地磅的串口,导致了上面的问题,改了打印机的端口,就正常了。
I found that I had a windows printer setup to use the same port. As soon as I changed the port in the printers
settings, the SerialPort.Open() worked.
在网上查了一下,Adobe打印机占用了COM1端口也会引发如上问题。
希望能给大家帮助。
the given port name does not start with COM/com or does not resolve to a valid serial port.(给定的端口名称未以 COM/com 开头或未解析为有效的串行端口)
Parameter name :portName.
这个问题一直困扰了我好几天,最开始,只能在电脑的设备管理器中找到com口,然后先把com口停用,然后启用才行。
但是,这样治标不治本,在网上找了半天,最后在一个国外的论坛上找到了答案。
原来是COM1的端口被打印机驱动占用了,把打印驱动指向的端口改成其他就可以了。
原来是打印机用了地磅的串口,导致了上面的问题,改了打印机的端口,就正常了。
I found that I had a windows printer setup to use the same port. As soon as I changed the port in the printers
settings, the SerialPort.Open() worked.
在网上查了一下,Adobe打印机占用了COM1端口也会引发如上问题。
希望能给大家帮助。
相关文章推荐
- 串口调试,提示the given port name does not start with COM/com异常解决办法,,发现是打印机在搞怪
- Unity3d 提示 "The scripts file name does not match the name of the class defined in the script!"的解决办法
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists解决办法
- 解决办法:The name 'Response' does not exist in the current context
- Can not find a java.io.InputStream with the name [] in the invocation stack 解决办法
- Hibernate报错:org.hibernate.ObjectNotFoundException: No row with the given identifier exists 解决办法
- Hibernate常见问题 No row with the given identifier exists问题的解决办法及解决
- ubunt 系统上安装 deb 出错解决方法 version number does not start with digit
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- a port with that name already exists的解决办法
- 【hibernate】关于org.hibernate.ObjectNotFoundException: No row with the given identifier exists 的快捷解决问题
- Error:The name 'Encoding' does not exist in the current context 解决方法
- No row with the given identifier exists异常解决
- struts异常_does not start with a "/" character
- The requested profile "account" could not be activated because it does not exist 无法maven install的 解决办法,勾选红框选择的选项即可
- Path does not start with a "/" character 问题的解决(2)
- Python 3中套接字编程中遇到TypeError: 'str' does not support the buffer interface的解决办法
- CS0103: The name ‘Scripts’ does not exist in the current context解决方法
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- eclipse 出现The preferences for the xdoclet runtime does not point to a valid installation.错误的解决办法