ONVIF overview

The sensor speaks ONVIF, the protocol IP security cameras use to talk to a video management system (VMS). The VMS adds the sensor like a camera: it shows the point cloud as a live video and receives the alarms of the security zones as ONVIF events, which its own rules turn into alarms, recordings or messages.

The ONVIF pages are for the integrator who connects the sensor to the VMS. You set up the security zones themselves in the WebGUI, see Set a security zone.

Senstar Symphony Client showing the point cloud video of the sensor and an intrusion alarm
Figure 1. The sensor in Senstar Symphony: an intrusion in a security zone raises an alarm next to the live video

What the sensor offers over ONVIF

Function What it does Details

Video stream

The point cloud rendered as a video and served over RTSP. The VMS gets the address of the stream over ONVIF.

RTSP video stream

Events

Intrusion per security zone and for the whole scene, tampering of the sensor and of single security zones, motion and the health of the sensor.

ONVIF events

Discovery

The sensor announces itself with ONVIF WS-Discovery, so a VMS on the local network finds it without its address.

The VMS does not find the sensor

Authentication

The VMS signs in with the name of a user account of the sensor and an application key of that account. The access level of the key decides whether the VMS works as an Administrator, an Operator or a User.

ONVIF credentials

Users

A VMS with administrator rights can create ONVIF users of its own on the sensor.

ONVIF users

The sensor is officially conformant with ONVIF Profile S, the profile for video streaming.

How a connection is made

  1. In the WebGUI, set up ONVIF on the Configuration Dashboard. This creates the password the VMS signs in with.

  2. Create the security zones before you add the sensor.

  3. In the VMS, add the sensor as an ONVIF device with the username and password from the first step.

  4. In the VMS, subscribe to the events you need and connect them to alarms.

  5. Back in the WebGUI, check on the ONVIF card that the event subscription and the video stream are active.

Video management systems

The sensor works with any VMS or PSIM that supports ONVIF Profile S. For the systems Blickfeld tested, a guide walks through adding the sensor and, where the system receives the events of the sensor, turning them into alarms: Senstar Symphony, Milestone XProtect, Genetec Security Center, Bosch BVMS, Avigilon Unity, HxGN dC3, G-Core and Mirasys VMS. Dallmeier SeMSy Compact shows the video only. Further systems that work with the sensor, and what to check in a system that is not listed, are in Supported video management systems.

Troubleshooting

The ONVIF card on the Configuration Dashboard shows whether a VMS has subscribed to the events (Event Subscription) and whether a client plays the video (Video / RTSP Stream). Under System > Diagnostics, the boxes ONVIF events and RTSP video under Integrations show the number of clients, or the reason of a warning or a failure.

ONVIF card showing Event Subscription and Video / RTSP Stream as Not active in red, with the message ONVIF Event Subscription inactive
Figure 2. The ONVIF card on the Configuration Dashboard

Problems particular to one VMS are in its guide.

Diagnostics dependency graph from This device over Sensor and Processing to the boxes ONVIF events with 1 VMS client and RTSP video with 1 client under Integrations
Figure 3. ONVIF events and RTSP video under Integrations in the diagnostics

The VMS does not find the sensor

Cause What to check What to change

The VMS is in another network segment than the sensor. Discovery only reaches devices in the same segment.

The IP addresses and subnets of the VMS and of the sensor.

Enter the hostname or the IP address of the sensor in the VMS by hand. How to find the address is described in First login.

A VMS has switched discovery off on the sensor over ONVIF. The sensor then stays silent to discovery requests.

Whether a VMS that manages the sensor offers a discovery setting for it.

Enter the address by hand, or switch discovery on again from a VMS with administrator rights.

The VMS cannot connect or reports that it is not authorized

Cause What to check What to change

ONVIF is not set up: no active user account has an application key with ONVIF / RTSP access.

The ONVIF card reads ONVIF is not configured.

Click Setup on the card.

The username is not the name of the account.

The Username the ONVIF card shows. The purpose of the key is not the username.

Enter the account name, or the name of the ONVIF user, as the username.

The password belongs to a key that no longer exists, for example after Setup was clicked again.

The list of application keys on the account page: the key in use has the label ONVIF.

Enter the password of the current key, or click Setup again and enter the new password in every VMS and video player.

The key has no ONVIF / RTSP access.

The key has no label ONVIF in the list on the account page.

Create a key with ONVIF / RTSP access.

The account is blocked or waits for activation.

The badge of the account in User management: Blocked or Activation pending.

Reset the password of the account and sign in with it to activate it, or use the key of another active account.

The VMS sends the password with HTTP Basic or as plain text. The sensor accepts HTTP Digest and the WS-Security UsernameToken with a password digest only.

The authentication setting of the device in the VMS, if it has one.

Select HTTP Digest or WS-UsernameToken.

The VMS uses a port the sensor does not serve ONVIF on.

The port of the device in the VMS.

Use 80 for HTTP or 443 for HTTPS.

The clocks of the VMS and the sensor differ too much. The authentication of ONVIF users checks the time of each request.

The time of the sensor in the Time synchronization panel under Configuration > Network Setup, compared with the time of the VMS.

Synchronize the sensor and the VMS with the same time server.

The VMS cannot set the time or the network, or reboot the sensor

Cause What to check What to change

The key has the access level AUTHORIZED or is read-only, so the VMS works as an Operator or a User and receives Not authorized for these operations.

The access level of the key in the list on the account page.

Create a key with the access level ADMIN, not read-only, from an account with that level, see What a VMS may do. Enter the new secret in the VMS.

The VMS shows no video

Cause What to check What to change

Another client streams with the other kind of transport: plain or tunnelled RTSP.

The transport set in every VMS and video player that uses the sensor.

Set all of them to the same kind.

A firewall between the VMS and the sensor blocks the dynamic UDP ports of RTP/AVP (UDP).

Whether the video plays with RTP/AVP/TCP (interleaved).

Switch the transport to TCP interleaved or to a tunnel, or open the ports in the firewall.

The video pipeline is starting, for example after a reboot.

RTSP video in the diagnostics reads Sensor is warming up or video pipeline is starting.

Wait until the state turns OK.

The video pipeline failed.

RTSP video in the diagnostics shows a failure with its reason.

Note the reason and contact Support and repair.

The media profile or the video settings in the VMS no longer match those of the sensor, for example after a firmware update. Some VMSs keep the settings they read before.

The media profile and the video settings of the device in the VMS.

Read the device settings again in the VMS, or add the sensor again, and select the media profile anew.

The VMS plays the stream, but the picture shows the scene from an unhelpful angle.

The perspective in the video.

Set the perspective.

The VMS receives no events

Cause What to check What to change

The VMS plays only the video and has not subscribed to events, for example because it uses a generic RTSP driver.

Event Subscription on the ONVIF card reads Not active, or the card reports ONVIF Event Subscription inactive.

Add the sensor with the ONVIF driver of the VMS and subscribe to the events as the guide of your VMS describes.

The security zone was created or renamed after the sensor was added, and the VMS uses the zone topics in the Blickfeld namespace.

Whether the VMS lists the topic of the zone.

Add the sensor to the VMS again, or read the topics again as the guide of your VMS describes. If the VMS can filter by the rule name, tns1:RuleEngine/FieldDetector/ObjectsInside also covers zones created later.

The sensor serves the event topics of firmware 2.9 or earlier.

The topics start with tnsblickfeld:.

Switch to the current topics.

The VMS only uses the standard ONVIF topics.

The VMS lists no topics starting with tns1:Blickfeld/.

Use tns1:RuleEngine/FieldDetector/ObjectsInside with the zone name as the rule, and tns1:VideoSource/GlobalSceneChange/AnalyticsService for the sensor being covered or moved.

The rule of the VMS reads the wrong data item.

The data name the rule uses.

The value of an event, true while it lasts, is the data item IsInside for tns1:RuleEngine/FieldDetector/ObjectsInside and State for every other topic. Use that name in the rule.

The VMS subscribed with Base Notification, where the sensor sends each event to an address the VMS gives, and the sensor cannot reach that address.

The ONVIF events box in the diagnostics counts the VMS client, but the VMS receives nothing.

Let the sensor connect to the VMS through the firewall, or set the VMS to Pull-Point, where the VMS fetches the events.

The security zone raised no alarm.

Whether the event history of the WebGUI shows the alarm.

Check the zone and its settings.

Events arrive late, last too long or show the wrong time

Cause What to check What to change

The filters in time of the security zone delay the alarm: Minimum intruding duration and Intrusion confidence, and for object-based zones Minimum lifetime and Minimum track length.

The settings of the zone.

Lower them where the false alarm rate allows it, see How QbProtect detects intruders.

The Hold duration of the zone keeps the alarm on after the intrusion has ended.

The Hold duration of the zone.

Shorten it. A zone with a tampering Minimum coverage above 0 needs at least 3 s.

The connection between the VMS and the sensor was interrupted. A VMS that reconnects with Pull-Point within 5 minutes receives the events it missed, late.

The connection log of the VMS.

Make the network between the VMS and the sensor stable.

The clock of the sensor is wrong. Each event carries the time of the sensor.

The Time synchronization panel under Configuration > Network Setup.

Synchronize the sensor with a time server, see Date and time.

The ONVIF card is missing on the Configuration Dashboard

The license of the sensor does not include ONVIF. Contact Support and repair with the serial number of the sensor.