在莫坛得到的方法,试了试把被占用的口都释放了。
USB虚拟串口被占用,软件可用串口有限COM1-COM4,如何释放和删除被占用的串口
A:可以通过删除注册表中的一个数值项来清除这些配置:在“运行”对话框中输入“regedit”进入注册表;然后进入 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\COM Name Arbiter这时我们可以找到该数值项:ComDB,它的值代表目前使用中的串口端号。比如1d,它的二进制:0001 1101,则从右往左数代表第1,3,4,5端口被占用。这样我们只需要把ComDB这个数据项删除,关闭注册表(不用重启电脑)即可。
还有一个方法没试,也是别人找的:
网上找到的,我没试过.
http://www.fettesps.com/how-to-remove-com-ports-which-are-in-use/
C:\Windows\System32\Command
Enter set devmgr_show_nonpresent_devices=1 into Command Prompt
Open Device Manager
Click View -> Show Hidden Devices
Now when you expand the section on COM ports, the non present COM ports will be in grey. You can now easily remove any unwanted devices that are tying up COM ports by Right Clicking then selecting Uninstall. After you are done, should you wish to hide these devices again you can do so by entering
set devmgr_show_nonpresent_devices=0 in Command Prompt.
|