PINE64
Building Stratum One NTP Server - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Pine A64 Projects, Ideas and Tutorials (https://forum.pine64.org/forumdisplay.php?fid=19)
+--- Thread: Building Stratum One NTP Server (/showthread.php?tid=1436)



Building Stratum One NTP Server - lospinos - 06-18-2016

I found this project for Raspberry Pi, a Stratum One NTP server using a GPIO expansion card.
http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html

The expansion card is available from:
https://store.uputronics.com/index.php?route=product/product&path=60_64&product_id=81

I would like to use my Pine64 instead of the RPi.

Anybody here knows if the GPIO header has the same pinout as the RPi? Ideally, I want to buy this card and plug it into my Pine.


RE: Building Stratum One NTP Server - tllim - 06-18-2016

(06-18-2016, 12:45 PM)lospinos Wrote: I found this project for Raspberry Pi, a Stratum One NTP server using a GPIO expansion card.
http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html

The expansion card is available from:
https://store.uputronics.com/index.php?route=product/product&path=60_64&product_id=81

I would like to use my Pine64 instead of the RPi.

Anybody here knows if the GPIO header has the same pinout as the RPi? Ideally, I want to buy this card and plug it into my Pine.

GPS in general using UART interface and so be compatible from hardware point view. The data comes out from GPS also standard, using teh NMEA protocol, but somebody need to port this over to Pine64 platform. One good thing that Pine64 has advantage over RPi is having internal RTC feature.


RE: Building Stratum One NTP Server - lospinos - 06-22-2016

(06-18-2016, 05:06 PM)tllim Wrote: GPS in general using UART interface and so be compatible from hardware point view. The data comes out from GPS also standard, using teh NMEA protocol, but somebody need to port this over to Pine64 platform. One good thing that Pine64 has advantage over RPi is having internal RTC feature.

It is my understanding that the GPS/PPS Clock module sold here
https://store.uputronics.com/index.php?route=product/product&path=60_64&product_id=81
is already configured to work as simple "just plug it in and it works" solution for the RPi.

Huh  Doesn't mean that it may or will work on the Pine too?

Were I more opulent, I'd just buy the module and try it...


RE: Building Stratum One NTP Server - tllim - 06-23-2016

(06-22-2016, 06:03 PM)lospinos Wrote:
(06-18-2016, 05:06 PM)tllim Wrote: GPS in general using UART interface and so be compatible from hardware point view. The data comes out from GPS also standard, using teh NMEA protocol, but somebody need to port this over to Pine64 platform. One good thing that Pine64 has advantage over RPi is having internal RTC feature.

It is my understanding that the GPS/PPS Clock module sold here
https://store.uputronics.com/index.php?route=product/product&path=60_64&product_id=81
is already configured to work as simple "just plug it in and it works" solution for the RPi.

Huh  Doesn't mean that it may or will work on the Pine too?

Were I more opulent, I'd just buy the module and try it...

Just means in general, all GPS communication protocol using NMEA, which is using UART.


RE: Building Stratum One NTP Server - KnReLe - 08-23-2016

(06-18-2016, 12:45 PM)lospinos Wrote: I found this project for Raspberry Pi, a Stratum One NTP server using a GPIO expansion card.
http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html

The expansion card is available from:
https://store.uputronics.com/index.php?route=product/product&path=60_64&product_id=81

I would like to use my Pine64 instead of the RPi.

Anybody here knows if the GPIO header has the same pinout as the RPi? Ideally, I want to buy this card and plug it into my Pine.

The PI-2-Bus header has the same basic pin-out as the 40-pin connector on the Raspberry Pi -- hence the label -- and most of the connections are the same or close equivalents.  The expansion card here connects to pins 1, 3, 5, 8, 10, and 12 (and presumably one or more of the GND pins) and these are all the same: 1 is 3.3V, 3 and 5 are the TWI-1 bus (/dev/i2c-1), pins 8 and 10 are the serial port (UART2, /dev/ttyS2) and pin 12 is PB4 / GPIO36, which is used to receive the 1PPS, the 1 pulse per second synchronization signal.

Now I don't know if the Linux kernels support the use of 1PPS (yet), but disregarding the 1PPS for now, I have already managed to get a similar GPS card working, using the Adafruit Ultimate GPS HAT which has essentially the same UART connections, and using GPSD to receive and collate the data stream.  GPS-receivers are not much different as they all emit NMEA-standard text on a serial line, and GPSD is good at handling the variety in the messages that they produce.


RE: Building Stratum One NTP Server - MarkHaysHarris777 - 08-23-2016

(08-23-2016, 08:29 AM)KnReLe Wrote:  GPS-receivers are not much different as they all emit NMEA-standard text on a serial line, and GPSD is good at handling the variety in the messages that they produce.

The main difference with receivers is the frequency at which they send the gsv sentences, and the order of the NMEA sentences they produce... also, the number and kind of sentences sometimes varies a bit; all of this is usually configurable if you know how to send messages to the receiver (sometimes difficult) and if you have a battery backup in your receiver to hold the changes.

I have posted codes that read and parse NMEA sentences for satellite tracking at this link: