﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-FongLuo-随笔分类-USB</title><link>http://www.cppblog.com/FongLuo/category/21218.html</link><description>命运负责洗牌,但是玩牌的是我们自己</description><language>zh-cn</language><lastBuildDate>Wed, 25 May 2016 01:41:59 GMT</lastBuildDate><pubDate>Wed, 25 May 2016 01:41:59 GMT</pubDate><ttl>60</ttl><item><title>USB Trace</title><link>http://www.cppblog.com/FongLuo/archive/2016/05/25/213579.html</link><dc:creator>FongLuo</dc:creator><author>FongLuo</author><pubDate>Wed, 25 May 2016 01:17:00 GMT</pubDate><guid>http://www.cppblog.com/FongLuo/archive/2016/05/25/213579.html</guid><wfw:comment>http://www.cppblog.com/FongLuo/comments/213579.html</wfw:comment><comments>http://www.cppblog.com/FongLuo/archive/2016/05/25/213579.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/FongLuo/comments/commentRss/213579.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/FongLuo/services/trackbacks/213579.html</trackback:ping><description><![CDATA[我们常用的USB分析工具（纯软件）为USBViewer和BusHound，但那只是枚举完成后的事儿，枚举过程中发生了什么事儿呢？<br />最近公司牛人推荐了一套微软的工具：<br /><br />下面的链接是微软提供的usb&nbsp;trace工具，可以跟踪和分析windows下面，usb主机驱动的所有日志，可以帮助分析设备不上盘的原因。<div>可以试用一下。<br /><br /><a href="https://msdn.microsoft.com/en-us/library/windows/hardware/dn741264(v=vs.85).aspx" title="https://msdn.microsoft.com/en-us/library/windows/hardware/dn741264(v=vs.85).aspx"><img src="file:///C:\Users\ADMINI~1.USE\AppData\Local\Temp\8LDO48C$8@[GWU0353$FOVS.png"  alt="" />https://msdn.microsoft.com/en-us/library/windows/hardware/dn741264(v=vs.85).aspx<br /></a><br />据说可以看到整个枚举过程。有时间得研究下。</div><img src ="http://www.cppblog.com/FongLuo/aggbug/213579.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/FongLuo/" target="_blank">FongLuo</a> 2016-05-25 09:17 <a href="http://www.cppblog.com/FongLuo/archive/2016/05/25/213579.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一个USB问题的解决（转自叶知秋）</title><link>http://www.cppblog.com/FongLuo/archive/2008/11/26/67880.html</link><dc:creator>FongLuo</dc:creator><author>FongLuo</author><pubDate>Wed, 26 Nov 2008 02:52:00 GMT</pubDate><guid>http://www.cppblog.com/FongLuo/archive/2008/11/26/67880.html</guid><wfw:comment>http://www.cppblog.com/FongLuo/comments/67880.html</wfw:comment><comments>http://www.cppblog.com/FongLuo/archive/2008/11/26/67880.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/FongLuo/comments/commentRss/67880.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/FongLuo/services/trackbacks/67880.html</trackback:ping><description><![CDATA[<p><a title="http://www.52jj.com/read-52.html" href="http://www.52jj.com/read-52.html">http://www.52jj.com/read-52.html</a> </p><p>&nbsp; </p><p>打开设备管理器，发现USB控制器还有另外一个与USB有关的设备上都有一个小黄色的叹号<br />USB由于其配置信息(注册表中的)不完整或已损坏，Windows 无法启动这个硬件设备。 (代码 19)<br />最后的解决办法是在运行输入"regedit&#8220;&nbsp; HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}删除 upperfilter 项和 loweverfilter 项,如果有其中之一删除，<br />重启。发现新硬件还有大量的usb root 我就知道好了，等驱动安装好了，打开设备管理器一看，没有出问题的设备了。哈哈，现在USB设备就正常了。</p><img src ="http://www.cppblog.com/FongLuo/aggbug/67880.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/FongLuo/" target="_blank">FongLuo</a> 2008-11-26 10:52 <a href="http://www.cppblog.com/FongLuo/archive/2008/11/26/67880.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>XP SP2下不能安全移除USB硬盘盒问题</title><link>http://www.cppblog.com/FongLuo/archive/2008/07/03/55199.html</link><dc:creator>FongLuo</dc:creator><author>FongLuo</author><pubDate>Thu, 03 Jul 2008 03:54:00 GMT</pubDate><guid>http://www.cppblog.com/FongLuo/archive/2008/07/03/55199.html</guid><wfw:comment>http://www.cppblog.com/FongLuo/comments/55199.html</wfw:comment><comments>http://www.cppblog.com/FongLuo/archive/2008/07/03/55199.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/FongLuo/comments/commentRss/55199.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/FongLuo/services/trackbacks/55199.html</trackback:ping><description><![CDATA[<p>我有一个USB 2.0的盒子，塞了一个20G的2.5"硬盘在里面，并且对半分了两个区。</p> <p>每次用的时候，只要使用资源管理器打开多几次盒子里的目录，然后将所有的资源管理器窗口都关闭；这是安全移除USB设备，但每次都提示设备在使用，不能移除。将桌面上的所有窗口都关闭，再次移除，结果还是一样；只能直接拔掉连接线。</p> <p>在不同的PC上使用，屡试不爽。</p> <p>某日，下载了<a href="http://www.sysinternals.com">www.sysinternals.com</a> Process Explorer,鼓捣了一番，终于发现了蛛丝马迹：</p> <p>运行Process Explorer，按Ctrl+L，在Process中选择explorer.exe；</p> <p>在下面的List中，单击Type列，让其排序，选择任意行，按F键，跳到Type为File的起始行，在Type为File的行中查找Name列中指向盒子的路径的行，选中后，右击该行选择Close Handle，完成后，在安全移除盒子，马上成功了。</p> <p>但是，我使用普通U盘时，没有该问题。</p> <p>&nbsp;</p> <p>所有的窗口都关闭了，但资源管理器还是持有某个打开的句柄，这是否是资源管理器的一个资源泄露Bug呢？</p><img src ="http://www.cppblog.com/FongLuo/aggbug/55199.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/FongLuo/" target="_blank">FongLuo</a> 2008-07-03 11:54 <a href="http://www.cppblog.com/FongLuo/archive/2008/07/03/55199.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux下对USB存储设备的编程的初步探索（Google阶段）</title><link>http://www.cppblog.com/FongLuo/archive/2008/05/08/49219.html</link><dc:creator>FongLuo</dc:creator><author>FongLuo</author><pubDate>Thu, 08 May 2008 08:00:00 GMT</pubDate><guid>http://www.cppblog.com/FongLuo/archive/2008/05/08/49219.html</guid><wfw:comment>http://www.cppblog.com/FongLuo/comments/49219.html</wfw:comment><comments>http://www.cppblog.com/FongLuo/archive/2008/05/08/49219.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/FongLuo/comments/commentRss/49219.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/FongLuo/services/trackbacks/49219.html</trackback:ping><description><![CDATA[要在Linux下实现类似Windows下的量产过程？？？？<br /><br />找了一些资料，有两个可用的手段：<br /><br />1、<a title="SCSI generic (sg)" href="http://ldp.huihoo.org/HOWTO/SCSI-Generic-HOWTO/index.html">SCSI Generic (sg)</a><br />2、<a title="libusb" href="http://libusb.wiki.sourceforge.net/">libusb</a><br /><br />有时间和机会，需要仔细的看看怎么做了。<br /><img src ="http://www.cppblog.com/FongLuo/aggbug/49219.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/FongLuo/" target="_blank">FongLuo</a> 2008-05-08 16:00 <a href="http://www.cppblog.com/FongLuo/archive/2008/05/08/49219.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>