Skip to main content
Skip table of contents

Cervello configuration file

The Cervello configuration is a JSON file stored in the RBRcervata. It defines user-adjustable settings, such as sampling rates for batteries, deep sleep periods, and general behaviours for controlling loggers. The JSON documentation can be found here.

JS
{
    "file": {
        "date": "20230509000000",
        "version": "3.1.0",
        "schema": "0011713",
        "customer": "ONC"
     },
    "controller": {
        "battery_period": 600,
        "deep_sleep": {
            "enabled": true,
            "deep_sleep_duration": 600
        },
        "clock_sync_timeout": 43200
    },
    "gps": {
        "enabled": false
    },
    "instrument": [
        {
            "enabled": true,
            "label": "APT",
            "type": "RBR",
            "config_file": "deployment01.json",
            "port": 1,
            "ssm": 0,
            "battery_period": 1200,
            "can_be_stopped": true,
            "max_stopped_download_gap": 2000000000,
            "enforce_max_dataset_size": true,
            "max_dataset_size": 580608000
        },
        {
            "enabled": true,
            "label": "BPR",
            "type": "RBR",
            "config_file": "deployment02.json",
            "port": 2,
            "ssm": 0,
            "battery_period": 1200,
            "can_be_stopped": true,
            "max_stopped_download_gap": 2000000000,
            "enforce_max_dataset_size": true,
            "max_dataset_size": 414720000
        }
    ],
    "streaming": {
        "enabled": false
    },
    "processing": {
        "enabled": false
    },
    "telemetry": {
        "enabled": false
    }
}


Brief description


KeyDescriptionUnitsDefault Value
controller​​​​
battery_periodHow frequently to record the data controller battery level.seconds600
deep_sleep

Whether the data controller should enter deep sleep whenever it's finished downloading from the logger.

booleanfalse
deep_sleep_durationHow long to stay in deep sleep before checking the logger for data again.seconds300
clock_sync_timeoutThe number of seconds allowed to pass after setting the flag for the instrument clock sync to happen. It is meant to provide a safeguard against synchronizing the instrument clock with a stale and possibly inaccurate Cervello clock.seconds43200
gps
enabled

Whether position retrieval via GPS is enabled.

booleanfalse

instrument

enabledWhether communication with/downloading from an RBR data logger is enabled.booleantrue
label

Human readable descriptor of the specific unit (eg. Bottom CTD)

string""
typeType of logger, defines driver to be used.
string"RBR"
config_fileConfiguration file for this instrument.
string"deployment01.json"
portPort number to which it is connected.integer1
ssmIf the logger is connected to the data controller via an MLM, the serial number of the SSM connected to the instrument.integer0
battery_periodHow frequently to record the logger battery levels.seconds600
can_be_stopped

Whether the logger can be stopped and restarted when there is too much data in memory to download in a reasonable amount of time (see max_stopped_download_gap), or when the logger's configuration doesn't match the configuration found in deployment.json.

booleantrue
max_stopped_download_gap

If the logger will be stopped or is stopped and the difference between the amount of data stored on the data controller and recorded in logger memory exceeds this amount, the logger will be restarted and its memory reset.

bytes3000000
enforce_max_dataset_size

Whether we should enforce a maximum dataset size. Useful for forcing the dataset to roll over in conjunction with the cervata.

booleanfalse
max_dataset_size

The maximum permissible size of the dataset in logger memory. If it grows past this size, the logger should be restarted.

bytes262144000
streaming
enabledWhether streaming data via the serial debug port is enabled or not.booleanfalse
processing
enabledWhether data processing for telemetry is enabled or not.booleanfalse
telemetry
enabledWhether telemetry is enabled or not.booleanfalse

Modifying configuration files on an RBRcervata

A command called "edit-config" is available within the diagnostic menu of the RBRcervata for editing the configuration files. For modifying a cervello configuration file you can issue the following command:

edit-config -c cervello

If you would like to have an empty file as a starting point add "-n" or "--new-file" parameter to the command:

edit-config -n -c cervello

You'll be greeted with a file opened in nano for ease of use in the terminal environment. If you chose to start from an empty file, you can copy/paste the entire text on it.

After you finish editing it, press Ctrl+o, enter and then Ctrl+x. It will ask for confirmation in case something went wrong, press 'y' if you want the file to be permanently saved or anything else to cancel the edition.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.