Wireless Sensors, LLC
Ethernet Gateway Model GWAY-1100
Version 2.0 © July 2013
35 / 35
EXAMPLE
The following example illustrates how to initiate a temperature conversion for each channel,
then read the result of a DS18B20 on channel 1.
Temperature conversion for each channel. (Channel can be skipped if no device
exists on the channel)
tx:
R1
Reset 1-Wire Bus Channel 1
rx:
P
Presence Pulse received
tx:
W1CC
Write to Channel 1 the "Skip ROM" command
rx:
CC
Data received
tx:
W144
Write to Channel 1 the "Convert T" command.
After this command is executed no activity is
permitted on the 1-Wire bus for at least
750ms to allow parasite powered devices to
complete their conversion
rx:
44
Data received
tx:
R2
Reset 1-Wire Bus Channel 2
rx:
P
Presence Pulse received
tx:
W2CC
Write to Channel 2 the "Skip ROM" command
rx:
CC
Data received
tx:
W244
Write to Channel 2 the "Convert T" command.
After this command is executed no activity is
permitted on the 1-Wire bus for at least
750ms to allow parasite powered devices to
complete their conversion
rx:
44
Data received
tx:
R3
Reset 1-Wire Bus Channel 3
rx:
P
Presence Pulse received
rx:
W3CC
Write to Channel 3 the "Skip ROM" command
rx:
CC
Data received
tx:
W344
Write to Channel 3 the "Convert T" command.
After this command is executed no activity is
permitted on the 1-Wire bus for at least
750ms to allow parasite powered devices to
complete their conversion
rx:
44
Data received
Individually address DS18B20 on Channel 1
tx:
R1
rx:
P
Presence Pulse received
tx:
A1CD00000027C5CD28
Address the DS18B20 on channel 1
rx:
+
Command accepted
tx:
W1BEFFFFFFFFFFFFFFFFFF
Display scratchpad data of DS18B20
rx:
BE90014B467FFF101092
Data Received.
(Interpreting scratchpad data is covered
in the DS18B20's data sheet at
http://pdfserv.maxim-
ic.com/en/ds/DS18B20.pdf
)