How to use Hikvision Audio and Alarm IO connections

Jul 19, 2014
7
14
With some of the Hikvision camera range there is an S option which gives Audio and Alarm I/O capabilities. Frustratingly I have been unable to find detailed information online or in the manuals on how these work so I bought one and had a play.

An example of such a camera is DS-2CD2532F-IS which comes with a pigtail cable with a green connector block. This has four screw down connections labelled from left to right as I, O, GND and A.

Audio Alarm IO connector.jpg Click to enlarge the picture

The narrative below explains what each of these are and how they can be used.


I : Alarm Input

This allows an external device to tell the camera to start recording. An example of such a device could be a PIR which might be used in preference to the camera's motion detection which is notoriously sensitive to changes in sun, clouds, heavy rain and lightning flashes.

The alarm input can be triggered by simply shorting the I input to GND (ground) as could be done by a simple on off switch - you do not need to feed any power into it.

Of course if you wish to use a PIR you will need to feed the PIR with power in order for it to function and switch the alarm input. Irritatingly there is no power output available on the DS-2CD2532F-IS which means potentially means a separate power supply and cabling.

If instead of using POE (Power Over Ethernet) you are running a power cable to the camera (it has a power connector for non-POE users) you could tap in to this for low voltage power using a CCTV power splitter cable which you can source on ebay or on specialist CCTV web sites . Just make sure you have checked the voltages and power consumption of the devices you want to power are compatible with the power supply you have bought to power the camera. Most of the HikVision IP cameras are 12V but I found one that was 24V.

Remember you will need to configure in the camera whether the alarm input is expecting Normally Open (NO) or Normally Closed (NC) connections along with a schedule of when the camera should accept such inputs or ignore them. NO connections are basically like an on-off switch where the switch is normally OFF and when something like a PIR detects movement it is switched to ON. NC connections on the other hand are basically like an on-off switch where the switch is normally ON and when something like a PIR detects movement it is switched to OFF.

If you are going to use a PIR you may want to consider a 12v one designed for an alarm system as the better ones are much more advanced (less likely to give a false alarm) than the mains powered ones used to switch outdoor lights. Also if using the PIR outdoors make sure it is rated for outdoors use. I found this article quite helpful as it gives you an idea of the outdoor PIR types available and who makes them The downside is that these don’t come cheap and they can be quite large.

If like me you use Synology Surveillance Station to control and monitor your cameras do be aware that alarm inputs alerts are tagged differently from motion detection alerts and so you have to explicitly configure Surveillance Station to trigger on these (SS> Management > IP Camera> edit camera > schedule). I lost a day and some hair before I found this out...


A : Audio Output

This allows you to feed an audio signal into an amplifier and then to a loudspeaker. You cannot attach a speaker directly to the camera. The audio will come from a microphone attached to a PC which is then routed over the IP connection to the camera. With the DS-2CD2532F-IS it has a built in microphone so this setup would allow a CCTV operator to have a conversation with someone near the camera which would be useful if it were located near to an entrance door. The camera's Live View page on its web interface is one way of using this capability.

While I have not used the audio output it would be my expectation that you would feed the amplifier's input with the A and GND outputs. Remember you will need to use screened audio cable to prevent noise. Given the size of the screw down connectors make sure you use a small diameter cable.

Again you would have to feed power to the amplifier.

For testing purposes you may want to play with the camera indoors and try and feed the audio into an external audio input on a TV or portable radio or a music player dock. For a more permanent solution you should be able to find suitable low powered amplifiers and loudspeakers at the likes of ebay, or Maplin in the UK, or Radio Shack in the US. Search for “Mono audio amplifier” or “amplified speaker mp3”. Make sure you get something which allows you to adjust the volume (gain). If you are going to use the speaker outside (even if under cover) then you need to make sure it is rated for outdoor use otherwise you will end up with some very soggy cardboard that will fall apart.

O : Alarm Output

This allows you to signal an alarm condition to an external device if say the camera's motion detection has spotted a movement.

With regard to the alarm output (O and GND) be very careful. I have not played with it and don't know for sure how it works let alone what the voltages are and what the maximum output current is. I suspect you can directly hook this output to alarm panels and to CCTV recording devices, but whether you can connect it directly to things like Raspberry Pis I do not know. You certainly will not be able to connect anything like a light bulb or a buzzer without using a relay. How you wire relays up so they do not damage the circuitry in the camera is outside my area of expertise although the words Back EMF and Diodes ring distant bells in my head.

If anyone has expertise on the above please do comment as I would be interested.


GND : ground
This is used in conjunction with the above connections to complete the circuit.


Hope this information helps a little and that I haven’t made too many mistakes. Do keep in mind you use this information at your own risk. I am not an electronics expert so I don’t warrant its accuracy.
 
I have been curious about this topic, even though I can't put it to immediate use, it is on the back burner as I'd like to integrate things more and have better detection through PIR to elimate issues with shadows, snow, rain, etc.
 
Hi there - anybody get this to work with a PIR? I have a HIK Vision with above terminals. I also have a DSC 151 motion sensor hooked up to my DSC alarm panel and it is configured to always be NC. PIR is working perfectly right now with the alarm panel but I can't get it to trigger camera right.

So I tried to get this to work as follows but I must be wiring it wrong:
ON PIR, I connected a wire to C and NC terminals (these also go back to the alarm panel Zone and Common)

ON CAMERA - I connected wire from C to GND and wire from NC to I (input)

Set the alarm input up in camera to expect a NC.

RESULT is the camera keeps recording (due to bad wiring it must be a NO)


NEXT STEP - reversed the wires and same result.


Do I actually need to hookup GND to the GND on the Sensor (which goes back to the AUX POWER terminal on board -12V)


Just afraid to fry something. Thanks all!
 
Hi there - anybody get this to work with a PIR? I have a HIK Vision with above terminals. I also have a DSC 151 motion sensor hooked up to my DSC alarm panel and it is configured to always be NC. PIR is working perfectly right now with the alarm panel but I can't get it to trigger camera right.

So I tried to get this to work as follows but I must be wiring it wrong:
ON PIR, I connected a wire to C and NC terminals (these also go back to the alarm panel Zone and Common)

ON CAMERA - I connected wire from C to GND and wire from NC to I (input)

Set the alarm input up in camera to expect a NC.

RESULT is the camera keeps recording (due to bad wiring it must be a NO)


NEXT STEP - reversed the wires and same result.


Do I actually need to hookup GND to the GND on the Sensor (which goes back to the AUX POWER terminal on board -12V)


Just afraid to fry something. Thanks all!


I'd suggest going back to basics to eliminate any configurations issues. For testing purposes I'd suggest the following steps :

1) you can make sure the camera is responding to alarm inputs correctly by just putting a wire in to the I input and another into the GND input and then short them together. Then you can break the connection and see what happens.

2) put a multimeter/ohmmeter across your PIR relay outputs to make sure it is doing as you expected

Then once you have got these behaving as you expect you should hopefully be shipshape.

Good luck.
 
Well good news - I finally got it going. Had the wires backwards! Common and NC on the PIR to Input and Gnd on the Camera. Works amazing!! I'm so happy as there are no false positives with this high end motion sensor and it has pet / vegetation immunity. So if I get a notification, good chance someone was walking by the sensor.

Love the Hikvision + DSC + Vera setup + Envisalink setup. Now when that motion triggers, I can watch that PIR via the DSC integration into Vera and flash the outside lights.
 
All fair and well but is there any way I can manually switch the output of this camera, ie via a software switch or something similar? I would like to pulse a small relay which in turn will operate a maglock
 
All fair and well but is there any way I can manually switch the output of this camera, ie via a software switch or something similar? I would like to pulse a small relay which in turn will operate a maglock


Ok Ok I found the setting In the top menu under tools go to IO Control and there you will find all the IO's for all the cameras

Thanks

Camera Guy:rugby:
 
If we have a PIR that has a 12v signal wire but no ground/negative output is it safe to just use positive 12v wire to the camera without negative?
 
You need 2 wires in order to connect an alarm output to an alarm input, one of which would be a Ground or 0v.
And I'm not sure what the camera specs are for alarm input - ie does it require a contact closure or is it a signal level.
Best not to connect until you are sure.
I have a recollection that there was a post with that detail somewhere on this forum, but wasn't able to find it.
 
You need 2 wires in order to connect an alarm output to an alarm input, one of which would be a Ground or 0v.
And I'm not sure what the camera specs are for alarm input - ie does it require a contact closure or is it a signal level.
Best not to connect until you are sure.
I have a recollection that there was a post with that detail somewhere on this forum, but wasn't able to find it.

(Mine is 12v version)
The PIR sensor simply allows 12v through,
http://www.qiannipicture.com/pic/Up...69D7393D2649A3356CBC626CFC98123C6999DA0CC.jpg

I just thought considering it's not powering anything, just signalling an alarm that I didn't need the negative wire

Camera is a Hikvision DS-2CD2132-I,
http://www.hikvision.com/en/Us/Products_show.asp?id=9118
 
That probably won't work and might kill the camera. The alarm inputs on the camera are not looking for a power feed, they are just looking for a closed circuit. Those are called "dry contacts". Putting external voltage on that will not end well. To make it work you would need to setup a relay between your PIR and the camera - the PIR controls the relay, which closes the circuit on the camera side.

(Mine is 12v version)
The PIR sensor simply allows 12v through,
http://www.qiannipicture.com/pic/Up...69D7393D2649A3356CBC626CFC98123C6999DA0CC.jpg

I just thought considering it's not powering anything, just signalling an alarm that I didn't need the negative wire

Camera is a Hikvision DS-2CD2132-I,
http://www.hikvision.com/en/Us/Products_show.asp?id=9118
 
Timely message. Im planning on using the hikvision 2532 at my front door. Ideally would like to be able to:

1. Have it start recording as a person comes up to the door so that my family can view who is at the door when they ring the bell.
2. Be able to speak to the individual from an ios or android device via the cameras audio/mic

Right now i juat have a cat6 cable installed to the exterior. Do i need to install additional cables and or other items to do the above?

Thx
 
Timely message. Im planning on using the hikvision 2532 at my front door. Ideally would like to be able to:

1. Have it start recording as a person comes up to the door so that my family can view who is at the door when they ring the bell.
2. Be able to speak to the individual from an ios or android device via the cameras audio/mic

Right now i juat have a cat6 cable installed to the exterior. Do i need to install additional cables and or other items to do the above?

Thx
Yes, you will need to install a speaker, connect it to the camera and run cable to power the speaker..
 
Yes, you will need to install a speaker, connect it to the camera and run cable to power the speaker..

Darn,wish I had thought of this while the house was being built. May be difficult now to run power.

Any speaker that that you recommend for that camera and or outdoor use?
 
Darn,wish I had thought of this while the house was being built. May be difficult now to run power.

Any speaker that that you recommend for that camera and or outdoor use?
If the location is covered you may consider using a 2432 indoor cube with a built in speaker...
Another alternative is using a using the unused pairs in the cable you already have..there are two modes for poe, mode A and B...I believe (you can do some research to confirm) that the cameras use mode A when powered by a standard poe switch (not passive midspan) and therefore the data and power are carried on the same pairs..so there should be two unused pairs in the cable to use to power the speaker..I havent used an outdoor speaker so i cant give you a recommendation. Audio over cameras can be finicky...sometimes is better to use a traditional intercom with the camera simply providing the video feed.
 
Hello Everyone,

New to this forum, but started reading about the new Hikvision firmware, and stumbled on this.

Last year I installed the DS-2CD2532F-IS on my front porch, and used the Alarm input, trigger by my front doorbell via an elk sensitive relay, to notify via the hikvision app, as well as email to sms/mms, an alert to my phone/ipad etc.



Also, i hooked up the speaker audio to a speaker in a plastic casing i found at an electronic store nearby.


http://www.elkproducts.com/product-catalog/elk-924-sensitive-relay


Now that I read post #1, can anyone explain simply the difference between using screened and unscreened cables? One issue I have with my DIY intercom system is audio feedback, otherwise, it works very well.

Thanks, and nice to meet you all!
 
  • Like
Reactions: ComPH