Turn off WLAN when IDLE and NOT connected? - General Questions and Answers

hi,
im searching for a solution to automaticly turn off wlan when its accidently leaved on and has no connection after some minutes.
im experimenting with mortscript but its a bit difficult cause i can only toggle wlan (no explicit on/off).
any ideas? thanks!!!

DocMAX said:
hi,
im searching for a solution to automaticly turn off wlan when its accidently leaved on and has no connection after some minutes.
im experimenting with mortscript but its a bit difficult cause i can only toggle wlan (no explicit on/off).
any ideas? thanks!!!
Click to expand...
Click to collapse
I suggested something similar previously, and that was a program that would manage WLAN such that it keeps WLAN off when not needed, and once another program tries to access net (connect), it would then turn on the WLAN automatically so that connection can be used with that program.
Maybe something that could be implemented into the existing G-Profile.

There is a native timeout option somewhere in wlan settings but it only works when you are not connected to any router. And it should turn off when device is suspended if you haven't tweaked a specific regkey

you can use mortscript to run an app which toggles Wifi Off at a specific interval depending on your connection state. there are many small cabs scattered around the forum (easy to find)...

yeah i did it with mortscript. i have about 10 if-clauses. (start fring when wlan available etc.) very powerful scripting engine! i also created some reg keys which are monitored by homescreen+...

Related

Wifi auto connect?

Hi,
I wonder if there is a way to let my machine (PDA Phone: Dopod D810 with WM6) switch on the wifi connection automatically whenever I launch a program that requires Internet access (such as the Internet Explorer).
Now when I launch the IE and type in an URL, it will automatically switch on the GPRS connection to load the page. I don't want this. I want it switch on the Wifi connection automatically instead of the GPRS.
Could anybody help?
Thanks a lot!
That's a good idea. It's very anoying that we have to manualy switch on Wifi before clicking on IE.....
There must be a way, I bet it's just a simple reg tweak.
Anyone out there care to help out?
Thanks in advance......
I use PIE a lot over EDGE, so having WiFi on evertime i start PIE would be an overkill and a waste of battery, however, what about mapping a button/key to WiFi On/Off switch? Would that be possible?
daleksic said:
I use PIE a lot over EDGE, so having WiFi on evertime i start PIE would be an overkill and a waste of battery, however, what about mapping a button/key to WiFi On/Off switch? Would that be possible?
Click to expand...
Click to collapse
test AEbutton

WLAN autoconnect instead of ISP Modem

Hello,
I could'nt find anything usind forum search regarding this topic, so I create a new one:
I am looking for a way to estalish an WLAN connection automaticly when a program wants to access the internet instead of establishing a modem/WAP/GPRS connection.
The idea: Some Programs like Satelite Update have an option "autoupdate every day at 4 am" or the option "check for new messages every hour" in Messaging.
If marked. those programs are trying to set up a modem connection configured in Settings/connections/Connections
Of course I disabled those (together with all autoconnect options inside those programs) so no program could dial out over an expensive Phone line, because I have everywhere free access to WLAN (at home, work,...).
But it would be nice to use those autoconnect features over WLAN, e.g. every morning before I wake up, the device downloads satelite update data and all email messages by enabling wlan on demand und disabling wlan after downloding everything.
Is there any way to configure a wm6 device to enable and use WLAN instead of a modem connection? Unter Connections -> New Connection there ist no WLAN available (of course there are just modem devices including bluetooth modem option).
Is there any 3rd party Software or trick? E.g. is there some kind of virtual modem that trigers WLAN instead of connecting oder GSM Module...?
best,
Sunny
strange.. the best forum for WindowsMobile Devices and noone knows a trick or software.
Well, seems it is really not possible... what a shame that MS didn't think at this possibility - especially in this modern age where WLAN ist nearly everywhere
best,
Sunny

Any method to 'fool' programs into using a Bluetooth GPS

We all know the Tilt's GPS is slow, uses a lot of battery, and often continues to use battery after exiting all programs using it unless you soft reset. So I use my bluetooth GPS.
Works great, for programs which have a com port setting. There are some which do not, some are on the todo list, but some other programs are no longer under development.
What I'd like to be able to do is to 'fool' any program into using the Bluetooth's com port. I have GPSGate listening to the bluetooth GPS and outputting to com1 so that I can run whatever number of programs using the GPS data on com1, but I can't get several Wifi scanners to use com1, can't get the camera's GPS feature to use com1, etc.
I've tried a few things like messing with the built-in GPS settings and changing them to com1 hoping programs might then access com1, tried setting GPSGate to com4 to see if programs would access it instead of the built-in, but I think when programs access the built-in device they don't access it on com4, they access it on GPD4 or such.. Anyway.
So again, how to make programs which you cannot specify a com port use GPSGate's com port? Or another program if necessary..
Thanks!
Bumping in case anyone missed it.
Thanks!
SOLVED! But not for the faint of heart.
The developer of BasicGPS pointed me to this URL when I was asking him if he could implement selecting the com port for the GPS, since I use GPSGate with a Bluetooth GPS, not the built-in one:
http://msdn.microsoft.com/en-us/library/bb202089.aspx
From this, following these steps, I was able to make the Intermediate Driver use COM1, therefore using GPSGate/Bluetooth! So far this works in BasicGPS and I'm pretty sure it works in the camera too, so probably works in every program! Good news for people who hate the built-in GPS as much as I do!
Here are the basic steps, but you'll want to read the URL above. It's really written for developers, which I am not, but it made enough sense for me.
I used Resco Explorer to browse into this registry key. I made a copy of the whole key, then browsed in.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers
There is a key named CurrentDriver, which was set to GPSOneDevice, which is apparently my built-in GPS. So I made a copy of the whole GPSOneDevice registry key, named it GPSGate. Then went into that key, changed the InterfaceType from POLL to COMM and added a string called CommPort and set it to COM1: where GPSGate outputs its info. I also modified the FriendlyName to "GPSGate Bluetooth". Finally, I changed the CurrentDriver to reference my new GPSGate registry key, and voila!
I'm not 100% sure it's working, as the built-in GPS is warmed up and would respond fairly quickly, but in a few days I'm going to try the camera in GPS mode and see if it immediately gets a fix from my Bluetooth unit vs 5+ minutes with the built-in GPS.
That said, I've tried GPSTest, BasicGPS, camera, etc, all get a fix immediately and update with the Bluetooth GPS on. If I turn the Bluetooth GPS off, they all stop getting updates. Previously when I was trying to figure out how to do this, I would discover the built-in GPS was still being used because I'd turn off the Bluetooth GPS and programs would continue to get new GPS data. So this tells me it's working! I'll follow up again in a few days to say for absolute sure.
Yay!
Just a followup here.. I think it's working, but if I monitor the data on COM9 (bluetooth) or COM1 (GPSGate re-distributing COM9 data), the data streams in at a reasonable pace.. Perhaps 6k of data in 10 or so seconds.. I didn't measure it closely.
But when I monitor data on COM4 the data is very fast, after about 10s it was up to 60k and when I left a few different programs open for a while they either crashed, never got a real lock, or locked up.
So not sure why, but the string of bluetooth->gpsgate->intermediate driver is causing a LOT more data to be produced.
I wasn't planning on using the intermediate driver for applications, I am still going to use the COM1 port for that when possible, but I wonder about the stability of using the camera and/or other programs which can't change the com port with this configuration.
Oh well! So far the camera seems to pick up a coordinate very quickly and probably disconnects from the GPS, so it's probably fine.
I suppose if I were truly curious I could capture the NMEA data and compare between the two. If anyone can do that who is also curious, I can do it and attach the data. I wouldn't know what to look for.
Hi,
ok, perhaps I know the Problem why my intermediate driver doesn't do his job. I can find this key in my reg:
Code:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers
But that is all. This key hasn't any values or subkeys. But why?
I'll try to find out the default Settings...
So. I've created following settings:
Code:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver
CurrentLogFile="\Temp\gps.log"
IsEnabled=dword:00000001
HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers
CurrentDriver="TestFile"
HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers\TestFile
File1="\Temp\test.nmea"
FriendlyName="File Test #1"
InterfaceType="File"
After creating settings I "rebooted" my device. Then I start my GoogleMaps-App and configured it to use "managed GPS".
Result: GoogleMaps didn't get data from test-file and I cannot find the log-file in Temp-Folder. What the hell is going wrong here?
YFI: If I configure GoogleMaps to use GPS an COM4 (115200 Baud) then all works fine.

GPRS and WiFi auto-connect/disconnect troubles

Even though WiFi is up and running, my phone keeps getting connected via GPRS automatically. Although most programs use the WiFi connection, sometimes they switch over to GPRS. Also, when I reboot the phone, WiFi gets deactivated and GPRS kicks in automatically. Of course, this is a bad thing since my carrier allows only 1MB of downstream on GPRS.
The other problem is that WiFi keeps getting disconnected after a period of inactivity. Now I don't mind this happening as it saves battery, but I don't want this to happen when I'm at a place having access to a power source. Strictly speaking, I could live with the WiFi getting disconnected, but the irritating thing is that sometimes it just doesn't reconnect - instead, a baloon pops up informing me of all other wireless networks available - my network isn't listed! Then after a few more minutes, it automagically connects to my network. Sometimes, to get the wifi to connect, all I have to do is click on the "G" icon (I'm about to open the wireless manager) and the WiFi starts to connect! Just w.t.h is going on here? :S
Now the common "solution" for the GPRS problem that's floating around the net is to use a program that disables the GPRS connection, like Modaco NoData or such, but I'm looking for a more permanent solution (regtweak?) by which:
1) GPRS is never connected and if connected, never used by any program IF there's an active WiFi connection
2) When the phone (re)boots, WiFi should be activated and if any "known" networks are found, should connect to it automatically, else it should be deactivated
3) Perhaps WiFi/GPRS can be enabled/disabled based on the cellid/GPS and/or time schedules? Now I know of programs that can do this, but I'm looking for something extremly light, preferably which doesn't have a GUI and/or runs as a service and can be configured by xml/ini/reg (or maybe have a seperate GUI for settings)
Any ideas people?
Thanks for your time.
Did you ever find a solution for this? I'm in the same boat and would like to know as well. Thx.
Yeah, I changed phones. Didn't face this issue on a Diamond and a Hermes.
got the same problem with my tg01 keeps dropping wifi and keeps connecting to gprs when wifi is on

Wireless only when needed

Hello,
I'm looking for a software that could automatically turn Wifi On/off when needed
For instance, Wifi is off and I start Opera ... then this SW will detect the request for an internet connection and will activate automatically WiFi.
When leaving opera, it should close de Wifi connection
At program launch of any program requiring an internet connection (Opera, Mail, Skype, Goople maps, ...)
1) If WiFI is already on ... then nothing special to do
2) If Wifi is off, ask user if Wifi should be enabled ?
3) If yes, enable Wifi .. else nothing to do
At program exit
1) If WiFI is off ... then nothing special to do
2) If Wifi is on , ask user if Wifi should be disabled ?
3) If yes, disable Wifi .. else nothing to do
Is such this existing ?
Thanks
I was using Wireless time for that, but only works configuring time zones, and inhabilites the posibility of being wifi activated manually.
It wil be interesting a program that switch wifi on or off depending on the programs you are using.
Interesting, this could work with 99% the same logic and code I am using for WMLongLife (dev build, not released app)... just instead of 3G do Wi-Fi. I may consider making a modified version for this purpose.

Categories

Resources