Re: 2 USB questions

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Mike (Mike_at_discussions.microsoft.com)
Date: 11/04/04


Date: Thu, 4 Nov 2004 04:54:05 -0800

In my language monitor I poll the printer while it doesn't have a job to
print so we can see the status of the printer. It works very well for
printers on COM and LPT but for USB I can't tell which printer I'm polling.
I tried using the functions WritePort, ReadPort in the language monitor, but
when there are no jobs to print, the ports are closed. So I wrote special
functions to talk directly to the printer. I have separate functions for
LPT, COM and USB since the communication works differently on each. The USB
functions worked fine until I tried it with a Hub, then I realized that it
was just luck that I was polling the right printer. I was relying on the
DevicePath string that I got with the SetupDi functions.

"Doron Holan [MS]" wrote:

> you tell which is which only if the device supports serial numbers. why do
> you want to determine which port it is attached to? USB001 etc etc are only
> generated for usb printers (that is a port monitor symbolic name)
>
> 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.
>
>
> "Mike" <Mike@discussions.microsoft.com> wrote in message
> news:8CCA300F-7710-4FF4-8B48-662EA78347E4@microsoft.com...
> > How can I determine which port my device is attached to (USB001,
> > USB002,,)?
> > and I have two or more identical devices attached to a host. How can I
> > tell
> > which is which?
> > --
> > Mike
>
>
>



Relevant Pages

  • Re: How can I use DeviceIOContorol() to disable port of USB?
    ... Please do not send e-mail directly to this alias. ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Could you please tell me that is there have anyother way to disable a port ... of USB? ...
    (microsoft.public.development.device.drivers)
  • IBM docking stations second USB port inop
    ... but under FC1 only the lower port is functional. ... alias usb-controller usb-uhci ... The ThinkPad itself has only one USB 1.1 port in back, ... The docking station has two ...
    (Fedora)
  • Re: How can I use DeviceIOContorol() to disable port of USB?
    ... Please do not send e-mail directly to this alias. ... > Could you please tell me that is there have anyother way to disable a port ... >> these are not suported by the usb core. ... >> newsgroup purposes only. ...
    (microsoft.public.development.device.drivers)
  • Re: How can I use DeviceIOContorol() to disable port of USB?
    ... Could you please tell me that is there have anyother way to disable a port ... > these are not suported by the usb core. ... > Please do not send e-mail directly to this alias. ...
    (microsoft.public.development.device.drivers)
  • Re: HOWTO prevent COM# from "climbing up" (usbser.sys)
    ... there is no feasible way to keep the com port ... Please do not send e-mail directly to this alias. ... > It is a USB device, but has no serial number. ... >> your previous COM port related questions had to do with a usb serial ...
    (microsoft.public.development.device.drivers)