Dimitar Stoyanov wrote:
> 
> My program has to listen for data at the serial port for a long time - I
> don't know when the receiving data will come - it can be in a second but it
> can be in an hour. And if the port is opened for the whole time the
> batteries will gone very fast :(.
> 
> So, my question is: Is there a way which does not spend so much power when
> listening for data at the serial port? -  Just like Beam function on the
> Palm - the Palm is always ready for getting data via IR port and obviously
> it does not consume much energy.

I think you can set up a callback function on receiving serial I/O using
SerSetWakeupHandler.  Unfortunately, I seem to recall that this is a
system use only function, and you must first open the port, which is the
major source of power consumption.  Check the 'docs for additional
details.

Paul . . .

-- 
 ___________________________________________________________________
  dpw Designs                    http://www.pe.net/firm/dpw-designs
                                 mailto:[EMAIL PROTECTED]

Reply via email to