Windows PC作为USB从站来模拟拇指驱动器 [英] Windows PC as a USB slave to emulate a thumbdrive

查看:126
本文介绍了Windows PC作为USB从站来模拟拇指驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个允许Windows PC(XP / Vista)模拟拇指驱动器的应用程序。也就是说,当PC插入另一个Windows系统,或者在这种情况下,是允许插入USB拇指驱动器的硬件时,计算机上的文件夹看起来像是巨大的拇指驱动器。关于某个人将在哪里开始对此进行调查的任何想法?

I need to create a application that will allow a Windows PC (XP/Vista) to emulate a thumbdrive. That is, when the PC is plugged into either another Windows system, or in this case, a piece of hardware that allows for USB thumbdrives to be plugged in, a folder on the computer looks like a giant thumbdrive. Any thoughts on where a guy would start to investigate this?

更新(更具体的描述):
我需要将PC连接到其中一种较新的多功能设备支持扫描到插入设备正面的USB拇指驱动器。这些单元不支持通过通常用于与PC连接的后部USB连接器支持WIA或TWAIN。

推荐答案

您无法在应用程序中执行此操作。在最低级别上,计算机上的USB端口由主机控制器接口控制。该芯片将管理多达127个从USB设备。在实现USB协议的从设备端之前,您需要认真地对该芯片进行重新编程。当然,到那时,您PC中的任何USB集线器都将崩溃-您可能拥有的8个USB端口通常由连接到USB1和USB2主机控制器的2个智能USB集线器实现。接下来,您的USB键盘和鼠标将停止工作。

You cannot do this in an application. At the lowest level, the USB ports on your computer are controlled by an Host Controller Interface. This chip will manage up to 127 slave USB devices. You would need to seriously reprogram this chip before it implements the slave side of the USB protocol. Of course, at that point any USB hub in your PC will break down - those 8 USB ports you probably have are usually implemented by 2 smart USB hubs connecting to both USB1 and USB2 host controllers. Next, your USB keyboard and mouse will stop working.

这篇关于Windows PC作为USB从站来模拟拇指驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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