Is it possible to use an api to turn the gprs off and on at will ?
Im about to start playing with the sdk and C# .net and one of the first prorams I was thinking of writing is a scheduler to toggle gprs and fetch my email.
Im having some trouble finding good examples of code written for the XDA II.
Thanks
Gordon
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
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
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
Hi all,
I am writing an app (Visual Studio, C#, .NET CompactFramework) in which both the WiFi connection and GPRS connection are available for use at the same time. I am working on a WinMobile 6 HTC Wizard in USA on T-Mobile network.
When I have both connections open, I am able to access the WiFi but not the GPRS (faster connection I imagine). Does anybody have any ideas on how I could leverage using both connections, binding sockets on each?
Any help in this area is greatly appreciated. I don't know much about the CommManager in WinMobile, but if anybody knows any way for me to *possibly* be able to use both connections, I'd really appreciate it.
Thanks in advance,
Nick
I think you may be out of luck. Although I'm not really a PPC coder, I believe that the OS will always default to the fastest/most powerful connection. However, I may be wrong and one of the more experienced people on this board will most likely correct me.
Connection Manager, not CommManager
I'm definitely wrong by calling it the CommManager, thats just the user interface on WM to select which communications you want open. I meant ConnManager, which is the Connection Manager, which I've learned about here:
http://msdn2.microsoft.com/en-us/library/bb416435.aspx
If anyone has any background with programming using the Connection Manager API, I'd greatly appreciate some help in the form of example source code. Also, if anyone has ported a C++ library to C# before, I could use some assistance with that. The Connection Manager API is in the connmgr.h file which I've attached here, and I want to be able to use it in C#. I wish to use this on the mobile device and don't know exactly the best way to go about doing this.
Any help is appreciated.
Thanks,
Nick
Hello All,
I'm developing a C++ application for the android that needs to talk
with a server whenever there is an internet connection available. If
the internet connection is cut-off the application needs to "sleep" in
order to reduce the battery consumption. If the internet connection is
back the application should "awake".
I'm searching for any kind of event notification available for C++. I
don't want to use pooling.
I know that in java we receive these notifications from the
connectivity service.Can we trap them natively?
Thanks,
Carlos B.