I am writing an application that monitors Serial Data from multiple ports
simultaneously. I originally wrote the program using the MSComm control and
it works wonderfully. However, I have a Digi EPC/X Controller with 2 16
Port Concentrators on it and much to my dismay learned that MSComm will only
address 16 Serial Ports. Anything above Com16 you are out of luck.
so I resorted to the old API method and found some excellent references. I
have written a sample app that does the same thing my previous app did using
API calls; specifically CreateFile, ReadFile, and WriteFile API's. These
work great up to COM8 and from COM9 on I get a big ugly error, if I step
through the program, the problem is with the CreateFile function. It can't
open the file (PORT). Thus it returns an invalid handle and my operation is
dead in it's tracks.
I cannot find any reference to Port Name limitations on MSDN in reference to
the CreateFile call, Any help would be appreciated.
P.S. All ports are defined and operational in the system. Hyperterminal
can open and use all of the defined ports all the way through COM36. MSComm
can open and use the ports all the way through COM16.
I would consider using API calls or a control, but I am going to lean
towards API calls since I already have the code written to handle all of the
data parsing from the serial ports.