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++.
Volume zones and measurements
| Service | Methods | Use it to |
|---|---|---|
States ( |
|
Read the measured volume and its coverage in the State.Volume of every volume zone, and |
Zone ( |
|
Create and change the volume, exclusion and occupancy zones; their settings are the message ZoneAlgorithm.Volume. |
VolumeMap ( |
|
Receive the volume map of one volume zone. |
Measurement interval and sensors
| Service | Methods | Use it to |
|---|---|---|
DataSource ( |
|
Set the measurement interval with |
Push and Blickfeld Flow
| Service | Methods | Use it to |
|---|---|---|
Push ( |
|
Configure Push, which sends the results to an MQTT broker without a program of your own. |
Flow ( |
|
Read and store the flows of Blickfeld Flow. |
Recordings, point cloud and scan pattern
| Service | Methods | Use it to |
|---|---|---|
Record ( |
|
Record the point clouds and the results of the processing as one archive. See Record point clouds. |
PointCloud ( |
|
Receive the point cloud of all sensors of the setup in one coordinate system, or only its foreground. |
PointCloud ( |
|
Receive the point cloud of this sensor alone. See Fetch the point cloud. |
ScanPattern ( |
|
Set the field of view and the scanlines. See Set the scan pattern. |
Health and diagnostics
| Service | Methods | Use it to |
|---|---|---|
Health ( |
|
Read the health of the sensor over all its modules and ignore known conditions. See Read the health. |
Incidents ( |
|
Read, follow and acknowledge the incidents of the sensor. See Read the incidents and the health history. |
Report ( |
|
Create the encrypted diagnostics report for Blickfeld Support. |
SelfTest ( |
|
Run the self tests of the sensor. |
Log ( |
|
Read the log of the sensor. |
Firmware, network and time
| Service | Methods | Use it to |
|---|---|---|
Firmware ( |
|
Read the installed firmware and install another one. See Update the firmware. |
Network ( |
|
Set the IP addresses of the sensor. See Configure the network. |
TimeSynchronization ( |
|
Set the NTP servers or the time by hand, and the time zone. |
Recovery ( |
|
Find out why the sensor is in recovery mode. See Recovery mode. |
Accounts and access
| Service | Methods | Use it to |
|---|---|---|
ApplicationKey ( |
|
Manage the application keys that programs sign in with. |
Account ( |
|
Manage the user accounts. |
Firewall ( |
|
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 |
|---|---|
|
|
|
|
|
|
|
Acceleration, DistortionCorrection, Health, PointCloud, Tap (experimental) |
|
|
|
Health, Incidents, Log, Report, SelfTest, TimeSeries, Tunnel |
|
|
|
ComputeModule, DeviceOperation, Identification, Recovery, Serial |
|
|
|
|
|
Camera (experimental), DataSource, Health, Perception, Zone |
|
Camera (experimental), Event, Health (deprecated), History, Objects, PointCloud, States, VolumeMap |
|
|
|
AccessControl, Account, ApplicationKey, Authentication, DeviceCredentials, Firewall, Health, License, Recovery (experimental), Session, Setup (experimental) |
|
|
|
|
|
|
|
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.