Hi there,

I need some help here.

Basically my PC has 6 USB ports (USB1, USB2, USB3, USB4, USB5 and USB6).

Just say I have 3 USB devices (Reader1, Reader2 and Reader3)

I would to create a program which can do this:-

a) Reader1 being plug into USB1, it will prompt me this message "Reader1 is
at USB1"

b) Reader2 being plug into USB6, it will prompt me this message "Reader2 is
at USB6"

c) Reader3 being plug into USB2, it will prompt me this message "Reader3 is
at USB2"

OR

is it there are no orders on detecting which reader at which port.

Example:

Reader1 plug into USB6, it will be show this message "Reader1 is at USB1"

While Reader1 is still at port USB1, I plug into Reader2 at USB5, it shows
me "Reader2 at USB2"

So which one?

Is there any examples in C++ or .net used to detect USB ports?

Any help, i am kind of confuse!

Cheers.

--
Yours truly,

Chua Wen Ching
Software Engineer
Iris Corporation Berhad
http://www.iris.com.my

RE: Detect USB types - help! by WillyP99

WillyP99
Wed Nov 10 08:47:04 CST 2004

Hi,

there is an example which you could use. In the DDK you can find usbview
which does what you are looking for.
If you have audio devices therer are some problems with figuring out which
audio interface belongs to which USB device.

Willy

"Chua Wen Ching" wrote:

> Hi there,
>
> I need some help here.
>
> Basically my PC has 6 USB ports (USB1, USB2, USB3, USB4, USB5 and USB6).
>
> Just say I have 3 USB devices (Reader1, Reader2 and Reader3)
>
> I would to create a program which can do this:-
>
> a) Reader1 being plug into USB1, it will prompt me this message "Reader1 is
> at USB1"
>
> b) Reader2 being plug into USB6, it will prompt me this message "Reader2 is
> at USB6"
>
> c) Reader3 being plug into USB2, it will prompt me this message "Reader3 is
> at USB2"
>
> OR
>
> is it there are no orders on detecting which reader at which port.
>
> Example:
>
> Reader1 plug into USB6, it will be show this message "Reader1 is at USB1"
>
> While Reader1 is still at port USB1, I plug into Reader2 at USB5, it shows
> me "Reader2 at USB2"
>
> So which one?
>
> Is there any examples in C++ or .net used to detect USB ports?
>
> Any help, i am kind of confuse!
>
> Cheers.
>
> --
> Yours truly,
>
> Chua Wen Ching
> Software Engineer
> Iris Corporation Berhad
> http://www.iris.com.my
>

Re: Detect USB types - help! by Doron

Doron
Wed Nov 10 10:02:10 CST 2004

if any of the Readers do not hav a serial number, there will be no way for
you to know it is the same Reader in a different USB port, esp if 1,2,&3 all
have the same VID & PID

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.


"Chua Wen Ching" <chua_wen_ching@nospam.hotmail.com> wrote in message
news:8E717B00-BA77-4AA3-8FDB-48A0AF6A5336@microsoft.com...
> Hi there,
>
> I need some help here.
>
> Basically my PC has 6 USB ports (USB1, USB2, USB3, USB4, USB5 and USB6).
>
> Just say I have 3 USB devices (Reader1, Reader2 and Reader3)
>
> I would to create a program which can do this:-
>
> a) Reader1 being plug into USB1, it will prompt me this message "Reader1
> is
> at USB1"
>
> b) Reader2 being plug into USB6, it will prompt me this message "Reader2
> is
> at USB6"
>
> c) Reader3 being plug into USB2, it will prompt me this message "Reader3
> is
> at USB2"
>
> OR
>
> is it there are no orders on detecting which reader at which port.
>
> Example:
>
> Reader1 plug into USB6, it will be show this message "Reader1 is at USB1"
>
> While Reader1 is still at port USB1, I plug into Reader2 at USB5, it shows
> me "Reader2 at USB2"
>
> So which one?
>
> Is there any examples in C++ or .net used to detect USB ports?
>
> Any help, i am kind of confuse!
>
> Cheers.
>
> --
> Yours truly,
>
> Chua Wen Ching
> Software Engineer
> Iris Corporation Berhad
> http://www.iris.com.my
>



Re: Detect USB types - help! by chua_wen_ching

chua_wen_ching
Sun Nov 14 18:16:08 CST 2004

Hi Doran,

Thanks a lot. I am not sure whether my company have DDK...

Cheers.

"Doron Holan [MS]" wrote:

> if any of the Readers do not hav a serial number, there will be no way for
> you to know it is the same Reader in a different USB port, esp if 1,2,&3 all
> have the same VID & PID
>
> 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.
>
>
> "Chua Wen Ching" <chua_wen_ching@nospam.hotmail.com> wrote in message
> news:8E717B00-BA77-4AA3-8FDB-48A0AF6A5336@microsoft.com...
> > Hi there,
> >
> > I need some help here.
> >
> > Basically my PC has 6 USB ports (USB1, USB2, USB3, USB4, USB5 and USB6).
> >
> > Just say I have 3 USB devices (Reader1, Reader2 and Reader3)
> >
> > I would to create a program which can do this:-
> >
> > a) Reader1 being plug into USB1, it will prompt me this message "Reader1
> > is
> > at USB1"
> >
> > b) Reader2 being plug into USB6, it will prompt me this message "Reader2
> > is
> > at USB6"
> >
> > c) Reader3 being plug into USB2, it will prompt me this message "Reader3
> > is
> > at USB2"
> >
> > OR
> >
> > is it there are no orders on detecting which reader at which port.
> >
> > Example:
> >
> > Reader1 plug into USB6, it will be show this message "Reader1 is at USB1"
> >
> > While Reader1 is still at port USB1, I plug into Reader2 at USB5, it shows
> > me "Reader2 at USB2"
> >
> > So which one?
> >
> > Is there any examples in C++ or .net used to detect USB ports?
> >
> > Any help, i am kind of confuse!
> >
> > Cheers.
> >
> > --
> > Yours truly,
> >
> > Chua Wen Ching
> > Software Engineer
> > Iris Corporation Berhad
> > http://www.iris.com.my
> >
>
>
>

RE: Detect USB types - help! by chua_wen_ching

chua_wen_ching
Sun Nov 14 18:22:03 CST 2004

Hi Willy,

Sorry for the late replies. I am having a long public holiday here in my
country. You mention about usbview right? I check google, and it seems to be
a utility? Does microsoft provide the source code for it?

If i am to use the usbview, do i need additional device? I saw some
hardware in google, on usb viewer trace device.. not sure what is it for?

I do not have the ddk and not too sure my company have it. Maybe they
have, probably different department.

My team is more to the sdk and utility team. We don't write drivers, those
r&d people are the one. I need to do something like usbview, for utilities
purpose. So i might not have the access to the ddk belongs to the r&d team in
my company.

Do you think you can send me the usbview utility with the source code to
my email please? chuawenching@nospam.Yahoo.com (ignore nospam).

I hope it is not illegal.

Thanks.

"WillyP99" wrote:

> Hi,
>
> there is an example which you could use. In the DDK you can find usbview
> which does what you are looking for.
> If you have audio devices therer are some problems with figuring out which
> audio interface belongs to which USB device.
>
> Willy
>
> "Chua Wen Ching" wrote:
>
> > Hi there,
> >
> > I need some help here.
> >
> > Basically my PC has 6 USB ports (USB1, USB2, USB3, USB4, USB5 and USB6).
> >
> > Just say I have 3 USB devices (Reader1, Reader2 and Reader3)
> >
> > I would to create a program which can do this:-
> >
> > a) Reader1 being plug into USB1, it will prompt me this message "Reader1 is
> > at USB1"
> >
> > b) Reader2 being plug into USB6, it will prompt me this message "Reader2 is
> > at USB6"
> >
> > c) Reader3 being plug into USB2, it will prompt me this message "Reader3 is
> > at USB2"
> >
> > OR
> >
> > is it there are no orders on detecting which reader at which port.
> >
> > Example:
> >
> > Reader1 plug into USB6, it will be show this message "Reader1 is at USB1"
> >
> > While Reader1 is still at port USB1, I plug into Reader2 at USB5, it shows
> > me "Reader2 at USB2"
> >
> > So which one?
> >
> > Is there any examples in C++ or .net used to detect USB ports?
> >
> > Any help, i am kind of confuse!
> >
> > Cheers.
> >
> > --
> > Yours truly,
> >
> > Chua Wen Ching
> > Software Engineer
> > Iris Corporation Berhad
> > http://www.iris.com.my
> >

Re: Detect USB types - help! by Don

Don
Sun Nov 14 18:33:31 CST 2004

Actually if he does he stealing software as are you. You are solicting
someone stealing source code from a Microsoft product anf giving it to you.
This is rather stupid cosidering that the DDK is free except for shipping
(around $15 in the US, and less elsewhere).


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

"Chua Wen Ching" <chua_wen_ching@nospam.hotmail.com> wrote in message
news:F4566327-21AF-40FE-B7F7-17DE6F879B64@microsoft.com...
> Hi Willy,
>
> Sorry for the late replies. I am having a long public holiday here in my
> country. You mention about usbview right? I check google, and it seems to
be
> a utility? Does microsoft provide the source code for it?
>
> If i am to use the usbview, do i need additional device? I saw some
> hardware in google, on usb viewer trace device.. not sure what is it for?
>
> I do not have the ddk and not too sure my company have it. Maybe they
> have, probably different department.
>
> My team is more to the sdk and utility team. We don't write drivers,
those
> r&d people are the one. I need to do something like usbview, for utilities
> purpose. So i might not have the access to the ddk belongs to the r&d team
in
> my company.
>
> Do you think you can send me the usbview utility with the source code to
> my email please? chuawenching@nospam.Yahoo.com (ignore nospam).
>
> I hope it is not illegal.
>
> Thanks.
>
> "WillyP99" wrote:
>
> > Hi,
> >
> > there is an example which you could use. In the DDK you can find usbview
> > which does what you are looking for.
> > If you have audio devices therer are some problems with figuring out
which
> > audio interface belongs to which USB device.
> >
> > Willy
> >
> > "Chua Wen Ching" wrote:
> >
> > > Hi there,
> > >
> > > I need some help here.
> > >
> > > Basically my PC has 6 USB ports (USB1, USB2, USB3, USB4, USB5 and
USB6).
> > >
> > > Just say I have 3 USB devices (Reader1, Reader2 and Reader3)
> > >
> > > I would to create a program which can do this:-
> > >
> > > a) Reader1 being plug into USB1, it will prompt me this message
"Reader1 is
> > > at USB1"
> > >
> > > b) Reader2 being plug into USB6, it will prompt me this message
"Reader2 is
> > > at USB6"
> > >
> > > c) Reader3 being plug into USB2, it will prompt me this message
"Reader3 is
> > > at USB2"
> > >
> > > OR
> > >
> > > is it there are no orders on detecting which reader at which port.
> > >
> > > Example:
> > >
> > > Reader1 plug into USB6, it will be show this message "Reader1 is at
USB1"
> > >
> > > While Reader1 is still at port USB1, I plug into Reader2 at USB5, it
shows
> > > me "Reader2 at USB2"
> > >
> > > So which one?
> > >
> > > Is there any examples in C++ or .net used to detect USB ports?
> > >
> > > Any help, i am kind of confuse!
> > >
> > > Cheers.
> > >
> > > --
> > > Yours truly,
> > >
> > > Chua Wen Ching
> > > Software Engineer
> > > Iris Corporation Berhad
> > > http://www.iris.com.my
> > >