Moxa DA-UPCI-DK [18/45] Using the timesync daemon in linux

Moxa DA-UPCI-DK [18/45] Using the timesync daemon in linux
DA-IRIGB-4DIO-PCI104-EMC4 Module Driver and Utility Installation
3-4
DA-682A-irigb_timesync_daemon_1.2_amd64.deb) ...
Setting up da-682a-irigb-timesync-daemon (1.2) ...
5. Verify that the driver is loaded and the time sync daemon is running.
a. Use the lsmod command to check whether the IRIG-B module is loaded.
root@Moxa:~# lsmod|grep irig
moxa_irigb 12683 1
a. Verify that the timesync daemon is running with the default configuration.
root@Moxa:~# root@Moxa:~# ps aux|grep ServiceSyncTime
root 3078 0.0 0.1 16136 1140 ? S 10:43 0:00 /usr/sbin/ServiceSyncTime -t
1 -i 10 –B
Using the timesync Daemon in Linux
The following figure shows the help information of the timesync daemon.
root@Moxa:~# ServiceSyncTime -h
Found the IRIG-B module, Hardware ID = 1
IRIG-B time sync daemon.
Usage: ServiceSyncTime -t [signal type] -I -d -i [Time sync interval] -p [Parity check
mode] -B
-t - [signal type]
0 - TTL
1 - DIFF
default value is 1
-I - inverse the input or output signal
-d - Disable time sync
Default this daemon enables the IRIG-B time sync from source port to system time.
-i - [Time sync interval] The time interval in seconds to sync the IRIG-
B time
into system time.
1 ~ 86400 Time sync interval. Default is 10 second.
-p - [Parity check mode] Set the parity bit
0: EVEN
1: ODD
2: NONE
default value is 0
-B - Run daemon in the background
Usage example: Enable to sync time from IRIG-
B Port 1, in TTL signal type every 10
seconds. The input is not inverse.
root@Moxa:~# ServiceSyncTime -t 0 -i 10
Examples
The following command example enables the daemon to synchronize time from Port 1 in DIFF signal type every
10 seconds. The input signal is not inversed. The ServiceSyncTime process runs in the foreground.
root@Moxa:~# ServiceSyncTime -t 1 –i 10
The following command example enables the daemon to synchronize time from Port 1 in DIFF signal type every
10 seconds with ODD parity check mode. The ServiceSyncTime process runs in the foreground.
root@Moxa:~# ServiceSyncTime –t 1 -i 10 –p 1

Содержание

Похожие устройства

Скачать