config-check

Name

config-check - prints the configuration of a specific RBR subsystem.

Synopsis

RBR configuration checker.

Usage

config-check [-h|--help] | [-v|–version]

config-check [-c|--config-file] [device]

Options

-h, --help

Display this help message and exit.

-v, --version

Output version information and exit.

-c, --config-file [device]

Show configuration file.

Where "device" is the device of which configuration will be shown.

The supported devices are the following:

instrumentXX displays the corresponding deployment configuration of instrument XX.

cervello displays the user configuration of the RBRcervello.

Note that "instrument01" usually maps to the "deployment01.json" file, and "cervello" to "user.json". However, the correct argument for this command is "instrument01" and "cervello".

Description

Display in an interactive manner the current configuration of the RBRcervello or one of the configured instruments. Use arrow keys to scroll the configuration. Key Q to exit.

Examples

RBRcervello> config-check -c cervello
Showing configuration file of cervello.
{
    "file": {
        "date": "20210814000000",
        "version": "3.0.0",
        "schema": "0011713",
        "customer": "RBR"
     },
    "controller": {
        "battery_period": 600,
        "deep_sleep": {
            "enabled": false,
            "deep_sleep_duration": 3600
        },
        "clock_sync_timeout": 43200
    },
    "gps": {
        "enabled": true,
        "period": 600,
        "fix_timeout": 60,
        "hdop_threshold": 1.5
    ...
    "telemetry": {
        "enabled": true,
        "force_period": 3600,
        "mode": ["gsm", "rudics"],
        "gsm": {
            "failures_before_unavailable": 3,
            "retry_period": 7200,
            "apn": "auto",
            "destination": "dataincoming.rbr-global.com:9140"
        },
        "rudics": {
            "failures_before_unavailable": 3,
            "retry_period": 7200,
            "dial": "00881600005385"
        }

    }
}
RBRcervello> config-check -c instrument01
Showing configuration file of instrument01.
{
     "file": {
          "date": "20230209000000",
          "version": "3.1.0",
          "schema": "0011711",
          "customer": "OSU"
     },
     "id": {
          "fwtype": 104
     },
     "part": {
        "bomnumber": "0013326",
        "description": "UWP CTD|tilt"
     },
     "deployment": {
          "channel 1": {
               "status": "on"
          },
          "channel 2": {
               "status": "on"
          },
          "channel 3": {
               "status": "on"
          },
          "channel 4": {
               "status": "on"
          },
          "channel 5": {
               "status": "on"
          },
          "channel 6": {
               "status": "on"
          },
          "channel 7": {
               "status": "off"
          },
          "channel 8": {
               "status": "off"
          },
          "channel 9": {
               "status": "off"
          },
          "channel 10": {
               "status": "off"
          },
          "channel 11": {
               "status": "off"
          },
          "sampling": {
               "mode": "continuous",
               "period": 63,
               "burstlength": 10,
               "burstinterval": 300000
          },
          "ddsampling": {
               "direction": "ascending",
               "fastperiod": 63,
               "slowperiod": 10000,
               "fastthreshold": 15,
               "slowthreshold": 12
          },
          "deployment": {
               "starttime": 20000101000000,
               "endtime": 20380101000000
          },
          "streamserial": {
               "state": "off"
          },
          "streamusb": {
               "state": "off"
          },
          "settings": {
               "fetchpoweroffdelay": 20000,
               "sensorpoweralwayson": "off",
               "temperature": 15.0000,
               "atmosphere": 10.1325010,
               "pressure": 10.1325,
               "density": 1.0260209,
               "speccondtempco": 0.0191,
               "salinity": 35.0000,
               "avgsoundspeed": 1506.8000,
               "altitude": 0.0000,
               "castdetection": "on",
               "inputtimeout": 10000
          },
          "thresholding": {
               "enabled": false,
               "interval": 1000,
               "channelindex": 3,
               "condition": "below",
               "value": 90
          },
          "memformat": {
               "newtype": "calbin00"
          },
          "outputformat": {
               "type": "caltext01"
          },
          "confirmation": {
               "state": "on"
          },
          "prompt": {
               "state": "on"
          }
     }
}