First off, I told you to use the wrong trap. Call HwrPluggedIn() instead.
This one is _also_ unsupported, so it may change tomorrow and break your
app, etc... you have been warned. I don't think you'll have any problems
figuring out how to use it. :-)
> When you say "and the cradle is plugged in" do you mean the power is
> plugged in or simply the serial port ?
I mean that the power is plugged in. If the cradle is just connected ot
the serial port, and the charger is not plugged in then you will _not_ be
able to detect that the device is docked.
> Do I have to open the serial port first ?
Nope - its unrelated to the serial communications. Its just another pin on
the hotsync connector.
> Is this call expensive in terms of battery usage ?
Well, you don't want to be calling it _too_ often, but I don't think its
that bad. It probably does use a little more battery power briefly.
Jesse
[EMAIL PROTECTED] on 05/10/99 01:23:30 PM
Please respond to [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (Jesse Donaldson/HQ/3Com)
Subject: Re: Detecting the Cradle
Thanks Jesse,
I see the prototype in the incs
Err HwrDockSignals(WordPtr inputsP, Word outputSet, Word outputClr)
But it's not doumented in the Manauals so can you help me by
explaining the interface.
When you say "and the cradle is plugged in" do you mean the power is
plugged in or simply the serial port ? I would love to be able to tell
that the PalmV is receiving power as well but more importantly is the fact
that it is connected to a cradle and ready for sync.
Do I have to open the serial port first ?
Is this call expensive in terms of battery usage ?
Sorry about all the questions ?
Ron
<pre>
The quick answer, unfortunately, is 'not really'.
The more accurate answer is that there is an (unsupported) system call
called HwrDockSignals() that you can use to determine if a Palm V is in its
cradle (and the cradle is plugged in). Note that if you use this, your app
will probably break later since its an unsupported call.
Jesse
</pre>