SDI-12 commands always start with the address of the appropriate sensor. Therefore all other sensors on the
same bus will ignore these commands. SDI-12 commands end with ‘
!
’. All answers from sensors start with its
address, too, but end with the ASCII characters ‘Carriage Return’
<CR>
and ‘Line Feed’
<LF>
.
The SDI-12 protocol is based on the ASCII character set. The baud rate of the SDI-12 protocol is 1200 Bd and
has the byte frame format:
1 start
bit
7 data bits (least signi
fi
cant bit transmitted
fi
rst)
1 parity bit (even parity)
1 stop
bit.
Acknowledge Active - a!
This command ensures that the sensor responds to requests from the master. Basically it asks the sensor to
con
fi
rm it is connected to the bus.
The sensor returns its address and
<CR><LF>
.
Syntax
Command
Answer
a!
a<CR><LF>
a
– Sensor address
a
– Sensor address
!
– End of command
<CR><LF>
– End of answer
Example:
Command
Answer
0!
0<CR><LF>
1!
1<CR><LF>
Send Identi
fi
cation - a
I
!
The command
a
I
!
is used to ask the sensor for its model number and
fi
rmware version.
Syntax
Command
Answer
aI!
a 13LMGmbH1515184x1.0781129.0001<CR><LF>
a
– Sensor address
a
– Sensor address
I
– Command ‘Send Identi
fi
cation’
13LMGmbH1515184x1.0781129.0001
13
– 2 characters SDI-12 version-No.
13 = version 1.3
LMGmbH15
– 8 characters manufacturer’s
name (= Lambrecht meteo
GmbH)
15184x
– 6 characters sensor type
(=
precipitation
sensor
rain[e]
)
1.0
– Sensor version (= version 1)
781129.0001
– 11 characters serial No.
!
– End of command
<CR><LF>
– End of answer
Example:
Command
Answer
0I!
013LMGmbH1515184x1.0781129.0001<CR><LF>
1I!
113LMGmbH1515184x1.0781129.0002<CR><LF>
18
SDI-RAINE-HYDRO
USER MANUAL
700-SDI-RAINE-HYDRO Rev1 03 Mar 2021
Part# 21184