OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Time sync
tawalker
post Dec 16 2003, 07:42 AM
Post #1





Group: Members
Posts: 82
Joined: 10-December 03
Member No.: 1,130



I was wondering what NTP clients exist for the Zaurus - that is, for sync'ing the system clock with an Internet time server. ISTR there's a commercial program on Handango ("Drifter"?), but are there any alternatives (command-line or graphical)?

Many thanks,
Tim
Go to the top of the page
 
+Quote Post
doseas
post Dec 17 2003, 04:22 PM
Post #2





Group: Members
Posts: 207
Joined: 7-July 03
From: Thousand Oaks, CA
Member No.: 9



Hint: Googling "Zaurus NTP" turned up several hits.

It looks like there is a copy of ntpdate here, with instructions:
www.geocities.co.jp/SiliconValley-Bay/1180/download.html
(use Babelfish to translate)

I found a beta copy of qpe-ndate, with source code, here:
http://www.oeste.de/download/

I haven't tested these, so use at your own risk...
Go to the top of the page
 
+Quote Post
post Dec 17 2003, 04:56 PM
Post #3





Group:
Posts: 0
Joined: --
Member No.: 0



QUOTE
are there any alternatives (command-line or graphical)?

I run this shell script from an icon. (only good for USA time zones)
Substitute for your location.

# cat runtime.sh
#!/bin/sh
$QPEDIR/bin/evm -Xprogress:2000 -XappName=runtime.sh -appletviewer http://nist.time.gov/timezone.cgi?Hawaii-A...tian/d/-10/java
#
Go to the top of the page
 
+Quote Post
allyrfriends
post Dec 17 2003, 05:08 PM
Post #4





Group: Members
Posts: 32
Joined: 9-December 03
Member No.: 1,094



Opie's date and time settings application has an option to use NTP; it comes as standard on OZ. I'm pretty sure this is the command line NTP program used by Open Zaurus and that it would probably work on a Sharp ROM but I'm not promising.
Go to the top of the page
 
+Quote Post
post Dec 17 2003, 05:56 PM
Post #5





Group:
Posts: 0
Joined: --
Member No.: 0



http://docs.zaurus.com/feed/rdate_1.3-3_arm.ipk
Go to the top of the page
 
+Quote Post
post Dec 17 2003, 06:01 PM
Post #6





Group:
Posts: 0
Joined: --
Member No.: 0



Frontend for rdate to get a servers time
http://docs.zaurus.com/feed/synchronizeclo...ock_1.0_arm.ipk
Go to the top of the page
 
+Quote Post
post Dec 17 2003, 06:21 PM
Post #7





Group:
Posts: 0
Joined: --
Member No.: 0



It works.

# rdate -p 132.163.4.101
Thu Dec 18 02:19:52 2003
Go to the top of the page
 
+Quote Post
post Dec 17 2003, 06:44 PM
Post #8





Group:
Posts: 0
Joined: --
Member No.: 0



QUOTE
Frontend for rdate to get a servers time

This works if it runs with root privilege. I tried server NIST server 132.163.4.101
Go to the top of the page
 
+Quote Post
post Dec 17 2003, 08:39 PM
Post #9





Group:
Posts: 0
Joined: --
Member No.: 0



The time is wrong with rdate after suspend and resume. I need to set the time in the Date/Time application.
Go to the top of the page
 
+Quote Post
post Dec 17 2003, 08:59 PM
Post #10





Group:
Posts: 0
Joined: --
Member No.: 0



Thanks to doseas for finding an app that works.

ntpdate_ntp-4.1.1b-z-4_arm works and the time holds after suspend/resume. I also installed rdate.
Go to the top of the page
 
+Quote Post
post Dec 17 2003, 09:08 PM
Post #11





Group:
Posts: 0
Joined: --
Member No.: 0



# ntpdate 132.163.4.101
18 Dec 05:05:46 ntpdate[12358]: step time server 132.163.4.101 offset 240253.508038 sec
Write to trigger.
# date
Thu Dec 18 05:06:33 UTC 2003
#
sucess!

Sorry for all the posts.
Go to the top of the page
 
+Quote Post
post Dec 17 2003, 10:05 PM
Post #12





Group:
Posts: 0
Joined: --
Member No.: 0



The correct date holds after reboot. ntpdate must change the hardware clock. You don't need rdate for ntpdate to work. Now I can assign an icon to the ntpdate script.
Go to the top of the page
 
+Quote Post
tawalker
post Dec 18 2003, 12:56 AM
Post #13





Group: Members
Posts: 82
Joined: 10-December 03
Member No.: 1,130



Thanks for the multitude of suggestions here - I'll give them a try!

Tim
Go to the top of the page
 
+Quote Post
post Dec 18 2003, 06:33 AM
Post #14





Group:
Posts: 0
Joined: --
Member No.: 0



Here are two scripts to run ntpdate. Call runntpdate from an icon.

# pwd
/home/QtPalmtop/bin
# cat runntpdate
#!/bin/sh
qcop QPE/Application/embeddedkonsole 'setDocument(QString)' '/home/QtPalmtop/bin/setntpdate.sh'
exit 0
#
# cat setntpdate.sh
#!/bin/sh
su -c '/home/root/usr/bin/ntpdate 132.163.4.101'
echo set date/time with ntpdate
date
exit 0
#

output looks like this in embeddedkonsole.

$ su -c '/home/QtPalmtop/bin/setntpdate.sh'
Password:
18 Dec 14:30:03 ntpdate[1237]: adjust time server 132.163.4.101 offset -0.008508 sec
Write to trigger.
set date/time with ntpdate
Thu Dec 18 14:30:03 UTC 2003
$
Go to the top of the page
 
+Quote Post
post Dec 18 2003, 11:46 AM
Post #15





Group:
Posts: 0
Joined: --
Member No.: 0



You can use rdate to set the software clock and sync the hardware clock.

Sending a command to the pipe /var/spool/at/trigger causes the hwclock to sync up with the software clock. That is what ntpdate does.

# rdate 132.163.4.101
# echo 'W' > /var/spool/at/trigger

I verified that the adjusted date and time hold after suspend/resume and after reboot.
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th December 2014 - 12:09 PM