Skip to content
Created: 13 May 2026-Updated: 17 June 2026

Data Integration — NMEA Output

Some sensor data collected by Medusa gamma-ray spectrometers can be broadcast over the RS-232 serial port using a NMEA-like protocol, similar to NMEA-0183. The typical baud rate is 115,200 baud.

This output format is useful for integrating with external hardware that expects NMEA-style serial data, such as GIS loggers or survey equipment. For more detailed data, use the JSON output format instead — see JSON Format.

To enable NMEA output, set the RS-232 output mode to Medusa NMEA strings under Settings → Communication → RS232.

Info

Note: The NMEA output is a subset of the data available in JSON format.


Sentence Reference

Raw Spectrum — $MSSPE

The raw spectrum sentence contains the integer counts per channel for the current measurement.

Info

Note: This sentence may be longer than the 82-byte limit specified by NMEA-0183. To reduce the length, use the Channels to sum setting under Settings → Communication → RS232 — for example, combining 8 channels of a 512-channel spectrum produces 64 output channels. This only affects the NMEA output; the full-resolution spectrum is always stored onboard.

Example:

$MSSPE,1634718239893,1.001,0.982,64,0,113,574,450,369,259,186,...
#ExampleFormatDescription
0$MSSPE%sSentence label
11634718239893%dUnix timestamp in milliseconds since Jan 1st 1970
21.001%.3fReal time in seconds
30.982%.3fLive time in seconds
464%dNumber of channels in this output
50%dCounts in the first channel
6 .. 4+resolution113 .. 1%dCounts in the remaining channels

Activity Concentrations — $MSACT

Info

Note: Energy stabilization is required before activity concentrations can be calculated. Depending on the crystal size, this may take several minutes after startup.

Example:

$MSACT,1634738741388,1.002,0.983,0.682,1365.484,136.370,136.429,14.500,86.641,19.458*58
#ExampleFormatDescription
0$MSACT%sSentence label
11634738741388%dUnix timestamp in milliseconds since Jan 1st 1970
21.002%.3fReal time in seconds
30.983%.3fLive time in seconds
40.682%.3fStabilization parameter
51365.484%.3fActivity concentration for ⁴⁰K in Bq/kg
6136.370%.3fUncertainty in ⁴⁰K concentration
7136.429%.3fActivity concentration for ²³⁸U in Bq/kg
814.500%.3fUncertainty in ²³⁸U concentration
986.641%.3fActivity concentration for ²³²Th in Bq/kg
1019.458%.3fUncertainty in ²³²Th concentration

PTH Sensor — $MSPTH

Example:

$MSPTH,1634738741389,1007.000,30.000,112.000*47
#ExampleFormatDescription
0$MSPTH%sSentence label
11634738741389%dUnix timestamp in milliseconds since Jan 1st 1970
21007.000%.3fPressure in hPa
330.000%.3fTemperature in °C
4112.000%.3fHumidity in %

GPS — $MSGPS

Example:

$MSGPS,1634738741389,53.211048,6.612187,2.857,1634636299006*6E
#ExampleFormatDescription
0$MSGPS%sSentence label
11634738741389%dUnix timestamp in milliseconds since Jan 1st 1970
253.211048%.3fLatitude in degrees
36.612187%.3fLongitude in degrees
42.857%.3fAltitude in metres
51634636299006%dGPS timestamp

Stabilized Counts — $MSSC

The stabilized counts sentence reports the number of counts in fixed energy windows of the stabilized spectrum. Because it uses the stabilized (energy-corrected) spectrum, the count values are temperature-independent. To convert to count rate, divide by the live time.

Example:

$MSSC,1634738741389,1.000,967,816,672,524,318*0B
#ExampleFormatDescription
0$MSSC%sSentence label
11634738741389%dUnix timestamp in milliseconds since Jan 1st 1970
21.000%.3fLive time in seconds
3967%dTotal counts in the spectrum
4816%dCounts in the region ≥ 100 keV
5672%dCounts in the region ≥ 200 keV
6524%dCounts in the region ≥ 300 keV
7318%dCounts in the region ≥ 400 keV