Meinberg Standard Time String timedelta sensor
This line discipline interfaces serial Meinberg devices.
The line discipline is enabled by the following sequence:
int ldisc = MSTSDISC, fildes; ...
ioctl(fildes, TIOCSETD, &ldisc);
The byte stream is unaltered by the line discipline which maintains a timedelta
sensor using the MSTS data. The timedelta sensor will appear as msts* in the
list of sensors and the delta (in nanoseconds) between the received time
information and the local time can be accessed through the
The Meinberg radio clocks use the following default baudrates:
- GPS-receivers (external and PCI, COM0)
- GPS-receivers (external, COM1)
- DCF77-receivers (external)
- DCF77-receivers (PCI)
The quality of the timedelta is reported as the sensor status:
- The time information is valid. The timedelta is safe to use for
- The attached receiver has been indicating a warning condition for at least
the last ten minutes. The timedelta should be used with care.
- tty timestamping has been turned on but there is no PPS signal present or
the receiver indicated a warning condition for at least the last twenty
minutes. Check your hardware. Some receiver units need PPS to be manually
The status of a second sensor is used to report the status of the device itself:
- The clock is synchronized, e.g. a GPS receiver has a fix.
- The device issued a warning condition, e.g. a GPS receiver has no
interface first appeared in
line discipline was written by