CHAPTER 15Serving up Time with an RTC and NTP

Introduction

This project is focused on how the RasPi keeps track of time both locally and through a network. As designed, the RasPi contains no means to set or track time. This design decision was made both to keep the cost down and to minimize the printed circuit board (PCB) size. In addition, the capability would be available in the rev B model because it has a network port that is able to connect to a public Network Time Protocol (NTP) server. An automatic NTP connection is also built into the standard Wheezy Raspian Linux distribution designed for the RasPi.

The RasPi A models and B models without Internet access do not have public NTP service and, thus, require another means to set and track ...

Get Raspberry Pi Projects for the Evil Genius now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.