Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which version of Xiaomi Xiaofang or Xiaofang 1S i have? #718

Closed
Cruiser79 opened this issue Sep 25, 2018 · 47 comments
Closed

Which version of Xiaomi Xiaofang or Xiaofang 1S i have? #718

Cruiser79 opened this issue Sep 25, 2018 · 47 comments
Labels

Comments

@Cruiser79
Copy link

Hello,

is it possible, without disassembling my camera, to find out, if i have a 1S with the needed T20 cpu?
I have two Xiaofang cameras. The first one i was unable to flash with this hack, so i used the https://github.com/samtap/fang-hacks When i connecting now to it via telnet it shows me the reason, i couldn't use this hack: It has a ARM cpu.

~ # cat /proc/cpuinfo
Processor : ARM926EJ-S rev 5 (v5l)
BogoMIPS : 200.29
Features : swp half fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 5

On buying my second cam, i explicitly order a 1S, but i will be sure, if it really is a 1S.
The information on the back are nearly the same.
The old ARM cam:
iSC5
FCC ID: SENISC5
CMITT ID: 2016DP5557
MAC: 34:CE:00...

The new 1S cam:
FCC ID: SENISC5
CMIIT ID: 2016DP5557
MAC: 78:11:DC...

Are there any optical differences to see the different version?
I remember that i read something with MAC adresses: 34: is ARM, 78: is T20. Is this an approved fact?

Thanks for your help.

@SomebodySysop
Copy link

These are T20 Xiaomi 1S cameras I ordered from AliExpress:

https://www.aliexpress.com/item/Xiaomi-Mijia-Xiaofang-Dafang-Smart-Camera-1S-1080P-New-Version-T20L-Chip-WiFi-Digital-Zoom-APP/1000005724812.html

They appear to be the same as yours. They have the night sensor and work great (with iSpy Agent).

20181021_124100

@deadmaus3221
Copy link

deadmaus3221 commented Oct 30, 2018

How do you get rtsp working? I've been struggling for ages to get it working... I can see the video feed on chrome, but it's really choppy, like 1-2 fps, it's really bad. I tried rtsp://192.168.1.2:8554/unicast on VLC, and I can't get anything... Any ideas?

EDIT: I tried
rtsp://192.168.1.2:8554/unicast
http://192.168.1.2:8554/unicast.m3u8
http://192.168.1.2:8554/unicast.mpd
none of them work

@SomebodySysop
Copy link

rtsp://192.168.1.194:8554/unicast

Again, I am using iSpy. I've connected 1 wyzecam and 2 xiaofangs. Should work with VLC even better. You might want to browse this issue to determine what settings will work best for you: #351

@kunikos
Copy link

kunikos commented Oct 30, 2018

These are T20 Xiaomi 1S cameras I ordered from AliExpress:

https://www.aliexpress.com/item/Xiaomi-Mijia-Xiaofang-Dafang-Smart-Camera-1S-1080P-New-Version-T20L-Chip-WiFi-Digital-Zoom-APP/1000005724812.html

They appear to be the same as yours. They have the night sensor and work great (with iSpy Agent).

20181021_124100

Hi SomebodySysop, I recently bought a couple T20 Xiaofang 1S as you have pictured. Would you be willing to share with me how you were able to downgrade the firmware and install a custom one? I'm assuming you're using the EliasKotlyar Xiaomi-Dafang-Hacks.

I've been trying for several days (different sdcards, etc), but I can't seem to get the first demo.bin flashed. The Mihome App has upgraded the firmware of the cameras to 5.6.2.138.

Every time I try to flash the cfm, after I restart the camera I never get the 'solid blue light', it still goes through the solid yellow then blinking yellow sequence.

Sorry if this is off-topic, but any assistance would be much appreciated.

Also, I disassembled the camera to confirm it is a telegenic t20 chip.

@SomebodySysop
Copy link

SomebodySysop commented Oct 30, 2018

Honestly, I followed the published instructions, step by step: https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/install_cfw.md

I used the Xiaomi XiaoFang T20 binary: https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/raw/master/hacks/cfw/xiaofang/cfw-1.0.bin

Installation of the microSD bootloader - Step 8: I set timer and wait for at least 3 minutes before continuing to Step 9. The base doesn't move on these cameras.

For 2nd camera, I actually just skipped Steps 9 and 10 and went on to installation of firmware.

Installation of the new Firmware: I copy the contents of firmware_mod to sd card, and I leave demo.bin on the card as well.

I get blue light for a couple of seconds, then flashing yellow also. Don't worry about it. Look for camera on your network. Mines always shows up as DAFANG.

I seem to recall that I had a similar problem as you when trying to flash the wyzecam. Kept getting that flashing light. Turns out the bootloader was working, but camera wasn't connecting to wifi This issue helped me to resolve that: #642

Hope this helps.

Update: Oh yeah, and make sure your sd card doesn't get corrupted. I bought 3 512 sd cards and they were all bad.

@kunikos
Copy link

kunikos commented Oct 30, 2018

Thank you, will keep it at. Really appreciate the confirmation that these are the right steps to take for this camera.

@Amitcgartist
Copy link

How to get the original firmware of the xiaofang 1s?

@jmtatsch
Copy link
Collaborator

@Amitcgartist WtF, how many more issues do you want to spam about this instead of reading up on this?

@Amitcgartist
Copy link

Amitcgartist commented Dec 27, 2018 via email

@MrRonfo
Copy link

MrRonfo commented Jan 15, 2019

Honestly, I followed the published instructions, step by step: https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/install_cfw.md

I used the Xiaomi XiaoFang T20 binary: https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/raw/master/hacks/cfw/xiaofang/cfw-1.0.bin

Installation of the microSD bootloader - Step 8: I set timer and wait for at least 3 minutes before continuing to Step 9. The base doesn't move on these cameras.

For 2nd camera, I actually just skipped Steps 9 and 10 and went on to installation of firmware.

Installation of the new Firmware: I copy the contents of firmware_mod to sd card, and I leave demo.bin on the card as well.

I get blue light for a couple of seconds, then flashing yellow also. Don't worry about it. Look for camera on your network. Mines always shows up as DAFANG.

I seem to recall that I had a similar problem as you when trying to flash the wyzecam. Kept getting that flashing light. Turns out the bootloader was working, but camera wasn't connecting to wifi This issue helped me to resolve that: #642

Hope this helps.

Update: Oh yeah, and make sure your sd card doesn't get corrupted. I bought 3 512 sd cards and they were all bad.

Hi there, I have a T20 Xiaomi 1S (iSC5). Followed the steps - it worked like a charm for me as well.
I've copied the mod firmware from Windows on an old 32GB SD Card, had no issue related to the card size.
Thanks @SomebodySysop!
Cheers,

@servant74
Copy link

NOOB question here: Can I use the same firmware on my Xiaomi 1S ARM processor as the other processor camera? My MAC address starts with 34:CE:00:... like somone elses I saw in a thread that seemed to indicate haing an ARM processor.

Given that, I don't know wheter to go with the Xiaofang or Defang ?

@kittenarmy
Copy link

@pvklink
Copy link

pvklink commented Mar 30, 2019

Hi ,

I also just bought the Xiaomi Xiao Fang. At the back it says chine signs ending with1S and isc5 and seniscs. So i think i have the Xiaomi XiaoFang T20.
firmware is 5.6.2.77

I formatted a 128kb sd with fat32 and
copied cfw-1.0.bin to the sd and
renamed it to demo.bin.

put in the sd card
Pluged in the power whie clicking on the setupbutton for 10 seconds.
I waited for 3minutes.
power off, sd card out and rebooted... after that is is blinking orange continous

I did this for 8 times, still the same!
anyone an idea?
Like to use this device in domoticz

@mckebabs
Copy link

mckebabs commented Apr 2, 2019

These are T20 Xiaomi 1S cameras I ordered from AliExpress:

https://www.aliexpress.com/item/Xiaomi-Mijia-Xiaofang-Dafang-Smart-Camera-1S-1080P-New-Version-T20L-Chip-WiFi-Digital-Zoom-APP/1000005724812.html

They appear to be the same as yours. They have the night sensor and work great (with iSpy Agent).

20181021_124100

@SomebodySysop I would like to buy a Xiaofang camera which can be hacked and I see you even provided a link to Aliexpress. Under your link they state it is the new version with T20L processor.
Could you please confirm that this is the one you got and it was possible to hack the new model?

Thanks

@SomebodySysop
Copy link

These are T20 Xiaomi 1S cameras I ordered from AliExpress:
https://www.aliexpress.com/item/Xiaomi-Mijia-Xiaofang-Dafang-Smart-Camera-1S-1080P-New-Version-T20L-Chip-WiFi-Digital-Zoom-APP/1000005724812.html
They appear to be the same as yours. They have the night sensor and work great (with iSpy Agent).
20181021_124100

@SomebodySysop I would like to buy a Xiaofang camera which can be hacked and I see you even provided a link to Aliexpress. Under your link they state it is the new version with T20L processor.
Could you please confirm that this is the one you got and it was possible to hack the new model?

Thanks

Yes, this is the camera I purchased:
https://www.aliexpress.com/item/Xiaomi-Mijia-Xiaofang-Dafang-Smart-Camera-1S-1080P-New-Version-T20L-Chip-WiFi-Digital-Zoom-APP/1000005724812.html

And yes, I did install Xiaomi-Dafang-Hack: #718 (comment)

@SomebodySysop
Copy link

Hi ,

I also just bought the Xiaomi Xiao Fang. At the back it says chine signs ending with1S and isc5 and seniscs. So i think i have the Xiaomi XiaoFang T20.
firmware is 5.6.2.77

I formatted a 128kb sd with fat32 and
copied cfw-1.0.bin to the sd and
renamed it to demo.bin.

put in the sd card
Pluged in the power whie clicking on the setupbutton for 10 seconds.
I waited for 3minutes.
power off, sd card out and rebooted... after that is is blinking orange continous

I did this for 8 times, still the same!
anyone an idea?
Like to use this device in domoticz

It could be working. Before you give up, look for the camera on your network -- even though the orange light is blinking. I had the very same issue, but the camera was actually connected and working: #718 (comment)

@kittenarmy
Copy link

kittenarmy commented Apr 6, 2019

I waited for 3minutes.
power off, sd card out and rebooted... after that is is blinking orange continous

The next step after waiting 3 mins whilst demo.bin flashing, and powering off, is to download the firmware mod and put it on the first partition, edit wpa_supplicant.conf then boot the camera.
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/install_cfw.md#installation-of-the-new-firmware

@kittenarmy
Copy link

@SomebodySysop I am wondering what is different about T20L to T20. I cannot find any documentation about revisions. Perhaps we could learn something from the boot log, via serial port?

@SomebodySysop
Copy link

I waited for 3minutes.
power off, sd card out and rebooted... after that is is blinking orange continous

The next step after waiting 3 mins whilst demo.bin flashing, and powering off, is to download the firmware mod and put it on the first partition, edit wpa_supplicant.conf then boot the camera.
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/install_cfw.md#installation-of-the-new-firmware

I put the firmware on the sd card at the same time I put demo.bin on it. This isn't in the official instructions, but after my first install, this is how I have always done it. And, it always works.

@pvklink
Copy link

pvklink commented Apr 6, 2019

i solved my problems by buying a new modern sd-card 32gb class10 kingston.
last things to solve:

  • let the cam sends a email when motion is detected.. cant find smtp options
  • or let the cam change a device in domoticz by a json call and let domoticz sends the email

somebody an idea how to solve this?

i added a script to /system/sdcard/config/userscripts/motiondetection.. but nothing works

`
#!/bin/sh

if [ "$1" == "on" ]; then

source /system/sdcard/config/motion.conf
source /system/sdcard/scripts/common_functions.sh

curl 'https://admin:xxx@192.168.20.32/json.htm?type=command&param=switchlight&idx=1226&switchcmd=On'

# Check external service to see it anyone present.
# presence=$(/system/sdcard/bin/curl http://openhab/rest/items/PresenceAtHome/state 2>/dev/null)
#if [ "$presence" == "OFF" ] ; then
    # No-one is meant to be here, but motion detected. Send email.
    # /system/sdcard/scripts/sendPictureMail.sh &
#fi

elif [ "$1" == "off" ]; then

curl 'https://admin:xxxD@192.168.20.32/json.htm?type=command&param=switchlight&idx=1226&switchcmd=Off'

fi
`

@pvklink
Copy link

pvklink commented Apr 7, 2019

problem solved, installed motion on raspberry

@SomebodySysop
Copy link

problem solved, installed motion on raspberry

It would be good if you would describe what problem(s) you solved, and how you solved it -- for the benefit of others who might have the exact same problem(s).

@pvklink
Copy link

pvklink commented Apr 8, 2019

Ok, i would like that my Xiaomi Xiao Fang 1S recognizes motions and gives alert. I did not get this working. So i searched for an solution outside of my cam. I installed motion software (i already use domoticz). With this software i can manage motions from different lan cams and record these motions on my nas and send notifications by triggering a device within domoticz! It works like a charm and i can use the rstp stream for this

@Klagio
Copy link

Klagio commented Apr 15, 2019

These are T20 Xiaomi 1S cameras I ordered from AliExpress:

https://www.aliexpress.com/item/Xiaomi-Mijia-Xiaofang-Dafang-Smart-Camera-1S-1080P-New-Version-T20L-Chip-WiFi-Digital-Zoom-APP/1000005724812.html

They appear to be the same as yours. They have the night sensor and work great (with iSpy Agent).

20181021_124100

Hi, mine is the same execpt in the first line (chinese characters= does not end with 1S

MAC address starts with 28: 6C:07

is mine ARM or T20??

Tried to install the hack, but at point 10, it never gets a solid blue. If I contninue with instruction, modify wpa and all, when reboot nothing happens (does not connect to wifi)

Also I do not understand the phrase
"Format your microSD to FAT32. NTFS, EXFAT etc. won't work."

so if all the format do not work, how the hell I am supposed to format the SD card?

Very confusing to me

@voloszad
Copy link

@Klagio Only FAT32 works, none of the other (exFAT, NTFS, etc.)

@Klagio
Copy link

Klagio commented Apr 18, 2019

@Klagio Only FAT32 works, none of the other (exFAT, NTFS, etc.)

Ok thanks.

I arrive at point 10 of installation, no blue led blinking (just yellow, and then blinks yellow).

If I continue with installation of the firmware (paragraph after point 10), nothing happens when I reconnect (the camera does not connect to my WiFi, no entries in my DHCP server).

Maybe my camera is ARM and not T10/T20, how to check that?

@stale
Copy link

stale bot commented Jun 17, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 17, 2019
@stale stale bot closed this as completed Jun 24, 2019
@stephandererste
Copy link

My Xiaofang has a MAC starting with 44 : 23 :7C
Does anybody know whether this will work here?
Or with samtap/fang-hacks?
Thanks :-)

@shanscendent
Copy link

My Xiaofang has a MAC starting with 44 : 23 :7C
Does anybody know whether this will work here?
Or with samtap/fang-hacks?
Thanks :-)

Hello Stephan, I just received a 1S too and I have the same starting MAC address as yours. Cracked it open just now and it says it's a T20 chip. Have not tried installing the hack yet though, will report back in a bit.

@Fromble
Copy link

Fromble commented Nov 30, 2019

I've just reveiced my xiaofang camera. It's a 1S with a mac adress starting with 44.23, i guess it's a normal T20

It came with firmware 5.6.2.77 (latest now = 5.6.2.138).
I've tried to install the micro-sd bootloader, format sdcard as fat32, copy .bin file, renamed to demo.bin. Restart with setup button pressed.
Flashing doesn't work. No blue led's . I have tried both 1.0 and 1.3 version's

It does work with the mi home app, so the camera itself seems ok.
Do i have the wrong version camera, what version bootloader can i install?

@raulrd2019
Copy link

raulrd2019 commented Dec 3, 2019

I've just reveiced my xiaofang camera. It's a 1S with a mac adress starting with 44.23, i guess it's a normal T20

It came with firmware 5.6.2.77 (latest now = 5.6.2.138).
I've tried to install the micro-sd bootloader, format sdcard as fat32, copy .bin file, renamed to demo.bin. Restart with setup button pressed.
Flashing doesn't work. No blue led's . I have tried both 1.0 and 1.3 version's

It does work with the mi home app, so the camera itself seems ok.
Do i have the wrong version camera, what version bootloader can i install?

Ey. I recently installed in 1S (the same as you have, with same starting MAC ) the 1.1 demo.bin (cfw-1.1.bin) version. I know it is for wyzecam version, but it works on my 1S

Regards

@Fromble
Copy link

Fromble commented Dec 4, 2019

@raulrd2019
Thanks, i will try version 1.1!

@raulrd2019
Copy link

@raulrd2019
Thanks, i will try version 1.1!

You welcome!

Say how it went when you do it.

Regards.

@Fromble
Copy link

Fromble commented Dec 5, 2019

@raulrd2019
Still no luck. It looks like its not even trying to flash demo.bin.

The led flashes are exactly the sames as when i boot it up without a sd-card. Maybe the xiaomi firmware is preventing the flash?
With which version firmware was your camera shipped?

@raulrd2019
Copy link

5.6.2.138.

Try to do all again.

@Fromble
Copy link

Fromble commented Dec 5, 2019

5.6.2.138.

Try to do all again.

That's the latest version. Maybe if i upgrade through the mi home app first.
Only, i've read that other people couldn't flash after the upgrade....
I'm not sure what to do. Do you know if a downgrade is possible afterwards?

@raulrd2019
Copy link

Yes. I used this one to restore stock firm.

#988

After that, you can update to the last version. (I do not tryed yet)

@ferrexevi
Copy link

ferrexevi commented May 20, 2020

I have a xiaofang with T20 processor, I follow all the steps to the letter, and it doesn't work, it shows this "bug" https://www.youtube.com/watch?v=hKOdKisvz6Y

I have tried it with all possible combinations, without success.

Cam xiaofang confirmed T20 processor

@ferrexevi
Copy link

ferrexevi commented May 22, 2020

solved, the secret is to apply the hack with version 5.6.2.45 (original firm, without updates). Working great with synology surveillance station, very smooth 1920x1080 image, I activated swap in swap.config file, but I really don't know if it works just by doing that.

A picture is worth 1000 words: https://ibb.co/f936VzV

@DavidFFerreira
Copy link

@stephandererste did you get it working?

@DavidFFerreira
Copy link

after put all firmware_mod in sdcard, i have this issue in log

Initializing interface 'wlan0' conf '/system/sdcard/config/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/system/sdcard/config/wpa_supplicant.conf' -> '/system/sdcard/config/wpa_supplicant.conf'
Reading configuration file '/system/sdcard/config/wpa_supplicant.conf'
Failed to open config file '/system/sdcard/config/wpa_supplicant.conf', error: No such file or directory
Failed to read or parse configuration '/system/sdcard/config/wpa_supplicant.conf'.
Failed to add interface wlan0
: Cancelling scan request
: Cancelling authentication timeout

@DavidFFerreira
Copy link

Now I found what happens, but I got a page blank when I try to access to IP webpage

@barrymossel
Copy link

solved, the secret is to apply the hack with version 5.6.2.45 (original firm, without updates). Working great with synology surveillance station, very smooth 1920x1080 image, I activated swap in swap.config file, but I really don't know if it works just by doing that.

A picture is worth 1000 words: https://ibb.co/f936VzV

Where did you buy that one?

@ferrexevi
Copy link

solved, the secret is to apply the hack with version 5.6.2.45 (original firm, without updates). Working great with synology surveillance station, very smooth 1920x1080 image, I activated swap in swap.config file, but I really don't know if it works just by doing that.
A picture is worth 1000 words: https://ibb.co/f936VzV

Where did you buy that one?

Aliexpress 👍

@innovatemaker
Copy link

innovatemaker commented Oct 12, 2020

It worked. Applied firmware and demo.bin at the same time.
MAC:34:CE
iSC5
2016DP5557

@HcNguyen111
Copy link

HcNguyen111 commented Oct 13, 2020

It worked. Applied firmware and demo.bin at the same time.
MAC:34:CE
iSC5
2016DP5557

@daniil145 I have the same device. Can you detail the steps you took?

@Arkady23
Copy link

It worked. Applied firmware and demo.bin at the same time.
MAC:34:CE
iSC5
2016DP5557

I did it, too. But once you pull out the sd card and work without it, you'll have to repeat everything from the beginning. I removed the sd card, turned on the camera without the card, worked, then put it back on and now the camera does not connect with WiFi. We need to load demo. bin again. You can't pull out the SD card. :-( I want to put the camera in the yard, and it writes without interrupting one file in a row for several hours. Such a file becomes unaffordable. The Chinese made it very convenient. One record — 1 minute. One torment with this firmware.
Apparently, the Chinese have time to load something into the camera.
Elias @EliasKotlyar, how do I opt out of the suggested recording method? I want to make minute recordings and view them through a web server, like I did on Yi-home. Why is it so cool to break everything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests