Manta RS-232 Communication Protocol 113.
Manta RS-232 Communication Protocol 113.
Communications Protocol
January 2013
You can talk to the Manta 2 multiprobe without using Eureka’s Manta 2 Control Software.
You can connect a Manta 2 to a variety of third-party devices, such as data loggers, PLC’s, and
telemetry systems if you know the Manta 2’s connector assignments and basic commands.
Most of you will need only the most basic Manta 2 commands; those are shown in (1) below. A
few of you will need the advanced commands shown in (3) below. We advise that you stick with
the basic commands if possible.
If you are connecting a Manta 2 to common dataloggers, etc., here’s all you need to know:
a) We run at 19,200 baud, No parity, 8 data bits, 1 stop bit, no flow control.
b) Send an ASCII command "read" and you get back one line of data separated by commas.
You can put the parameters in any order you want. This is most easily done from the
Manta 2 control software Sensors and Parameters list.
c) You can send an "hdr' command and get the parameter and unit of measure.
d) Power consumption is approx. 200 mA at 12 volts; could be more or less depending on the
number of sensors installed in your Manta 2.
2) Basic Protocol
3) Commands
a) GUI [-on, -off] - Sets output format for either a computer or a dumb terminal. –on sets
computer mode and –off sets terminal mode. No arguments returns current mode. The
primary difference between modes is the inclusion of commas and message type prefixes
in GUI mode. Prefixes are in the form #TYPE.
d) SCR or SCROLL (scroll) [ -on,-off] [-I interval ] - sets scrolling on or off and sets the interval
(in seconds) between outputs; omitted –on-off argument defaults to –on and omitted –I
argument defaults to 2 seconds
e) HDR (header) – returns a three-line header containing the date, time, and parameter types
and units
f) READ (read parameters) – returns one line containing all active parameter values
h) PT N RAW is a special case that directs input to port N; this means that there is no timeout
for commands, commands are case sensitive, and this mode cannot be exited by EXIT – you
must cycle power.
i) P or PARAM (parameter)
a. Lists all currently active parameters if no arguments given.
b. -ADD ParamName [N] - adds parameter name to active list at position N or at end if
no N
c. -DEL N,-ALL - deletes parameter at position N or all parameters if –ALL given.
d. –DEF - adds a default parameter for each installed sensor to Active Parameters
e. –L - lists all available parameters.
j) READPARAMETERS (read parameters) - read all active parameters; CSV Format TBD; used
by GUI
k) WRITEPARAMETERS (write parameters) - writes all active parameters; CSV Format TBD;
used by GUI
m) SETDEFAULTS (set default values for most settings) - sets a default for most of the values;
mostly used on a new CPU with random flash contents; follow this command with
WCONFIG to save these values to flash RAM.
n) LOG [-ON,-OFF] [-I Interval] [-F Filename] (log) - displays current state if no arguments
given
a. -ON,-OFF - turns logging on or off.
b. -I Interval - lets logging interval in minutes. If no Interval given, defaults to 2 min.
c. -F Filename - sets log file name
d. We recommend setting all parameters except –on,-off first, then issue a WCONFIG
to store them, and issue the command again with –on or –off. The on/off state is
not stored in the flash and needs no wconfig.
o) CAL TYPE – (calibrate sensor) - enters calibration dialog for sensor type if one exists; TYPE
must be the parameter number or the parameter name and units (e.g. CAL PH_UNITS).
q) D or DIR (directory) - displays all files in file system along with creation date & time
r) DELETE [filename,-ALL] (delete file) - delete file specified by filename or all files if –ALL
given
u) GF [Filename] (Get file) - output contents of Filename; current log file is output if
no filename specified
v) FORMAT (format file system) - prepares flash storage for use as a file system; destroys all
current data
y) PD SECTOR PAGE - Dumps a File System Flash Page in hex and ascii.
z) DATE [YYYY MM DD] (Set/Get date) - set date; no arguments returns current date
aa) TIME [HH MM SS] (Set/Get time) - set time; no arguments returns current time
bb) BP [“BP”,N] (Set/Get Barometric Pressure) - set barometric pressure to N or obtain it from
Depth sensor if BP entered; no arguments returns current BP
cc) WCONFIG - writes system configuration variables to a flash block in the CPU; this command
must be executed after any configuration changes if the changes are to be persistent across
system power cycles or resets
dd) CIRC: [-ON,-OFF] - turns circulator on or off; returns OK if successful or ERR if no circulator
ee) WIPE - issues a WIPE command to all sensors that have a wiper - this currently includes the
Eureka Wiper and the Turbidity Sensor
ff) IO PORT [BITN] [STATE] - diagnostic command to set/get microprocessor port bits; PORT
BITN STATE sets the indicated bit to STATE; without STATE argument, returns the current
state of the bit; without BITN, returns state of all bits on port; ports are 0,1,2; bits are 0 to
31; state is 0,1, or X for tristate; this command will not affect port bits assigned to non-
GPIO functions
gg) PROGRAM - puts the microprocessor into Program Mode so new firmware can be loaded
with the Phillips Flash Utility; PGMSENSOR N prepares the sensor board attached to port N
for programming with the Phillips Flash Utility
hh) RESTART - restarts the firmware by jumping to location 0 (which is the same response as
when power is applied)
ii) TO N - turns off scrolling, turns off sensor power, and puts the microprocessor to sleep;
activity on the RX input will wake it up; be sure to use an N large enough so you have
enough time to type a change to that format; TO 0 means the processor will never go to
sleep
nn) SETTEMP [1,2] – returns the temperature sensors ADC type; SETTEMP[1] sets older type
AD7788; SETTEMP [2] sets sensor type AD7790
pp) A – legacy function to debug onboard ADC (most notable reads line voltage)
ss) WRITEFILE – legacy function that simulates log data for testing file system
The Manta 2 Underwater Cable has a DB-9 nine-pin connector on one end. Here are that
connector’s pin assignments: