Hi All
I cannot get my application to create a GPRS connection when it starts. For example when Pocket IE starts it requests a GPRS connection and a new connection is created. I somehow cannot get that programatically using J2ME - java application. I cannot call the connection manager api from within j9.
I was wondering does anyone know of a simple exe programme that I can call which will create a GPRS connection.
There are many resources detailing how to create a GPRS connection
http://www.pocketpcdn.com/articles/conn_mgr.html
But I am stuck as how to do it as I only know Java.
Related
How can I programatically initiate a GPRS connection on an XDA (using EVB)?. I have a program which works when the connection is up (started using explorer) but fails when down. Would I do it using the TAPI?
Martin
I think you should have a look at the Connection Manager API.
I don't have any EVB sample code for you, but take a look at the PocketPC 2002 SDK sample CMHELPER usualy found at this path if you have eVC and the SDK installed:
C:\Windows CE Tools\wce300\Pocket PC 2002\samples\mfc\CMHELPER
BTW, you can download the SDK from www.pocketpc.com ...
here is the solution
I also was lookinf for this solution forever and never found it so i wrote the software myself. Here is the dll that you need to connect to the internet through evb it connects to the default connection no problems.
http://xdaconnect.wastedbrains.com
have fun,
Dan Mayer
Not knowing anything about C++, is there a simple way to open a GPRS connection with just eVB?
danmanmayer, can you send me the sources?
Or maybe somebody knows URL where can I found info about it?
Thanks in advance
SapphireRAS does all this and more.
Connects/Disconnects via GPRS using eVB or VB.Net
Create and manages connections, locations etc.
See www.sapphire-solutions.co.uk
I would like a program that can do the following:
The main purpose is that the program should be 100% automatic and will after a easy configuration be left alone and handle GPRS to be online whenever there are GSM/GPRS available.
* Create a connection (in system/connection) automaticly from a file or something.
* With the created connection above, the program should automaticly connect. From suspend mode and after a soft reset.
Anyone knows a good program that can do this or a great programmer that can supply features like the above (and more).
Best regards
Zomen
advise
1. use ConnMgrEstablish to establish GPRS connection
2. Create a hide window to received message when the connection status changing.
3. soft reboot issue: writting a service to these or config the target device to run your app at startup time.
4. active device on suspended state mode: try API CeSetUserNotification
Hi Zomen,
I think you will need to look at Connection Manager API. It handles all low level connections on the device, including GPRS. It can be found here -
http://msdn.microsoft.com/library/d...s/apippc/html/ppc_cnmn_connection_manager.asp
And here is an example -
http://www.codeguru.com/cpp/w-p/ce/pocketpc/article.php/c7355/
Cheers,
Dav
Thank you for the answers but how about using RAS to make the connection?
And remember that the purpose of the application is to work on a Mobile 5 device.
/Zomen
hi,
Hmm, I think it should be ok to work on Mobile 5, but I have only been using 4.21 so cant be sure. However, there is a helper sample which comes with Embedded Visual C++ 4. If you have EVC4 You can find it here -
C:\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Samples\Mfc\Cmhelper
And there is further information here about the sample here -
http://msdn.microsoft.com/library/d...s/guide_ppc/html/ppc_about_cmhelpersample.asp
You can use the sample to build a GPRS connection exe which will handle GPRS connections for you. At least on 4.21, havent tried on Mobile 5.
Cheers
Hello.
I need your help since my Atom is lauching the GPRS connection without any instruction to do that.
I closed all the resident memory programs but still go on dialing!
How can I avoid the connection start withouth promptin it or only if I need it?
Thank You
Regards
There must be some program you have installed that's initiating it. I would suggest that you did a hard reset (after backing up your documents and contacts, of course) and then install program after program, testing a while after the installation, to see what the offenting app is.
same problem for me
Moved to proper section
Main reason
EMAIL - once an account is setup it will auto connect to internet for new email, default every 2 hours, but Windows Mobile do not disconnect GPRS after trying to get new mails.
ACTICE SYNC - if you have setup connection to EXCHANGE SERVER eg, google push server.
wil also auto connect all the time
Down side of Microsoft is that they didnt design to disconnect after trying to get email like Symbian(Nokia) do. so other manufacture will offer to design their comm manager to disable data auto connection but O2 & Quanta didnt go to the extend to offer this function back then.
Download NoData from http://forum.xda-developers.com/showthread.php?t=467813
toggle to DISABLE GPRS
this will stop auto connection to GPRS but it may stop receiving MMS as MMS also require GPRS connection.
I want to make a connection to a server either via GPRS or via Activesync when cradled.
I used to use the API call RasDial on an old Windows CE 3.0 programme but this does not appear to make a connection under WM5 and fails to dial up a GPRS connection. It opens the port, etc but fails to dial.
Is there a simpler way to make a connection? Do I simply try to open a TCP/IP connection and the OS does it for me?
Any and all ideas appreciated!!
Dave...
Use Pocket PC connection manager API to make
a GPRS connection. That is the PPC way. RAS API
can be used but connection manager is better for
some things.
Houser
Houser said:
Use Pocket PC connection manager API to make
a GPRS connection. That is the PPC way. RAS API
can be used but connection manager is better for
some things.
Houser
Click to expand...
Click to collapse
Thanks. I found a sample of how to do this in the SDK so I will modify my code to use this instead and see if it all works.
Dave...
Hi all
I have a evb program which i want to be able to launch gprs programatically. any suggestions please. would also like to check for gprs connection state; and if off to re-launch it by software. all without the user needing to press the G. thanks.
ajanamanan