I am using PB 4.2 and pxa255 board.

When I am trying to load 'bthuart.dll' but it is giving error while reading
on COM2.

"4294793688 PID:83c7c61e TID:839f4b8e Error reading COM port: GetLastError =
0x00000006 (6)"


The registry entry for serial is:
-----------------------------------
HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial1]
"Dll"="xsc1bd_serial.Dll"
"IoBase"=dword:a6400000 ;BTUART_BASE_U_VIRTUAL
"Irq"=dword:0 ;22 - Dummy value. This subkey is not really used by the
driver.
"Tsp"="Unimodem.dll"
"IoLen"=dword:24
"DeviceArrayIndex"=dword:2
"Prefix"="COM"
"Index"=dword:3
"Order"=dword:0
;"Priority256"=dword:67 ; Using default priority value
"DeviceType"=dword:0
"FriendlyName"=LOC_FRIENDLYNAME_SERIAL2
; Eliminate flow control bit
"DevConfig"=hex:
10,00,00,00,05,00,00,00,10,01,00,00,00,4B,00,00,00,00,08,00,00,00,00,00,00
"Is485"=dword:1
"RTSDelay"=dword:500

Can anyone tell me wat should i do???

Re: Error while reading COM2 by Paul

Paul
Wed Sep 27 14:29:36 CDT 2006

Well, look up error 6 first. It's "The handle is invalid." according to the
eVC Error Lookup tool. At a guess, I'd say that there isn't a serial port,
COMn:, corresponding to whatever you're telling bthuart.dll to use (or
something along those lines). Verify, first of all, that in
HKLM/Drivers/Active, you see the serial port name that you're trying to use.
It would be worthwhile to look back through the serial debug messages, too,
as it seems unlikely to me that the error code given there would be the
first indication of a problem.

Paul T.

"Omkar Singh" <OmkarSingh@discussions.microsoft.com> wrote in message
news:18F44428-6EE2-4C42-90AB-598B1D74050A@microsoft.com...
>I am using PB 4.2 and pxa255 board.
>
> When I am trying to load 'bthuart.dll' but it is giving error while
> reading
> on COM2.
>
> "4294793688 PID:83c7c61e TID:839f4b8e Error reading COM port: GetLastError
> =
> 0x00000006 (6)"
>
>
> The registry entry for serial is:
> -----------------------------------
> HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial1]
> "Dll"="xsc1bd_serial.Dll"
> "IoBase"=dword:a6400000 ;BTUART_BASE_U_VIRTUAL
> "Irq"=dword:0 ;22 - Dummy value. This subkey is not really used by the
> driver.
> "Tsp"="Unimodem.dll"
> "IoLen"=dword:24
> "DeviceArrayIndex"=dword:2
> "Prefix"="COM"
> "Index"=dword:3
> "Order"=dword:0
> ;"Priority256"=dword:67 ; Using default priority value
> "DeviceType"=dword:0
> "FriendlyName"=LOC_FRIENDLYNAME_SERIAL2
> ; Eliminate flow control bit
> "DevConfig"=hex:
> 10,00,00,00,05,00,00,00,10,01,00,00,00,4B,00,00,00,00,08,00,00,00,00,00,00
> "Is485"=dword:1
> "RTSDelay"=dword:500
>
> Can anyone tell me wat should i do???



Re: Error while reading COM2 by OmkarSingh

OmkarSingh
Wed Sep 27 15:17:01 CDT 2006

There is entry for COM2 in HKLM/Drivers/Active.
Moreover the same setting works fine in PB 5.0.


"Paul G. Tobey [eMVP]" wrote:

> Well, look up error 6 first. It's "The handle is invalid." according to the
> eVC Error Lookup tool. At a guess, I'd say that there isn't a serial port,
> COMn:, corresponding to whatever you're telling bthuart.dll to use (or
> something along those lines). Verify, first of all, that in
> HKLM/Drivers/Active, you see the serial port name that you're trying to use.
> It would be worthwhile to look back through the serial debug messages, too,
> as it seems unlikely to me that the error code given there would be the
> first indication of a problem.
>
> Paul T.
>
> "Omkar Singh" <OmkarSingh@discussions.microsoft.com> wrote in message
> news:18F44428-6EE2-4C42-90AB-598B1D74050A@microsoft.com...
> >I am using PB 4.2 and pxa255 board.
> >
> > When I am trying to load 'bthuart.dll' but it is giving error while
> > reading
> > on COM2.
> >
> > "4294793688 PID:83c7c61e TID:839f4b8e Error reading COM port: GetLastError
> > =
> > 0x00000006 (6)"
> >
> >
> > The registry entry for serial is:
> > -----------------------------------
> > HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial1]
> > "Dll"="xsc1bd_serial.Dll"
> > "IoBase"=dword:a6400000 ;BTUART_BASE_U_VIRTUAL
> > "Irq"=dword:0 ;22 - Dummy value. This subkey is not really used by the
> > driver.
> > "Tsp"="Unimodem.dll"
> > "IoLen"=dword:24
> > "DeviceArrayIndex"=dword:2
> > "Prefix"="COM"
> > "Index"=dword:3
> >