T
Tim Johnson
I see OpenNetCF has a Connection Manager wrapper around the ConnMgr stuff.
Before I launch off and use it I thought I'd ask a question first.
We're using a GPRS-based PDA and frequently I'll have 4-bars for voice
coverage but not have data coverage (the vendors tell me they don't use the
same infrastructure in the various vendor cell networks). So my invocations
of webservices fail with the ever-informative "Web Exception". When this
happens it's preceded by the little bubble notifications as the phone tries
to dial out, and it variously shows a "Cannot connect" or "No modem
available". What it really means is it can't make the data connection to
the server.
My question is, can I use the ConnMgr facility to determine ahead of time
whether a data call is possible, instead of forcing the user to watch the
bubbles, wait 10-40 seconds only to get a variety of error messages? I was
thinking of testing signal strength (if there's one for data vs. voice), or
checking if I have an IP address (the idea being if I'm not connected I
won't, if I am I will). Or maybe I can make the data connection with code
first, test if it worked, and THEN call my webservice only when I know I
have a good connection?
I'm not sure if anyone has experience with this specific problem and knows a
good way to test your connection, either ahead of time before making the
webservice call, or afterwards to enhance the error message you can report.
--
Tim Johnson
High Point Software, Inc.
www.high-point.com
(503) 312-8625
Before I launch off and use it I thought I'd ask a question first.
We're using a GPRS-based PDA and frequently I'll have 4-bars for voice
coverage but not have data coverage (the vendors tell me they don't use the
same infrastructure in the various vendor cell networks). So my invocations
of webservices fail with the ever-informative "Web Exception". When this
happens it's preceded by the little bubble notifications as the phone tries
to dial out, and it variously shows a "Cannot connect" or "No modem
available". What it really means is it can't make the data connection to
the server.
My question is, can I use the ConnMgr facility to determine ahead of time
whether a data call is possible, instead of forcing the user to watch the
bubbles, wait 10-40 seconds only to get a variety of error messages? I was
thinking of testing signal strength (if there's one for data vs. voice), or
checking if I have an IP address (the idea being if I'm not connected I
won't, if I am I will). Or maybe I can make the data connection with code
first, test if it worked, and THEN call my webservice only when I know I
have a good connection?
I'm not sure if anyone has experience with this specific problem and knows a
good way to test your connection, either ahead of time before making the
webservice call, or afterwards to enhance the error message you can report.
--
Tim Johnson
High Point Software, Inc.
www.high-point.com
(503) 312-8625