portStatus nodeURL portName [portName...]


The portStatus utility displays the status of the specified instrument port on the specified MMC node, whether an instrument service is running on the port or not.

The output includes status of port registers (including overcurrent status), voltage, current limit setting, heatsink temperature, relay status, whether there is a PUCK attached to the port, and the name of SIAM service running on the port (if one exists).

This utility applies only to MOOS Mooring Controller (MMC) platform


Option Description Values
nodeURL IP address or host name of SIAM node e.g.,
portName Name of instrument port (or alias) defined in siamPort.cfg /dev/ttyS8, COM1, /dev/tty.KeySerial1

Example output:

					portStatus surface /dev/ttySX11
					SIAM version $Name:  $
					port #: 11
					relayReg: 0x2, controlReg: 0xc5, interruptReg: 0x38
					overCurrent: false
					voltage: 12.24636
					current: 0.0732
					currentLimit: 3000.0
					heatsinkTemperature: 28.328003
					RS485Term Relay: ISO
					commsIso Relay: ISO
					powerIso Relay: CON
					status: OK
					commTxPower: LOW
					commDuplex: FULL
					commMode: 232
					commSlew: FAST
					commsPower: OFF
					instrumentPower: ON
					has Puck: false
					service: Garmin GPS s/n 81108743 (ID=1590)


The following environment variables must be set:

Variable Description Example
JAVA_HOME location of Java installation
/j9, /opt/java/jdk1.3.1, etc.
JAVA Path to JVM command For MMC

For Sun JVM (e.g. linux, win32, mac OS)
SIAM_HOME top of the SIAM directory tree -
SIAM_CLASSPATH Path including all SIAM and supporting classes For MMC

For linux/win32

See Also