11
Reading via SDI-12
SDI-12 Command Nomenclature
a = Sensor address
{crc} = SDI-12 compatible 3-character CRC
<cr> = ASCII carriage return character
<lf> = ASCII line feed character
Following commands are shown in the format of:
cmd response
//
comments
SDI-12 Commands
Query and Setup Commands
//*** Sensor Identifi cation
aI!
a13 INWUSA PT12
0.7
ssssssssss<cr><lf> //
note:
0.7
will change to refl ect
current
fi rmware revision
ssssssssss
=
device
serial
#
//*** Acknowledge Active
a!
a<cr><lf>
//*** Address Query
?!
a<cr><lf>
//*** Change Address
aAb!
b<cr><lf>
//
change address from a to b
Request measurement
aM!
a0023<cr><lf>
//
request
temperature/voltage
measurement
aD0!
a
+0+25.0000+12.0512
<cr><lf>
//
read null, temperature (°C), voltage (V)
aM2!
a0021<cr><lf>
//
request temperature measurement
aD0!
a
+25.0000
<cr><lf>
//
read temperature (°C)
aM3!
a0021<cr><lf>
//
request power supply voltage
measurement
aD0!
a
+12.0512
<cr><lf>
//
read power supply voltage (V)
aM4!
a0
ttt
4<cr><lf>
//
request averaged data. ttt depends upon
programmed
average
duration
aD0!
a
+0+0+0+25.0000
<cr><lf>
//
read null, null, null, average temperature
Request measurement with CRC
aMC!
a0023<cr><lf>
// request temperature/voltage measurement
aD0!
a
+0+25.0000+12.0512
{crc}<cr><lf>
// read null, temperature (°C), voltage (V)
aMC2!
a0021<cr><lf>
// request temperature measurement
aD0!
a
+25.0000
{crc}<cr><lf>
// read temperature (°C)