Wireless Sensors, LLC
Ethernet Gateway Model GWAY-1100
Version 2.0 © July 2013
33 / 35
APPENDIX A
Low Level 1-Wire Communication Protocol
COMMANDS
'
R
'
1-Wire Reset - Generates a reset pulse on the 1-Wire bus, returns 'N' or 'P' for presence
pulse
'
S
'
First search ROM
'
s
'
Next search ROM
'
C
'
First conditional search ROM
'
c
'
Next conditional search ROM
'
A
'
Address select with send - Address follows command; address is copied to 'active ROM'
and is sent out 1-Wire bus using 'M' command
'
a
'
Address select without send - Address follows command, address is copied to 'active
ROM' but is not sent out 1-Wire bus
'
M
'
Match ROM - Address stored in 'active ROM' is sent out 1-Wire bus
'
m
'
Match ROM, set overdrive speed - Required as the next command after setting overdrive
speed, to be used only once
'
W
'
Write a block of data, up to 64 bytes. Data follows command (no byte count)
'
Q
'
Overdrive speed select
'
q
'
Standard speed select
'
Z
'
Write a zero bit
'
O
'
Write a one bit
‘
I
’
Get information about the device
'
h
'
Disable interface
RESPONSES
'
!
'
Error
'
+
'
OK
'
?
'
Ready for commands, sent at initial connect
'
XXX
" Data