[time-nuts] Fwd: GPS NTP update on Mac OS-X 10.7.4

Ross T61AA t61aa at amsat.org
Tue Jun 12 16:05:24 UTC 2012


Mike,

Thanks for your reply and:

Yes, I am using USB device comes up as /dev/cu.usbmodem411 or 621 and /dev/tty.usbmodem 421 or 621 depending on which USB port I use and I clearly do not use the tty device as it will wait until DCD goes high, which is never. I note, below that you talk about /dev/gpsu device??

I did a sum link to /dev/gps0 and can cat the output and see the NMEA stream of alternate $GPRMC and $GPZDA messages,

I am using 127.127.20.0 in the ntp.conf:
server 127.127.20.0 mode 16 prefer
fudge 127.127.20.0 time2 .060

I've created a temporary log file and I do note that I get the following message:

key_expire: at 0 associd 7474
peer_clear: at 0 next 1 associd 7474 refid INIT
addto_syslog: refclock_open /dev/gps0: Operation not permitted
addto_syslog: 127.127.20.0 interface 127.0.0.1 -> (null)
key_expire: at 0 associd 7475
peer_clear: at 0 next 2 associd 7475 refid INIT
event at 0 17.171.4.13 8011 81 mobilize assoc 7475
newpeer: 192.168.43.12->17.171.4.13 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
addto_syslog: DNS time.apple.com. ttl 3767
addto_syslog: DNS time.apple.com. minpoll 9
addto_syslog: DNS time.apple.com. maxpoll 12
addto_syslog: DNS time.apple.com. +iburst
key_expire: at 0 associd 7476
peer_clear: at 0 next 3 associd 7476 refid INIT
event at 0 17.83.253.7 8011 81 mobilize assoc 7476
newpeer: 192.168.43.12->17.83.253.7 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
addto_syslog: DNS time.asia.apple.com. ttl 3834
addto_syslog: DNS time.asia.apple.com. minpoll 9
addto_syslog: DNS time.asia.apple.com. maxpoll 12
addto_syslog: DNS time.asia.apple.com. +iburst

Noting that ref clock_open /dev.gps0: Operation not permitted.

I've checked that the permissions on the dev and the directory are all OK

I've also tried making sure that the ntp-restrict.conf includes restrict 127.127.20.0; restrict -6 ::1;

I've also tried fooling the IP by including 127.127.20.0 time.apple.com in the hosts file and then selecting time.apple.com in the System Preferences > Time and Date 

I just cannot get it to accept the gps as a peer.

Thanks,

Ross


On 12/06/2012, at 3:13 PM, mike cook wrote:


> 
> Le 12 juin 2012 à 16:37, Ross T61AA a écrit :
> 
> 
> A little detail of your issue might help. If you are using usb, I assume you are using the NMEA driver.  I don't have Lion, but 10.6. I did try out a mg1613s usb board with my MacBook and got it working with the following IIRC ( I disconnected it as I was just testing the device but that was back in 2010):
> 
> # Generic NMEA driver - default is timing at last message in stream 
> # Serial Port: /dev/gpsu; 4800 baud, 8-bits, no parity
> # 127.127.20.x mode y  where
> # x is the com port number
> # y is the mode which is a concatenation of message selection in bits 0-3
> # 0 = use all messsages
> # 1  = $GPRMC  etc   see the doc.
> # bits 456 are the speed. value 0 = 4800, 16 = 9600,  etc
> #  ex. mode 18 is just $GPGGA messages at 9600 bps
> # server 127.127.20.1 mode 18
> # fudge 127.127.20.1  time1 0.0 time2 0.0 stratum 8
> 
> IIRC there was a time offset due to the message end being used as timing, which can be allowed for using the time2 fudge.
> 
> 
> _______________________________________________
> time-nuts mailing list -- time-nuts at febo.com
> To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> and follow the instructions there.
>> Hi all,
>> 
>> I recently connected up a USB GPS to my Linux box and found it quite easy to get NTP to up from the GPS. I was hoping to get the same GPS to update the Mac running Lion 10.7.4, however, it has been a very frustrating uphill battle.
>> 
>> Has anybody managed to get GPS NTP update working on OS-X?
>> 
>> 73
>> 
>> Ross
>> _______________________________________________
>> time-nuts mailing list -- time-nuts at febo.com
>> To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
>> and follow the instructions there.



More information about the time-nuts mailing list