LIGO AIR Protocol: Difference between revisions
| [checked revision] | [checked revision] |
Create page Tag: Recreated |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== General Introduction == | == General Introduction == | ||
'' | LIGO AIR Protocol utilizes '''Bluetooth Low Energy (BLE)''' to transmit structured fuel sensor data in advertising packets at regular intervals. Data includes fuel level, battery voltage of sensor, temperature, etc. For long-range applications, '''LIGO AIR Adapter''' is recommended to boost reception. | ||
In addition to its native protocol, LIGO AIR supports both the '''Escort''' and '''Mielta''' protocols, enabling seamless protocol switching without requiring additional integration effort. Users can configure the desired protocol via the mobile application. | |||
== Advertising Message Format == | == Advertising Message Format == | ||
'' | Structure of '''Manufacturer Data''' field in advertising message (same for any type of peripheral unit). | ||
''' | '''Example Manufacturer Data:''' <code>0x0CFFFC0D024D0100241F000600</code> | ||
{| class="wikitable" style="width:100%; text-align:center;" | |||
{| class="wikitable" style="width:100%;" | |||
|- | |- | ||
! | ! Sequence number of bytes !! Description !! Example | ||
|- | |- | ||
| | | 0 || Length of field || <code>0x0C</code> | ||
|- | |- | ||
| | | +1 || Type of field (Manufacturer data) || Always <code>0xFF</code> | ||
|- | |- | ||
| | | +2 || Company ID || <code>0x0DFC</code> | ||
|- | |- | ||
| | | +4 || Hardware ID (type of device) || <code>0x02</code> — LIGO Air | | ||
|- | |- | ||
| | | +5 and further || Payload (sensor parameters) || <code>0x4D0100241F000600</code> | ||
|} | |||
In order to distinguish between types of hardware, the '''Hardware ID''' byte is used (see list of hardware below). The Hardware ID byte defines a set of useful parameters from the peripheral unit, their size, and order. | |||
{| class="wikitable" style="text-align:center;" | |||
|- | |- | ||
! Byte of Hardware ID !! Type of Hardware | |||
|- | |- | ||
| | | <code>0x02</code> || style="text-align:left; | LIGO Air | ||
|- | |||
| <code>0x03</code> || style="text-align:left; | LIGO Air Pro | |||
|} | |} | ||
'' | ''The list of hardware may be expanded.'' | ||
''' | '''Payload data format of LIGO AIR (Hardware ID <code>0x02</code>) and LIGO AIR Pro (Hardware ID <code>0x03</code>).''' | ||
< | |||
LIGO Air and LIGO Air Pro have the same payload data format. The structure of the payload is listed in the table below: | |||
{| class="wikitable" style="width:100%; text-align:center;" | |||
|- | |||
! Sequence number of bytes !! Parameter type !! Parameter length (bytes) !! Range !! Unit of measurement | |||
|- | |||
| 0 || Fuel level || 2 || 0 to 1023 (option), <br>0 to 4095 (default), <br>or 0 to 65535 (option, liters) || Arbitrary units | |||
|- | |||
| +2 || Reserved || 1 || N/A || N/A | |||
|- | |||
| +3 || Built-in battery voltage || 1 || 0 to 255 || Volt × 10 | |||
|- | |||
| +4 || Temperature || 1 || −128 to 127 || Celsius degrees | |||
|- | |||
| +5 || Reserved || 1 || N/A || N/A | |||
|- | |||
| +6 || Firmware version || 1 || 0 to 255 || Version number | |||
|- | |||
| +7 || Operation Mode || 1 || 0 and 1 || 0: Working Mode <br>1: Storage Mode | |||
|} | |||
</ | '''Example Payload data:''' <code>0x4D0100241F000600</code> | ||
{| style="border-collapse:collapse;margin:0 auto;text-align:center;font-family:Arial,sans-serif;font-size:11pt;" | |||
|- | |||
| style="border:none;background:transparent;" | | |||
| colspan="7" style="border:none;background:transparent;padding:0 0 6px 0;font-size:50pt;font-family:Consolas,'Courier New',monospace;font-weight:bold;letter-spacing:1px;text-align:center;" | <span style="color:#222">0x</span><span style="color:#5E7440">4D01</span><span style="color:#C99D3F">00</span><span style="color:#3170A8">24</span><span style="color:#1F2D52">1F</span><span style="color:#6E408A">00</span><span style="color:#1A1A1A">06</span><span style="color:#7BC571">00</span> | |||
|- | |||
| style="border:none;background:transparent;" | | |||
! style="background:#5E7440;color:#fff;padding:10px 18px;font-weight:bold;min-width:80px;" | 4D01 | |||
! style="background:#C99D3F;color:#fff;padding:10px 18px;font-weight:bold;min-width:50px;" | NA | |||
! style="background:#3170A8;color:#fff;padding:10px 18px;font-weight:bold;min-width:50px;" | 24 | |||
! style="background:#1F2D52;color:#fff;padding:10px 18px;font-weight:bold;min-width:50px;" | 1F | |||
! style="background:#6E408A;color:#fff;padding:10px 18px;font-weight:bold;min-width:50px;" | NA | |||
! style="background:#1A1A1A;color:#fff;padding:10px 18px;font-weight:bold;min-width:50px;" | 06 | |||
! style="background:#7BC571;color:#fff;padding:10px 18px;font-weight:bold;min-width:50px;" | 00 | |||
|- | |||
| style="border:none;background:transparent;" | | |||
| style="border:1px solid #d0d0d0;padding:8px 12px;background:#fafafa;" | Fuel level | |||
| style="border:1px solid #d0d0d0;padding:8px 12px;background:#fafafa;" | Reserved | |||
| style="border:1px solid #d0d0d0;padding:8px 12px;background:#fafafa;" | Battery voltage | |||
| style="border:1px solid #d0d0d0;padding:8px 12px;background:#fafafa;" | Temperature | |||
| style="border:1px solid #d0d0d0;padding:8px 12px;background:#fafafa;" | Reserved | |||
| style="border:1px solid #d0d0d0;padding:8px 12px;background:#fafafa;" | Firmware version | |||
| style="border:1px solid #d0d0d0;padding:8px 12px;background:#fafafa;" | Operation Mode | |||
|- | |||
| style="text-align:right;padding:6px 14px 6px 0;font-style:italic;color:#333;border:none;background:transparent;white-space:nowrap;" | Convert to little-endian (hex) | |||
| style="padding:6px 12px;" | 014D | |||
| style="padding:6px 12px;" | NA | |||
| style="padding:6px 12px;" | 24 | |||
| style="padding:6px 12px;" | 1F | |||
| style="padding:6px 12px;" | NA | |||
| style="padding:6px 12px;" | 06 | |||
| style="padding:6px 12px;" | 00 | |||
|- | |||
| style="text-align:right;padding:6px 14px 6px 0;font-style:italic;color:#333;border:none;background:transparent;white-space:nowrap;" | Convert to decimal | |||
| style="padding:6px 12px;" | 333 | |||
| style="padding:6px 12px;" | NA | |||
| style="padding:6px 12px;" | 36 | |||
| style="padding:6px 12px;" | 31 | |||
| style="padding:6px 12px;" | NA | |||
| style="padding:6px 12px;" | 006 | |||
| style="padding:6px 12px;" | 0 | |||
|- | |||
| style="text-align:right;padding:6px 14px 6px 0;font-style:italic;color:#333;border:none;background:transparent;white-space:nowrap;" | Convert to value | |||
| style="padding:6px 12px;" | 333 (unit or liter) | |||
| style="padding:6px 12px;" | NA | |||
| style="padding:6px 12px;" | 3.6 Volt | |||
| style="padding:6px 12px;" | 31 ºC | |||
| style="padding:6px 12px;" | NA | |||
| style="padding:6px 12px;" | 0.0.6 | |||
| style="padding:6px 12px;" | Working mode | |||
|} | |||
<div class="noprint"> | |||
== Related Documents == | == Related Documents == | ||
{{RelatedDocuments}} | {{RelatedDocuments}} | ||
</div> | </div> | ||
Latest revision as of 01:56, 29 June 2026
General Introduction
LIGO AIR Protocol utilizes Bluetooth Low Energy (BLE) to transmit structured fuel sensor data in advertising packets at regular intervals. Data includes fuel level, battery voltage of sensor, temperature, etc. For long-range applications, LIGO AIR Adapter is recommended to boost reception.
In addition to its native protocol, LIGO AIR supports both the Escort and Mielta protocols, enabling seamless protocol switching without requiring additional integration effort. Users can configure the desired protocol via the mobile application.
Advertising Message Format
Structure of Manufacturer Data field in advertising message (same for any type of peripheral unit).
Example Manufacturer Data: 0x0CFFFC0D024D0100241F000600
| Sequence number of bytes | Description | Example |
|---|---|---|
| 0 | Length of field | 0x0C
|
| +1 | Type of field (Manufacturer data) | Always 0xFF
|
| +2 | Company ID | 0x0DFC
|
| +4 | Hardware ID (type of device) | |
| +5 and further | Payload (sensor parameters) | 0x4D0100241F000600
|
In order to distinguish between types of hardware, the Hardware ID byte is used (see list of hardware below). The Hardware ID byte defines a set of useful parameters from the peripheral unit, their size, and order.
| Byte of Hardware ID | Type of Hardware |
|---|---|
0x02 |
LIGO Air |
0x03 |
LIGO Air Pro |
The list of hardware may be expanded.
Payload data format of LIGO AIR (Hardware ID 0x02) and LIGO AIR Pro (Hardware ID 0x03).
LIGO Air and LIGO Air Pro have the same payload data format. The structure of the payload is listed in the table below:
| Sequence number of bytes | Parameter type | Parameter length (bytes) | Range | Unit of measurement |
|---|---|---|---|---|
| 0 | Fuel level | 2 | 0 to 1023 (option), 0 to 4095 (default), or 0 to 65535 (option, liters) |
Arbitrary units |
| +2 | Reserved | 1 | N/A | N/A |
| +3 | Built-in battery voltage | 1 | 0 to 255 | Volt × 10 |
| +4 | Temperature | 1 | −128 to 127 | Celsius degrees |
| +5 | Reserved | 1 | N/A | N/A |
| +6 | Firmware version | 1 | 0 to 255 | Version number |
| +7 | Operation Mode | 1 | 0 and 1 | 0: Working Mode 1: Storage Mode |
Example Payload data: 0x4D0100241F000600
| 0x4D0100241F000600 | |||||||
| 4D01 | NA | 24 | 1F | NA | 06 | 00 | |
|---|---|---|---|---|---|---|---|
| Fuel level | Reserved | Battery voltage | Temperature | Reserved | Firmware version | Operation Mode | |
| Convert to little-endian (hex) | 014D | NA | 24 | 1F | NA | 06 | 00 |
| Convert to decimal | 333 | NA | 36 | 31 | NA | 006 | 0 |
| Convert to value | 333 (unit or liter) | NA | 3.6 Volt | 31 ºC | NA | 0.0.6 | Working mode |
Revision History
Loading revision history...