(Originally posted on pluggedin Treo forum)
 
 Hi,

I met a similar problem on both Treo 600 and Treo 650 using the HTTP lib with GPRS connections, also reproduced with the HTTPLibTest sample: if the radio was not on before using the sample, the device would reboot randomly while establishing the GPRS connection, or right after, or while using it, or even when leaving the sample.

Basically, and as far as I undestood, the trouble is the SIM card is not fully ready for a GPRS connection right after unlocking. Thus, you can't rely on the NetLibOpen() API to simultaneously turn the radio on and establish the GPRS connection, as the HTTPLibTest sample does.

Instead, you should:
- use the PhnLibModulePowered() API to check the radio status
- if radio is off, use the PhnLibSetModulePower() API to turn it on
- use the PhnLibGetSIMStatus() and PhnLibRegistered() APIs to check the SIM status and *wait* for the SIM to be registered and ready

Then the NetLibOpen() API can safely establish the GPRS connection.

Hope it helps.

Regards
Vinc

 

----- Original Message -----
Sent: Wednesday, November 30, 2005 5:06 PM
Subject: Re: NetLibOpen Fatal Exception on a Treo 650

Update:

Right now, it seems to cause a fatal exception without fail when I call NetLibOpen on the Treo 650 and am not yet connected to the phone network.  It asks me if I want to connect to the phone network, connects, and then resets before it would connect to the data network.

Everything seems to work fine if I'm already connected to the phone network.

Does anyone have any ideas?  Or even some help on how I should go about trouble shooting this?  It is driving me mad...

Has no one seen this happen before?

-Ben Bloomfield

On 11/28/05, Benjamin Bloomfield <[EMAIL PROTECTED]> wrote:
Hi.

Does anyone have any idea why calling NetLibOpen on a Treo 650 would cause a Fatal Exception?

It never seemed to do this on the 600, and it only happens sometimes on my 650.  The 650 is on the Cingular network; the 600 was on Sprint.

Anyone have any ideas?

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

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

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

Reply via email to