Remove All Ads from XDA

Difficulties getting RAS status

1 posts
Thanks Meter: 0
By p.v.berkel, Junior Member on 10th February 2009, 05:48 PM
Post Reply Email Thread
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,

Post Reply Subscribe to Thread

gprs, ras, ril, tapi, wlan

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes