Re: [time-nuts] Lady Heather Daemon for FreeBSD

2010-05-09 Thread Leigh L. Klotz, Jr WA5ZNU

On 02/02/2010 10:18 AM, Ralph Smith wrote:

It should also port to Linux easily with minimal tweaking. I just don't
have a Linux box available.

Ralph
   


I have tboltd running on Ubuntu 9 Linux.  I have not yet tried the ntp 
part, but LadyHeather 3.00 Beta (running under Wine) connects.


With tboltd -v, I get a lot of unknown packets.  I'll separately send 
mail to Ralph with the output, for validation.


For gpsdclient, I haven't figured out where to get the bedec16 routines 
for Linux.  There's /usr/include/bits/endian.h but it doesn't contain 
them.  There's mention of a freebsd man pages package which documents 
them, but no idea where the actual routines are or what package they are in.


Leigh/WA5ZNU


___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] Lady Heather Daemon for FreeBSD

2010-02-02 Thread Bob Camp
Hi

Sounds *very* useful. 

Which version(s) of FreeBSD have you tried it on? 

Thanks!

Bob

-Original Message-
From: time-nuts-boun...@febo.com [mailto:time-nuts-boun...@febo.com] On
Behalf Of Ralph Smith
Sent: Tuesday, February 02, 2010 12:41 PM
To: time-nuts@febo.com
Subject: [time-nuts] Lady Heather Daemon for FreeBSD

I have written a small daemon that attaches to a Thunderbolt and acts as a
client for Lady Heather. In addition, if specified it will provide data to
NTP through the shared memory driver. It currently compiles on FreeBSD,
and OS X.

Available at http://ralphsmith.org/~ralph/thunderbolt.tar.gz

It is in a very early, rough stage at the moment, but I thought I would
provide it for anyone that is interested. There are two programs: tboltd,
and gpsdclient.

First tboltd:
Usage: tboltd [-t tty] [-v] [-p port] [-u unit] [-d]
  -t tty:  Specify Thunderbolt serial port. Default 'cuau1'.
  -v:Increase verbosity level.
  -p port: UDP port to listen for client connections. Default 45000.
  -u unit: Unit number for NTP shared memory driver. Default to none
  -d:Do not detach and run in daemon mode.

Some notes:
- tboltd will currently accept as many clients as memory allows.
- tboltd currently does not buffer requests from clients. Multiple clients
risk having commands interleaved.
- Logging needs to be implemented properly
- tboltd blocks when there is no activity on the thunderbolt or client. On
a Net4501 (133 MHz 486 equivalent), with 3 clients (1 Heather + 2
gpsdclient) it takes less than 1% CPU.
- Likely to be bugs.
- I invoke it on my Net4501 as tboltd -p 45000 -t cuau1 -u 0
- Corresponding ntp.conf entry
  # Use shared memory
  tos mindist 0.030
  server 127.127.28.0 minpoll 4 maxpoll 4 prefer
  fudge 127.127.28.0 time1 0.0275 refid GPS

Second: gpsdclient.
gpsdclient will attach to tboltd or gpsd, receive Thunderbold TSIP
packets, and drive an NTP shared memory segment.
Usage: ./gpsdclient [-g] [-u unit] [-p port] host
- The -g flag will sent the command to gpsd to put it in super-raw mode to
deliver TSIP
- Currently not configured to detach and run as a daemon, will fix that
when I get around to it.

This needs some cleanup and reorganization, but I thought some of you
might be interested. Any comments or suggestions please let me know.
--
Ralph Smith (AB4RS)



___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.




___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] Lady Heather Daemon for FreeBSD

2010-02-02 Thread Ralph Smith
On Tue, February 2, 2010 12:47 pm, Bob Camp wrote:
 Hi

 Sounds *very* useful.

 Which version(s) of FreeBSD have you tried it on?

8.0-STABLE, but it should be good for earlier versions.

Ralph (AB4RS)

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] Lady Heather Daemon for FreeBSD

2010-02-02 Thread Bob Camp
Hi

I'm running 8 on most of my stuff now, so that should not be an issue. If
you had come back with 6.1 that might have been reason to stop and think a
bit. 

Does the program take care of all the serial line setup stuff, or are there
links and stuff that need to be done to get it to talk right? Some of the
NTP serial drivers seem to require a bit of a massage on the serial settings
to make them happy. 

Bob

-Original Message-
From: time-nuts-boun...@febo.com [mailto:time-nuts-boun...@febo.com] On
Behalf Of Ralph Smith
Sent: Tuesday, February 02, 2010 12:54 PM
To: Discussion of precise time and frequency measurement
Subject: Re: [time-nuts] Lady Heather Daemon for FreeBSD

On Tue, February 2, 2010 12:47 pm, Bob Camp wrote:
 Hi

 Sounds *very* useful.

 Which version(s) of FreeBSD have you tried it on?

8.0-STABLE, but it should be good for earlier versions.

Ralph (AB4RS)

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.




___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] Lady Heather Daemon for FreeBSD

2010-02-02 Thread Ralph Smith
On Tue, February 2, 2010 12:58 pm, Bob Camp wrote:
 Hi

 I'm running 8 on most of my stuff now, so that should not be an issue. If
 you had come back with 6.1 that might have been reason to stop and think a
 bit.

 Does the program take care of all the serial line setup stuff, or are
 there
 links and stuff that need to be done to get it to talk right? Some of the
 NTP serial drivers seem to require a bit of a massage on the serial
 settings
 to make them happy.

 Bob

Nothing special required, it just blindly goes with the Thunderbolt's
default configuration of 9600 8N1, and configures the serial line
accordingly.

Ralph

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] Lady Heather Daemon for FreeBSD

2010-02-02 Thread Ralph Smith
On Tue, February 2, 2010 12:53 pm, Ralph Smith wrote:
 On Tue, February 2, 2010 12:47 pm, Bob Camp wrote:
 Hi

 Sounds *very* useful.

 Which version(s) of FreeBSD have you tried it on?

 8.0-STABLE, but it should be good for earlier versions.


It should also port to Linux easily with minimal tweaking. I just don't
have a Linux box available.

Ralph

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.