Bypass GPRS Connection in WM'05 Smarphone/Pocket PC

Hi to all.

I'm developing a solution that needs GPRS connectivity by two APN (Access Point Name). One is defined as WAP with an HTTP proxy and the other one an Internet without proxy.
The device is a Smatphone (HTC Startrek - QTek 8500) and its configuration is:

Start > Settings > Connections > GPRS > Amena GPRS
Connect to: The Internet
Access point: internet
User Name: xxxxx
Password: xxxx
DNS fist: 0.0.0.0
DNS second: 0.0.0.0
IP Address: "blank"

Start > Settings > Connections > GPRS > Amena WAP
Connect to: The Internet
Access point: amenawap
User Name: xxxxx
Password: xxxx
DNS fist: 0.0.0.0
DNS second: 0.0.0.0
IP Address: "blank"

Start > Settings > Connections > Proxy > Amena WAP Proxy
Connect from: The Internet
Connect to: WAP Network
Proxy (name:port): wap.amenate.com:8080
Type: HTTP
User Name: xxxxx
Password: xxxxx

Start > Settings > Connections > Menu (right softkey) > Advanced
The Internet connection: Amena GPRS
Work connection: Automatic
WAP connection: Amena WAP
Secure WAP connetion: Automatic

My development is being done in C# with Visual Studio 2005. I have imported Connection Manager API functions from cellcore.dll, have defined equivalent structures CONNMGR_DESTINATION_INFO and CONNMGR_CONNECTIONINFO (based on what was already developed in the OpenNETCF). I can connect to WAP network and The Internet separately with ConnMgrEstablishConnectionSync() and it works fine. However, if I connect to WAP Network, send requests through this connection, release the connection with ConMgrReleaseConnection() and I do the same with The Internet connection, when I retry to connect to WAP Network it doesn't work succesfully. The request seems to have been sent through The Internet connection, even after having used ConnMgrReleaseConnection() over this connection.

I have tested with ConnMgrMapConRef() to obtain the GUID for guidDestNet field of CONNMGR_CONNECTIONINFO structure passed like parameter to ConnMgrEstablishConnectionSync(), but something similar happens when I bypass the connection.

Anybody can help me
Thanks in advance.

Regards.

Ruben Sanchez Bono. Madrid (Spain).

-------------------------------------------------------------------------------------------------------------------------------------------

For several days I wrote this post and nobody has answered me. Please, can someone help me

Thanks in advance, other time.

Ruben Sanchez Bono. Madrid (Spain).



Answer this question

Bypass GPRS Connection in WM'05 Smarphone/Pocket PC

  • arpan_1234

    You need to use Connection manager and ask it to Connect to a URL that starts with wap:// instead of http://. This will cause CM to drop the existing connection and connect a new one as specified for WAP destination. I haven't tried this but I suspect you could do it by opening an WebRequest with a wap:// url. If not, P/Invoke Connection manager and in CONNMGR_CONNECTIONINFO set guidDestNet to IID_DestNetWAP



  • StuartGM

    Dear Sir

    Have you found any solution for this issue We got the same problem in our MMS program. We can't release connection from Internet APN, Then connect to the WAP APN.

    Regards!

    Allen



  • Bypass GPRS Connection in WM'05 Smarphone/Pocket PC