Changes

1,883 bytes added ,  13:09, 3 February 2022
Line 263: Line 263:  
<br>
 
<br>
 
[[image:Beacon and sensors data.png|center|819x819px|alt=|frameless]]
 
[[image:Beacon and sensors data.png|center|819x819px|alt=|frameless]]
 +
<br>
 +
<br>
 +
===<p style="font-size:24px><span style="color:#0054A6">Protocol description</span>===
 +
At the highest-level Bluetooth LE advertising packet consists of Advertising Indication and Scan Response. Both packets can be maximum of 31 bytes in size. Advertising Indication packet is always broadcasted when Scan Response is broadcasted only if Observer device requests it by using Active Scan.
 +
<br><br>
 +
BTSMP1 uses Advertising Indication to send beacon data which can be configured to select between iBeacon and Eddystone protocols or to be disabled at all. In that case, data which is shown as Scan Response in protocol overview will be sent as Advertising Indication without Scan Response following it.
 +
<br><br>
 +
Scan Response is used to send device name and manufacturer specific data. Manufacturer specific data includes Teltonika Company ID (0x089A) and protocol version (0x01). It is followed by Flag Encoded Data (Table 1).
 +
<br><br>
 +
Device Name has the following default value for Beacon – ID1_XXXXXXX
 +
<br>
 +
<div style="display:inline-table">
 +
{| class="nd-othertables_2" style="width:100%;" ;
 +
|+'''Table 1. Flag Encoded Date'''
 +
|-
 +
!Data!! Size (Bytes)!!Description
 +
|-
 +
|Flags||1||Each set bit (0-7) means the presence of value (0-7). Bits:
 +
<br>0 – Temperature value presence
 +
<br>1 – Humidity value presence
 +
<br>2 – Magnetic sensor presence
 +
<br>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.
 +
<br>4 – Movement sensor counter
 +
<br>5 – Movement sensor angle
 +
<br>6 – Low Battery indication (if set to 1 low battery voltage detected)
 +
<br>7 – Battery voltage value presence
 +
|-
 +
|Value 7||1|| Battery Voltage
 +
<br>Battery voltage in mV = 2000 + VALUE * 10
 +
<br>NOTE: present only if bit 7 is set, otherwise is not being sent
 +
|}
 +
</div>
 +
<div style="display:inline-table"></div>
 
<br>
 
<br>
  

Navigation menu