Hi ,
we have an end to end linux device driver for 4G dongle.
The driver work in the following way.
it sends incoming packet from network stack to USB driver.
in the USB driver it collect the incoming packets and send it to network
stack.
We need to build the same driver for Windows,can someone suggest how to
design this for windows.
I have worked in file system filter drivers, windows filtering platform.
I want to understand the functionality of windows protocol driver, NDIS
miniport driver
can someone please explain where i have to collect the incoming USB packets
and send to network stack and vice-versa.
Thanks & Regards,
Ravish
Last I checked the WDK has a fully working sample of a WiFi driver over USB.
As far as understanding the functionality of the various drivers in the
Windows network stack, you would be well served to just read the MSDN
documentation for the WDK. In particular the Network section ?Design
Guide? is very good.
Good Luck,
Dave Cattley
Hi Dave,
Thanks for replying , I saw in DDK there is a sample NDIS-WDM ,An NDIS-WDM
that exposes NDIS miniport interface at its upper edge and uses IRPs to
interact with other WDM drivers such as USB.
is this the one you are suggesting?
According to this sample if register this NDIS driver with hardware id of
my USB modem, PNP manager will automatically pickup this miniport as the
driver for the USB device and then i have to build the URB’s and send it to
the USB.
also is it always necessary that one has to write the protocol driver
over miniport
driver. For my case only one miniport driver will not be enough? This might
be silly question but as it is coming in my mind i am asking.
Regards,
Ravish
On Sat, Nov 30, 2013 at 10:35 AM, Dave Cattley wrote:
> Last I checked the WDK has a fully working sample of a WiFi driver over
> USB.
>
>
>
> As far as understanding the functionality of the various drivers in the
> Windows network stack, you would be well served to just read the MSDN
> documentation for the WDK. In particular the Network section ?Design
> Guide? is very good.
>
>
>
> Good Luck,
>
> Dave Cattley
>
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> also is it always necessary that one has to write the protocol driver over miniport driver.
For my case only one miniport driver will not be enough? This might be silly question but
as it is coming in my mind i am asking.
You are confused…
You don’t need a protocol driver here.What you need is a layered miniport one, i.e the one that
deals with a driver for USB device on its lower edge and with NDIS on its upper one. This driver does not directly deal with NIC hardware details, so that it is, in actuality, a virtual one. In addition to that, you also need an actual driver for USB device that deals with your device’s specific details. On its upper edge, this driver talks only to your layered miniport one - it has no idea of NDIS whatsoever…
Anton Bassov
> is this the one you are suggesting?
The sample name is USBNWIFI and you can find it in the Windows 7 WDK.
You might want to start with the sample NETVMINI to understand basic
Miniport structure and then perhaps NDISWDM to understand how a miniport
changes slightly to be layered over some other bus protocol. But you want
to follow USBNWIFI for how it layers specifically over USB and uses KMDF to
do this. Of course you need to chop away all of the WiFi-isms as they are
not relevant to a WWAN driver. Then you need to add in the WWAN specific
logic.
Good Luck,
Dave Cattley
Thanks Dave/Anton Bassov for help,
I am going through all these sample will required more help.
Regards,
Ravish
On Sun, Dec 1, 2013 at 4:39 AM, Dave Cattley wrote:
> > is this the one you are suggesting?
>
>
>
> The sample name is USBNWIFI and you can find it in the Windows 7 WDK.
>
> You might want to start with the sample NETVMINI to understand basic
> Miniport structure and then perhaps NDISWDM to understand how a miniport
> changes slightly to be layered over some other bus protocol. But you want
> to follow USBNWIFI for how it layers specifically over USB and uses KMDF to
> do this. Of course you need to chop away all of the WiFi-isms as they are
> not relevant to a WWAN driver. Then you need to add in the WWAN specific
> logic.
>
>
>
> Good Luck,
>
> Dave Cattley
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>