Re: COM port goes to sleep and doesn't wake up

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

From: Chris Tacke, eMVP (ctacke_at_spamfree-opennetcf.org)
Date: 11/24/04


Date: Wed, 24 Nov 2004 12:55:29 -0500

This is actually not unusual. The handle is still valid, but when the
processor went to sleep the UART was reset. The OEM didn't reinitialize the
UART on wake. Often simply resetting the DCB settings on wake for the port
will cause your reads to start working again.

-- 
<ctacke/>
www.OpenNETCF.org
Your CF searches start and end here
"Mike Scott" <mike@nospam.com> wrote in message 
news:OfmJZhj0EHA.3120@TK2MSFTNGP12.phx.gbl...
> I've got an app that reads data from the COM port on a PocketPC 2003 
> device. When the device goes to sleep (either by inactivity timeout or by 
> pressing the on/off button) and is then woken up by pressing the on/off 
> button, the COM port stays asleep and doesn't receive any more data.
>
> The file handle remains open but all calls to Win32's ReadFile return zero 
> bytes.
>
> If I close the file handle and open another one to the COM port, 
> everything works again.
>
> Is there some way to "kick" the COM port back into life after the device 
> goes into sleep mode?
>
> Cheers,
>
> MikeS.
> 


Relevant Pages

  • COM port goes to sleep and doesnt wake up
    ... I've got an app that reads data from the COM port on a PocketPC 2003 device. ... When the device goes to sleep (either by inactivity timeout or by pressing ...
    (microsoft.public.dotnet.framework.compactframework)
  • [PATCH 61/67] hsu: driver for Medfield High Speed UART device
    ... This is a PCI & UART driver, which suppors both PIO and DMA mode ... UART operation. ... modem connected to HSU port 0. ...
    (Linux-Kernel)
  • [PATCH 61/68] hsu: driver for Medfield High Speed UART device
    ... This is a PCI & UART driver, which suppors both PIO and DMA mode ... UART operation. ... modem connected to HSU port 0. ...
    (Linux-Kernel)
  • RE: Using 16550 UART FIFO in polled mode (CE5.0)
    ... port driver uses the 14 level, and does not even get an interrupt from the ... UART until there are 14 bytes in the FIFO. ... since the Microsoft serial port driver is obviously ... I have code of my own that tries to detect "gaps" in communication to ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Serial Kitl on pXA255
    ... to send and receive some data according to KITL protocol. ... > port in OEMInitSerial. ... > fRet = InitSerial; ... > // This UART initialization needs to be tested... ...
    (microsoft.public.windowsce.platbuilder)