Tag Archives: cctv

Enabling RTSP for XiaoMi IP night vision camera

Basically XiaoMi launched 2 type of IP cameras. The first one was launched 2 years ago, 720P without night vision, and the latest one was launched a year ago that has a night vision feature. Besides that, one of the major difference between these 2 versions is the RTSP protocol. The oldest one was able to be accessed by RTSP protocol, but RTSP protocol was completely disabled by XiaoMi. Which means the latest night vision IP camera cannot be used in Synology Surveillance Station or other NAS operating system.

After referring to a few online guide, I noticed that there is a possibility to implant the RTSP protocol into that latest night vision camera. What we need is a SD-card.

Overall I refer to http://xiaoyi.querex.be/ which is an unofficial web site to download Xiao Mi IP camera firmware.

2 important steps to enable RTSP protocol on XiaoMi IP camera,

  1. Flash the firmware
  2. Add in code to implant the RTSP server file

Beside enabling for RTSP protocol, we are able to enable FTP, Telnet, and HTTP web protocol in a single upgrade. I tested with quite some versions, what I noticed is that not all the version is working fine, but the one that always works is version K.

Which firmware to use?

So far I had already flashed up to 4 Xiao Mi IP camera with version K (http://xiaoyi.querex.be/1.8.5.1K_201508311131.rar). So download this firmware and then download (http://xiaoyi.querex.be/1.8.5.1K_test-rtspfix-3.rar) as well.

Extract all the .rar file, and then copy and move the “home” firmware to the root of the SD-card, and move /test/ directory to the root as well. So you should see something like below,

1

The /test/ directory should have contain below files,

2.PNG

The equip_test.sh is a C++ file responsible to do some tasks during the firmware upgrade. The “rtspsvr” and “server” is RTSP server file which is needed to enable RTSP protocol.

If you open the equip_test.sh file, you would see something like below,

Change the timezone

3.PNG

By default, the time zone would be +0 (China timezone). If you are staying at Malaysia, then you don’t need to change this value.

How to flash another firmware

  1. Disconnect cam
  2. Remove micro SD card
  3. Power on and long press reset button
  4. Disconnect cam
  5. Put “home” firmware file and “test” directory on SD card
  6. Insert micro SD card an power on
  7. Wait around 5 min and try to connect from smartphone app
  8. Check your cam it’s IP address in the router DHCP list

How to check if succeeded?

If you are able to access RTSP address using VLC, means you had just succeeded. If you planned to link it with your Synology NAS, you can follow this detailed guide here to setup your XiaoMi CCTV on Surveillance Station.

Setup a Surveillance Station on 2 different LAN networks

Currently I installed a Synology NAS at my home, but I need another one to setup at my hometown (300 kilometers away) so that I can helped my parent to monitor their premises. Instead of spending on 2 Synology Disk Stations, I just stick with one, but connect to my parent’s house CCTV and grab all the live content and recording it down into my NAS.

But we need to make sure a couple of things are working now before we link all the CCTVs at a single NAS.

  1. My parent’s CCTVs support port forwarding access
  2. My parent’s router can support external access
  3. My parent’s router support dynamic DNS.
  4. Setup a free domain

 

If (1) and (2) are OK, then the next important step is to setup a free domain at www.Noip.com. let’s say we setup http://secondhouse.ddns.net, update your router’s DDNS (Dynamic Domain Name System) settings so that each time your router reboot, it will notify noip.com server on it’s latest IP address, so that when you access http://secondhouse.ddns.net, you would get the latest IP address.

The next thing is to setup port forwarding for your CCTV, let’s say we already setup port 8000 for external source to access the CCTV, then you should fill up the information like below,

2lan.PNG

The Synology Surveillance Station is good enough to stream the CCTV content across internet. Physically your CCTVs can be at 2 or more different locations, but virtually you are keeping all the video recording at a single NAS.

How to switch D’Link CCTV wireless SSID without using a LAN cable

Ok, here i got a more comprehensive solution to switch a D’Link CCTV wireless SSID or change the password without physically touching on the device or using a LAN cable which is tedious job.

This guide is very useful especially for those who would like to change to a new router / or change the wireless password at home/office and their CCTV located at top roof or area that difficult for them to take them off (cctv that use wireless to connected with).

Existing Router = A (192.168.0.1) New Router = B (192.168.2.1)

–Switching the router SSID–

  • Make sure you still can connect to the dlink cctv using existing router A.
  • Look for the IP address of the Dlink cctv at DHCP list (example : 192.168.0.101)
  • Access directly to http://192.168.0.101/, enter username/password.
  • Go to Setup > Wireless Setup.
  • Click on the “Site Survey” button.
  • Select the new router B.
  • Change the “Pre-Shared Key” passsword (Make sure the password is correct or else everything will be screwed up)
  • Restart the dlink cctv by powering it up physically (or restart it at admin page).
  • The dlink cctv should connect to the router B after it being restarted.

–Switching the password of the SSID–

  • Make sure you can dlink cctv wireless setting password first before you change ur router password.
  • Look for the IP address of the Dlink cctv at DHCP list (example : 192.168.0.101)
  • Access directly to http://192.168.0.101/, enter username/password.
  • Go to Setup > Wireless Setup.
  • Change the “Pre-Shared Key” passsword (Make sure the password is correct or else everything will be screwed up)
  • And now go to router A, and change the router A’s wireless password.
  • Restart your router A.
  • Restart the dlink cctv by powering it up physically (or restart it at admin page).
  • The dlink cctv should connect to the router A with new password after it being restarted.