GPS-Disciplined NTP Server on Raspberry Pi 4

  Рет қаралды 11,024

Linux Tech School

Linux Tech School

3 жыл бұрын

GPS-Disciplined NTP Server on Raspberry Pi 4
Hi guys,
In this video I'll explain how to install a GPS USB module to get precise time and date information from GNSS (GPS, GALILEO, GLONASS, BEIDO) satellite constelations to provide it to our local network servers, workstations and/or other gadgets and appliances.
Check more about GNSS constelations at ESA space agency webpage. Check link below:
www.gsa.europa.eu/european-gn...
I'll be using a GPS usb receiver you can get from ALIEXPRESS. Check link below:
www.aliexpress.com/item/32969...
The main computer hardware on the video was a Raspberry Pi 4 with Raspberry Pi OS.
The main commands on Linux prompt were:
apt install gpsd
apt install gpsd-clients
cd /etc/deafult
nano gpsd
[EDIT]
START_DAEMON="true"
USBAUTO="true"
DEVICES=#/dev/ttyACM0"
GPSD_OPTIONS="-n -D 1"
ENABLED="yes"
GPS_BAUD=9600
[END_OF_EDIT]
systemctl restart gpsd
systemctl status gpsd
systemctl stop gpsd
#Tools to check gps raw data:
gpsmon /dev/ttyCM0
cgps -d
apt install ntp
cd /etc/
nano ntp.conf
[EDIT]
server 127.127.28.0 minpoll 3 maxpoll 3
fudge 127.127.28.0 refid GPS
pool 0.debian.poool.ntp.org iburst
[END_OF_EDIT]
systemctl restart ntp
#NTP monitoring:
ntpq -p
ufw allow 123
ufw enable
I hope you enjoyed this video.
Please comment below for any questions or sugestions.
Regards,
Rodrigo Matias

Пікірлер: 27
@ioannis69k
@ioannis69k 3 жыл бұрын
Great one ! thanks for sharing !
@linuxtechschool4841
@linuxtechschool4841 3 жыл бұрын
Glad you liked it! Thanks!! Regards, Rodrigo
@jockinafrock
@jockinafrock 3 ай бұрын
Nice. I look after the network sync for a major telecoms company in the UK, and use a very expensive GNSS / GPS tester to check time references at network sites. Although I don't think this USB GNSS receiver will be of sufficient quality to replace my test equipment, I'm definitely going to buy one and compare it to my network Grand Master clock source and network test kit.
@daboogie74
@daboogie74 Жыл бұрын
Great video, and tutorial ! It would be great if you could add another tutorial of how to add PPS for ntp.
@Larry821
@Larry821 9 ай бұрын
Yes, without that, it's likely the Internet-based NTP servers will provide much more accurate time! The video itself showed several Internet-based providers which differed by about 40ms from the local GPS one. But unfortunately I think the Internet sources are closer to the truth, which makes a local GPS-based server of limited use. The good news is appears to have produced the video you asked for! kzfaq.info/get/bejne/bceEjZlnv7KadJ8.html
@daboogie74
@daboogie74 8 ай бұрын
@@Larry821 Thanks
@jcmichel5768
@jcmichel5768 3 жыл бұрын
I need to do this using Odroid c2, Raspberry Pi PoE switch HAT, Uputronics Raspberry Pi GPS expansion board and dietpi 7.2. Do you have a guide or can you help with the setup?
@ritynivedha9572
@ritynivedha9572 Жыл бұрын
Hello. Does this require internet to sync real time ?
@HunterZBNS
@HunterZBNS 2 жыл бұрын
Thanks for sharing! Is the RPi getting PPS from the GPS module, and is this something that is needed?
@linuxtechschool4841
@linuxtechschool4841 2 жыл бұрын
Hi, My example does not use PPS. I would need a different module for it. There are internal modules for the RPI with GPS and PPS signal connecting to an I/O directly. The OS will read that. I'll make a new video with that feature when I get my hands on such module. Regards!
@UberLinny
@UberLinny 2 жыл бұрын
Could you have this as primary source & say use a RTC module as a secondary source ?
@linuxtechschool4841
@linuxtechschool4841 2 жыл бұрын
Yes, you can configure the priority of each time source. Play with the stratum value. The higher it is, the less priotity it has. Eg. stratum 1 for GPS, stratum 2 for local RTC. Regards
@TEKENGLOBAL
@TEKENGLOBAL 3 жыл бұрын
Just wanted to confirm all of the commands listed here are in order of install? Also, is there a piece of software that can be loaded to this to display the GPS satellites on a small Pi screen? Appreciate you sharing this project with the community! 👍🍺
@linuxtechschool4841
@linuxtechschool4841 3 жыл бұрын
Yes. You can follow it and experiment this solution. I'm also looking for a GUI application for GPS on LINUX. I'll posted if I find it. Thanks!!
@nilzthorbo5437
@nilzthorbo5437 2 жыл бұрын
gpsmon is a good tool to display received gps data in the terminal
@linuxranch
@linuxranch 2 жыл бұрын
The problem is that the gps you picked does not have a PPS (pulse per second) output. As such you can't get the most accurate information.
@linuxtechschool4841
@linuxtechschool4841 2 жыл бұрын
You're right on that. I'm planning to make a new video with a different setup with an RPI and an HAT board GPS and PPS output directly feeding linux for maximum accuracy. Thanks, Regards!
@viktor.madarasz
@viktor.madarasz 2 жыл бұрын
@@linuxtechschool4841 can you recommend such module for s Rpi4 build of an NTP Server with GPS for maximum accuracy?
@kilometro115
@kilometro115 Жыл бұрын
@@viktor.madarasz Take a look to sparkfun's u-blox boards, most of them come with the PPS pin ready to connect
@parth_325
@parth_325 Жыл бұрын
Is the time received is in UTC format ? If yes who is converting GPS time to UTC ? Thanks.
@linuxtechschool4841
@linuxtechschool4841 Жыл бұрын
Hi, GPS delivers time in UTC. Then, using your sistem locale configuration (timezone) you adjust it to your needs. Regards, RSM.
@tomcruz22
@tomcruz22 Жыл бұрын
when I look at the ntp status, logs says only "starting lsb: start ntp daemon" and "started lsb: start ntp daemon"
@yashashreejadhav5984
@yashashreejadhav5984 Жыл бұрын
Hello How can I configured GPS Disciplined NTP server in Raspberry Pi 4 with Ubuntu 22.04 OS. I am trying but #?NMEA is status means synchronization not working. Kindly provide guidance on it. Thank you .
@tomcruz22
@tomcruz22 Жыл бұрын
use "chrony makestep". For me it works
@yashashreejadhav5984
@yashashreejadhav5984 Жыл бұрын
@@tomcruz22 Thank you
Nanosecond clock sync with a Raspberry Pi
13:56
Jeff Geerling
Рет қаралды 170 М.
Use GPS to Ensure Your Best FT8 Time Setting
12:16
Gadget Talk
Рет қаралды 3,1 М.
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,6 МЛН
бесит старшая сестра!? #роблокс #анимация #мем
00:58
КРУТОЙ ПАПА на
Рет қаралды 3,6 МЛН
Microsecond Accurate NTP using PPS signals from a $12 GPS
15:54
Austin's Nerdy Things
Рет қаралды 11 М.
Using GPS with PPS to synchronize clocks over the network
20:16
Linux Tech School
Рет қаралды 10 М.
This card puts GPS and a tiny OVEN inside your PC!
8:05
Jeff Geerling
Рет қаралды 175 М.
DON'T Use Raspberry Pis for Servers! (Use THIS)
16:23
Hardware Haven
Рет қаралды 1 МЛН
How To Create NTP Server Using RaspberryPi
5:58
Juan Guardado
Рет қаралды 8 М.
Raspberry Pi 4 GPS Woes
10:01
KM4ACK
Рет қаралды 9 М.
Build a Stratum 1 Time Server Using a Raspberry Pi Pico
19:53
Gary Explains
Рет қаралды 19 М.
GPS Comparison Guide
6:44
SparkFun Electronics
Рет қаралды 44 М.
Top 10 Raspberry Pi Projects for 2022
7:54
Jeff Geerling
Рет қаралды 1,5 МЛН
RADIOBERRY HF SDR TRANSCEIVER PI HAT - IT'S BACK!
8:45
Tech Minds
Рет қаралды 151 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 2,8 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,6 МЛН
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 27 МЛН