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.

percept_pipeline configures the processing, for example the zones, and percept_processing delivers its results, for example the zone states and events.

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++.

Zones and alarms

Service Methods Use it to

Event (percept_processing)

Stream, Get

Receive the alarms as they start and end: intrusion and tampering of the security zones, motion, and occupied and freed occupancy zones. Stream also reads the stored events, from an event id on. See Stream the alarms of all security zones and Stream events and alarms.

States (percept_processing)

Stream, Get

Read the current state of every zone, for example alarm and tampered of a security zone.

Zone (percept_pipeline)

List, Store, Delete, Watch

Create and change the security, exclusion and occupancy zones. Their settings are the message ZoneAlgorithm.

History (percept_processing)

StreamRange

Read the objects, states and foreground point cloud captured around an event, to analyse an alarm or tune the zones.

EventExport (toolkit)

Stream

Download events with their point clouds, objects and states as one archive.

Objects (percept_processing)

Stream

Receive every tracked object with its position and size class.

Video management systems

A video management system connects over ONVIF and RTSP, not over this API. The API sets up what it uses:

Service Methods Use it to

ApplicationKey (secure)

List, Create, Delete

Create the key that the video management system signs in with. ONVIF and RTSP need access_http in its configuration.

Visualization (video)

Get, Set

Change how the RTSP video shows the scene and its overlay, for example the header and the footer.

Health (video)

Get, Watch

Check the health of the video.

Scene and sensors

Service Methods Use it to

DataSource (percept_pipeline)

Get, Set, Watch

Set the sensors whose point clouds are processed together and their poses.

Perception (percept_pipeline)

Get, Set, ResetBackground

Change the processing settings, for example the background subtraction, and learn the background again.

Push and Blickfeld Flow

Service Methods Use it to

Push (push)

List, Store, Delete, Enable, Disable, Watch

Configure Push, which sends the results to an MQTT broker without a program of your own.

Flow (flow)

List, Get, Store, Delete, Reload

Read and store the flows of Blickfeld Flow.

Recordings, point cloud and scan pattern

Service Methods Use it to

Record (toolkit)

Stream

Record the point clouds and the results of the processing as one archive. See Record point clouds.

PointCloud (percept_processing)

Stream

Receive the point cloud of all sensors of the setup in one coordinate system, or only its foreground.

PointCloud (core_processing)

Stream, Get

Receive the point cloud of this sensor alone. See Fetch the point cloud.

ScanPattern (system)

Get, Set, List, Store

Set the field of view and the scanlines. See Set the scan pattern.

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.