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

Support Chuangmi 720p camera? #235

Closed
jymbob opened this Issue Oct 13, 2017 · 89 comments

Comments

Projects
None yet
@jymbob

jymbob commented Oct 13, 2017

Just picked up a pair of "Chuangmi" cameras from GearBest - https://www.gearbest.com/ip-cameras/pp_701750.html

They're using the same app, and appear to be very similar in setup.

My FTDI is in the post so I may be able to provide some debugging information if that's helpful.

@VINCE43

This comment has been minimized.

VINCE43 commented Oct 17, 2017

Hi,
I just try tonight, and it doesn't work .. :-(

@bernardo-amaral

This comment has been minimized.

bernardo-amaral commented Oct 31, 2017

I wanna hack this model too

@chris777c

This comment has been minimized.

chris777c commented Nov 6, 2017

I have this model too, I can help you if you need anything tell me

@samtap

This comment has been minimized.

Owner

samtap commented Nov 6, 2017

  • Post teardown pictures
  • Intercept firmware update
  • Attach serial console to capture boot logs, dump filesystem, crack root passwd etc.
  • Find SDK, code examples etc.
@chris777c

This comment has been minimized.

chris777c commented Nov 6, 2017

OK I undesstand I am so enthusiastic, in my level :

  • Post teardown pictures ==> OK, I can do that

  • Intercept firmware update ==> How to do that ? with what tool ?

@jymbob

This comment has been minimized.

jymbob commented Nov 6, 2017

@chris777c

This comment has been minimized.

chris777c commented Nov 6, 2017

Ok thank you

@jymbob

This comment has been minimized.

jymbob commented Nov 6, 2017

Hm. Think I've identified the RX and TX pins but my soldering's appalling, so I haven't got to a console yet.
It looks like it's using the same SoC as the Mijia 360 720p, which this project has working, however I couldn't get ssh access working on mine, and reflashing the 360 firmware appears to have left me with a non-functional camera - I still have a working one, so I'll persevere for a bit longer!

@chris777c

This comment has been minimized.

chris777c commented Nov 7, 2017

Thank you for you work

@rap1

This comment has been minimized.

rap1 commented Nov 29, 2017

Hi,
I also have Chuangmi 720p camera and would like to make it work locally, for example through RTSP, without Internet connection.
Do you have any update?
thank you

@ras31415

This comment has been minimized.

ras31415 commented Nov 30, 2017

Hi;
I also have 3 pcs :-(
I was little bit stupid and I didn't think that it is a closed system without open streaming protocolls.
Thanks before

@rap1

This comment has been minimized.

rap1 commented Nov 30, 2017

the same for me: I found out that it works only through Internet.
I hope that, as already done for other Xiaomi cameras, it's possible to load some kind of RTSP server to stream the video locally. I look forward to receiving some good news...

@rap1

This comment has been minimized.

rap1 commented Jan 8, 2018

Hi Larry, any news?
How did you succeed in connecting serial interface ?
thank you

@ras31415

This comment has been minimized.

ras31415 commented Jan 8, 2018

This is very joyful.
Could you share the solution of the hacking with we?

@rap1

This comment has been minimized.

rap1 commented Jan 9, 2018

Great ! Could you give us details ?
Is it possible to load and run a local RTSP server ?

@sibojia

This comment has been minimized.

sibojia commented Jan 10, 2018

@LarryN3t Could you share the solution? I also wish to connect to this camera. Thanks a lot!

@scapman

This comment has been minimized.

scapman commented Jan 13, 2018

Very great news!
Could you please share the solution?
It looks like you are the only one that made it.

Thanks a lot!

@lilipfem

This comment has been minimized.

lilipfem commented Jan 15, 2018

Please, please share your solution if one exist :-/

This camera make me crazy ...

@bernardo-amaral

This comment has been minimized.

bernardo-amaral commented Jan 19, 2018

anyone had solved this?

@ril3y

This comment has been minimized.

ril3y commented Jan 20, 2018

@chris777c

This comment has been minimized.

chris777c commented Jan 21, 2018

Thank you for feedback but I tried telnet with putty, his show me "Connection refused"

@ras31415

This comment has been minimized.

ras31415 commented Jan 21, 2018

Yes, absolutely same happened with me too.
telnet - l root 192.168.3.101 23
telnet: unable to connect to remote host: Connection refused.

@chris777c

This comment has been minimized.

chris777c commented Jan 21, 2018

Thank you, it's work, I am extract img from camera.

@lilipfem

This comment has been minimized.

lilipfem commented Jan 22, 2018

Where do you take the .img ? The link don't work any more :-(

@ras31415

This comment has been minimized.

ras31415 commented Jan 22, 2018

Where did LarryN3t disappear?
His img is working.

@lilipfem

This comment has been minimized.

lilipfem commented Jan 22, 2018

So please, where can I found it ? I'm a poor newbies completly lost

@ras31415

This comment has been minimized.

ras31415 commented Jan 22, 2018

This is a link where you can download larryN3t's image for 24 hours. Unfortunetelly my dropbox is full so I can't keep it there.

https://www.dropbox.com/s/qm4squv21ik4bob/tf_recovery.img?dl=0

@lilipfem

This comment has been minimized.

lilipfem commented Jan 22, 2018

Thank you very much

@jymbob

This comment has been minimized.

jymbob commented Jan 22, 2018

Did a quick fork and stuck larryN3t's file here - untested.

@rap1

This comment has been minimized.

rap1 commented Jan 23, 2018

Thank you , I 'm reading on your link the procedure to load the new image.
Has anybody tested it ?

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 25, 2018

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 25, 2018

@chris777c

This comment has been minimized.

chris777c commented Aug 25, 2018

I try to do that and don't work for me :

  1. I format a SD card with FAT32

  2. Put the image tf_recovery.img on the root.

  3. Switch off the camera.

  4. Put the SD card in the camera and power it on and I wait until blue led stopped blinking

  5. Switch off the camera.
    5'. I see SD card and tf_recovery.img is change name to tf_recovery.img.bak and log folder is create white messages file

  6. Copy everything from https://github.com/ghoost82/mijia-720p-hack/tree/master/sdcard to SD card root

  7. Edited mijia-720p-hack.cfg

  8. Put the SD card in the camera and power it on.

  9. When the blue light stopped blinking open http://camera_ip/ don't work for me neither ssh nor http access but telnet access work

@sdesalve

This comment has been minimized.

sdesalve commented Aug 25, 2018

Same thing for me.
Like @chris777

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 25, 2018

Save for me. When using Fing I see that only port 23 (= Telnet) is open. Other ports are not available.

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 26, 2018

@sdesalve

This comment has been minimized.

sdesalve commented Aug 26, 2018

@tomsteenbakkers I've formatted my SD card with Windows 10

image

And copied file with Explorer's drag & drop.

Shoud I use an other way?

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 26, 2018

@jymbob

This comment has been minimized.

jymbob commented Aug 26, 2018

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 26, 2018

@jymbob

This comment has been minimized.

jymbob commented Aug 26, 2018

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 26, 2018

@jymbob

This comment has been minimized.

jymbob commented Aug 26, 2018

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 26, 2018

Ok, I have format the SD card with the same settings as sdesalve but nothing happens when rebooting the camera. The only difference is that the card is shown in the Mi Home App. I'm using an 4 GB sd card. That the difference between sdesalve. Any suggestions?

@sdesalve

This comment has been minimized.

sdesalve commented Aug 26, 2018

@tomsteenbakkers @jymbob @chris777c I'm not able to run RTSP server like @zloybatanik stated.

I've followed all steps in this comment #235 (comment) without any luck.

Is there any other user that have been able to run this hack RTSP server on Chuangmi?

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 26, 2018

@sdesalve sorry I thought it was working for you. I stop trying. Tried everything.

@jymbob

This comment has been minimized.

jymbob commented Aug 26, 2018

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 26, 2018

@jymbob

This comment has been minimized.

jymbob commented Aug 26, 2018

Found some time, opened some wine, and figured this out 😄

The issue is that the latest master doesn't contain the pre-built binaries

The binaries are on the release track: https://github.com/ghoost82/mijia-720p-hack/releases/tag/v0.95

So, in short:

  1. set up camera in MiHome app
  2. in camera settings find your IP address
  3. power off camera
  4. format SD card to FAT32
  5. copy tf_recovery.img to the card, insert into camera and power on
  6. after about a minute you should have telnet access (telnet 192.168.1.xxx)
  7. power off camera
  8. go to the Ghoost82 repo and download the zip (this is the difference)
  9. unpack the zip and copy the contents to the SD card
  10. change settings in mijia-720p-hack.cfg
  11. insert back into camera and power up
  12. after about 30 seconds browse to http://192.168.1.xxx to access your camera

Phew. I'm seeing a working RTSP stream with about a 2 second delay. Thanks all!

I'll tidy this lot up and stick it in my repo when I get chance. Just about to leave for holiday, so probably not before September.
NB: I claim no credit for the code, just doing some caretaking.

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 26, 2018

I will test this new version tomorrow! And will record every step, if this works we have a manual.

@chris777c

This comment has been minimized.

chris777c commented Aug 27, 2018

thank you very much, great work for me

@sdesalve

This comment has been minimized.

sdesalve commented Aug 27, 2018

It works!

There is some lag and RTSP stream is not very stable...
I hope in future developements

thank you!

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 27, 2018

It works also for me. I got the RTSP stream! Now trying to add the camera to Homebridge!

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 27, 2018

Just added the camera as homebridge camera, and also this works. I can now use the camera in the Apple Home app. With this hack it's also HomeKit compatible 👍👍

The speed can use some improvement, there is little delay. But, I'm Happy

@roboterm

This comment has been minimized.

roboterm commented Aug 27, 2018

Just added the camera as homebridge camera, and also this works. I can now use the camera in the Apple Home app. With this hack it's also HomeKit compatible 👍👍 ...

@tomsteenbakkers can your share the config.json you’re using, pls?

Sent with GitHawk

@tomsteenbakkers

This comment has been minimized.

tomsteenbakkers commented Aug 27, 2018

@roboterm This is the section for the camera

        {
            "platform": "Camera-IP",
            "cameras": [
                {
                    "name": "Meterkast",
                    "videoConfig": {
                        "source": "-re -i rtsp://192.168.1.193:554/live/ch00_0",
                        "stillImageSource": "-i http://192.168.1.193/media",
                        "maxStreams": 2,
                        "maxWidth": 640,
                        "maxHeight": 480,
                        "maxFPS": 30
                    }
                }
            ]
        },
@jymbob

This comment has been minimized.

jymbob commented Sep 3, 2018

I've now updated and renamed my repo: https://github.com/jymbob/chuangmi-720-hack

I'm not the author of any of the work, but it seems sensible to collate it in one place rather than on another ticket. Marking this issue closed as we now have a functioning RTSP stream

@jymbob jymbob closed this Sep 3, 2018

@alexandreberton

This comment has been minimized.

alexandreberton commented Oct 19, 2018

Works also for me great thanks.
The only point is I cannot disable the status light. I tried from the config file and from the web server page but it doesn't work.

@mtsardakas

This comment has been minimized.

mtsardakas commented Nov 27, 2018

Hey folks, thanks a lot for this. Has anybody tried it for the 1080p version of the same camera?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment