Category Archives: Synology

Change Surveillance Station Directory

By default, Synology NAS would choose a primary disk and set the surveillance station directory on it, but sometimes we might want to pick the other hard disk to store all our surveillance recording videos, so below is the way how to do it correctly.

When you accessed the control panel, enter the “Shared Folder”, inside the Shared folder there are a few default system folder that already been there after you setup the Synology NAS.



“Edit shared folder surveillance” option will prompt, and you can pick volume 2 as the location.


Synology NAS will move all the Surveillance Station directories to volume 2 accordingly.


As a result, you can see that the “Surveillance” volume had been changed to “volume 2” at the end.






Setup XiaoYi IP Camera on Surveillance Station

Surveillance Station XiaoYi IP Camera

By default Synology Disk Station never support XiaoYi IP camera offically, so that’s why you can’t see the XiaoYi IP camera as part of the compatible cameras.


But after I read a couple of Chinese web site, I realized that it is entirely possible to install the XiaoYi IP camera on Synology Surveillance Station, but some minor tweak and workaround is needed in order to achieve that.

The current situation

One of the tricky part with Xiao Yi IP camera is that Xiao Mi launched 2 version of Xiao Yi IP Cameras. The first one we called it “non night vision”, where the latest product is called “night vision”.

The so-called “non night vision”, won’t worked well during night time, but it support RTSP (Real Time Streaming Protocol). RTSP protocol is very important for us if we want to setup the XiaoYi IP Camera to works in Synology Surveillance Station.

The “night vision” XiaoYi IP camera works well during dark time, but I noticed it contains 2 big problems.

The first one is it did not support RTSP protocol. Second one is the ping is very high when compare with the old version. I believe that since it is a manufacture problem for the later problem, then we can’t do anything about it. But the first problem can be solved with some trick (Will show you guys later).

How to install XiaoYi IP camera on night vision version

Please refer to the latest post here.

How to install XiaoYi IP Camera (non night vision) on Surveillance Station?

The first step is to add the Xiao Yi IP Camera into the XiaoMi account, and make sure it is connected to internet.

Second step, try to get the XiaoYi IP camera IP address from your router device list like below.



If you know the IP address, try to ping using google paping, pointing it at “paping [IP address]  -p 554“, if it is working then you can see a list of connected results like below. On how to use Google Paping, please refer to here.



Use VLC to double confirm everything, choose “Open network stream” option in File.


And then enter “rtsp://[IP address]:554/ch0_0.h264” like “rtsp://”


If your one is non night vision XiaoYi IP camera, then you can see your screen.


After make sure every connect work smoothly within our expectation, then next big step is to connect them to Synology Surveillance Station.

The next big step

As I explained earlier, Synology Surveillance Station never support XiaoMi IP camera officially. So we need to update the “device pack” configuration file with a custom XiaoYi camera configuration file.

api = custom
resolution_h264 = 1280×720
default_resolution_h264 = 1280×720
fps_h264_640x480 = 5,10,15,20,25,30
fps_h264_1280x720 = 5,10,15,20,25,30
default_fps_h264_1280x720 = 20
default_image-quality = 5

h264 = rtsp
mpeg4 = rtsp
mjpeg = rtsp
motion = h264,mpeg4,mjpeg

motion_param = sensitivity,threshold
rtsp_keepalive = none
rtsp_protocol = auto,udp,tcp

Save the configuration as Xiaomi.conf.
By using WinSCP, upload this Xiaomi.conf configuration and store it at “/var/packages/SurveillanceStation/target/device_pack/camera_support” like below.


This step is very important, so that after we added the configuration, then we can see the XiaoYi camera listed in the drop down menu of the device pack like below.


Make sure you entered the IP address, and the port 554. Leave the username and password <blank>.

Click next or save it.
As you can see that the XiaoYi IP camera will listed as “disconnected”, this is common and it happened because we still have to do some tweak and workaround to make it work.


Make sure you read all the text carefully

Export the XiaoYi IP camera configuration to a storage


And remember to select the XiaoYi IP camera so it can export correctly.

Access the network drive of the NAS, and look for the .EXPcam file.


By using PSPad, modify the path and live path from “/” to “/ch0_0.h264” like below.


And then remove the current “disconnected” XiaoYi IP camera from the IP camera list.


Import the one that modified by you previously.


If you import an IP camera configuration, by default Surveillance Station will disable it. So you have to right click and Enable it.


It is 99% working fine now, as you can see the thumbnail preview.


And below is the final confirmation.




Installing Synology NAS on Virtual Machine

Always starts with virtual machine

Let’s us start with installing the Disk Station on virtual machine, before we install it on real hardware. A standard 4-bay Synology NAS could cost more than USD 450 alone, without any hard drive installed. So the idea here is to re-used some of the old PC hardware, and then install the Synology Disk Station on it.

But before we go for a real one, probably the best idea now is to install the Synology Disk Station on a virtual machine. Try it out first before you spend hundred dollars on new hardware.


The first step is to select a simple and good virtual machine for the installation. So i decided to pick Virtual Box from Oracle. Simple, easy to configure and use less memory than other virtual machine.

Secondly, we must select the correct version of bootable XPEnology, a compatible Synology Disk Station version and download proper tools for installation.

Virtual Box Version: 5.0.14

XPEnology Bootable version: XPEnoboot_DS3615xs_5.1-5055.1.iso

Disk Station version: DSM_DS3615xs_5055.pat

Surveillance Station version: SurveillanceStation-bromolow-7.0-3762.spk


First step, install the virtual box 5.0.14 version, other version is acceptable too.



Second step, create a virtual machine for SynologyNAS


Choose Linux Operating System, Synology Disk Station basically developed under Linux Platform. and pick Linux 2.4 (64 bit) version. I noticed that the XPEnology bootable won’t work if you pick 32-bit linux version. Some PC might not support 64-bit, You can try to enable the virtualization support in BIOS see if it helps.


Select at least 2GB ram for Synology Disk Station installation on a virtual machine.


Create a virtual machine hard disk, allocate at least 20GB for it.



Here is the final result.


Configure the Synology Disk Station virtual machine

Go to settings, and configure the network adapter. Change the network adapter type to “Bridge” instead of NAT”, This step will make your Synology Disk Station connect directly to your router.



Choose a virtual optical disk file on the storage tab. pick the XPEnoboot_DS3615xs_5.1-5055.1.iso


Start the virtual machine, XPEnoboot will load for a few minute, If you can see the login screen means all the steps are correct.


From your another PC, access, this page will help you to look for new DiskStation within your network.


Start setting up the Disk Station.


Choose a manual installation, and then pick the DiskStation file DSM_DS3615xs_5055.pat from your local PC that you downloaded earlier.




will need around 10-20 minutes for Synology DiskStation installation.


If you can’t see find your Synology DiskStation from the, then you can try to look for the IP address on your router DHCP device list.

You can manually access the Synology DiskStation with this URL on port 5000,


Setting up user account

After the installation completed, the next important step is to setup an admin user account.



Change the DSM Update Settings to “Download DSM updates but let me choose whether to install them”, don’t pick the automatically option. Because we are going to hack the Surveillance Station later, Synology update will override everything if we picked that.


After completed the user account, you can login to the DiskStation, you would see the desktop.


You can try to login using the account that you created earlier on the linux command prompt.


Done. That’s all.