As of June 15, 2022, this site no longer supports Internet Explorer. Please use another browser for the best experience on our site.

Product Support

Product FAQs

QUESTION

When I use application programs to control serial ports, I am able to open ports COM1 to COM9, but cannot open ports COM10 and higher. What could be the reason?

The application programs are developed using Win32 SDK and Borland C++ Builder/ Visual C++.

SOLUTION

The convention for addressing COM ports in serial-port programming using Win32 APIs is \\.\COMx, where x is port number. For example, COM10 is represented using \\.\COM10. This convention should be followed to be able to open and close COM ports.
Visual C++:
Use the format \\\\.\\COMx to address a COM port in application programs that use Visual C++ and Win32 APIs. For example, COM10 is referred to as \\\\.\\COM10.
Borland C++ Builder:
Use the format \\.\COMx to address a COM port in application programs that use Borland C++ and Win32 APIs. For example, COM10 is referred to as \\.\COM10.
 

Relevant Products

CP-102E/102EL Series · CP-114EL Series · CP-116E-A · CP-168EL-A · NPort 5100 Series · NPort 5100A Series · NPort 5200 Series · NPort 5200A Series · NPort 5400 Series · NPort 5600 Series ·

Was this useful?
Rate this article
Thanks for rating our content. Any comments or suggestions?
 
Thanks for your feedback!
  •   Print this page
  • You can manage and share your saved list in My Moxa
Contact Moxa Support

Still need assistance with your Moxa product? Get help and save time by initiating an online support request and we will connect you to an expert.

CONTACT US
Added To Bag
You have some items waiting in your bag; click here to finish your quote!
Feedback