Difference between revisions of "Template:IBeacon Data Structure"

From Wiki Knowledge Base | Teltonika SAS
(Created page with "{| class="wikitable" | colspan="3" style="text-align: | <span style="background:green">11</span><span style="background:red">21</span><span style="background:lime">31020304050...")
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
=iBeacon data packet structure=
 +
<br>
 +
 +
<b>Example of data parsing with two detected Beacons:</b>
 
{| class="wikitable"
 
{| class="wikitable"
| colspan="3" style="text-align: | <span style="background:green">11</span><span style="background:red">21</span><span style="background:lime">3102030405060708090A0B0C0D0E0F10</span>4545010ABC212102030405060708090A0B0C0D0E0F10020B010AAD
+
| colspan="3" style="text-align:center; height: 4em;" |<span style="background:silver">11</span><span style="background:red">21</span><span style="background:lime">3102030405060708090A0B0C0D0E0F10</span><span style="background:DodgerBlue">4545</span><span style="background:gold">010A</span><span style="background:aqua">BC</span><span style="background:red">21</span><span style="background:lime">2102030405060708090A0B0C0D0E0F10</span><span style="background:dodgerblue">020B</span><span style="background:gold">010A</span><span style="background:aqua">AD</span>
 +
|-
 +
| colspan="3" |First Beacon:
 +
|-
 +
|-
 +
| style="background: silver; width: 4em;" |
 +
|Data Part*
 +
|11
 +
|-
 +
| style="background:red;" |
 +
|Beacon flag
 +
|21
 +
|-
 +
| style="background: lime;" |
 +
|UUID (Beacon #1)
 +
|3102030405060708090A0B0C0D0E0F10
 +
|-
 +
| style="background: dodgerblue;" |
 +
|Major
 +
|4545
 
|-
 
|-
 +
| style="background: gold;" |
 +
|Minor
 +
|010A
 
|-
 
|-
|style="background: #D40628;" |  
+
| style="background: aqua;" |
|Ne
+
|RSSI (Signal Strength: Signed 2's complement)
|Ne
+
|BC
 
+
|-
 +
| colspan="3" |Second Beacon:
 
|-
 
|-
|style="background: #5BAF02;" |  
+
| style="background:red;" |
|Ne
+
|Beacon flag
|Ne
+
|21
 
|-
 
|-
|style="background: #5BAF02;" |  
+
| style="background: lime;" |
|Ne
+
|UUID (Beacon #2)
|Ne
+
|2102030405060708090A0B0C0D0E0F10
 
 
 
|-
 
|-
|style="background: #5BAF02;" |  
+
| style="background: dodgerblue;" |
|Ne
+
|Major
|Ne
+
|020B
 
 
 
|-
 
|-
|style="background: #5BAF02;" |  
+
| style="background: gold;" |
|Ne
+
|Minor
|Ne
+
|010A
 
|-
 
|-
 +
| style="background: aqua;" |
 +
|RSSI (Signal Strength: Signed 2's complement)
 +
|AD
 +
|}
 +
<br>
 +
 +
*Data part <b>11</b> - 1 Record out of 1 Beacon record. First half byte specifies current record, second half specifies how many there are in total. For example: 25 - second record out of 5 records (that means the server can expect 3 more records with Event I/O ID 385). If the data does not fit in a single data transfer, they are separated. Data Part is used to determine if more data will be coming from the device.

Revision as of 13:23, 31 July 2020

iBeacon data packet structure


Example of data parsing with two detected Beacons:

11213102030405060708090A0B0C0D0E0F104545010ABC212102030405060708090A0B0C0D0E0F10020B010AAD
First Beacon:
Data Part* 11
Beacon flag 21
UUID (Beacon #1) 3102030405060708090A0B0C0D0E0F10
Major 4545
Minor 010A
RSSI (Signal Strength: Signed 2's complement) BC
Second Beacon:
Beacon flag 21
UUID (Beacon #2) 2102030405060708090A0B0C0D0E0F10
Major 020B
Minor 010A
RSSI (Signal Strength: Signed 2's complement) AD


  • Data part 11 - 1 Record out of 1 Beacon record. First half byte specifies current record, second half specifies how many there are in total. For example: 25 - second record out of 5 records (that means the server can expect 3 more records with Event I/O ID 385). If the data does not fit in a single data transfer, they are separated. Data Part is used to determine if more data will be coming from the device.