API reference

This page documents an earlier firmware release. Read this page for the latest release

Your own software reads the results of the sensor and changes its settings through a gRPC API. The services below are the ones you need most, grouped by task. The list of all services and the navigation under API reference lead to the complete reference.

How the API is organised

The API is divided into packages, one per software module of the sensor, for example system for the firmware, network and scan pattern, or secure for accounts and application keys.

Each package has up to three parts:

  • services: the gRPC services with their methods. A method answers with one response or with a stream of responses.

  • config: the settings that the services read and write.

  • data: the messages that the services deliver.

A method is addressed by package, service and method, for example /blickfeld.system.services.Firmware/GetStatus. The Python library names the same service blickfeld_qb2.system.services.Firmware and its methods in snake case, for example get_status(). Field names are snake case in Python and lower camel case in JSON, for example in a Qb method node of Blickfeld Flow.

The reference of a service lists its methods with their request and response messages; the field types link to the config and data messages. The .proto files are published on GitHub.

Every service carries its maturity at the top of its reference page. A service marked experimental here is not yet officially released nor maintained: it can change or disappear in any release without notice. A service marked deprecated still works but will be removed; use the service named in its description. See Protocol Maturity.

Connect and sign in

The sensor serves the API over TLS, on port 55551. Each program signs in with an application key, created in the WebGUI with the lowest access level that is enough for the program, see Application keys and Access levels.

The client libraries for Python and C++ open the encrypted connection and sign in with the key, see Python and C++.

Point cloud

Service Methods Use it to

PointCloud (core_processing)

Stream, Get, SetFilter, GetFilter

Receive the point cloud frame by frame, and filter it on the sensor. See Fetch the point cloud.

ScanPattern (system)

Get, Set, List, Store, GetLimits

Set the field of view, the scanlines and the point spacing. See Set the scan pattern.

Acceleration (core_processing)

GetFiltered, Stream

Read the accelerometer, for example to find the tilt of the sensor.

DeviceOperation (hardware)

Start, Stop, Get, Watch

Keep the sensor scanning while no client is connected, so that the first frame arrives without the startup.

Health and diagnostics

Service Methods Use it to

Health (diagnostics)

Get, Watch, SetConfig, GetConfig

Read the health of the sensor over all its modules and ignore known conditions. See Read the health.

Incidents (diagnostics)

List, Watch, Acknowledge

Read, follow and acknowledge the incidents of the sensor. See Read the incidents and the health history.

Report (diagnostics)

Generate

Create the encrypted diagnostics report for Blickfeld Support.

SelfTest (diagnostics)

Run

Run the self tests of the sensor.

Log (diagnostics)

Stream

Read the log of the sensor.

Firmware, network and time

Service Methods Use it to

Firmware (system)

GetStatus, FetchAndInstall, UploadAndInstall, WatchStatus

Read the installed firmware and install another one. See Update the firmware.

Network (system)

GetConfig, SetConfig, GetStatus

Set the IP addresses of the sensor. See Configure the network.

TimeSynchronization (system)

Get, Set

Set the NTP servers or the time by hand, and the time zone.

Recovery (hardware)

Get, AttemptBoot

Find out why the sensor is in recovery mode. See Recovery mode.

Accounts and access

Service Methods Use it to

ApplicationKey (secure)

List, Create, Delete

Manage the application keys that programs sign in with.

Account (secure)

List, Create, Get, Store, Delete

Manage the user accounts.

Firewall (secure)

Get, Set

Decide which ports of the sensor answer. See Security hardening.

All services

Every package and its services, in the order of the navigation under API reference:

Package Services

beam_deflection_control

Health

compute_module

Health

config

Storage

core_processing

Acceleration, DistortionCorrection, Health, PointCloud, Tap (experimental)

detector

Health

diagnostics

Health, Incidents, Log, Report, SelfTest, TimeSeries, Tunnel

flow

Credentials, Flow, Settings

hardware

ComputeModule, DeviceOperation, Identification, Recovery, Serial

hemispherical

Calibration, Health

laser

Health

percept_pipeline

Camera (experimental), DataSource, Health, Perception, Zone

percept_processing

Camera (experimental), Event, Health (deprecated), History, Objects, PointCloud, States, VolumeMap

push

Destination, Health, Push

secure

AccessControl, Account, ApplicationKey, Authentication, DeviceCredentials, Firewall, Health, License, Recovery (experimental), Session, Setup (experimental)

services_proxy

Health, Tunnel

system

Firmware, Health, Network, ScanPattern, TimeSynchronization

toolkit

EventExport, Preset, Record

video

Health, Visualization

The data types of a package are in its config and data folders in the navigation; base holds the types that all packages share, for example the geometry.