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).
| Option | Description | Values |
|---|---|---|
| nodeURL | IP address or host name of SIAM node | e.g. 134.89.88.1, mooring.moos.mbari.org |
| 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 $JAVA_HOME/bin/j9 For Sun JVM (e.g. linux, win32, mac OS) $JAVA_HOME/bin/java
|
| SIAM_HOME | top of the SIAM directory tree | - |
| SIAM_CLASSPATH | Path including all SIAM and supporting classes | For MMC $JAVA_HOME/lib/jclMax/classes.zip:$JAVA_HOME/lib/prsnlmot.jar:$JAVA_HOME/lib/RXTXcomm.jar:$SIAM_HOME/classes For linux/win32 $SIAM_HOME/classes |