yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] ZuinigeRijder:
[APP] [Updated 08-08-2011] BattClock version 3.7.1 *NEW* Cell Tower Monitor

Because adding sound notification and vibration takes more time, I posted a bug fix release first.

[APP] [Updated 08-08-2011] BattClock version 3.7.1 *NEW* Cell Tower Monitor

Some measures that phone can go into a deep sleep, when logging/CellTowerInfo is showed/logged:

- Fixed bug that the CellTowerInfo was done once per second instead of 30 seconds. Changed into once per 90 seconds.

- Close Radio Interface Layer after getting CellTowerInfo to be sure that phone can go into a deep sleep

- Open/Close log file to be sure the phone can go into a deep sleep

- Do not log Cell Tower info to file, when there is no valid data (When CellTower reports -1)

Updated translations:

- Updated Spanish translation, thanks to jcmm

- Updated French translations, thanks to YoLoLo

- Updated Italian translations, thanks to ephestione

- Updated German translations, thanks to Tokl
[Windows Mobile Apps and Games] coolkaas:
good idea, thanks. But my phone not answers to API any information about Current or Current Force. Only in charging, but this not interesting.

Zuinige, actually good idea to separate old errors* fix and new feature in difference versions.

---

* not errors, of cource, I dont know how to says precise.
[Windows Mobile Apps and Games] jcmm:
Hello ZuinigeRijder,

I do not care the "Cell Tower Monitor", would I then update the offsets v3.6.2 "(I work very well) to the new v3.7.1?.

Regards,
[Windows Mobile Apps and Games] ZuinigeRijder:
If you do not use the "Cell Tower Monitor", there is no need to update to v3.7.1.

Only when there is a new feature you want to use or some other improvements in the future, it makes sense to move to that version. Although the changes should not hurt if you do not configure them. I am now working on sound/vibration notifications, which will land in v3.8. I also looking into improving battery life by doing nothing in BattClock when the screen is off.

Is someone interested in doing things when the screen is off? e.g. monitoring to log file?
[Windows Mobile Apps and Games] jcmm:
Hello ZuinigeRijder,

Does it come as default program with new features turned off (eg in v3.7.1)?.

If so, and I greatly complicates the settings in v3.7.1., I do not use "Cell Tower Monitor", that is, the update it. I am very concerned that any new option that I will not be used to increase the battery consumption.

The issue of notification indicating that it would be, how the alarms?.

Interestingly, any modifications you can do and optimizes battery consumption of the device.

Regards,
[Windows Mobile Apps and Games] ZuinigeRijder:
v3.7.1 has by default the settings you already have configured with a previous version (e.g. 3.6.2). So it will not use the "Cell Tower Monitoring" if you do not configure it. Version 3.7.1 will automatically close/open log file, if you have configured to log something to file. I have read (and experienced myself) that the version 3.7.1 is now on par with 3.6.2 battery usage. I even see that with "Cell Tower Monitor" enabled and logged, I do not see a difference in battery usage compared to 3.6.2.

The idea is that you configure the low/medium/high value (the same associated with low/medium/high color) and if the value switches between low/medium/high you can configure an optional sound/vibration notification (path to a wav/mp3 file or a vibration pattern). By default it will not use sound/vibration.

The side effect, when not monitoring with screen off, can be that it takes more time to update the latest values, e.g. 1 second max. I have to experiment with this. Probably a setting to disable this behavior is needed, if you do not like the 'display off/on' lag.
[Windows Mobile Apps and Games] jcmm:
Hello ZuinigeRijder,

Thank you very much for the detailed information.

Regards,
[Windows Mobile Apps and Games] ephestione:
Quick report on 3.7.1: I am using the cellid logging, and all the battery drain problems noticed in 3.7 are gone, right after wakeup I get 3~5mA ;)
[Windows Mobile Apps and Games] reidler:
I wonder what you mean by sound/vibration notifications. Is that specific to a certain item that will be set for a sound or vibrate? Or do you mean you are working on setting up the phone to be able to control all the sounds and vibrations for each notification: phone call, new email, new text message, new voice mail, missed calls, reminder? I would love that. I had a program like that on my old Palm Treo but have not found anything like that for the HTC Touch Pro 2.
[Windows Mobile Apps and Games] reidler:
bug in date.

I think I found a bug in the DateTime format 1. It's set to %a %b %d for day/month/date. Last night at 11:30 PM I noticed that the day was showing Fri even though it was still before midnight. It showed Fri Aug 11. It should have shown Thu Aug 11. After midnight it still showed Fri and just changed the date from 11 t o12. Fri Aug 12. I attached two screenshots showing this. It can be seen on the top left of the screen. I had turned off and on the phone to see what happens. I also first tried stopping and startiung Battclock. The S2U2 program on the phone did still show Thursday.

I never noticed this before. I will try to keep an eye on it now.

Please see the two attached screenshots.

Thanks.

Eli
[Windows Mobile Apps and Games] jcmm:
Hello reidler,

PhoneAlarm Pro wonder you save on the needs you have, I use it for years: http://www.pocketmax.net/phonealarm.html

Regards,
[Windows Mobile Apps and Games] ZuinigeRijder:
Maybe it has to do with a 1 hour difference between summer and winter time?

I will try to reproduce.
[Windows Mobile Apps and Games] ZuinigeRijder:
I will not directly control sound notifications via (built-in) applications, like new email, etc.

However, some of the features can also be achieved indirectly via battclock.

E.g. you want to be notified when there is a missed email?

- you display the number of missed emails

- you have configured the low value to 0, medium to 1 and high to 2

- you do not configure a sound/vibrate when the number of missed emails is 0

- you configure to play a sound or vibrate when the number of emails is 1

- you configure to play another sound or vibrate when the number of emails is greater than 1

Whenever there is a change from 0 to 1, 1 to 2 or higher, 0 to 2 or higher, 2 or higher to 1 the associated configured sound/vibration will be played.

This you can do for each individual item you show (display or stripe).

Note that this is still limited functionality, because you cannot control that the sound/vibration is repeated after some time. But you have to start somewhere ;)

So that is the current implementation I am testing. I still need to make the configuration possibilities for BattConfig, so I did only preliminary testing.
[Windows Mobile Apps and Games] ZuinigeRijder:
I did reproduce and it appears a small bug in BattClock. On one place I did it correct and on the other not. I did not take care of winter/summer time in one place. This problem does only appear between 23:00 and 24:00. So that fix will be in the next release.

*EDIT*

As far as I can see the problem only occurs when you start or change configuration of BattClock between 23:00 and 24:00. Otherwise you do not see this problem.
[Windows Mobile Apps and Games] ephestione:
Another report on battclock, 3.7.1.

I was seeing this behaviour also in 3.6: I have set it so it displays the hours of uptime off TotalBatteryRechargeUpime, as %dh with divide by 60, and it only appears to update every few hours or so; in other words, I put in a new battery this morning at about 7:30 and it was reporting "0h" up until half morning, now it's almost 7pm over here and it's still reporting "8h", while it should say "11h".

I thought it was a juvenile glitch, but I'm still seeing this on 3.7.1.

If I were to reboot tho, or just restart battclock, the timer would be correct... just did it now, and in fact it now says "11h" ;)
[Windows Mobile Apps and Games] anoano:
Sound/vibration notifications would be useful.

No interest in doing things when the screen is off.

Improving battery life is always welcome.

Thanks for your frequent improvements and updates.
[Windows Mobile Apps and Games] ZuinigeRijder:
I checked my code and for the total recharge:

ComputeValue(update, g_minutesUptimeRecharge, index, g_minutesUptimeRecharge-1);

Normally, when I do only an update when the previous value is different than the current value, because updating the display is costly. In this case, there is not really a previous value, so I faked one by subtracting 1 of the g_minutesUptimeRecharge. This works fine, but not if you divide by 60 :eek: Then always the computed value will be the same as the previous value :cool: So I muss fake a real large difference :rolleyes:

I will fix that in the next update.
[Windows Mobile Apps and Games] ephestione:
I see, that's actually very tricky :p but you're doing everything off BattClock not relying on anything builtin in the system. The SQM (system quality monitor) subsystem of WM did just that but it's ripped off most custom roms.
[Windows Mobile Apps and Games] reidler:
Thank you for putting the fix in for the summer/winter time.

The ideas you write above sound excellent. Did you mean also that you would allow the "type" of sound and the "type" of vibration? The problem that I have not come to terms with yet on my phone is that the phone decides on its own how to vibrate. I cannot learn what the vibrations mean whether a new reminder, email, text message, missed call or a phone call is coming in. I do have Battclock set up to monitor and show me the count of new emails, texts, missed calls, voicemails and reminders. So I would be able to set those up with the new sound/vibrate notifications as you wrote. If you will allow for the sounds and type of vibrations for each notification that will probably take care of my problem. I would just turn off the phone's own mechanism and rely on Battclock which is very reliable! When a phone call comes in the phone sometimes just vibrates non-stop, continuously. Irritating.

I'll also take a look at PhoneAlarm as another user mentioned but I will hold off installing something extra to see if Battclock can do it since I feel so confident with Battclock.

Thanks. Take care.

Eli
[Windows Mobile Apps and Games] reidler:
Thank you so much. I will look in to this.

Eli
[Windows Mobile Apps and Games] reidler:
I looked at the manual. I don't think it allows the user to set the vibration pattern for each type of notification. Am I wrong? Thanks.
[Windows Mobile Apps and Games] ZuinigeRijder:
Indeed you can specify per item/low/medium/high value the associated sound (wav or mp3 file) which will work from WM 6 and higher. Or the vibration pattern. TouchLockPro already has a fixed vibration pattern. But in BattClock I will make it possible to specified the Vibration sequence per item. A list of a sequence of "pause" and "vibration on" in milliseconds. So people can invent there own vibration sequences ;) All the settings are stored in the registry (path to wav/mp3 or vibration sequence).
[Windows Mobile Apps and Games] reidler:
This sounds Awesome! This would be another great added feature. You've once again put me into anticipation mode! I can't wait for this. I don't think PhoneAlarm mentioned by another user (jcmm) can do this. You wrote that you would not be able to do repeat sounds/vibrations (at least not yet). Would it be possible to activate the LEDs. If you can also have it so that we can set the LED to blink a certain color or speed or blink pattern then that would suffice instead of a "repeat" notification. When a new email comes in that sets off the sound and vibration and LED then the LED could stay on until the user touches something on the phone and then it goes off. I think I'm asking too much but it's worth it to ask. If you can't then you can't.

Can you set it to allow the user to set off a sound AND a vibration notification, not just a sound OR a vibration? Thanks a lot. Once again I'm excited for more great functions.

Good luck,

Eli
[Windows Mobile Apps and Games] reidler:
Yup. I finally remembered to check this last night. at 10:55 PM I restarted Battclock and all was ok - it still showed MON. At 11:10 PM I restarted Battclock and it showed TUE (instead of MON). Thanks. Eli
[Windows Mobile Apps and Games] reidler:
Hi. It's been quiet. Anything doing?

Looking forward to the new features...
[Windows Mobile Apps and Games] ZuinigeRijder:
Still busy with PlaySound/Vibrate.

Following already done:

- Fixed bug that when BattClock was (re)started or configuration changed between 23.00 and 24.00 the wrong day of week was shown for 1 hour.

- Fixed bug that some display values (e.g. total recharge time) were only updated after restart when "divide by" feature was used

- Fixed bug that when date/time format strings where shown it was possible the display color was wrong at screen on the next day

- Added possibility to configure BattClock to do nothing at screen off

I am not sure if I better can post the above changes first, before doing the 'real' sound/vibration features.......because that will cost more test time.
[Windows Mobile Apps and Games] ephestione:
just go with the flow and complete it first if you feel more like it :)
[Windows Mobile Apps and Games] :
kool, kinda useful. tnx
[Windows Mobile Apps and Games] jcmm:
Hello ZuinigeRijder,

For a couple of months come checking the values ​​of consumption data in GPRS and WiFi offering your program, and I see that are not correct, the program always gives lower values ​​than the reality.

My phone provider is Movistar / Telefonica (Spain), and their website allows me perfect control of my daily consumption in GPRS (I use WiFi with my ADSL router at home). I have also installed on my device again (took it off to use these options BattClock) SPB Wireless Monitor, which is very accurate and detailed data.

I give you a practical example to date, total cumulative values ​​from 18/08/2011 to today:

GPRS:

- BattClock: 0.7 MB

- SPB WM: 1.1 MB

- Movistar: 1.2 MB

WiFi:

- BattClock: 50.9 MB

- SPB WM: 61.4 MB

BattClock is perfectly configured. That the differences between Movistar GPRS (which is what really counts) and Wireless Monitor SPB are minimal, but among Movistar BattClock and SPB or are enormous. WiFi goes something like this.

In addition SPB Wireless Monitor is a breakdown of consumption in each application that connects to the Internet and block all enough with the global consumption of Movistar / Telefonica (my operator), but BattClock ... much difference. As days pass, the differences are even more noticeable.

Could you review the program well in this regard?. I could really use that BattClock be more precise, since I avoid having installed SPB Wireless Monitor that although a lot of information, what really interests me is just the cumulative total consumption and Wireless Monitor SPB consume considerable resources of the mobile device, while BattClok is very moderate in everything.

Greetings and thanks for everything,
[Windows Mobile Apps and Games] ZuinigeRijder:
For Wifi it depends on your adapter how accurate BattClock is. Some adapters return the exact bytes sent/received, other adapters return just the packets send/received. In the latter case, BattClock uses an average packet size, to compute the number of bytes. The average packet size is a fixed 512 bytes in BattClock.

So I do not know if BattClock falls back to the average method? I can only tell when I see a debug log file.

1. Enable debug logging (and of course monitoring Wifi) in BattConfig.

2. Stop BattClock and Start BattClock

3. Use Wifi to download something from the internet

4. Stop BattClock

5. Copy BattClock.log.txt in the directory where BattClock is installed (default Program Files\BattClock) and post it here

6. Disable debug logging in BattConfig

7. Restart BattClock for normal operation

I also do not know if operators round the data downloaded. BattClock is not doing that, so maybe that also explains the difference?
[Windows Mobile Apps and Games] reidler:
Whatever is easier for you. Thanks so much.

Anticipating...

Eli
[Windows Mobile Apps and Games] decebal76:
how to show the name of the day like monday, tuesday... instead of date? is there a registry with this value?
[Windows Mobile Apps and Games] ZuinigeRijder:
There are 3 datetime formats you can change to your likings. It is described here in DateTime formats.

DateTime formats

Date/Time format example

Of course you will not put this long string in your taskbar, but you can see that you can format to your likings:

- e.g. show AM/PM

- show weeknumber

- show seconds

- show year (for those who forget this each day

- show day of week

Define the DateTime formats according to the wcsftime specification.

%a Abbreviated weekday name

%A Full weekday name

%b Abbreviated month name

%B Full month name

%c Date and time representation appropriate for locale

%d Day of month as decimal number (01 - 31)

%H Hour in 24-hour format (00 - 23)

%I Hour in 12-hour format (01 - 12)

%j Day of year as decimal number (001 - 366)

%m Month as decimal number (01 - 12)

%M Minute as decimal number (00 - 59)

%p Current locale's A.M./P.M. indicator for 12-hour clock

%S Second as decimal number (00 - 59)

%U Week of year as decimal number, with Sunday as first day of week (00 - 53)

%w Weekday as decimal number (0 - 6; Sunday is 0)

%W Week of year as decimal number, with Monday as first day of week (00 - 53)

%x Date representation for current locale

%X Time representation for current locale

%y Year without century, as decimal number (00 - 99)

%Y Year with century, as decimal number

%z, %Z Either the time-zone name or time zone abbreviation, depending on registry settings; no characters if time zone is unknown

%% Percent sign

Any formatting code may be prefixed with the # flag, to have following behaviour:

%#d, %#H, %#I, %#j, %#m, %#M, %#S, %#U, %#w, %#W, %#y, %#Y: Remove leading zeros (if any).

%#x: Long date representation, appropriate to current locale. For example: "Tuesday, March 14, 1995".

%#c: Long date and time representation, appropriate for current locale. For example: "Tuesday, March 14, 1995, 12:41:29".
[Windows Mobile Apps and Games] decebal76:
i should read before asking... thank you.
[Windows Mobile Apps and Games] reidler:
Hi. How have you been? How are the updates coming? I'm eagerly awaiting. Good luck.Can't wait.
[Windows Mobile Apps and Games] viperx2uk:
Brilliant! i jus got my HD2 back from repair and this is the first thing im updating!!! thanks!!
[Windows Mobile Apps and Games] ZuinigeRijder:
Unfortunately I had no time to spent since my last post. And the coming 2 weeks I have probably also no time :eek: So at the end of the month I hope to report some progress........so be patient.
[Windows Mobile Apps and Games] sirus:
Slovak translation

Hi,

I translate this great program to "SLOVAK". Please add it to nex version.

And I have 2 questions / wishes:

1. is possible set thesholds (in MB) for red-yellow-green colors of free RAM (also for other items)?

2. is possible to set another color (or some effect) of battery bar when is device charging?

Thaks for this grat software (I dont need now Batti).
[Windows Mobile Apps and Games] ZuinigeRijder:
Thanks for the translations, I will incorporate them in the next version.

1. Yes, on the Colors page, you can set the low and high values and the associated colors.. Just select "free RAM" and change the low and high value and colors.

2. Currently there is no option to set another color of the battery bar when device is charging. The only thing which is supported, is a flashing behaviour when charging (e.g green, yellow, red), when you do not select a gradient color.
[Windows Mobile Apps and Games] anoano:
If it takes longer for the sound options, it would be useful to have the above version with the option to configure BattClock to do nothing at screen off.

If you have time, thanks in advance for releasing your current version.
[Windows Mobile Apps and Games] wei2005yh:
if battclock could get more sensor value (like g sensor light sensor),then i can use it to help my script to know my device's status,and i can do more things interesting..and by the way:the cell id function is cool!!!
[Windows Mobile Apps and Games] reidler:
Hope you're doing well.

I'm not rushing you but just letting you know how eager I am and how I am anticipating the new updates.

Take care,

Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
You can use TouchLockPro for it. Maybe you do not need the locking features, so you can disable that, but you can use the feature to get the status registry keys of TouchLockPro.

The Status of TouchLockPro is written below the registry key HKCU\Software\ZuinigeRijder\Status, so other programs can also see the lock status of TLP and can react on that:

- IsLockedStatus

- LightSensor

- GSensor

- NavSensor

- ProximitySensor
[Windows Mobile Apps and Games] ZuinigeRijder:
Yesterday I had a bad day. Suddenly, I felt the phone rebooting in my pocket. The battery was before approx. 60% charged. But it kept rebooting and after the windows startup screen showed up (you could just see the battery was empty), it rebooted again. I took out the battery.

Apparently the endless reboot thing is something more people encounter even on other devices than the Touch Diamond. Just try to Google for:

site:xda-developers.com endless reboot

Note that I first tried to fully charge my Touch Diamond, took out my SIM, reboot while on power, but all no luck. I charged overnight the battery for 10 hours. The battery is shown as full (the led indicator says it and also the battery indicator in Windows Mobile just before it reboots).

Things I still need to try:

- use a battery from someone else (to exclude the battery as cause)

- do a hard reset (although nothing has been changed recently)

I hope one of those will help and that not the motherboard is broken (because that is also said by some forum members). Otherwise it becomes difficult to continue developing :eek:
[Windows Mobile Apps and Games] Tokl:
Dawn...

The Diamond of an friend died last Week in the exact same way, noting helped no hardreset no new battery...

Since the Hardreset it isnt booting anymore, it stucks at the HTC screen.

So hopefully you will have more luck than he!

Greetings from the neighborhood,

Tokl
[Windows Mobile Apps and Games] ZuinigeRijder:
Unfortunately a battery of a friend did not work too and also a hard reset did not solve the problem. After the green Windows Mobile 6 screen appears, it starts rebooting. So it looks like a hardware malfunction :mad: Probably I am out of options and a repair of a 3 year old phone is not attractive too. :eek:
[Windows Mobile Apps and Games] Jackos:
Time to move on and buy a TP2? :D
[Windows Mobile Apps and Games] ZuinigeRijder:
Because I thought I could throw away my Diamond, as a last resort I formatted the SD Card too, so not just a hard reset, but a hard reset with formatting the SD Card.

And by luck :confused: I could go into the screen alignment and the Windows Mobile 6.1 setup, including the Mobile operator setup. I could reboot successfully thereafter. Hope that it stays like that :cool:

The only thing I need to really install things from scratch. But for now I just try to use it for some time with only my own programs, TouchLockPro and BattClock. Have to look up my customizations.
[Windows Mobile Apps and Games] wei2005yh:
year ,but tlp can not log the lightsensor to reg when the lightsensor isn't in use. actually i have used the tlp for a long time,and its feature does help me a lot.just improve battclock in your progress to get it more stronger. i m going to make a cellid based auto-profile-switch script,:D

---------- Post added at 12:44 AM ---------- Previous post was at 12:27 AM ----------

if there was some bad block on mlc , endless reboot will reappear anytime.maybe you need the mtty task44 to format your main storage.god bless you..
[Windows Mobile Apps and Games] WallyGator:
Have You checked CHTS? It has such option and many, many more.