Standard format events markers

Events are records of non-sample incidents, and can be used to aid interpretation of the deployment data, or for diagnostic purposes.

In Standard format, events and sample data are stored together in chronological order in dataset-1. Sample data should always be stored as complete sets of readings, one set comprising one reading from each active channel, all taken at the same time. However, it may be possible under some fault conditions for only a partial sample set to be stored. It is therefore important when parsing data in Standard format to check for event markers at every reading, not just at the assumed start of every sample set.

Event structure

BytesDescription
Bytes 0 ... 116-bit byte-swapped CCITT CRC of Bytes 2 ... 7
Byte 2Type Code
Byte 30xF3 marker byte
Bytes 4 ... 7

32-bit date/time in elapsed seconds format

Bytes 8 ... 916-bit count of milliseconds in current second [0 ... 999]
Byte 10Size of event in uint32_t N
Byte 11Event processing info

Bytes 12 ... (4 × N) - 1

Auxiliary data (for N > 3)

Seconds for the date/time are counted from 2000-01-01T00:00:00Z.

Event processing info byte

BitsDescription
Bit 0

1: the timestamp of this event is the timestamp of the next following sample set

0: the timestamp of this event does not affect the timestamp of the next following sample set

Bits 1 ... 7Unused

Type Codes

Type codeDescription
0x00Unknown or unrecognized events
0x01Time synchronization marker
0x02disable command received
0x03Run-time error encountered
0x04CPU reset detected
0x05One or more parameters recovered after reset
0x06Restart failed: real-time clock (RTC)/calendar contents not valid
0x07Restart failed: logger status not valid
0x08Restart failed: primary schedule parameters could not be recovered
0x09Unable to load alarm time for next sample
0x0ASampling restarted after resetting RTC
0x0BParameters recovered; sampling restarted after resetting RTC
0x0CSampling finished: deployment end time reached
0x0DStart of a recorded burst
0x0EStart of a wave burst
0x0FPower source switched to USB
0x10Streaming now OFF for both ports
0x11Streaming ON for USB, OFF for serial
0x12Streaming OFF for USB, ON for serial
0x13Streaming now ON for both ports
0x14Sampling started, threshold condition satisfied
0x15Sampling paused, threshold condition not met
0x16Power source switched to internal battery
0x17Power source switched to external battery
0x18Twist activation started sampling
0x19Twist activation paused sampling
0x1AWi-Fi module detected and activated
0x1BWi-Fi module de-activated; removed or activity timeout
0x1CRegimes enabled, but not yet in a regime
0x1DEntered regime 1
0x1EEntered regime 2
0x1FEntered regime 3
0x20Start of regime bin
0x21Begin profiling "up" cast
0x22Begin profiling "down" cast
0x23End of profiling cast
0x24Battery failed, schedule finished
0x25Directional dependent sampling, beginning of fast sampling mode
0x26Directional dependent sampling, beginning of slow sampling mode
0x27Energy used marker, internal battery
0x28Energy used marker, external power source
0x29Device control action result
0x2APaused deployment resumed by the resume command
0x2BDeployment paused using the pause command

Auxiliary data

Not all the events have embedded auxiliary data; here is a comprehensive list of those that do, with descriptions of the embedded data.

0x20 Regime bin event auxiliary data

BytesDescription
Bytes 12 ... 15Number of readings in the bin

There is also a derived data channel, type cnt_00, which contains this value from event 0x20 when in the regimes sampling mode. Refer to the Section "Integrating with a profiling float " for further details.

0x21 Begin profiling "up" cast event auxiliary data

BytesDescription
Bytes 12 ... 1532-bit (4-byte) address of the corresponding sample set

0x22 Begin profiling "down" cast event auxiliary data

BytesDescription
Bytes 12 ... 1532-bit (4-byte) address of the corresponding sample set

0x23 End of profiling cast event auxiliary data

BytesDescription
Bytes 12 ... 15

32-bit (4-byte) address of the first sample set after the cast

0x03 Runtime error event auxiliary data

BytesDescription
Bytes 12 ... 15

32-bit (4-byte) firmware program address at which the error was detected

0x27 Energy used marker, internal battery

0x28 Energy used marker, external power source

BytesDescription
Bytes 12 ... 15

32-bit (4-byte) IEEE float, energy consumed from power source since last accumulator reset.

0x29 Device control action result

BytesDescription
Byte 12

Primary data

Byte 13Secondary data
Byte 14RBR proprietary device type code
Byte 15Undefined.

The primary data byte is defined by:

Byte valueDescriptionExample
0x01

Device episode startaction sent

Move valve to Atmospheric position
0x02Device episode endaction sentReturn valve to Marine position
0x20Manual activate-device command sentTurn UV-LEDs on
0x21Manual deactivate-device command sentTurn UV-LEDs off
0xFDStart of schedule segment in segmented mode

The secondary data byte is defined by:

Byte valueDescription
0x03

Command result - Success

0x04Command result - Failed
0x05Command result - Timeout
0x06Command result - Error
0x80Command result - Device-specific result
0x81Command result - Device-specific result
0x01 ... 0x04Index of segment started in segmented schedule mode