Hi Praveen,
Sorry it took so long to answer, but this has been a holiday and I've been
away.
I'm responding to two questions.
1.
> One thing more there are two notifications for knowing Start-UP viz.
> 1)sysNotifyLateWakeupEvent
> 2)sysNotifyEarlyWakeupEvent
>
> Want to know which'll be more suitable for knowing Start-UP.
I do not use the early wakeup, or at least do not rely on it, because it is
not reliable. I have found that it is not always sent.
2.
> Can you please explain the details given in the below mail. I could not
> follow it.
I was attempting to explain the way the 16 bit (UInt16) dock status word is
passed in the sysExternalConnectorAttachEvent notification. The notification
structure includes a (void*) notifyDetailsP. Normally, this is a pointer to
data. In the sysExternalConnectorAttachEvent notification, notifyDetailsP is
not a pointer, but the actual dock status cast to a (void*). Use it like
this:
Err NotifyCallback(SysNotifyParamType * pNotifyParam)
{
UInt16 dockStatus = (UInt16) pNotifyParam->notifyDetailsP;
}
My second point is that the dock status passed in the notification is what
was immediately known at the time of the connection. Other functions such as
charging are initiated after the connection event. If you need to how the
platform responded to the attachment, you must poll the dock status some
time after the attach notification. The dock status API may not be exposed,
so I included a definition.
> UInt16 HwrDockStatus(void) SYS_TRAP(sysTrapHwrDockStatus);
Hope this helps.
--------------------
Jeff Loucks
Work 425-284-1128 [EMAIL PROTECTED]
Mobile 253-691-8812 [EMAIL PROTECTED]
Home 253-851-8908 [EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 03, 2004 4:44 AM
To: Palm Developer Forum
Subject: Re: How to know the details of cradle connection and detaching
Hi Jeffry,
Thanks for the reply.
Can you please explain the details given in the below mail. I could not
follow it.
Thanks and regards,
Praveen
----- Original Message -----
From: "Jeffry Loucks" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, June 30, 2004 1:28 AM
Subject: RE: How to know the details of cradle connection and detaching
> Okay, details, details.
>
> So, technically the dock status is a 16 bit (UInt16) value, but is cast
to a
> (void*) and is passed as notifyDetailsP. Take note that the value passed
> reflects what was valid at the time of attach/detach, and not the current
> status. Such details as external power and charging are not known until a
> short time after attach/detach.
>
> To determine current dock status, try:
>
> UInt16 HwrDockStatus(void) SYS_TRAP(sysTrapHwrDockStatus);
>
> --------------------
> Jeff Loucks
> Work 425-284-1128 [EMAIL PROTECTED]
> Mobile 253-691-8812 [EMAIL PROTECTED]
> Home 253-851-8908 [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Jeffry Loucks [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 12:24 PM
> To: Palm Developer Forum
> Subject: RE: How to know the details of cradle connection and detaching
>
> Oh yes, and notifyDetailsP doesn't point to a UInt16 status like the
> documentation says. It's to be used directly as a UInt32 status value.
>
> --------------------
> Jeff Loucks
> Work 425-284-1128 [EMAIL PROTECTED]
> Mobile 253-691-8812 [EMAIL PROTECTED]
> Home 253-851-8908 [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Jeffry Loucks [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 11:19 AM
> To: Palm Developer Forum
> Subject: RE: How to know the details of cradle connection and detaching
>
> Try these numbers and see if they make sense:
>
> 0x0000 // nothing
> 0x0001 // some type of modem
> 0x0002 // some type of dock
> 0x0004 // using some type of external power source
> 0x0008 // internal power cells are recharging
> 0x0010 // USB hardware
> 0x0020 // USB Peripheral
> 0x0040 // RS232 Peripheral
> 0x0080 // Mfg cradle
>
> --------------------
> Jeff Loucks
> Work 425-284-1128 [EMAIL PROTECTED]
> Mobile 253-691-8812 [EMAIL PROTECTED]
> Home 253-851-8908 [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 3:09 AM
> To: Palm Developer Forum
> Subject: How to know the details of cradle connection and detaching
>
> Hi All,
>
> The sysExternalConnectorAttachEvent is broadcast when a USB cradle, RS-232
> cradle or peripheral, a power cable, or a modem is attached to the
> universal connector. This notification is broadcast only on devices that
> have the universal connector. The notifyDetailsP field points to a UInt16
> that identifies which type of device was attached.
> How to know the details of cradle connection and detaching. we need the
> corresponding value in notifyDetailsP. Is there any header that tells
about
> this value?
>
> Thanks in advance
> -Praveen
>
>
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://mail2web.com/ .
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/