CE5 max COM numbers RRS feed

  • Question

  • Hi,

    I'm working on a driver for multiport serial adapter that has 16 COM ports. I find that CE5 does not support more than 9 ports (COM9). Is there any workaround for this? Or am I missing something?


    Wednesday, January 12, 2011 10:54 PM

All replies

  • A possible way is to use driver prefix other than "COM". e.g. having "SER" prefix and you get another 10 ports.
    Thursday, January 13, 2011 12:36 AM
  • Thursday, January 13, 2011 4:32 AM
  • Starting from WinCE 5.0, is introduced the Device Based namespace to address a driver (before WinCE 5 only Legacy namespace exists). With Legacy namespace you can address a driver with XXX[0-9]: (es. COM8:) with the limit to max 10 instances. With Device Based namespace you can address a driver with \$device\XXX[index] where index can be greater then 9 (es. \$device\COM13).



    Thursday, January 13, 2011 6:58 AM
  • Also see this blog
    Thursday, January 13, 2011 7:34 AM
  • Use different driver prefix for index greater than 9


    eg COM[0-9]


    and so on.





    Hope this will help




    • Proposed as answer by Misbah Khan Thursday, January 13, 2011 12:01 PM
    Thursday, January 13, 2011 9:28 AM
  • Misbah:

    The problem with proposing your own reply as an answer is that yours is not a good answer. 

    For one thing, you don't mention that to change the prefix in the registry would require some code work in the driver.  For another, it would make application code more difficult and confusing.  And lastly, there is a much better way - as mentioned in almost all of the other replys.

    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG

    Eurotech Inc.
    Thursday, January 13, 2011 1:32 PM
  • Thanks all for taking time to offer suggestions. I find the best solution is as following as suggested by some

    Thursday, January 13, 2011 6:23 PM