The alarm out on our NVR is wired back into the NVR where it controls a camera (down by our gate). The camera then holds the gate open when the alarm out it ON, and releases the gate when it is OFF. I want to automate the closing of the gate every night (so that if someone has held the gate open during the day, for a delivery say, and forgotten, the gates will still close at midnight).
The alarm scheduling doesn't achieve this - or at least I can't work out how to achieve this. If you can think of a way of using the built in scheduling to do it then great - let me know!
My alternative was to try to control the gate cam via an HTTP call - and I found this thread: HTTP commands for Hikvision
When I send this command to my gate camera:
I get this XML back:
I now think I need to make two versions of this, one for ON and one for OFF (probably low and high) and use Curl to post them to camera - however, when I set the gates to open and send this command I get the same XML back (I'm expecting to see low change to high).
Maybe it's just a single five second pulse that puts our gates into hold open mode? If so then can I get the state of the gates? I think I should be able to because when I look at the Alarm Out controls in IVMS-4200 the button shows when it is ON or OFF.
My other idea is to use some PC/Mac automation software to actually look at the screen and click on the button if it is on (I found a Java tool that might allow this to be automated at midnight)
Equipment (as reported by SADP Tool):
NVR: DS-7616NI-K2/16P
Camera: DS-2CD2346G2-ISU/SL
The alarm scheduling doesn't achieve this - or at least I can't work out how to achieve this. If you can think of a way of using the built in scheduling to do it then great - let me know!
My alternative was to try to control the gate cam via an HTTP call - and I found this thread: HTTP commands for Hikvision
When I send this command to my gate camera:
HTML:
http://[Username]:[Password]@[IP_Address]/IO/outputs/1/
I get this XML back:
XML:
<IOOutputPort xmlns="http://www.hikvision.com/ver10/XMLSchema" version="1.0">
<id>1</id>
<PowerOnState>
<defaultState>low</defaultState>
<outputState>pulse</outputState>
<pulseDuration>5000</pulseDuration>
</PowerOnState>
</IOOutputPort>
I now think I need to make two versions of this, one for ON and one for OFF (probably low and high) and use Curl to post them to camera - however, when I set the gates to open and send this command I get the same XML back (I'm expecting to see low change to high).
Maybe it's just a single five second pulse that puts our gates into hold open mode? If so then can I get the state of the gates? I think I should be able to because when I look at the Alarm Out controls in IVMS-4200 the button shows when it is ON or OFF.
My other idea is to use some PC/Mac automation software to actually look at the screen and click on the button if it is on (I found a Java tool that might allow this to be automated at midnight)
Equipment (as reported by SADP Tool):
NVR: DS-7616NI-K2/16P
Camera: DS-2CD2346G2-ISU/SL
Last edited: