I do not like the fact that I should use ONVIF when I connect the HikVision cameras (DS-2CD2087G2-LU) this is because none of the feature work with it, even something as simple as motion detection doesn't work.
As
@wittaj has clearly and often stated - for best functionality IP camera brands should match the NVR brand, though even that isn't totally guaranteed.
Going back quite a while, in order to tackle the serious interoperability issues that multiple proprietary standards caused, the concept of ONVIF as an open standard was conceived.
The level of feature support was initially very limited, not even motion events were specified, but it's gone through multiple versions and is quite mature now.
Hikvision, although no longer an ONVIF member as far as I know, has good ONVIF support, generating motion events and also smart events and others..
And you should certainly get ONVIF motion events, amongst other types, from your DS-2CD2087G2-LU cameras.
Whether your NVR will react to them is another matter, I can't vouch for that model's capabilities.
Here is how you can check the cameras :
In the DS-2CD2087G2-LU web GUI, enable 'Open Network Video Interface' (aka ONVIF) and add an ONVIF user, as shown in the screenshot below.
Enable Motion events, and draw the areas that you'd like covered.
This will enable the camera to generate ONVIF motion events, and also any other event types you have configured in the camera.
To confirm that the camera is generating motion events, download and install ONVIF Device Manager from sourceforge.net (download site may have changed, there should be a copy here somewhere).
Give ODM the ONVIF credentials (top left of the window) and it will find ONVIF device on the same IP address segment as the PC automatically.
Your camera should appear.
Navigate to the Events page and check out the entries, while creating some motion in the camera view.
Below is a sample set of events, where you can see that the camera is generating not just ONVIF motion events, but smart events also.
