Editing
Raspberry Pi NTP Server
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Configurare gpsd === Instalam pachetele necesare pentru gestionarea modulului GPS: * apt install gpsd gpsd-clients ==== Startup config pentru gpsd ==== Editam fisierul de configurare gpsd: <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- --> <b># nano /etc/default/gpsd</b>    START_DAEMON="true"  DEVICES="/dev/serial0 /dev/pps"  GPSD_OPTIONS="-n"  USBAUTO="false"  GPSD_SOCKET="/var/run/gpsd.sock" </code> * START_DAEMON -> Porneste automat serviciul gpsd la boot. Daca este "false", gpsd nu se lanseaza singur. * DEVICES -> Aceasta linie indica gpsd sa deschida doua dispozitive simultan ** /dev/serial0 → fluxul NMEA provenit de pe UART (datele GPS clasice: GGA, RMC, sateliti etc.) ** /dev/pps → semnalul PPS hardware folosit pentru sincronizare precisa la nivel de secunda * GPSD_OPTIONS -> Porneste gpsd chiar daca nu exista clienti conectati. Fara "-n", gpsd asteapta un client inainte sa initializeze modulul GPS. * USBAUTO -> Dezactiveaza detectarea automata a dispozitivelor GPS USB; necesar cand folosim un modul pe UART. * GPSD_SOCKET -> Definește socket-ul UNIX prin care aplicatiile (cgps, chrony etc.) comunica cu gpsd. Repornim serviciul executand: * service gpsd restart ==== Testare gpsd ==== Testam functionarea modulului GPS: <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- --> <b># cgps -s</b>  lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqklqqqqqqqqqqqqqqqqSeen 21/Used 14qqk  x Time 2026-02-25T14:06:01.000Z (18)xxGNSS S PRN Elev Azim SNR Usex  x Latitude 44.43550340 N xxGP 10 10 28.0 182.0 43.0 Y x  x Longitude 26.10252040 E xxGP 15 15 16.0 80.0 46.0 Y x  x Alt (HAE, MSL) 128.736, 93.872 m xxGP 18 18 67.0 45.0 32.0 Y x  x Speed 0.02 km/h xxGP 23 23 57.0 144.0 37.0 Y x  x Track (true, var) 166.0, 5.8 deg xxGP 26 26 52.0 222.0 23.0 Y x  x Climb 1.92 m/min xxGP 27 27 30.0 299.0 27.0 Y x  x Status 3D DGPS FIX (9 secs) xxGP 29 29 22.0 105.0 38.0 Y x  x Long Err (XDOP, EPX) 0.56, +/- 2.2 m xxSB127 40 31.0 142.0 35.0 Y x  x Lat Err (YDOP, EPY) 0.64, +/- 2.4 m xxSB128 41 15.0 114.0 31.0 Y x  x Alt Err (VDOP, EPV) 1.28, +/- 4.5 m xxGA 2 302 65.0 200.0 36.0 Y x  x 2D Err (HDOP, CEP) 0.85, +/- 3.4 m xxGA 25 325 19.0 157.0 34.0 Y x  x 3D Err (PDOP, SEP) 1.54, +/- 7.4 m xxGA 30 330 44.0 304.0 22.0 Y x  x Time Err (TDOP) 0.90 xxGA 34 334 49.0 242.0 25.0 Y x  x Geo Err (GDOP) 1.79 xxGA 36 336 74.0 38.0 29.0 Y x  x Speed Err (EPS) +/- 17.5 km/h xxGP 5 5 5.0 34.0 0.0 N x  x Track Err (EPD) n/a xxGP 16 16 55.0 285.0 0.0 N x  x Time offset -2113301 s xxGP 20 20 9.0 57.0 25.0 uN x  x Grid Square KN34bj13 xxSB123 36 39.0 184.0 40.0 N x  x ECEF X, VX 4099907.290 m 0.020 m/sxxSB126 39 27.0 132.0 0.0 N x  x ECEF Y, VY 2008197.370 m 0.010 m/sxxSB136 49 35.0 209.0 0.0 N x  x ECEF Z, VZ 4439297.500 m 0.020 m/sxxGA 6 306 4.0 81.0 37.0 N x  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj </code> Din coloana situata in partea dreapta observam ca sistemul nostru se conecteaza la: * GP - GPS (Global Positioning System) este un sistem global de navigatie prin satelit dezvoltat de Statele Unite. * GA - Galileo este sistemul european de navigatie prin satelit (GNSS), dezvoltat de Uniunea Europeana. * SB - SBAS (Satellite-Based Augmentation System) este un sistem care imbunatateste precizia si fiabilitatea pozitionarii GNSS (GPS, Galileo etc.) Alte sisteme de GNSS care nu sunt prezente in conexiunea nostra ar pute fi: * GL - GLONASS este sistemul de navigatie prin satelit al Federatiei Ruse * BD - BeiDou este sistemul de navigatie prin satelit al Chinei
Summary:
Please note that all contributions to Linux Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linux Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Navigation
Main page
Aplicatii Linux
UrBackup
rSyslog
KeepAlived
USB over IP
Pi-hole
DHCP
BIND DNS
Hardware Linux
Adaugare Disk
Extindere Disk
Docker
Instalare Docker CE
Portainer
Container UrBackup
Container PiHole
Raspberry Pi
NTP Server
Snippets
History Command
Access Control List
Tools
What links here
Related changes
Special pages
Page information