API reference

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

Traffic lanes

Service Methods Use it to

Event (percept_processing)

Stream, Get

Receive each vehicle that leaves a traffic lane zone, with its class, speed and size, in Event.Traffic. See Stream vehicles.

States (percept_processing)

Stream, Get

Read the vehicles in each traffic lane zone right now, in State.TrafficLane.

Zone (percept_pipeline)

List, Store, Delete, Watch

Create and change the traffic lane zones; their settings are the message ZoneAlgorithm.TrafficLane.

People counting and occupancy

Service Methods Use it to

Event (percept_processing)

Stream, Get

Count the entries: each security_zone_intrusion_started of a zone is one, and occupancy zones report when they are occupied and freed. See Stream events and alarms.

States (percept_processing)

Stream, Get

Read the persons in each zone right now: the objects of the TraversalSecurity and ObjectBasedSecurity states, and occupied of the Occupancy state. See How the Qb2 counts people.

Objects (percept_processing)

Stream

Receive every tracked object with its position and size class, to count persons in any area.

Zone (percept_pipeline)

List, Store, Delete, Watch

Create and change the zones that count and monitor; their settings are the message ZoneAlgorithm.

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.