Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Difficulties getting RAS status

OP p.v.berkel

10th February 2009, 06:48 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Feb 2009
Dear all,
I am developing an application that controlls different
network possibillities. This means it has to be able to turn cradle
communication, wlan and gprs on and off. One by one or all at the same
time. This all works fine, except for one major problem.
I need to detect if a RAS ppp connection has been lost, so I can
redial it in the background. I used the RAS function
"RasGetConnectState", but this keeps returning "Connected", even if
the handheld is wrapped in 5 cm of aluminium foil. Offcourse, this
isn't right. I hoped there would be a tapi event when the connection
is lost, but these events only fire when the connection is explicitly
made or broken. So no luck here also. I can't use any function that
checks if a network is still alive, because there are situations where
wlan, cradle and gprs could be alive at the same time. So these
functions can return true, even when gprs is turned off.
I heard something about the RIL, but haven't been able to develop it
or test it yet. I really hope anyone has some groundbreaking ideas,
cause I'm really running out.
Maybe some Einstein could help me out
here, thank you.

Kind Regards,

Peter
Post Reply Subscribe to Thread

Tags
gprs, ras, ril, tapi, wlan
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes