Milestone XProtect Integration
Milestone XProtect is one of the most popular Video Management Systems. U-alarm is able to send Alarms to this system so you can manage incidents in your well known platform.
In order to integrate U-alarm in your Milestone XProtect VMS you have to configure three components:
U-alarm => Connector => Milestone XProtect
Alarm signals will flow in the order as described above. Configuration should be made in the reversed order:
- Setup Milestone XProtect
- Setup U-alarm / Milestone XProtect Connector
- Setup U-alarm
Note: This guide has been tested on Milestone XProtect 2020 R1 and 2020 R3.
Before starting
In this guide it is assumed that Milestone XProtect is installed a computer in your network and you know how to configure it when using it without U-alarm. For further details please visit the official site of Milestone.
Requirements:
- All cameras and each device running Milestone XProtect and U-alarm are in the same network.
- Please make sure that each camera is registered in Milestone XProtect which should use U-alarm.
- You have administrator privileges on the device running Milestone XProtect (both for Windows and within Milestone XProtect).
Milestone XProtect
User
U-alarm requires access to Milestone XProtect therefore a new user should be created with administrator privileges.
In the Milestone XProtect Management Client go to the Site Navigation panel => Security => Roles.
Click on Administrators in the Roles panel.
- Find the Users and Groups tab at the bottom of the Role Settings panel. Click the Add... dropdown and select the Basic user option.
- In the Select Basic Users to add to Role pop-up click the New button.
- A new pop-up appears. Fill the form with new user credentials and click OK. Use a complex password with capital and small letters, numbers and special characters. Remember the password because it will be used later in the Connector.
- Add this basic user to the Administrators by clicking OK.
Event
In the Milestone XProtect Management Client go to the Site Navigation panel => Rules and Events => Analytics Events.
Right click on the Analytics Events panel => Add new
The name should be
U-alarm
.Note: It is very important to set this exact name without dot or any white spaces.
- Click the Save button in the top left corner.
Alarm
Now an Alarm has to be configured in Milestone Xprotect.
In the Milestone XProtect Management Client go to the Site Navigation panel => Alarms => Alarm Definitions.
Right-click on the Alarm Definitions panel => Add new.
Fill the form. Make sure that the alarm is Enabled.
Set any Name for the alarm.
This alarm will represent all notifications which come from U-alarm.
Set the Triggering event to Analytics Events then set U-alarm in the drop-down list below.
At the Sources setting click the Select... button. A pop-up appears.
Click on the Servers tab. Select the All Cameras node and click the Add button. Click OK.
If you are familiar with Milestone XProtect you can configure the rest of the settings as you wish or you can leave them as they are.
- Click the Save button in the top left corner (if enabled).
Rule
If your system is not recording continuously it is recommended to start recording on each triggered alarm. A Rule should be created for this purpose.
Tip: If your system has a custom recording logic you can skip this step.
In the Milestone XProtect Management Client go to the Site Navigation panel => Rules and Events => Rules.
Right-click on the Rules panel => Add Rule
Set any Name.
As a Type of rule select Perform action on event. Click on the blue underlined "event" word in the lower panel.
- In the pop-up select Events => Analytics Events => ... U-alarm. Click OK.
- Click on the blue underlined "devices/..." word in the lower panel (after "from").
- In the pop-up select Cameras => All cameras. Click the Add button. Click OK.
Click Next.
Skip the Conditions Step (2). Click Next again.
In the Actions Step (3) select Start recording on devices. Click on the blue underlined "recording device" word in the lower panel.
- In the pop-up select Use devices from metadata. Click OK.
The recording will start immediately on alarm. You can set other (even negative) values by clicking on the blue underlined "immediately" word in the lower panel.
Click the Next button.
In the Stop Criteria (4) step select Perform stop action after time. Click the blue underlined "time" word in the lower panel and set the length of the recordings. Click OK.
Click Next.
Skip the "Stop actions" (5) step. Click Finish. The new rule is created.
Connector
Compatibility
Upgrade Connector from 1.0.0 to 1.0.1
Close the Connector 1.0.0.
Uninstall the Connector 1.0.0.
Proceed to the next section.
NOTE: The Connector cannot use windows credentials any more, therefore you must create a Basic User in Milestone XProtect with Administrator privileges.
Install
- Download U-alarm - Milestone XProtect Connector installer.
- Install it on the computer which runs Milestone XProtect.
Configure the Connector
Open the connector service. Look for the connector's icon on your system tray.
The connector icon indicates the following states:
- Running (green)
- Pending (yellow)
- Stopped (red)
Double click the icon in the system tray to open the Connector's settings.
Port: The Connector uses port 10000 by default. Optionally you can set an other unused Port for the connector when the Server status is Stopped.:
Click the Stop Server button. This will enable the Port setting.
Set any other unused Port number.
NOTE: Please make sure your Windows Firewall on Connector's server is configured properly (enable communication through TCP 10000 port) or turned off.
NOTE: Remember the static IP address of this machine and the port you have set for it will be used in U-alarm later.
Milestone URL: set the Milestone XProtect server's address.
User and Password: set the Milestone XProtect credentials you have created before.
- Click the Start Server button. The Server status will change to Running.
- Everything is set. You can close the window for the service will continue running.
Additional information:
- You can always stop or restart the service by right-clicking on the tray icon and selecting the Stop/Start server option.
- To re-open the settings view to modify the connection or credential settings double click the tray icon.
- On the settings view you can always check the cameras registered to Milestone Xprotect with their GUID. Click the Camera ID-s button for this list. Note that you must close and reopen the list dialog whenever you add (or remove) more cameras to Milestone Xprotect.
- You can configure an alarm time offset in seconds. The default value is -0.5 seconds.
U-alarm
Now U-alarm can be configured along the User's guide with a few extra steps. Please come back to this article after you have finished the setup.
Cameras
Each cameras' Technical name in U-alarm should match its GUID in Milestone XProtect. Camera GUID can be obtained from both the Connector or from Milestone XProtect.
How to get the GUID
Option 1: Get the GUID from the Connector
- Open the Connector.
- Click on the Camera ID-s button.
- Copy the GUID of the appropriate camera.
Note: In this version camera list cannot be refreshed unless you close and reopen the list's window.
- Paste in U-alarm as the Technical name. Please create or update each camera setting in U-alarm accordingly.
Option 2: Get the GUID from Milestone XProtect
- In the Milestone XProtect Management Client go to the Site Navigation panel => Cameras.
Note: This can be a little bit tricky so please follow this guide carefully.
- In the Devices panel find the Cameras root node and click on it.
- Now (without clicking anywhere else) hold CTRL key and click on the specific camera.
- In the Properties panel on the right, under the Info tab you will find the ID (GUID).
- Select the ID value and copy it to your clipboard.
Note: Make sure that you don't copy any leading or tailing spaces. It is recommended to create a note about these ID-s.
- Paste in U-alarm as the Technical name. Please create or update each camera setting in U-alarm accordingly.
Alarms
- Create a new or start to modify an existing Alarm in U-alarm.
- Enable HTTP client settings in the form by clicking on the switch.
- Set the Target url to the Connector's address using the location and the port you have memorized before e.g. http://192.168.1.123:10000.
- Submit your settings.
Receiving alarms in Milestone XProtect
All done. Whenever an Alarm is triggered by U-alarm it should be visible in Milestone XProtect Smart Client under the Alarm Manager tab with annotations.
The metadata in the alarms:
- Name: the name of the alarm in Milestone XProtect.
- Message: U-alarm (cannot be changed)
- Type: The name of the alarm in U-alarm
Troubleshoot
U-alarm Connector can not be started
- Please make sure that the location of Milestone XProtect server is available
- Please make sure that the Milestone XProtect credentials are correct and the user has Administrator privileges in Milestone XProtect.
Milestone XProtect does not receive Alarms from U-alarm
- Please double check all settings in Milestone XProtect.
Please check whether the U-alarm Connector is
- Running
- If not, please start the Connector and make sure that it is in RUNNING state
- Milestone XProtect credentials are set well in the Connector.
- Please update the credentials if needed.
- The window firewall is off or the communication is enabled so the location and the port is accessible for U-alarm.
- If these settings are fine, it means that U-alarm Connector does not receive Alarms from U-alarm. Please proceed to the next issue.
U-alarm Connector does not receive Alarms from U-alarm
- Please make sure that the network location of the connector is set well in U-alarm's Alarm.
- Please double check that U-alarm camera's Technical name matches its GUID in Milestone XProtect.
- Under the [Events] view in U-alarm please check whether U-alarm detects incidents. If you can not find a record recently it means U-alarm does not trigger Alarms. In this case please proceed to the next issue.
U-alarm does not trigger Alarms
- Please double check the configuration of your Alarm in U-alarm especially the Sensitivity and the Filter Area (ROI) settings.