Re: Implementing Multi-Interface USB Device Driver

From: NagarajuS (snraj_2002_at_yahoo.com)
Date: 06/15/04


Date: Mon, 14 Jun 2004 19:30:01 -0700

Dear Mr.Doron Holan,

I would like to give you more information. We had already developed bluetooth stack excetp USB. Now, only we need to develop USB driver.

I heard USB driver is common, only we need to develop the driver with the above Interface information. Is it correct?

I have found some usb information in USB-IF site.,

http://www.usb.org/developers/whitepapers/irp_mn.pdf

http://www.usb.org/developers/whitepapers/wdm_pm11.pdf

Here they have used SelectInterface function:

NTSTATUS
SelectInterface(
PDEVICE_OBJECT DeviceObject,
UCHAR ucInterfaceNumber,
UCHAR ucAltSetting
)

And the Msg:

When configuring a device, the default settings should be set. Once an alternate setting is desired, first terminate all transactions on endpoints that correspond to that changing interface alternate setting.

But if we see the entire code., they havent called anywhere this function. Just they declared and defined the function.

Could you plz give tell me whether my understood is correct?

-- 
Thanks & Regards,
NagarajuS
"Doron Holan [MS]" wrote:
> you use the select interface URB.  you would first select the configuration
> and then when you need more isoch bandwidth, you select the interface that
> you need to match.  in the bluetooth world, that would be during a SCO
> connection.  Also, speaking from personal experience, implementing an entire
> bluetooth stack (HCI, L2CAP, SDP, RFCOMM just to start) takes many many man
> months and is not to be underestimated.
> 
> 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.
> 
> 
> "NagarajuS" <snraj_2002@yahoo.com> wrote in message
> news:239BCE05-EFAD-4B16-82CD-A37326727535@microsoft.com...
> > Thank you very much for your information.
> >
> >
> > Some Issues:
> >
> > When we configure the device, the default settings will be set.
> > How to switch Second Interface & Alternate Interface.
> >
> > I know we have to write function for selectInterface with the parameters.
> >
> >
> > The fun:
> >
> > SelectInterface(
> > PDEVICE_OBJECT DeviceObject,
> > UCHAR ucInterfaceNumber,
> > UCHAR ucAltSetting
> > )
> >
> > But i dont know where should this function perform.
> >
> > When pnpDispatch funtion call IRP_MN_START_DEVICE;
> >
> > It will select, Start Device--> SelectConfiguration-->Default Interface
> Setting.
> >
> > The above informatin i found in wdm/src/usb sample code.
> >
> > Could you plz give me some information.
> >
> >
> >
> >
> > -- 
> > Thanks & Regards,
> > NagarajuS
> >
> >
> > "Doron Holan [MS]" wrote:
> >
> > > the only time you will need an IAD for your bluetooth radio is if you
> decide
> > > to put another interface on the device. If you feel you must add another
> > > interface, a solution with using IAD is to embed a hub into the product
> and
> > > expose the bluetooth radio behind one hub port and the other interface
> > > behind another hub port.
> > >
> > > 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.
> > >
> > >
> > > "Leo Havmøller" <leh@nospamrtx.dk> wrote in message
> > > news:%23bN0XjhUEHA.2724@TK2MSFTNGP11.phx.gbl...
> > > > > Class ID       : 0xE0
> > > > > Sub Class ID : 0x01
> > > > > Protocol ID   : 0x01
> > > >
> > > > Standard Bluetooth device. No need for IAD.
> > > >
> > > > Leo Havmøller.
> > > >
> > > >
> > >
> > >
> > >
> 
> 
> 


Relevant Pages

  • Re: Implementing Multi-Interface USB Device Driver
    ... you use the select interface URB. ... in the bluetooth world, that would be during a SCO ... Please do not send e-mail directly to this alias. ... >> behind another hub port. ...
    (microsoft.public.development.device.drivers)
  • Re: Bluetooth connectivity problems, using Microsoft API
    ... we are currently in the process of developing a bluetooth interface ... In the process of testing and understanding the bluetooth technology ... I have no chance to find out if I can reconnect to the ... there's a significant chance of the virtual COM-port ...
    (microsoft.public.win32.programmer.networks)
  • Bluetooth development chips
    ... USB adaptor). ... disposal which will provide me with a serial - bluetooth interface? ... Since I plan to interface the chip with a microcontroller, ... So which chips would allow me a bluetooth - I2C or SPI or Serial or USB ...
    (comp.arch.embedded)
  • Re: Bluetooth connectivity problems, using Microsoft API
    ... we are currently in the process of developing a bluetooth interface ... In the process of testing and understanding the bluetooth technology ... I have no chance to find out if I can reconnect to the ... there's a significant chance of the virtual COM-port ...
    (microsoft.public.win32.programmer.networks)
  • Bluetooth connectivity problems, using Microsoft API
    ... we are currently in the process of developing a bluetooth interface ... In the process of testing and understanding the bluetooth technology ... I have no chance to find out if I can reconnect to the ... there's a significant chance of the virtual COM-port ...
    (microsoft.public.win32.programmer.networks)