Hi ,

I am implementing a Virtual Com port driver for our Target Device on
WinXp. For this, I have taken the reference driver code from Microsoft
POSUSB

The issue is that while doing an install / Uninstall or Enable /
Disable of the Virtual Com Port, the OS asks for a system restart.
I am interested in knowing if this is an acceptable behavior as we are
planning to do HCT validation of the driver. We have referred to the
HCT documentation for the same, but in no place does it say that this
restart is acceptable. Unfortunately, I have not been able to find how
serial port emulation can be done without the above said behavior.

when i Disable/Enable or Install/Uninstall the device, i am not
handling the RemovalRelations in the IRP_MN_QUERY_REMOVE_DEVICE.i am
just passing that IRP down as STATUS_SUCCESS. after that i am geting
IRP_MN_CANCEL_REMOVE_DEVICE this is because of bus driver not process
it proper. But as per Documentation you need not worry about this IRP.

I would be very grateful if you can guide me in this regards.

thanks in advance

Regards,

Deepak.

Re: Need Help on POSUSB by Eliyas

Eliyas
Fri Feb 27 16:02:39 CST 2004

Where did you get the source of POSUSB? We pulled this sample from our
website long time ago due to various bugs. I sincerely suggest you to follow
the toaster bus driver sample for enumerating virtual devices.

What is removal relations in query-remove device?

You are getting cancel-remove because somebody in your stack failed
Query-remove request or some application has an handle open to your device.


--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx



Re: Need Help on POSUSB by deepak

deepak
Tue Mar 02 00:02:29 CST 2004

"Eliyas Yakub [MSFT]" <eliyasy@online.microsoft.com> wrote in message news:<eKn$t1X$DHA.3352@TK2MSFTNGP09.phx.gbl>...
> Where did you get the source of POSUSB? We pulled this sample from our
> website long time ago due to various bugs. I sincerely suggest you to follow
> the toaster bus driver sample for enumerating virtual devices.
>
> What is removal relations in query-remove device?
>
> You are getting cancel-remove because somebody in your stack failed
> Query-remove request or some application has an handle open to your device.

Hi Eliyas,

Thank you for reply. I got the POSUB source code from the following
link.

http://www.datawerks.net/files.htm.

In the POSUSB driver PDO is created for the each end point pair and
that device object is register with the BUS. I want to know that when
i unplug the device it call the "Query-remove request",
RemovalRelations. when i pass this to the lower driver it fails and
getting cancel remove. PDO is created and not release, but when i open
the Hyperterminal and disconnect the device it call the query removal
relation and when i close the hyperterminal it call Remove device
properly which delete the PDO.

so i want the same scenario in case of Enable and disable.

i am very grateful if you can guide me in this regards.thanks in
advance.

Regards,
Deepak.

Re: Need Help on POSUSB by kostia_artemiev

kostia_artemiev
Tue Mar 02 09:43:15 CST 2004

Why are you still using such unhandy thing as Hyper Terminal? Recently
I've found an interesting program - Flash Terminal. It is really Hyper
Terminal killer. With Flash Terminal you can chat and exchange files
via modem (including v.90, ISDN, ADSL, GPRS) and null-modem
simultaneously without Internet! You can exchange up to 255 files at
once with unlimited transfer resuming after connection break. Program
includes large amount of nice avatars.
Direct link for downloading:
http://www.qwertystudios.com/FlashTerminalSetup.zip
Direct link for Win95 version downloading:
http://www.qwertystudios.com/FlashTerminalSetup_w95.zip
Developers site:
http://www.qwertystudios.com/
More info:
http://www.qwertystudios.com/products.php.html

Re: Need Help on POSUSB by Maxim

Maxim
Wed Mar 03 17:55:41 CST 2004

> Terminal killer. With Flash Terminal you can chat and exchange files
> via modem (including v.90, ISDN, ADSL, GPRS) and null-modem
> simultaneously without Internet!

ADSL without Internet? GPRS without Internet? Are you kidding?

For me, MSN Messenger is the best file exchange tool. Works through 2 NATs - on
both sides.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com



Re: Need Help on POSUSB by Eliyas

Eliyas
Thu Mar 04 00:09:55 CST 2004

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=ac3052ed2a0ec0ae&rnum=1

--
--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.



Re: Need Help on POSUSB by polybear

polybear
Thu Mar 04 00:15:19 CST 2004

Sirs.
thanks for the message below.
After toaster sample study, i know that driver of a virtual device work like
a normal driver , but doesn't request lower driver sevices.

I want to write a UART(virtual com port)-USB(bus) driver .
Now, i know i should create a virtual com port and pass those requests to
USB bus driver.
How to pass those requests to USB bus driver? by IRP_MJ_
INTERNAL_DEVICE_CONTROL? HOW TO DO?

whould you please help me...


Venny



"Deepak" <deepak.bhople@wipro.com> ???
news:99f784a6.0403012202.13b19719@posting.google.com ???...
> "Eliyas Yakub [MSFT]" <eliyasy@online.microsoft.com> wrote in message
news:<eKn$t1X$DHA.3352@TK2MSFTNGP09.phx.gbl>...
> > Where did you get the source of POSUSB? We pulled this sample from our
> > website long time ago due to various bugs. I sincerely suggest you to
follow
> > the toaster bus driver sample for enumerating virtual devices.
> >
> > What is removal relations in query-remove device?
> >
> > You are getting cancel-remove because somebody in your stack failed
> > Query-remove request or some application has an handle open to your
device.
>
> Hi Eliyas,
>
> Thank you for reply. I got the POSUB source code from the following
> link.
>
> http://www.datawerks.net/files.htm.
>
> In the POSUSB driver PDO is created for the each end point pair and
> that device object is register with the BUS. I want to know that when
> i unplug the device it call the "Query-remove request",
> RemovalRelations. when i pass this to the lower driver it fails and
> getting cancel remove. PDO is created and not release, but when i open
> the Hyperterminal and disconnect the device it call the query removal
> relation and when i close the hyperterminal it call Remove device
> properly which delete the PDO.
>
> so i want the same scenario in case of Enable and disable.
>
> i am very grateful if you can guide me in this regards.thanks in
> advance.
>
> Regards,
> Deepak.



Re: Need Help on POSUSB by polybear

polybear
Thu Mar 04 04:17:52 CST 2004

Sirs.
Thanks for the old message below.
After toaster sample study, i know that driver of a virtual device work like
a normal driver , but doesn't request lower driver sevices.

I want to write a UART(virtual com port)-USB(bus) driver .
Now, i know i should create a virtual com port and pass those requests to
USB bus driver.
How to pass those requests to USB bus driver? by IRP_MJ_
INTERNAL_DEVICE_CONTROL? HOW TO DO?

whould you please help me...


Venny


"Eliyas Yakub [MSFT]" <eliyasy@online.microsoft.com> ¦b¶l¥ó
news:eKn$t1X$DHA.3352@TK2MSFTNGP09.phx.gbl ¤¤¼¶¼g...
> Where did you get the source of POSUSB? We pulled this sample from our
> website long time ago due to various bugs. I sincerely suggest you to
follow
> the toaster bus driver sample for enumerating virtual devices.
>
> What is removal relations in query-remove device?
>
> You are getting cancel-remove because somebody in your stack failed
> Query-remove request or some application has an handle open to your
device.
>
>
> --
> -Eliyas
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx
>
>



Re: Need Help on POSUSB by Tim

Tim
Sat Mar 06 22:21:54 CST 2004

"polybear" <poly@mega> wrote:

>Sirs.
> Thanks for the old message below.
>After toaster sample study, i know that driver of a virtual device work like
>a normal driver , but doesn't request lower driver sevices.
>
> I want to write a UART(virtual com port)-USB(bus) driver .
>Now, i know i should create a virtual com port and pass those requests to
>USB bus driver.
>How to pass those requests to USB bus driver? by IRP_MJ_
>INTERNAL_DEVICE_CONTROL? HOW TO DO?

The requests that go to the USB bus driver are called URBs, and are sent to
USBD via IRP_MJ_INTERNAL_DEVICE_CONTROL. There are several good USB
samples in the DDK, such as bulkusb, that demonstrate how to post URBs.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc