我需要断开USB串口,然后重新连接。 [英] I need to disconnect a USB serial port and then reconnect it.

查看:163
本文介绍了我需要断开USB串口,然后重新连接。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



标题说我真的想通过应用程序放弃USB串口而不是我想出的硬件方法(a开关)。问题是我正在尝试运行一个需要测量静态电流的自动测试装置,但由于USB连接提供了额外的电流,这很令人不安。我的交换机解决方案解决了这个问题,但客户希望将它全部合并到应用程序中,并找到了一个应用程序来完成它。我得到的只是来自C#项目的程序文件:

Hi All,

The title says it really I want to drop the USB serial port via the application rather than the hard ware method I came up with (a switch). The issue is I am trying to run an auto test rig that needs to measure the quiescent current, but this is being upset due to the USB connection supplying extra current. My switch solution gets around this however the customer wants it all incorporated into the application, and has found an application to do it. All I am given is a Program file from a C# project:

RecoverSerialPortTool

并告诉他们使用它。我相信它是来自MSDN的应用程序。这听起来有可能,但充满危险我可以得到别人的意见吗?

要断开USB设备,它会停止它,停止所有连接(不仅是Tx和Rx),而是所有电源都连接到项目连接(在这种情况下是ICD)



格伦



环顾四周我发现:

如何准备USB驱动器安全删除 [ ^ ]可悲的是,我试图断开的项目不是驱动器...

and told to work with it. I believe it is an application from MSDN. It sounds possible but fraught with danger could I get others opinions please?
To disconnect the a USB device will it stop it dead, stopping all connection (not only Tx & Rx) but all power to the item connected (in this case an ICD)

Glenn

Looking around I have found:
How to Prepare a USB Drive for Safe Removal[^] Sadly the item I am trying to disconnect is not a drive...

推荐答案

代码在做什么正在卸载USB驱动程序,如果正式符合USB 1.1规范,将会降低USB的供电能力。您可以自己手动执行此操作以通过控制面板中的设备管理器查看效果,或者在任务栏上选择弹出设备。
What the code is doing is dismounting the USB driver WHICH WILL DE-POWER THE USB if it formally meets the USB 1.1 specification. You can do it manually yourself to see the effect thru device manager in control panel or down on the task bar select to eject the device.


这篇关于我需要断开USB串口,然后重新连接。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆