By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,835 Members | 1,951 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,835 IT Pros & Developers. It's quick & easy.

GPRS Signal Strength

P: n/a
Hi all

I am working with CF2 and C#.

I was hoping that someone could point me in the right direction for how I
can determine if there is a GPRS Signal.

I am using Merge Replication to SQL Mobile and I am not sure how I should
handle it if there is no signal.

Any suggestions.

Thanks,
ink

Mar 20 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
If your device is Windows Mobile 5.0 you can use the
Microsoft.WindowsMobile.Status namespace functionality.
SystemState.PhoneSignalStrength returns the signal strength as a percentage.
Also SystemState.PhoneGprsCoverage returns whether or not GPRS is currently
available, which is probably more relevant in your scenario.
Another approach is to use ConnectionManager to establish the connection and
check for successful connection. If not don't run your replication code and
you could optionally display an alert to the user that they don't have a
connection.

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hi all

I am working with CF2 and C#.

I was hoping that someone could point me in the right direction for how I
can determine if there is a GPRS Signal.

I am using Merge Replication to SQL Mobile and I am not sure how I should
handle it if there is no signal.

Any suggestions.

Thanks,
ink
Mar 20 '07 #2

P: n/a
Thanks Peter

That is exactly what i was hoping for. "Microsoft.WindowsMobile.Status"

The ConnectionManager Approch.
How would i do that. Is that coding or is that something you setup on the
PDA.


"Peter Foot [MVP]" <fe******@nospam-inthehand.comwrote in message
news:B0**********************************@microsof t.com...
If your device is Windows Mobile 5.0 you can use the
Microsoft.WindowsMobile.Status namespace functionality.
SystemState.PhoneSignalStrength returns the signal strength as a
percentage. Also SystemState.PhoneGprsCoverage returns whether or not GPRS
is currently available, which is probably more relevant in your scenario.
Another approach is to use ConnectionManager to establish the connection
and check for successful connection. If not don't run your replication
code and you could optionally display an alert to the user that they don't
have a connection.

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Hi all

I am working with CF2 and C#.

I was hoping that someone could point me in the right direction for how I
can determine if there is a GPRS Signal.

I am using Merge Replication to SQL Mobile and I am not sure how I should
handle it if there is no signal.

Any suggestions.

Thanks,
ink

Mar 20 '07 #3

P: n/a
Connection Manager is a native API, so you would either need to write some
code to P/Invoke it or use a wrapper.

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:eY**************@TK2MSFTNGP04.phx.gbl...
Thanks Peter

That is exactly what i was hoping for. "Microsoft.WindowsMobile.Status"

The ConnectionManager Approch.
How would i do that. Is that coding or is that something you setup on the
PDA.


"Peter Foot [MVP]" <fe******@nospam-inthehand.comwrote in message
news:B0**********************************@microsof t.com...
>If your device is Windows Mobile 5.0 you can use the
Microsoft.WindowsMobile.Status namespace functionality.
SystemState.PhoneSignalStrength returns the signal strength as a
percentage. Also SystemState.PhoneGprsCoverage returns whether or not
GPRS is currently available, which is probably more relevant in your
scenario.
Another approach is to use ConnectionManager to establish the connection
and check for successful connection. If not don't run your replication
code and you could optionally display an alert to the user that they
don't have a connection.

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>>Hi all

I am working with CF2 and C#.

I was hoping that someone could point me in the right direction for how
I can determine if there is a GPRS Signal.

I am using Merge Replication to SQL Mobile and I am not sure how I
should handle it if there is no signal.

Any suggestions.

Thanks,
ink

Mar 21 '07 #4

P: n/a
OpenNETCF.org has a ConnectionManager wrapper.

Simon.

"iKiLL" wrote:
Thanks Peter

That is exactly what i was hoping for. "Microsoft.WindowsMobile.Status"

The ConnectionManager Approch.
How would i do that. Is that coding or is that something you setup on the
PDA.


"Peter Foot [MVP]" <fe******@nospam-inthehand.comwrote in message
news:B0**********************************@microsof t.com...
If your device is Windows Mobile 5.0 you can use the
Microsoft.WindowsMobile.Status namespace functionality.
SystemState.PhoneSignalStrength returns the signal strength as a
percentage. Also SystemState.PhoneGprsCoverage returns whether or not GPRS
is currently available, which is probably more relevant in your scenario.
Another approach is to use ConnectionManager to establish the connection
and check for successful connection. If not don't run your replication
code and you could optionally display an alert to the user that they don't
have a connection.

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"iKiLL" <iK***@NotMyEmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hi all

I am working with CF2 and C#.

I was hoping that someone could point me in the right direction for how I
can determine if there is a GPRS Signal.

I am using Merge Replication to SQL Mobile and I am not sure how I should
handle it if there is no signal.

Any suggestions.

Thanks,
ink


Mar 21 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.