hi all,

I am writing a driver for USB to Serial device in KMDF, which has 2
configurations. After selecting 1 configuration and downloading the firmware,
i am not able to switch to 2 configuration. I want to know whether KMDF
supports multiple configurations and how to select the required configuration.


thank you,
siddu.

Re: KMDF Usb Multiple Configuration by Doron

Doron
Wed Mar 26 15:36:04 CDT 2008

no, WDFUSBDEVICE does not supoprt multiple configurations. you can do this
yourself with WDFIOTARGETs if you want. why not expose the firmware updater
as an interface on a single configuration and just consume this interface
internally in the driver to update the device?

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"siddu" <siddu.khed@gmail.com> wrote in message
news:20C435F4-EE3A-4AE4-8524-58D149C29905@microsoft.com...
> hi all,
>
> I am writing a driver for USB to Serial device in KMDF, which has 2
> configurations. After selecting 1 configuration and downloading the
> firmware,
> i am not able to switch to 2 configuration. I want to know whether KMDF
> supports multiple configurations and how to select the required
> configuration.
>
>
> thank you,
> siddu.


Re: KMDF Usb Multiple Configuration by chris

chris
Thu Mar 27 09:25:36 CDT 2008

On Mar 26, 7:36 am, siddu <siddu.k...@gmail.com> wrote:

> I am writing a driver for USB to Serial device in KMDF, which has 2
> configurations. After selecting 1 configuration and downloading the firmware,
> i am not able to switch to 2 configuration. I want to know whether KMDF
> supports multiple configurations and how to select the required configuration.

I would just use a separate PID (and USB configuration #0) for the
"firmware loaded" configuration.

Re: KMDF Usb Multiple Configuration by siddu

siddu
Fri Mar 28 06:59:01 CDT 2008


Hi Doron,
Thanks for the reply.Can u plz explain how to do this using WDFIOTARGET.
As the device has 2 configurations, after getting 1st configuration we
download the firmware and the firmware will activate the 2nd configuration.
The firmware cannot be modified so plz tell some other way.




thank you,
siddu.

"Doron Holan [MSFT]" wrote:

> no, WDFUSBDEVICE does not supoprt multiple configurations. you can do this
> yourself with WDFIOTARGETs if you want. why not expose the firmware updater
> as an interface on a single configuration and just consume this interface
> internally in the driver to update the device?
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "siddu" <siddu.khed@gmail.com> wrote in message
> news:20C435F4-EE3A-4AE4-8524-58D149C29905@microsoft.com...
> > hi all,
> >
> > I am writing a driver for USB to Serial device in KMDF, which has 2
> > configurations. After selecting 1 configuration and downloading the
> > firmware,
> > i am not able to switch to 2 configuration. I want to know whether KMDF
> > supports multiple configurations and how to select the required
> > configuration.
> >
> >
> > thank you,
> > siddu.
>
>

Re: KMDF Usb Multiple Configuration by chris

chris
Sat Mar 29 09:57:29 CDT 2008

On Mar 28, 6:59 am, siddu <siddu.k...@gmail.com> wrote:

> Thanks for the reply.Can u plz explain how to do this using WDFIOTARGET.
> As the device has 2 configurations, after getting 1st configuration we
> download the firmware and the firmware will activate the 2nd configuration.
> The firmware cannot be modified so plz tell some other way.

The KMDF USB DDI's are quite handy, especially the continuous reader.
As such, I don't think you want to lose access to them this easily.
I'll offer a different solution: create a lower filter to your KMDF
function driver that masks/handles the second configuration of your
device.

The upper edge of the filter will present the device in configuration
#0, whether it is in configuration #0 or not. The lower edge will
handle selecting the alternate configuration using manually created
URBs.

Re: KMDF Usb Multiple Configuration by Tim

Tim
Sat Mar 29 18:37:19 CDT 2008

siddu <siddu.khed@gmail.com> wrote:
>
>Hi Doron,
> Thanks for the reply.Can u plz explain how to do this using WDFIOTARGET.
>As the device has 2 configurations, after getting 1st configuration we
>download the firmware and the firmware will activate the 2nd configuration.
>The firmware cannot be modified so plz tell some other way.

The firmware can always be modified. In this case, your hardware designers
have made a very poor implementation choice, without first considering the
operating environment they would be selling into. The proper fix is to
correct the design so that it works cooperatively in their target market.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Re: KMDF Usb Multiple Configuration by chris

chris
Sun Mar 30 20:32:14 CDT 2008

On Mar 29, 6:37 pm, Tim Roberts <t...@probo.com> wrote:

> The firmware can always be modified. In this case, your hardware designers
> have made a very poor implementation choice, without first considering the
> operating environment they would be selling into. The proper fix is to
> correct the design so that it works cooperatively in their target market.

You can't be serious.

Re: KMDF Usb Multiple Configuration by Tim

Tim
Mon Mar 31 21:54:50 CDT 2008

chris.aseltine@gmail.com wrote:

>On Mar 29, 6:37 pm, Tim Roberts <t...@probo.com> wrote:
>
>> The firmware can always be modified. In this case, your hardware designers
>> have made a very poor implementation choice, without first considering the
>> operating environment they would be selling into. The proper fix is to
>> correct the design so that it works cooperatively in their target market.
>
>You can't be serious.

Why not? If you expect to sell a device into the Windows market, you
better make darned sure that your device plays nicely with Windows, even if
you do something that is valid by the spec.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Re: KMDF Usb Multiple Configuration by chris

chris
Tue Apr 01 07:03:15 CDT 2008

On Mar 31, 9:54 pm, Tim Roberts <t...@probo.com> wrote:

> Why not? If you expect to sell a device into the Windows market, you
> better make darned sure that your device plays nicely with Windows, even if
> you do something that is valid by the spec.

Well, I'm just saying, I have a feeling you've been around long enough
to know that no, the firmware can't "always" be changed (what if this
device is in the field already?) and that driver writers are often
asked to work around hardware problems..