Examples; Configuring The Timesync Daemon; Using The Irig-B Utility In Linux - Moxa Technologies DA-IRIGB-4DIO-PCI104-EMC4 User Manual

Hide thumbs Also See for DA-IRIGB-4DIO-PCI104-EMC4:
Table of Contents

Advertisement

DA-IRIGB-4DIO-PCI104-EMC4 Module

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
The following command example enables the daemon to synchronize time from Port 1 in DIFF signal type every
10 seconds and inverse the signal if the cable cross-connect. The ServiceSyncTime process runs in the
foreground.
root@Moxa:~# ServiceSyncTime –t 1 -i 10 -I

Configuring the timesync Daemon

You can edit the /etc/init.d/mx_irigb.sh file to configure the timesync daemon. The script also includes the
default settings for MX_IRIGB_OPTS.
root@Moxa:~# sudo vi /etc/init.d/mx_irigb.sh
...
MX_IRIGB_SERVICESYNCTIME_OPTS="-t 1 -i 10 -B"
...
After you change the settings in the /etc/init.d/mx_irigb.sh file, restart the daemon.
root@Moxa:~# sudo service mx_irigb.sh restart

Using the IRIG-B Utility in Linux

The mxIrigUtil command is available in the destination folder that you selected during the installation process.
The list of available parameters and options for the mxIrigUtil command is the same in Linux and Windows 7.
The following figure shows the help information for the IRIG-B utility.
root@Moxa:~# mxIrigUtil -h
Get/set Moxa DA-IRIGB utility
Usage: mxIrigUtil -f function_id [-p parameters] [-c] [-h]
Show the utility information if no argument apply.
-h: Show this information.
-c: Indicate the n-the IRIG-B Card.
-f: Pass function id argument to execute specify functionality
-p: Parameters for each function, use comma to pass multiple variable
For example: Set IRIG-B RTC Time 2014/01/01 03:25:00
mxIrigUtil -f 2 -p 2014,1,1,3,25,0
Function description list:
0:Get Hardware ID
1:Get IRIG-B RTC Time
Software Installation and Configuration
4-5

Advertisement

Table of Contents
loading

Table of Contents