Rust Bluetooth

The USB BLE adapter for Rust

Dongl is a USB Bluetooth Low Energy adapter you drive from Rust with SimpleRsBLE. Scan, connect, and pair through its own radio on Windows, macOS, and Linux, and run one thread per Dongl.

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 SimpleRsBLE

    Run cargo add simplersble.

  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.

use simplersble::Backend;

let adapters = Backend::get_dongl().unwrap().adapters().unwrap();
if adapters.is_empty() {
    println!("No Dongl found.");
    return;
}

let adapter = &adapters[0];
println!("{} [{}]", adapter.identifier().unwrap(), adapter.address().unwrap());
In Rust today

What Rust uses today

Rust BLE crates list every adapter on Linux. On Windows and macOS, they reach the one radio the operating system exposes.

btleplug

On Linux, Manager::adapters() returns every BlueZ adapter. On macOS it always returns a single adapter, and on Windows the one radio Windows supports.

BlueR

BlueR, the official BlueZ crate, selects adapters by name, such as hci1, on Linux only.

Bluest

Bluest opens the operating system's default adapter, or a specific Windows adapter by device ID.

Why Dongl

What a Dongl gives your Rust code

Adapters

Several radios, one process

Each Dongl is another adapter with its own radio. Adapters move across threads, so each Dongl gets its own.

Platforms

Windows, macOS, and Linux

One crate and one API drive a Dongl on every desktop, and in a Docker container on Linux.

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 Rust code

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

Fixtures

Stable addresses

A Dongl keeps its address across restarts and USB ports, so each one maps to a fixed test fixture.

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 Rust 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, add SimpleRsBLE with cargo add, and take the adapters of the Dongl backend with Backend::get_dongl(). Each Dongl is an adapter with its own radio, and it works through the same API as the computer's Bluetooth.

Yes. Each Dongl is a separate adapter, and adapters can move across threads, so one thread per Dongl scans, connects, and reads in parallel.

All three. SimpleRsBLE drives a Dongl on Windows, macOS, and Linux with the same code. On Linux, add your user to the dialout group so it can open the Dongl, as the SimpleBLE docs describe.

Yes. SimpleRsBLE reports scan results, connections, and notifications as async event streams, and the SimpleBLE docs use it with Tokio. A Dongl adapter works the same way.

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.