[Elecraft] USB/Serial adapters and sleep mode on OS X
David Fleming
dflem at yahoo.com
Mon Sep 6 11:45:49 EDT 2010
This is precisely how I'm doing it, but with a plug-in. I have four callback events that give complete control of the sleep cycle.
Thanks, Chen.
David, W4SMT
--- On Sun, 9/5/10, Kok Chen <chen at mac.com> wrote:
> > But the Keyspan and FTDI adapters get very grumpy when
> they wake up after being put to sleep.
>
> The way I handled this in µH Router (the microHAM devices
> uses FTDI chips) is to register for MacOS X Power Manager
> callbacks.
>
> Before the Mac OS X Power Manager sends the hardware into
> sleep mode, it will call back and at that time, I do an
> ordered shutdown of any opened microHAM ports. When
> the Power Manager again calls back when the machine wakes
> up, I reopen the serial port (setting baud rate and restart
> the microHAM watchdog timer) of any microHAM box(es) that
> was(were) previously connected.
>
> When the Mac OS X Power Manager calls back before going to
> sleep, you also have the option of telling the system to
> terminate the sleep process.
>
> See http://developer.apple.com/mac/library/qa/qa2004/qa1340.html
> .
>
> For example, if there is something critical that is
> happening, you can terminate sleeping, finish anything that
> you are doing that cannot be stopped (like changing the
> firmware of the K3 :-), and when that task is completed,
> finally ask the Power Manager to go to sleep.
>
> 73
> Chen, W7AY
>
> ______________________________________________________________
> Elecraft mailing list
> Home: http://mailman.qth.net/mailman/listinfo/elecraft
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:Elecraft at mailman.qth.net
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
>
More information about the Elecraft
mailing list