This is a cross-post/reiteration of a question I asked on the comm dev forum (which is 
pretty slow...).

I tried to use the Telephony API to programmatically turn on the phone in a Tungsten 
W.  There is a SIM installed in the phone and it works with the Mobile app.

When I try to call the Telephony API:

                err = TelIsPowServiceAvailable(g->teleRefNum, g->teleAppId, NULL);
                if(!err)
                {
                        err = TelPowSetPhonePower(g->teleRefNum, g->teleAppId, true);
                        if(!err)
                                g->on = true;
                }

The call goes out and turns on the phone.  Since it is a synchronous call, it pauses a 
bit and returns noErr.  However, the OS is off doing things and after a bit it 
displays the alert:  "Mobile Error: SIM was not found.  Check that.... (Tel 2F11)".  
Pressing OK on that alert dismisses the alert and I can watch as the flashing red 
antenna light turns to a flashing green antenna light.

So, the SIM card was there, just not when the OS wanted it to be at the beginning of 
this event cascade.

I have tried wait loops, registering for the "future use" SysNotifyPhoneEvent 
notification, but I cannot make the system wait for the PowerOn event to get the SIM 
card in the loop, so to speak - it's always about 5 seconds too late.

Is this network specific (Cingular, GSM)?  Do I need to issue other calls first to 
ensure the SIM card is in and activated?  One person asked this question long ago on 
the comm forum, but as far as I can see he never received an answer (gok, where are 
you?  Did you ever get this working?).  Is anyone getting this stuff to work?

Thanks,
Kevin



------------------------------------------
The information in this transmittal and any attachments are confidential and intended 
only for the recipient(s) listed above. You are hereby notified that any unauthorized 
distribution or copying of this transmittal or its attachments is prohibited. If you 
have received this transmittal in error, please notify invivodata immediately at (831) 
438-9550.
------------------------------------------



--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to