yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] danielherrero:
Hi Martin. :D

Lets go.

1) Exit actions are executed when you move out from the place or when the schedule expires so, like you say, "enter/exit location and enter/exit time-frame (schedule)"

2) I ve been testing to replicate the bug but I couldnt. I ve removed all the schedules and I ve created one schedule from 21:26 to 21:28. ON enter phone off, on exit phone and It worked. This is the log files (as you know CMP generates log.txt )

2008-02-09 21:26:00 INFO. Executing begin actions for Pradena-Test(2). Executing begin actions for place Pradena and schedule Test(2).

2008-02-09 21:26:00 INFO. Changing Phone Manager to Off state. The element Phone Manager will try to change Its status to Off.

2008-02-09 21:26:05 DEBUG. Phone Manager changed to Off. The element Phone Manager changed its status from On to Off.

2008-02-09 21:26:05 DEBUG. FireStatusChanged disabled. FireStatusChanged disabled.

2008-02-09 21:26:05 DEBUG. Phone Manager changed to Off. The element Phone Manager changed its status from On to Off.

2008-02-09 21:26:06 DEBUG. Connections Manager changed to Off. The element Connections Manager changed its status from On to Off.

2008-02-09 21:28:00 INFO. Executing end actions for Pradena-Test(2). Executing end actions for place Pradena and schedule Test(2).

2008-02-09 21:28:00 INFO. Changing Phone Manager to On state. The element Phone Manager will try to change Its status to On.

2008-02-09 21:28:08 DEBUG. Phone Manager changed to On. The element Phone Manager changed its status from Off to On.

I would be nice if you can make a similar test and post the log lines. Anyway current version has a little problem because it logs lines like:

2008-02-09 21:25:27 DEBUG. Bat:71%,Cur:-174 mA. Battery level is 71% and Current is -174 mA. very often. I ve removed this kind of lines in next beta. Could you do the test?:)

3) Talking about backlight, by now only controls backlight leves but I ve right down your suggestion to include it as soon as possible. It wouldnt be difficult to do..

4) I knew rk-Sleep project. I you read carefully "But if you are not home, then phone remains ON even at night.". So the program doesnt turn off the phone if you arent at home. But one the phone is off the radio hardware is off and cant do anything until you power it up. Beleive me, if the phone is off then It cant detect any signal because the device isnt powered. But if you can demostrate it then It would be nice¡¡¡ (probably a miracle, like a car working without gas ;)).

Let me know if you do the test

Dani
[Windows Mobile Apps and Games] Deiota:
hi again.

when will it come out with the gprs counter? will it have the SMS counter also?

thanks in advance.

deiota
[Windows Mobile Apps and Games] danielherrero:
When I start it (next days) I will ask you for features before start....
[Windows Mobile Apps and Games] danielherrero:
Martin. I think you should try to use the action "Call Forward" instead of Phone Off. In this case if someone calls you being at home he will think your phone is off but Its really on. So if you go out then (if you add action "on exit" Call forwarding off) your phone will be available to contact you again....:)

Dani
[Windows Mobile Apps and Games] danielherrero:
Martin, I ve detected a incorrect behaviour if the phone is off when Its 00:00. in this case sometimes cmp doesnt schedule correctly the end of current schedule (because phone is off and cmp doesnt know where is it. Bu solution is easy) Maybe this is the situation you talked before. Tomorow I will fix it.

Regards

Dani
[Windows Mobile Apps and Games] marttin:
Hola Daniel,

I made the test with only one profile three more times, and haven't experienced any issues - at the sceduled time, on Exit, the radio went On.

When firstly reported the profile was scheduled from 16-17h, and at ~17.25 the radio was still off. I was thinking, after your feedback, that it is possible I messed the radio with other application, which caused the problem. Have few days-off and heavily playing with the device these days :D

It is very good idea to simulate "radio-off" with call forwarding - I will try this. On this topic, I have played yesterday more extensively with rk-switch. On the first post you can find following note "System is real time( ± Polling Time) , so if you are at home with flight mode activated and if you leave the home at mid night phone would switch back on."

I have tested it yesterday, with flight-mode, and it worked 2 times of 5 tests. The situation is that I was all day nearby home (range of 500m). Today I will see if it works 100% "really" leaving the area. I still believe you can take a look at it :)

Cheers :)
[Windows Mobile Apps and Games] marttin:
Hola Daniel,

I think I found a way to manage my phone to behave as "Phone OFF", and be manageable by location profiles. The idea is to use third party software, such as MagiCall. The problems are that with the action "Open File" cannot locate the EXEs. This is not an issue as I created two links (.lnk files - one for Block All, and another for Enable All), with the idea to "open" them with Open File action. But, unfortunately not able locate them again - have tryed with links placed in main memory, storage card - the same effect.

- Your advice will be highly appreciated :)

Cheers

EDIT: Call forwarding approach do not works to me due to operator's settings
[Windows Mobile Apps and Games] danielherrero:
Hi Martin.

Step by step:)

1) The problem I detected was this. If you execute Phone Off and on second after Phone On those action will fight with impredecible effects. It happens because they are asynchronous action performed by Radio ROM. This was the sequence:

1.1) At 22.00 on enter actions for schedule Night(22:00 - 06:00) on so Phone off.

1.2) At 00:00 change of week day so:

1.2.1) At 00:00:00 Execute on exit action for schedule night so phone on.

1.2.1) At 00:00:01 Execute on enter action schedule night so try to phone off again. But this action will crash with previous "phone on" that needs 15 or 20 seconds to execute.

I ve solved this forcing 20 seconds between two consecutive request to Phone manager. Now it works correctly.

Talking about polling and Phone off. I imagined that program was using a system like polling because Its the only chance to know the location. But It brings some problems. Turn on/off the radio ara operations that need CPU at 100% and spend much battery so if you set polling each 5 minutes (for example) then during the night the radio would turn on/off 160 times and It would drain the battery. Any idea or suggestion about it?:D I ve thought about add a new check under the option "refresh location" like "turn on radio if phone is off" and the turn off radio again....

Open file action. Set the complete path to the program. For example, to open windows media player set to \Windows\wmplayer.exe. Just test now and worked correctly....The "..." button is only for songs and programs on default system path
[Windows Mobile Apps and Games] marttin:
Hola Daniel,

Thanks for the info provided. I guess having a solution profiles to Power OFF the radio, and the same time to be able to detect when there is change of location, and Power ON radio on exit will be nice, but maybe at present not critical function.

Thaks to your last advice I was able to start managing MagiCall with CMP - respectively block and unblock incoming calls whenever I want. Thank you :)

On my own I will explore the solution to place somewhere on the screen (on tray or as notification) customized icons showing my current location ( I prefer not to use today plugin, but be informed by the device where I am :D). Planning to use Open File option

- will let you know how it goes

Cheers
[Windows Mobile Apps and Games] danielherrero:
Ok. Very easy to add the option I talked before. IN this way if the user wants CMP will Turn on phone and will turn off again (if previously was off) to check location....;)
[Windows Mobile Apps and Games] short/y:
Ah HA! I thought there was something screwy happening when I encountered this last week. :) I was trying to gather some additional information for you before I reported it but I see you've already found it and are in the process of fixing it. Thank you, Daniel!

I power off my phone at night, too, more to save battery than anything else. I've been following the discussions here and decided to try disabling connections over the weekend instead. On my Hermes (AT&T 8525), I find that the phone won't reconnect when my morning profile sets Connections back to ON. My schedule looks something like this:

22:45-23:59 - On Entry Connections DISABLED; no Exit actions

00:00-05:59 - (no actions)

06:00-22:45 - On Entry Connections ON; no Exit actions

Connections were correctly disabled Saturday night but the phone wouldn't establish a connection Sunday morning. Same thing Sunday night and this morning. I'm not sure what finally allowed the phone to reconnect as I did so many things to try to get it to reconnect. I think what finally did it was exiting CMP, turning off the phone's radio and then turning it back on and THEN restarting CMP. Before that I had tried using CMP to turn the radio off then back on, disabling connections and turning them back on. turning connections OFF then back on and restricting connections to 2G.

This was with 1.3.1c.
[Windows Mobile Apps and Games] danielherrero:
Ops, I think Its a different problem never seen. (In my case my connections are disabled from 23 to 7). Can you do a thing?

1) Using CMP go to button connections, then setup and finally ensure the combo has the connections you use to connect internet.

2) Create a Test profile with default schedule from 00.00 to 00.00 (all the day).

3) Create a test schedule for one minute next to your current time, for example, for 17:50 to 17:55, on enter connections disabled, on exit connections on.

4) At 17.50 verify you can connect internet and at 17.55 verify you can again.

Enable and disable a connection is simple to set a field on the registry. CMP doesnt do anything more. But from time to time I ve seen If some program tries to connect many times (hundred) and the connection is disabled then the Connection Manager (component inside window) can crash and soft reset is needed to connect again. Can you do the test?:rolleyes:

Thanks
[Windows Mobile Apps and Games] danielherrero:
http://www.commmgrpro.com/files/CommMgrPro_V1.3.1d_Theme_SkizZO_QVGA.zip.

1)Bug fixing.

2)Option to turn radio on if was off when refresh location was done (see picture). Customizable in options (1).

3) GPS integration complete. Tomorrow integration with google maps in server ready.

Dani
[Windows Mobile Apps and Games] short/y:
I just tried it. Here's the log:

16:36:00 Executing begin actions for Test-Test(2)

16:36:00 Changing Connections Manager to Disabled state

16:36:03 Connections Manager changed to Off

16:36:03 Connections Manager changed to Disabled

16:36:03 Connections Manager changed to Disabled

(Detected battery level changes)

16:41:01 Executing end actions for Test-Test(2)

16:41:01 Changing Connections Manager to On state

16:41:02 Connections Manager changed to Off

(and then, because I'm at home)

16:41:02 Executing begin actions for Home-Weekday(2)

16:41:02 Changing Phone Manager to On state

I'm still not connected. That last comment you made about Connection Manager dying because of too many connection requests may have something to do with it, though. I have Direct Push turned on and have ActiveSync set to sync as items arrive. I'll turn off Direct Push and try the experiment again.

And, BTW, I managed to get reconnected by exiting CMP, turning off the radio through the Windows connection manager application and then restarting CMP.
[Windows Mobile Apps and Games] short/y:
Just tried again after disabling Direct Push. Once again, after going through this test, I'm not connected. This time I resurrected the connection by going to exiting CMP, going to Windows connection manager app like last time but all I had to do was re-enable Direct Push and I reconnected just fine.

17:07:00 Executing begin actions for Test-Test(2)

17:07:00 Changing Connections Manager to Disabled state

17:07:03 Connections Manager changed to Off

17:07:03 Connections Manager changed to Disabled

17:07:03 Connections Manager changed to Disabled

(Detected battery level changes)

17:12:00 Executing end actions for Test-Test(2)

17:12:00 Changing Connections Manager to On state

17:12:00 Connections Manager changed to Off

17:12:01 Executing begin actions for -(0)

17:12:01 Executing end actions for Home-Weekday(2)

17:12:02 Executing begin actions for Home-Weekday(2)

17:12:02 Changing Phone Manager to On state

Even though it may not have anything to do with my particular problem, that first entry at 17:12:01 is a little worrisome, eh?

Both of this test and the one above were done with 1.3.1d.
[Windows Mobile Apps and Games] danielherrero:
Strange. Just tested it with kaiser and hermes without problems.

One question. When the test profile finishes. and you click on connections button, then setup, then you see the table with connections (red and green). What happens when you click on "Connected" column of you preferred connection(that should be red if not connected)?. Maybe CMP doesnt connect automatically after enable the connections because It isnt configured you preferred connection on "Default" combo. But It should be very strange that you couldnt connect using manual method (see picture)...

Dani
[Windows Mobile Apps and Games] marttin:
Hola Daniel,

I start testing the Phone OFF/ON function. Defined day profile for Home with only Phone OFF on Enter and Phone ON on Exit - asigned only one cell with the purpose of the test.

When I was back home the phone went OFF, as it should, but later when detecting other base stations (cells), it didnt go ON.

Attached is the log file. The cell assigned as Home is 53164 only. At 15.17h the cell 53164 was detected, and the phone went OFF, but from 15.19 there was detected other cells (not defined as home), as well was shown Unknown locations, but the phone never went ON on Exit from Home. During the time 15.19h to 15.46h the phone was on unknown but OFF all the time.

- hope this combined with log file can help to replicate the situation.

Other Info: Refresh Location - Enabled (check); Awake if suspend (check); refresh time(min) (check); Radio On (check)

Let me know if you need more info

Cheers

EDIT: On Hermes - testing ON/OFF functionality should I check "Awake if Suspended"?
[Windows Mobile Apps and Games] danielherrero:
Thanks.

Thats exactly what I need. Yesteday I think I found the issue. Let me investigate about it....

Dani
[Windows Mobile Apps and Games] marttin:
In few hours I will be leaving Home again - will make another test to see how it works - will send you new log file and info about function behaviour again

Cheers :)
[Windows Mobile Apps and Games] danielherrero:
Ok. I think the problem is that CMP detects the new location but quicky, before other things, Radio is turned off again so there isnt time to launch the schedule engine. I am testing right now but It seems a issue easy to fix. ;)
[Windows Mobile Apps and Games] marttin:
I tested again, but same effect. Haven't tested to power Phone ON with Unknown location on entry - will try it but tomorrow ( quite late here and last of the day-offs:) )
[Windows Mobile Apps and Games] danielherrero:
Dont worry. I ve fixed and I ve tested it and finally works. It was more difficult to simulate a unknown cell being the phone off. (in next beta menu/test/bad location. It generates unknown cells when the radio generates notifications about location changes. Same option again and unselect the option). Now Its working. I am going to wait 24 hours for testing (I ve done several changes I want to be sure all the systems arent affected). Tomorow I will post it here but it works,beleive me :P

Dani
[Windows Mobile Apps and Games] Karl der Käfer:
Hallo Dani,

I tried to do some similar, but nevertheless different test:

I choose phone (radio) off in the main menu. CMP asks for time being off.

I give him 75 min. (1 1/4 hour).

Log gives correct entries during the shutting down the radio.

Until passed about 85 min. there was no log entry showing any intent to switch on the phone (radio). Then I switched it on manualy.

Is there anything wrong with the free editable time frame, or does it have the same origin as the above mentioned schedule problems ... I don't know.

Best regards

Ralf

P.D.: it's time to change your avater photo. Your cousin is ok, but we want to see you with little Charito :-)
[Windows Mobile Apps and Games] danielherrero:
Hi.

There were some issues with radio on/off because It has become very complex. There are different situations for radio being off. The user manually has turned off, using CMP or other program (but they are different situations), or when the phone looses signal, or when the user select the actions radio on/off for start/end (4 different situations), or when the user select the option "turn on radio to check location and then turn off (if previously off). And all those situations must be evaluated upon new cell, or schedule change....well, very complex.

Anyway, I think I ve solved all (or a very high %) of them.

Reminder: If you select the option "Phone on" near "refresh location" in options(1) then CMP will turn on the phone to check location if if was off, and then CMP will turn it off again if previously off. So dont mark it if you arent interested on CMP can detect location changes while Phone is off.

Interesing: This night I left the phone off with that option selected. And my Kaiser only needs 20 mA. But if the phone is on and connected with push mail then It needs 150 mA(with 2g). With 3g 350 mA. :o
[Windows Mobile Apps and Games] danielherrero:
Integration with google maps on the server complete

Integration with google maps on the server complete.

Same zip than previous post.

Remember that once CMP maps a cell to gps coords It wont do it again. (except if CMP is in mode "discovery". IN this mode each cell change CMP will try to get GPS coords.). But if you pass again to that cell you can track your position in google maps, without spending battery with the GPS.

http://www.commmgrpro.com/files/CommMgrPro_V1.3.1RC1_Theme_SkizZO_QVGA.zip
[Windows Mobile Apps and Games] vietk:
Hi Daniel,

Actually, my phone operator is filtering the HTTP requests going trhough their access points. We are authorized to surf the web (port 80 through a web proxy) and the user agent is filtered too.

Do you think you can add to the upload panel a string based property that we can use to set the user agent ?

Thanx

Kevin
[Windows Mobile Apps and Games] danielherrero:
Ok no problem. So, only the text field? or a combo with classic user agents?
[Windows Mobile Apps and Games] vietk:
Editable combo is the best :D

But at least the text field is a good option, user agent strings are easy to find on the web.

Again, thanx a lot.

Kevin
[Windows Mobile Apps and Games] danielherrero:
Ok. Is almost ready (only a few lines of code). Later will be ready (today). :)

Dani
[Windows Mobile Apps and Games] danielherrero:
Options to choose user agent and timeout to get GPS coordenates. After this time CMP close its connection with GPS (except in discovery mode)

http://www.commmgrpro.com/files/CommMgrPro_V1.3.1RC2_Theme_SkizZO_QVGA.zip
[Windows Mobile Apps and Games] marttin:
Hola Daniel,

I did some tests with Phone ON/OFF function, using the version on post 1650.

Scenario I:

- Refresh Location Box (chkd); Awake if Suspend (unchkd); Refresh time(min) (10); Radio on (chkd)

The phone went OFF, but didnt went ON in ~half an hour after I left Home location - I guess, even with Hermes is needed to check Awake if Suspend if want to use the Phone OFF/ON function. Please Advice

Scenario II:

- Refresh Location Box (chkd); Awake if Suspend (chkd); Refresh time(min) (20); Radio on (chkd)

The phone went OFF, and later went ON and stayed ON while still located in Home location.

Notes:

- Attached is the logfile for today - hope it will be in help.

- Scenario I was ~ 11.30h; Scenario II ~13.15h (more or less this is the timing)

- Just not to be confused - during Scenario I tests there was only one Lac allocated to Home, but with Scenario II tests there was 3 Lacs allocated to Home

Cheers
[Windows Mobile Apps and Games] danielherrero:
Hi.

It seems you phone was on from 11:47:37 to 13:16:25.

2008-02-14 11:47:59 INFO. Changing Phone Manager to On state. The element Phone Manager will try to change Its status to On.

2008-02-14 11:47:59 INFO. Executing begin actions for Unknown-Default(0). Executing begin actions for place Unknown and schedule Default(0).

Here It seems the phone goes on, unknow cell and Unknown profile executed.

Finally at 13.16

2008-02-14 13:16:25 INFO. Executing begin actions for Home-Day(2). Executing begin actions for place Home and schedule Day(2).

2008-02-14 13:16:25 INFO. Changing Phone Manager to Off state. The element Phone Manager will try to change Its status to Off.

Seems to recogniza home to phone to off state.

Then remains checking location each 20 minutes and turning off because you are at home-Day.

At 14:19:04 recognizes a different cell so phone keeps on

2008-02-14 14:19:04 INFO. Executing end actions for Home-Day(2). Executing end actions for place Home and schedule Day(2).

2008-02-14 14:19:04 INFO. Changing Phone Manager to On state. The element Phone Manager will try to change Its status to On.

Finally..

2008-02-14 14:39:00 INFO. Executing begin actions for Home-Day(0). Executing begin actions for place Home and schedule Day(0).

I cant see anything incorrect except one thinkg: Home-Day(0) vs Home-Day(2). The number shows the the number of actions. Could you send me your database. Maybe there is some corrupt on you Home profile (because of the upgrade process). But the behaviour of phone-off, on seems correct...
[Windows Mobile Apps and Games] danielherrero:
Could you do a test when have time?. I would be very useful.(only 5 minutes)

1) Modify you current profile/schedule and add [on enter:phone off, on exit:phone on).

2) In options1: Enbled, awake if suspended and radio on: checked. refresh time: 1 (to speed the test).

3) then close CMP. Turn radio on with classic commmgr if was off and run CMP to make changes take effect.

4) Your phone should go off, obviously. Then you should see your phone going on each minute and going off seconds after (if you are in same profile). I recomend to go to cell history page to see the evolution. Let 3 or 4 minutes to check how this process is repeated.

5) Then go to main window, menu/test/bad locations. It make CMP beleive Its on cell 2345 each time CMP check the location. So CmP should execute your exit actions (phone on)and start actions for unknown-default place. It will keep in same state (on)until....

6)go to main window, menu/test/bad locations again. It will undo the previous operation so CMP will get good cells again.

7) So on next check CMP should recognize you are in the first profile and radio should go to off state and remain there.

Please do this test when you have 5 minutes and tell me your conclussion.....

Dani
[Windows Mobile Apps and Games] marttin:
Thanks for your very quick reply :)

(1) Yes, that should be correct - but let me explain the details (this is Scenario I). I left my Home Location at 11.30h (sure 100% as living in suburbs and traveling by shuttle-bus to the city :)). Was watching all the time LED (green one) indicator to see if the phone turns ON on it's own. As it didn't happen I pressed then Power button (I gess at 11.47.37 - ~15km from Home), the device wake up and only then the Radio went ON - I saw it :)

(at 11.40h I was at least 7-8 km from Home, and for 100% on different Lac)

(2) Well, it could be the case, as well after 12.00h I have changed the Home location schedules - added new Lacs. Anyway - don't bother with this stuff at present. I will clean my database and will try another test tomorrow - using Scenario II case

- Will let you know!

Cheers