Serial Port driver registry settings.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

I'm using WinCE 5.0 and BSP is ARM.

Serial Driver : COM_MDD2.

We have two COM ports, one for debug (COM2) on target and one for
download and transport (COM1).

We have created two registry for two COM ports i.e.

(Contents of Serial1.reg for COM1)

; COM1 support on cable labeled "COM1"
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial]
"Prefix"="COM" ; Provides the "COM" of
"COM1"
"Dll"="OMAP5910UART.Dll"
"Order"=dword:0
"Index"=dword:1 ; Provides the '1' of "COM1"
"DeviceArrayIndex"=dword:0 ; Device index for
"HWObjects"

(Contents of Serial2.reg for COM2)

; COM1 support on cable labeled "COM2"
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial]
"Prefix"="COM" ; Provides the "COM" of
"COM2"
"Dll"="OMAP5910UART.dll"
"Order"=dword:0
"Index"=dword:2 ; Provides the '2' of "COM2"
"DeviceArrayIndex"=dword:1 ; Device index for
"HWObjects"

these two registry entries are added in (Platform.reg)

#include "$(_TARGETPLATROOT)\src\drivers\SERIAL\driver\Serial1.reg"
#include "$(_TARGETPLATROOT)\src\drivers\SERIAL\driver\Serial2.reg"

and the dll information are added in (Platform.bib)

OMAP5910UART.dll $(_FLATRELEASEDIR)\OMAP5910UART.dll NK SH

when we try to open port COM2, we are able to open the port and
perform read/write operations.

But when we try to open port COM1, we are unable to open the port.

When we say open COM1 through CreateFile( );

it is not reading the registry or reading wrong registry entries...
(COM_INIT or COM_OPEN are not called in COM_MDD2 Library Driver)..

But If I remove serial2.reg entry from platform.reg, then I am able to
open COM1 port and perform
read/write operations (junk charcters getting displayed, I have
checked baud rate its correct but still).

Are the above registry settings correct to share one dll for two COM
ports.


Thanks in Advance..

With regards,

Imtiaz Khan.K.

.



Relevant Pages

  • Re: Do I need to build a new platform (creat new nk.bin)
    ... but not via the port you're connected to. ... happens" problem is that you've assumed that the port marked COM1 on your ... To enable both COM1 and COM2, you need to include the components ... Version of the BSP in use ...
    (microsoft.public.windowsce.platbuilder)
  • Re: serial port interfaced EEPROM reader no longer detected after temporary removal
    ... I wonder if the original instance of COM1 got set to be COM2? ... In the advanced options I looked at the possibility to rename the port, and noticed that COM2 has behind it, but as far as I know I don't have COM2 on my system. ... The manufacturer of the EEPROM reader tells me that the software scans for available serial ports and you can set one that is available. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Do I need to build a new platform (creat new nk.bin)
    ... but not via the port you're connected to. ... happens" problem is that you've assumed that the port marked COM1 on your CE ... To enable both COM1 and COM2, you need to include the components to support ... Version of the BSP in use ...
    (microsoft.public.windowsce.platbuilder)
  • Re: serial port interfaced EEPROM reader no longer detected after temporary removal
    ... But the craziest thing is that nowhere do I see COM2 except in the rename option for COM1. ... In the advanced options I looked at the possibility to rename the port, and noticed that COM2 has behind it, but as far as I know I don't have COM2 on my system. ... The manufacturer of the EEPROM reader tells me that the software scans for available serial ports and you can set one that is available. ...
    (microsoft.public.windowsxp.hardware)
  • Re: COM port - unable to open COM1 when ActiveSync is running
    ... Could you try removing the "SerialPort" entry from the registry under the ... Note that this key will be restored if you select the COM port ... >> Saved the settings and rebooted my PC - it still holds COM1. ... >> - Tony Sutton ...
    (microsoft.public.pocketpc.activesync)