disabling/re-enabling GPRS

S

Serge Wautier

Env.: WM6 VS2008

Hi All,

My app performs periodical background HTTP connection through GPRS.
Testers noticed that sometimes, their GPRS connection no longer works. No
only in my app but also in Pocket IE. They also noticed that if they go to
the Wireless Manager, disable GPRS, then re-enable it, it works again. I
just encountered the problem and the workaround indeed works.
Now they ask me to have a button in the app to do the same operation from
the app.

Any idea how to do that?

TIA for any lights,

Serge.
 
A

Alberto Silva - Microsoft MVP - Device Application

Hi,
Which device are you targeting? It seems to have some problems in the GPRS
implementation, since that behavior is not usual in most popular Windows
Mobile devices.

To turn on and off GPRS we need to know in advance which operating system
version the device has. If it is Windows CE you probably will have to look
at the device SDK to achieve it.

--

Alberto Silva
www.moving2u.pt - R&D Manager
http://msmvps.com/AlbertoSilva - Blog
Microsoft MVP - Device Application Development
 
S

Serge Wautier

Alberto,

Thanks for your reply. Glad to read this is unusual behaviour!

The devices are Psion Workabout Pro with WM6 (About box says OS 5.2.318
Build 15342.0.0.0)
The GPRS connection uses a private APN.

I confess I'm about to tell the client to contact their Psion distributor.
But if there's a fairly reasonable programmatic solution, it would certainly
be helpful to the customer.

TIA,

Serge.

"Alberto Silva - Microsoft MVP - Device Application Development"
 
A

Alberto Silva - Microsoft MVP - Device Application

Hi,
As I told, it seems a defective GPRS implementation by Psion, which I have
found previously on other manufacturers devices, which all share the fact of
having the same device with Windows CE or Windows Mobile.

Psion usually has SDKs for their devices, you should login in their
'Technet' and find out if the SDK for that specific device allows you to
connect and disconnect GPRS. Check also if you are running the latest
firmware for that specific device and try to contact someone at Psion.

Other than that, I wouldn't suggest you to try to switch GPRS on and off,
since in 'well behaved' devices, the Connection Manager is able to take care
of it.

--

Alberto Silva
www.moving2u.pt - R&D Manager
http://msmvps.com/AlbertoSilva - Blog
Microsoft MVP - Device Application Development
 
S

Simon Hart [MVP]

As with most radio related things, TAPI is required to turn GPRS on or off.
 
T

Trevor

Serge Wautier said:
Env.: WM6 VS2008

Hi All,

My app performs periodical background HTTP connection through GPRS.
Testers noticed that sometimes, their GPRS connection no longer works. No
only in my app but also in Pocket IE. They also noticed that if they go to
the Wireless Manager, disable GPRS, then re-enable it, it works again. I
just encountered the problem and the workaround indeed works.
Now they ask me to have a button in the app to do the same operation from
the app.

Any idea how to do that?

TIA for any lights,

Serge.

PInvoke the TAPI function lineSetEquipmentState.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top