7 serial commands, 1 setup command, 2 poll command – Campbell Scientific SR50A Distance Sensor User Manual
Page 19: 3 information command, 4 temperature input command
![background image](/manuals/416103/19/background.png)
SR50A Sonic Ranging Sensor
3.7 Serial Commands
3.7.1 Setup Command
The setup command places the SR50A in the serial setup mode. This
command should only be sent to customize a sensor’s settings. Upper and
lower case letters are accepted and a carriage return character must also
terminate the string (Enter key for Hyperterminal).
“setup
3.7.2 Poll Command
The poll command is used to obtain the sensor’s output values. The poll
command consists of the upper or lower case letter “p” followed by the SR50A
address (default 33). The command must also terminate with a carriage return
character (Enter for hyperterminal).
“pAA
factory to 33
“p33
3.7.3 Information Command
The information command is used to query information from the sensor that is
not associated with the sensor’s output. For detailed information on the output
refer to Section 9.
The information command consists of the upper or lower case letter “i”
followed by the SR50A address (default 33). The command must also
terminate with a carriage return character (Enter for Hyperterminal).
“iAA
factory to 33
“i33
3.7.4 Temperature Input command
The temperature input command is used to send the SR50A version of the
sensor a temperature value that is to be used for temperature compensation.
The value sent must be in degrees Celsius and should not exceed 8 characters.
The command consists of the upper or lower case letter “t” followed by the
SR50A address (default 33) a semicolon and the temperature value. The
command must also terminate with a carriage return character (Enter for
Hyperterminal).
“tAA;-5.5
factory to 33 and –5.5 is the temperature in degrees C
“t33;tt.ttt
a temperature value in Celsius.
13