[SOLVED] Xiaomi Xiao Yi Ant HOME – This camera can only be used in China (

(please link to this page, but do not copy the content to other sites)

Xiaomi Xiao Yi Ant HOME

Recently I bought a Xiaomi Xiao Yi (IP) camera (also known as Yi Home), Chinese version. The camera looks nice, picture quality is ok, and worked fine on my local Wifi.

However I was unfortunate enough to receive and test the camera when Xiaomi decided to deny access from the iOS app to the camera outside of China (error 5400). I was hoping a firmware upgrade would solve this issue so I have upgraded from to Now my camera was useless. The camera would say “This camera can only be used in China” and would shut down.

This was the tipping point when I have decided I will investigate what’s happening with this camera and what can be done to make it functional again. At the time of writing the remote access (error 5400) has been solved by the provider so no additional action is required. (I tried to convert a CN camera to international one by changing the serial of the device, but couldn’t test from a European or US IP and probably I would have needed access to the system files  of a functional international camera to compare)

So the remaining issue was the camera shutdown with the latest firmware (tested with and

If you do a search there are heaps of websites describing how you can gain access to the camera and ultimately enable remote access via telnet. I won’t get into those details, you can check some of websites I listed below.

Once you logged into the camera via telnet the fun part begins.  The camera is running a Linux version.

# uname -a
Linux (none) 3.0.8 #1 Wed Apr 30 16:56:49 CST 2014 armv5tejl GNU/Linux

This is familiar territory, we can check what processes are running, log files, the /home directory and we can mess around with the system. I have to mention this is for educational purposes only and you can easily brick your camera.

Back to the “This camera can only be used in China” message. So if you look carefully in the log file “/tmp/log.txt” at some point you will see the forbidden.g726 sound being played and not long before that there is an API call to the mothership to check  if you device is allowed to run on not. With this call the camera sends your IP automatically so there is not much to be done about that.

[/home/cloud][4/29/22:51:48:52]: req_info=https://api.xiaoyi.com/v4/ipc/check_did?hmac=XXXXXXXXXXXXXXX%3D&seq=9

Now the nice thing about this is that we can fake the response from the server in many different ways.

1. You set up a proxy to be used and the proxy will change the reply from “allow”: false to true.  The certificate on the camera can be changed so you can set up a valid proxy for https request for a man in the middle attack. (/home/ca.crt). Possible but too complicated and you need a proxy running.

2. You can set up a fake response on the camera via the local http server and redirect (see point 3 😉 ) the check_did call to this file. (/home/web/response.json -> {“allow”:true,”code”:”20000″}). Again possible but not really needed.

3. And finally we got to the solution. In the log files we saw that /home/cloud is responsible to check the permission for our device. This is a binary file and we can check what calls are made from this file:

# strings /home/cloud | grep http
http://log.xiaoyi.com/info.gif?p=home_v1&sysVersion=%s&mac=(lots' of other details)
%s -c 311 -url https://api.xiaoyi.cox/v4/ipc/check_did -uid %s -keySec %s
%s -c 139 -keySec %s -url https://api.xiaoyi.com/v4/ipc/reset -uid %s -version %s -mac %s
%s -c 138 -key %s -keySec %s -url https://api.xiaoyi.com/v4/ipc/on_line -uid %s 
-version %s -mac %s -packetloss %d -p2pconnect %d -p2pconnect_success %d -tfstat %d
%s -c 136 -url http://api.xiaoyi.com/v2/ipc/sync_time
(yes, the camera logs and sends everything back to xiaomi)

Now if we change the call check_did to our local file mentioned above that would make /home/cloud happy and the camera will run. Luckily /home/cloud will lock your device just if the remote server replied with “allow”: false. Now all we need to do is to block that call or break/invalidate that url (ie. dns error).


# ps | grep /home/watch_process | grep -v "grep" | awk '{print $1}' | xargs kill -9
# ps | grep /home/cloud | grep -v "grep" | awk '{print $1}' | xargs kill -9
# sed -i  's|api.xiaoyi.com/v4/ipc/check_did|api.xiaoyi.cox/v4/ipc/check_did|g' /home/cloud
# reboot

First commands will kill watch_process so it doesn’t restart other processes.
Second command will stop the cloud service, so we can change the file.
The third one will change the text in the binary file. It will change com to cox which will invalidate the url and will not return the allow: false message anymore.

Once the camera reboots it will be functional just as before you upgraded to the latest firmware. In case anything goes wrong just install a fresh, unmodified firmware.

Drop me a line if this worked for you!

Update: Read the comments for CNxx160622 hardware with FW or

Serial port connection to the camera explained in this video (credit to fedeant): and problem solved by JonesChi:

I wrote a scrip to make the camera work again outside China.
Download the file, and decompress it to root of SD card.

If your device’s FW is, you just need to insert the SD card into your camera, and it will hack your device automatically, when it finished, the camera will reboot automatically, then your camera is free.

If your device’s FW is, you need to connect your camera via serial port to get console, then insert the SD card into your camera, when you see the command prompt, just type “/tmp/sd/hack_yi.sh”, then your camera is free.


Some websites to check to see how you can enable the remote access (telnet):



552 Responses to [SOLVED] Xiaomi Xiao Yi Ant HOME – This camera can only be used in China (

  1. Sabi says:

    Hi I ordered this camera recently (Apr 28) from ali express. When i received the camera I was told by seller to downgrade the firmware and i did that but it never connects and always fails at the QR scanning step and tell me to reset it. So the only time i was able to have it work was using the latest firmware ( and chinese app (not updated) but it connects for a second and then i get the message saying this camera can only be used in China. Seems like you have the solution but instructions arent clear can you please tell me how to use Telnet to modify the camera code? or how you got it to work? According to the supplier i am doomed and i wont get a refund. Thanks looking forward to your reply.

    • DIY says:

      In order to get telnet access you can follow the instructions from here:

      In a nutshell:
      Connect the memory card to a computer via a card reader
      Create a directory named “test” on the sdcard root
      Edit file X:\test\equip_test.sh with notepad or your favorite text editor.
      Add this content:

      # Telnet
      if [ ! -f "/etc/init.d/S88telnet" ]; then
      echo "#!/bin/sh" > /etc/init.d/S88telnet
      echo "telnetd &" >> /etc/init.d/S88telnet
      chmod 755 /etc/init.d/S88telnet
      dr=`dirname $0`
      # fix bootcycle
      mv $dr/equip_test.sh $dr/equip_test.sh.moved

      Safetly detach sdcard, put it into your camera, it will reboot twice.

      The login details are:
      User: root
      Password: 1234qwer

      Once you have access you can follow the steps in the SOLUTION section on this page.

      • 0ss0 says:

        The problem is that with the last Q firmware, the camera seems to completely ignore any script.

      • Hao says:

        Is there an easy way to set the time so it can adjust automatically based on daylight saving time or not?

      • Kevin says:

        Is there a way to altogether block it from checking for a firmware update? In the app it will randomly pop up and say there is a firmware update available and if you accidentally click the button it screws everything up and goes back to Chinese and has to be flashed all over again. Im running Chinese camera flashed with a custom English and also cannot seem to get the time stamp working properly. Is there a unix command to change the time when logged in through telnet or what? Ive tried some other fixes online but had no luck getting the time right.

    • werew01f says:

      I have the same issue. when I downgrade my Yi camera firmware, it will have failure connecting to my WIFI, having the error “Wi-Fi password invalid”. But when I install the latest firmware, it will connect to my Wifi but have the error “Not to be use outside china”

      Previous firmware that can enable Telnet, cannot connect to wifi. The latest firmware that can connect to wifi not able to enable the Telnet.

      Hope someone can help to advise.

      • DIY says:

        Use the previous firmware to enable telnet. Than from the mobile app upgrade the firmware on your camera. Telnet access should be still active.
        If you wifi is not working try to reset the camera and connect to wifi again.

      • john says:

        same as me. now new lot of can it have problem WiFi password error for firmware 1.8.5

    • WonderMan says:

      @DIY Thanks for the work. Have you tested this procedure with the latest firmware I tried both upgrading from the app or download it to the sd card then reset the cam. In both cases when I got the prompt “cannot be used outside China”, the camera shut off automatically and telnet got rejected. How to get telnet to work to do the trick?

      • Etienne1968 says:

        @WonderMan I just solved my Yi Ants on version (latest) with this description and it works, after it said that the camera can be only used in China I still was bale to telnet into it as described and was able to execute the commands and now it is finally working for me, only still struggeling with RTSP…

        @DIY thanks I can confirm it is also working in software version!

    • arcy says:

      Dear, does your camera work now ? i have one since a year and working flawlessly.

  2. jloong says:

    When I typed in the command

    sed -i ‘s|https://api.xiaoyi.com/v4/ipc/check_did|https://api.xiaoyi.cox/v4/ipc/check_did|g’

    It complains “sed -i” missing argument

  3. Bart says:

    Hi,I have a CN version but i wrote to contact support in Poland and They send me a file – home and home.bin of international version for YI. I try to upgrade firmware to use with Google Play version of app but not work. Is there a solution? The app from GP is much better – some stuff from motion detection etc.

    • DIY says:

      If the camera is the CN version the international firmware will not work. However MiHome iOS app is in english so there is no drama using that. The camera itself has motion detection, so it does not matter what app you are using on your phone. For now, until someone manages to convert a CN version to international one, stick to the CN firmware.

      • Bart says:

        Ok my works with CN firmware and CN app. But International version with Goggle Play app have a motion detection section to mark and have a Sensivity Level – https://www.youtube.com/watch?v=HNhWKRzhWes

        • Daniel-from-Germany says:

          I dont understand why the CN version app (not from google play store) is different from the xiaomi/Mi store version.

          Why is it not possible to manipulate the eu/international Firmware to run on a CN device?

          Greetings by Daniel-from-Germany

          • Ole says:

            Exactly my thought also! Someone should be able to reverse engineer that part of the code….just like with the CN version of the Xiaomi mobile phones to run Global ROM.

            Anyone up for the challenge? 🙂

  4. Tom says:

    Excellent work ! It works perfectly with the new firmware.
    At the beginning, I have difficulty to enter the solution command because the third line is too long and not able to read the end part of the command.

    I have to do a cut and paste the whole solution section to a text editor in order to see the complete command.

    Thanks a lot for sharing !!

  5. Sam Wong says:

    I have put the sd card back to the Yi camera and power on it. But the camera stuck at orange light.
    It does not reboot twice as mentioned above. What step did i miss?

    • DIY says:

      If it’s flashing you need to connect to your wifi using the mobile app.

      • Jerry says:

        Hi I have a similar problem, the orange light is stuck on

        after i flash it, the light will flash orange a few times for a few minutes
        after i assume the firmware is updated, it blinks orange very fast for a second then stays orange

        AT no point in the process does it make any sound. Pressing the reset button does nothing now

        All this device ever does is stay orange…

  6. Deltaflyer says:

    It’s work!!! Thank you I am using

  7. Deltaflyer says:

    However, Lost the RTSP Support! I can only telnet to it!
    Any fix?

    • DIY says:

      I haven’t seen RTSP to be released for the latest version yet. If you need rtsp stick to an older version.

      • Deltaflyer says:

        However, I have tried all older version. All of them not support outside China.
        I will stick with current version better that it is still working

    • SKLCH says:

      i have found a way to add RTSP to firmware. For that i needed FTP and telnet access to the yi camera. In my case both FTP and telnet were enabled after updating my yi camera. what i did was the following:

      1 download (RTSP enable script) from http://xiaoyi.querex.be/
      2 unpack to your harddisk
      3 open an FTP connection to your Yi camera (username root, no pass)
      4 copy rtspsvrM (from to /home/rtspsvr
      5 open a telnet connection to your Yi (username: root, password: 1234qwer)
      6 in the telnet session type (without the “#”):
      # chmod 0775 /home/rtspsvr
      # chown 1001:1001 /home/rtspsvr
      # reboot

      wait about a minute for the Yi camera to boot and now open rtsp:// with VLC on your PC

      • SKLCH says:

        You should of course change in the URL to the correct IP address of your own Yi camera.

        • Ole says:

          Hi Skelch

          Thanks for the clear instructions – tried to follow it but cannot open a RTSP stream from my camera (CN version, fw
          I placed the rtspsvrM file in the HOME directory and renamed to “rtspsvr”, and I can see the correct rights and owner has been set.
          Any ideas?


      • Alexis says:

        Gracias a mi me funciono.-

  8. LuHash says:

    Hello there, the trick provided enabled me to use the cam on the latest fw, however, it seems that the camera losts conectivity with cloud after few minutes after booting up 🙁
    Did anyone encounter this on the Any solution?

    • DIY says:

      I am using the latest firmware ( No issues here, can access the camera via the cloud.

    • Travis says: Update — I followed the instructions, rolled back to a previous version ( from http://xiaoyi.querex.be, along with the RTSP/Telnet script), let it flash, then re-flashed the official firmware (which is the only one that seems to allow connection to wifi). Immediately, telnet was there. I logged in and ran the commands in THE SOLUTION, which ultimately modified the URL check service. All is working… I will never get those past few hours of my life back, but at least this input may help someone else.


  9. dokmai says:

    It’s works!. I’m version. Big Thanks!

  10. Aji Purwoseputro says:

    Your sed command has double space after sed – i. After deleted extra space, I can execute the command. Thanks for the guide 🙂

    Btw, my Yi ant only available in same Wifi network. If I remotely view via Yi Home android app, I cannot connect (only shows 5%), the workaround is to use MI Home instead of Yi Home.

    • Dokmai says:

      I also have this issue after upgrade my internet to VDSL, and at the same time, I install new mi home to v3.9 Now, I can load live view only when I reset the camera and setup a new connection. Other than that, it stucks at 5% every time.

  11. Edward says:

    I have no idea how to telnet this camera. Could someone tell me how to do it?

  12. flashkaisel says:

    Many Thanks for your work, work perfectly.

  13. Van Thu says:

    It’s nice if you could make this for Yi smart camera 2, I just update OTA then it’s not outside China. Thank you.

  14. Rob says:

    These instructions worked perfectly!
    Out of my 5 Xiaoyi cameras, two were China models and once upgrading the the current latest firmware ( spoke the dreaded China only message…

    Following the instructions above worked perfectly – thanks !

  15. derekk says:

    thanks for the guide! It save me! I ‘m on firmware and i’ve got “… only used within china”: with “the solution” now all works, even the notification popup (it didn’t work on previous firmware!)
    Only one thing: it’s possible setup motion detection sensibility? It only works sometimes and I don’t understand why

  16. Benoit says:

    Ok I found the IP adress but cannot connect with telnet.
    When I plug the sd card the cam stays with yellow led lit and doesn’t reboot twice.
    If someone could help me.

  17. Tomás says:

    Hi! I have the same problem, but with a Yi Home Camera 2 1080p,the new model.

    I event can’t pair it the first time, and I has no telnet access. I Managed the cam connect to the wifi, blue fixed light,but the phone app timeout.

    Some ideas

  18. krikri says:


    I have find a solution, i manage to pair my camera in 1.8.6B which it told me cannot to be use outside china and it was impossible to downgrade due to the newer hardware.

    So, try to upgrade with this upgrade and solve yous problems : https://bisschopst.stackstorage.com/index.php/s/TuyR1JO8qBoNQpB/download?path=%2F1.8.6.1B&files=%5B%221861B.01.zip%22%5D

    Let’s it 😉

  19. Benoit says:

    Hi Krikri!

    Great! It works fine! I can connect to the cam with the latest revision of the app.

    Thank you very much.

  20. flashkaisel says:

    You could run the international firmware in a camera of China ?, could you investigating?

  21. Alex says:

    Is there like a pre-cracked firmware patch I could just apply. I have no experience with linux.

    • Gustavo says:

      That’s it, Alex. From 4PDA.ru


      Just update to this firmware and you’re go to go… it’s for Xiaomi Yi 720p Night mode…

      • FABIO RIEGER says:

        Gustavo….is it just do upgrade with this version?

        • Gustavo says:

          Yes, this is a pre patched version, here i just installed and used with no problem. Pairing, no “within china”, etc

          • Jim says:

            Gus is there a later version? is out. Wondering if there’s a patched version of this for download

          • Gustavo says:

            Nope, 4PDA.RU is where this patched version came, nothing new until now…

          • toto says:

            this isn’t a pre patched version, because only M+ firmwares versions need to be patched, the one listed is inferior !

      • Alan Chong says:

        Thank you Gustavo!

        I’ve been struggling the whole day, trying different methods, and only yours works, and works like a charm! It’s fantastic to hear, after updating to your firmware, Russian music playing during boot. lol.

        FYI to anyone interested, I’m outside China, and ordered my Xiaomi Yi 720p Night mode directly from an authorised Xiaomi Reseller in China. It’s probably the latest hardware, and the stock firmware was Yes, the s/n has CN in it.

        Thanks again for sharing this wonderful piece of work!

        • Larry says:


          Can you scan the QR code on the back of camera? What is the latest 6 digits on the SN? Is it between Nov, 2015 and April, 2016? I think the latest HW version after April 2016 would not allow to downgrade the firmware.

      • Larry says:


        Do you have access to 4pda.ru? Can you help to download and share the following file?


  22. Alex says:

    I tried krikri home file and it says latest but do get promoted to update still,even though camera setting say latest. Hope this gets fully cracked. Anyway to adjust detection sensitivity?

  23. chen says:

    How to get into telnet? can someone give complete tutorial?

    • flashkaisel says:

      Go to command console in windows, terminal in Linux/Mac os, and write: telnet 192.168.x.x (ip camera), then user: root, password: 1234qwer

  24. paQiu says:

    How about yi small ants home camera 2 aka 1080p?!
    i’ve got same problem after upgrade but this tutrial didn’t solve my problem..
    camera still said “only can use with in China”..

    help me please..!!

    Note: before updated pairing succeed and monitoring runs well..

    thanks before

    • Vic says:

      I had the same problem.
      This is the solution, you have to downgrade, lower this firmware
      copy it on sd card (no more than 32gb) format in fat32, copy the file you downloaded to the root of the memory and rename the file to (home.bin)
      turn on the camera, reset the camera, turn it off, insert and turn on the camera memora

      You will start to read the memory and takes about a minute.

      And then just register it normally should work.


      • Wilko says:

        Dear Vic

        Thanks it works

        Greets Wilko

      • akshay says:

        Hi Vic,

        I followed your instructions and upgraded/downgraded firmware. I don’t know on which firmware i was earlier because I would always get fail to load error. However, after following above instructions and pairing process I am still getting ‘Fail to Load’ error. But this time i noticed after removing my sd card that even though i got the error camera was recording. Please suggest anyway to successfully pair the devices. Could it be because I am using an older version( of the chinese app?

      • Robbert says:

        The newest model ignores the home.bin. It ignores it like it would ignore an international firmware. Maybe they blocked downgrading now? Series 2 camera (1080p)

        • Jack Wong says:

          I am in the same boat as you now… I really don’t understand why the international version has to double the price from China… but not the 4k action camera.

  25. Silnik777 says:

    How you change serial number in xiaomi smart home camera?

    • DIY says:

      It is possible, but just updating the serial will not make the camera international. Other information needs to be overwritten as well. (I did not had time to figure it out).

      • Robert Skiba says:

        Hi DIY,

        did you figure out how to change the serial number? Just can’T make the cameras work in germany. Need to change it to the internation version, i guess.

        But i have one international camera in use that works perfectly, so if you like to, you can have telnet access to it if you write me an email.

        • Peter says:

          There is a way to update the serial number which I managed to do but there were other files that had to be updated as well. Since I did not had an international version I could not copy over the files. Basically all files on the Chinese version could be overwritten and then flash the serial number.

  26. Jogger says:

    Im on for xiaomi 720P nightvision.
    How do you disable update notification?
    I once click update by mistake.

  27. ATH says:

    I can confirm that Firmware works fine with the telnet mod.

    • ATH says:

      Oh, and I updated via the IOS app from “K” to “C”.
      Right after the update I got the message: This camera is only for China …
      Just follow the steps below and your cam will soon work on newest firmware.

      1. Type “terminal” in Spotlight search window (OSX only, ie Mac).
      2. Type: “telnet 192.168.1.xx” (your Ants cam IP, check the IP in your router)
      3. Login: “root”
      4. Password: “qwer123”
      5. Type these commands from the top of this page, one by one:
      # ps | grep /home/watch_process | grep -v “grep” | awk ‘{print $1}’ | xargs kill -9
      # ps | grep /home/cloud | grep -v “grep” | awk ‘{print $1}’ | xargs kill -9
      # sed -i ‘s|api.xiaoyi.com/v4/ipc/check_did|api.xiaoyi.cox/v4/ipc/check_did|g’ /home/cloud
      # reboot
      6. Now you should be up and running 🙂

      • WonderMan says:

        I also upgraded it to the latest firmware via the android app. But I can no longer telnet after that and got this error:

        telnet: Unable to connect to remote host

        Any help is appreciated.

        • ATH says:

          Double check that the file name “equip_test.sh” is not changed in the test folder on your microSDHC card.

          The file name will change if the file has been “executed” in the camera to:

          Then you must rename it back to: equip_test.sh (otheriwse it will not run the next time you reboot the camera).

          It could also be that it is not enough to reboot the camera (toggle power). Maybe you have to reset camera by pressing a pin for 8-10 seconds on the reset button.

          Try it out and report back 😉

          • WonderMan says:

            Great thanks. Yes that was the problem. After renaming the file back to equip_test.sh, I was able to telnet then changed /home/cloud and got it to work.

          • W says:

            Please advice…
            no good in linux..

            How to chk the time zone to GMT+8 ?.

            # date
            Sat Jul 2 20:42:24 GMT 2016 <– camera show this time..by right is 01:42:xx.
            # date -u
            Sun Jul 3 01:42:30 UTC 2016

      • ATH says:

        Password may also be: “1234qwer”
        Try it!

  28. ATH says:

    Make sure to download and follow the instructions here to enable telnet, FTP, RTSP and HTTP:


    RTSP will only work for firmware versions, unless you modify test/equip_test.sh (with a text editor). Edit lines 50,53 and 57 to enable rtsp on firmware:

    versionLetter=`sed -n ‘s/version=\(.\)_.*/\1/p’ /home/version` #line 50, changed to

    case $versionLetter in
    A|B|M|N) file=’M’ #line 53, added A, B
    J|K|L) file=’K’
    E|F|H|I) file=’I’ #line57, removed B
    *) file=’None’

    You can also choose to enable RTSP with a command after you have gained telnet access (do not type #):
    # cp /tmp/hd1/test/rtspsvrM /home/rtspsvr

    • WonderMan says:

      Did you get it to work with For me, the rtspsvr process died whenever I tried to access the rtsp:// stream. Here’s the log:

      # /home/rtspsvr

      [5754534c][RTSP] main: renice -n -1 -p 5403 ok!
      _MediaDataGetNewFrame: ch 0 fail
      _MediaDataGetNewFrame: ch 0 fail
      _MediaDataGetNewFrame: ch 0 fail

      [57545361][RTSP] handleCmd_DESCRIBE: get new sps fail _MediaDataGetNewFrame: ch 0 fail
      _MediaDataGetNewFrame: ch 0 fail
      [57545368][RTSP] DispatchPrintMsg: Print msg length is -4=<0
      terminate called after throwing an instance of 'std::bad_alloc'
      what(): std::bad_alloc
      _MediaDataGetNewFrame: ch 0 fail

      • ATH says:

        After I applied this telnet command:
        # cp /tmp/hd1/test/rtspsvrM /home/rtspsvr

        …I rebooted the camera and then it worked fine. (Have only tried once though).

    • Gustavo says:

      Hi ATH,

      I must confess that i didn´t understand how you make RTSP works with I installed that last firmware automatically and i´m able to do telnet for it. But i couldn´t find anything about RTSP. There is nothing at /home/rt*.

      As far as i know, there is no 1.8.6.* firware with RTSP capable, write? What am i doing wrong?



  29. Tom says:


    I have purchased an international version (sorry not your original intent of your posting but I need some advice if allow me).

    After I did the setup, the camera said “WiFi is connected” and after 30 seconds it prompted again “QR code is invalid, please reset the camera”.

    I checked the log file get following error:
    req_info=https://api.us.xiaoyi.com/v4/ipc/on_line?hmac=(long text…)%3D&seq=9&uid=(…long text)&password=(…long text)&version={“p2p_encrypt”:”true”}
    [/home/cloud][6/5/20:23:58:177]: SUCCESS! cloud_send_server_connect_msg snd OK!
    [/home/cloud][6/5/20:23:58:180]: now do bindkey
    [/home/cloud][6/5/20:23:58:180]: cmd=/home/cloudAPI -c 137 -key 6OGIJaw6gTSCh05D -keySec ViJlpFsKrbQ4f45V -url https://api.us.xiaoyi.com/v4/ipc/qr_bind -uid 6ZFBMGPRK1H4E4GL111A
    [/home/cloud][6/5/20:23:59:448]: req_info=https://api.us.xiaoyi.com/v4/ipc/qr_bind?hmac=xwqmzvcQDjf6jOKAuF%2B8UDotYcU%3D&seq=9&uid=(…long text)&bindkey=6OGIJaw6gTSCh05D&timestamp=1465158238
    {“code”:”20219″}curl_easy_perform() failed: Couldn’t resolve host name

    This is beyond topic … hope you can drop some comments.
    Otherwise need to return the hardware.

  30. Tom says:

    Thanks WonderMan !

    I think you are right on the issue.

    My problem is that I have already setup few China version camera with my cell phone using the Chinese APP and firmware.

    So when I got the international version hardware, I install the Mi Home (instead of Yi Home) APP using a separate new Mi account in the setup. However, the new camera keep get the error.

    I have even tried uninstalling the Chinese version APP from my cell phone…hope this will remove any setup which could upset the new hardware. This does not help too.

    The last try is to get another Android device to test the setup. If it is still having the problem, I would suspect they even doing some checking on your router (feel crazy of having such thought).

    Will report back on the further testing.

    Thanks again !

    • Tom says:

      Finally, I got the new US version camera working with the N.A. version APP work.

      I have a Chinese version hardware and Chinese version APP working happily with my cell phone.
      Then I bought a second one of US hardware version and the camera refusing the connection to server
      after successfully connected to the WiFi.

      I have tried to uninstalled the Chinese APP and replace with the US APP from Google play but the
      symptom persists. I guess because the old configuration which is point to the Beijing server
      is remaining even after the uninstall. Also, I need both China server and US server to work for
      two different hardware.

      I come up the idea of creating a second user account in the cell phone for the US APP. Also, I need a new Yi Home account as well for the North America Yi Home server to login.

      Now the new camera is working happily with the new N.A. APP.

      Therefore, in order to use mixed hardware, you have to switch between two user account in your
      cell phone – each account using different server.

      Hope this experience can help someone of same situation.

      • ATH says:

        So you can actually use a CN camera with a US app?
        If that is the case we should be able to use CN cameras without having to download chinese version of YI home or MI home apps.

        • Tom says:

          No, CN camera has to use CN APP in the cell phone.

          What I did is install CN APP in one Android account and install US APP in another Android account in order to go around the conflicts of different setup.

          The hardware for CN market has to use the CN APP.

      • imran says:

        can you explain how you do it, i have same problem. one camera is running chinese app working fine… new one is international, tried to use another android account but situation is dame.. invalid qr code…

        • TIm says:

          I still have the chinese app and it works okay along with the north american app together. The chinese app works with my old 720p camera and the 1080p chinese (second gen). The 1080p camera gen 2 stopped working as of December 8th. The only trick is that the chinese app I have the MI-Login and I chose China as the region. I also have the dome camera, but that works only with the mi-app in the google play, along with the old 720p chinese camera (but 1080p can’t be paired here with the mi-app).
          To summarize it all:
          Use the Chinese app with the chinese camera and mi-login.
          Use the google play store app with the international version and the YI login.

  31. ATH says:

    Does anybody know how to get rid of the YI watermark logo (bottom left corner of video feed)?

  32. Lee says:

    Can someone post a link for working cn app for 720pxiaomiip camera.. For ios and androind.. Ineedit badly.. Thank you

    Till now i cant login error network plrase restart,

    Any ody have same loginissue on cn apps what version?

  33. Delarmo says:


    well done with your job,

    but can say we can i change serial number?

  34. julius says:

    I’m having no luck getting any firmware to work. I keep getting the ‘ready to connect’ and then ‘wifi password failed’ messages in english.

    I’m currently on as stated in Version file in a log*.tar.gz on the root of my SD card.

    What’s going wrong? Can I set the wifi passwords via a script?

  35. OSR says:

    I’m also unable to use my new yi camera in India.

    1. I tried pairing with mi home app (my mi account logged in), idk whether firmware got upgraded or not, but i heard in english, “cannot be used outside china”.

    2. I downloaded a 7.5 MB “Home” file, from yandex site to microsd card. (read some blog to fix this problem).

    3. Tried resetting with pin from behind camera, tried pairing with mi home app.
    orange light flashing >> scan QR code >> blue flashing, 99% pairing on app >> unable to connect.

    I’m a newbie, idk telnet, rtsp etc…

    Should i manually flash some russian pre-cracked firmware, mentioned on this page, if yes >> how to do it manually ?

    If no,
    Kindly help me how to check installed firmware version, without pairing the camera, & help me in using this camera in India !

    • julius says:

      Can you check to see if camera is on your local network and has been assigned an IP yet?

      If so then you should be able to telnet into it with `telnet 192.168.*.*` and using the login details user: root pw: 1234qwer

      Once you’ve successfully logged in to the camera via telnet, run `cat /home/version’ — I think that’s the correct file — and you’ll get a few lines of text including the version of firmware you’re running.

  36. bubuski says:

    Worked for me. Thank you

    I have two Cameras with the latest firmware. The first camera connects without issues…the second kept giving the message “This camera can only be used in China”. I was able to use your steps to telnet into the 2nd camera and fix it. Just in case, I applied thesame fix to the 1st Camera.

  37. Bosco jacint says:

    1. Yi Home app (international)
    2. FW version:
    3. telnet and ftp is working RSTP is no working
    3.0 I followed the instructions to change .com to .con in that string
    4. camera connects to wifi (solid blue light) but pairing fails on app (the camera keeps says something in chinese i guess its says use the chinese app)
    5. I cannot install the chinese app (after i download the apk it says app not installed, yes it set the “install from other source” enabled)
    6. i gathered the logs from /tmp/log.txt, it first shows .cox when connecting to cloud then after sometime it again shows.com

    The logs are below (pls bear with my ignorance of how to upload a file)
    … removed .. too long ….

    • DIY says:

      [/home/cloud][6/11/14:34:47:850]: req_info=https://api.xiaoyi.com/v4/tnp/on_line?hmac=xxxxxxxxxxxxxx%3D&seq=9&uid=yyyyyyyyyyyyyyyy&version= {“data”:{“License”:””,”InitString”:””,”DID”:””},”code”:”20000″}

      Your camera is online and works fine. Use the MiHome app to connect.
      International version will not connect to the Chinese version.

  38. Wasantha Weerawarna says:


    I am trying to get telnet access cos none of the other options helped me in anyway to make this camera work outside China. But when i tried the given “equip_test.sh” file stored in a micros sd with any firmware, (even 1.8.5K) soon after power in connected, it stays with orange light steady without doing anything. with this firmware, i can follow the pairing process untill i gives me wifi password error.

    Can someone help me with a guide/resources in getting access to the camera via telnet/ssh. appreciate very much. have 3 cameras, none works with the original firmware that came with.

    • Gustavo says:

      I would recommend you do this…
      First format your micro sd (look the parameters you must set, fat32, etc) then put the home from (http://xiaoyi.querex.be/, reset the camera (hold at least 8-10 sec) then let it go (all without the card), when it’s done, turn off and put the prepared micro sd… turn on and let it update (downgrade) to this firmware… then access with the original CN version of yi home (from here: http://app.mi.com/detail/75646), let it go until it seems to turn off… then look at Fing (android) and verify if the camera has an ip address, try to telnet… if it’s ok you can update to latest version (from micro sd, not over the air) and telnet will still be there but when it updates it will shout “not used within China” and you can telnet and use the solution to let it work again… ok? To much info? Confused? Sorry, it’s really easier than it seems, i’ve noticed that when you downgrade to you can connect to wifi and telnet or even update to this russian patched firmware… you may try and be sucessful, hope you find peace.

  39. FABIO RIEGER says:

    Did nobody make the last version patched version of this for download?

  40. Marius says:

    hello! I just bought an yi smart camera CN version, manufactured on 08.04.2016. What can I do to make it work? I have tried to downgrade.. I seeno image on my phone. I have a message “Fail to connect camera, please retry later.(-10). I don’t understand telnet term, or how to use it. I just know is aolder solution to acces the internet.. Please help me. Thanks!

  41. ckng says:

    its work fine on my china version! updated to latest firmware!

    Many thanks for sharing this method!

  42. Sandy says:

    Thanks Gustavo the firmware From 4PDA.ru it’s working, my camera update to CN and after update camera turn off and keep saying this camera only worked in china, I try to downgrade firmware from and it’s not working and try L,M,N too but this firmware work, many thanks..


    Just update to this firmware and you’re go to go… it’s for Xiaomi Yi 720p Night mode…

  43. Jogger says:

    Is there any way to disable firmware update check ?

  44. Alex says:

    Is there a prepackaged update for version C like krikri posted that worked great for me.

  45. GonApa says:

    Just a doubt. It is possible to change china firm to a International firm??? I want to use the YiHome app (now I use MIHome) because you can update.
    I download de international firm here: http://www.xiaoyi.com/home/firmware/index_us.html?version=
    But I cannot change the firmware.
    Now Chinese people star to sell YIHome cameras with international firm.
    Chinese people are the Kings copying things and as a hacker and then they sell cameras that we cannot change the firm.

    • Daniel-from-Germany says:

      I am angry too. I buy the China app in an early moment to support xiaomi and now I see this Video that Google play store App and mi-app has different options.

      See here:

      Is it not possible to change the international Firmware to run on a chinese cam? Is the hardware the same or not?

      Greetings by Daniel-from-Germany

  46. Str8 says:

    Hi…i am running yi home app 2.10 with firmware 1851… its all working fine. Should i update the app of firmware? If so, please tell me why… and whats the difference.

  47. Wegig says:

    I’m using version Camera CN
    It used its motion sensor is very sensitive, even bat through just a warning.
    But now insensitive, even there are some moments that are missed, are not recorded.
    I try to update to version still does not solve the problem.
    Is there a solution to this problem? For a more sensitive detection mention again?

  48. Wegig says:

    I’m using version
    It used its motion sensor is very sensitive, even bat through just a warning.
    But now insensitive, even there are some moments that are missed, are not recorded.
    I try to update to version still does not solve the problem.
    Is there a solution to this problem?
    For a more sensitive detection mention again?

    • elcapitan says:

      I’m using the on chinese camera, and agree there are momvements not recorded. Would be great if can set the sensitiviy level and also hide zones.

  49. Bozz says:

    This time I will share my experience using xiaoyi cam (china version). After I made a few days, the camera is running normally. Before pop up firmware update and then appear upgrade notifications. and involuntarily I press the firmware upgrade. Finally, my camera can not be used. After searching in many forums, I found a way.

    Please note :

    1. Turn off the camera YI ant release sd card
    2. Restart the camera and press the reset button on the back
    3. Insert sd card to the computer and format with firmware version FAT32
    4. Download type china version https://drive.google.com/file/d/0B32Vxpi0vPLCZkdXcVA1QmpBRDQ/view
    5. Then extract and copy the files to the sd card that already in format
    6. Shut down camera and insert the sd card that is in the file contents
    7. Turn on camera and wait 5 minutes, camera flashes yellow then amber and finally blinks amber back
    8. Then came the song and language china
    9. Camera completed in downgrade and connect with your app as usual YI

  50. changhui says:

    I notice there are two patch version of firmware by 4pda.ru, one is date 22.03.2016 another is 14.04.2016. Anyone know what the different between this two patched firmware? I assume latest date is better?

  51. fyl says:

    This works to get me to latest version.

    1. flash this first using microsd (
    2. While this is not the latest but will also give you telnet access.
    3. Then update firmware from Mi home to latest
    4. After reboot it will say not working in china but you still have telnet access.
    5. Telnet to it root / 1234qwer
    6. Then issue the following commands

    # ps | grep /home/watch_process | grep -v “grep” | awk ‘{print $1}’ | xargs kill -9
    # ps | grep /home/cloud | grep -v “grep” | awk ‘{print $1}’ | xargs kill -9
    # sed -i ‘s|api.xiaoyi.com/v4/ipc/check_did|api.xiaoyi.cox/v4/ipc/check_did|g’ /home/cloud
    # reboot

  52. Phil says:

    On Android I have just updated to the latest app and flashed the latest firmware and now my Chinese Yi Ant works without any modification required.

  53. Gustavo says:

    I’ve sucessfuly updated two new chinese Yi Ants with this and everything went fine, telnet was reachable and i could use the solution…

    Hope you guys can find it useful.

  54. Yahya says:

    I’ve flashed with, but still can’t Pairing.

    After QR code scanning, the led indicator turning from flashing blue into steady blue (I thought the wifi connecting is successful). A minute later, a message appears: ” Failed to load. Reset the camera.”

    When I verify the camera, it says “the camera is correct. Try another setting”

    When I reset the camera, it failed to load again.

    Pls advise me.

  55. Matt says:

    I had previously updated my China region 720p Ants camera and got the dreaded message so had downgraded via an SD Card. I had been having problems with remote connection being a little unreliable so read your instructions. I updated to, got the “Not for use outside china” – Telnet’d in (Already had the files on the SD) – Copied and pasted the commands and its running like a dream. Now if only someone could work out how to hack the international firmware to run on these as the connection is a little slow and I assume its because I’m working via Chinese servers and I’m in New Zealand.

  56. john says:

    I keep getting the -5400 message plus some text in chinese when i try to run it on the mihome app. The phone i am using is the new samsung j7. My business partners are able to run the app and see the camera work on their phones. So the camera is working just not on my phone.
    Anyone who can help me it would be VERY much appreciated. The camera is overseas so i cant do anything with it physically.
    I am NOT a techi and dont really understand most of what is written in this thread.
    Like i said if someone has some simple guidance for me i will be grateful!
    Thanks in advance

  57. Justin says:

    Here is with RTSP moded from Gustavo

    If you already have china fix), just do the step 3.

    Method 1
    1. Extract and copy to the SD card. Reboot your ip cam
    2. After reboot, wait 5 mins or until it say “this product is for china use only”.
    3. Copy “test” folder to the SD card again(overwrite if prompt) and reboot

    Method 2
    If you want to do it remotely without touching the SD card. Make sure you have FTP to the device.

    1. Extract and ftp all the file to /home/hd1/ and reboot
    2. After reboot, wait 5 mins or until it say “this product is for china use only”.
    3. ftp “test” folder to the /home/hd1/ again(overwrite if prompt) and reboot.

    • Ole says:

      Great, works perfectly!

      1) Is it possible to easily adjust the timezone?
      2) Is it possible to set a password to the RTSP stream?

      Thanks a million

      • Gustavo says:

        I telnetted into the camera (username: root / password: 1234qwer)

        cd /home
        mv ntpdate ntpdate.orig
        touch ntpdate
        chmod 755 ntpdate
        date -s “2015-06-02 22:00”

        The commands above disable to program that tries to set the date from the internet, and then you can set the date manually to the current date/time. Hope this helps.

        Source: http://en.miui.com/thread-124292-1-1.html

    • Prem says:

      This worked perfectly on my China cam!! Great instructions!!

  58. Fernando says:


    I accessed via telnet and did the steps of the solution after the upgrade to, but after rebooting the camera it just stayed with a permanent orange led on indefinitely, even if I disconnect it. So finally, I was able to get out from that state, but now I can’t play none of previous recordings videos that are stored in the SD card with any of the firmwares available.

    Can someone know how to fix that?

  59. mun88 says:

    my camera cannot connect to WIFI and said “WIFI PASSWORD WRONG”,also cannot reset..how to fix ??

  60. john says:

    i also have CN version Manufactured date on 16.04.2016 had try on russian 02 not work (rusian previous can used for 01. 11.2015-01.03-2016)

    the error problem is after wifi is connected blue light is blink and in app show message fail to load

    who have new lot for Yi smart cam and alos problem like us

  61. Jogger says:

    How to make the commands execute on boot?

  62. rebit says:

    Hello ! How can i do telnet to the camera if camera refuses to connect to wifi ??? I have the CN version :/

  63. Julio says:


  64. vkthor says:

    I had some trouble with the camera, updated the firmware, and can’t connect to wifi since then, no matter what firmware I try. No matter what I do, it always throws a wifi password error for me (chinese message or english message depending on the firmware).
    Russian firmware or any else (L, M, N, etc) didn’t do the trick for me 🙁
    I’ve got another one working flawlessly, and I tried different routers.
    Its SN starts with 10CN… pretty old I guess?
    I even used the yi-hack firmware, which has a log that gave me this error:
    “fkill: Cannot open RFKILL control device Could not read interface ra0 flags: No such device WEXT: Could not set interface ‘ra0’ UP ra0: Failed to initialize driver interface”

    So… any ideas? Bricked wifi chip?
    If I could use the camera in “local mode”, recording and storing everything on the SD card, at least it would be something more than paperweight right now…

  65. Semflow says:

    Hi Mr. Krikri..I have a question about xiaomi 720p. Im already use your firmware version of This firmware work for me, but i cannot playback my video recording. How to fix this problem?

    Thanks before.

    • Nico says:

      Same with me. I also try to use FW. everything works fine except video playback.
      I have identical V.21 camera with original FW (, the playback works normally (with same app)

  66. Ray says:

    Did anybody have issues with the Motion Detection Warning playback? After upgrading to, everything works fine but motion detection warning could not be played. Clicking the warning will only results in Fail to load video .

  67. Mark says:

    I would also like to know how to fix playback of recorded video.

  68. Icefish says:

    I buy yi Camera and it CN version Manufactured date on 20160622. Can not to update the firmware to and use RTSP script to telnet. Have any idea to update mod firmware?

  69. stefanie says:

    hi all, i buy new yi ants 360 but cannot used, can help if someone have the firmware for this goods? thanks

  70. Robbert says:

    Hi. I have a few important requests. Can we keep the best solution as a sticky on top and can anyone offer solutions for the series 2 and 360 models? Series 2 do not seem to allow/accept downgrading anymore and the 360 seems to be a ‘unicorn’ at the moment. I am ‘stuck with’ both. Chinese versions which I would very much like to see in Yi home. Together with my luckily old 720p’s.

  71. stefani says:

    hi robert, i think series 2 already discussed and got solution. but 360 still new

  72. Nico says:

    Everything work as expected, well done.
    But I have a problem with my V.21 version of my camera, after accidentally updating firmware via app to version Q. I can’t playback my recorded video, anyone know how to fix it ?

    I also have another V.21 with FW default from factory, playback works fine. Problem only with timezone

  73. Fernando says:

    At the end, I found the solution to the playback recording in this link http://en.miui.com/thread-193380-1-1.html, so basically I entered this command: echo “GMT+0” > /etc/TZ and then I reboot it and I was able to playback the recordings again using using even the newest firmware.

  74. eric says:

    i have a new xiaoyi camera august buy from china several unit
    when i reset and insert card with home firmware …and power on ,the unit just say waiting for connection ,keep say waitting connection in chinese ,

    can any 1 tech how to flash?


  75. Ken says:

    I have tried all of the firmwares posted here but the camera continues to ignore it. After inserting the sd card with the firmware, it just initializes and continues to wait to be paired. Is there anyway to FORCE flash the firmware to the IP cam?

  76. LaLa says:

    currently using version and cannot playback the motion detected videos. anyone doesnt have this problem? how to solve this?

  77. luis says:

    if i understood. if you chenge the timezone you can´t playback the motion detected videos.

    any solutions?

  78. reuven says:

    Yesterday I made the Chinese version update since the camera does not work please help me I have a Chinese version and I am from Europe

  79. Francisco says:

    Is anyone getting a very bad image quality (distorted) on night vision mode with the firmware?

  80. umer says:

    bought it on 14 august 2016, for the first time it connected showed video, then i disconnected and moved to another room but it says “this product can only be used within China”
    tried all files given in this blog till date but no solution seems it is not detecting memory card

    seems stuck

  81. julius says:

    Has anyone attempted upgrading to the latest firmware

    And how do you get Push Notifications to work on iOS. Currently I’ve set it on in the Settings for the camera but I don’t get any notification even when there’s activity on the camera.

    • wailuen says:

      I had the new camera with this firmware. Had not been able to get the telnet to work anymore and thus it just keep repeating “Camera can only work in China” and shut itself down. Anyone with solution for this ?

  82. Larry says:

    Is there anyone has the firmware? Pls share it if you have it.

  83. Gustavo says:

    Guys, i’ve got the new test file/folder from 4pda.ru with mod aio, zipped it with the latest Q version, if anyone want to try, i couldn’t yet…


    • Larry says:

      I think AIO including modify the prompt message & timezone to Russian. Can you find the mod to activate outside China only?

    • Larry says:


      I would like to try out this one:


      Solution 100% for those who updated to camera the V 2.1 (camera says that the type of work only in China)

      1) Turn on the camera (without SD card)
      2) Press the Reset button and hold for 10 seconds
      3) Releasing the Reset button
      4) Turn off the camera
      5) Format the SD card into the FAT32 (other file systems are not supported)
      6) Download the firmware (yes it is! Since the camera not be sewn directly to )
      7) Throws in the root of the archive SD card file home
      8) Turn on the camera for 3 seconds is lit orange after orange starts to blink for about 40 seconds (set by firmware!) and then wait until the camera speak
      9) Turn off the camera and remove the SD card
      10) Format the SD card to FAT32
      11) Download the firmware
      12) Throws the root of the SD card file from the archive home
      13) Turn on the camera for 3 seconds is lit orange after orange starts to blink about 40 seconds, (firmware installed!) and then wait until the camera to speak
      14) Turn off the camera and remove the SD card
      15) Turn on the camera (without SD card)
      16) Press the Reset button and hold for 10 seconds

    • estevez says:

      Did not work on the new batch of camera that comes with firmware. Had not been able to flash it to anything other firmware. The equip_test.sh also not working.

      Any ideas ?

    • Samson Law says:

      Gustavo, can you please help? Thanks.

  84. toanquan says:

    How can i fix timestamp on mi home app, timezone on camera correct in my country (VietNam), but timestamp over 1h
    What app better ? Mi home or yi camera

  85. AK says:

    Ok Guys, This is My version, no russian stuff in this, took latest firmware from here “www.xiaoyi.com/home/firmware/index.html?version=” (, added rtsp/telnet fix, and no Russian stuff in this, “THE SOLUTION” is already integrated into the “equip_test.sh” file, so just extract into a formatted micro SD card and flash it, thats all folks. There is a watermark saying “yi” bottom left hand corner, its so small that i don’t care for it.




    **For Playback issues/GMT Error follow this thread http://en.miui.com/thread-193380-1-1.html

  86. julius says:

    Does anyone get push notification on iOS? I’m using the Mi Home app to access the camera but get no push notification despite there veing activity.

  87. fredy says:

    why my YIHOME always show “your account password is changed, please re-login in!

  88. Kris says:

    Thank you very much for your last MOD firmware AK, working like a charm on my CN Yi Cam 🙂

    • Mike says:

      @AK: Thanks for the Firmware, now i have latest Firmware on my CN Cam in Germany, RTSP etc.,all works.
      Thank you very much.
      When there is a new Firmware an the App show me this, can i then Update the Firmware in the App?
      Or what must i do?
      Best regards

      • AK says:

        2 options :

        i) You can update the firmware in the app, but the camera would say “This camera can only be used in China” and would shut down. So you need to use the “THE SOLUTION” mod to fix it. Which can be found in this thread. This involves telnet to the camera.

        ii) If I am free i will make a mod for every new firmware, so just flash it into a formatted micro SD card, i will post the new firmware’s here.

    • chen says:

      how do you do it? can show the steps?

  89. Larry says:

    For those has CN edition after April 2016. Please be careful not to perform any upgrade unless you are pretty sure. I tried in my Yi Smart Camera V2.1 manufactured on June 22, 2016. It is completely dead. It boot up with amber light. I have to return it for replacement.

  90. Tim says:

    Lately, I’ve been getting disconnection, I’m using both the 720p and 1080p (xiaomi ants 2) versions of the camera. I’ve contacted the support, no luck so far. It works after I unplugged the 1080p camera off the power, works for a while, then it doesn’t work again. I think I’m getting forced log-off by the server every hour. The 720p version works fine.

  91. Samson Law says:

    Hi All,

    I am a Chinese from Hong Kong. I just bought a Yi Cam 720p CN version two weeks ago. I am also having “This camera can only be used in China ” issue as most of you all. According to other Chinese website, the Cam was added hardware lock to ensure CN version doesn’t work in other region, so all the fixes provided earlier shouldn’t be work on the this latest hardware version (20160622). If you want to know what hardware version of your cam, you just need to use QR code program to scan the QR code at the back of the Cam.

    Gustavo is saying that using firmware should work, so I want to give it a try.

    Can someone please share this http://4pda.ru/forum/dl/post/5866261/ ? I was not able to register a new ID in Russian website as it needs to find out the answer from the picture in Russian when creating an account.


  92. Vasu says:

    When my camera came initially, it gave “This camera can only be used within China error”, I downloaded the firmware file as given in the post and it started to work fine. Today I accidentally pressed the update button and the camera upgraded to No matter how many times I downgrade, it just wouldn’t work. no firmware is working. please give a solution

    • bubuski says:

      Last night I updated to and got the “This camera can only be used within China error” on one of my camera.
      I checked telnet and it was still enabled with the update, so I just redid the check_did website from .com to .cox as explained in the solution above. I then rebooted the camera through telnet and it came back online.

      I did not have to downgrade firmware.

      • Larry says:


        Is your hardware old version? Is it purchased before Nov, 2015?

        • bubuski says:

          I just scanned both QR codes

          151021 – always works

          160105 – I upgraded to the firmware to unmodified from the MiHome app and got the message “This camera can only be used in China”. I checked telnet and it was still enabled so I modified the check_did website.

  93. Aviso says:

    I have a CN 20160622 version with firmware as well. Apparently the device refuses to downgrade firmware or execute the equip_test.sh script. Currently I pair it with its app via a Chinese VPN. It’s possible that it’s hardwired to only allow upgrades, but I haven’t attempted to upgrade to yet. The key is to obtain telnet access, with which all other modifications come easily. What I’ll try is to edit the firmware to add the telnetd init script, and see if the device would take it.

  94. matteo says:

    hi i ‘ve a european version of yi camera 720 and i would register in mi home app.
    the error message is qr is invalid… and i cannot use in mihome app while i use it in Yi home app.
    how can i use this kind of camera in mihome app? in this camera is installed last firmware.

  95. Mike says:

    I use the Chinese App today i cant no longer Login to Mi Acount in the App. I became Error: Error occurred while Logging in, Please restart
    Has here anybody the same Problem, yesterday all ok and Login to Mi Account

    • Daniele says:

      Same error to me, i tried flashing other firmware and using other version of the app but didn’t solve the problem.

  96. SBA says:

    how to solve CN 20160622 firmware? How to downgrade ?

  97. Stratus says:

    Why my YIHOME always show “your account password is changed, please re-login in!
    It cannot retain the password. Any other experience on this?
    Is this related to that I have refused to update the FW to the latest one?

    • Mike says:

      I have it too. Latest Firmware. Chinese App from MiStore.

    • Wong Chee Wai says:

      Yes, I have this problem too. It is very troublesome, everytime I need to see the camera, I have to type in the user name and password. Can Xiaomi solve this problem?

      • Mike says:

        Today yi cam App China works i became no longer password login message. When i start YiCam APP all ok Today.
        And by you also?

  98. Sam says:

    All the Xiaoyi camera 720 with CN 20160622 and above already set hardware lock by Xiaoyi. No more upgrade/ downgrade firmware available from SD card. Any other solution push the new firmware into a camera?

  99. Need Help says:

    Seems like with its not reading the .sh script at all, and not reading any firmwares.

  100. chen says:

    the sh file can’t even flash into the cctv. how to telnet?

  101. Houzz says:

    i bought the camera on 10 august , i says same.
    unable to flash to any version

  102. Eric says:

    All the Xiaoyi camera 720 with CN 20160622 and above already set hardware lock by Xiaoyi. No more upgrade/ downgrade firmware available from SD card. Any other solution push the new firmware into a camera?

    any solution?

  103. cdcover says:

    I have checked the firmware with the latest CN *160622 720p camera version and I can agree with Samson Law this version has some hardware lock – or better they changed way the firmware gets updated.

    Wrapup: no firmware available will fix your CN *160622 camera atm. We can pray someone at xiaomi will get concious and release all the restrictions.

    If you want to check all the firmwares yourself (including the oldest, you can download them here:




  104. Houzz says:

    Waiting for solution 🙁

  105. Eric says:

    anyone have a solution for xiaoyi batch august ,it even no allow us flash the camera….
    in my hand have 20pcs ….just put there ..sad.

  106. Pulad says:

    I have 1 connected camera that is bought last year and running firmware 1.8.5…
    Plus 4 cameras bought about 2 months ago.
    The new cameras didn’t work from the beginning of the installation, with the English message “can only be used within China”. So I upgraded the firmware of these 4 with the Russian patched 1.8.6. They started to work after that and I never upgraded again.
    My problem is that I get the activity alerts notifications on internet, and the old camera is connected very fast with internet from the outside of the LAN, but new cameras can not be connected most of the times.
    All the cameras can be connected very easy and fast when the phone is connected to my home’s LAN.

  107. Pulad says:

    I just found that I can get fast connection to new cameras and download the motion detected videos by using China VPN.
    Any ideas?

  108. cdcover says:

    Can anyone check to what servers are the new CN17*160622 cameras connecting? I tried to block these DNS with no success:


    The yi cam sends its SN to some servers – if we only can block that!

  109. Keelium says:

    From a video review on youtube, I notice there’s a feature to select specific region for motion detection with the international version of yi home camera 720p.
    Is this not available with the china version?
    Or is it a new feature that’s added later in the latest firmware (1.8.6q)? I still haven’t updated mine yet

  110. bart says:

    In Q version there isn’t 🙁

  111. RattleS says:

    I am having the international version of the camera and using it with the Yi Home app.
    So far, I have not modified the firmware or done anything trickery with it whatsoever.
    The setup worked fine for me using the Yi home app too.

    However, I want to use the cam in the Mi Home app, together with all my other smart home stuff.

    Now here is the catch, I cannot get the camera working under the Mi Home app, after the QR code has been scanned and the camera replied successfully that the code scan has been successful, the blue LED turns from the blinking state to the solid state.
    This tells me, that the WiFi is working and connection was successful.
    I can ping the camera’s IP and also get a response.

    However, for some reason it wont get added to the Mi Home app and the camera keeps saying:
    “QR code invalid please reset camera”

    I have done this like a million times with the Mi Home app, but I cant get it working.

    Does anyone have a idea what this could be, as it works perfectly with the Yi Home app.

    Thanks in advance for any hint!

  112. Tai says:

    I need help !
    Bought two Yi 720 INTERNATIONAL VERSION and only found out now it only works in Taiwan Korea and US…..
    I need to use in UK. Anyone know which firmware I can download ? tried many here but none worked for mine.
    Manufacturing date is 160718.

    Please help !

    • RattleS says:

      I have the INTERNATIONAL version too and I am happily using it within New Zealand. I am using Firmware version

  113. Alberto says:

    Hi everyone,
    I just got the CNxx160622 model and the same thing happens.
    It can not be used outside of China. I tried to change firmware, telnet and nothing has worked. In one of the answers, I read something to block DNS and I said, I’ll play with the router remove Internet connection and keep my network .. to try.
    Looking for the ip of my camera, with YI on, from the console windows and saying every bit “can only be used in Chinese” I look and I see the led blue stays set.
    The camera is connected to the mobile application YIHOME, and I see mi hand in mobile. Just give me time has to do a screen capture mobile and stopped working. I do not know what happened, but I run a minute …. I have screenshots of what gave me time.
    It has not returned to work.

    YI Home
    Camera: CNxx160622 with factory firmware:
    Mobile: S6 with 6.0.1

  114. Bob says:

    For CNxx160622
    Looks like you need to use a TTL cable to enable firmware upgrade/downgrade
    anyone tried?

  115. Larry says:

    My first was 17CNXXXXXX16062 which was bricked after trying the different firmware. I returned it and received older version with 12CNXXXXXX160512. This is working properly with this patched firmware








    -Able to connect wifi
    -Mi Home ok
    -Record and playback is ok.

    I will further test it and see if there is any issue.

  116. Larry says:

    Sorry for typo, the first version is: 17CNXXXXXX160622

  117. Larry says:

    Here is the grep of http from the /home/cloud bin file.

    # strings cloud |grep http
    %s -c 311 -url https://api.xiaoyi.com/v4/ipc/check_did -uid %s -keySec %s
    %s -c 139 -keySec %s -url https://api.xiaoyi.com/v4/ipc/reset -uid %s -version %s -mac %s
    /home/cloudAPI -c 301 -url “https://api.xiaoyi.com/vmanager/upgrade/get_md5”
    %s -c 140 -url https://api.xiaoyi.com/vmanager/upgrade -uid %s -version %s
    /home/curl http://%s/cgi-bin/luci/api/xqsystem/init_info | grep routerId | wc -l
    %s -c 141 -url https://api.xiaoyi.com/v4/tnp/on_line -keySec %s -uid %s -version %s
    %s -c 304 -url https://api.xiaoyi.com/v4/alert/event -uid %s -keySec %s -EventTime %lu -EventStat %s -pic_url “%s” -video_url “%s” -pic_pwd “%s” -video_pwd “%s”
    %s -c 138 -key %s -keySec %s -url https://api.xiaoyi.com/v4/ipc/on_line -uid %s -version %s -mac %s -packetloss %d -p2pconnect %d -p2pconnect_success %d -tfstat %d
    %s -c 136 -url http://api.xiaoyi.com/v2/ipc/sync_time
    %s -c 310 -url https://device.io.mi.com/ot/register -uid %s -vendor %s -timestamp %lu -token %s

    It is using another approach to avoid the device check as the “https://api.xiaoyi.com/v4/ipc/check_did” is still in the file.

  118. JonesChi says:

    Hi everyone,

    I have made my camera (CNxx160622 hardware with FW or working outside China.
    And I want to share my finds.

    1. Serial port for CNxx160622
    Check the following image. There are 3 contact points, and I connect to board via the 3 contact points, not from the 4 pin connector.
    TTL voltage level is 3.3v, and baud rate is 115200.

    2. For, there is a factory test script. And if you put a script on SD card and path is “test/factory_test.sh”, then the script be execute automatically after the camera booted. But the script is removed on

    3. I wrote a scrip to make the camera work again outside China.
    Download the file, and decompress it to root of SD card.

    If your device’s FW is, you just need to insert the SD card into your camera, and it will hack your device automatically, when it finished, the camera will reboot automatically, then your camera is free.

    If your device’s FW is, you need to connect your camera via serial port to get console, then insert the SD card into your camera, when you see the command prompt, just type “/tmp/sd/hack_yi.sh”, then your camera is free.

  119. Debby says:

    Anyone solved the 17cn issue?

    Please share here

    Need help 😐😑

    • romachandr says:

      Hi, Debby!

      Yes, this problem is solved by JonesChi.

      I wrote a scrip to make the camera work again outside China.
      Download the file, and decompress it to root of SD card.

      If your device’s FW is, you just need to insert the SD card into your camera, and it will hack your device automatically, when it finished, the camera will reboot automatically, then your camera is free.

      If your device’s FW is, you need to connect your camera via serial port to get console, then insert the SD card into your camera, when you see the command prompt, just type “/tmp/sd/hack_yi.sh”, then your camera is free.

  120. Houzz says:

    Hi Jonesville
    How much time will it take to reboot???

  121. Houzz says:

    Extremely Sorry JonesChi for misspell name(Android auto correct error)

  122. Houzz says:

    Hi JonesChi
    It worked Wow… With your script
    Without serial port
    Thanks a lot
    By the way the camera rebooted in 30sec I thought it would take some time so I waited for 10min during the time the light was stable orange (as it was in the beginning of starting the camera with 8gb memory card having your above mentioned script )
    Thanks again
    Next time I promise I will check reviews of Chinese products before buying :)😊

  123. Houzz says:

    All those guys who are in trouble please remember to remove memory card after the script finished
    Any suggestions for apps in English language which supports this camera, and switching off blue light
    And camera mounting ideas

  124. Houzz says:

    Using yi home app I can do a lot and it’s in English too

  125. Ugur says:


    1 – every reboot giving error ” waiting for connection ” how to fix him ?

    2 – How do I turn off the sound ?

  126. Herman says:

    Hi I’ve this camera, China version.So far it was working well, but after my android phone was upgraded to version 6.0.1, it couldn’t pair anymore.
    Is it any patch to support this camera on new android version?
    Any advice pls

  127. tedtod says:

    Many thanks to JonesChi
    Now my camera working like charm , thanks for sharing the script
    Any chance to downgrade the camera so they can speak english again?


  128. Alberto says:

    Thanks JonesChi and thank Larry!!!!

    The script is ok and run my new camera.. Thanks !!!!!!!!!!

  129. Robert says:

    i have FW and tried the patch from JonesChi, copy all files to sd-card, but only yello light on and no reboot.
    after this i can not flash again from sd-card new firmware ?????

  130. stonek says:

    Thanks JonesChi!
    Is there any way to enable telnet, rstp, change timezone on CNxx160622 device unlocked by your script?

  131. Z-ster says:

    Hi have a couple of noob questions
    – Where is the model number listed i.e. (12CNxxxxxxxx160122, 12CNXXXXXX160408)?
    The only number I can find on my camera is 17CNYFS998, which doesn’t fit with what people are posting here.
    – How do I determine the current firmware version running on my camera?

    It seems finding out this information is a prerequisite as the process is different depending on when the the type and firmware version.


  132. tedtod says:


    this is code u can find on the back of camera.
    if yours is 17cn u can use the script from JonesChi
    it will help u to connect.
    But u need to check wether it comes with firmware C or Q


    • La Be says:

      and how to check the firmware?

    • Z-ster says:

      Thanks, I’ve worked out my number is 17CNXXXXXXX160622, but I’m still unable to determine what firmware the camera is running.


    • Z-ster says:

      So once the flash is successful in unlocking the camera with the method given above by JonesChi, will I need to install new firmware as the next step? If so which International version firmware should I be installing? I live in Australia.


  133. Jax says:

    I used JonesChi FW… it take 20 min to restart.
    after that i connect it shows (camara not online -3006)


    and how to check FW?

    Thanks in advance

  134. tedtod says:

    @ La Be

    you can while camera already connected, eventhough they said only can be used within china, you check on the setting, it will show what firmware they used


    • La Be says:

      i cant, right after i pair the camera, the camera continously say this camera can only be used within china and when i open the app, it says the camera is offline (-3006) and when i go to settings it says failed to connect, cannot get more information.

  135. Jax says:


    I used the hack and now when i connect to MI HOME it show this

    and my ver. is this

    any one of you know what’s the problem?
    thanks in advance!

  136. krics says:

    Same for me La Be..

    I think i need to do 3 points serial port method to make it work

    Bought in xiaomi store in china

  137. sopon says:

    Anyone got this problem with mi home(v3.1.2) in ios version 9.3.2?
    It’s doesn’t show the orange strip in timeline, then it’s can not watch backward.
    While it can work well in android.

  138. kira says:

    hi yi master, kindly share serial port method step by step. really appreciate.

  139. tedtod says:


    you still have firmware C, so u can use the files without using port cable. extract the files from Jones Chi and should be able to use the camera

  140. Kanchu says:

    My version is B is there any way i can upgrade to C and use Jones Chi method? because i couldnt find fireware C anywhere on internet. However i can find Q but i dont know how to do that port cable method. Can someone please post a step by step guide for that method?

  141. chen says:

    i have usb to tel cable ready.
    anyone can explain further? how to get console? anyone have image to refer?

  142. Tolsi says:

    Has anyone solved the problems with rewinding the video of YI Home?

  143. 0ss0 says:

    With the last Q firmware and cameras made after 2016 june 29, it is impossible to execute any step of this tutorial. Perhaps the only possible solution is through a serial phisical link. But I cannot find a clear and simple tutorial about it.

  144. 0ss0 says:

    I’ve tried out the script by JonesChi. Well, for the first time the cam has had a different behaviour: all other scripts were completely ignored, but this one was read because the yellow light stopped blinking and remains lit for over 20 minutes. After that time the cam has rebooted but nothing changed. It remain banned. So I opened the microsd into the reader and looked into the file log_init.tar.gz – tmp – init – homever. There I’ve sadly read “”. So I discovered that my fw is a Q version. Now I have to find a clear tuorial for the serial link procedure but the good news is that for the first time a script into the microsd was not ignored. Perhaps there is a possibility to solve this puzzle through a software hack. Perhaps.

  145. 0ss0 says:

    Congrats to JonasChi my cam now is online. I have a 17CN with Q firmware. So your script works with this fw too

    • Ivan says:

      my fw is Q version too , i have brought the cable to try the serial link procedure but not work , can you share your method ?? thanks

  146. vojtishek says:

    Hi And thanks a lot for the script JonasChi. Just If can someone comment that camera can be upgraded to newest firmware. Could you please reply on this unanswered question, thank you.

    Thanks, Vojta

  147. fedeant says:

    Hey guys. For those who need to unbrick the camera or are stuck without Telnet (e.g. 17CN, I made a video showing how to connect to it through the Serial Port (UART):


  148. DH says:

    My version is
    I downloaded file thru above link and unziped file, but i cannot see any file inside folder.
    Somebody can solve my issue ?
    Thanks in advance.

  149. Jess says:

    Hi Mine is 17CNXX160622 may i know how to find out my version is Q or C since I can’t even connect it anyway??

  150. Ql says:

    Is there any way to get an app (android) working with this fw? I’ve tried misc onvif apps but they pretty well suck. The Yi app was quite ok, with possibilities of different config.
    I also can’t get the motion sensor to record video. I have the, but nothing is recorded?

  151. Ql says:

    actually I seem to be using 😮

  152. OssO says:

    Ivan, I’ve simply followed all the steps wrote by JonasChi. I must wait for over 20 minutes.

  153. Larry says:

    For those who want to turn off the Blue LED by console:

    login the telnet

    # Find out what is the PID of the led_ctl process
    ps |grep led

    # Here is the example output:
    1638 root 904 S /home/led_ctl -bon -yoff

    #kill the process ID
    kill 1638

    #Turn off the LED as backend process
    /home/led_ctl -boff -yoff &

  154. vojtishek says:

    I’ve used chinese app for pairing and When asked gor upgrade go for it and you will have English version afterwards. Worked for me.

  155. john says:

    after hack by JonasChi file my camera can pair with app but have error -3006

    who have same problem

    already update app for latest version
    already try mi home app
    same result error -3006

    • Mia says:

      Return it to your seller…

      • john says:

        i have try another camera with this hack file is good no problem

        only 1 cam found -3006 (some time can see some time is error)

        this hack file can used with yi dome ??? or had another tirck

    • Kira says:

      cam successfully pair after 20 mins loading of “test”
      when connecting to cam at 90% then -3006
      i check SD card, recording started the moment when cam goes online.

      please help. thank you.

      • Alex says:

        Exactly the same error here. I have the C chinese version and after the hack now i can pair and see the camera through the app but the most of time i cant reconnect and a can’t use the camera out from the wifi network.

  156. dtc says:

    i had tried and thank jonaschi….your tutorial make my camera online again….i have firmeare….. thank you. verymuch…..goodluck

  157. RattleS says:

    I also wonder why the Chinese version do not have the activity region setings like the international version does. It cannot be entirely differnet Hardware. I think this is a feature implemented by software. I have the camera sitting behind my window and everytime a car passes by I am getting alerted which is kind annoying. I wonder if there is something which can be done to set activity region too.

  158. miguel angel says:

    I have a C version and with the script the camera is working with the mi home app, but no with the yi home. Can downgrade the camera now or do somethig that can work with the app yi home?

  159. Alex says:

    I have the C version and before the hack i couldn’t even pair. Now even can connect with the app.
    But the most of time that i want to reconnect i recieve the -3006 error. Also I can’t see nothing in my phone when im using 3G/4G, same -3006 error.
    I really appreciate some help.. thanks a lot!!

    Tengo la versión C y antes del hack no podáa ni siquiera emparejar la cámara, ahora puedo conectarme desde la aplicación pero la mayor parte del tiempo recibo el error -3006. Tampoco puedo usarla fuera del a red wifi con 3G/4G.
    Realmente agradecería si alguien puede ayudarme!! Gracias!!!

  160. Fernando says:

    In my case, I also get the error -3006 almost every time I try to connect to any of my 4 cameras otherwise it disconnect after 1 or 2 minutes. However, I’ve noticed that this problem dissapear at night here in Peru (UTC-5), not sure what does it means, but in that moment all of them work fine using wifi or 4G.

    I hope someone can find out what is going on and solve this problem.

    PS: All my cameras use Q version and where working as expected 2 or 3 weeks ago.

    • changhui says:

      That’s right, I was using Q version on my 12CN version also get frequent -3006 error recently. I have to force to downgrade to, follow by then only it can work as normal.

      • Alex says:

        Is possible downgrade from 17CN and The camera seems to ignore the “home” file in any of its version.

    • James says:

      My Camera is working on Q version now..but I want downgrade it to version , does it possible ? my QR code is 150925

  161. JessicaHun says:

    PLEASE HELP! I have 17CN camera and it has installed. I have tried flashing to lower firmwares of all kinds and it doesn’t work. I have also tried to flash to and it seems like the camera will not respond to any of the firmwares. I have older cameras which flashed perfectly but this 17CN hardware version seems not to respond to any firmware put in the SD card.

    I did later use JonesChi’s hack_yi.tar.gz which allowed me to unlock it for outside of China. But no telnet, ftp, rtsp, http access. Anyone figure this out?!?!

  162. Jason says:

    HI… anyone can help with Yi Dome camera? I have bought a China unit, unable to use outside China. Any working firmware? Thank you

  163. crodado says:

    When prototypical camera can be heard only a click on twice as expected
    not to take the sd card
    keeps saying “this camera can only be used within China”
    is there any solutions

  164. kkkdenny says:

    Mine 17CN work with that script… anyone can change the timezone and unlock telnet, rtsp, and ftp? i’m using the C firmware, I tried the script from B version doesn’t work apparently.

    • ArisArts says:

      The same applies to me also.Easily went free out off china lock through SD script but cannot make any kind of .sh to run inside o test folder for rtsp telnet ftp timezone etc…Any help from fedeant will be great.
      Thank you in advance


  165. ahjie says:

    While I am struggling to defend the regional lock in 17CN, the recent news has made me paranoid. What if the hacked firmware is part of botnet attacking?

  166. Pirit says:

    The camera ejects wi fi error. I tried everything. I set up 20 cameras not only this.

  167. xinhui zeng says:

    1. Run CN camera outside China
    2. Downgrade from

    Requirement: access to filter internet bound traffic

    Inspired by the analysis here, I notice that
    1. if you block the camera access to internet bound tcp traffic, you can run The only issue is that you lose access to the camera from internet.
    2. I am not able to downgrade the firmware until I block the tcp traffic. I am then able to downgrade from to, then upgrade to shipped version) without any issue. Both lower version works with access from internet. The tcp block can be removed when camera is not running

    • veergogh says:

      how to downgrade from Q to K and then to L? Is it thru microsd or 3pin? please describe. thanks

    • James says:

      Do you mean , the procedure to downgrade from to is
      step 1. block the camera ( internet access
      step 2. copy version to sd card root directory with name “home” only
      step 3. power off camera
      step 4. insert sd card with version
      step 5. power on camera
      step 6. wait…under 1 min , it should be success for downgrade

  168. krics says:

    I flashed via mi home the lastest firmware (btw i don’t know how to see what is my firmware)

    I’ve never sucess to flash via the sd card.
    I tried every firmware from this website :http://xiaoyi.querex.be/firmwares/
    None work…

    I also try to hack via connecting the pin but the camera doesn’t react, it always booting like nothing.

    on putty i’ve always got a black screen…

    help please

  169. handymanny says:

    thank joneschi, your method works like magic. can hack 17CNY firmware.

    Great Job!!!!!

  170. gawuk says:

    sadly… no luck, no solved. latest Q fw perfectly locked hw v.2.1 17CN.. return to seller and buy the international version.

  171. CoolYU says:

    I’ve successful open Telnet and ftp service on
    This Yi Camera’s FW is native and the QR code is 17CNxxxxx160629.

    First need connect to Yi Camera via COM – UART.
    Then copy /bin/busybox from another Yi Camera running on Older FW( Mine is
    and cp the busybox file to the path /home/ .

    modify the file S88telnet and S89ftp in /etc/init.d/

    /home/busybox telnetd &

    /home/busybox tcpsvd -vE 21 /home/busybox ftpd -w / &

    reboot and service success running!

  172. Houzz says:

    While installation I twisted the base and broken it, please share some mounting ideas for table top or wall fixing

  173. neskor says:

    Any solution for 22CN models?

  174. Stefan says:

    So i bought a camera 17CN last week from China and the only way is to connect it via serial port.

    My questions now:
    – where do i get such an adapter
    – from where do i copy “/bin/busybox from another Yi Camera running on Older FW( Mine is”

    Is there any easier way to unlock the camera via microSD card or USB cable as the workaround is pretty difficult for a non tech guy.


    • Stefan says:

      Connected via serial, ran the script but nothing, even if i have the message that it was successful (already hacked) when i try to connect it i have the blinking blue led and does not read the QR. If i reset it then it connects to the phone but cannot be used outside china.

      Basically the script blocks the camera accessing the cloud, but somehow everything stops if it does not access it.

      • CoolYU says:

        Did u success mount the SD card after Hi-Linux?
        Check the folder with command ls /tmp/sd
        if it shows ” No Such file or direction”,
        that means u should solve the SD card mount problem first.

        • Stefan says:

          Script ran successful, it disables cloud access, the thing is that the camera does nothing afterward.

          it will not read the QR and needs to be reset to come back to factory settings.

          • CoolYU says:

            Check the file with command “ls /home/app/cloudAPI -al”
            Make sure is the “Script ran successful”?

      • vipervr says:

        So how did get your cam connected via serial? solder or you got an adapter at the end?

        • Stefan says:

          Connected via serial, soldered the wires on the MB

          • Naveed says:

            HI Stefan , can you help me to make the image of the mtdblock4 which is the rootfs. you can use the below command in the console to save the image in the memory card. Normally memory card is mounted in /tmp/hd1

            dd if=/dev/mtdblock4 of=/tmp/hd1/mtdblock4.img bs=65535
            I have bricked my camera and need to restore rootfs. appreciate your help.

  175. Phoebe says:

    Is there anyway to downgrade the firmware for 22CN model besides using serial port?

  176. Foong Jia Khang says:

    Can I simply write a firewall rule to block access to api.xiaoyi.com [] to prevent the cameras from making API calls to Xiaoyi (akin to the DNS error method) and also log.xiaoyi.com [] to prevent logs from being transferred back?

    Perhaps then there is no need to modify the camera if the camera still runs if it cannot make the API call.

  177. Breko says:

    Is there any way to get an MJPEG stream from the camera? Or use a PI to convert the rtsp to MJPEG?

  178. Danish says:

    Hello all.
    I just bought Xiaomi 1080P dome ip camera but can not be used outside of china.
    is there who can help me?

    • kkangddagu says:

      I soldered according to the video method.
      And serial connection success !!
      Ctrl + c x 3 ~~~
      It did not enter the root state.
        ~ # <- It comes out like this.

      In the video,
      Hisilicon # <- like this.
      But I am not.

      To be like hisilicon #
      Please let me know how to do it !!

    • Marble says:

      Where did you bought it? how much it cost?

    • kajorn says:

      mi dome can used outside

      but yi dome can’t use outside

      please re check

  179. Nicho says:


    anyone know how to force run home (upgrade or downgrade) via serial

    i try running home by typing /tmp/sd/home there is massage “/tmp/sd/home: line 3: syntax error: unexpected “(“”

    by the way manage to get the hack_yi.sh to run and it’s working.

    @kkangddagu you are the right place.. just type /tmp/sd/hack_yi.sh and enter after the #

    please i want to down grade so that telnet, rtsp. ftp, http tp work again in cn17q version.


  180. Ade.C says:

    Hello all.
    My Xiaomi Xiao Yi Ant HOME is CN17*160622, the version:!!
    I’m download the file(hack_yi.tar.gz), and decompress it to “/Yi” of SD card.
    When i see the command prompt, just key “/tmp/sd/Yi/hack_yi.sh”.
    Key try again, it’s response: “Already hack”, I think, I can free use the Cam.
    But, I’m use the Xiao Yi App, It’s response “-3006”!
    What else do I need to change??

    • Joohn says:

      have try used latest app for yi home and mi home ??

      had hack 5 camer found 1 of 5 camera have problem -3006 some time can see camera some time error

  181. Ricardo R says:

    I have An issue with the CN camera, when say waiting to connect never scann the code QR. And always say waiting to connect.

  182. Oliver says:

    Telnet to Xiaoyi Smart Camera no longer works on firmware. Maybe someone can make a solution soon.

  183. Jojo says:

    Unavle to rewind video in app. Anyone else have this issue?

  184. ThiHa says:

    My 17CN with Q firmware, cannot update to R version using SD card. Need help and thanks in advance.

    • Naveed says:

      change the home file to home_y18 and put in the root of SD card. Then it will upgrade

      • haze says:

        Are there many of you who are successful with a home_y18 firmware update? Seems a few cams were bricked after trying a home_y18 update.

        • haze says:

          I have on 17CNxxx.

          1. I used factory_test.sh to get rid of the only be used in China message.
          2. I copied busybox from and updated init.d telnet and ftp startup to use the older busybox and run telnet and ftd.

          I can’t get rtspsvr working. I tried running rtspsvrM using the older busybox, but I get a “rtspsvM: applet not found error”. Any ideas?

  185. laptab says:

    Dear Friend,
    I want my camera to record 24/7 inside sd card. can it be possible ?

  186. David says:


    I bought a camera in Ali… I think the seller send the camera with M firmware
    I have a 12CNXXXXXX160418 camera.
    I can’t change the firmware.
    I can’t connect with international Mi home.

  187. how says:

    Mine is V2.1 firmware and it is working!!! Just extract hack_yi.tar.gz into sd card root, power up and wait for 5 mins (it will not reboot) then power off, take out sd card and power up again. Connect through Mi Home downloaded from Google Playstore and select Mainland China locale.
    Many thanks for the solution!!!

  188. Tom says:

    I have yi ants 2 (1080p) change chinese version. Since 5 days ago i cannot connect to cam and it gave me “camera offline….(-9999)” error notification and sometimes stuck at “establishing connection 50%”.

    My camera id is : 24CN and the fw anyone could shed me a light what actually is going on with my cam? Kindly need your help to solve my issue here. Many thanks in advance.

  189. newsoftoday says:

    Anyone bought the YI home dome camera? Any assistance to bypass the “This camera can only be use within China”? Thanks in advance!

  190. Alex says:

    Hello. What about YI DOME 360. Same problem, but cant find solve CN camera

  191. behanm says:

    i have plz help me

  192. ExplorerHK says:

    Really big thank to JonesChi and fedeant

    I had a cam version 17CN with 1.8.61Q firmware. I just bought a USB to Serial Cable (PL2303) and follow exactly what they instructed, my cam is free now.

    Here is the summary of what I did:-

    1. Buy USB to Serial cable, it works on Windows 10. (I bought it from Taobao. For those not in Asia, you can also buy it from ebay.

    This is the sample link in ebay

    2. Follow this video by fedeant, fix the cable on the motherboard of the CAM.

    3. Follow this video to setup Putty to open the console

    4. Download and extract Hack_yi.tar.gz to SD card and insert the card into the cam.

    5. After all set just switch on the cam, you should be able to see the console in putty.

    6. Lastly, just type “/tmp/sd/hack_yi.sh” in the console and hit Enter to run it.

    7. Now your cam should be free.

    Hope this helps.

  193. FIRE SQUAD says: need help here …

  194. niko says:

    Same issue with the YI DOME 360, I have the CN app version but not able to connect, “This camera can only be use within China”.

    • TIm says:

      I was able to use mine using the mi-home (not the yi-home app) on google play store. I must have the old firmware, and I refuse to upgrade mine. But mine looks a little odd, I think it might be a proptotype I got it at gearbest. Using the mi-login.

  195. Bonbon says:

    i have too. Pleas help

  196. Farhanito says:

    My device is 17CN 160622. Unlocked.

    The camera works very well for the first few minutes after powering up.
    After that, the video is very slow and choppy. Even on home network.
    Restarting the camera fixed it, but the issue came back after a while.

    What wrong with my camera?

  197. ExplorerHK says:

    Really big thank to JonesChi and fedeant

    I had a cam version 17CN with 1.8.61Q firmware. I just bought a USB to Serial Cable (PL2303) and follow exactly what they instructed, my cam is free now.

    Here is the summary of what I did:-

    1. Buy USB to Serial cable, it works on Windows 10. (I bought it from Taobao. For those not in Asia, you can also buy it from ebay.

    This is the sample link in ebay

    2. Follow this video by fedeant, fix the cable on the motherboard of the CAM.

    3. Follow this video to setup Putty to open the console

    4. Download and extract Hack_yi.tar.gz to SD card and insert the card into the cam.

    5. After all set just switch on the cam, you should be able to see the console in putty.

    6. Lastly, just type “/tmp/sd/hack_yi.sh” in the console and hit Enter to run it.

    7. Now your cam should be free.

    Hope this helps.

  198. rocky says:

    you are u great great good~ this hack completely solved the latest firmware problem

  199. Naveed says:

    can any one provide me the rootfs image from 17CN camera. I have bricked my camera and needed rootfs to recover it.
    rootfs is the mtdblock4.

  200. Edison86 says:

    Xiaoyi 17CN and 12CN. once updated to It cannot hack.
    anyone know how to downgrade from to ?

  201. TIm says:

    I still have the chinese app and it works okay along with the north american app together. The chinese app works with my old 720p camera and the 1080p chinese (second gen). The 1080p camera gen 2 stopped working as of December 8th. The only trick is that the chinese app I have the MI-Login and I chose China as the region. I also have the dome camera, but that works only with the mi-app in the google play, along with the old 720p chinese camera (but 1080p can’t be paired here with the mi-app).
    To summarize it all:
    Use the Chinese app with the chinese camera and mi-login.
    Use the google play store app with the international version and the YI login.

    • rv says:

      Tim, can help to explain again how u manage to get the Dome Camera working?

      Camera is International version or Chinese version?
      mi-app or yi-app? Chinese app or North America app?
      Need to use China as region?


      • Tim says:

        I used the mi home app. I have the Chinese dome camera and it works for me. The only thing is you have to set the region to China and you login with the mi home account not yi home account.

  202. David says:

    Same issue – – does anybody know what to do? ( How to downgrade – RS232 or SD card) I have 2 CN ver. in EU
    Thanks to all who finds new ways (scripts, RS232) how to hack or trying to find new ways 🙂

  203. birkof says:

    Hello, this is load another firmware does not work when the sd card ???

  204. plummer says:

    I am still on firmware version. Camera works with MiHome app only if I use it via wifi in my house. If I am out of the house….it does not work with either wifi or LTE. Any idea what I need to do to get this working from outside of the house?

  205. Zidani says:

    I have a YI camera in version Chineese but impossible for me to connect my camera. I have installed the firmware 1861B.02 and dowload the last version of MI HOME on china market and also on Google play but impossible to connect my Camera.

    Please could you help me ?
    Thanks a lot

  206. Hasan from TR says:

    I previously hacked mine 17CNxxxx cameras(simple SD card application) with the instructions and they worked fine.
    Unfortunately I made a crucial mistake couple of days ago, and hit the button to update the software on camera.
    Now even I RESET and follow the same instructions to hack the camera again, it does not work. Basically when hacking the camera with first file, the orange light should have been light continuosly, but it does not. I think somehow that latest update avoids me to go back to its original state.

    Any advise, would be appreciated. Thanks.

  207. Hemad says:

    24cnxxxxxx 1080 camera stuck in 50% and couldn’t use even with 2.1.1_20160429113900home firmware
    please help … any suggestion !

  208. vahid says:

    i have help to unlock

  209. rooney says:

    help me… users..

    i’ve deleted a original ‘/home/app/cloudAPI’ file…

    can anybody help me?

    mr.hjbaek@gmail.com plz send to me this file.

  210. Ben says:

    I use the and I can connect to wifi and use it perfectly with rtsp. Only problem is whenever the camera is unplugged from the power, it forgets the wifi connection and I have to do the setup all over again. Is there any fix for that? Thanks!

  211. soun says:

    i have model 18CN (YI ANT Home V1 upgrade 1080p) Please help to unlock

  212. Jason says:

    I have 4 Xiaomi 1080p I cant check firmware but at the back with the QR code it says 18cny6DKUU. I tried all the firmware it seems to ignore it. The only way i got it to stop saying the device can only be used in china was loading the hack firmware. However it never completes. Orange light stays solid. I can add the camera to the china Yi app. But when i check for signal it crashes at 25% and says network issue. Also wont load settings for me to check current firmware or make changes in the application. PLEASE HELP!!!!

  213. mark w says:

    hello, i am confused i currently live in thailand so if i buy the [International Edition] Xiaomi YI Home Camera 2 will it not work and come up blocked as i liked the features and the price

  214. mark w says:

    If I buy the international version can I use in Thailand without problems?, i thought we had posted a question but not showing

  215. Dan says:

    is there any way to create applications or install an app manager like opkg?

  216. Naoufal says:

    THE SOLUTION WORKED!!! THANK YOU VERY MUCH 🙂 I’m running version and my camera model is 12CNLJ****

    # ps | grep /home/watch_process | grep -v “grep” | awk ‘{print $1}’ | xargs kill -9
    # ps | grep /home/cloud | grep -v “grep” | awk ‘{print $1}’ | xargs kill -9
    # sed -i ‘s|api.xiaoyi.com/v4/ipc/check_did|api.xiaoyi.cox/v4/ipc/check_did|g’ /home/cloud
    # reboot

  217. Shevade says:

    please anyone has step by step to enable telnet and ftp on firmware and version 17CN.
    I already unlock the camera and be able to use this outside chine.

    But without ftp there is no way to put the only record stay on sdcard.

    thanks in advance.

    • Shevade says:

      I got error on my init.sh
      can anyone provide me the file init.sh

      my camera is 17CN and firmware

      thanks alot

  218. Shevade says:

    i messed up with init.sh
    did anyone can help me uploading the file : init.sh

    my camera is 17CN and firmware

    big thanks

  219. Tan says:

    Any update on downgrading ?

  220. POUIC says:

    Step by step to back live again your xiaomi ant cam

    Check video: https://www.youtube.com/watch?v=fBjKTfWN4TI

  221. dogan arsiray says:

    unfortunatelly 1 8 6 1 c and scripts downloaded from latest comment is not working. this camera is a piece of shit.

  222. Confiable says:

    SOLVING: “WiFi password error”.

    I have just noticed one thing:
    When I was trying to connect to the new WiFi network – I was encountering the message “WiFi password error” all times. Even after reset of the camera – still got the same error message. But one time (after reset) I have just unplugged the camera from the power supply and reconnect again. Then when I tried to connect to new WiFi network again – I have connected without any problems.

  223. simpo says:

    Hello I have asked Yi about RTSP access at http://forum.xiaoyi.com/forum.php?mod=viewthread&tid=45663&extra=page%3D1 , let’s see what (if) they will reply.

  224. Marius says:

    Hi. Any solution for 12CN version? Please help.


    i have model 18CN (YI ANT Home V1 upgrade 1080p) Please help to unlock
    i can try hack_yi (credit to fedeant) not work
    please shere firmware stock

  226. Bek says:

    I have Xiaomi 1080p I cant check firmware but at the back with the QR code it says 18CNxxxxxx. I tried all the firmware it seems to ignore it. The only way i got it to stop saying the device can only be used in china was loading the hack firmware. However it never completes. Orange light stays solid. I can add the camera to the china Yi app. But when i check for signal it crashes at 25% and says network issue. Also wont load settings for me to check current firmware or make changes in the application. PLEASE HELP!!!!

  227. jimbo says:

    Hello, how do I know which firmware version is it installed on my current Xiaoyi camera? without a successful hack yet. thanks!

  228. Rômulo Fernandes says:

    I have a 12CN hardware. Somehow I managed to activate the camera with firmware, but sometimes I can’t connect to the camera from outside my intranet.

    To upgrade to I need a modified firmware, or can I just use stock CN firmware with equip_test.sh patch to /home/cloud ?
    Can I use the international version of Mi Home app or am I stuck with Chinese version?

    Thanks in advance

  229. nike4ever says:

    hi, i have a dome and its also doing the same thing. anyone have a working hack?

  230. Jess says:

    My camera was
    I tried the hack state above half a year ago and it work. I had been using it since then.
    But recently late Feb the prompt “This Camera can only work in China” came back. I tried using the same hack I did but it no longer work. Anybody had the same problem as me?? Or any genius here can fix the problem again??

  231. Anthony William says:

    Hi guys..since this page helping me to understand how yi cctv work, i would like to give back and give you alternative solution..

    This solutin does not need any modified firmware. you can run it “out of the box” firmware. And i believe all the future firmware update is going to work.

    What you need:
    1. VPN service that have server on china.i use pureVPN.
    2. Router with OpenVPN client feature. I use WRT1200AC with Gargoyle Firmware.

    1. Set your OpenVPN client on gargoyle, my VPN provider give a nice guide to set this in Gargoyle. Basically you need to import their configuration file and input username and password that they give to you on Gargoyle Config Page. Use the china server config file.
    2. Test the VPN connection. Make sure when you check on whatismyipaddress.com, it showing china map, it means you already have chinese IP. Xiaomi will check this IP and you can avoid the IP Region check.
    3. Once step 2 is OK, you have to put custom config on your OpenVPN client, by default all of your route will be going to/tunneled to china first, this is bad because your regular web browsing will be slow.
    On your custom config
    – Remove “route” #so all your traffic will not routed to china
    – add “route-nopull” #so your gargoyle did not pull default route, the same with above command
    – add “route vpn_gateway” #redirect access to api.xiaoyi.com to china
    4. Save your config from step 4. And voila! All your CCTV will work.

    The magic happen when your CCTV did IP check to api.xiaoyi.com. By routing traffic to China VPN the xiaomi server will look that CCTV is from china and will not region block your CCTV.

    I hope i can give you more detailed instruction, but im writing this on my phone. You are welcome to ask more off course. Ill be happy to answer.

  232. Damian says:

    Can we run some script through telnet to make time lapse straight from camera. Making pictures twice an hour would be more than ok ? How to write that script on xiaoyi ant first version.

  233. Gustavo says:

    Hi folks, 4pda.ru seems to have a solution for new version 1.6.1r, unfortunately I can’t create an account to download, if any of you have access would be nice to grab it. Thanks.


  234. lala says:

    the solution work with latest firmware 18.6.1R

    telnet in cam

    # ps | grep /home/watch_process | grep -v “grep” | awk ‘{print $1}’ | xargs kill -9
    # ps | grep /home/cloud | grep -v “grep” | awk ‘{print $1}’ | xargs kill -9
    # sed -i ‘s|api.xiaoyi.com/v4/ipc/check_did|api.xiaoyi.cox/v4/ipc/check_did|g’ /home/cloud
    # reboot

  235. xbetax says:

    Is it possible to convert the Chinese version to US ? Or allow the Chinese version connected to the US app ?

Leave a Reply

Your email address will not be published. Required fields are marked *