串口调试,提示the given port name does not start with COM/com异常解决办法,,发现是打印机在搞怪
2014-10-16 17:08
691 查看
串口测试时,用到串口,把打印机的拔下来,换上测试的,程序一打开就提示错误:the given port name does not start with COM/com or does not resolve to a valid serial port.(给定的端口名称未以 COM/com 开头或未解析为有效的串行端口)
最开始,只能在电脑的设备管理器中找到com口,然后先把com口停用,然后启用才行。这样治标不治本,在网上找了半天,在网上找了半天,终于解决了。
原来是COM1的端口被打印机驱动占用了,把打印驱动指向的端口改成其他就可以了。
原来是打印机用了这个串口,虽然打印机拔下来了,但是他还是占用着那端口,导致程序再打开这端口就失败,直接把打印机改端口或不用就删了。。
最开始,只能在电脑的设备管理器中找到com口,然后先把com口停用,然后启用才行。这样治标不治本,在网上找了半天,在网上找了半天,终于解决了。
原来是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!"的解决办法
- spring batch 任务运行时提示No job configuration with the name解决办法
- Hibernate报错:org.hibernate.ObjectNotFoundException: No row with the given identifier exists 解决办法
- SAp提示错误:The factory calendar does not exist 的解决办法
- magento1.6.1.0和magento1.7.0.2安装时提示:Database server does not support the InnoDB storage engine的解决办法
- Can not find a java.io.InputStream with the name [] in the invocation stack 解决办法
- Silverlight无法启动调试,错误“Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matching version.” 解决办法
- VC6调试时出现的does not contain debugging information提示解决办法!
- 关于编写WPF UserControl时提示The name 'InitializeComponent' does not exist in the current contextr的解决!
- IDA调试安卓程序提示“The debugger could not ...”解决办法
- 解决办法:The name 'Response' does not exist in the current context
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists解决办法
- Path does not start with a "/" character 问题的解决(2)
- win7中IIS7.0 调试出现错误 The IIS worker process for the launched URL is not currently running的解决办法
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 安装MYSQL时最后一步提示could not start the servers mysql.error:0错误解决方法
- 打开sln文件出现the selected file is not a valid visual studio solution file错误提示解决办法
- There is not a header with name ServiceContext and namespace http://schemas.microsoft.com/sharepoint/servicecontext in the messa
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.chint.model.bas.Vendor#