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 #39 background imageLoading...
Page #39 background image
UMB communication
Snow depth sensor SHM 31, V2.1 39
10000
vin monitor
float32
V
10001
15V monitor
float32
V
Table 15: Measuring channels starting from 5000
9.3. Communication in binary protocol
In this case, communication with the snow depth sensor takes place using the RS485 connection
e.g. with UMB ConfigTool.NET. Please refer to the UMB protocol manual, if desired, for a general
description of communication in the UMB binary protocol over the RS485 interface. The
description of the UMB protocol can be downloaded from the Lufft website at www.lufft.com.
9.3.1. Data frame
The data frame is constructed as follows:
1
2
3 - 4
5 - 6
7
8
9
10
11 ... (8 + len)
optional
9 + len
10 + len
11 + len
12 + len
SOH
<ver>
<to>
<from>
<len>
STX
<cmd>
<verc>
<payload>
ETX
<cs>
EOT
SOH
Control character for the start of a frame (01h); 1 byte
<ver>
Header version number, e.g.: V 1.0 <ver> = 10h = 16d; 1 byte
<to>
Receiver address; 2 bytes
<from>
Sender address; 2 bytes
<len>
Number of data bytes between STX and ETX; 1 byte
STX
Control character for the start of payload transmission (02h); 1 byte
<cmd>
Command; 1 byte
<verc>
Version number of the command; 1 byte
<payload>
Data bytes; 0 210 bytes
ETX
Control character for the end of payload transmission (03h); 1 byte
<cs>
Check sum, 16 bit CRC; 2 bytes
EOT
Control character for the end of the frame (04h); 1 byte
Control characters: SOH (01h), STX (02h), ETX (03h), EOT (04h).
9.3.2. Addressing with class ID and device ID
Addressing is performed using a 16-bit address. This is split into a class ID and a device ID.
Address (2 bytes = 16 bit)
Bits 15 12 (upper 4 bits)
Bits 11 8
(middle 4 bits)
Bits 7 0 (lower 8 bits)
Class ID (0 to 15)
Reserve
Device ID (0 255)
0
Broadcast
0
Broadcast
11
SHM31 Snow Depth Sensor
1 - 255
Available
15
Master or control devices
ID = 0 is provided as broadcast for classes and devices. Thus, it is possible to transmit a broadcast
on a specific class. However this only makes sense if there is only one device of this class on the
bus; or in the case of a command, e.g. reset.
9.3.3. Example of creating addresses.
If an SHM 31 sensor is to be addressed with the device ID 001, this is done as follows:
The class ID is: 11d = Bh; the device ID is: 001d = 001h
Combining the class ID and the device ID creates the address B001h (45057d).
9.3.4. Example of a binary protocol query
If, for example, a sensor with the device ID 001 is polled from a PC for the current snow depth,
this takes place as follows:

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