beautypg.com

Sdi-12 command & response – Xylem SDI-12 RADAR User Manual

Page 20

background image

SDi-12 CommaND & reSPoNSe

18

This is a brief description of the Serial Digital interface (SDi-12) Command and response Protocol

used by the waterLoG® radar Series. included is a description of the commands and data format

supported by the radar.

refer to the document "a SeriaL DiGiTaL iNTerFaCe STaNDarD For HYDroLoGiC aND

eNViroNmeNTaL SeNSorS". Version 1.3 January 12, 2009 Coordinated by the SDi-12 Support

Group, 135 east Center, Logan, Utah.

During normal communication, the data recorder sends an address together with a command to

the radar SDi-12 sensor. The radar then replies with a "response." in the following descriptions,

SDi-12 commands and responses are enclosed in quotes. The SDi-12 address and the command/

response terminators are defined as follows:

“a”

is the sensor address. The following aSCii Characters are valid addresses:

“0-9”, “a-Z”, “a-z”, “*”, “?”. Sensors will be initially programmed at the factory with

the address of “0” for use in single sensor systems. addresses “1 to 9” and “a to

Z” or “a to z” can be used for additional sensors connected to the same SDi-12

bus. address “*” and “?” are “wild card” addresses which select any sensor,

regardless of its actual address.

“!”

is the last character of a command block.

” are carriage return (0D) hex and line feed (0a) hex characters. They are the last

two characters of a response block.

Notes:

• All commands/responses are upper-case printable ASCII characters.

• Commands must be terminated with a “!” character.

• Responses are terminated with characters.

• The command string must be transmitted in a contiguous block with no gaps of more than 1.66 milliseconds

between characters.

To enhance the error detection capability in SDi-12 data collection systems, a variation of the Start

measurement Commands (m!, m1! ... m9!), Start Concurrent measurement Commands (C!, C1! ...

C9!), and Continuous measurement Commands (ar0! ... ar9!) request that the data be returned

with a 16 bit Cyclic redundancy Check (CrC) appended to it. These commands use the existing

command letters with a C appended, namely: amC!, amC1! ... amC9!, aCC!, aCC1! ... aCC9!, and

arC0! ... arC9!. when these commands are used, the data returned in response to the D commands,

or r commands, have a CrC code appended to it.