Delphi Bluetooth

The USB BLE adapter for Delphi

Dongl is a USB Bluetooth Low Energy adapter you drive from Delphi and Free Pascal with SimpleDelphiBLE. Scan, connect, and pair through its own radio from VCL, FMX, and Lazarus apps on Windows, macOS, and Linux.

Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Get started

Set up in three steps

  1. Get an adapter

    Pre-order a Dongl, or flash the free Dongl firmware onto a Nordic nRF52840 Dongle or DK you already own.

  2. Install SimpleDelphiBLE

    Run boss install github.com/simpleble/simpledelphible.

  3. Select the adapter

    A plugged-in Dongl appears as its own adapter, next to the computer's Bluetooth. Take the adapters of the Dongl backend and your code runs on the Dongl.

Select the Dongl, then scan, connect, and read. This is the code for each step.

uses
  SysUtils,
  SimpleDelphiBLE;

var
  Adapters: TArray<TBleAdapter>;
begin
  Adapters := TBleBackend.GetDongl.GetAdapters;
  if Length(Adapters) = 0 then
    raise Exception.Create('No Dongl found');
  WriteLn(Adapters[0].Identifier, ' [', Adapters[0].Address, ']');
end;
In Delphi today

What Delphi uses today

Delphi's own Bluetooth support works through each system's built-in Bluetooth, and Free Pascal's covers Linux.

System.Bluetooth

The RTL's TBluetoothLEManager works on Windows, macOS, iOS, and Android through one shared manager, with no Linux support.

Bluetooth Framework

A commercial, Windows-only library for Delphi, C++, .NET, and Lazarus that also drives the BLED112.

bluetoothlaz

Free Pascal's Bluetooth package runs on Linux only and is marked alpha.

Why Dongl

What a Dongl gives your Delphi code

Platforms

Windows, macOS, and Linux

The same Delphi or Free Pascal code drives a Dongl on all three desktops.

GUI

Async calls for VCL, FMX, and Lazarus

Every blocking call has an Async version that reports back on the main thread, so the UI stays responsive.

Addresses

Real addresses on macOS

Scans report each device's real address, so a Mac test station matches devices by the address on their label.

Pairing

Pairing from your Delphi code

Your code answers passkey and numeric-comparison prompts, with no system dialog. Bonds stay on the Dongl.

Adapters

One Dongl per fixture

Each Dongl is another adapter with its own radio and a stable address across restarts and USB ports.

Support

A direct line to the engineers

Commercial customers work directly with the team that builds SimpleBLE and the Dongl firmware.

Plug in a Dongl and run your Delphi code

Dongl hardware ships with the firmware installed and includes a commercial license to use SimpleBLE through the Dongl backend.

Frequently
asked questions

Plug in a Dongl, install SimpleDelphiBLE with Boss or from a release, and take the adapters of the Dongl backend with TBleBackend.GetDongl.GetAdapters. Each Dongl is an adapter with its own radio, and it works through the same API as the computer's Bluetooth.

Yes. SimpleDelphiBLE works with Delphi and with Free Pascal and Lazarus, and drives a Dongl on Windows, macOS, and Linux.

Not if you use the Async versions, such as ConnectAsync and ReadAsync. They run on a worker thread and report to an OnDone handler on the main thread.

Yes. Each Dongl is a separate adapter, and blocking calls are safe from any thread, so each Dongl can work from its own thread.

No. The free Dongl firmware runs on a Nordic nRF52840 Dongle or DK for prototyping, testing, and non-commercial validation. Dongl hardware ships with the firmware installed and includes a commercial license to use SimpleBLE through the Dongl backend.

SimpleBLE is source-available under the Business Source License 1.1 and free for non-commercial use. Evaluation needs no license. Commercial use needs a license, and one agreement covers your whole company, with no per-seat, per-device, or royalty fees. Each Dongl hardware unit includes a commercial license to use SimpleBLE through the Dongl backend.