Click here to get back home

Detect phone in 3G or 2G network in phone idle

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Detect phone in 3G or 2G network in phone idle kevinspace via PocketPCJunkies 10-09-2007
Get Chitika Premium
Posted by kevinspace via PocketPCJunkies on October 9, 2007, 8:30 am
Please log in for more thread options
Hello all

I have a problem for detecting whether phone is in 3G or 2G network during
phone idle.

I have used 'lineGetCurrentSystemType' to get the network status during phone
connected mode and it work well.

However I wanna detect 3G or 2G in idle mode. The behaviur I want is, when
phone in 2G, keep the phone in idle mode, and when phone register to 3G
network, making a phone call. So I need to detect phone status in idle mode.

If anyone know which TAPI to deal with this problem, or have other soluction
to solve this.
Please give me some suggestion.

Thanks a lots

cheers

kevin

--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/smartphone-dev/200710/1


Posted by Amit on October 10, 2007, 1:18 am
Please log in for more thread options
Did you check out state and notification broker?
--
Thanks and Regards
Amit
blog:http://amitranjan.wordpress.com


"kevinspace via PocketPCJunkies.com" wrote:

> Hello all
>
> I have a problem for detecting whether phone is in 3G or 2G network during
> phone idle.
>
> I have used 'lineGetCurrentSystemType' to get the network status during phone
> connected mode and it work well.
>
> However I wanna detect 3G or 2G in idle mode. The behaviur I want is, when
> phone in 2G, keep the phone in idle mode, and when phone register to 3G
> network, making a phone call. So I need to detect phone status in idle mode.
>
> If anyone know which TAPI to deal with this problem, or have other soluction
> to solve this.
> Please give me some suggestion.
>
> Thanks a lots
>
> cheers
>
> kevin
>
> --
> Message posted via PocketPCJunkies.com
> http://www.pocketpcjunkies.com/Uwe/Forums.aspx/smartphone-dev/200710/1
>
>

Posted by kevinspace via PocketPCJunkies on October 10, 2007, 10:28 pm
Please log in for more thread options
Hi Amit:
I am using lineGetCurrentSystemType(hLine, out dwCurrentSystemType) to detect
network. 'dwcurrentsystemtype' will return a number and specify 'hLine' is
under 3G/2G during connected mode.

However, I wanna detect 3G/2G in phone idle mode.
What state and notification broker do you mean? which TAPI function do you
use to check?

Thanks for your feedback.

kevin


Amit wrote:
>Did you check out state and notification broker?
>> Hello all
>>
>[quoted text clipped - 17 lines]
>>
>> kevin

--
Message posted via http://www.pocketpcjunkies.com


Posted by Naik on October 10, 2007, 3:36 am
Please log in for more thread options
Hi Kevin,

I am not very sure about the answer.
i guess these are somethings you can try out.
First thing is you can try out RIL notifications for example
RIL_NOTIFY_REGSTATUSCHANGED which gives you information about the Network
registration status that has changed

Second one is
HKEY_LOCAL_MACHINE\Comm\ConnMgr\Planner\Settings
in this you can try out for SuspendResume : REG_MULTI_SZ

The third thing is
HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\ registry key which is used
to specify the control flags used for the provider identified by the GUID


These are just try out things.

Good luck.

Regards,
Naik

"kevinspace via PocketPCJunkies.com" wrote:

> Hello all
>
> I have a problem for detecting whether phone is in 3G or 2G network during
> phone idle.
>
> I have used 'lineGetCurrentSystemType' to get the network status during phone
> connected mode and it work well.
>
> However I wanna detect 3G or 2G in idle mode. The behaviur I want is, when
> phone in 2G, keep the phone in idle mode, and when phone register to 3G
> network, making a phone call. So I need to detect phone status in idle mode.
>
> If anyone know which TAPI to deal with this problem, or have other soluction
> to solve this.
> Please give me some suggestion.
>
> Thanks a lots
>
> cheers
>
> kevin
>
> --
> Message posted via PocketPCJunkies.com
> http://www.pocketpcjunkies.com/Uwe/Forums.aspx/smartphone-dev/200710/1
>
>

Posted by kevinspace via PocketPCJunkies on October 13, 2007, 11:37 am
Please log in for more thread options
Hello Naik,

I have soved the problem using 'linegetcurrentsystemtype', I just got some
logic problem before,
so after I change the code, then the program working correctly!

Thanks for the help

kevin

Naik wrote:
>Hi Kevin,
>
>I am not very sure about the answer.
>i guess these are somethings you can try out.
>First thing is you can try out RIL notifications for example
>RIL_NOTIFY_REGSTATUSCHANGED which gives you information about the Network
>registration status that has changed
>
>Second one is
>HKEY_LOCAL_MACHINE\Comm\ConnMgr\Planner\Settings
>in this you can try out for SuspendResume : REG_MULTI_SZ
>
>The third thing is
>HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\ registry key which is used
>to specify the control flags used for the provider identified by the GUID
>
>These are just try out things.
>
>Good luck.
>
>Regards,
>Naik
>
>> Hello all
>>
>[quoted text clipped - 17 lines]
>>
>> kevin

--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/smartphone-dev/200710/1


Similar ThreadsPosted
how do you detect a phone call in progress? January 10, 2006, 12:41 pm
detect phone 'searching' situation!! October 8, 2007, 1:22 am
detect phone incoming call November 15, 2007, 11:11 am
detect mobile network connection December 1, 2006, 5:55 am
Idle event October 1, 2007, 1:42 am
Phone Book July 4, 2005, 9:41 pm
Phone profile July 21, 2005, 4:25 am
How to get the phone model? August 2, 2005, 2:14 pm
How to lock phone... August 24, 2005, 2:26 am
Phone number August 24, 2005, 5:37 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap