Door Video Intercom Connection

Post Reply
febalci
Posts: 328
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Door Video Intercom Connection

Post by febalci » Friday 14 July 2017 15:05

I do have a door video intercom connection with the device as shown:

Image

I want to connect this unit to my home automation system via a raspberry. The connection between the intercom and the outer camera/doorbell unit is 4 cables; Audio, Video, Gnd, Vcc (12V). The screen unit itself is said to be working on 18V. I was wondering if i could use the GPIO pins of a raspberry to process (probably analogue) audio and video signals of the unit and feed it to domoticz. I haven't opened up the screen unit yet but i believe there's also connection ports for additional units, so maybe i can use them.

Image

I will try to add circuit pics once i open the case... If it succeeds, then it may simply become a smart doorbell. Is there anyone yet who tried the same?

febalci
Posts: 328
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Door Video Intercom Connection

Post by febalci » Friday 14 July 2017 22:54

It turns out the screen unit is working on 220V. It has its own transformer inside to regulate the voltage to 18V. The back of the unit is as follows:

Image

And also this unit is more or less the same with Genway units which is owned by ABB now. However they are not manufacturing these anymore, as you can see on the label it is 10 years old.

So i am gonna try with an easycap video/audio dongle to convert the analog video/audio signals to digital on a raspberry. Connection to the dongle will be with an RCA connector; video signal to center pin of yellow RCA, audio to center pin of red and white RCA, Gnd to outer shell of all three RCA. I've got to get an easycap dongle first, will let you know after i buy it :D

febalci
Posts: 328
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Door Video Intercom Connection

Post by febalci » Sunday 20 August 2017 16:53

Yeah i got my Easycap. Things went really smooth. Didn't need any drivers. First connected Video line to easycap yellow center, audio to easycap red and white center. Then i wired GND lines of all 3 video, white and red audio together to GND line.
Image
Image

I used uv4l for video and sound streaming. Luckily, all sound and video timeout issues are all handled by the outer camera unit itself. When i press button, the ring audio is send and the camera starts sending video for 50 seconds and then shuts itself again. I used Webrtc streaming server of uv4lbut i guess this is not right in my case cause i do not know how to handle Domoticz side. As i see domoticz only gets mjpeg streams, and as far as i know that doesn't handle audio.
Image
Can you suggest me how to handle two-way audio streaming with domoticz? Or is it not possible?

febalci
Posts: 328
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Door Video Intercom Connection

Post by febalci » Sunday 17 December 2017 1:10

I decided to revert back to mjpg-streamer rather than uv4l just for Domoticz compatability. I used this fork:
https://github.com/jacksonliam/mjpg-streamer
Started the mjpg server with:

Code: Select all

mjpg_streamer -i input_uvc.so -o output_http.so
So, it gets the video from Easycap and sends to http as mjpeg both stream and snapshot.
And in Domoticz Camera Settings I added the streamer link to settings:

Port:8080 (I run Domoticz on Synology NAS, so nothing here on rpi on this port)
ImageURL: ?action=snapshot

And tadaaaa, whenever somebody presses the doorbell, the stream starts. Now the only thing left is the notification; again when somebody presses the door bell, it will send me a notification with picture; and i will be able to stream it from Domoticz. Unfortunately this way it will not be possible for me to make two way conversation since Domoticz only supports video one way, no sound, no two-ways. I will either set a different smartphone application for this, or leave it as it is.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests