View Full Version : [APP] TimeSyncTZ 0-06 - NTP Time Sychronisation Client (06-JUN-09))
DaveShaw
9th April 2008, 12:26 PM
Info:
TimeSyncTZ is a Time Zone aware NTP client that also copes with Daylight Saving Time (DST). I wrote this after using an app called Sychro Time that only synced to UTC time rather than British Summer Time.
Screens:
http://taeguk.co.uk/xda/TimeSyncTZ/Main0v06.pnghttp://taeguk.co.uk/xda/TimeSyncTZ/Config0v06.png
Features:
10 nist time servers to choose from.
Auto connects to the internet.
Silent running mode from the command line.
Usage (command line):
TimeSyncTZ can be started from a shortcut with any of the following parameter combinations. silent must be specified.
TimeSyncTZ.exe silent [/debug | /debug+ | /debug-] [/timeout:ms] [/silentdelay:ms] [/server:address] [/autoconnect | /autoconnect+ | /autoconnect-]
silent Mandatory first param to enable use of command line mode.
/debug[+/-] Enable/Disable Debugging (Specifying enables, use +/- for explicit on/off) - default Off.
/timeout:ms Number of miliseconds to wait before the NTP class times out - default 20000.
/silentdelay:ms Number of miliseconds to wait before attempting the Sync (Useful when auto running when starting the OS) - default 15000.
/server:address Address (IP/DNS) of the Server to sync with, if not specified will use the last server - default pool.ntp.org.
/autoconnect[+/-] Enable/Disable auto connection to the internet (Specifying enables, use +/- for explicit on/off) - default On.
Change Log:
Download Full Change Log (http://taeguk.co.uk/xda/TimeSyncTZ/ChangeLog.txt)
0v06
-Added Config Dialog
-Fixed AutoConnect option
-Improved Error Handling (See \TimeSyncTZ_Error.log if the program crashes). Now logs silent mode errors too.
-Fixed LastSync bug from 0v05
Todo: (Expected fix in release)
Scheduling support, menu item to create "auto run" shortcut and a "Run when Internet connection established" support (0v07).
Known Issues:
Display problems in CE (#123 (http://forum.xda-developers.com/showpost.php?p=5337352&postcount=123))
Need to double sync when in DST and massively out of date (#128 (http://forum.xda-developers.com/showpost.php?p=6448905&postcount=128))
Credits:
Valer Bocan (for the C# NTP Class).
d0ugie (for encouragment)
nika (for support, as ever)
slumpz (for pool.ntp.org)
l3v5y (for looking after the thread)
MD5 Hash:
0v06 - FEDBBB61D18990DD8E04B9B7484A73DA
l3v5y
9th April 2008, 01:25 PM
Thanks for this! I'll test it and report back.
bdumch
9th April 2008, 08:20 PM
Can you clue me in to why one might use this app? I travel all over the US and the network sync for time zones built into my phone is crap and I can't deal with wasting time fixing appoinments after changing time zones.
DaveShaw
10th April 2008, 10:00 AM
Can you clue me in to why one might use this app? I travel all over the US and the network sync for time zones built into my phone is crap and I can't deal with wasting time fixing appoinments after changing time zones.
It doesn't Sync Time Zone's it Sync's your time, but in your own time zone (set in regional settings) rather than in UTC time.
nikagl
21st July 2008, 09:35 PM
Great app, better than SP Timesync which does not automatically connect (though I do like the interface :)).Regards,Nika.
DaveShaw
21st July 2008, 11:01 PM
Great app, better than SP Timesync which does not automatically connect (though I do like the interface :)).Regards,Nika.
Thanks Nika,
I keep tinkering with the source and I will be done updates when I get time. I might even look at the UI as well :)
Dave
DaveShaw
19th December 2008, 11:45 PM
I've finally updated this app, hopefully I'll keep tinkering to improve stuff, feel free to post feed back.
Ta
Dave
d0ugie
20th December 2008, 01:52 AM
Bravo Dave. In software and other areas in life it often eludes us that simplicity and usefulness are not mutually exclusive.
Thanks for letting me host it. I didn't just add it, I ditched your competitor of sorts sptimesync, a move which is a first for my site.
Doug
l3v5y
1st January 2009, 02:14 AM
I love the "I'm a programmer..." line... :)
Thanks for the update. Now I can get the time right whenever I startup my phone... And that happens a lot with excessive ROM flashing and unstable software!
nikagl
1st January 2009, 01:13 PM
Not sure whether I've ever posted this, but when you sync your phone calendar appointments, and sync the time afterwards you might get strange notifications, and errors (I've had this several times). Nowadays I always perform the following steps when ROM-updating:
1. Update ROM, usually I do not change time/date with the initial screens
2. Run timesync + soft-reset
3. Run Sashimi (or UC, or whatever you use to install your apps ;))
4. Sync my exchange account (= contact & calendar)
Funny thing I noticed is that syncing exchange/calendar takes a long time on WM6.1 (every 100 cal-items it delays for a few minutes), which does not occur on WM6.0... (yeah, I'm running a 6.0 default ROM currently :D)
Regards,
Nika.
thierryb
1st January 2009, 02:04 PM
I get this error choosing the last server in the list.
Works with the first ones.
Thanks for the tool.
TimeSyncTZ.exe
Exception
Un message d'erreur est disponible pour cette exception, mais il ne peut pas être affiché, car ces messages sont facultatifs et ils ne sont pas actuellement installés sur ce périphérique. Installez NETCFv35.Messages.FR.wm.cab pour Windows Mobile version 5.0 ou ultérieure ou NETCFv35.Messages.FR.cab pour d'autres plateformes. Redémarrez l'application pour voir le message.
à TimeSyncTZ.NTPClient.Connect(Boolean UpdateSystemTime)
à TimeSyncTZ.TimeSync.ThreadSyncTime()i
nikagl
1st January 2009, 06:49 PM
It seems you have a French ROM but the English .NET CF 3.5 installed? Or maybe you're suffering from this bug:
http://blogs.msdn.com/martijnh/archive/2008/01/03/fixing-exception-messages-on-the-net-compact-framework-3-5.aspx
Without the real message I wonder whether Paul can help ;). I will try to reproduce myself to see whether it crashes with an English ROM and .NET CF 3.5 in English too...
Regards,
Nika.
slumpz
1st January 2009, 06:57 PM
Hi, it's better if you choose pool.ntp.org as the default server. It will automatically select the nearest server according to your IP address.
nikagl
1st January 2009, 07:18 PM
Yup, same issue on English ROM. Maybe Dave knows why?
Another question I have is that it constantly says it would like to correct about 1 sec (between 0.7 to 1.4 is the values I've seen) after trying to sync again. Any thoughts on why? Possibly it's the time it takes for the code to query and/or set the time?
Regards,
Nika.
thehellraiser
1st January 2009, 07:45 PM
thanx dude.. for sharing this useful application .. GOOB JOB !!! ..
nikagl
1st January 2009, 08:32 PM
I came across one more (minor) bug:
When the TZ is GMT+1 and you sync from some invalid time (in my case the ROMs built date/time, which was sometime in 2007!), it syncs to one hour ahead. So for instance, phone is set to 14/02/2007 08:13, the current time is 01/01/2008 20:30, it will sync to 01/01/2008 21:30 (instead of 20:30).
Setting it back to one hour before, it will sync fine the next time...
Regards,
Nika.
nikagl
1st January 2009, 08:35 PM
I've used the silent option btw (added a shortcut to my Sashimi Root folder that automatically adds it to the \Windows\Startup folder):
TimeSyncTZ.exe silent pool.ntp.org
Regards,
Nika.
DaveShaw
1st January 2009, 09:49 PM
I get this error choosing the last server in the list.
Works with the first ones.
Thanks for the tool.
TimeSyncTZ.exe
Exception
Un message d'erreur est disponible pour cette exception, mais il ne peut pas être affiché, car ces messages sont facultatifs et ils ne sont pas actuellement installés sur ce périphérique. Installez NETCFv35.Messages.FR.wm.cab pour Windows Mobile version 5.0 ou ultérieure ou NETCFv35.Messages.FR.cab pour d'autres plateformes. Redémarrez l'application pour voir le message.
à TimeSyncTZ.NTPClient.Connect(Boolean UpdateSystemTime)
à TimeSyncTZ.TimeSync.ThreadSyncTime()i
I get the error "No such host", which probably means I that some of the server's in the list are wrong. For the next version, I'll re-test the server list and maybe add pool.ntp.org.
Yup, same issue on English ROM. Maybe Dave knows why?
Another question I have is that it constantly says it would like to correct about 1 sec (between 0.7 to 1.4 is the values I've seen) after trying to sync again. Any thoughts on why? Possibly it's the time it takes for the code to query and/or set the time?
Regards,
Nika.
Hi Nika,
I think it's the delay between the request and reply, I got the same with SynchroTime. Most of the NTP code isn't mine :).
I came across one more (minor) bug:
When the TZ is GMT+1 and you sync from some invalid time (in my case the ROMs built date/time, which was sometime in 2007!), it syncs to one hour ahead. So for instance, phone is set to 14/02/2007 08:13, the current time is 01/01/2008 20:30, it will sync to 01/01/2008 21:30 (instead of 20:30).
Setting it back to one hour before, it will sync fine the next time...
Regards,
Nika.
This I am unsure of, I'll try and re-test this when I next re-open the code ;). Was it a Kaiser ROM, if so let me know which and I'll flash it to be sure. Do you flash and change the time zone as part of the "Tap screen to Setup" or change it in Windows afterwards?
Ta
Dave
nikagl
1st January 2009, 09:57 PM
This I am unsure of, I'll try and re-test this when I next re-open the code ;). Was it a Kaiser ROM, if so let me know which and I'll flash it to be sure. Do you flash and change the time zone as part of the "Tap screen to Setup" or change it in Windows afterwards
Hi Dave,
I've had this with all ROMs (yes it's Kaiser, current is a WM6.0 ROM, see my sig) as far as I remember. Possibly you could even try to set your time back, set it to GMT+1 and sync, which will set the time to a GMT+2 time. I'll check when my phone is done syncing ;)
Regards,
Nika.
nikagl
2nd January 2009, 08:52 AM
Shorcut in my startup turned out not to be so successful as it fails to connect every time I soft-reset. I guess the HSDPA connection has not yet correctly initialised when the startup folder is executed. Maybe you can add a command-line like "delay XX" where it delays doing the sync?
Regards,
Nika.
slumpz
2nd January 2009, 11:07 AM
Something in the implementation of registry is wrong. The regkey doesn't have the (default) value hence it can't be opened by Resco Registry. I tested with the cab in the first post.
nikagl
2nd January 2009, 11:13 AM
Tried opening it (HKLM\Software\TimeSyncTZ) with FdcSoft Task Manager v3.1 and did not have a problem with it. "(Default)" value is the same as with other reg-folders, set to "(Value not set)", Type "REG_NONE".
Also good to know: I've checked other cabs and none specify the default value...
Regards,
Nika.
DaveShaw
2nd January 2009, 01:40 PM
I've posted an update:
0v03
-Bug Fixes for recent issues.
-"Time not ticking" bug fix.
-SilentDelay registry option, now waits this many miliseconds before attempting a "silent" sync (default 15000 - 15 seconds).
-Improved (but not perfect) Icon.
-Removed Dud Servers, added pool.ntp.org
@slumpz, not sure on the registry issue, I can see the registry fine using total commander.
@nika, the +1hr bug you reported was caused by syncing from a date in DST to a date not in DST. (A problem with the NTP client class, not my code :) - but fixed now)
Ta
Dave
nikagl
2nd January 2009, 01:43 PM
Great, Dave. Please note that you mention "may miliseconds" which should be "many miliseconds" :)
Also update the Usage with an example for the delay :D
Regards,
Nika.
DaveShaw
2nd January 2009, 01:44 PM
Great, Dave. Please note that you mention "may miliseconds" which should be "many miliseconds" :)
Regards,
Nika.
Doh, updating now :D
P.S. I've stoped updating the post now, I was posting and editing a lot the last few minutes :p
Dave
nikagl
2nd January 2009, 02:28 PM
Lol, sorry 'bout that - guess you missed my update about the adding the delay example too ;)
DaveShaw
2nd January 2009, 02:31 PM
Lol, sorry 'bout that - guess you missed my update about the adding the delay example too ;)
Sorry, missed it.
At the moment there is no option for it, it always happens when you use the "silent" param. If you set the SilentDelay to 0, then it won't wait.
EDIT: reword post #1 on silent delay
I'll try and add some proper command line support in the next version (it's a bit ugly at the moment):)
Ta
Dave
nikagl
2nd January 2009, 02:34 PM
Ouch, sorry about messing up the thread comments by invalid interpretation of the new option. Thought it was command line, but it actually is a reg-entry, which was perfectly documented by you! Guess the champaign killed some braincells ;)
DaveShaw
2nd January 2009, 02:37 PM
Ouch, sorry about messing up the thread comments by invalid interpretation of the new option. Thought it was command line, but it actually is a reg-entry, which was perfectly documented by you! Guess the champaign killed some braincells ;)
No worries. :D
After re-reading I saw it could be mis-interpretted, so I changed the wording in post #1, just to be sure. (I do lack explanation skills)
Dave
starbase64
2nd January 2009, 04:40 PM
Hi,
thanks for this good Tool.
Is a automated start possible, when connected to WiFi, ActivSync or other connection?
Or is that already included?
wfg
starbase64
DaveShaw
2nd January 2009, 04:49 PM
Hi,
thanks for this good Tool.
Is a automated start possible, when connected to WiFi, ActivSync or other connection?
Or is that already included?
wfg
starbase64
Sorry, I'm not sure I fully understand.
When you establish an internet connection, you want a Sync to trigger, is that right?
I'm not sure on the use case for this, but I can look at this if desired. I'll have to make the app run at all times in the background.
At the moment the app creates an internet connection if there isn't one already.
I won't add an option to hang up when done, because that causes problems if there is already a connection that doesn't want closing, I think that's why not many people implement it :)
Ta
Dave
starbase64
2nd January 2009, 04:52 PM
S
When you establish an internet connection, you want a Sync to trigger, is that right?
I'm not sure on the use case for this, but I can look at this if desired. I'll have to make the app run at all times in the background.
Hi,
That is what I mean.
The application can always run in the background, it does not bother me.
Thanks for aour fast reply.
wfg
starbase64
nikagl
2nd January 2009, 05:02 PM
Shouldn't it be possible to use a notification for this? For instance "Connected to a network" exists as a notification event, which could trigger the silent options of TimeSyncTZ? I'm not sure whether "Connected to a network" is also triggered when turning on Wifi though...
Regards,
Nika.
DaveShaw
2nd January 2009, 05:09 PM
Shouldn't it be possible to use a notification for this? For instance "Connected to a network" exists as a notification event, which could trigger the silent options of TimeSyncTZ? I'm not sure whether "Connected to a network" is also triggered when turning on Wifi though...
Regards,
Nika.
I'll be able to find the message somewhere in the WM ether.
I'll implement an option when I come to implementing the "Scheduling".
Ta
Dave
frmariam
2nd January 2009, 09:18 PM
Just noted some issues (well at least on my device... I own a Samsung Omnia. It has WM 6.1 in Portuguese, original, most recent rom).
I tryed using your app with an active sync connection with a web connected laptop (no wireless at home).
If web connection is lost (that is I disconnect the cable) while TimeSync is querying the server it'll crash (don't know if it happen in a wifi or mobile connection).
Another thing I noticed is that after a successfull time update, either "Exit" or "X" (I use wkTask) won't terminate the application process (I checked with Dotfred's TaskManager and it was still running). If I then disconnect the USB cable it crashes.
starbase64
2nd January 2009, 09:38 PM
Hi,
NetCF3.5.Messages.EN.cab is attached.
Install and restart TimeSyncTZ.
wfg
starbase64
DaveShaw
2nd January 2009, 09:42 PM
Just noted some issues (well at least on my device... I own a Samsung Omnia. It has WM 6.1 in Portuguese, original, most recent rom).
I tryed using your app with an active sync connection with a web connected laptop (no wireless at home).
If web connection is lost (that is I disconnect the cable) while TimeSync is querying the server it'll crash (don't know if it happen in a wifi or mobile connection).
Another thing I noticed is that after a successfull time update, either "Exit" or "X" (I use wkTask) won't terminate the application process (I checked with Dotfred's TaskManager and it was still running). If I then disconnect the USB cable it crashes.
A screenshot from the details of the error report is attached.
Bloody Omnia users :)
Any chance you can copy that error text and run it though google translate for me ;)
Menu, Exit calls Application.Exit(), not sure why it doesn't exit on the Omnia. I do fire off a thread that runs for 20 seconds to ensure that the app does not hang. If that's still running that might call a problem, I'll see what I can do, but if you give me the full error text I might be able to guess better.
Ta
Dave
l3v5y
2nd January 2009, 10:08 PM
Bloody Omnia users :)
Any chance you can copy that error text and run it though google translate for me ;)
Menu, Exit calls Application.Exit(), not sure why it doesn't exit on the Omnia. I do fire off a thread that runs for 20 seconds to ensure that the app does not hang. If that's still running that might call a problem, I'll see what I can do, but if you give me the full error text I might be able to guess better.
Ta
Dave
Could you not kill the thread you create before calling Application.Exit()?
Abort() should achieve this with minimal damage to things...
DaveShaw
2nd January 2009, 10:35 PM
Just noted some issues (well at least on my device... I own a Samsung Omnia. It has WM 6.1 in Portuguese, original, most recent rom).
I tryed using your app with an active sync connection with a web connected laptop (no wireless at home).
If web connection is lost (that is I disconnect the cable) while TimeSync is querying the server it'll crash (don't know if it happen in a wifi or mobile connection).
Another thing I noticed is that after a successfull time update, either "Exit" or "X" (I use wkTask) won't terminate the application process (I checked with Dotfred's TaskManager and it was still running). If I then disconnect the USB cable it crashes.
A screenshot from the details of the error report is attached.
I'm sending you a PM with a build that kills the thread before quitting. If you could let me know if it fixes the problem. If so, I'll include it in the next release.
Ta
Dave
frmariam
3rd January 2009, 12:30 AM
It's either the Omnia factor or the localization... Other times it's the screen res.
My OS local uses chars like "ó" in the dir path of the storage memory and the memory card. Plus I have .NET installed to one of them rather than the device memory that uses none of such chars in any of its dirs' names...
I already tried it and answered the PM. "Exit" works but "X" doesn't... Something in the app must be left running and keeps wkTask from closing it properly using "X"...
I can kill it though using the startmenu icons and wkTask's terminate command but I often forget... I already suggested the author to add a "auto terminate on x" feature as an option to the exception list but got no answer from the author... but enough ranting.
Updated screenies (if there's an erro.log being generated anywhere I can't find it):
Screen01- Exit using "X" and disconnect cable
Screen02- Disconnect cable during query
DaveShaw
3rd January 2009, 12:39 AM
It's either the Omnia factor or the localization... Other times it's the screen res.
My OS local uses chars like "ó" in the dir path of the storage memory and the memory card. Plus I have .NET installed to one of them rather than the device memory that uses none of such chars in any of its dirs' names...
I already tried it and answered the PM. "Exit" works but "X" doesn't... Something in the app must be left running and keeps wkTask from closing it properly using "X"...
I can kill it though using the startmenu icons and wkTask's terminate command but I often forget... I already suggested the author to add a "auto terminate on x" feature as an option to the exception list but got no answer from the author... but enough ranting.
Updated screenies (if there's an erro.log being generated anywhere I can't find it):
Screen01- Exit using "X" and disconnect cable
Screen02- Disconnect cable during query
Thanks for the English Screen shots. The first one I'm pretty sure is a falling out with the way wkTask Closes the App. As I said in the PM, I'll try and figure it out...
The second problem, though... :confused: If you disconnect an App whilst it is connecting to the Outside world I'd expect a crash. I can handle the crash better if I can find the right one to catch. I'll show a error message that says "Connection lost" but I am against a On Error Resume Next approach ;)
Dave
frmariam
3rd January 2009, 12:54 AM
Thanks man! I know the wkTask issue is not an issue with your but I just recon I might report in the case you could do something to TimeSync that would fix it for wkTask.
About the other one I know that sane ppl will not be querying and then disconnecting the cable thus cutting the internet connection but I recon the same issue should happen if GPRS or Wifi signal is lost during the process... The solution you wrote, giving an error message and bypassing the crash, is sort of what I was thinking too.
DaveShaw
3rd January 2009, 01:34 AM
Thanks man! I know the wkTask issue is not an issue with your but I just recon I might report in the case you could do something to TimeSync that would fix it for wkTask.
About the other one I know that sane ppl will not be querying and then disconnecting the cable thus cutting the internet connection but I recon the same issue should happen if GPRS or Wifi signal is lost during the process... The solution you wrote, giving an error message and bypassing the crash, is sort of what I was thinking too.
I think there is a problem with your connection to the outside world for this NTP client (maybe a firewall blocking), my error handling is weak, the NTP Sync has no return value for success or failure.
Also, my Threading code is Bollocks (It was hacking in 0v02). I'll re-factor the lot so it's done properly.
Couple those two with wkTasks agresiveness I think you've found a weak point in my code. I'm gonna go over the TimeSync Class, The Internet Connection Class and the NTP Client Class with a Toothcomb and make 0v04.
EDIT: Updated Post #1 with Development plan :p
C'ya'll when it's done.
Dave
DaveShaw
7th January 2009, 12:04 PM
0v04 has been release..
More updates:
0v04
-Changed UI layout (See screen shot) and workflow (Seperate Query and Sync buttons).
-Improved accuracy.
-Fixed Threading problems (hopefully) and a SilentDelay bug.
-New Debug registry option (Change to 1 to enable).
Ta
Dave
nikagl
7th January 2009, 01:00 PM
Downloading as we speak :)
gorrunwe
7th January 2009, 01:25 PM
Hello !
You app seems to be great but when i want to connect to a time server, a "Failed to connect" message is displayed.
I don't understand this, as i have a mobile internet connection. Any idea ?
DaveShaw
7th January 2009, 01:36 PM
Hello !
You app seems to be great but when i want to connect to a time server, a "Failed to connect" message is displayed.
I don't understand this, as i have a mobile internet connection. Any idea ?
Can you tried the lastest build (0v04)?
Ta
Dave
gorrunwe
7th January 2009, 01:50 PM
Can you tried the lastest build (0v04)?
Ta
Dave
Strange thing... I download your app by clicking on the bottom link in your first post (it seems to be the 0.04 release). But when i launch it on my ppc, and select the "About" item, i see that the release is 0.03 !
nikagl
7th January 2009, 01:52 PM
You may also want to try to go to pool.ntp.org in your browser and confirm it opens correctly in the browser...
nikagl
7th January 2009, 01:54 PM
Strange thing... I download your app by clicking on the bottom link in your first post (it seems to be the 0.04 release). But when i launch it on my ppc, and select the "About" item, i see that the release is 0.03 !
For me it says .03 too... and it does not confirm syncing the time (yes/no) anymore?
nikagl
7th January 2009, 01:55 PM
The .exe packaged in the .cab is still the Jan-02 version...
gorrunwe
7th January 2009, 01:57 PM
You may also want to try to go to pool.ntp.org in your browser and confirm it opens correctly in the browser...http://pool.ntp.org doesn't work on my browser. But http://www.pool.ntp.org does. Kind of syntax problem i think.
nikagl
7th January 2009, 02:00 PM
http://pool.ntp.org doesn't work on my browser. But http://www.pool.ntp.org does. Kind of syntax problem i think.
Same here, so I guess we have confirmed that your internet connection is ok (although your provider might be blocking NTP ports). Let's wait for Dave's new version, we might be able to use the new debugging feature for more details :)
Regards,
Nika.
DaveShaw
7th January 2009, 02:20 PM
Oops my bad.
I had some problems packing the cab's last night. I somehow must have uploaded the bugged version (though I swear I deleted it :confused:), I have now uploaded the CAB I had on my phone (this one I have been testing and it does work ;))
Ta
Dave
gorrunwe
7th January 2009, 03:00 PM
Ok it is the right release.
But now, when i click on the "Requery Time Server" button, a "NTP Query failed (or has not run yet)" text appears.
Could this be because of my mobile web provider ?
DaveShaw
7th January 2009, 03:11 PM
Here's a CAB to enable debuging, the log will appear on the device root.
Can you post it here for me? Along with your device model and carrier and what not.
Thanks
Dave
gorrunwe
7th January 2009, 03:27 PM
Why does the file weigh only 1 kb ?
When i install this new cab, no new log file appears :(
DaveShaw
7th January 2009, 03:39 PM
Why does the file weigh only 1 kb ?
When i install this new cab, no new log file appears :(
It's just a registry tweak.
After clicking on "Query Time Server" you should get a file called \TimeSyncTZ.log.
Ta
Dave
nikagl
7th January 2009, 03:40 PM
The debug cab-file only sets a registry key (HKLM\Software\TimeSyncTZ\Debug = 1). Dave, you should also post one to disable the key ;)
gorrunwe
7th January 2009, 03:47 PM
Ok it works, so here is the log file.
Something weird : during each connection attempt, it is said that TimeSync tries to connect to http://example.org
EDIT : in the log file, you can see that the connection to example.org fail. But when i try to do the same thing in my mobile browser, it works.
For information, i run your app on a HTC Diamond and my provider is Bouygues Telecom (France)
frmariam
7th January 2009, 03:57 PM
Nice. Seems like wkTask can close it correctly now. And seems to work faster (well this time I had access to wifi)!
ActiveSync (as web connectio) for query no longer works though... "NTP Query failed"
GUI Query Called
Server = pool.ntp.org
Attemping Connection to http://example.org
Starting Sync Thread
Connection to http://example.org succeeded.
Attempting NTP Query
Sync Thread Timed out
NTP Query failed (or has not run yet).
DaveShaw
7th January 2009, 04:25 PM
Thanks for the feedback guys...
Ok it works, so here is the log file.
Something weird : during each connection attempt, it is said that TimeSync tries to connect to http://example.org
EDIT : in the log file, you can see that the connection to example.org fail. But when i try to do the same thing in my mobile browser, it works.
For information, i run your app on a HTC Diamond and my provider is Bouygues Telecom (France)
I connect to example.org because I found a problem exists with the connection API if I used a domain that didn't exsists (i.e. if the NTP server was removed), this was changed in 0v02 to improve stability.
All that aside, I am still not sure why it won't connect on your device. It has a time out of 15 seconds when attempting the connection to the internet.
If you run the query without a GPRS (E, 3G, H, whatever) does it try to establish one?
I have a mate with a Dimaond on O2 Uk, I'm going to try on his to make sure it works.
If I'm still stuck, I'll look into more debuging info (line by line if needed).
Nice. Seems like wkTask can close it correctly now. And seems to work faster (well this time I had access to wifi)!
ActiveSync (as web connectio) for query no longer works though... "NTP Query failed"
GUI Query Called
Server = pool.ntp.org
Attemping Connection to http://example.org
Starting Sync Thread
Connection to http://example.org succeeded.
Attempting NTP Query
Sync Thread Timed out
NTP Query failed (or has not run yet).
As I said last time I think there is some sort of issue with the connection through AS to the NTP, I use a UDP client to request the data over port 123. You might want to check your firewall and open UDP port 123.
Thanks
Dave
gorrunwe
8th January 2009, 12:59 PM
Thanks for the feedback guys...
I connect to example.org because I found a problem exists with the connection API if I used a domain that didn't exsists (i.e. if the NTP server was removed), this was changed in 0v02 to improve stability.
All that aside, I am still not sure why it won't connect on your device. It has a time out of 15 seconds when attempting the connection to the internet.
If you run the query without a GPRS (E, 3G, H, whatever) does it try to establish one?
I have a mate with a Dimaond on O2 Uk, I'm going to try on his to make sure it works.
If I'm still stuck, I'll look into more debuging info (line by line if needed).
Thanks for your answer Dave :)
When i disable my edge connection and try to do a query, i obtain immediatly (that is to say "without any delay") the same error message; exactly like before, when the connection was active.
DaveShaw
8th January 2009, 02:26 PM
Thanks for your answer Dave :)
When i disable my edge connection and try to do a query, i obtain immediatly (that is to say "without any delay") the same error message; exactly like before, when the connection was active.
So it establishs a connection to Edge almost instantly, but then says "NTP Query failed", how long does this take to happen? If you check the logs does it still fail to connect to http://example.org ?
Sorry for all the questions but it will help with writing the debug version for you.
Ta
Dave
gorrunwe
8th January 2009, 03:04 PM
So it establishs a connection to Edge almost instantly, but then says "NTP Query failed", how long does this take to happen? If you check the logs does it still fail to connect to http://example.org ?
Sorry for all the questions but it will help with writing the debug version for you.
Ta
Dave
Sorry, i didn't told what i saw correctly :
when the internet connection is disabled, when i click on the query button, the process fails without any activation of the internet connection.
And this occurs instantanetly.
[deXter]
8th January 2009, 03:17 PM
Great work! Although I would use this over SP TimeSync if only there was a portable version. By portable, I mean a single exe with optional config files, and no CAB. I find CABs overkill for simple apps like this as they unnecessarily pollute the registry, appstore, etc and eventually contribute in making the system slower! ... well, on older PPC like I use anyways, where storage space and CPU comes at a premium. :)
And a feature request: Can you add an option to add TSTZ to the Windows Scheduler, so that it runs automatically at specified times? And/or how about an option to silently launch at startup (with a configurable delay), sync and quit?
nikagl
8th January 2009, 03:22 PM
You should be able to extract the exe and reg-settings easily using MSCEInf:
http://66.196.80.202/babelfish/translate_url_content?lp=fr_en&trurl=http://www.codeppc.com/telechargements/msceinf/msceinf.htm&.intl=us
Regards,
Nika.
DaveShaw
8th January 2009, 03:31 PM
;3138122']Great work! Although I would use this over SP TimeSync if only there was a portable version. By portable, I mean a single exe with optional config files, and no CAB. I find CABs overkill for simple apps like this as they unnecessarily pollute the registry, appstore, etc and eventually contribute in making the system slower! ... well, on older PPC like I use anyways, where storage space and CPU comes at a premium. :)
And a feature request: Can you add an option to add TSTZ to the Windows Scheduler, so that it runs automatically at specified times? And/or how about an option to silently launch at startup (with a configurable delay), sync and quit?
Thanks for the feedback. I might make a standalone version and just supply a CAB for those who prefer CABs (i.e. Me) :p
I am working on the Scheduler in a Future release. The silent launch stuff is in it already. Just create a shortcut in \Windows\Startup to "\Program Files\DaveShaw\TimeSyncTZ\TimeSyncTZ.exe" silent The delay is configurable in the registry at the moment. (See the first post - Change Log) I will add support to create this shortcut from the app in another release.
Ta
Dave
gorrunwe
9th January 2009, 09:35 AM
Hello everyone !
Dave, do you have any idea about my problem ? :)
DaveShaw
9th January 2009, 11:05 PM
Hello everyone !
Dave, do you have any idea about my problem ? :)
Check your PM mate :)
Dave
ugumba
24th January 2009, 09:44 PM
After a couple of sessions with TimeSyncTZ, I noticed that the "silent" run was awfully fast - closer to 0 than 15 seconds.
In the registry, I discovered that the SilentDelay value had been changed to "pool.ntp.org". I had not modified the registry myself.
Just a heads up - easily worked around, but a bug nonetheless.
ugumba
24th January 2009, 09:51 PM
My next experiment was to run TimeSyncTZ towards the end of a Sashimi run, at a point where (hopefully) a WiFi connection can be established.
After a hard reset, my clock is reset to sometime mid-November 2008.
Under these conditions, TimeSyncTZ was completely unable to correct my device's clock. It downloaded a good time from the server, but the calculation of number fo seconds seems to be of very limited resolution (about 16-bit + sign bit?). Also, the calculations seem to overflow into the sign bit. TimeSyncTZ insisted on applying corrections that fluctuated between about -66000 and +66000 seconds.
I had to resort to SP TimeSync, which corrected my time in 2 attempts. (The first attempt was off 1 hour - I guess caused by some DST issue?)
DaveShaw
25th January 2009, 11:14 PM
After a couple of sessions with TimeSyncTZ, I noticed that the "silent" run was awfully fast - closer to 0 than 15 seconds.
In the registry, I discovered that the SilentDelay value had been changed to "pool.ntp.org". I had not modified the registry myself.
Just a heads up - easily worked around, but a bug nonetheless.
Found and fixed that one the other day :) (Copy and paste coding)
My next experiment was to run TimeSyncTZ towards the end of a Sashimi run, at a point where (hopefully) a WiFi connection can be established.
After a hard reset, my clock is reset to sometime mid-November 2008.
Under these conditions, TimeSyncTZ was completely unable to correct my device's clock. It downloaded a good time from the server, but the calculation of number fo seconds seems to be of very limited resolution (about 16-bit + sign bit?). Also, the calculations seem to overflow into the sign bit. TimeSyncTZ insisted on applying corrections that fluctuated between about -66000 and +66000 seconds.
I had to resort to SP TimeSync, which corrected my time in 2 attempts. (The first attempt was off 1 hour - I guess caused by some DST issue?)
Seem's odd, I am using 32bit integers in my code, but I will do some tests and see if I can re-create.
Thanks
Dave
ugumba
26th January 2009, 07:54 PM
Thanks, Dave!
Yesterday I tried again running TimeSyncTZ with my device believing it was mid-November 2008, and it worked this time. The correction was in the order of millions of seconds, so I was a bit rash in blaming the calculation in general. If it happens again, I'll be sure to write down the dates exactly.
BTW, I also tried a piece of software called TimeSync Expert - I liked its capability of syncing using GPS, HTTP, SNTP and SMS. With no "silent" option, however, it's of little use for me.
l3v5y
16th February 2009, 02:26 PM
The only issue I have with this is that after a ROM reset (the ROM date is set to 23/12/09) it fails to set the time or date... Manually setting the date to within a few days and then running this gets the correct time.
DaveShaw
16th February 2009, 09:59 PM
The only issue I have with this is that after a ROM reset (the ROM date is set to 23/12/09) it fails to set the time or date... Manually setting the date to within a few days and then running this gets the correct time.
Eyup mate, can I have a bit more detail?
What does the Query report as the Difference?
Are you on 0v04?
Have you got the debug log to hand?
p.s. I am still working on improved Connections Manager and Full Command line support for 0v05.
Thanks
Dave
l3v5y
16th February 2009, 10:11 PM
Eyup mate, can I have a bit more detail?
What does the Query report as the Difference?
Are you on 0v04?
Have you got the debug log to hand?
p.s. I am still working on improved Connections Manager and Full Command line support for 0v05.
Thanks
Dave
489563.66->12/29/08 4:01:38
Then time is reported as being around 1 second off...
For some reason, I can't get the debug log to work...
EDIT:
Looking in completely the wrong place!
GUI Query Called
Server = pool.ntp.org
Starting Sync Thread
Attemping Connection to http://example.org
Connection to http://example.org succeeded.
Attempting NTP Query
Leap Indicator: No warning
Version number: 3
Mode: Server
Stratum: Secondary Reference
Local time: 2/16/09 9:10:25 PM
Precision: 9.5367431640625E-07 ms
Poll Interval: 1 s
Reference ID: ntp0.nl.uu.net (193.67.79.202)
Root Dispersion: 40.6341552734375 ms
Round Trip Delay: 1000 ms
Local Clock Offset: 1574 ms
Sync Thread Success
1.574 secs
Set time to 12/29/08 4:07:43 AM
This is after the first sync...
DaveShaw
16th February 2009, 10:33 PM
489563.66->12/29/08 4:01:38
Then time is reported as being around 1 second off...
For some reason, I can't get the debug log to work...
EDIT:
Looking in completely the wrong place!
GUI Query Called
Server = pool.ntp.org
Starting Sync Thread
Attemping Connection to http://example.org
Connection to http://example.org succeeded.
Attempting NTP Query
Leap Indicator: No warning
Version number: 3
Mode: Server
Stratum: Secondary Reference
Local time: 2/16/09 9:10:25 PM
Precision: 9.5367431640625E-07 ms
Poll Interval: 1 s
Reference ID: ntp0.nl.uu.net (193.67.79.202)
Root Dispersion: 40.6341552734375 ms
Round Trip Delay: 1000 ms
Local Clock Offset: 1574 ms
Sync Thread Success
1.574 secs
Set time to 12/29/08 4:07:43 AM
This is after the first sync...
Odd, I'll test this and hopefully have it working in 0v05.
BTW that debug log looks strange, I have re-worked the entire logging system to try and fix all the Comm Manager bugs.
Ta
Dave
chris10230
16th February 2009, 10:42 PM
hi
i was wanting to run this weekly to make sure everything is in check with the time, in g-alarm but the command line part does not seem to work with silent in it, not entirely sure it is this or g-alarm as i have never used the command line part in it.
If you have an idea as to where i am going wrong then please say. All i am doint is linking to exe, in arguments putting in 'silent' ?
cheers and sorry if this is an annoying post, but the prog seems really good
DaveShaw
17th February 2009, 01:54 AM
hi
i was wanting to run this weekly to make sure everything is in check with the time, in g-alarm but the command line part does not seem to work with silent in it, not entirely sure it is this or g-alarm as i have never used the command line part in it.
If you have an idea as to where i am going wrong then please say. All i am doint is linking to exe, in arguments putting in 'silent' ?
cheers and sorry if this is an annoying post, but the prog seems really good
Thanks for the report. Bug's are only annoying because it means I made a mistake :o
The source is so out of date with 0v04 release that I won't look into this yet.
I'll be posting 0v05 later this week, pending some testing, all 0v05 features should be now implemented.
I'll be re-testing your's and l3v5y's problems along with everything else.
Please re-test yourselves with 0v05 when it's out. Hopefully it'll be gone.
Thanks
Dave
Beeble
18th February 2009, 01:05 AM
Hi
I'm liking the idea of this, but have a little problem!
It fails to connect (or use the existing [open] connection) using 3g. If i connect to wifi it works perfectly, but doesnt seem to like the celuar GPRS!
I'm currently running ROMeOS on a Raphael and i'm on T-Mobile UK.
The debug file simply says it cant connect to anything, but opera will get to both example.org & pool.ntp.org (using the celuar connection).
Its almost as if its looking for a certain name of connection, which T-mob has renamed (entirely possible i know! T-Mob seems to like things being called T-Mobile Internet, and i'm sure [from previous devices] the default was The internet).
Awaiting V05 to try that, but if you want me to get you any specific feedback please let me know what!
~Beeble
DaveShaw
18th February 2009, 10:49 AM
Hi
I'm liking the idea of this, but have a little problem!
It fails to connect (or use the existing [open] connection) using 3g. If i connect to wifi it works perfectly, but doesnt seem to like the celuar GPRS!
I'm currently running ROMeOS on a Raphael and i'm on T-Mobile UK.
The debug file simply says it cant connect to anything, but opera will get to both example.org & pool.ntp.org (using the celuar connection).
Its almost as if its looking for a certain name of connection, which T-mob has renamed (entirely possible i know! T-Mob seems to like things being called T-Mobile Internet, and i'm sure [from previous devices] the default was The internet).
Awaiting V05 to try that, but if you want me to get you any specific feedback please let me know what!
~Beeble
I wrote 5 debug versions of 0v04 for a guy (look back a few posts) to get the connection stuff working on all cases.
Wait for 0v05 and it should be OK :D
Dave
GreenGremlin
25th February 2009, 07:51 PM
Dave
I also had a bug that time could not be set correctly after a hard reset. It set the date in January instead of today. Strange that the latter attempts could neither set the correct time. I've even restarted the program but it did not help.
DaveShaw
26th February 2009, 12:48 AM
Dave
I also had a bug that time could not be set correctly after a hard reset. It set the date in January instead of today. Strange that the latter attempts could neither set the correct time. I've even restarted the program but it did not help.
Yeah a few people have seen that.:o
Try setting the date closer to today and try again. I'll re-test before releasing 0v05.
0v05 has a problem with the "Auto-Connect" option using Wifi that I need to fix. I have trouble accuratly testing this connection stuff cos I live in a house with 0-2 bars or GPRS at best. :(
Also, I have been busy, I'll see if I can sneak some time at work tomorrow to test / bug fix before release.
Thanks
Dave
DaveShaw
5th March 2009, 10:44 PM
0v05 is out - Finally :p
Changes
0v05
-Fixed Landscape viewing so the Sync button wasn't lost on QVGA screens.
-Fixed Problems with Connection class not working on some devices.
-Improved command line support (see "Usage (command line)" on xda-developers post for TimeSyncTZ).
-Fixed l3v5y's wierd old date problem.
-Fixed l3v5y's wierd old date problem (More NTP Client Bugs).
-More class changes to make it a little easier to work with.
Ta
Dave
nikagl
5th March 2009, 10:57 PM
xda-developers
LOL ;) You gotta love the typos :D
DaveShaw
5th March 2009, 11:00 PM
LOL ;) You gotta love the typos :D
What typos :p :D
Dave
F_R_I_T_Z
19th March 2009, 12:57 AM
NICE. IAM caling at start from TASKBAR using cmd. working like a charm for now.
Thanks
I3INARY
30th March 2009, 01:07 PM
Great App! Thanks, this app was exactly what I was looking for.
T0mcat1977
26th April 2009, 05:43 PM
Thanks for this app. Was looking for a possibilty to setup time since I changed my clock.exe to galarm under Mobile Shell 3.
Could only synchronise time over WiFi not over a Active Sync connection.
anbo1306
19th May 2009, 12:10 PM
Great program!
I saw there is a debug option. Where can I find the debug information? I use this program in my startup and sometime it doesn't correct the time.
DaveShaw
19th May 2009, 12:43 PM
Great program!
I saw there is a debug option. Where can I find the debug information? I use this program in my startup and sometime it doesn't correct the time.
On the root of your device : \TimeSyncTZ.log
You can change where it lives in the Registry by adding / overwriting the string value [HKLM\Software\TimeSyncTZ] \ DebugFileName
Ta
Dave
anbo1306
19th May 2009, 01:00 PM
On the root of your device : \TimeSyncTZ.log
You can change where it lives in the Registry by adding / overwriting the string value [HKLM\Software\TimeSyncTZ] \ DebugFileName
Ta
Dave
Thanks, I found it. I looked everywhere only not in the root :o
jazzneel
22nd May 2009, 07:16 AM
does this work w/ rhodium roms? Like will it make it so I won't have the 1 hour time difference if I sync it w/ eastern (what I am) or do I have to do 1 time zone ahead of me, and if so, will it stay the correct time no matter what?
and lassst question (i have alot of questions lol), if it keeps polling on the internet for time, how much does this drain the battery? thanks!
DaveShaw
22nd May 2009, 10:04 AM
does this work w/ rhodium roms? Like will it make it so I won't have the 1 hour time difference if I sync it w/ eastern (what I am) or do I have to do 1 time zone ahead of me, and if so, will it stay the correct time no matter what?
It sync's with a time server running in UTC time. It then adjusts the sync time by your offset from UTC (shown at the top of the App) before it set's the devices time.
and lassst question (i have alot of questions lol), if it keeps polling on the internet for time, how much does this drain the battery? thanks!
It doesn't poll anything, unless you make a mort script app (or similar) to run it every x hours. You can also make it check on boot, but esentially, it is a one off app. I will be adding scheduling to it later... at that point I will look at battery / performance issues.
P.S. I'll be buying a Rhodium soon so if there are any issues I'll find them, but I don't expect there will be any. I am happy to fix any bug reports :)
Dave
asperon
27th May 2009, 11:02 AM
Would it be possible to get a version that works with Windows Mobile 2003 2nd ed or are you using calls that it doesn't support?
anbo1306
27th May 2009, 11:32 AM
Maybe a nice add-on to a great program.
I have created a shortcut to a MortScript in my startup. This script will wait until a dataconnection is available and then tries to synchronize time. I will try that for every 5 minutes for one hour only. Some registry keys are made to check the correct working. Ofcourse this script can easier or better. All help is welkom.
First I had a shortcut in my startup folder, but most of the time I got a timeout because my dataconnection was not ready yet.
Beeble
28th May 2009, 03:31 PM
First I had a shortcut in my startup folder, but most of the time I got a timeout because my dataconnection was not ready yet.
TimeSyncTZ.exe silent [/debug | /debug+ | /debug-] [/timeout:ms] [/silentdelay:ms] [/server:address] [/autoconnect | /autoconnect+ | /autoconnect-]
silent Mandatory first param to enable use of command line mode.
/debug[+/-] Enable/Disable Debugging (Specifying enables, use +/- for explicit on/off) - default On.
/timeout:ms Number of miliseconds to wait before the NTP class times out - default 20000.
/silentdelay:ms Number of miliseconds to wait before attempting the Sync (Useful when auto running when starting the OS) - default 15000.
/server:address Address (IP/DNS) of the Server to sync with, if not specified will use the last server - default pool.ntp.org.
/autoconnect[+/-] Enable/Disable auto connection to the internet (Specifying enables, use +/- for explicit on/off) - Not yet implemented - Always On.
Just use the /silentdelay:xxx to set the delay, mines currently set for 30000 so there's plenty of time for the phone to wake up properly, enter the sim lock code & have the data connection establish
DaveShaw
28th May 2009, 03:39 PM
Just use the /silentdelay:xxx to set the delay, mines currently set for 30000 so there's plenty of time for the phone to wake up properly, enter the sim lock code & have the data connection establish
You mean /silent delay:xxx (with a space) ;)
I have been meaning to look at both posts prior to this when my phones back up and running (out of comission at the moment) :)
Dave
Beeble
28th May 2009, 03:55 PM
You mean /silent delay:xxx (with a space) ;)
I have been meaning to look at both posts prior to this when my phones back up and running (out of comission at the moment) :)
Dave
Nope! :p my shortcut is "\blahblah\timesyncTZ.exe" silent /silentdelay:30000
No space in silentdelay.
As for WM2003 - had a rummage, i dont have anything running 2003 anymore, oldest thing i have is a Hermes running WM5 - Sorry!
nikagl
28th May 2009, 03:58 PM
Lol, you gotta love xda-dev - the users know the products better than the developers :p
DaveShaw
28th May 2009, 04:10 PM
Lol, you gotta love xda-dev - the users know the products better than the developers :p
You gotta love xda-devs the dev's fail more than the user's :D
@Beeble, I was confusing myself. The command line will be
silent /silentdelay:xxx (there's my missing space :))
Dave
DaveShaw
6th June 2009, 02:10 AM
Finally updated to 0v06. Main feature is a config dialog and auto connect option is finally working.
Changes:
0v06
-Added Config Dialog
-Fixed AutoConnect option
-Improved Error Handling (See \TimeSyncTZ_Error.log if the program crashes). Now logs silent mode errors too.
-Fixed LastSync bug from 0v05
See the first post for more.
Ta
Dave
shamus
6th June 2009, 03:31 PM
Hi Dave
Great app, what do you think about enhancing it with GPS time sync? As far as I know every GPS sattelite has its own atomic clock on board and 3D position is calculated by differences in time radio waves needs to travel from sattelite to the receiver, I remember I have seen application like that for Windows CE sat nav but never seen anything like it for PPC. I've heard one of Mio's PPC have it but probably it works only for their hardware. I can see ony advantages of such solution no need for internet connection and time accuracy probably might be better considering delays with packet transfer over the internet. What do you think about this idea?
DaveShaw
6th June 2009, 10:30 PM
Hi Dave
Great app, what do you think about enhancing it with GPS time sync? As far as I know every GPS sattelite has its own atomic clock on board and 3D position is calculated by differences in time radio waves needs to travel from sattelite to the receiver, I remember I have seen application like that for Windows CE sat nav but never seen anything like it for PPC. I've heard one of Mio's PPC have it but probably it works only for their hardware. I can see ony advantages of such solution no need for internet connection and time accuracy probably might be better considering delays with packet transfer over the internet. What do you think about this idea?
Hi mate, it's an idea, but maybe a bit outta my scope. This app does what I need it to. I think iGO 8 sync's off the GPS satterlites.
I might look into it, if I get really bored ;).
Dave
petemc947
22nd July 2009, 10:11 PM
Hi, Dave,
which version of .net does timesync need please?
I'm using WM 6.1 pro which is .net2 I believe and get the .net error msg.
Regards
DaveShaw
23rd July 2009, 12:35 AM
Hi, Dave,
which version of .net does timesync need please?
I'm using WM 6.1 pro which is .net2 I believe and get the .net error msg.
Regards
It needs 3.5, most of my apps do...:o
You can install it from here: http://forum.xda-developers.com/showthread.php?t=373721
Or just google for .net compact framework 3.5
Thanks
Dave
flitzjoy
23rd July 2009, 03:04 AM
congrats man! the app does well what it meant.
Its small, simple, has command line support. Really perfect. Maybe some UI work someday. But its really fine right now. Thx again.
DaveShaw
23rd July 2009, 10:17 AM
congrats man! the app does well what it meant.
Its small, simple, has command line support. Really perfect. Maybe some UI work someday. But its really fine right now. Thx again.
I'm not that skilling in design, but I'm open to idea's (also it was developed to work from QVGA up).
Dave
petemc947
24th July 2009, 07:48 PM
It needs 3.5, most of my apps do...:o
You can install it from here: http://forum.xda-developers.com/showthread.php?t=373721
Or just google for .net compact framework 3.5
Thanks
Dave
Thanks Dave, I did that (thanks also to Modaco for the .net 3.5 .cab and config cab) and your great ntp client app works fine now and does exactly what I wanted, i.e.synced Zinc II with with ntp.demon.co.uk.
Regards
Pete
DaveShaw
24th July 2009, 09:47 PM
Thanks Dave, I did that (thanks also to Modaco for the .net 3.5 .cab and config cab) and your great ntp client app works fine now and does exactly what I wanted, i.e.synced Zinc II with with ntp.demon.co.uk.
Regards
Pete
Thanks Pete.
Glad to hear it's doing it's job :).
Dave
smuppy
28th July 2009, 10:56 AM
You're just too good to be true, been looking everywhere for an app like this since I cant add servers to SynchroTime.... SUPERAPP!
Philip
23rd October 2009, 01:03 AM
I will be adding scheduling to it laterIs that ever likely to happen, or has development ceased?
Is so, does anybody know of any other freeware that will use ntp to update my clock on a regular basis?
DaveShaw
23rd October 2009, 09:59 AM
Is that ever likely to happen, or has development ceased?
Is so, does anybody know of any other freeware that will use ntp to update my clock on a regular basis?[/color]
It's pretty much stopped. I don't have much time latley, and from working with Scheduler's at work, will take a bit of coding to implment fully in Windows mobile :).
In this case, you are probably best using some freeware task scheduler to call the command line. I found a few by googling this site.
Ta
Dave
RudolfVe
5th November 2009, 11:06 AM
Hi,
I'm trying to get it running at my HTC Touch Pro with WM6.5.1
I doesn't work so far, this is what my log says:
5-11-09 10:35:56 - GUI Query Called
5-11-09 10:35:56 - Server = pool.ntp.org
5-11-09 10:35:56 - Starting Sync Thread
5-11-09 10:35:56 - Started Sync Thread
5-11-09 10:35:56 - Attemping Connection using new Class (1/3)
5-11-09 10:35:56 - cm.Status : Unknown
5-11-09 10:35:56 - Connection 1 Failed
5-11-09 10:35:56 - Attemping Connection using new Class (2/3)
5-11-09 10:35:56 - cm.Status : Unknown
5-11-09 10:35:56 - Connection 2 Failed
5-11-09 10:35:56 - Attemping Connection using new Class (3/3)
5-11-09 10:35:56 - cm.Status : Unknown
5-11-09 10:35:56 - Connection 3 Failed
5-11-09 10:35:56 - Sync Thread Result:Failed
Any help would be very nice!!!
Thanks, Rudolf
DaveShaw
5th November 2009, 11:21 AM
Hi,
I'm trying to get it running at my HTC Touch Pro with WM6.5.1
I doesn't work so far, this is what my log says:
5-11-09 10:35:56 - GUI Query Called
5-11-09 10:35:56 - Server = pool.ntp.org
5-11-09 10:35:56 - Starting Sync Thread
5-11-09 10:35:56 - Started Sync Thread
5-11-09 10:35:56 - Attemping Connection using new Class (1/3)
5-11-09 10:35:56 - cm.Status : Unknown
5-11-09 10:35:56 - Connection 1 Failed
5-11-09 10:35:56 - Attemping Connection using new Class (2/3)
5-11-09 10:35:56 - cm.Status : Unknown
5-11-09 10:35:56 - Connection 2 Failed
5-11-09 10:35:56 - Attemping Connection using new Class (3/3)
5-11-09 10:35:56 - cm.Status : Unknown
5-11-09 10:35:56 - Connection 3 Failed
5-11-09 10:35:56 - Sync Thread Result:Failed
Any help would be very nice!!!
Thanks, Rudolf
No idea. I'll try and test this (I hate 6.5.1) and see if I can figure it out.
Dave
RudolfVe
5th November 2009, 11:27 AM
No idea. I'll try and test this (I hate 6.5.1) and see if I can figure it out.
Dave
Thanks in advance!!!!
If you need any info, just let me know, i will do my best to help you. Though i must say i''m very new to this all..........
Rudolf
zp523444
10th November 2009, 03:38 AM
Great apps!
Can it sync via GPS?
DaveShaw
10th November 2009, 10:29 AM
Great apps!
Can it sync via GPS?
No, sorry.
Dave
peterrus
21st December 2009, 04:18 PM
Have been using this app for quite a long time and did numerous sync, it keeps functioning, and does it job well.
Thanks :)
ps: Using BsB G WM6.5.1 ROM so it should work on 6.5.1
TommyB83
11th January 2010, 12:30 AM
Cool application, many many thanks!
Works very well on my Windows CE 6.0 device also (except for a small graphics glitch, but anything is readable)
DaveShaw
11th January 2010, 12:27 PM
Cool application, many many thanks!
Works very well on my Windows CE 6.0 device also (except for a small graphics glitch, but anything is readable)
Good to know, post a picture of the graphical glitch, and I'll see if I can fix it.
Dave
TommyB83
11th January 2010, 10:43 PM
Here is the screenshot :)
only a few pixels are missing.
In the main window the offset text,
in the configuration the upper controls, and
in the about box the homepage label (not on the screenshot, but the same issue as on the main window)
But again, great work :)
DaveShaw
11th January 2010, 10:46 PM
Here is the screenshot :)
only a few pixels are missing.
In the main window the offset text,
in the configuration the upper controls, and
in the about box the homepage label (not on the screenshot, but the same issue as on the main window)
But again, great work :)
Noted, I'll see what I can do.
Dave
TommyB83
12th January 2010, 08:51 AM
You should be able to fix this very easily :)
Just place the configuration controls 2 or 3 pixels lower, and also inc the labels size a bit (multiline labels a bit more).
Windows CE based devices may don't have all fonts installed. This problem seems to be related to this issue. If the os is falling back to another font (which may be larger), the controls may be to small.
I have had this problems in my own applications, too :)
But I have another suggestion :)
I believe that some users may can't get your application working. In germany (don't know its the same in other countries) all prepaid cards with internet enabled are limited to use only the ports 53 (dns), 80 (http) and maybe 443 (https). all other traffic is denied, including ntp.
Whats about to place a script on a web server and sync to this time? Because of this, it should work for all users (should only be added as an option, because of the additional delay)
Hacker Vasya
20th January 2010, 11:21 AM
'll Show how to translate the program into Russian
lvmm
11th May 2010, 03:48 PM
Minor bug: if device time and actual time are in different DST "zones", time is set 1 hour off the actual time - apparently UTC offset is calculated using the current device time as a basis for DST calculation instead of the actual time. When device time is horribly wrong e.g. after batterly replacement one has to sync twice to set a correct time.
DaveShaw
11th May 2010, 04:33 PM
Minor bug: if device time and actual time are in different DST "zones", time is set 1 hour off the actual time - apparently UTC offset is calculated using the current device time as a basis for DST calculation instead of the actual time. When device time is horribly wrong e.g. after batterly replacement one has to sync twice to set a correct time.
Thanks, I'll add it to the list and include it if I ever do an update.
Dave
deechte
7th October 2010, 08:49 PM
Thanks! This will come in handy with all the XDAndroid clock out of sync problems.
kongocui
19th October 2010, 03:52 AM
Nice app, better than SP Timesync which doesn't automatically connect
bobzero
19th October 2010, 07:56 AM
link to changelog in OP doesn't work:
http://taeguk.co.uk/xda/TimeSyncTZ/ChangeLog.txt
thanks for the app!
bobzero
23rd October 2010, 01:35 AM
I have a problem with Querying the Time Server.
I can query and synchronize fine when I have WIFI enabled, but when I attempt to do it over HSPA connection it immediately says "NTP Query Failed." almost before it could even ping the servers. Switching servers makes no difference.
I think the program is not recognizing my data connection as an internet connection. Is there any way I can fix this so I can sync without needing WIFI?
Thank you.
I have uploaded my debug log.
bobzero
14th November 2010, 12:33 AM
Is it normal for the time delta to fluctuate between -0.5 to 1.2, or thereabouts, when querying the time servers?
Also, I still am able to only sync via WIFI, it fails 100% when using "H" mobile network. I don't believe it is my mobile network blocking the NTP servers because if I theater, I can ping them.
mac_es
19th January 2011, 09:29 AM
Hi,
I'm running this app, it works ok but when I sync, it doesn't work anymore.
When I launch it (after sync) crashes.
I'm running 23152 0C0A whith NetCF 3.5.9198.00
Any help? by the moment, what I have done is a little mscr which deletes the "LastSync" reg entry.
thanks
bk_man
3rd February 2011, 09:12 PM
Can I run this app on Windows CE 5.0 Core?
Installed an app (on SD card - \SDMMC folder), it said that application requires newer version of .NET Compact Framework. Ok, installed that (version 3.5 from microsoft.com) - same message!
Active Sync show that .NET Compact Framework 3.5 is installed on my device!
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.