[ntp:questions] Problem with Z3801A ASII data

Danny Mayer mayer at gis.net
Sat Jul 30 22:01:06 UTC 2005


John Ackermann N8UR wrote:
> Philip Leonard wrote:
> 
>>I have a Z3801A that I can't seem to get the proper ASCII data stream
>>out of.  I'm using a Sun Ultra 5 running FreeBSD 5.3 and ntp-4.2.0 which
>>has been patched for the 19200 7o1 serial settings the Z3801A wants.
>>When I start ntpd I get the following type of stuff in clockstats and,
>>of course, ntp will never sync to the Z3801A.
> 
> 
> The Z3801A uses 19200, 7 bit, odd parity, 1 stop bit serial settings.
> The HPGPS refclock is set for 8 bit even parity.  Here's a patch for
> 4.2.0 that works for me (apply to refclock_hpgps.c):
> 
>  18a19,22
> 
>>/* Jeff Mock patch for Z3801A doesn't work in 4.2.0 because "ttl"  param
>>   changes.  This version is set for the Z3801A comm structure, and
>>   WILL NOT work with the 58503.
>>*/
> 
>  87a92
> 
>>#define       SPEED232Z       B19200  /* uart speed (19200 baud) */
> 
>  157c162,170
> <       if (!(fd = refclock_open(device, SPEED232, LDISC_CLK)))
>  ---
> 
>>        //
>>        // If ttl parameter on server line is set to something other
>>        // than zero, initialize the serial port for 19200 baud
>>        // 7-bit odd parity for Z3801A.  Otherwise setup for HP 58503A.
>>
>>      // get rid of test because it doesn't work in 4.2.0 -- N8UR
>>
>>          if (!(fd = refclock_open(device, SPEED232Z, LDISC_CLK | LDISC_7O1)))
> 

John, please file a bug report so that we can make sure it gets fixed in 
the sources.

Danny



More information about the questions mailing list