![Lufft VS20k-UMB User Manual Download Page 11](http://html1.mh-extra.com/html/lufft/vs20k-umb/vs20k-umb_user-manual_1947026011.webp)
User Manual VS2k-UMB / VS20k-UMB
V 2.3 / 28.01.2020
11
Chapter 10 Communication
10.1.2 Addressing with class and device ID
Addressing is done with a 16 bit address. It is divided inot a sensor class ID and a device ID
Adress
(2 bytes = 16 bit)
Bit 15
– 12 (upper 4 bits)
Bit 11
– 8
Bit 7
– 0 (lower 8 Bit)
Class ID
(0 bis 15)
Reserve
Device ID
(0
– 4095)
0
Broadcast
0
Broadcast
3
Visibility (VS2k-UMB / VS20k-UMB)
1 - 4095 available
15
Master or control devices
For classes and deviced ID=0 is assigned to a broadcast. It is thus possible to send a
broadcast on a specific class. However, this will only make sense if there is only one single
device of the respective class on the bus.
10.1.3 Examples for the formation of addresses
Addressing e.g. a VS2k-UMB with the device ID (serial number) 0001 works as follows:
Class ID for visibility is 3d = 3h
Device ID (serial no.) is e.g. 001d = 001h
By compiling the class with the device ID the following address will result: 3001h (12289d).
10.1.4 Example of a binary protocol request
If for example a visibility sensor with the device ID (serial number) 0001 is to be polled from a
PC according to the current visibility (0
– 2000m), this takes place as follows:
Sensor:
The class ID for the
visibility sensor
is 3 = 3h
The device ID (serial number) is 0001 = 0001h
Putting the class and device ID’s together gives a target address of 3001h.
PC:
The class ID for the
PC (master unit)
is 15 = Fh
PC-ID is for example 22 = 016h
Putting the class and PC ID’s together gives a sender address of F016h
The length <len> for the online data request command 4d = 04h,
The command for online data request is 23h,
and the version number of the command is 1.0 = 10h.
The channel number is shown under <payload>; as can be seen from the channel list, the
current visibility 0
– 2000m in channel 601d = 259h
The calculated CRC is D40Dh
The request to the device:
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
30h
16h
F0h
04h
02h
23h
10h
59h
02h
03h
0Dh D4h
04h