Changes

2,169 bytes added ,  16:10, 2 August 2021
Line 304: Line 304:  
| style="vertical-align: middle; text-align: center;" |Length
 
| style="vertical-align: middle; text-align: center;" |Length
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#0048BA">02</span>
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#0048BA">02</span>
 +
|
 
|-
 
|-
   Line 356: Line 357:  
| style="vertical-align: middle; text-align: center;" |Protocol version
 
| style="vertical-align: middle; text-align: center;" |Protocol version
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#00FFFF">01</span>
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#00FFFF">01</span>
 +
|
 
|-
 
|-
 
| style="vertical-align: middle; text-align: center;" |Flags
 
| style="vertical-align: middle; text-align: center;" |Flags
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#D0FF14">B7</span>
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#D0FF14">B7</span>
 +
|Raw value example 0xB7. Data has to be interpretated as binary value. In this example would be (MSB)1011 0111(LSB) and is parsed from least significant byte(LSB).
 +
 +
 +
0 – Temperature value presence. 1 Means device is reading and transmitting temperature value.
 +
 +
1 – Humidity value presence. 1 Means device is reading and transmitting humidity value.
 +
 +
2 – Magnetic sensor presence. 1 Means device is reading and transmitting Magnetic sensor value.
 +
 +
3 – Magnetic sensor state (1 magnetic field is detected/0 magnetic field is not detected) Valid value is present only if bit 2 flag is set.
 +
 +
4 – Movement sensor counter. 1 Means device is reading and transmitting movement state and count values.
 +
 +
5 – Movement sensor angle. 1 Means device is reading and transmitting angle roll and pitch values.
 +
 +
6 – Low Battery indication. 0 – Means device battery is from 100 to 15 % (When value changes to 1 Battery level is lower than 15 %.
 +
 +
7 – Battery voltage value presence. 1 Means device is reading and transmitting battery voltage value.
 
|-
 
|-
 
| style="vertical-align: middle; text-align: center;" |Temperature
 
| style="vertical-align: middle; text-align: center;" |Temperature
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#00FF00">08B4</span>
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#00FF00">08B4</span>
 +
|Raw value example 0x08B4 hex, 2228 dec.
 +
 +
Raw value needs to be divided by 100.
 +
 +
'''Real temperature''' is 22,28 Celsius.
 
|-
 
|-
 
| style="vertical-align: middle; text-align: center;" |Humidity
 
| style="vertical-align: middle; text-align: center;" |Humidity
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#007FFF">12</span>
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#007FFF">12</span>
 +
|Raw value example 0x12 hex, 18 dec.
 +
Decimal value is humidity in percent. Humidity 18 %
 
|-
 
|-
 
| style="vertical-align: middle; text-align: center;" |Movement
 
| style="vertical-align: middle; text-align: center;" |Movement
| style="vertical-align: middle; text-align: center;" |<span style="background:#F4C2C2">0000</span>
+
| style="vertical-align: middle; text-align: center;" |<span style="background:#F4C2C2">0CCB</span>
 +
|(MSB)0000 1100 1100 1011(LSB) binary
 +
0 - Most significant byte(MSB) represents '''Movement status'''. In this case device is not moving 0. If it was 1 device is moving.
 +
 
 +
000110011001011 – represent detected movements count 3275 decimal value means device has detected total 3275 movement events,
 
|-
 
|-
 
| style="vertical-align: middle; text-align: center;" |Angle
 
| style="vertical-align: middle; text-align: center;" |Angle
| style="vertical-align: middle; text-align: center;" |<span style="background:#BFFF00">C1001A</span>
+
| style="vertical-align: middle; text-align: center;" |<span style="background:#BFFF00">0BFFC7</span>
 +
|C1 – Most significant byte represents '''device pitch'''. Device pitch can be from -90 to 90 degrees.
 +
In this example device pitch is 0000 1011 (2's complement) = 11° degrees.
 +
 
 +
 
 +
FFC7– Two least significant bytes represent '''device roll'''. Device roll can be from -180 to 180 degrees.
 +
 
 +
In this example device Roll is 1111 1111 1100 0111 (2's complement) = -57° degrees
 
|-
 
|-
 
| style="vertical-align: middle; text-align: center;" |Battery voltage
 
| style="vertical-align: middle; text-align: center;" |Battery voltage
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#00BFFF">6E</span>
 
| style="vertical-align: middle; text-align: center;" |<span style="background:#00BFFF">6E</span>
 +
|'''Battery voltage –''' raw value example 0x67 hex. Decimal value of parameter 103'''.''' To calculate battery voltage need to use calculation 2000 + (VALUE * 10). In this case battery voltage value 2000+(103x10)= 3030 mV
 
|}
 
|}
  

Navigation menu