beautypg.com

Appendix d. sdi-12 sensor support, D.1 sdi-12 command basics, D.1.1 address query command (?!) – Campbell Scientific CS451/CS456 Pressure Transducer User Manual

Page 39: D.1.2 change address command (aab!), D.1.1, D.1.2

background image

Appendix D. SDI-12 Sensor Support

D.1 SDI-12 Command Basics

SDI-12 commands have three components:

Sensor address (a) – a single character, and is the first character of the

command. The default address of zero (0) can be used unless multiple sensors

are connected to the same port.

Command body (e.g., M1) – an upper case letter (the “command”) followed by

alphanumeric qualifiers.

Command termination (!) – an exclamation mark.

An active sensor responds to each command. Responses have several standard

forms and terminate with (carriage return – line feed). Standard

SDI-12 commands supported by the CS451/CS456 are listed in TABLE D-1.

Appendix D.3 provides advanced commands.

TABLE D-1. SDI-12 Command and Response Set

Name

Command Response

Acknowledge

Active

a!

a

Send

Identification

aI!

allccccccccmmmmmmvvvxxx...xx

Change

Address

aAb!

b

Address

Query

?!

a

Start

Measurement

aM!

atttn

Send Data

aD0!

a

Start

Verification

aV!

atttn

D.1.1 Address Query Command (?!)

Command

?! requests the address of the connected sensor. The sensor replies

to the query with the address, a.

D.1.2 Change Address Command (aAb!)

Sensor address is changed with command

aAb!, where a is the current address

and b is the new address. For example, to change an address from 0 to 2, the

command is

0A2!. The sensor responds with the new address b, which in this

case is 2.

D-1