PC as device

I need to make a PC “look like” a device (specifically a game controller), so that I can simulate an existing controller’s behavior for the purpose of adapting it to somewhat different purposes but still based on the same hardware/software interface. I have found Microsoft’s Device Simulation Framework documentation, and am wondering if there is other literature on the topic. The connection must be via USB cable; that is, the Virtual PC approach won’t solve my problem.

xxxxx@novint.com wrote:

I need to make a PC “look like” a device (specifically a game controller), so that I can simulate an existing controller’s behavior for the purpose of adapting it to somewhat different purposes but still based on the same hardware/software interface. I have found Microsoft’s Device Simulation Framework documentation, and am wondering if there is other literature on the topic. The connection must be via USB cable; that is, the Virtual PC approach won’t solve my problem.

The purpose of DSF is to simulate a device in software, so that a
Windows driver won’t know it isn’t talking to hardware. If you are
trying to exercise a new driver for your device before the hardware is
ready, DSF is perfect for that.

However, it sounds like you might be trying to plug the PC into some
other processor (XBox?) and have it pretend to be a device. That is not
possible, electrically. USB is a master/slave bus, and when a PC is
involved, the PC is the master. You would have to develop a piece of
hardware that appears to both sides to be a USB device.

Some mobile devices support something called “USB on-the-go”, which can
flip between host and device, but Windows doesn’t do that.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

>Framework documentation, and am wondering if there is other literature on the topic. The connection

must be via USB cable

USB cable is oriented, just on a physical level. And where is the USB peripheral-side plug on a PC? none :slight_smile:


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com