Skip to main content
For the complete documentation index, see llms.txt.

Hubble Network developer documentation: integrate Bluetooth devices with terrestrial and satellite connectivity.

Becoming a Hubble Scanner

Bring your own Bluetooth® Low Energy (BLE) scanning hardware onto the Hubble Terrestrial Network.


Who This Is For​

Hubble's Terrestrial Network already detects devices through a large, growing population of partner and customer scanners. Detection is probabilistic and depends on how many scanners are nearby, so adding your own scanners increases coverage where you need it.

This guide is for anyone who wants to scan for Hubble packets with their own hardware. All you need is a device that can scan for BLE and reach the internet: a phone or tablet (iOS or Android), a Linux host, an embedded device, or anything else that can listen for BLE advertisements.

Use this page to choose an integration path, get your credentials, and plan your rollout. The details of each path are on the pages it links to.

If you already have BLE scanning infrastructure in the field, such as gateways, asset trackers, or a mobile app, or are deploying it soon, you can convert those devices instead of adding new hardware.

What a Scanner Does​

Three things:

  1. Scan. Listen passively for Hubble BLE advertisements on the device's radio.
  2. Package. Attach a timestamp and the scanner's location to what it heard.
  3. Deliver. Send it to Hubble.

Every path below does the same three things. They differ in how much of the work Hubble's code does compared with your code, and in where the data leaves your network.


Choose Your Path​

PathWhat runs whereChoose it when
Gateway SDK (recommended)Hubble's SDK runs in your app on the device. It handles scanning, batching, retries, and authentication.Your device runs Android or iOS.
Direct integration (gateway to Hubble)Your own firmware or software on the gateway scans and calls Hubble's Gateway API directly. Each gateway registers as its own scanner.Your gateway can reach the internet and you are writing the scanner yourself, on Linux, an RTOS, bare metal, or any other platform. On Linux, start from our reference application.
Cloud-to-cloud integration (gateway to your backend to Hubble)Your gateways report scans to your backend, and your backend forwards them to Hubble's ingest endpoint, authenticated as your organization.Your gateways can only talk to your own backend, or you already have a scanning and ingestion pipeline from your gateways to your backend.

Recommendation: If your device can run the Gateway SDK, use it. It is the shortest path to first data, and Hubble keeps it up to date as the protocol changes. Build your own integration only when the SDK is not an option.

The Gateway SDK and direct integration give Hubble a separate identity for each scanner, with health reporting and server-side configuration. A cloud-to-cloud integration does not: Hubble sees your scans as coming from your organization.

Linux Reference Application​

For Linux gateways, Hubble publishes gateway-service, a reference scanner daemon built on gateway-sdk-python. Run it as-is on a Linux host, adapt it, or use it as a working example of the direct integration behavior on your own stack.

Run unmodified, gateway-service already handles registration, tokens, batching, retries, and heartbeats, so you do not need to implement them yourself. It is a reference implementation, not a supported SDK: the Android and iOS Gateway SDKs remain the primary path.


Gateway SDKs​

Both SDKs talk to the same Gateway API, so one Gateway Group ID works across them.

PlatformGet the SDKSample app
AndroidMaven artifactquickstart-android
iOSBinary releasesquickstart-ios

For Linux, see the Linux reference application.

The SDK handles registration and tokens for you. On first run, it registers the scanner using your Gateway Group ID. After that, the scanner authenticates with its own token, which the SDK refreshes and stores.


Getting a Gateway Group ID​

The Gateway SDK and direct integrations need a Gateway Group ID. For a cloud-to-cloud integration, you do not need one: use an API token for your organization instead. See Forwarding Scans From Your Cloud.

You create Gateway Group IDs yourself in the Hubble Dashboard. You need the Admin role in your organization.

  1. Sign in to the Hubble Dashboard. Create an account first if you don't have one.
  2. Go to Gateways > Gateway Groups and click Create group.
  3. Enter a name you will recognize, such as the app or site the group is for, and click Create. Names can be up to 100 characters.
  4. Copy the Gateway Group ID. For the Gateway SDK, the dialog also shows an iOS or Android config snippet with the ID already set as sdkKey.

To see or copy the ID again later, go to Gateway Groups and click the eye or copy icon next to the group.

A Gateway Group ID is used only when a scanner registers. Each scanner then gets its own gateway ID and token, so one group can provision your whole fleet, on either path, without becoming a shared device identity. You can also create one group per app or site to keep them apart in the dashboard and to disable them separately.

The Gateway Group ID is a public, non-secret key. It is not a device credential: it identifies your gateway group when a scanner registers, and is not used after that. You can embed it in your app or firmware. The Gateway SDK calls it sdkKey, and the Gateway API takes it in the X-Sdk-Key header.

Disabling a Group​

An Admin can disable a group from its page in the dashboard by clicking Disable group. When a group is disabled:

  • Uploads from its gateways are rejected within 30 seconds.
  • All gateways registered with it are disabled.
  • New gateways cannot register with its ID.

You can enable the group again with Enable group. Enabling lets new gateways register again, but it does not re-enable the gateways that were disabled; contact Hubble support for that. Groups created by Hubble cannot be disabled. To delete a group, contact Hubble support.


Rollout Process​

Suggested sequence. Adjust it to your environment.

Step 1 — Scope​

Use Choose Your Path to match your hardware to a path.

Step 2 — Get your credentials​

For the Gateway SDK or a direct integration, create a Gateway Group ID in the dashboard. See Getting a Gateway Group ID. For a cloud-to-cloud integration, create an API token in the dashboard.

Step 3 — Set locations​

Every scanner needs an accurate location for proof of presence to be meaningful. Direct and cloud-to-cloud integrations send a location with every observation, and observations without a usable location are dropped, so set this up before you test.

Step 4 — Bench test with one device​

Set up a single scanner on your own hardware:

  • Gateway SDK. Start from the sample app for your platform. Confirm that the scanner registers and appears on the Gateways page in the dashboard. New gateways show up within 5 minutes.
  • Direct integration. Work through the implementation checklist. Confirm that the scanner registers and appears on the Gateways page in the dashboard. New gateways show up within 5 minutes.
  • Cloud-to-cloud integration. Work through the checklist, then forward scans from one device and confirm the ingest endpoint returns 200.

Step 5 — Validate detections​

Place a valid Hubble device within range of your scanner. Then check in the Hubble Dashboard that Hubble is receiving its observations:

  • Gateways page: find your scanner and check that its Last check-in is recent. Click the row for details such as its group, status, and SDK version.
  • Gateway Groups page: check that your scanner is counted in its group's Gateways sending data (24h). This column counts the group's gateways that uploaded data from Hubble devices in the last 24 hours.
  • Devices: if the test device belongs to your organization, open it and check that new packets appear in its packet history.

Cloud-to-cloud integrations have no per-scanner identity, so their scanners do not appear on the Gateways pages. Use the device's packet history instead.

Step 6 — Scale​

Roll out to the full fleet.


Compliance​

These apply on every path:

  • Radio regulations. Scanners must comply with local radio regulations (FCC, CE, IC, and others) for BLE reception in each deployment region. Compliance is your responsibility.
  • Data privacy. If your scanners collect or send location data, you are responsible for complying with privacy rules (GDPR, CCPA, and others) in each deployment region.

ℹ️ Was this page useful? Please give us feedback.