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
Related
Hello,
I am a Java programmer, usually on PC, lately on PDA using Jeode JVM on iPAQ, and yesterday I implemented my program on XDA (QTek 1010).
My problem is that the GPRS doesn't load automatically like it does on iPAQ with AirCard modem - you have to connect manually using Start -> settings -> connections -> connections -> connect.
Also, when you use the phone, the GPRS is disconnected, and you have to go through this long path again.
I have downloaded the SDK (60MB), but I don't know how to operate it...
I'm sure it's just a simple one line function call, so if someone has a link, wrote, or can make me a program that just connects to the GPRS and that's all, I'll be very thankful...
Alternatively, please instruct me on how to use the SDK and I'll create it myself.
Thanks in advance,
Moti Pinhassi
Cav Systems
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.
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
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...
Hello,
at first sorry for my english, but i try to write understandable...
I'm trying to write an application for windows mobile 2003 SE on my magician. I want to send SMS vis a HTTP Gateway like SMSoIP does.
When I try to connect to the Gateway i get an error ("An error was encountered while running this programm."). The GPRS connection on the Magician is active and my code is:
WinSock1.RemoteHost = "gateway.sms77.de"
WinSock1.RemotePort = 80
WinSock1.Connect
After Winsock has the connection i send the HTTP /GET request.
I cant use the emulator with debuggig because i run eVB in an Virtal PC. An Emulator in an emulator is not alowed
In Visual Basic 6 everything works fine and i can connect to the server. Why not with embedded VB? Do I have to make the GPRS connection "usable" for my app or something? Thanks!
i would try to port the code to vb .net
it's a more stable and mature platform then
old vb
ok, and under .net i can acces the internet without any trouble?
is there no way of getting it working with eVB?
by the way, i could also use SMSoIP if i develop in .net because SMSoIP is written in .net i think. but it does not work on my Magician. Thats the reason qhy i try to make my own SMS Application.
Thanks!
i dont know but guess so
because the chances and examblems are better supported in .net
then embedded vb which is kinda a dead platform
Magician support .net i think maybe from birth only .net1.1 but one can upgrade the compact framework free from ms for version .net2
prob .net1.1 too
ok, then i try to do it in .net
and i'll try to get SMSoIP runing on my device.
Thanks for your fast answers!