Skip to main content

Sensor Output

$ANB, CRC, Date/Time, pH, Temp, Salinity, Specific Conductivity, Transducer Health, Sensor Diagnostics, Actual Conductivity, 0, File Number,

ParameterDescription
$ANBANB Sensors messsage identifier
CRCCRC-16/Modbus
4 digit hex number
TIMESTAMPSample timestamp
yyyy:mm:dd:hh:mm:ss
PHSample pH value (pH)
(2 decimal places)
TEMPSample temperature (°C)
(2 decimal places)
SALINITYSample salinity (ppt - parts per thousand)
(2 decimal places)
SPECIFIC CONDUCTIVITYSample conductivity (mS/cm)
(2 decimal places)
Conductivity is calculated to 25C using this converter
TRANSDUCER HEALTHTransducer health status code (0 to 8)
see below for further information
SENSOR DIAGNOSTICSSensor health status code (0 to 3)
see below for further information
ACTUAL CONDUCTIVITYSample conductivity (mS/cm)
(2 decimal places)
RESERVEDcurrently 0
FILE NUMBERthe measurement data file number

All output as ASCII

Measurement Timings

Timings.png

- communication during sleep

Terminal Mode: When the sensor is in interval sleep, it does not respond to commands. To communicate with the sensor, you must first send the wake command.
Modbus Mode: Communication remains available during interval sleep. However, the sensor will return the last recorded measurement.

CRC

The C function for calculating the CRC value is:

// Compute the Modbus RTU CRC
UInt16 ModRTU_CRC(byte[] buf, int len)
{
UInt16 crc = 0xFFFF;

for (int pos = 0; pos < len; pos++) {
crc ^= (UInt16)buf[pos]; // XOR byte into least sig. byte of crc

for (int i = 8; i != 0; i--) { // Loop over each bit
if ((crc & 0x0001) != 0) { // If the LSB is set
crc >>= 1; // Shift right and XOR 0xA001
crc ^= 0xA001;
}
else // Else LSB is not set
crc >>= 1; // Just shift right
}
}
// Note, this number has low and high bytes swapped, so use it accordingly (or swap bytes)
return crc;
}

Displayed pH value

The number displayed for a pH reading can contain 2 types of data:

OutputCauseAction
nn.nnSensor measuring pHNo action required
99.99ErrorPlease check the transducer health number for instruction

Displayed Salinity/Conductivity value

Salinity and conductivity are available for salinities up to 7ppt.
The number displayed for a salinity or conductivity reading can contain 2 types of data:

OutputCauseAction
nn.nnSensor measuring salinity/conductivityNo action required
99.99If pH output is ok, the salinity is out of rangeIf expected salinity is > 7ppt no salinity output is given
99.99If pH output is not okFollow transducer health instructions

Transducer Health

TransducerHealth.png

Sensor Diagnostics

SensorDiag.png