stefaanternier / genkersterren

0 stars 0 forks source link

GPS tijd uitlezen (4u) #1

Open stefaanternier opened 7 years ago

stefaanternier commented 7 years ago

Een script schrijven dat op geregelde tijdstippen de linux tijd synchroniseert met de tijd die uitgelezen wordt van GPS sensor

Varia:

Laerix commented 7 years ago

GPS externe pin ga ik laten toekomen op een RaPi pin, aan deze pin kan een soort (ISR) interrupt service routine gemaakt worden.

Pin info: 10.7 TM_GPIO5 pin (1 pulse per second pin) The 1PPS pin is an output pin. In addition to precise positioning, GPS also allows for accurate timing due to the synchronized atomic clocks in the GPS satellites. While the current date and time is transmitted in NMEA sentences (UTC), an exact and accurate timing signal is pro-vided via the 1PPS pin of the A2235-H GPS receiver. Under good signal conditions the 1PPS signal comes between 620ns and 710ns after the full GPS system second which is accurately (around 10ns) synchronized to UTC. Therefore the 1 second clock can be derived and maintained within around 90ns under good signal conditions. Note: The 1PPS clock accuracy directly depends on the position accuracy!

The GPS signals travel at the speed of light, therefore a position inaccuracy directly translates into 1PPS inaccuracies. 10m position deviation ≈ 33ns 1PPS deviation (typically) 100m position deviation ≈ 333ns 1PPS deviation (typically) The NMEA messages containing absolute timing information (UTC time) are pro-vided around 300ms after the 1PPS signal typically. This may change with the GPS receiver setup.