| MSTS(4) | Device Drivers Manual | MSTS(4) |
msts — Meinberg
Standard Time String timedelta sensor
pseudo-device msts
[count]
This line discipline interfaces serial Meinberg devices.
The line discipline is enabled by the following sequence:
#include <sys/ioctl.h> 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 sysctl(8) interface.
The Meinberg radio clocks use the following default baudrates:
The quality of the timedelta is reported as the sensor status:
The status of a second sensor is used to report the status of the device itself:
The msts interface first appeared in
OpenBSD 4.3.
The msts line discipline was written by
Marc Balmer
<mbalmer@openbsd.org>.
| January 15, 2015 | openbsd |