📜 ⬆️ ⬇️

From analog to digital, or do it yourself IP camera

I will begin the story with the fact that I had an analog dome camera from China. She was bought on sale, cost around 20 bucks, worked a couple of weeks and died quietly. No, she did not die at all, but only the video from her became very dark and unsuitable for recording. Therefore, the camera was abandoned in the far corner until better times.

Recently, while wandering around the well-known Aliexpress website, I came across a module for an IP camera , which was offered as a do-it-yourself kit, there were still different camera parts in the seller’s shop. The size of the module came in place of the analog (38x38), it was decided to order it and try to assemble the IP camera from the failed analog one. The module cost a ridiculous $ 11, drove to me very quickly, in a couple of weeks.

The module itself looks like this:


')
TTX module
Hi3518C DSP 1/4 "OV9712 CMOS Sensor
Support Onvif CS / M12 Mount IR Lens

Spec: IPG-60H10 (38) PL-S

System: Embedded RTOS design, dual core 32-bit DSP (Hi3518C), pure hardware compression, watchdog

Sensor: 1/4 "OV9712 CMOS sensor
set of double light switch IR-CUT filter,
support day and night conversion, IR sense,
support the linkage signal photosensitive resistance,
support CS lens mount;
Color 0.6 Lux at F1.2, B / W 0.08 Lux at F1.2;

Video: H.264 main profile, support dual stream, AVI format
support 0.1M ~ 6Mpbs bit rate adjustable
support 1 ~ 30fps adjust

Resolution: Main stream: 1280 * 720
Sub stream: 704 * 576

Network: 1 * RJ45, 10 / 100M

Power: DC 12V power supply; Power consumption - 3W


It is time to dissect the old patient.



The operation is simple - disconnect all pads, remove the module from the camera, remove the lens from it and fasten it to the new board.
The connector block from the OSD control of the old one-to-one camera matched the connector of the LAN port. Therefore, there is nothing difficult here - we cut off the old tail, solder a new one. Pinout like this:

1 brown RX-b-green
2 purple RX + green
4 white TX-b-orange
5 green TX + orange

On the 3rd and 6th pins, wires for the link and activity LEDs are hanging; I don’t need them, since the camera will be at the entrance.

But I had to tinker with the power supply, since the connectors did not match, the old one had a three-pin connector, and the new one had a four-pin connector. But it does not matter, we take the file in hand and gradually remove the excess from the sides, periodically trying on the place.



Looking ahead, I will say that the chip decently heats up when working, so it was decided to put a small radiator just in case. On normal cameras with the same chip radiators are already from the factory.



The power supply of the module and the IR illumination are connected together, and are sent on the same twisted pair on a brown and white-brown wire. After spikes, we shrink everything.



So, we collect the camera, connect the camera to the router and apply power. As a power supply, I used the old 12v adapter from D-link.
The default camera address is 192.168.1.10. Pingue, HURRAY !!! - the camera responds to the ping, it means our efforts were not in vain!

We try to log in with chrome and get into a minimal web interface, login admin, password is empty. Here the first surprise is waiting - the video on the web is not visible, there are no settings. To get to the camera settings, you need IE and a special ActiveX module, as well as a program to control the camera.



So the camera is working! But there is a fly in the ointment - there is no infrared filter on the matrix, so the colors look unnatural. In principle, for me it does not matter - the camera will be in the stairwell and the color rendition is not particularly important.

To determine the addresses of the rtsp streams, install a wonderful program - ONVIF Device Manager with which you can see all the cameras on the local network with onvif support.

The first stream in 720P is located at rtsp: //192.168.1.10/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp? Real_stream

The second stream is a small resolution - Stream rtsp: //192.168.1.10/user=admin_password=tlJwpbo6_channel=2_stream=0.sdp? Real_stream

Address passwords are built into the camera, they cannot be changed, and are probably made for forgetful people.

This is where my story is finished, the camera is working in the stairwell, using ivideon as a server (do not consider it an advertisement). Waiting for your questions.

Source: https://habr.com/ru/post/237109/


All Articles