![EnOcean B6221-K516 Скачать руководство пользователя страница 106](http://html1.mh-extra.com/html/enocean/b6221-k516/b6221-k516_user-manual_2413678106.webp)
USER MANUAL
STM 550B / EMSIB - EASYFIT MULTISENSOR FOR IOT APPLICATIONS (2.4 GHZ BLE)
© 2020 EnOcean | www.enocean.com
F-710-017, V1.0
STM 550B / EMSIB User Manual | v1.3 | June 2020 | Page 106 / 115
A
Telegram parsing
This chapter provides examples of STM 550B telegrams and shows how to interpret them.
A.1
Data telegram example
We consider the following raw data (excluding CRC) captured from an actual STM 550B mod-
ule:
D6 BE 89 8E 42 23 00 00 01 77 00 E5 1C FF DA 03 FB 27 00 00 02 68 45 8D 01 40 42 09
06 57 8A F7 91 E6 5E 23 01 0F 01 57 D3
A.1.1
BLE advertising frame structure
The message above can be parsed according to the Bluetooth standard for advertising mes-
sages as shown below.
Field
Length
Data
Interpretation
BLE Access Address
4 byte
0x8E89BED6
Constant (always used)
BLE Frame Control
2 byte
0x2342
Length = 35 byte
BLE Source Address
6 byte
0xE50077010000
Device-unique address
Length of payload
1 byte
0x1C
28 byte of payload follow
Type of payload
1 byte
0xFF
Manufacturer-specific data
Manufacturer ID
2 byte
0x03DA
EnOcean GmbH
Payload
25 byte
FB 27 00 00 02 68 45 8D 01 40 42 09 06 57 8A F7 91 E6
5E 23 01 0F 01 57 D3
Table 52
–
Advertising message parsing
A.1.2
Data telegram payload
The EnOcean payload can be parsed as shown below.
Field
Length
Data
Interpretation
Sequence Counter
4 byte
0x000027FB
Incrementing message counter
Sensor Data
17 byte
02 68 45 8D 01 40 42 09 06 57 8A F7 91 E6 5E 23 01
Telegram Signature
4 byte
0x0F0157D3
Authentication signature
Table 53
–
EnOcean payload parsing