none
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?

    Thanks.

    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).

    Regards,

    Paolo

    Thursday, January 13, 2011 6:58 AM
  • Also see this blog http://vinoth-vinothblog.blogspot.com/2009/09/how-to-open-windows-ce-stream-device.html
    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    Thursday, January 13, 2011 7:34 AM
  • Use different driver prefix for index greater than 9

     

    eg COM[0-9]

    SER[0-9]

    and so on.

    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial2]
        "Prefix"="SER"
        "Dll"="uart.dll"
        "Index"=dword:2

     

    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\comm]
        "Prefix"="COM"
        "Dll"="uart.dll"
        "Index"=dword:1

     

    Hope this will help

     

    Regards,

    Misbah

    • 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 http://geekswithblogs.net/bruceeitman

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

    http://geekswithblogs.net/BruceEitman/archive/2008/06/23/windows-ce-device-driver-index-greater-than-9.aspx

    Thursday, January 13, 2011 6:23 PM