Difference between revisions of "V2/Integrate/Milestone Video"

From Senfi Docs
Jump to: navigation, search
Line 19: Line 19:
 
In the rest of this document, "Milestone" will be used to refer to an installed instance of Milestone XProtect.
 
In the rest of this document, "Milestone" will be used to refer to an installed instance of Milestone XProtect.
  
==== Milestone Devices ====
+
==== '''Milestone Devices''' ====
 
Several device types can be added to Milestone. The supported device types are:
 
Several device types can be added to Milestone. The supported device types are:
 
* Camera devices
 
* Camera devices
Line 30: Line 30:
 
Note: Devices can also raise other system, device-specific or custom events, but their discussion is beyond the scope of this article.
 
Note: Devices can also raise other system, device-specific or custom events, but their discussion is beyond the scope of this article.
  
==== Milestone Alarms ====
+
==== '''Milestone Alarms''' ====
 
Milestone devices can raise Alarms from Events. Alarms will be shown in the Milestone XProtect Smart Client's Alarm Manager. Alarms have a name, which is used to identify the type of alarm (i.e. an alarm definition).  
 
Milestone devices can raise Alarms from Events. Alarms will be shown in the Milestone XProtect Smart Client's Alarm Manager. Alarms have a name, which is used to identify the type of alarm (i.e. an alarm definition).  
  
Line 48: Line 48:
  
 
===Steps===
 
===Steps===
==== Installation ====
+
==== '''Installation''' ====
 
# Request for a copy of the Senfi Milestone Video Adapter installer by sending an email to [mailto:support@senfi.io us].
 
# Request for a copy of the Senfi Milestone Video Adapter installer by sending an email to [mailto:support@senfi.io us].
 
# Run the installer on a '''Windows''' machine. It uses the following ports by default: 22020, 10085, 10086, 10087.
 
# Run the installer on a '''Windows''' machine. It uses the following ports by default: 22020, 10085, 10086, 10087.
Line 54: Line 54:
 
#* Users can also use the Start Menu to access this page: Start -> Senfi Milestone Video Adapter (folder) -> Senfi Milestone Video Adapter
 
#* Users can also use the Start Menu to access this page: Start -> Senfi Milestone Video Adapter (folder) -> Senfi Milestone Video Adapter
  
==== Login Page ====
+
==== '''Login Page''' ====
 
# Login via your Senfi '''Username''' and '''Password'''.
 
# Login via your Senfi '''Username''' and '''Password'''.
  
==== Setup Page ====  
+
==== '''Setup Page''' ====  
 
This page is used to register the Senfi Milestone Video Adapter with Senfi. A Senfi API Key and associated secret is required to complete this step. View [[V2/CMS_Tutorial/Developer_Tools/Integration/Key|here]] to generate an integration key/secret pair in the CMS.
 
This page is used to register the Senfi Milestone Video Adapter with Senfi. A Senfi API Key and associated secret is required to complete this step. View [[V2/CMS_Tutorial/Developer_Tools/Integration/Key|here]] to generate an integration key/secret pair in the CMS.
  
Line 70: Line 70:
 
Click '''Setup Milestone''' to continue.
 
Click '''Setup Milestone''' to continue.
  
==== Milestone Config ====
+
==== '''Milestone Config''' ====
 
This page is used to configure the connection to the Milestone XProtect server
 
This page is used to configure the connection to the Milestone XProtect server
 
[[File:Msva_milestone_config.png|thumb|center|690px|Configure Milestone|link=]]
 
[[File:Msva_milestone_config.png|thumb|center|690px|Configure Milestone|link=]]
Line 87: Line 87:
 
Click "Update Configuration" to set or change the configuration. If successful, the page will show "Connected to Milestone Server: <IP/Hostname>".
 
Click "Update Configuration" to set or change the configuration. If successful, the page will show "Connected to Milestone Server: <IP/Hostname>".
  
==== Video ====
+
==== '''Video''' ====
 
The Video page is used to configure live video from Milestone that will be available for streaming to Senfi.
 
The Video page is used to configure live video from Milestone that will be available for streaming to Senfi.
  
Line 102: Line 102:
 
* This is similar to [[V2/Integrate/Video|Video Adapter]]
 
* This is similar to [[V2/Integrate/Video|Video Adapter]]
 
* Only "On Demand" state is available.
 
* Only "On Demand" state is available.
 +
 +
==== '''Alarm''' ====
 +
The Alarm page is used to configure Milestone alarms which will be raised as Senfi External Events. Following is the pipeline of how Milestone alarms will be raised as Senfi External Events:
 +
 +
# Something happens to/in a Milestone device
 +
# An alarm is raised by Milestone
 +
# Senfi Milestone Video Adapter is notified
 +
# If an External Event has been configured for the Milestone Alarm and alarm state combination, and that External Event has been selected as raisable for the Milestone device, a Senfi External Event is generated by Senfi Milestone Video Adapter.
 +
# If the External Event (assuming that the External Event is linked to a Senfi Asset in the CMS) has been configured to raise a Senfi Alarm, a Senfi Alarm is raised.
 +
 +
View [[V2/Concepts/Asset#Event|link]] for discussion of Senfi's External Events.
 +
 +
The Alarm page is split into 2 tabs:
 +
# Alarm - To configure Milestone Alarm/Alarm state combination mapping to Senfi external event (i.e. which external event to be sent)
 +
# Device - To configure Milestone device mapping to Senfi external event (i.e. which milestone devices can send which external events)
 +
 +
==== Milestone Alarm Tab ====
 +
In this tab, a list of Milestone alarm definitions configured on the Milestone Server are shown.
 +
To forward an alarm/state combination to Senfi as an external event:
 +
# Click the Pencil icon on the desired Milestone alarm
 +
# In Senfi Event Raised, select either
 +
#* + EVENT FOR ALL ALARM STATES - Add 4 mapping templates to forward New, Acknowledged, On Hold, Closed states to Senfi
 +
#* + EVENT FOR SINGLE ALARM STATE - Add a mapping template
 +
# For each mapping template, fill in/change
 +
#* Milestone Alarm State - Select from New, Acknowledged, On Hold, Closed
 +
#* Name - Name of external event in Senfi
 +
#* A standard input and description has been auto-filled to be displayed in the eventual alarm in Senfi. To modify, change in Advanced section:
 +
#** Inputs - Select from list of Milestone alarm data you want to use for inputs in the eventual Senfi alarm's description
 +
#** Description - Description of the eventual Senfi alarm, with embedded per-alarm-instance inputs
 +
# Click SAVE & EXIT
 +
This tab only configures Milestone Alarm/State combo to Senfi External Event mapping. To associate Senfi External Event from a particular Milestone device to be sent to Senfi, go to the Milestone Device tab.

Revision as of 18:16, 27 October 2021

Senfi Video Adapter

The Senfi Milestone Video Adapter is available to onboarded partners only. If you would like to join as a Senfi partner, please send us an email with your organization name and contact details.

Note: Mandatory fields are marked with an ‘*’.

General

The Senfi Milestone Video Adapter provides Senfi integration with the Milestone XProtect Video Management System.

Features include:

  • View live video streams in Senfi
  • Send PTZ commands to PTZ camera from Senfi
  • Forward Milestone alarms to Senfi

Senfi Milestone Video Adapter supports XProtect 2018 and later only.

Milestone XProtect Video Management System Basics

Milestone XProtect is a Video Management System (VMS) product offered by Milestone Systems A/S. For more information, view here

In the rest of this document, "Milestone" will be used to refer to an installed instance of Milestone XProtect.

Milestone Devices

Several device types can be added to Milestone. The supported device types are:

  • Camera devices
    • Streams video
    • Can have Pan-Tilt-Zoom (PTZ) capability
    • Can raise events related to video/video analytics. e.g. Motion Detected Event
  • Input devices
    • Simple 2-state/binary devices e.g. Tamper detection, momentary trigger
    • Can raise events related to changes of its state e.g. Input Rising Event

Note: Devices can also raise other system, device-specific or custom events, but their discussion is beyond the scope of this article.

Milestone Alarms

Milestone devices can raise Alarms from Events. Alarms will be shown in the Milestone XProtect Smart Client's Alarm Manager. Alarms have a name, which is used to identify the type of alarm (i.e. an alarm definition).

Alarms have 4 default states. Users can also add additional alarm states.

  • New
  • Acknowledged
  • On Hold
  • Closed

Alarms can be configured with a "related camera". This is mapped to each device that can raise a particular alarm.

Triggered alarms also contain other data such as:

  • Local ID
  • Priority
  • Category
  • Description
  • Timestamp

Steps

Installation

  1. Request for a copy of the Senfi Milestone Video Adapter installer by sending an email to us.
  2. Run the installer on a Windows machine. It uses the following ports by default: 22020, 10085, 10086, 10087.
  3. After installation, Senfi Milestone Video Adapter can be accessed with the following URL: http://localhost:22020/ui/login
    • Users can also use the Start Menu to access this page: Start -> Senfi Milestone Video Adapter (folder) -> Senfi Milestone Video Adapter

Login Page

  1. Login via your Senfi Username and Password.

Setup Page

This page is used to register the Senfi Milestone Video Adapter with Senfi. A Senfi API Key and associated secret is required to complete this step. View here to generate an integration key/secret pair in the CMS.

Fill in:

  1. Server/Gateway Hostname - This should be app.senfi.io
  2. Video Adapter Name
  3. Integration Key - Your Senfi API Key
  4. Secret - Secret to your Senfi API Key

After registration, you will see a Video Adapter ID. The ID and Video Adapter Name will be shown in the CMS Video page when you use the CMS to configure site/asset to video stream.

Click Setup Milestone to continue.

Milestone Config

This page is used to configure the connection to the Milestone XProtect server

Configure Milestone

Fill in:

  1. Milestone Server hostname or IP address
  2. Milestone Server port - 80 (Default)
  3. Milestone Account Username - Username to an Administrator account on the Milestone server
  4. Milestone Account Password - Password to above
  5. Milestone Account Domain (Optional) - Fill this in if your Milestone account is a domain LDAP account
  6. Credential Type - Windows or Basic Account
  7. Milestone Adapter hostname or IP address - localhost (Default/Cannot be modified)
  8. Milestone Adapter port - 8732 (Default/Cannot be modified)
  9. Milestone Adapter Streaming Base Port - 49152 (Default)

Click "Update Configuration" to set or change the configuration. If successful, the page will show "Connected to Milestone Server: <IP/Hostname>".

Video

The Video page is used to configure live video from Milestone that will be available for streaming to Senfi.

To add a new Stream

  1. Click "Stream +". The Stream > Add New page will appear
  2. Specify
    • Stream Name
    • Select from the list of cameras in the Milestone server
    • If the selected camera has PTZ capability, you can check the "PTZ" checkbox to enable PTZ capability in Senfi
  3. Preview stream by selecting "PREVIEW" beside "Source URL" (Optional).
  4. Select "ADD" to add stream.

Note:

  • This is similar to Video Adapter
  • Only "On Demand" state is available.

Alarm

The Alarm page is used to configure Milestone alarms which will be raised as Senfi External Events. Following is the pipeline of how Milestone alarms will be raised as Senfi External Events:

  1. Something happens to/in a Milestone device
  2. An alarm is raised by Milestone
  3. Senfi Milestone Video Adapter is notified
  4. If an External Event has been configured for the Milestone Alarm and alarm state combination, and that External Event has been selected as raisable for the Milestone device, a Senfi External Event is generated by Senfi Milestone Video Adapter.
  5. If the External Event (assuming that the External Event is linked to a Senfi Asset in the CMS) has been configured to raise a Senfi Alarm, a Senfi Alarm is raised.

View link for discussion of Senfi's External Events.

The Alarm page is split into 2 tabs:

  1. Alarm - To configure Milestone Alarm/Alarm state combination mapping to Senfi external event (i.e. which external event to be sent)
  2. Device - To configure Milestone device mapping to Senfi external event (i.e. which milestone devices can send which external events)

Milestone Alarm Tab

In this tab, a list of Milestone alarm definitions configured on the Milestone Server are shown. To forward an alarm/state combination to Senfi as an external event:

  1. Click the Pencil icon on the desired Milestone alarm
  2. In Senfi Event Raised, select either
    • + EVENT FOR ALL ALARM STATES - Add 4 mapping templates to forward New, Acknowledged, On Hold, Closed states to Senfi
    • + EVENT FOR SINGLE ALARM STATE - Add a mapping template
  3. For each mapping template, fill in/change
    • Milestone Alarm State - Select from New, Acknowledged, On Hold, Closed
    • Name - Name of external event in Senfi
    • A standard input and description has been auto-filled to be displayed in the eventual alarm in Senfi. To modify, change in Advanced section:
      • Inputs - Select from list of Milestone alarm data you want to use for inputs in the eventual Senfi alarm's description
      • Description - Description of the eventual Senfi alarm, with embedded per-alarm-instance inputs
  4. Click SAVE & EXIT

This tab only configures Milestone Alarm/State combo to Senfi External Event mapping. To associate Senfi External Event from a particular Milestone device to be sent to Senfi, go to the Milestone Device tab.