time-nuts@lists.febo.com

Discussion of precise time and frequency measurement

View all threads

Re: [time-nuts] Beaglebone NTP server

GR
Gabs Ricalde
Wed, Jun 19, 2013 6:52 PM

ntpd (poll=1) loopstats and ppstest using an eCAP clocksource and PPS

root@beaglebone:~# ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1371666297.000000005, sequence: 15602 - clear
0.000000000, sequence: 0
source 0 - assert 1371666298.000000003, sequence: 15603 - clear
0.000000000, sequence: 0
source 0 - assert 1371666299.000000008, sequence: 15604 - clear
0.000000000, sequence: 0
source 0 - assert 1371666300.000000018, sequence: 15605 - clear
0.000000000, sequence: 0
source 0 - assert 1371666300.999999995, sequence: 15606 - clear
0.000000000, sequence: 0

To anyone interested, prepare a cross compiler (I'm using Linaro
2013.02) and try building a 3.8 kernel
(https://github.com/beagleboard/kernel/tree/3.8). I will post the
sources and patches.

ntpd (poll=1) loopstats and ppstest using an eCAP clocksource and PPS root@beaglebone:~# ppstest /dev/pps0 trying PPS source "/dev/pps0" found PPS source "/dev/pps0" ok, found 1 source(s), now start fetching data... source 0 - assert 1371666297.000000005, sequence: 15602 - clear 0.000000000, sequence: 0 source 0 - assert 1371666298.000000003, sequence: 15603 - clear 0.000000000, sequence: 0 source 0 - assert 1371666299.000000008, sequence: 15604 - clear 0.000000000, sequence: 0 source 0 - assert 1371666300.000000018, sequence: 15605 - clear 0.000000000, sequence: 0 source 0 - assert 1371666300.999999995, sequence: 15606 - clear 0.000000000, sequence: 0 To anyone interested, prepare a cross compiler (I'm using Linaro 2013.02) and try building a 3.8 kernel (https://github.com/beagleboard/kernel/tree/3.8). I will post the sources and patches.
CH
Chris Howard
Wed, Jun 19, 2013 7:39 PM

On 6/19/2013 1:52 PM, Gabs Ricalde wrote:

Are you using the original BeagleBone or the new BeagleBone Black?

Will you have any details available about what parts are needed to set it up?

Thanks!

Chris Howard

On 6/19/2013 1:52 PM, Gabs Ricalde wrote: Are you using the original BeagleBone or the new BeagleBone Black? Will you have any details available about what parts are needed to set it up? Thanks! Chris Howard
GR
Gabs Ricalde
Thu, Jun 20, 2013 7:37 PM

On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard chris@elfpen.com wrote:

Are you using the original BeagleBone or the new BeagleBone Black?

I'm using the original BeagleBone. it should work on the BeagleBone Black.

Will you have any details available about what parts are needed to set it up?

If your GPS receiver is using 3.3V logic, wiring it up is
straightforward, similar to the Raspberry Pi NTP server. I will probably
setup a page describing this.

On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard <chris@elfpen.com> wrote: > > Are you using the original BeagleBone or the new BeagleBone Black? > I'm using the original BeagleBone. it should work on the BeagleBone Black. > Will you have any details available about what parts are needed to set it up? > If your GPS receiver is using 3.3V logic, wiring it up is straightforward, similar to the Raspberry Pi NTP server. I will probably setup a page describing this.
EW
Eric Williams
Thu, Jun 27, 2013 4:52 PM

I have a practical application for this, I'm anxious to see your web page
on how to do it.  Thanks.

eric

On Thu, Jun 20, 2013 at 12:37 PM, Gabs Ricalde gsricalde@gmail.com wrote:

On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard chris@elfpen.com wrote:

Are you using the original BeagleBone or the new BeagleBone Black?

I'm using the original BeagleBone. it should work on the BeagleBone Black.

Will you have any details available about what parts are needed to set

it up?

If your GPS receiver is using 3.3V logic, wiring it up is
straightforward, similar to the Raspberry Pi NTP server. I will probably
setup a page describing this.


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.

I have a practical application for this, I'm anxious to see your web page on how to do it. Thanks. -- eric On Thu, Jun 20, 2013 at 12:37 PM, Gabs Ricalde <gsricalde@gmail.com> wrote: > On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard <chris@elfpen.com> wrote: > > > > Are you using the original BeagleBone or the new BeagleBone Black? > > > I'm using the original BeagleBone. it should work on the BeagleBone Black. > > > Will you have any details available about what parts are needed to set > it up? > > > If your GPS receiver is using 3.3V logic, wiring it up is > straightforward, similar to the Raspberry Pi NTP server. I will probably > setup a page describing this. > _______________________________________________ > 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. >
HH
Henry Hallam
Wed, Mar 26, 2014 9:51 PM

Hi Gabs,

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

Cheers,
Henry

On Thu, Jun 20, 2013 at 7:37 PM, Gabs Ricalde gsricalde@gmail.com wrote:

On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard chris@elfpen.com wrote:

Are you using the original BeagleBone or the new BeagleBone Black?

I'm using the original BeagleBone. it should work on the BeagleBone Black.

Will you have any details available about what parts are needed to set it up?

If your GPS receiver is using 3.3V logic, wiring it up is
straightforward, similar to the Raspberry Pi NTP server. I will probably
setup a page describing this.


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.

Hi Gabs, I have a Z3805A and a Beaglebone, and would like to set up an NTP server for the lab. Any kernel drivers and/or setup hints would be appreciated :) Cheers, Henry On Thu, Jun 20, 2013 at 7:37 PM, Gabs Ricalde <gsricalde@gmail.com> wrote: > On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard <chris@elfpen.com> wrote: >> >> Are you using the original BeagleBone or the new BeagleBone Black? >> > I'm using the original BeagleBone. it should work on the BeagleBone Black. > >> Will you have any details available about what parts are needed to set it up? >> > If your GPS receiver is using 3.3V logic, wiring it up is > straightforward, similar to the Raspberry Pi NTP server. I will probably > setup a page describing this. > _______________________________________________ > 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.
BC
Bob Camp
Wed, Mar 26, 2014 10:05 PM

Hi

The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to simply run the PPS in. PPS into serial is one way, pps into a GPIO is another way.

Bob

On Mar 26, 2014, at 5:51 PM, Henry Hallam henry@pericynthion.org wrote:

Hi Gabs,

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

Cheers,
Henry

On Thu, Jun 20, 2013 at 7:37 PM, Gabs Ricalde gsricalde@gmail.com wrote:

On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard chris@elfpen.com wrote:

Are you using the original BeagleBone or the new BeagleBone Black?

I'm using the original BeagleBone. it should work on the BeagleBone Black.

Will you have any details available about what parts are needed to set it up?

If your GPS receiver is using 3.3V logic, wiring it up is
straightforward, similar to the Raspberry Pi NTP server. I will probably
setup a page describing this.


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.

Hi The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to simply run the PPS in. PPS into serial is one way, pps into a GPIO is another way. Bob On Mar 26, 2014, at 5:51 PM, Henry Hallam <henry@pericynthion.org> wrote: > Hi Gabs, > > I have a Z3805A and a Beaglebone, and would like to set up an NTP > server for the lab. Any kernel drivers and/or setup hints would be > appreciated :) > > Cheers, > Henry > > On Thu, Jun 20, 2013 at 7:37 PM, Gabs Ricalde <gsricalde@gmail.com> wrote: >> On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard <chris@elfpen.com> wrote: >>> >>> Are you using the original BeagleBone or the new BeagleBone Black? >>> >> I'm using the original BeagleBone. it should work on the BeagleBone Black. >> >>> Will you have any details available about what parts are needed to set it up? >>> >> If your GPS receiver is using 3.3V logic, wiring it up is >> straightforward, similar to the Raspberry Pi NTP server. I will probably >> setup a page describing this. >> _______________________________________________ >> 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.
BL
Brian Lloyd
Wed, Mar 26, 2014 10:24 PM

On Wed, Mar 26, 2014 at 4:51 PM, Henry Hallam henry@pericynthion.orgwrote:

Hi Gabs,

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

Actually, I was thinking of doing exactly the same thing.  I am interested
in any answers for this too.

--
Brian Lloyd, WB6RQN/J79BPL
706 Flightline Drive
Spring Branch, TX 78070
brian@lloyd.com
+1.916.877.5067

On Wed, Mar 26, 2014 at 4:51 PM, Henry Hallam <henry@pericynthion.org>wrote: > Hi Gabs, > > I have a Z3805A and a Beaglebone, and would like to set up an NTP > server for the lab. Any kernel drivers and/or setup hints would be > appreciated :) > Actually, I was thinking of doing exactly the same thing. I am interested in any answers for this too. -- Brian Lloyd, WB6RQN/J79BPL 706 Flightline Drive Spring Branch, TX 78070 brian@lloyd.com +1.916.877.5067
BL
Brian Lloyd
Wed, Mar 26, 2014 11:18 PM

On Wed, Mar 26, 2014 at 5:05 PM, Bob Camp lists@rtty.us wrote:

Hi

The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to
simply run the PPS in. PPS into serial is one way, pps into a GPIO is
another way.

Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO
line with appropriate clamping to 3.3V.

But if anyone has done this before and run into anything of note, that
would be nice to know ahead of time.

--
Brian Lloyd, WB6RQN/J79BPL
706 Flightline Drive
Spring Branch, TX 78070
brian@lloyd.com
+1.916.877.5067

On Wed, Mar 26, 2014 at 5:05 PM, Bob Camp <lists@rtty.us> wrote: > Hi > > The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to > simply run the PPS in. PPS into serial is one way, pps into a GPIO is > another way. > Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO line with appropriate clamping to 3.3V. But if anyone has done this before and run into anything of note, that would be nice to know ahead of time. -- Brian Lloyd, WB6RQN/J79BPL 706 Flightline Drive Spring Branch, TX 78070 brian@lloyd.com +1.916.877.5067
BC
Bob Camp
Thu, Mar 27, 2014 12:17 AM

Hi

With a GPIO pulse width should not be an issue. With RS-232 you might have needed a pulse stretcher.

Bob

On Mar 26, 2014, at 7:18 PM, Brian Lloyd brian@lloyd.com wrote:

On Wed, Mar 26, 2014 at 5:05 PM, Bob Camp lists@rtty.us wrote:

Hi

The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to
simply run the PPS in. PPS into serial is one way, pps into a GPIO is
another way.

Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO
line with appropriate clamping to 3.3V.

But if anyone has done this before and run into anything of note, that
would be nice to know ahead of time.

--
Brian Lloyd, WB6RQN/J79BPL
706 Flightline Drive
Spring Branch, TX 78070
brian@lloyd.com
+1.916.877.5067


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.

Hi With a GPIO pulse width should not be an issue. With RS-232 you might have needed a pulse stretcher. Bob On Mar 26, 2014, at 7:18 PM, Brian Lloyd <brian@lloyd.com> wrote: > On Wed, Mar 26, 2014 at 5:05 PM, Bob Camp <lists@rtty.us> wrote: > >> Hi >> >> The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to >> simply run the PPS in. PPS into serial is one way, pps into a GPIO is >> another way. >> > > Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO > line with appropriate clamping to 3.3V. > > But if anyone has done this before and run into anything of note, that > would be nice to know ahead of time. > > -- > Brian Lloyd, WB6RQN/J79BPL > 706 Flightline Drive > Spring Branch, TX 78070 > brian@lloyd.com > +1.916.877.5067 > _______________________________________________ > 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.
CA
Chris Albertson
Thu, Mar 27, 2014 12:40 AM

On Wed, Mar 26, 2014 at 2:51 PM, Henry Hallam henry@pericynthion.orgwrote:

Hi Gabs,

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

It's best to go in steps.  Resist the temptation to simply connect

everything, turn it on and see it is works.

The first step is to get NTP installed and running using Internet pool
servers for reference clocks.  Make sure this is working reliably.  NTP
may already be mostly configured.  I don't know.

Next make sure the kernel level PPS diver is working.  To test PPS there is
a user-land test program you can run that simply prints the time of each
pulse to the console.  Besure to watch both the voltage levels (the Beagle
is 3.3 volts) and the polarity of the pulse.  If you get the polarity wrong
it will appear t work but the timing will lag by the pulse width (because
the falling edge is now the raising edge.)
Be sure and match up the levels for both serial and PPS.

After both of the above, adding a GPS based reference clock to NTP is easy.
All you do is edit the config file.  Obviously I've left out much detail
but the biggest thing is to follow the step by step process

Chris Albertson
Redondo Beach, California

On Wed, Mar 26, 2014 at 2:51 PM, Henry Hallam <henry@pericynthion.org>wrote: > Hi Gabs, > > I have a Z3805A and a Beaglebone, and would like to set up an NTP > server for the lab. Any kernel drivers and/or setup hints would be > appreciated :) > > It's best to go in steps. Resist the temptation to simply connect everything, turn it on and see it is works. The first step is to get NTP installed and running using Internet pool servers for reference clocks. Make sure this is working reliably. NTP may already be mostly configured. I don't know. Next make sure the kernel level PPS diver is working. To test PPS there is a user-land test program you can run that simply prints the time of each pulse to the console. Besure to watch both the voltage levels (the Beagle is 3.3 volts) and the polarity of the pulse. If you get the polarity wrong it will appear t work but the timing will lag by the pulse width (because the falling edge is now the raising edge.) Be sure and match up the levels for both serial and PPS. After both of the above, adding a GPS based reference clock to NTP is easy. All you do is edit the config file. Obviously I've left out much detail but the biggest thing is to follow the step by step process -- Chris Albertson Redondo Beach, California