I am studying the toaster on bus behavior. Now I want to know can I use this
sample to simulate USB device plugin/unplug.
1. can I use 'enum' console application to send the IOCTL to tell the
busenum driver that a new USB device is plugged in? Do I need to modify the
code of it?
2. what do I need to modify the busenum driver code to tell PnP manager that
a USB device is attached?

Any comment is appreaciated.

RE: use toaster sample to simulate USB device enumeration by pavel_a

pavel_a
Tue Nov 14 15:46:01 CST 2006

"Kevin" wrote:
> I am studying the toaster on bus behavior. Now I want to know can I use this
> sample to simulate USB device plugin/unplug.
> 1. can I use 'enum' console application to send the IOCTL to tell the
> busenum driver that a new USB device is plugged in? Do I need to modify the
> code of it?
> 2. what do I need to modify the busenum driver code to tell PnP manager that
> a USB device is attached?
>
> Any comment is appreaciated.

Perhaps the best thing for simulation USB devices is... the framework
for simulation of USB devices. Included in the latest WDK.

Regards.
--PA


RE: use toaster sample to simulate USB device enumeration by Kevin

Kevin
Tue Nov 14 20:51:02 CST 2006

can the the framework for simulation of USB devices be used on Win2000 and
WinXP?

"Pavel A." wrote:

> "Kevin" wrote:
> > I am studying the toaster on bus behavior. Now I want to know can I use this
> > sample to simulate USB device plugin/unplug.
> > 1. can I use 'enum' console application to send the IOCTL to tell the
> > busenum driver that a new USB device is plugged in? Do I need to modify the
> > code of it?
> > 2. what do I need to modify the busenum driver code to tell PnP manager that
> > a USB device is attached?
> >
> > Any comment is appreaciated.
>
> Perhaps the best thing for simulation USB devices is... the framework
> for simulation of USB devices. Included in the latest WDK.
>
> Regards.
> --PA
>

RE: use toaster sample to simulate USB device enumeration by pavel_a

pavel_a
Wed Nov 15 13:21:02 CST 2006

"Kevin" wrote:
> can the the framework for simulation of USB devices be used on Win2000 and
> WinXP?

On win2000, definitely not. On XP SP2+ may be.
It depends on whether you simulate the device-side firmware,
or something that runs on the host OS side.

--PA

> "Pavel A." wrote:
>
> > "Kevin" wrote:
> > > I am studying the toaster on bus behavior. Now I want to know can I use this
> > > sample to simulate USB device plugin/unplug.
> > > 1. can I use 'enum' console application to send the IOCTL to tell the
> > > busenum driver that a new USB device is plugged in? Do I need to modify the
> > > code of it?
> > > 2. what do I need to modify the busenum driver code to tell PnP manager that
> > > a USB device is attached?
> > >
> > > Any comment is appreaciated.
> >
> > Perhaps the best thing for simulation USB devices is... the framework
> > for simulation of USB devices. Included in the latest WDK.
> >
> > Regards.
> > --PA
> >

RE: use toaster sample to simulate USB device enumeration by Bench

Bench
Thu Nov 16 00:12:02 CST 2006

maybe IOCTL_INTERNAL_USB_CYCLE_PORT does what you want ( works on 2K too )?

- Bernhard Ruhsam

"Kevin" wrote:

> I am studying the toaster on bus behavior. Now I want to know can I use this
> sample to simulate USB device plugin/unplug.
> 1. can I use 'enum' console application to send the IOCTL to tell the
> busenum driver that a new USB device is plugged in? Do I need to modify the
> code of it?
> 2. what do I need to modify the busenum driver code to tell PnP manager that
> a USB device is attached?
>
> Any comment is appreaciated.