GPRS and WiFi connections in use at same time - Windows Mobile Development and Hacking General

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

Related

Starting up GPRS connection

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

Concurrent GPRS and WiFi connections

Hi all,
I am writing an app 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
As far asa I know, WM defaults to the strongest connection available, but some apps are very stubborn about using the WiFI unless it's the only thing available. I'm not a PPC developer, so I'm sorry I can't offer any more insight, but there should be no reason that you couldn' code your app to use both of the connections.
i dont think that is even possible in my opinion but that would drain the battery fast.
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
I do think its possible, but unclear how to access the Connection Manager API. 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

Help Needed: How to track UMTS/GPRS data usage like Spb GPRS Monitor?

While developing my application LCMinutes, I encountered a problem. I can not find the right way to monitor the UMTS/GPRS data usage. But I know there must be a way to do that, bacause Spb GPRS Monitor can do that.
I have tried the Registry key HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Shell\\CumulativeCallTimers\\Line_0, which has only outgoing data traffic, and seemingly tracks only part of it.
I have also tried RIL_GetPacketByteCount(), but for which I got an error E_NOTIMPL (0x80004001).
And I have searched through the Registry, Telephone API, Phone API, Network API, and Connection Manager, I just can't find any related interface.
Can anyone help me out? Thanks a lot.

WM6 Network Priority

I am trying to configure network rules on a Tytn Kaiser.
I would like any application trying to access the internet try the wireless connection first, and if not available, use mobile sevices (e.g. 3G) instead.
I'm guessing this must be easy, but I can't find any information regarding it.
Cheers.
mattdwen said:
I am trying to configure network rules on a Tytn Kaiser.
I would like any application trying to access the internet try the wireless connection first, and if not available, use mobile sevices (e.g. 3G) instead.
I'm guessing this must be easy, but I can't find any information regarding it.
Cheers.
Click to expand...
Click to collapse
I'd be very interested in that, too!
Any help highly appreciated..
Thanx in advance
herrmy

Disable Wifi Access! Any suggestions please?

Hi everyone,
I'm new to this forum, and was wondering if anyone can help me out. I have an Acer S200, and due to restrictions at work, we need to disable internet access from our mobile devices.
I have read various posts that state that this can be achieved by disabling wifi access by altering the registry keys, however none of the methods that i have come accross seem to apply to my Acer S200 mobile 6.5.
Sorry to be a pain, but does anyone know how i can do this?
Thanks in advance everyone.
alan
What are you talking about? Disable wifi? Why do you start it at the first place?
Internet access on mobiles can be done by active synch, data connection, wifi. It 's up to you to disable them by comm manager and active synch.
Maybe I get you wrong. What exactly do you need to stop?
Hi fresco,
thanks for the reply. Well, the organisation wants to prevent the devices from having the ability to connect to the internet.
I understand that there may not be a complete solution, but at the very least I would definitely like to disable wifi completely, since this is what I've read others have done. The devices do not have data connection plans, hence this option isn't a problem.
Apparently I can disable the wifi by altering the registry keys? Any ideas anyone?
Thanks.
hiya...
any ideas guys?
can anyone direct me to anything that could be remotely useful to the above?
Thanks
Hi alan,
let me get this straight.You work at an organization that has unencrypted wifi access
but doesn`t want it`s employees using it?
If your company`s wi-fi network gives access to the internet to anyone that connects to it why doesn`t the IT manager set a password to the network or enable mac filtering (prevents unauthorized devices-mac addresses from connecting to the network)?
I don`t know how you would disable the wifi chip from the registry
but if i were you i would buy a second phone for work use only.
SKTools
Try SKTools maybe there is a solution in the app.
You can disable the WiFi in registry:
Go to "[HKEY_LOCAL_MACHINE\System\State\Hardware]" and change the WiFi string to 0.
In the Comm. Manager the WiFI is disappeared and you are not able to connect.
thanks brainmaster.
the method that you suggested only removes the wifi display from comm manager, however that can easily be bypassed using the windows menu, to open wifi.
thanks...
then delete that one from the windows menu from Device > Windows > Start Menu

Categories

Resources