EasyManuals Logo
Home>Lufft>Accessories>SHM31

Lufft SHM31 User Manual

Lufft SHM31
66 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #40 background imageLoading...
Page #40 background image
UMB communication
40 Snow depth sensor SHM 31, V2.1
Sensor:
The target address for the SHM31 is B001h.
PC:
The class ID for the PC (master unit) is 15 = Fh; the PC ID is e.g. 001d = 01h.
Putting the class and device IDs together gives a sender address of F001h.
The length <len> for the online data request command is 4d = 04h;
The command for the online data request is 23h;
The version number of the command is 1.0 = 10h.
The channel number is in <payload>; as can be seen from the channel list in section Error!
Bookmark not defined. the current snow depth in cm is in channel 604d = 25Ch.
The calculated CRC is 5930h.
SOH
<ver>
<to>
<from>
<len>
STX
<cmd>
<verc>
<channel>
ETX
<cs>
EOT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
01h
10h
01h
B0h
01h
F0h
04h
02h
23h
10h
5Ch
02h
03h
30h
59h
04h
Table 16: UMB binary example, query command to the sensor
SOH
<ver>
<to>
<from>
<len>
STX
<cmd>
<verc>
<status>
<channel>
<typ>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
01h
10h
01h
F0h
01h
B0h
0Ah
02h
23h
10h
00h
5Ch
02h
16h
<value>
ETX
<cs>
EOT
15
16
17
18
19
20
21
22
B1h
FFh
0Dh
42h
03h
DEh
BCh
04h
Table 17: UMB binary example, response from the sensor
T
he received snow depth in cm from channel 604 is 420DFFB1h = 35.4997 cm.
The conversion process follows the rules of IEEE-754 (float) conversion.
9.3.5. Status and error codes in the UMB binary protocol
If the measured value query supplies the <status> 00h, then the sensor is working properly. A
complete list of status and error codes can be found in the description of the UMB protocol. The
following is an extract from the list:
<status>
Description
00h (0d)
Command successful; no error; all o.k.
10h (16d)
Unknown command; not supported by this device
11h (17d)
Invalid parameter
24h (36d)
Invalid channel
28h (40d)
Device not ready; e.g. initialization / calibration running
50h (80d)
Measurement variable (+offset) is outside the set display range
51h (81d)
52h (82d)
Measurement value (physical) is outside the measuring range (e.g. ADC over range)
53h (83d)
54h (84d)
Error in measurement data or no valid data available
55h ( 85d)
Device / sensor is unable to execute valid measurement due to ambient conditions

Table of Contents

Other manuals for Lufft SHM31

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Lufft SHM31 and is the answer not in the manual?

Lufft SHM31 Specifications

General IconGeneral
BrandLufft
ModelSHM31
CategoryAccessories
LanguageEnglish

Related product manuals