fang-hacks
fang-hacks copied to clipboard
New firmware: 3.2.0.30
Hi all, both my cameras were update to newest firmware 3.2.0.30 and both now fail to see the SD card. I have tried formatting, new cards, different sizes, to no avail. As if the firmware disabled the SD slot. It also reset the time zone. As such I am back to stock and most annoyingly without the ability to record anything on the sd cards.
Anyone else affected?
Same version(3.2.0.30) and same symptom. It is not possible to boot via SD-Card....
I've upgraded one of my cams to the new version 3.2.0.30.
This update definitely contains more content than the previous, so it'll take some time to figure out what's changed. Same as the previous updates, it's copied over the current contents in flash (isn't erased before the update). This means the fang_hacks.sh script is not deleted, and I also didn't notice any changes in the other scripts that are essential for hacks to work (sdcard mounting, rc.local etc.)
For me, everything still works as expected. Note this cam already had the fang_hacks.sh script installed. Some things I noticed:
- Couldn't use the cam from Mi Home anymore (offline). Had to re-add it and it took a number of tries. It gets to the last stage but times out. I also didn't get the notification of a new camera being detected after pressing the setup button, had to add it manually. After a couple of reboots suddenly the notification appeared and pairing was back to normal? Possibly just a cloud server issue, seen it before on previous firmware
- The hello.cgi script no longer displays the SDCard contents. I don't think the cgi executable itself changed but if I remember correctly it requires some file in /etc/SDCard(?) to list the path it will show on the web-page. I'll have to compare with a different non-upgraded cam to figure it out.
- The hammer (dang dang) sound no longer plays when a sdcard is inserted. But it's still auto-mounted like before.
If anything, it seems they just made things less convenient (by leaking less info) but nothing that really prevents us from running our homebrew stuff on it!
It does not work, but the "ding-ding" is heard ...
Is there any way to downgrade to 3.2.0.20 until we figure something out? No SD card means no real surveillance right when I am about to leave for holidays. Thanks.
@spxak1 Mi Home allows recording to sd so why would they disable that? If you still have a way to access the device (telnet) you could try to resolve it manually?
Hi thanks for the reply. Well Mi Home says "SD Not found" so recording is out of the question. My devices are now stock (after having messed up with it, formatted cards, rebooted etc). All I get is the motion detection that records in the cloud. SD is not detected (on either device). And btw my two cameras eventhough both look the same could not be more different (mac addresses especially are too weird, also one has different mac address on sticker).
So I would hope flashing the old firmware to get them to record using Mi Home for the time I'm away would be nice and when I'm back I'll look into it in more detail. Thanks again.
Hi, I bought a new xiaofang camera with firmware 3.2.0.30, tried to install hacks but failed. This is what i did: I've downloaded the 2.0 image and wrote it into tf card; Insert tf card into camera after the blue light stopped blinking; Wait; Heard beep sound twice; Access http://camera ip/cgi-bin/status and got 404 error, http://camera ip/cgi-bin/hello.cgi got nothing(blank page)
Did I missed some steps? Thanks.
i dont thing so. i have the same thing, always get 404 error, tried 4 different cd cards from yesterday, camera stop working, got the 1/3 connection, no metter what i do.. can't, downgrade firmware, nothing helps. looks like this firmware locks the camera outside China. Anybody have the same experience or any suggestions?
DuanWeiye, i am facing exactly the same problem. Please share if you the resolution.
OK this is very weird. I followed the instructions and flashed the stock 3.0.1.56 firmware as shown in the wiki. I then proceeded to set the cameras up with Mi Home. The camereras are found, the QR code scanned but Mi Home always times out. I tried 20 times. I uninstalled Mi Home, reinstalled, same.
The cameras appear to connect to the wifi after the QR code is scanned but the blue LED keeps flashing.
So I prepared a hack SD card, and both cameras now work with fang-hack. Everything works fine. The LED is always on Orange however, not blue.
So am I right to assume that there is also an issue with Mi Home now? I cannot get stock behaviour and cloud apps won't work so I am back to rtsp + linux motion on my server. Works ok (-ish, motion loses the stream every now and then).
Still curious as to what happened though? And why is the LED orange?
I have a cam that refuses to mount sdcard after the update now as well. It's the same version as my other cam, that works fine. I'm reading similar reports on forums, some say it works, some say it doesn't. Very weird.. Did anyone already manage to obtain the firmware update files? Or capture the urls used to download them?
Edit: Found out it still mounts the sdcard and runs snx_autorun.sh even though Mi Home doesn't see/use it. There's no 'hammer' sound and hello.cgi doesn't work. You can add ln -sf /media/$MDEV /tmp/www/SDPath to create the symlink that used to be created automatically. It still doesn't list all sdcard contents but if you use hello.cgi?name=record (or video or time_lapse) it shows the contents of those folders. Or you'll get 'Opendir faile' when it doesn't exist... So the hacks still work! My best guess is they tried something new in this firmware version (recording to NAS...?) and screwed something up with recording to local sdcard. Have no other explanation for it.
i dont thing so.i have the same thing, always get 404 error, tried 4 different cd cardsfrom yesterday, camera stop working, got the 1/3 connection, no metter what i do..can't, downgrade firmware, nothing helps.looks like this firmware locks the camera outside China.Anybody have the same experience or any suggestions?
Exactly same here. I think the firmware must be locked after 3.2.0.30 .
I'm 100% sure it works, there just appear to be some differences that require changes in my scripts to work reliably.
- First boot the cam without sdcard and connect with mi home. It doesn't matter if you get the 'not supported outside china' error as long as you get it connected to wifi. Even if the pairing process times out, often it is already connected to wifi but can't access cloud servers for whatever reason. Get the IP address from network info in Mi Home, or your router wifi client list.
- Try to access http://ip-address/cgi-bin/hello.cgi to make sure you got the correct address. It should load and show an empty page with 'CGI Output' in the title
- Insert the sdcard, wait a couple of seconds and try to access /cgi-bin/status page, it should load.
The above worked fine for me after I restored the original firmware. The camera now works with the hack rock solid (many many thanks for your work!). Only problem so far is the Orange LED stays always on. Minor. Oh, and there's no way to go back to Mi Home. It always times out. As such the cameras will stay on that firmware forever.
Thanks again.
P.S. BTW my two cameras, although "identical" they couldn't be more different. Even the field of view is different (one is wider) and the MACs are completely different (one is actually different to what it says on the sticker). Finally, one of them, when connected via rtsp to motionEYEos (raspberry pi 2) it can report sensing data (a temperature of sorts, usually around 50 C). The other one gives nothing. Sorry for the out of topic.
I'm 100% sure it works, there just appear to be some differences that require changes in my scripts to work reliably.
First boot the cam without sdcard and connect with mi home. It doesn't matter if you get the 'not supported outside china' error as long as you get it connected to wifi. Even if the pairing process times out, often it is already connected to wifi but can't access cloud servers for whatever reason. Get the IP address from network info in Mi Home, or your router wifi client list. Try to access http://ip-address/cgi-bin/hello.cgi to make sure you got the correct address. It should load and show an empty page with 'CGI Output' in the title Insert the sdcard, wait a couple of seconds and try to access /cgi-bin/status page, it should load.
In my case , I've never load the hack before from my firmware is 3.2.0.30 and i did exactly same your instruction but failed. It's not working
404 Not Found
The requested URL /cgi-bin/status was not found on this server.
//spxak1
Can u please show me the way how to restore original firmware ? I think i need to downgrade my firmware to solve my issue.
torukmakto, try this, i have the same problem... works for me, i downgraded it with success :) https://www.andryou.com/2017/07/11/setting-xiaomi-xiaofang-security-camera/ bus still 404 for fang hacks :( still trying..
/batmankule thank you for your kind link. Really appreciate it. i tried the instruction so many times on that site , but also did so many fails. I think i'm using iphone couldn't downgrade the firmware because it requires android MI Home apk 4.x.x
torukmakto
just follow the instructions here: https://github.com/samtap/fang-hacks/wiki/HowTo:-Flash-original-Xiaomi-firmware-from-sdcard-(factory-reset)
Make sure the firmware files goes into your first partition of your fanghacks SD card (the small FAT partition), not just any SDCard.
After you restore the original fimware, try to get MiHome to show the QR code and make sure the camera scans it well and gives you the long message in chinese. Then check your router to find that the camera has actually connected to the Wifi configured in the first step of MiHome and record the IP. You will need this IP to access the fang-hack webpage. Ideally you'd want the router to assign the same IP everytime (setup your dhcp server for this).
Like I said this restores the hack and cameras work fine, but NOT with MiHome like before. MiHome times out
batmankule / spxak1
I REALLY REALLY THANK YOU SO MUCH YOU GUYS EXCELLENT HELPNESS AND GUIDE
I downgraded my firmware to v3.0.3.56 successfully and now i can tweak the XF.
There must be something lock v3.2.0.30.
I found out stupidly copy the "cramfs-root” folder under "bootstrap" folder.
I REALLY APPRECIATE IT !!! guys MAY THE FORCE BE WITH YOU
Sorry, i have read the hole thread. But I can't downgrad from 3.2.0.20 to 3.0.3.56. I make it like it is discribed in the instruction. But if I test it with ".../cgi-bin/status" I every time get "404 Not Found" ... and the Firmware Version shows in Mehome still 3.2.0.20. I have no Idea!
Are you sure you are on the right IP? After your downgraded did you use MiHome to scan the QR code? Does the camera appear on your router? Do you use that IP?
Yes, the IP it the right one and the camera appear on my router.
Every thing seems ok with the downgrad ... I can hear the "hammer sound" by the hack ... but I get every time "404 Not Found" with ".../cgi-bin/status" ... It is hopeless ...
try with another sd-card...
Same problem here, after camera updated automaticly to 3.2.0.20 (Mi Home had self-enabled autoupdate), I can't connect to camera with Mi Home or use Fang hacks.
Tried downgrading ~50 times now (3 different memory cards, 16/32/64 gb Kingston/Sandisk/Transcend), once even taped weight over reset button and left it there for few hours, just to ensure that it stayed down, but still, no hope. Also tried downgrading with fang hacks flashed to memory card and just fat/fat32/exfat/ntfs formatted, just to try it.
Starting to kinda give up and just check in few months if there is any progress with 3.2 firmware, since downgrade seems impossible for this one.
I've been finally able to downgrade :)
- made a sd card with fang-hacks 0.2.0
- copied the older firmware to the root of the sd card
- cut power to the camera
- inserted sd card
- i've enabled power, WHILE having the setup button pressed (all other variations didn't start firmware downgrade)
- kept it pressed for at least 1 minute - no idea how long is enough
- paired the camera with Mi Home
It works fine ... except Mi Home (stuck at 1/3) and the blue light is always on (can't figure out how to turn off the camera via software)
No ... Unfortunately it does not work for me.
Upgraded another cam today, same as I reported before: V3.2.0.30 works fine with hacks. Except for the bang bang sound and hello.cgi (which are not part of the hacks).
Be gentle first post, and not a programmer, I have three of these camera's 3x MAC code 34 ****** but they all behave differently ! The first doesn't have a press button for the reset - it has a hole - this works with the MiHome app and even upgraded to 3.2.0.30 with no dreaded 'only works in China error' - still working no errors. The second has a push button for the reset and I upgraded the software believing from my previous experience with the first camera this would be ok - I got the dreaded 'only works in China error' That brought me here to this thread and website - although I do not profess to be a programmer I can follow the SD format protocols and writing image files or working out what goes in a root directory etc. I created a downgrade microSD card to 3.0.3.56 and flashed the second camera. It now has 3.0.3.56 firmware but still reports 'only works in China error' and has the option to upgrade to 3.2.0.30 in the firmware update section. It took several attempts but I think the key is the duration of holding the reset button after reapplying power as mentioned above. The third camera also has MAC code 34 ***** but I never upgraded the firmware when prompted and this one works with the MiHome app with no errors.
Summary: Camera 1 - earlier vrs no button to reset (has a hole) MAC code 34 - currently 3.2.0.30 - working Camera 2 later vrs button reset MAC code 34 - currently upgraded to 3.2.0.30 then flashed to 3.0.3.56 - has region code error Camera 3 later vrs button reset MAC code 34 never upgraded - currently 3.0.3.56 - working
My question/s are: Is the second camera now flashed to a point where the China region error cannot be removed ? If I use the fang hack would the MiHome app stop its remote functionality - appreciate that is the whole point to not use MI server to bounce/stream data - I'm looking at converting all three ultimately but want to try to recover camera number 2 so that if I want to revert to 'factory settings' I have the knowledge how to. I am using IOS vrs of MiHome 3.19.0 set to mainland China
With the different permutations I have it is quite easy to see why members are having difficulty as I have three cameras all behaving differently.