Changes

Created page with " In order to capture the BLE service ID we need to use the '''Advanced Beacon Mode''' feature that is available in the base firmwar..."

In order to capture the BLE service ID we need to use the '''[[Advanced_Beacon_Capturing_Configuration|Advanced Beacon Mode]]''' feature that is available in the base firmware of Teltonika Telematics device. For this instructions we have 4 steps to follow '''Parsing''', '''Device Configuration''', '''Beacon Capturing Configuration''' and '''Verifying BLE data'''.
===Parsing===
<br />
1. You need to capture the raw data of your FMB device. To capture the BLE RAW data, you can look for any mobile or desktop application that is capable of capturing BLE RAW data.
'''FMB BLE RAW DATA'''
0x0201021209464D433133305F373338393939325F4C4503031010020A00
<br />
2. Next is to parse the FMB BLE RAW DATA according to the Teltonika data protocol.
<br />
{| class="nd-othertables_2" style="width:100%;"
! rowspan="1" style="width:100%; vertical-align: middle; text-align: center;" |Unparsed FMB BLE DATA received in hexadecimal stream
|-
| style="vertical-align: middle; text-align: center;" |
0x<span style="background-color:#91b9d4;">020102</span>1209<span style="background-color:#F5F571;">464D433133305F373338393939325F4C45</span>0303 <span style="background-color:#23DC0A;">1010</span>020A00
|}
{| class="nd-othertables_2" style="width:100%;"
|-
! rowspan="1" style="width:50%; vertical-align: middle; text-align: center;" |BLE Data Packet Part
! rowspan="1" style="width:50%; vertical-align: middle; text-align: center;" |HEX Code Part
|-
| style="vertical-align: middle; text-align: center;" |Manufacturer ID
| style="vertical-align: middle; text-align: center;" |<span style="background-color:#91b9d4;">02 01 02
|-
| style="vertical-align: middle; text-align: center;" |
| style="vertical-align: middle; text-align: center;" |1209
|-
| style="vertical-align: middle; text-align: center;" |Additional Information
| style="vertical-align: middle; text-align: center;" |<span style="background-color:#F5F571;">46 4D 43 31 33 30 5F 37 33 38 39 39 39 32 5F 4C 45
|-
| style="vertical-align: middle; text-align: center;" |
| style="vertical-align: middle; text-align: center;" |03 03
|-
| style="vertical-align: middle; text-align: center;" |BLE ID
| style="vertical-align: middle; text-align: center;" |<span style="background-color:#23DC0A;">10 10
|-
| style="vertical-align: middle; text-align: center;" |
| style="vertical-align: middle; text-align: center;" |020A00
|}
*

===Device Configuration ===
To enable the advanced beacon mode, please follow the steps below.
#Go to System from the '''Data Protocol''' select '''Codec 8 extended.'''
#Go to Bluetooth from the '''General''' go to '''BT Radio''' select '''Enable (hidden)/Enable (visible).'''
#Go to Bluetooth 4.0 from the '''Common settings''' go to '''Non Stop Scan''' select '''Enable.'''
#Go to Beacon list from the '''Beacon detection''' select '''All''' , and from the '''Beacon mode''' select '''Advanced.'''
#You may now create your own Beacon Capturing Configuration.
<br />
[[File:How to enable advance beacon mode.gif]]
<br />
<br />
===Beacon Capturing Configuration===
Creating a beacon capturing configuration is based on the parsing details of the FMB device RAW data. To learn more about advanced beacon mode configuration please click [[Advanced_Beacon_Capturing_Configuration#Advanced_Beacon_Capturing_Configuration|'''here''']]. Now let's start creating the configuration, to begin please follow the steps below

1. Look on the parsing details.

2. Fill all the necessary information that is needed for Beacon Capturing Configuration.<br />
[[File:Parsing_1.png|alt=|center|831x831px]]

*'''Name -''' This is the name of your Beacon Capturing Configuration.
*'''Manufacturer ID - <span style="background-color:#91b9d4;">02 01 02</span>''' - The device will search for provided ID and capture the BLE Service ID if the ID matches. It consists of 4 Bytes (8 bits) and it is required to fill in the table the full ID of 4 Bytes so the value will become '''<span style="background-color:#91b9d4;">02 01 02 00</span>'''
*'''Manufacturer ID Offset-''' 0 byte.
*'''Manufacturer ID Size''' - 3 bytes
*'''Beacon ID Offset''' - 24 bytes
*'''Beacon ID Size''' - 2 bytes
*'''Additional Information Offset''' - 5 bytes
*'''Additional Information Data Size''' - 18 bytes
After that, your configuration should look like the image below.<br />[[File:FMB.png]]
<br />
<br />
3. To verify if your configuration is correct go to '''Device Status''' check the '''Beacon info''' and verify the data in the '''Visible Beacons.'''<br />
<br />
[[File:Visiblebeacons.png|alt=|thumb|'''Captured BLE ID using Teltonika Configurator'''|350px|left]]
{| class="wikitable"
|-
|'''Visible Beacons Parameter Value'''
|'''Description'''
|-
|<span style="background-color:#91b9d4;">FMB</span>
|Configuration name
|-
|<span style="background-color:#23DC0A;">1010</span>
|BLE Service ID
|-
| <span style="background-color:#F5F571;">464D433133305F373338393939325F4C45</span>
|Additional Information
|}

<br />
'''Note:''' <span style="background-color:#F5F571;">464D433133305F373338393939325F4C45</span> - once converted to ASCII it will be equal to Local Bluetooth Name - FMC130_7389992_LE

===Verifying BLE data ===
Advance Beacon mode RAW data is available in '''[https://wiki.teltonika-gps.com/view/FMC130_Teltonika_Data_Sending_Parameters_ID#BLE_Sensors_I.2FO_elements AVL ID 548].'''

*For parsing sample please click [[Advanced Beacon Capturing Configuration#Parsing Advanced Beacon data from record .28AVL ID 548.29|'''here''']].
*We can also use the Teltonika Data Parser to check manually the raw data coming from the server.
<br />
[[File:Teltonika Data Parser Checking AVL548.gif|thumb|center|'''Showing AVL ID 548 using Teltonika Data Parser'''|800px]]

Navigation menu