REQ: Tool/shortcut o switch from 3g to GSM and back - 8525, TyTN, MDA Vario II, JasJam General

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

Related

Engineering Mode

Hey I just found this while browsing my registry on the 8125. It looks interesting but I can't risk having to hard reset right now. I just have too much going on to have to redo my phone at the moment. If anyone can please check it out.
Engineering Mode
Code:
[HKEY_LOCAL_MACHINE\Software\HTC\EngineerMode]
"BuildInEngineeringModeApp"=dword:00000001
"LaunchEngineerModeAppDialStr"="*#*#364#*#*"
Try dialing this in the phone *#*#364#*#*
Please post any findings.
Later; Lew
"....please dial 611 for customer assistance...."
Thats all that happens?
You have to turn it on first (its shut off.) Edit the "BuildInEng..." key to "1" and reboot (soft reset)
I've tried this on the SDA with no results. On the MDA it comes up but all data is blank! If we can figure out WHY (perhaps RAPI locking or something?) we might be able to make that work!
Genesis3 said:
You have to turn it on first (its shut off.) Edit the "BuildInEng..." key to "1" and reboot (soft reset)
I've tried this on the SDA with no results. On the MDA it comes up but all data is blank! If we can figure out WHY (perhaps RAPI locking or something?) we might be able to make that work!
Click to expand...
Click to collapse
unfortunately it seems to work like that on every htc wizard, not depending on ROM version. i guess this app needs some special library which is not included in 'standard' versions of device aimed on regular consumers but only for network operators etc (like netmonitor in nokia mobiles).
No need to add the registry hust simply type "*#*#364#*#*" without quotes on the phone dial screen it will automatically run the app.
Works on the new IMATE and Qtek roms, but has no data on the earlier ones......
jeet said:
No need to add the registry hust simply type "*#*#364#*#*" without quotes on the phone dial screen it will automatically run the app.
Click to expand...
Click to collapse
if you change HKEY_LOCAL_MACHINE\Software\HTC\EngineerMode\LaunchEngineerModeAppDialStr value to - for example - *789#, then you can access engineer app via *789# code. much easier and quicker.
Works on Palm Treo Pro out of the box !!!

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?

OpenCellClient - a Windows Mobile opencellid client

Hello all!
I started a new project named OpenCellClient. This application is a scanner for the open service http://www.opencellid.org. This project wants to create a complete database of CellID worldwide, with their locations.
This is very useful for a lot of things, working like a "second GPS", for devices without build in GPS receiver.
More than this, RemoteTracker (version 0.3.0-0 and above) can use this database when the GPS receiver could not find the signal, or if the device does not have this radio inside.
Thinking about the great help this project gives to us, I decide to contribute creating a client for Windows Mobile.
How it works? Start the application and go walk, drive or whatever you want do to outside. You GPS will be turned on and the software will scan for cell towers. Each tower found is stored with their coordinate. You don't need to stay connected to internet spending money transfering data to the opencellid website. You can send the collected data later, in your home, work or any wifi spot. After that, you can make searchs using opencellid web site. And we can't forget: this location will be used by RemoteTracker too.
If you want to give a try, please go to http://opencellclient.sourceforge.net and download the cab file.
Requirements:
- .NET CF 3.5;
- SQLServerCE 3.5.
Keep OpenCellClient up to date!
There is an integration with AppToDate. This application verify if configured softwares are up to date or not. If not, you are alerted, and invited to download the new version! Very cool and useful.
You can download AppToDate here.
After install AppToDate, please download and run OpenCellClient to configure AppToDate.
Try this and don't forget a new version never more!
--> It is a work in progress. In future versions I will make a lot more.
Support this project
You can support this project making a donation clicking here or clicking the banners in the project website.
Regards,
Joubert
looks great thanks for the contribution! i'm getting ready to download it now.
I drive a lot and i'll be more than happy to contribute for France ID's
Very good
Please don't forget this is my first version and may have bugs. If you find one (or more, of course), let me know!
Cheers,
Joubert
Alas, I am not on GSM, but it is fantastic to see you continue to put out fantastic open-source code and tools. Keep up the great work... RT will be built into my ROM always!
Very nice! Will try it on my way to work.
Question: Will it continue to scan when I 'close' the applciation, i.e. put it in the background and use the phone for other tasks, like - äh - doing a phone call or, surfing the web, etc?
Another application using GPS in longer intervals to conserve the battery found out that the initial fixes after the GPS was powered up again (after 3 secs of no GPS usage, the GPS powers down) can be off a bit. I need to check what they did.
Klaus
Ok, I found a small problem: Although WiFi is enabled and a cell is found, the 'Sent to OpenCellID' menu entry is grayed out.
Klaus
Question: Does the API actually give you the Cells 'in view' or only the cells the device is connected to? Because the first would only give you the cells of your provider and not those of competitors.
Although, I understand this would be out of your control, as it happens behind the scenes.
Klaus
How can I send the collected date to the website? This part is always grayed out and not selectable? Still a bug?
xd1936 said:
Alas, I am not on GSM, but it is fantastic to see you continue to put out fantastic open-source code and tools. Keep up the great work... RT will be built into my ROM always!
Click to expand...
Click to collapse
Thank you very much
Cheers,
Joubert
When I exit the app, WiFi gets disabled.
I do have the impression the app stops logging when send to the background, or when the device goes to sleep.
Furthermore my device reacts very sluggish when the app is running in the background.
I hope this feedback helps.
Klaus
krheinwald said:
Ok, I found a small problem: Although WiFi is enabled and a cell is found, the 'Sent to OpenCellID' menu entry is grayed out.
Klaus
Click to expand...
Click to collapse
Hi!
This option would be grayed ONLY if your device is not a GSM device. I will release a new version without this rule. I think the test I did is not the same for all devices.
Cheers,
Joubert
krheinwald said:
Question: Does the API actually give you the Cells 'in view' or only the cells the device is connected to? Because the first would only give you the cells of your provider and not those of competitors.
Although, I understand this would be out of your control, as it happens behind the scenes.
Klaus
Click to expand...
Click to collapse
The API I used only show me the tower I'm connected. I didn't search for triangulation, but it would be a good idea.
Cheers,
Joubert
Lycox said:
How can I send the collected date to the website? This part is always grayed out and not selectable? Still a bug?
Click to expand...
Click to collapse
Hi!
This option would be grayed ONLY if your device is not a GSM device. I will release a new version without this rule. I think the test I did is not the same for all devices.
Cheers,
Joubert
krheinwald said:
When I exit the app, WiFi gets disabled.
I do have the impression the app stops logging when send to the background, or when the device goes to sleep.
Furthermore my device reacts very sluggish when the app is running in the background.
I hope this feedback helps.
Klaus
Click to expand...
Click to collapse
Hi Klaus!
There is a debug option you can turn on. With this option the program create a txt file with debug information you could send to me.
Thank you for your tests
Cheers,
Joubert
I have tested OpenCellClient and have found the following issues:
1. When I am closing the program with the x-Button (top right corner), OpenCellClient is still visible in the process list and use 1,74M of RAM (visible with TaskManager). When closing with the Exit-Button (down right corner) everything is fine. The process/application is not visible in the Taskmanager.
2. When closing the application the WiFi will be disabled also (already found by other users). The debug-Log does not say anything about WiFi.
3. When enabling WiFi (registry key: wifi) the application crashs after starting the scan process. I know that wifi is not yet enabled, but I have tried it .
I have also 2 wishes:
1. I can change the width of the columns, but after restarting the application I have to change the width again. It is possible to save the width of the columns ?
2. All new CellIds should be visible at the beginning of the list, not at the end.
Regards
kuzco
I have a little remark on the way it works.
Currently, when i click start, it opens the table with cell IDs, starts finding etc. Then i click Send and it brings me back to the welcome screen with the progress bar, ok. But after that i'm unable to go back to the table without stopping and restarting
I'd rather have some kind of tabs so i could swap between screens at will, if possible
Otherwise it worked fine, i sent around 50 different IDs today, no problems so far.
kuzco1 said:
I have tested OpenCellClient and have found the following issues:
1. When I am closing the program with the x-Button (top right corner), OpenCellClient is still visible in the process list and use 1,74M of RAM (visible with TaskManager). When closing with the Exit-Button (down right corner) everything is fine. The process/application is not visible in the Taskmanager.
2. When closing the application the WiFi will be disabled also (already found by other users). The debug-Log does not say anything about WiFi.
3. When enabling WiFi (registry key: wifi) the application crashs after starting the scan process. I know that wifi is not yet enabled, but I have tried it .
I have also 2 wishes:
1. I can change the width of the columns, but after restarting the application I have to change the width again. It is possible to save the width of the columns ?
2. All new CellIds should be visible at the beginning of the list, not at the end.
Regards
kuzco
Click to expand...
Click to collapse
Thank you kuzco! Everything will be verifyed
Are you using version 1.0 or 1.1?
Cheers,
Joubert
TrYde said:
I have a little remark on the way it works.
Currently, when i click start, it opens the table with cell IDs, starts finding etc. Then i click Send and it brings me back to the welcome screen with the progress bar, ok. But after that i'm unable to go back to the table without stopping and restarting
I'd rather have some kind of tabs so i could swap between screens at will, if possible
Otherwise it worked fine, i sent around 50 different IDs today, no problems so far.
Click to expand...
Click to collapse
Hi!
Yeah, I know the interface is not good enough But you can see the table using the option Actions/View data.
Thank you for testing!!!
Cheers,
Joubert
joubertvasc said:
Thank you kuzco! Everything will be verifyed
Are you using version 1.0 or 1.1?
Cheers,
Joubert
Click to expand...
Click to collapse
I was running V1.0, but I have tested now V1.1. The problems still exists.
Regards
kuzco

New audio switch program for skype and others.

This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.
I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.
the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.
the configuration file (command.txt) is under this format:
1000
skype
fring
etc
the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.
the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).
Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!
It is manly intended for little expert users, as it is still in "beta" fase, hehehe.
How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.
Do not launch two or more instances of the program at the same time, could really mess things up. -- se the forum (thanks tucahara)
To stop the program, u must use a process manager.
it would be good if someone could make a cab to install it. -- done see the forum (thanks tucahara)
this is still a beta, I intend to make ajustments as people give feedback.
Thanks,
hope u like.
-----first update---
now, an file called "audioswitch_error.txt" in the root directory will hold the error messages.
------------ List - Working ------------
wizard - I tested
P3301 or P3300 - I tested
att tilt - I tested
touch 3452 and 3450
touch dual
touch cruise
touch HD
Sony Ericsson Xperia X1
BenQ E72
Titan --> see the forum
------------ List - NOT working ------------
T-Mobile Diamond
HTC Touch by Sprint
Samsung SGH-i780
------------------------------------------------------------------------------------
check the new thread at:
http://forum.xda-developers.com/showthread.php?t=502361
new aproach to do the switch and now open source, even with an class that others can improve and put in other apps...
Some people complain about me not openning the source of the app, I have just made this way because there was proprietary code inside and I had no time to rewrite it without the proprietary code.
I have made the best I could, and now I had some time and rewrite the app in open source, to those who only complain about it, get the code and make it better instead of complaining!
Thanks for all that encourage me to continue the work and helped the development.
will retire this project for while...
thanks u all.
Audioswitch for Skype
On HTC Touch by Sprint (CDMA, also known as Vogue), audioswitch does switch the audio in the Skype 2.5 windows mobile PPC from external speaker to handset. Unfortunately, the microphone is then also disabled. I hope you'll be able to tweak your audioswitch to resolve this.
Thank you so much for developing this wonderful applet. I'm sure you will have the gratitude of many frustrated Skype windows mobile users.
What really happens is that when the sound output is switched in some phones, the microphone gain changes too. This happens because the phone thinks it is a "normal call".
Most of the times the mic gain increases, but in your phone it must be decreasing. Try to figure out in registry where the mic gain controls are recorded and chage all of then to the same value. I had this issue with my P3301 and solved this way, but there is quite a time now and I do not remenber where are the reg keys to change, but I have found the information here in the forum.
I will try to figure out for other "hack" to solve this issue... thanks for reply.
doesn't work at T-Mobile Compact IV (aka Diamond)
Sound went to loudspeaker....
PS: fring last version working fine with sound at mine phone (without any additional programms). Sound is going to correct destination automatically
I just tried the latest version of Fring, which automatically switches audio to earpiece when call is connected.
The same issue occurs with the new Fring as I described above with your audioswitch program: I can hear audio through earpiece, but microphone doesn't work (or is inaudible).
I couldn't find a tweak or registry hack to correct this. Any help would be greatly appreciated.
MarceloFB said:
This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.
I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.
the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.
the configuration file (command.txt) is under this format:
1000
skype
fring
etc
the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.
the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).
Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!
It is manly intended for little expert users, as it is still in "beta" fase, hehehe.
How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.
it would be good if someone could make a cab to install it.
this is still a beta, I intend to make ajustments as people give feedback.
If someone like this program and wants to make an donation...
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=4WLQVA6LTKWSL&lc=GB&item_name=marcelofb&item_number=marcelofbxdadonations&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
Thanks,
hope u like.
Click to expand...
Click to collapse
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.
Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.
Great program though. Works beautifully.
OOOH
If this program works on the new BenQ E72 I'm getting in a couple of days I'll certainly donate!
THANKYOUTHANKYOUTHANKYOU
hello,
it does not work on hermes (tytn).
by the way "troca2" does work on hermes! - maybe you guys want to work together?
baal_zebub said:
hello,
it does not work on hermes (tytn).
by the way "troca2" does work on hermes! - maybe you guys want to work together?
Click to expand...
Click to collapse
hehhehe, I made troca2, I will see if the switch code is the same or if I have made some mistake...
are u sure you have put the program in the correct directory?? I will make some modifications to have an error feedback. So u can see if something is wrong...
JKingDev said:
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.
Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.
Great program though. Works beautifully.
Click to expand...
Click to collapse
It is a good idea to use hook, I have not think of it!
I use a proprietary code included in a lib at the company I work for to make the "switch" but it is not different of what u find here in the forum.
Maybe we can make an effort to re-make it with hooks...
so this program must run all the time? after every softreset you have to start it?
is it not easier with mortscript (for example) to make an shortcut that opens skype as well as the audioswitch program? and closes the audioswithc program when you close skype?
I am using it right now and it seems to work perfect:
i used this script after installing mortscript (http://www.sto-helit.de/):
run( "\Windows\SkypeSoundSwitch.exe" )
runwait( "\Program Files\Skype\Skype.exe" )
close( "troca2" )
(see that in my case i downloaded your original program and renamed it to skypesoundswitch.exe and put it in the windows map)
I renamed it so i could remember what the purpose the file had.. changed nothing but the name!
Thanks for the program by the way! it always worked perfect!!
so to sum up the way i have it now (most files included) on my xperia x1:
1) installed skype
2) installed mortscript
3) add skypesoundswitch to \windows\....
3) add skype.mscr to \.... (root)
4) overwrite skype.lnk with the new skype.lnk in \windows\start menu\programs\..
in the way whenever i open skype(.lnk), it opens skype.mscr, this opens skypesoundswitch.exe and than skype.exe... when you close skype.exe it closes skypesoundswitch.exe...
it seems to work perfect.. but hey maybe i am doing something totally wrong here.. than just shout!
by the way, the .mscr and the .lnk files are offcourse edit-able .. so you can put the files everywhere you like..
madhijs said:
so this program must run all the time? after every softreset you have to start it?
is it not easier with mortscript (for example) to make an shortcut that opens skype as well as the audioswitch program? and closes the audioswithc program when you close skype?
I am using it right now and it seems to work perfect:
i used this script after installing mortscript (http://www.sto-helit.de/):
run( "\Windows\SkypeSoundSwitch.exe" )
runwait( "\Program Files\Skype\Skype.exe" )
close( "troca2" )
(see that in my case i downloaded your original program and renamed it to skypesoundswitch.exe and put it in the windows map)
I renamed it so i could remember what the purpose the file had.. changed nothing but the name!
Thanks for the program by the way! it always worked perfect!!
Click to expand...
Click to collapse
That works great too. The advantage of this new program is that it will only reroute the audio when skype is in the foreground. You could minimize skype and leave it running, and audioswitch will automatically restore your sound. Get a call and open up skype and your sound goes back to the earpiece.
I will create the code to do it with a windows hook when I get a chance MarceloFB. Please pm me your email address. All you will have to do is insert the code to read the config file, check the window names, and when necessary enable or disable the switch. Or please show me where to find details on how to code this myself. Thanks!
Hat off to both of you and really glad that we will have a much improved solution.
JKingDev said:
That works great too. The advantage of this new program is that it will only reroute the audio when skype is in the foreground. You could minimize skype and leave it running, and audioswitch will automatically restore your sound. Get a call and open up skype and your sound goes back to the earpiece.
I will create the code to do it with a windows hook when I get a chance MarceloFB. Please pm me your email address. All you have to do is insert the code to read the config file, check the window names, and when necessary enable or disable the switch.
Click to expand...
Click to collapse
okay! I only used skype to make calls and than get offline so this way did the trick for me! but i have to admit it would be much better when i can keep skype online!
this new program does the trick indeed! it changes the output back when i minimize skype!
But still my question above, you have to start this program on every startup isn't it? what does it do with the battery?
madhijs said:
okay! I only used skype to make calls and than get offline so this way did the trick for me! but i have to admit it would be much better when i can keep skype online!
this new program does the trick indeed! it changes the output back when i minimize skype!
But still my question above, you have to start this program on every startup isn't it? what does it do with the battery?
Click to expand...
Click to collapse
Yes it must be run at startup but placing a link in your startup folder will make everything transparent to the user. I don't think there will be an effect at startup. In it's current form it must check every second (or whatever you set the timeout to), but its only a little bit of code. I am not really sure if that will really have an effect. The more often it checks the faster it will switch when you open skype, but also the more processor use. Check less often and it uses less processor, but there might be a delay in switching the audio. I proposed doing it by hooks though because this would use even less processor. The app will only check when a new window takes focus, rather than just periodically checking. This way it only checks when it needs to and will always switch instantly.
I am glad u liked the program.
I will try to answer most of the questions...
1- JKingDev:
I have though in your idea of using hooks, but if I use a hook, the program will have a loop anyway to check for the messages(hidden loop ;-) ), and it would have to have an "fake window" or something to process the messages. This way we have only one loop, in a very simple command line program with high optimization, so we have to think what is really the best way of doing it... I will pm u as soon I have any time to "program" again. hehe
2- people that uses mortscript with the old "troca2"
I will try to make a way to make this program work the same way as troca2, maybe with an "argc argv", wait the next update.
3- the battery life??
if u notice any battery life decreasing with the usage of the program, configure a bigger delay, maybe 5000ms, it is a matter of adjust the "timming" for each processor. Post your results here so others can find the optimum value for the delay in their phones.
4- have to start the program every reset?
yes, just put it in the startup folder.
maybe someone can make an cab that put the program in the right place and a link in the startup, it would be cool! I dont have an easy program to deal with cabs, and the vs projects for cabs.... I really cant make that thing work!!
well it is only the batterylife i was worried about. but i'll try running the phone this weekend with the program running and doing some skype.. lets see how it turns out!
For folks who have issues of mic on using this program, there is a quick solution for this problem. You can try sjphone. It provides a internal mic volume control. However, the major setback is that it's only working in wm5.
my 2 cents
weekendli said:
For folks who have issues of mic on using this program, there is a quick solution for this problem. You can try sjphone. It provides a internal mic volume control. However, the major setback is that it's only working in wm5.
my 2 cents
Click to expand...
Click to collapse
will check this, but people reported that worked in xperia... and it is running in my P3301... anyway, will check and post an wm6 build if it is the case... check the error file and see if it tells anything.
Other thing, this program uses low level api`s, so your windows MUST be fully unlocked for it to work in wm6.

[Q] Programatically change Phone-Band Settings

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

Categories

Resources