Serial Port driver registry settings.
- From: Imti <imtiazkhank@xxxxxxxxx>
- Date: 26 Apr 2007 06:48:21 -0700
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.
.
- Follow-Ups:
- Re: Serial Port driver registry settings.
- From: Paul G. Tobey [eMVP]
- Re: Serial Port driver registry settings.
- Prev by Date: Re: Google groups not working?
- Next by Date: Re: WinCE 5.0 USB connection issues
- Previous by thread: -OemInit
- Next by thread: Re: Serial Port driver registry settings.
- Index(es):
Relevant Pages
|