yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] reidler:
QUESTION

Hi. I have a question. I had to factory reset my Sprint HTC Touch Pro 2. I had saved all by Battclock settings. After I did the reset and reinstalled Battclock, I imported the settings and it was ready to go. But a problem arose. An old problem. Three registers (the ones that might not be defined when there are no reminders, emails, alarms or APPTALLDAY). They are not being displayed. It is showing a 0 even if there is a number. It is not even following the display format which is <R%d. So I went in to Battconfig and changed the content field to a different register and then back again and it displayed properly. But after a reboot it happened again. After several reboots even making that change did not help. ??? It was ok before the factory reset. I am running 3.6. The only thing I can think of is that I had loaded 3.6 over the previous version and this time I only installed 3.6. What do you think? :confused:

Thanks,

Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
It is not something related to only having 3.6 running. Probably it has to do that the registry setting is not yet available at boot. But then it should still behave. Could you post a debug log about the situation, maybe that gives me a clue.
[Windows Mobile Apps and Games] reidler:
Hi. I forgot which version it was - but right after you corrected it to work with a register that might not be defined there was a similar problem when you released the next update. Then you immediately fixed it. What's interesting is that it worked fine even though I kept upgrading versions. Now that I rebuilt the phone and loaded 3.6 (and now 3.6.1) I have this problem.

I hope you can fix this because I have come to rely on this completely.

I don't know how to build a debug file. Meanwhile I attached a screenshot to show you the problem. I also attached the Battclock.reg file. Can that help you? Please let me know how to build the debug file and I will send that to you as well.

If you look at the screenshot - the top left has the date and time. Just to the right of that you'll see my counters displayed:

M0 V0

T1 0

0 0

The M0 means 0 missed calls. V0=0 voice messages. T1=1 text message.

Those last three zeroes are the problem. On the second row, the 0 should be showing a register that shows the Flexmail new email count. On the 3rd row the left zero should be R0 (I have that set up in Display format as <R%d).

The next 0 is to display if there any any APPTALLDAY reminders. It should be blank (invisible) if zero and only visible if there is a 1 or more.

When they are 0 they show in a dimmed grey color. If they are 1 or more they show in a brighter green color - as you see M0 & V0 are grey. T1 is green.

This is the most important app on my phone. I look at this constantly. Thank you for your continued help.

By the way - on the far right is where I show the battery level and then the number of minutes since the last recharge. That works great and I love that.

You can also see the 3 vertical stripes showing the volume levels. Unfortunately there's not much room so some system icons appear under them. The leftmost vertical stripe is the earpiece volume during a call. The center stripe is the speakerphone volume. The rightmost is the ringer volume.

It took some work to find the registers for these.

Thanks.

Eli
[Windows Mobile Apps and Games] hefman:
If you go into BattConfig, go to the "About" screen. From there, you can select the LogDebug option. I believe it will build a log file and in your BattClock folder.
[Windows Mobile Apps and Games] ZuinigeRijder:
Indeed.

1. Enable debug in the BattConfig About Screen

2. Reproduce the scenario,

3. exit BattClock (via Programs execute BattClock and press Yes on question to disable BattClock)

4. Copy the debug log file BattClock.log.txt in the same folder as were BattClock is installed (default Program Files\BattClock)

5. Disable debug logging in the BattConfig About Screen

6. Start BattClock (via Programs or a soft reset)
[Windows Mobile Apps and Games] reidler:
Ok. Thank you (the last two people that gave me instructions on the log).

There's a file size limit of around 80K for txt files so I had to zip them up. So I included battclock.log, battconfig.log and the battclock.reg again. The zip filed is named Eli-Battclock.zip.

I stopped Battclock. I went in to battconfig and checked on LOGFILE. Then I started Battclock. Then I stopped battclock. I saved the battclock.log.txt file which I attached here. Then I started Battconfig and unchecked LOGFILE. Then I exited battconfig and started battclock again.

I hope you have the information you need to track down this problem. ZuinigeRijder is very helpful amd this whole group is very helpful. Thanks so much. :)

Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
I looked into the provided log files and I see:

2011-07-08 14:15:42 -356454442 RegKey4: HKCU\Software\WebIS\Mail2\Storages\{18681380-104a-01c2-4656-2811d95ecd2f}\TotalUnreadMessages

2011-07-08 14:15:42 -356454442 ERROR Could not open registry key: TotalUnreadMessages

...

2011-07-08 14:15:42 -356454442 RegKey5: HKLM\System\State\Reminder\Count\APPT

2011-07-08 14:15:42 -356454442 ERROR Could not open registry key: APPT

...

2011-07-08 14:15:42 -356454442 RegKey6: HKLM\System\State\Reminder\Count\APPTALLDAY

2011-07-08 14:15:42 -356454442 ERROR Could not open registry key: APPTALLDAY

So it looks like those registry keys are not available.

Note that BattClock tries to reread those registry values, when the registry path does exist at startup. Apparently the following registry keys are NOT available, so BattClock skips them:

HKCU\Software\WebIS\Mail2\Storages\{18681380-104a-01c2-4656-2811d95ecd2f}

HKLM\System\State\Reminder\Count

Do they really exists on your phone? Because these should be filled by other applications? You can create the top key with a registry editor if they do not exist and another dummy value, to be sure they exist at startup, e.g.

HKCU\Software\WebIS\Mail2\Storages\{18681380-104a-01c2-4656-2811d95ecd2f}\Dummy

HKLM\System\State\Reminder\Count\Dummy

But still the other applications should fill those values.......
[Windows Mobile Apps and Games] jcmm:
Hello Reidel,

What plugin do you have for this screen wil "Today" that emulates the iPhone?. Can you tell me about this plugin?. Thank you.

regards,
[Windows Mobile Apps and Games] reidler:
Hi. Thanks so much for looking in to it.

I'm not understanding. Remember a long time ago you had made a change to Battclock to allow for an undefined registry key to be displayed as a blank? (or was it 0? I don't remember whether you set it to come back with a blank or a 0).

The HKLM\System\State\Reminder\Count\APPT key and the APPTALLDAY are such keys. They are not there unless the value is 1 or more. These were the keys that you made the change for and it worked great.

Now - the HKCU\Software\WebIS\Mail2\Storages\{18681380-104a-01c2-4656-2811d95ecd2f}\TotalUnreadMessages key is also not defined. But in this case even the path before the TotalUnreadMessages is not yet defined. This is built by the Flexmail email program. I have not re-installed that yet because I was wondering if that program is what made me have to reset my phone back to factory settings.

So are you saying that the problem is that at least the PATH to the key has to be defined even if the key itself is not defined? That would be a difference that might be the problem. BUT the HKLM\System\State\Reminder\Count\APPT path was defined (up until the APPT). AND also - the APPT and APPTALLDAY came up with those 0s eve when they are defined with a number greater than 1. These registers (register # 5 and #6) follow the Flexmail register (#4). If the path is not there in #4 would that mess up Battclock for the next registers even when defined?

I had suspected this so what I had done (before contacting you) was to go in to CONTENT and remove that registry and replaced it to use a different register and still had the problem so I figured that was not the cause. I removed it from content but not from the registry definition. Would Battclock attempt to read that register path and item just because it is assigned in Display Format even if not assigned in Content?

I'm sorry for making this so complicated. I will try to re-install Flexmail later tonight and see if that corrects the problem. I certainly will let you know.

So bottom line is that the problem might be that the register PATH was not defined? Is that right?

After I re-install Flexmail I'll let you know what happens.

Thanks very much.

Eli
[Windows Mobile Apps and Games] reidler:
I would be happy to let you know about it. It's a program called iPhoneToday. Its a free program. It works very well. I also use S2U2 which is a program that locks the screen and let's you slide a slider to unlock. Do you know about that? It solves several problems that I had using HTC Sense which would easily unlock the screen and dial numbers on its own. Very frustrating. (HTC Touch Pro 2).

You can find iPhoneToday on the xda forum. If you wish I would be happy to email it to you. I think I have the latest version. Let me see if I can attach it to this post...

I uploaded two versions. I am running the 1.5.4.r300-wm version. You can check the forums to see if there is a later version but I don't think so.

Here is a link to the forum. But I took a quick look and it only shows version 1.3. I don't remember where I got the 1.5.4 later versions from. I would have to search to see if there is even a later version out now. You can search if you like and let me know. http://xdaforums.com/showthread.php?t=508429
[Windows Mobile Apps and Games] ZuinigeRijder:
Yes, the path must exist. But I do not expect the next ones are skipped, because of a previous failure one.

No, it will only read it when used in Content (or Stripe).

Indeed the register PATH needs to be defined at startup.

Apparently HKLM\System\State\Reminder\Count is not available at startup? Does it also not work when you stop/start BattClock (when you checked before the registry key exists)? Maybe a typo in the registry key?
[Windows Mobile Apps and Games] reidler:
I reinstalled Flexmail - it used a different path key. I re-set it and IT WORKED AGAIN LIKE NEW!! Great! Thanks so much.:)
[Windows Mobile Apps and Games] jcmm:
Hello reidler,

Thank you very much for all the information and the latest versions of this program.

Regards,
[Windows Mobile Apps and Games] Raulka:
I found this real superb program only today. Thank you very much, it is great!

Only one suggestion: display format of the CPU% would be better in %d%%

In this case you will see 35% and not 35*

Thx again! :rolleyes:
[Windows Mobile Apps and Games] reidler:
You can change that yourself in DISPLAY FORMAT.
[Windows Mobile Apps and Games] reidler:
your welcome. my pleasure.
[Windows Mobile Apps and Games] reidler:
Sorry, I spoke too soon. It does not work right. When I rebooted the phone again it came up 0 instead of R0. So I checked carefully and I see that you are correct and the path:

HKLM\System\State\Reminder\Count indeed did not exist. It did not exist until there was at least one reminder. Apparently before my phone was factory reset it did keep the path always defined even though it did not keep the APPT key defined. And you had fixed that. But, as you wrote, you still require the path to be defined. Now I am finding out that \Reminders\Count\APPT is not defined until it needs to be. So even if I stop and restart Battclock, it does not start to work unless I restart Battclock after there has been at least one reminder.

So I tried your idea of setting up a dummy key:

HKLM\System\State\Reminder\Count\Dummy but this did not work because the phone removed the whole path and that dummy key. It only left HKLM\System\State.

So I'm stuck. Any ideas of what I can do for this? I don't know why before I did the factory reset that the path was always defined.

Any ideas please of how this can be fixed? I am very dependent on this.

Thank you so much.
[Windows Mobile Apps and Games] ZuinigeRijder:
One way would be a mortscript, which at startup creates that registry path. Or a mortscript which monitors the deletion of the path and creates it.

Other possibility would be that BattClock creates that path, when at startup it is not there. But the problem is that when you make typos, a lot of bogus registry paths can be made.

And as last, BattClock could check for the path when it does not exists continuously. But that would cost more performance.
[Windows Mobile Apps and Games] reidler:
I was hoping for one of these ideas. I am afraid to keep asking you for more upgrades. I hope your don't mind. You're so helpful and responsive we all appreciate it so much.

I do not like the idea that will hamper performance because these phones cannot afford any more taxing on performance. I would not like to make a Mortscript that keeps monitoring because that will also degrade performance.

I was hoping that Battclock could build the path as you wrote. But I do not know how to solve the problem you mentioned of typos.

To make a Mortscript to check if the path exists and build it if it does not (or to just build a dummy key which includes the path) would be good but we would need to make sure that the script gets run first before Battclock is started. (I have no experience with Mortscript).

I would like if Battclock would build the registry path\key and be all inclusive and self sufficient rather than have to rely on these outside fixes. That's of course your decision.

Thanks so much.

Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
Ok, I implemented that the registry path will be created (only at startup of BattClock). It seems to work. I also tried to remove the registry path with a registry editor, but I got an error trying to remove the path. I suspect it is because BattClock has a reference to registry path, so that would be perfect.

You can try the test version 3.6.2 in the attachment.

Note that it also contains the updated translations for Serbian, Hungarian and Traditional Chinese.

Hope it works as you expect. And that the registry path is now not removed anymore, because BattClock has a reference to it. Can you test :confused:
[Windows Mobile Apps and Games] jcmm:
Hello ZuinigeRijder,

Is v3.6.2 is fully operational? ... Will I can install myself?.

regards,
[Windows Mobile Apps and Games] ZuinigeRijder:
Yes, it is just a 'normal' version, locally tested by myself. If reidler confirms this solves his problem (or others having the same problem), I will make it available for download as-is ;)
[Windows Mobile Apps and Games] jcmm:
Hello ZuinigeRijder,

Thank you very much ... is perfect.

regards,
[Windows Mobile Apps and Games] reidler:
;) YES, so far so very good. :) I will keep testing to be extra sure but I downloaded it and and it worked immediately. To test, I first checked and saw the registry path was not defined (from \Reminder\Count) and then started Battclock. The displayed content items were all correct as they used to be. I checked and found the registry path was indeed set up (HKLM\System\state\Reminder\Count. The key APPT was not set up (because there were no reminders) and worked because you fixed that part many months ago).

I am not sure what you meant about not being able to remove the path with a registry editor. I stopped Battclock and used Total Commander's registry editor and was able to remove the path. Then I started Battclock and I was even able to remove it while Battclock was running. (That messed things up but I was just testing). But even though I could remove the path, Battclock set it up at the next startup and it was good again.

Thank you very very much ;):). Thanks for the fix and thanks for being so responsive and thanks for being so quick. I was out of town and actually did this 3:30 AM last night (EST). But I was not able to report back because my internet was down until now.

I'll let you know if anything comes up. This is the main and first function on my phone. Take care. Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
[APP] [Updated 12-07-2011] BattClock version 3.6.2 *NEW* Process Monitor

Just uploaded the same version as already posted to sourceforge.

- Create registry path at startup, when it does not exists and is configured to show/log as REGKEY 1 till 12.

- Updated Serbian translations, thanks to slavissa

- Updated Hungarian translations, thanks to thorvath812

- Updated Traditional Chinese translations, thanks to victorchen101

- Updated Dutch translations, thanks to myself ;-)
[Windows Mobile Apps and Games] jcmm:
Hello ZuinigeRijder,

Once again thank you very much to continue serving great, and not abandon the loyal users of Windows Mobile operating system so great but unjustly murdered by Microsoft (this is why I never happen to Windows Phone 7)

Regards,
[Windows Mobile Apps and Games] ZuinigeRijder:
I am going to play with the possibility to get the nearest Tower info just from the radio signal (so no use or need of GPS), using the API:

RIL_GetCellTowerInfo

Background information you can find here

This will give you the following information:

- Cell Tower ID

- Mobile Country Code (MCC)

- Mobile Network Code (MNC)

- Location Area Code (LAC)

- Base Station ID

- GPRS Cell ID

- GPRS Base Station ID

So with BattClock you are able then:

- to display selected information

- log this information, show you can track were you have been

- update the registry, so you can make a separate program making use of the info (e.g. Mortscript)

There are databases which can map the above information to actual location of the Towers (Google or OpenCellID). Of course for that you need database access or you need a subset of the database stored locally. So this makes it possible to track over time were you have approximately been (you are yourself responsible to protect this privacy data), e.g. the log files on your storage card.

Let me know if you would like this feature. Of course, I make sure when not activated this will not negatively impact the other BattClock functionality.
[Windows Mobile Apps and Games] ZuinigeRijder:
Ok, I am able to get the following information from the RIL_GetCellTowerInfo:

mcc: 204, see here for a list of Mobile Country Codes, 204 = Netherlands

mnc: 4, see here for a list of Mobile Network Codes, 204+4 = Vodafone

lac: 49, Location Area Code

cellid: 62851, unfortunately, OpenCellId.org did not have this cellid in its database.

I did not have GPRS, so:

GPRS base station id: 0

GPRS cellid: 0

This is the opencellid API to get back the latitude and longitude information:

Get the position of a specific cell

http://www.opencellid.org/cell/get?key=myapikey&mnc=1&mcc=2&lac=200&cellid=234

Where:

key: The apikey

mcc: mobile country code (decimal)

mnc: mobile network code (decimal)

lac: locale area code (decimal)

cellid: value of the cell id

lac can be ommitted

If cellid is not present or if cellid i unkown, a default return will be based on lac information, but with a much lower accuracy. In that case, cellid return will be empty.

So trying this with my towerinfo information:

http://www.opencellid.org/cell/get?mnc=4&mcc=204&lac=49&cellid=62851

Gives back:

<rsp stat="ok">
<cell
mcc="204"
mnc="4"
lac="49"
cellId=""
nbSamples="10"
lat="51.5705789827982"
lon="4.98229849318449"
range="50000"
/>
</rsp>

The empty response of cellId indicates the cellid is NOT in the database of opencellid.org.

Also celldb could not find my cellid:

http://www.celldb.org

I tried with the following service, where you can sign up for free:

http://www.location-api.com/cell/get/?key=freekey&mcc=204&mnc=4&cellid=62851&lac=49&w4fallback=1

And there it could be found.....

<rsp stat="ok">
<cell
mcc="204"
mnc="4"
cellId="62851"
lac="49"
rat="G"
lat="51.680463969697"
lon="5.1268363333333"
accuracy="3759
"/>
</rsp>

Copy/Paste the location of lat and lon in the Google Maps search box (in the format 51.680463969697, 5.1268363333333), give a more accurate location of the tower.

I will try if Google also has this towerinfo in its database.
[Windows Mobile Apps and Games] ZuinigeRijder:
TowerInfo: mcc 204 mnc 4 lac 49 cellid 62851

I also checked with Google API. It returned:

51.6847680000000, 5.1240550000000

Note that www.location-api.com returned:

51.680463969697, 5.1268363333333

Now the question is how to make this data useful in a separate program, e.g. showing the locations on a map. It can be a windows program or a Windows Mobile phone program. For both is internet access needed, at least for getting the location (lat, lon)...........

Note that you can directly go to the location using google maps: http://maps.google.com/maps?q=loc:51.680463969697,5.1268363333333

Or using OpenStreepMap: http://nominatim.openstreetmap.org/search?q=51.680463969697,5.1268363333333
[Windows Mobile Apps and Games] letsgoflyers81:
You can change the horizontal and vertical placements of BattClock. If you change ClockX and ClockXLandscape, you can but it wherever on the taskbar you want.
[Windows Mobile Apps and Games] kleinc:
Here is another screenshot with background image from an HTC S740 (image itself also attached for all interested people using the same theme).

I used your modified binary from post #175 and it obviously works, but I do only have the new battery indication in the menus or when using applications, it is not visible on the home screen. And if it was visible there I would love to configure another background image (or none) because the coloring is different there.

One more remark: BattConfig from 1.5 release does not work on my S740: BattConfig.1.5.exe: "NotSupportedException" with a strack trace starting with "Microsoft.AGL.Common.MISC.HandleAr()". Microsoft .NET CF 3.5 is installed but I doubt it is working correctly (have this problem with a lots of apps relying on .NET Framework).

However - great work! Thanks!

Kind regards,

Christian
[Windows Mobile Apps and Games] Kavafy:
BattClock covers volume icon

... as illustrated in the attached.

Touch HD, WM 6.1. Any suggestions please?

K
[Windows Mobile Apps and Games] letsgoflyers81:
BattClock is too wide in its current configuration. Lower the value of the width and then adjust its X positioning and you should find a way to get it to fit.
[Windows Mobile Apps and Games] RED_RIAN:
Seems to be an issue that if you click the about in configuration tool then back all your settings are lost. Would be cool to be able to export / import your settings or something similar especially for those who flash a bunch of roms.

*oops saw this is already going for v1.6, don't know how to delete post*
[Windows Mobile Apps and Games] Jokes On You:
In the settings-> system menu go to clocks and alarms. Then in the more tab uncheck "display the clock on the title bar in all programs".

I have the same issue. I am assuming when you have an application open then the alignment is fine but when your on the today screen it covers some things up. There is no real fix for this as of yet.
[Windows Mobile Apps and Games] ZuinigeRijder:
It looks like the standard Windows Mobile Battery Indicator disappeared, and that is why it is out of order. There should be a clock or battery indicator below the BattClock overlay. The disappearance of the battery icon is not the fault of BattClock though, it does not do anything with the icons, it just overlays the information. Gives more flexibility and does not harm.

Searching about the battery icon disappearing and how to get it back can maybe solve your problem. There should not be a volume icon just left from the taskmanager. If you find the solution how to get the battery icon back, please post the solution here. So others can learn from it.
[Windows Mobile Apps and Games] APEXi:
THX for this very nice application!

v1.5 works great with my TD2 :)
[Windows Mobile Apps and Games] ZuinigeRijder:
According to this, Button is not supported on SmartPhone in .NET CE :mad:

http://www.eggheadcafe.com/software/aspnet/31685166/correct-smartphone-doesn.aspx

Difficult for me to support this, because maybe there are other limitations for smartphone :confused: