[Q] Programatically change Phone-Band Settings - Touch HD General

Hi there,
I hope I've found the right place to post my question.
While using my Touch HD I always switch off 3G to save some battery. When I need it I turn it on at Settings -> Phone -> Band (well thats the german name).
What I'd like to do is - write a program that does this for me - switch from 3G to GPRS/GSM and back. Currently I try to achieve that with Visual Studio 2008 and the 5.5/6.0 SDK.
I can't find any Assembly to set exactly these settings. Could anyone give me a hint where to look for these settings?
Thx in Advance
Steve

I read that our Blackstone uses less battery in 3G-Mode than in normal GSM
greetz

Would be nice to have a bind to switch from 3g to gsm....
For example: If you open IE or Opera the gsm will switch to 3G-mode and if you close IE/Opera it will go back to GSM

Moved out for Development

http://forum.xda-developers.com/showpost.php?p=3726097&postcount=11171
Might be of some help?

there's already a cab out there called CommManager8, which gives 8 entry items to your communication manager 1 of which is a 3G/GSM switch.
http://forum.xda-developers.com/showthread.php?t=453518
or you can always use advanced configuration to add the 3G/GSM switch into the coomunication manager

zesper said:
there's already a cab out there called CommManager8, which gives 8 entry items to your communication manager 1 of which is a 3G/GSM switch.
http://forum.xda-developers.com/showthread.php?t=453518
or you can always use advanced configuration to add the 3G/GSM switch into the coomunication manager
Click to expand...
Click to collapse
perhaps I´m a bit late ...
try CommMgrPro by Daniel Herrero
forum.xda-developers.com/showthread.php?t=299070
I´m using it since early trinity times
take VGA skin
regards, Ralf

Related

REQ: Tool/shortcut o switch from 3g to GSM and back

I tried this in another thread a while ago but as nobody even replied I thought I should try it again before I completely give up
Is there a tool (or can someone code one maybe?) to switch between 3G and GSM without going the "normal" route of
Settings-Phone-Options-Band(or whatever it´s called in the english version) and then change it to either WCDMA, GSM or Auto. Of course you will have to disconnect any active connection before you can do that.
A tool to accomplish the same thing would really help in improving battery life as with it you could switch to 3g only if needed (websurfing) and leave it in GSM mode most of the time.
If a tool is impossible to create, a shortcut to make the procedure above easier would help. too.
Yep i would love this too any takers :>
JEREMY
You could try writing a macro using mortscript - it can simulate taps on the
screen. And yes, I'd like to have such a tool, too..
Thanks for the Mortscript hint. I managed to write a tiny little scriptlet (it´s ridiculous really, but it does the job) that does the following through stylus tap simulation and app calls:
- Open the Phonepad
- open the options dialog
- select the "Band" tab
- change the band selection from 3g to GSM without clicking OK
- call a subscript which disconnects the current connection (otherwise a bandchange is not possible). The subscript is necessary as Mortscript will not process any command that comes after a "Disconnect"
- here I would like to click OK. But for the love of god...I can´t find the right coordinates on my Trion. Can anyone help?
- here I would like to close the phonepad again
Same stuf in a second script for GSM to 3g of course.
I´m pretty sure most of it can be done through SendTab/SendDown etc. Figured that out a little too late. Might clean it up a bit to make it less resolution-dependent.
Voila
Even without the last two steps it is rather useful. When you call the script it will do everything except press OK for you.
Band Tab
I upgraded to the Cingular (1.34) rom and now I do not have the "Band" tab on the phone settings. Has anyone else experienced this? I would love to have the utility to switch back and forth as the battery drain is too fast in
3G mode.
Thanks!
See this page for details:
http://www.securegsm.com/pages.php?pageid=85
"... If you do not see the “Band” tab, please download this CAB file and execute on your device. After executing this CAB file...
The above CAB file contains a registry change for your device. No special application is installed when you execute the above CAB file..."
Please note: login is required to download.
Alternatively, you can enable "Band" selection tab using registry editor.
BixbySpartan said:
I upgraded to the Cingular (1.34) rom and now I do not have the "Band" tab on the phone settings. Has anyone else experienced this? I would love to have the utility to switch back and forth as the battery drain is too fast in
3G mode.
Thanks!
Click to expand...
Click to collapse
SecureGSM -
The CAB file worked flawlessly. I appreciate the information and your assistance.
Thanks!
Ok, I cleaned up the two Mortscript scriplets to just use sendkeys. No more stylus tap simulation, makes it a lot more reliable.
Executing either script will now open the phonepad, go to options-band, diconnect the current connection and then change the band.
Unfortunately closing the phonepad doesn´t work riliably as it will leave the phonepad screen in the foreground and the UI will freeze.
Maybe someone a little more gifted can make this more interactive (e.g. ead what app is active and switch back to it after the band change or something).
For me it is good enough for now.
If anyone wants it, let me know.
What the heck. Maybe someone can make use of it.
VERY clumsy and thrown together in a couple of minutes. Should work on any Trion etc.
You will have to edit the window captions and paths as I did this on a German ROM.
"Telefon" is "phone" or whatever the phonepad caption/link to the phonepad is called.
Works on my Trion. Improvements as mentioned above more than welcome.
Latest Mortscript beta needed. Can be found here:
http://www.sto-helit.de/downloads/pocketpc/MortScript-4.0RC2.zip
uhmm.. just my 2 cents. there is slightly better way of doing this:
step #1: change band selection to GSM or to WCDMA directly in registry
step#2: flick device radio to flight mode on and then off
Also, step #2 will restart the radio regardles of established connection is present or not.
alternitevely if you would like to close data connection gracefully:
call datadisconnect.exe located in \windows. nice utility btw. it surely has CLI mode as well.
any C / C++ programmer should be able to get this project done in few hours at most.
SecureGSM said:
uhmm.. just my 2 cents. there is slightly better way of doing this:
step #1: change band selection to GSM or to WCDMA directly in registry
step#2: flick device radio to flight mode on and then off
Also, step #2 will restart the radio regardles of established connection is present or not.
alternitevely if you would like to close data connection gracefully:
call datadisconnect.exe located in \windows. nice utility btw. it surely has CLI mode as well.
any C / C++ programmer should be able to get this project done in few hours at most.
Click to expand...
Click to collapse
Great! As I said before, I just did this to have something (not much, I know).
Wouldn´t the "disadvantage" be, though, that you would have to enter your pin every time flightmode is turned off?
Do you know what registry entries this would be?
Is it HKLM,Software\OEM\UMTS,OpMode ? And if so, what would be the values for 3g, GSM and Auto?
EDIT: Think I found it. Auto=0, GSM=1, 3g=2
Is this correct?
Plus, is there any shortcut you can run to toggle flightmode? If so, these two things could be put into another Mortscript scriptlet (it can change the registry).
Thanks!
did a test over the last day I disabled incoming beams (which I've had ticked all the time apparently ) and I manually put the phone into 2g mode but had it connected all the time to gprs. man the battery life more than doubled I've still got 70% battery left after a heavy days of usage.
but I miss 3g speeds for web browsing tho. so I think a tool for 2g to 3g and back would be most appreciated preferably not using mortscript and with a message saying "switching to Xg mode" or something. unfortunately my programming skills are nearly non existant.
anyone
Jeremy
Install Flightmode.exe from WinMobileApps.com and run it via MortScript.
# UMTS
RegWriteDWord HKLM,Software\OEM\UMTS,OpMode,2
sleep 500
Run "\Programme\FlightMode\Flightmode.exe"
sleep 3000
Run "\Programme\FlightMode\Flightmode.exe"
Use OpMode, 1 for GSM only and 0 for Auto.
Thanks, but it was me posting this to ppc-welt
bball said:
Thanks, but it was me posting this to ppc-welt
Click to expand...
Click to collapse
I wasn't claiming to be the author, just wanted to share the information here. Usually it's the other way round, sharing information from the Developers in other forums. Hope it helps and, yes, bball appearently is the Author.
Nono, I didn´t take it like that, I was just surprised and thought it was quite funny to see my solution to this in the thread I originally asked for it
bball said:
Nono, I didn´t take it like that, I was just surprised and thought it was quite funny to see my solution to this in the thread I originally asked for it
Click to expand...
Click to collapse
Yeah, it is funny indeed. But the solution you found yourself hasn't been posted here so I was thinking it should be added so people in this forum can find it. This is the international forum to share information at.
Anyway, thank you for the great solution! It really works fine and I still have the great runtime of my Trion together with fast UMTS where I need/want it. I think this has a high value!
GSM & 3G switching via Skschema Scripts
Hi folks,
I know some of you have beens using Mortscript to change the network band in the registry and subsequently switch to 3G or GSM by clicking.
Well I had a look at seeing if I could do something similiar using a SKschema script.
This is what I have come up with so far.
Skschema has commands which allow it to switch the radio(gsm) on/off as well as writing and deleting values/keys to the registry. (Tested on the Hermes)
SwitchToGSM.sksc
This script Writes to registry the value "1" for OpMode, pauses 1 second, turns radio off, turns radio on and connects to your data connection(GPRS ONLY).
Code:
#r(#rgset) #p(HKLM;\SOFTWARE\OEM\UMTS;OpMode;DWORD;1) #sleep(1000)
#r(#gsmoff)
#r(#gsmon)
#r(#connect)
SwitchTo3G.sksc
This script Writes to registry the value "0" for OpMode, pauses 1 second, turns radio off, turns radio on and connects to your data connection(Auto - if 3G present it will connect to that).
Code:
#r(#rgset) #p(HKLM;\SOFTWARE\OEM\UMTS;OpMode;DWORD;0) #sleep(1000)
#r(#gsmoff)
#r(#gsmon)
#r(#connect)
You could assign both these Skschema scripts to a hardware buttons, even better if you use the voice notes button on the Hermes you could use one script for [press] and the other for [press & hold].
toggle2G_3G.sksc
This script I have tried to add some intelligence into the script, I wanted to use a script for 1 hardware button and for just one [press] to switch to GSM then a second [press] to 3G - so it really toggles between the two modes.
To achieve this I used a little bit of logic and an extra key in the registry.
Code:
#r(#rgget) #p(HKCU;\Software\sk\schema\rad;Gsense;DWORD;0)
#r(#iftrue) #p(set2G)
#r(#rgset) #p(HKLM;\SOFTWARE\OEM\UMTS;OpMode;DWORD;0)
#r(#rgset) #p(HKCU;\Software\sk\schema\rad;Gsense;DWORD;0)
#r(#goto) #p(act)
#r(#label) #p(set2G)
#r(#rgset) #p(HKLM;\SOFTWARE\OEM\UMTS;OpMode;DWORD;1)
#r(#rgdelkey) #p(HKCU;\Software\sk\schema;rad)
#r(#goto) #p(act)
#r(#label) #p(act)
#r(#disconnect) #sleep(1000)
#r(#gsmoff) #sleep(1000)
#r(#gsmon)
#r(#connect)
This is how the script works the "rad" key which I have put in the Skschema registry path, is completely functionless - It's merely there as a check.
The script firstly checks to see if this key exists?
If it does then the script moves along to the "set2G" line.
If it doesn't then the script continues, The OpMode value is changed to "0" - enables AUTO mode. Then the "rad" key is created and the script moves along to the "act" label.
following along from above at the "set2G" label, OpMode value is changed to "1" - enables GSM mode only. Then the "rad" key is deleted and the script moves along to the "act" label.
At the "act" label the current data connection (if present or not) is disconnected, a pause before doing this of 1 second, the radio is switched off with another pause of 1 second, followed by switching the radio back on. Finally the data connection is re-connected.
The "rad" key is used to enable the script to decide which switching is required to GSM or to 3G.
Maybe a similar toggle action in one script could be done in Mortscript?
For anybody with Skschema I have attached the 3 script files.
Chalky.
-------
checkout Skschema tutorials
enable Band selection
SecureGSM said:
Alternatively, you can enable "Band" selection tab using registry editor.
Click to expand...
Click to collapse
Can someone tell me which registry keys to change, to enable Band selection using registry editor? The cab file mentioned did nothing on my device when I clicked on it.
I looked in WM5_Tweaks_Other and saw nothing refering to band selection. Thanks.
Hi. I am doing a program with a botton icon to do this.
to activate only gprs:
1) Change the registry.
2) turn radio off.
3) turn radio on.
but only when i turn off the radio using comm panel the system "refresh" its data from registry and then it works. Any idea?
Thanks

CellProfiler + WM6

Hi guys, i'm trying this program (VERY VERY useful!!)
On my Tytn LVSW WM6 works without the option "Communicate over GSM-Modem"
It shows a "COM2 opening error" when try to learn the cell with the function enabled.
I'm asking you if there are convenients reasons to try to communicate with the gsm modem (ie: save battery, or better/comprensible cell codes).
The program say that if i change "detection method", i have to rebuild the cell id database (so i hope there are different codes.)
Ps: which com is assigned to GSM modem on a tytn with WM6 ?
I HIGHLY recommend trying out phonealarm (the paid version) as this does the job WAAAAAAAAAAAAY better. Cell profiler has jack all support when compared to phonealarm.
Ive used it since i bought my TyTN (I used to have Magic Profiles Pro on my SE P900....a lifesaver) and it is just AWESOME.
i know that palarm goes well, but there are A LOT of options & settings that i don't need, also it needs + resources...
try Comm Mgr Pro
http://forum.xda-developers.com/showthread.php?t=299070
www.commmgrpro.com

Automatic WiFi on startup (Hermes 200)?

Hello,
I'm new here (so please don't shoot me, i'm quite a rookie) and I've been doing a lot of search-work, unfortunately without result yet.
I'm trying to modify the registry for automatic WiFi "on" when the Hermes 200
is starting up after a power down.
Is there any possibility by modifying the registry or do I have to go deeper (dll, ROM etc?). I allready tried changing some settings in the registry without any result.
Some information:
PPC: HTC TyTn (Hermes 200)
OS: WM 5.0
ROM: 2.11.254.1
I would be very gratefull if anyone can point me in the right direction!
i'd like to know this as well, would b prtty nice to have.
use this: http://www.vijay555.com/?Releases:VJVolubilis and put a shortcut with wifion option in \windows\startup.
cheers,
dan
Brilliant
This works!
Notice that you'll have to edit your command line like this:
\vjvolubilis.exe" -wifion
Many thanks, this was what I'm looking for!
Well, now we have succeeded in turning on Wifi the next issue to overcome is: Automatic connection to a preffered Wifi Access point. But how?
I suggest the tiny program vijay555 wrote does dynamicly change some registry settings (binary strings) to invoke the desired actions. Or do I think too easy?
Would it be possible to auto-connect to a preffered AP?

Couple of Xperia X1 questions?

So I bought the X1 last week and I have to say that I’m very impressed about it. I first didn’t know which one to choose: the X1 or Touch HD but after I had seen the HD…. It is just too big and therefore not practical anymore.
So after playing around with the X1 I have a couple of question and maybe you guys can help me. Until now I am not able to change my default weather location to a city which is not in the default list. When using the SPB panel I can choose my city but because most of the time I use the standard X1 panel I like to change it here also. Does somebody know if there is a fix/patch available for changing the default weather location to a city that is not in the list?
I also changed the default button actions where I changed the right button to contacts. However after using the TF3D panel for a while it is resetting the button settings to default when switching to the X1 panel again. Does somebody know is this is a bug in de TF3D panel?
I like to know if it is possible to permanent suppress the ‘making connection to gprs, 3G’ message when connection to internet. I don’t like the message because once an hour I connect to check my mail, update weather etc. and also use the ‘automatic disconnect after idle’ to save battery power.
Is there a way to change the default language of windows mobile without flashing the ROM? I heard there is a registry tweak for this but can’t find anymore info about this.
The last question I have is about the usb-pc connection setting. When I connect my girlfriends mobile (Touch Diamond) it every time asks if you want to use activesync or use it as a diskdrive.
I like to enable this option on my X1 also because now I every time have to go to settings to change the way the phone has to connect (active sync or diskdrive). I though this was a default feature of windows mobile but don’t have the checkbox to enable or disable this question. Does somebody know why?
I hope some of you can help me out with these questions.
uitje said:
Until now I am not able to change my default weather location to a city which is not in the default list. When using the SPB panel I can choose my city but because most of the time I use the standard X1 panel I like to change it here also. Does somebody know if there is a fix/patch available for changing the default weather location to a city that is not in the list?
Click to expand...
Click to collapse
The weather locations in the X1 panel is a hardcoded list in the SonyEricssonPanel.dll and CITY.dll files. They collect the weather data from AccuWeather.com so maybe by patching these files with a location that AccuWeather supports it is possible?
on8a said:
The weather locations in the X1 panel is a hardcoded list in the SonyEricssonPanel.dll and CITY.dll files. They collect the weather data from AccuWeather.com so maybe by patching these files with a location that AccuWeather supports it is possible?
Click to expand...
Click to collapse
Ok, this doesn't sound like something I can do myself.
Do you mind to tell me how to set the auto-disconnect after idle? My X1 keeps the data connection open permanently after periodic mail checks etc... How to do it?
Ciddy said:
Do you mind to tell me how to set the auto-disconnect after idle? My X1 keeps the data connection open permanently after periodic mail checks etc... How to do it?
Click to expand...
Click to collapse
I found it at: http://www.megaupload.com/?d=V8D6ARI2
Works perfect for me.
uitje said:
The last question I have is about the usb-pc connection setting. When I connect my girlfriends mobile (Touch Diamond) it every time asks if you want to use activesync or use it as a diskdrive.
I like to enable this option on my X1 also because now I every time have to go to settings to change the way the phone has to connect (active sync or diskdrive). I though this was a default feature of windows mobile but don’t have the checkbox to enable or disable this question. Does somebody know why?
I hope some of you can help me out with these questions.
Click to expand...
Click to collapse
This is not a WM feature, it's a Diamond/TouchPro feature. But I also miss this too (having both a TP and X1) There have been a lot of Diamond features ported to the X1 so I too would appreciate anyone having found a way to include this.
apprentice said:
This is not a WM feature, it's a Diamond/TouchPro feature. But I also miss this too (having both a TP and X1) There have been a lot of Diamond features ported to the X1 so I too would appreciate anyone having found a way to include this.
Click to expand...
Click to collapse
You are right, this morning I discovered that is is a Diamond/TouchPro feature. I tried to install the htc usbtopc popup application found at:
http://forum.xda-developers.com/showthread.php?t=427956
After installing you will see the option that we are looking for. However when connecting the usb cable nothing happens. It still connects as you have specified under usb to pc settings. and is not coming with the question: activesync or diskdrive
uitje said:
You are right, this morning I discovered that is is a Diamond/TouchPro feature. I tried to install the htc usbtopc popup application found at:
http://forum.xda-developers.com/showthread.php?t=427956
After installing you will see the option that we are looking for. However when connecting the usb cable nothing happens. It still connects as you have specified under usb to pc settings. and is not coming with the question: activesync or diskdrive
Click to expand...
Click to collapse
I think this is because that cab file is just a pop-up which does not link to the actual required program/libraries. I read through the post you mentioned but could not see (for the time being) how it would work on the X1.
Thanks a lot. Unfortunately GPRS seems to suck at my cheapo provider today, so I couldn't quite verify it yet...

Hidden CommManager 3G to GSM feature for wm6.1 roms

I just found out, there is hidden "3G switch" support in HTC CommManager.
So there is no need to upgrade ROM with beta packages from Mega if you just want this feature.
To activate the 3G feature you need:
0. Kill CommManager process. (fdcsoft task manager is your friend).
1. add these regkeys
[HKEY_LOCAL_MACHINE\Software\OEM\UMTS]
"OpMode"=dword:00000001
"PrefRAT"=dword:00000001
@=dword:00000000
"PrefDomain"=dword:00000002
[HKEY_LOCAL_MACHINE\Software\OEM\UMTS\BandSelection]
"Band"=dword:00000000
2. you need to replace some item in CommManager GUI with 3G item:
For example if I want to replace "Bluetooth" I will change this key (before its value was "Bluetooth")
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\2]
@="3G"
3. copy these images to your windows folder
Function_3G.png
Function_3G_Disable.png
Thats it.
You can choose 3G or GSM with one click now =)
tested with HTC CommManager_2_7_5_0,
Iolite version,
from RUU_Iolite_hTC_Asia_WWE_1.11.707.1_Radio_Sign_12.4 1.30.16_0.41.30.12_Ship,
released 3/3/2009
3g connection
the problem is that in Kaiser WM6.1 latest radio(expected to be the best) or any other radios, when in 3g mode u cant make a call. It just starting to search operation.
Any solution for this will be highly appriciated by many ppl in the form
tnx in advance
there is an even easier way built in the new roms, my 3g coverage is crap at best
go to start/settings/personal/phone at the bottom of the screen go to (gsm/umts services) then in the box tap band then get settings and change from auto to gsm and all sorted this is an easier way if you dont need to be swapping and changing from one to the other.
This could be done absolutely ages ago with Advanced Configurator but thanks anyway

Categories

Resources