View Full Version : rk-Sleep(Location based phone flight mode switcher)
tytnguy
10th August 2007, 10:08 PM
Ok, built a new app phone switcher (flight mode on/off) based on the cell tower location.
System automatically switches the phone OFF based on the time you set when you are at predefined location (Say Home). When you are at home, say from 10:00 PM to morning 6:00 AM no one can call your mobile. But if you are not at home, then phone is ON even at night. This also saves your battery life and privacy too.
It is working on Hermes, and I have tested it on WM5 emulators. Will NOT work on WM2003.
Please check the link to the application under my signature.
szturchen_pl
10th August 2007, 11:38 PM
I have a question, can it only change to "vibrate" instead of turning off the phone? That would be more appropriate for me. Thanks for your answer :)
ahlok_hk
11th August 2007, 04:38 AM
Nice App! How about changing call forwarding (when busy, no answer, etc...) baased on location?
If the phone could forward all calls automatically, or forward when you press "hang up" based on location it would safe battery and reduce radiation using the phone.
tytnguy
11th August 2007, 07:35 AM
I have a question, can it only change to "vibrate" instead of turning off the phone? That would be more appropriate for me. Thanks for your answer :)
Nice Idea!, I will do my homework to find out what it takes to do that :)
tytnguy
11th August 2007, 07:39 AM
:) Nice App! How about changing call forwarding (when busy, no answer, etc...) baased on location?
If the phone could forward all calls automatically, or forward when you press "hang up" based on location it would safe battery and reduce radiation using the phone.
Since the application do not keep polling for location, if it does not know the current location for some reason(reason = In the original post) then there might be problems such as wrongly 'forwarded' calls...
But its a great idea. I keep it in mind
david.dupuis
11th August 2007, 11:56 AM
does not seem to work if you go past the apointed hour? radio stays connected
tytnguy
11th August 2007, 01:13 PM
does not seem to work if you go past the apointed hour? radio stays connected
Are you saying.. You were not at appointment time at sleeping location... And you came in late... and the phone does not turn off?
If so it is by design.. As i am not keep polling to find out the locaton. Just because then the application has to be running in the background or keep getting activated say for every 5 Minutes.
But let me know if you are saying the samething too.
david.dupuis
11th August 2007, 10:09 PM
I think we're saying the same thing. Last night I installed the software set the home location and set the sleep time to 21:00 to 6:00. Actual time was 22:00. I expected it to shut down the radio and it did not.
Olioaglio
11th August 2007, 11:33 PM
Hi,
does not work for me :(
Install works fine, Test is OK, device went on Flight Mode and Back.
I set Sleep Location and Times and clicked Enable button.
When I want to save an error occurs lile: "InvalidCastException at Save. Please report this!"
The settings won't be saved then. I tried to manually edit the cnf file with
found cell values and True State, and saved this back to device, but when
time comes, nothing will happen.
I am on Schaps WM6 3.57a german and O2 Germany Provider.
What I was found out is, everytime I start the program it
randomly changes the location behind the dot.
Once it is xxxxx.8311 and the next time it is xxxxx.48311
May this be the culprit?
Any suggestions welcome bc I would really love this tool working :rolleyes:
Olioaglio
tytnguy
12th August 2007, 09:27 AM
I think we're saying the same thing. Last night I installed the software set the home location and set the sleep time to 21:00 to 6:00. Actual time was 22:00. I expected it to shut down the radio and it did not.
OK for this i have to implement a constant polling mode.. Which i will do it for next release.
:)
tytnguy
12th August 2007, 10:14 AM
Hi,
...The settings won't be saved then. I tried to manually edit the cnf file with
found cell values and True State, and saved this back to device, but when
time comes, nothing will happen.
...Once it is xxxxx.8311 and the next time it is xxxxx.48311
May this be the culprit?
Olioaglio
If you don't mind can you send me your cnf file?
Since your Location keep fluctuating... May be its failing to ON/Off
So when you are at home (Sleep Location) and if you keep refreshing the location (Button Refresh Location) you are getting diffent values?
Let me know
gmgonzal
12th August 2007, 12:25 PM
I use Teog's CallFilter instead. What I like about it is that I can set the filter to only allow calls through from specific people. This way if there's an emergency in the middle of the night I'll get the call. It doesn't work on a schedule, you have to run it when you want it and disable it when you don't. But it is a simple app that runs with just a click after it's configured and has worked over several different operating systems. Would work well for meetings, movies, etc. too.
Olioaglio
12th August 2007, 12:35 PM
If you don't mind can you send me your cnf file?
Since your Location keep fluctuating... May be its failing to ON/Off
So when you are at home (Sleep Location) and if you keep refreshing the location (Button Refresh Location) you are getting diffent values?
Let me know
Check PM ;)
Olioaglio
Olioaglio
12th August 2007, 01:37 PM
Hi tytnguy,
:D thanks for fast PM. You were abolutely right with the idea of interfering date format. I customized my HTC Home with the SDTe Override string (by HTCustom Proggie) to display the week day, which turned out to be the culprit that your prog did display the error message at Save.
So I deleted this in registry and the app now saves without a glitch. So I set the time (1 minute in the future) again and saved. When the time comes, the turning wheel appears, but nothing happens. I figured out, that the Status page says: "Out of location so NOT switching off the phone", so this is maybe, why the program starts but do not turn to flight mode as suggested.
Since I set the home location and did not even move a meter from this position I cannot imagine, why it does display I am not in the sleep location?!?! Any ideas :confused: :confused:
Olioaglio
edit: It WORKED now for the first time !!!! Great!!
Just wondering, what happens when I just do the phone in another room in my flat, where maybe it is in another broadcast cell....
Think, it won't work then!! Is it possible to create, let's say, kind of a radius, where the program activates??
So my sleep or home location is maybe a bit more then just one room or even my desk :p
edit 2: May it work, if I set the SDTe string to override again, after saving correctly? Or will the app then stop working again? Sorry for those dumb questions though.
Thanks anyway!!! Great program!!
Olioaglio
12th August 2007, 01:50 PM
OK for this i have to implement a constant polling mode.. Which i will do it for next release.
:)
Would constant polling mode affect the battery drain significantly?
If yes, I would suggest a check box in your proggy to toggle this option on/off
Just my 2 cents :D
Olioaglio
tytnguy
12th August 2007, 04:19 PM
...what happens when I just do the phone in another room in my flat, where maybe it is in another broadcast cell....
May it work, if I set the SDTe string to override again, after saving correctly? Or will the app then stop working again? Sorry for those dumb questions though.
Olioaglio,
Can you set the home location from the other room?
If you change the date format to someother non standared format it will not work. Since program needs to keep saving the stuff on each try.
tytnguy
12th August 2007, 07:05 PM
Multiple location on the schedule: If you want to set more than one location as you 'Sleep Location' you can do it now. On the sleep location box bring the context menu up, and choose 'Append to location' now add the new location to the list. You can add any number of sleep locations!
Now if you were not at home at set time, system will keep polling based on the poll time you specify. So as soon as you reach home your phone will be switched off.
If you turned on your phone manually after the rk-Sleep set it to flight mode, then your phone remains on till next scheduled sleep session
tytnguy
12th August 2007, 07:10 PM
Would constant polling mode affect the battery drain significantly?
If yes, I would suggest a check box in your proggy to toggle this option on/off
Just my 2 cents :D
Olioaglio
Olioaglio,
No it should not make any significant affect on the battery.
I have programmed it to poll only on sleep time if you are not at home. But since I am not running the program in the background, it is ok.
The new update I release just keeping your problem in mind. So you go to both your rooms where you get different towers. Update both as your sleep location.
:)
Olioaglio
12th August 2007, 08:52 PM
Olioaglio,
No it should not make any significant affect on the battery.
I have programmed it to poll only on sleep time if you are not at home. But since I am not running the program in the background, it is ok.
The new update I release just keeping your problem in mind. So you go to both your rooms where you get different towers. Update both as your sleep location.
:)
Thanks, will monitor it...
Olioaglio
UPDATE:
OK, tested it now... Dude, the 1.0.1 really works like HELL!! I'm totally satisfied for now.
The Append function is very good thing, since I found 8 (!) different cell locations (about 3 with GSM and 4 with 3G) in my 3-room flat. They are always fluctuating even at the same place, so maybe this was the problem of the others, who tested the program with having only one location saved. But with the Append function AND the new Poll function (which also works great), it absolutely ROCKS!! Had no problem with several tests. Battery consumption with poll function really does NOT seem to be more than without poll.
Just some suggestions if you plan to make updated release. The Append function is not easy to find, I had to read your instructions three times to get it. Maybe you'll find another way. Also an extra tab with a list of all appended cells would be appreciated.
I would have another idea for an "extended" flight mode. Maybe you could add some checkboxes for Phone, Bluetooth, Wlan and Beam for - lets say - "Extended Flight Mode" options. So one could save even more battery as with just the phone function off. With the checkboxes you would have the choice what to turn off/on, when rk-Sleep will engage.
Best regards,
Olioaglio
szturchen_pl
13th August 2007, 12:03 AM
tytnguy what about vibration mode? have you had time to check into that? Regards
tytnguy
13th August 2007, 06:12 AM
tytnguy what about vibration mode? have you had time to check into that? Regards
Yes szturchen_pl, I have not forgotten that request :) Trying to find some time.
Hope I can do it soon.
Olioaglio
13th August 2007, 10:24 AM
Ok, the first night with this marvellous app is over and as expected,
it worked fine!! Thanks, again. Looking forward to feature improved
monster version :D :D :D
Olioaglio
starbase64
13th August 2007, 11:21 AM
Hello,
With this program there would be still another interesting option which one to insert could.
It would thus not have to be possible the flight mode to activate automatically with enters a stored potition dependent on the time.
If someone works in a hospital, he needs to store only the position and every time it is in the hospital the flight mode switched on.
That one could not do also at others locates to use at those handys permitted or desired is I thinks there also of cemeteries.
MfG
S64
tytnguy
14th August 2007, 10:32 AM
• Better user friendly UI added
• Now the application supports running an external application on command line.
• You can configure separate command line application while ‘entering’ and ‘exiting’ your Sleep Location
More info on the main thread.
tytnguy
14th August 2007, 10:36 AM
tytnguy what about vibration mode? have you had time to check into that? Regards
Now with the new version 1.0.2 you will able to do it
You need the the following command line utility to do that
http://forum.xda-developers.com/showthread.php?t=279228&highlight=v_vibrate
Check the screen shot on the main thread to configure the run command.
Let me know if there is any problems :)
Olioaglio
14th August 2007, 02:18 PM
• Better user friendly UI added
• Now the application supports running an external application on command line.
• You can configure separate command line application while ‘entering’ and ‘exiting’ your Sleep Location
More info on the main thread.
Sweet, thanks :D
Will try and report.... ;)
Olioaglio
Update: Couldn't resist :D :D and just donated somewhat. Cheers, pal!
aameerp
14th August 2007, 02:26 PM
sounds great and very useful
Olioaglio
14th August 2007, 02:41 PM
sounds great and very useful
Believe me, it actually IS useful. Used it for some days now and
am absolutely amazed! Saves battery and runs like hell :)
Olioaglio
tytnguy
14th August 2007, 04:06 PM
Update: Couldn't resist :D :D and just donated somewhat. Cheers, pal!
Olioaglio, Thank you very much I appreciate it. You were the first donor. (I just signed up with pay pal today and you were too quick ) ;)
Olioaglio
15th August 2007, 01:25 AM
Hi tytnguy,
found some kind of bug (?) in latest version of rk-sleep (1.02)...
Polling does not work anymore for me? Anybody else have this problem.
Just came home within flight mode period and recognized, that flightmode
didn't fire up. Set polling to 2 minutes, but nothing happens :confused: :confused:
When I change scheduling time to future it turns off fine, but when
already in schedule period nothing happens. Worked with 1.01...
Olioaglio
tytnguy
15th August 2007, 05:57 AM
Hi tytnguy,
found some kind of bug (?) in latest version of rk-sleep (1.02)...
Polling does not work anymore for me? Anybody else have this problem.
Just came home within flight mode period and recognized, that flightmode
didn't fire up. Set polling to 2 minutes, but nothing happens :confused: :confused:
When I change scheduling time to future it turns off fine, but when
already in schedule period nothing happens. Worked with 1.01...
Olioaglio
Olioaglio, Tested it here what you suggested, but in my case device went into flight mode as expected. But did you get a chance to see the log? It should tell you something.
OR may be, you came in to sleep location after 12 AM, in that case the device would not enter flight mode as it thinks that it is next day. It assumes your flight mode is the current day at late in the night!
In any case let me know
Olioaglio
15th August 2007, 12:15 PM
Olioaglio, Tested it here what you suggested, but in my case device went into flight mode as expected. But did you get a chance to see the log? It should tell you something.
OR may be, you came in to sleep location after 12 AM, in that case the device would not enter flight mode as it thinks that it is next day. It assumes your flight mode is the current day at late in the night!
In any case let me know
Yes, that seems to be the problem. Tested it some minutes ago and worked.
But, is it possible to fix? I come home later 12am often, you know :D :D
Olioaglio
tytnguy
15th August 2007, 12:41 PM
Yes, that seems to be the problem. Tested it some minutes ago and worked.
But, is it possible to fix? I come home later 12am often, you know :D :D
Olioaglio
I will fix it, Just need some time. :)
tytnguy
15th August 2007, 09:29 PM
Yes, that seems to be the problem. Tested it some minutes ago and worked.
But, is it possible to fix? I come home later 12am often, you know :D :D
Olioaglio
Olioaglio, Please get the latest update to fix the problem you reported.
tytnguy
15th August 2007, 09:29 PM
• Bug Fixed : If you were out of sleep location and returned to sleep location after 12 mid night(with in the sleep period) application would skip the current sleep.
Update posted
Olioaglio
15th August 2007, 10:50 PM
• Bug Fixed : If you were out of sleep location and returned to sleep location after 12 mid night(with in the sleep period) application would skip the current sleep.
Update posted
Great work, pal!! Just tested 1.0.3 and it worked as it should!! :cool:
Thanks for your patience!! I am absolutely satisfied with this tool yet.
Also I am absolutely impressed of your speed in improving and buf fixing!!
I would 100% recommend this tool to everyone around!! :D :D
Olioaglio
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.