Notices

PDA/AXIM Newbies Don't be afraid to ask a question.

Reply
 
LinkBack Thread Tools
Old 06-28-09, 07:53 AM   #1 (permalink)
Aximsite Prospect
 
Join Date: Jun 2009
Posts: 7
Thanked 0 Times in 0 Posts
Question Clock synchronization?

Hello,

I've just got a X51V from eBay few weeks ago... I've noted that occasionally, like when changing the battery, the date resets to year 2005. I guess the internal capacitor that powers the clock when battery is removed no longer has useful capacity.

Since the internal clock is not too accurate anyway, I would instead like to install an utility that would, once every 24 hours:
- wake device from sleep, if not already awake
- turn on wifi, if not already on
- connect to Internet (X51V and my home router are already configured and verified to work)
- acquire accurate time using NTP or SNTP and sync internal clock
- turn off wifi (if it was off previously, otherwise leave it on, since I may be browsing the net or something)
- turn off device (if it was off previously)
( - if device is in cradle and ActiveSync connected, use USB instead of wifi)

I've browsed several freeware and commercial sites and forums, but couldn't find such utility. Does no one care to have (reasonably) accurate time on his/her PDA?
Could anyone please offer any advice? "Make if yourself" is acceptable too, I just wanted to avoid reinventing the wheel, if this stuff already exists.
DigiMagic is offline   Reply With Quote
Sponsor Ads
Old 06-28-09, 08:02 AM   #2 (permalink)
Aximsite Hall of Fame
 
Join Date: Nov 2003
Posts: 7,878
Thanked 1 Time in 1 Post
Welcome to Aximsite. You may just need to get Mike Spikel's utility that saves the current date/time before removing your battery, then can put it back after the battery swap. You'll be a few seconds off until your next sync, but the Ax isn't an atomic clock anyway.
JakeRich is offline   Reply With Quote
Old 06-28-09, 08:39 AM   #3 (permalink)
Aximsite Prospect
 
Join Date: Jun 2009
Posts: 7
Thanked 0 Times in 0 Posts
Thanks for the reply. I wasn't aware clock reset issue is so widespread

Regarding atomic clocks... well, you are right... and it's not that I really need such accuracy, it's just a nice feature to have.
DigiMagic is offline   Reply With Quote
Old 07-01-09, 02:28 PM   #4 (permalink)
Aximsite Prospect
 
Join Date: Jun 2009
Posts: 7
Thanked 0 Times in 0 Posts
I might get this to work exactly as I wanted it... acquiring atomic/NTP time from server and setting on device verified to work; still need to add scheduled execution to happen once a day and turning on wifi from my app instead of manually...
DigiMagic is offline   Reply With Quote
Old 07-02-09, 03:20 AM   #5 (permalink)
Aximsite Legend
 
Zaniax's Avatar
 
Join Date: Aug 2005
Location: CPH DK EU
Posts: 19,339
Thanked 64 Times in 63 Posts

Awards Showcase
Aximsite Contest Winner Aximsite Bronze Referrer Aximsite Active Silver Member Silver Poster Aximsite Contest Winner Aximsite Gold Contributors Aximsite Silver Contributors Aximsite Bronze Contributors 
Total Awards: 8

SP Timesync will let you acquire accurate time using NTP or SNTP and sync the internal clock via wifi
Have a look here - and it's free

Zaniax ©
Zaniax is online now   Reply With Quote
Old 07-05-09, 01:08 PM   #6 (permalink)
Aximsite Prospect
 
Join Date: Jun 2009
Posts: 7
Thanked 0 Times in 0 Posts
Originally Posted by Zaniax View Post
SP Timesync will let you acquire accurate time using NTP or SNTP and sync the internal clock via wifi
Nice application, but it doesn't do automatically all the required steps... I would have to manually turn on wifi, connect to Internet, press button to sync time, turn off wifi... remember to do all that again next day or next week... Please don't think I am ungrateful for the suggestion - all the other applications I've found are quite similar.

I would like to point out that there is nothing extraordinary in these requirements. My wristwatch that certainly has between thousand to million times less processing power than Axim can do it (well, not using wifi, but some kind of long waves radio).

I have almost completed my solution, will post it here later this week if anyone is interested. It also syncs time automatically after battery power loss, and works on WM phone devices too (tested on HTC Touch HD with permanent GPRS connection).
DigiMagic is offline   Reply With Quote
Old 07-05-09, 07:45 PM   #7 (permalink)
Aximsite Legend
 
Zaniax's Avatar
 
Join Date: Aug 2005
Location: CPH DK EU
Posts: 19,339
Thanked 64 Times in 63 Posts

Awards Showcase
Aximsite Contest Winner Aximsite Bronze Referrer Aximsite Active Silver Member Silver Poster Aximsite Contest Winner Aximsite Gold Contributors Aximsite Silver Contributors Aximsite Bronze Contributors 
Total Awards: 8

Originally Posted by DigiMagic
Does no one care to have (reasonably) accurate time on his/her PDA?
Well, I do care so I use SP Timesync about once a week which keeps my X50v within a few seconds - which is reasonable - at least ®

The SP Timesync link is located on my Today list and is easily accessed while I'm posting here - every day :o

Now let's learn more about your project and see if you can live up to your name - DigiMagic :)

Zaniax ©
Zaniax is online now   Reply With Quote
Old 07-11-09, 08:19 AM   #8 (permalink)
Aximsite Prospect
 
Join Date: Jun 2009
Posts: 7
Thanked 0 Times in 0 Posts
Aximsitesoftwareicon

OK, so... here is the first public beta. Fully functional and never expires.

As usual, the application uses NTP servers if it can connect to Internet and you are not using ActiveSync or Device Center (the problem with them is that they do not support UDP protocol, which is used by NTP).

And now, the improvements :)

If you are using ActiveSync or Device Center, then application connects to alternative servers that do work through AS/DC (and are slighly less accurate, but still good enough).

If you have no connection to Internet at all, then it can use GPS satellites.

GPS radio will be turned on and off by application, if necessary.
WiFi and Bluetooth radios will be turned on and off too, as necessary. GPRS/EDGE/UMTS/HSDPA/XYZ... connection - if you have phone device - too.

You can set the application to synchronize time:
  • every day (at 6:00 AM local time)
  • at power up - but it really does something only if current time is invalid (like when changing battery on an Axim), or at least 24 hours have passed since last sync
  • immediately by manual activation

Now if your Axim forgets current time... just turn it on. Everything else happens automatically.

Recommended connectivity configuration:
  • Phone devices with permanent GPRS connection: use "default connectivity"
  • Phone devices with dial-on-demand-and-disconnect connection: use "connection manager"
  • Classic PDA like Axims: use WiFi or Bluetooth or "default connectivity" for AS/DC over USB
  • Car/boat navigation: use GPS
You can freely try and mix any options. You should have at least one "try something" option checked.

You can enter new NTP servers. You cannot enter new alternative AS/DC servers, because I need to know precisely what kind of protocol each one understands.

Known issues:
  • not everything is configurable (for example, GPS search time is fixed to max. 5 minutes)
  • you need to manually uncheck all options before uninstalling to clear pending wake up etc. notifications from device's notification queue
  • progress messages not well tuned yet, too many at some places, too little at some places
  • missing nice icon for application

Download is 85 kB. Application needs 200 kB on device.
No guarantees of any kind & I am not responsible for anything. I may have lied about GPS and your device will actually contact a hidden Cylon basestar that orbits Earth and transmit your position to it.
Attached Files:
File Type: zip MagicClockSync.zip (84.7 KB, 8 views)
DigiMagic is offline   Reply With Quote
Old 07-11-09, 11:45 AM   #9 (permalink)
Aximsite Veteran
 
johnhu_2005's Avatar
 
Join Date: May 2008
Location: Pennsylvania, US
Posts: 2,434
Device: Samsung Glyde =(
Carrier: Verizon Wireless
Thanked 84 Times in 80 Posts

Awards Showcase
Member of the Month Aximsite Active Bronze Member Aximsite Bronze Contributors Aximsite Contest Winner Top Notch MyPDA 
Total Awards: 5

Absolutely awesome! I downloaded the program and tried it out. I love how it uses the default connection with WMDC when Wi-Fi is not on.

SP Timesync will be uninstalled because of this.

Mind if I upload it to my Skydrive as a mirror download? (Of course, I will give credit)
__________________
Currently running LennySh L11 ROM on my x51v.
Currently running LennySh A09 ROM on my x50v.
~~~~~~~~~~~~~~
To support me,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
johnhu_2005 is online now   Reply With Quote
Old 07-11-09, 02:32 PM   #10 (permalink)
Aximsite Prospect
 
Join Date: Jun 2009
Posts: 7
Thanked 0 Times in 0 Posts
Of course I don't mind.

By the way, if you get a message "failed syncing, server is inaccurate" while using AS/WMDC, that is normal. Server just happened to be under some heavier traffic at the moment. Retry a minute later, or switch to another server. I will make that happen automatically in some future version.

By the way #2, minimum supported hardware is WM 5.0 Pocket PC; PPC 2003 might be supported later.
DigiMagic is offline   Reply With Quote
Old 07-11-09, 02:43 PM   #11 (permalink)
Aximsite Veteran
 
johnhu_2005's Avatar
 
Join Date: May 2008
Location: Pennsylvania, US
Posts: 2,434
Device: Samsung Glyde =(
Carrier: Verizon Wireless
Thanked 84 Times in 80 Posts

Awards Showcase
Member of the Month Aximsite Active Bronze Member Aximsite Bronze Contributors Aximsite Contest Winner Top Notch MyPDA 
Total Awards: 5

Mirror is found here.
__________________
Currently running LennySh L11 ROM on my x51v.
Currently running LennySh A09 ROM on my x50v.
~~~~~~~~~~~~~~
To support me,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
johnhu_2005 is online now   Reply With Quote
Reply

Tags
clock, synchronization

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:51 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-10 LeckMedia, LLC