I am attempting to interface to a piece of equipment which
provides serial port emulation via its driver for USB. When it
is plugged into different USB ports, it appears at different
com port addresses - i.e. COM8: or COM12: (on my machine).
I have two specific quistions:
1) How do I open a COM port greater than COM9:? When I try to use the
recommended procedure (open as a file), it fails if the COM port number
is greater than 9.
2) How do I find which COM port number the device is connected to?
It manifests as a modem, and has a specific device name which I can
see in Hardware Manager. If I examine the advanced port properties,
I can see which COM port number it has assigned. I need to find the
device by name (or see if it's not there). How do I do this?
I am using Visual Studio 2005 and writing in ANSI C.
Thanks,
--
Al Jewer
Alcomp, Inc