shadow-1 / yi-hack-v3

Alternative Firmware for Xiaomi Cameras based on Hi3518e Chipset
GNU General Public License v3.0
1.15k stars 152 forks source link

Is there any plan for Chinese version of YI Outdoor Camera? #82

Open HuipengRen opened 6 years ago

rotemdeckel commented 6 years ago

@dylangerdaly is the link you posted a few days ago (Yi.zip) a beta version of a firmware solution? Is it working?

eros23 commented 6 years ago

hi, have you found any solution for this camera for the rtsp server? Is there any procedure that you can tell me Step by step?

dylangerdaly commented 6 years ago

I've created a Riot.im room at #yi-outdoor:trustbreak.com to discuss getting RTSP Enabled, trying to get it enabled within a few weeks.

jenniferheart commented 6 years ago

@HuipengRen Your DNS server is down?

@dylangerdaly Have you broken the region lock on the outdoor camera yet? That would be of tremendous help prior to getting RTSP going.

dylangerdaly commented 6 years ago

@jenniferheart gonna try focus on RTSP, removing region lock is easy, someone just needs to look into it a bit.

dylangerdaly commented 6 years ago

One of the major things we're missing here is documentation, I'm wondering if buying a development board. I.E https://www.sgshop.com/taobao/tao-bao/details?tbid=568457472711&cid=50024099&sptitle=%E6%B5%B7%E6%80%9DHI3518EV200%E5%BC%80%E5%8F%91%E6%9D%BF+%E6%9D%BF%E8%BD%BDWIFI+SPI+I2C%E5%8F%AF%E9%80%89%E9%85%8DOV9732%2FAR0130

Would work, technically it says you get access to an SDK, I wonder if that could contain documentation about how to do sensor bring up etc.

dylangerdaly commented 6 years ago

I think I know why the other RTSP Binaries aren't working: https://github.com/TangCheng/imedia_rtsp/blob/master/src/hi3518/sensor/sony_imx122/imx122_cmos.c

It looks like you have to compile applications with specific Sensor config. Unless we can get our hands on the Sensor config for the outdoor Cam, this will be difficult.

I'm tempted to just use the enclosure and build my own that supports RTSP.

rotemdeckel commented 6 years ago

looks like 54.84.30.91 is down :-( Is there a way to clone this machine and make a copy of it on Amazon?

HuipengRen commented 6 years ago

@rotemdeckel Restarted, check https://github.com/HuipengRen/yihttptunnel if you want to make a copy

jenniferheart commented 6 years ago

@HuipengRen Still seems like it is down. Is there a way to redirect api.xiaomi.com through a proxy similar to your script but through a dd-wrt router? Anyone know how?

HuipengRen commented 6 years ago

@jenniferheart How do you know it's down? It works for me at least for now.

steven-shi commented 6 years ago

@jenniferheart I did this on my openwrt, you need to have ipset and change dnsmasq, something like this: https://github.com/jamesmacwhite/ipset-netgear-r7000-dd-wrt/wiki/Using-ipset-with-dnsmasq-and-iptables

so you can route api.xiaomi.com to a special endpoint which sit in china.

or even simple without ipset, you can just use iptables to route IP of api.xiaomi.com to your proxy

jenniferheart commented 6 years ago

@HuipengRen Looks up now. thanks.

@steven-shi Whats the line to properly set the iptables to redirect? Not sure how to get it to work properly.

trickyman02 commented 6 years ago

I have a chinese Yi Outdoor and stay in China. If there is anything I can contribute (without opening the camera), I am happy to help or try things out, also if you need logs. Personally I would be insterested to pull off stills (eg as JPEG) directly from the camera to use it like a old style camera and put a picture on a website. Getting RTSP working would be ideal too.

ccorderor commented 6 years ago

@dylangerdaly did you finally solved the problem where the camera was freezing on boot randomly?

j0rd commented 6 years ago

@dylangerdaly @milanzelenka

It looks like we have the ability to flash the camera via files on SD Card & then SSH/Telnet to it right?

Mind writing up a quick rundown on how to flash the device, then connect to it via Telnet/SSH.

I might be able to help then, others might as well. Maybe instructions in a wiki or just single message here.

I have one of these non-region locked outdoor cams and want to help get RTSP up and going myself, but I'm unfamiliar with all the old work which has done with the other models of these cameras to get us to this point.

hiwing15 commented 6 years ago

Any news on this being region unlocked? I’d be very grateful if it is!

jamieshaw commented 6 years ago

Just ordered one of these during the Prime Day sale; wondering how far everyone has got with this? 😃 I'm assuming the UK version isn't region locked, but it appears the RTSP binaries are still not available?

Is it possible to poll using MJPEG or similar? Looking forward to everyone's work on this 👍

channdy commented 6 years ago

@HuipengRen Just got this Yi outdoor cam without knowing about region lock. It seems your method is not working anymore. I have added DNS on router to 54.84.30.91 but I got QR code generation failure on the app. The result of nslookup (api.xiaoyi.com=54.84.30.91) is seems to be correct. Any advice please?

channdy commented 6 years ago

@dylangerdaly You did an amazing progress. Any update on the freezing randomly problem on boot with home_h20 firmware?

HuipengRen commented 6 years ago

@channdy Yeah, the default http proxy in China is not working any more, I just changed it to another one, try again please.

channdy commented 6 years ago

@HuipengRen Yes, it is working now. Thanks very much! How can you identify which China proxy is working with your yihttptunnel? I have tried many different proxies but I couldn't get it working. Is this enough to just run this command "sudo java com.yihttptunnel.Server [proxyhost] [proxyport]" to change the default proxy?

HuipengRen commented 6 years ago

@channdy yes, the command is right, and regarding how to identify China proxy, I just try them one by one, to see if I can get 200 OK for the curl command curl https://api.xiaoyi.com from my laptop

jamieshaw commented 6 years ago

Has there been any more movement on getting RTSP working on the outdoor model at all? Happy to help in anyway that doesn't mean me cracking the thing open 👍

Lecl0ne commented 6 years ago

Me too. Really waiting for something to connect this camera to Jeedom !!

nameonweb commented 6 years ago

Same for me... hoping for any solution on RTSP or http streaming solution...

ccorderor commented 6 years ago

I think nobody is working on the support of this camera...

VTCop commented 6 years ago

@HuipengRen is your dns sever working?

HuipengRen commented 6 years ago

@VTCop Yes, at least it's working very well for me.

Lecl0ne commented 6 years ago

What does it mean? So you can see your camera in Jeedom?

dvbit commented 6 years ago

Ehhhh. How do you interface it to jeedom?

JoJ123 commented 6 years ago

@dylangerdaly The SDK is uploaded by @shadow-1: The HiSilicon SDK compatible with the HiSilicon Hi3518eV200 chipset needs to be downloaded. On my Box account, I have hosted a number of SDKs. The latest compatible SDK I have is Hi3518E V200R001C01SPC040. Please keep in mind that due to file size restrictions on my Box account, I had to split the SDK into 6 pieces. The SDK can be downloaded from: https://app.box.com/s/cibs7n1mgvhqaqjlidtveegu1uajt5yr

Do this help you to go on with this camera? Would it be easier for the international version?

nonick321 commented 6 years ago

Any news on rtsp? I have the intl. Version. There is a omnivision Sensor. Whivh one has the chinese Version?

nonick321 commented 6 years ago

@j0rd

Simply copy the files rootfs_h30 and home_h30 to an empty sdcard. Insert sd-card to cam. Wait till it stops blinking. Remove SD card and add a wpa_supplicant.conf to it. Reinsert into cam. Telnet into it. Login is root/empty (Router shows the IP)

Lecl0ne commented 6 years ago

I'm not sure I undrestood.. Does it mean it is possible to get something on Jeedom, or out of this Yi app ?

aelg305 commented 5 years ago

look into: https://github.com/shadow-1/yi-hack-v3/issues/228

channdy commented 5 years ago

@HuipengRen It seems proxy of your yihttptunnel on 54.84.30.91 was stopped working again. Can you check please? Anyway I was trying to have my own http tunnel but was unable to get China proxy from http://spys.one/free-proxy-list/CN/ working with your yihttptunnel. I have tried a lot of different https proxies in the list but not success. Can you advise please?

HuipengRen commented 5 years ago

@channdy fixed, the China proxy I was using stopped working..., just restarted yihttptunnel with another one.

If you want to set up your own http tunnel, you can also try those proxies with "Proxy type = HTTP", cause those HTTP proxies usually also support "CONNECT" request to set up an end-to-end TLS tunnel.

keywansanay commented 5 years ago

@dylangerdaly The SDK is uploaded by @shadow-1: The HiSilicon SDK compatible with the HiSilicon Hi3518eV200 chipset needs to be downloaded. On my Box account, I have hosted a number of SDKs. The latest compatible SDK I have is Hi3518E V200R001C01SPC040. Please keep in mind that due to file size restrictions on my Box account, I had to split the SDK into 6 pieces. The SDK can be downloaded from: https://app.box.com/s/cibs7n1mgvhqaqjlidtveegu1uajt5yr

Do this help you to go on with this camera? Would it be easier for the international version?

@JoJ123 : Could you please help me with the link in your comment. I have 2 yi outdoor camera and I can't use them. It's Chinese version and i live in Holland. How can I change the firmware to international with those file in your link?

aelg305 commented 5 years ago

@keywansanay did you figure out what to do? 1- download your version from the release page 2-drop into formatted microsd (if using yi outdoor...I believe is home30 and roof..30) (I'm missing some letters but the important part is the last 2 digits/numbers) 3-put microsd into camera, wait to boot....yellow light sequence.... 4-enjoy (access through ip, etc)

let me know.

keywansanay commented 5 years ago

Dear,Thank you for your email: I have some question: @keywansanay did youfigure out what to do? 1- download your version from the release page ( whichpage and which release number?) 2-drop into formatted microsd (if using yi outdoor...Ibelieve is home30 and roof..30) (I'm missing some letters but the importantpart is the last 2 digits/numbers) what you mean? 3-put microsd into camera, wait to boot....yellow lightsequence....

4-enjoy (access through ip, etc) Kind regards,Kay

On Monday, March 25, 2019, 11:05:46 PM GMT+1, Andres L <notifications@github.com> wrote:  

@keywansanay did you figure out what to do? 1- download your version from the release page 2-drop into formatted microsd (if using yi outdoor...I believe is home30 and roof..30) (I'm missing some letters but the important part is the last 2 digits/numbers) 3-put microsd into camera, wait to boot....yellow light sequence.... 4-enjoy (access through ip, etc)

let me know.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

aelg305 commented 5 years ago

Dear,Thank you for your email: I have some question: @keywansanay did youfigure out what to do? 1- download your version from the release page ( whichpage and which release number?) refer to: Getting Started - Step by Step Guide..step 3...the LINK there with "release" at the end.

2-drop into formatted microsd (if using yi outdoor...Ibelieve is home30 and roof..30) (I'm missing some letters but the importantpart is the last 2 digits/numbers) what you mean? refer to: right below step3 there is a diagram that shows you which version depending on which camera....outdoor yi: "Yi Outdoor | rootfs_h30 | home_h30"

3-put microsd into camera, wait to boot....yellow lightsequence.... 4-enjoy (access through ip, etc) Kind regards,Kay On Monday, March 25, 2019, 11:05:46 PM GMT+1, Andres L notifications@github.com wrote: @keywansanay did you figure out what to do? 1- download your version from the release page 2-drop into formatted microsd (if using yi outdoor...I believe is home30 and roof..30) (I'm missing some letters but the important part is the last 2 digits/numbers) 3-put microsd into camera, wait to boot....yellow light sequence.... 4-enjoy (access through ip, etc) let me know. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Comments within your question in bold Let me know....

channdy commented 5 years ago

@keywansanay did you figure out what to do? 1- download your version from the release page 2-drop into formatted microsd (if using yi outdoor...I believe is home30 and roof..30) (I'm missing some letters but the important part is the last 2 digits/numbers) 3-put microsd into camera, wait to boot....yellow light sequence.... 4-enjoy (access through ip, etc)

let me know.

Hi @aelg305, how to connect to the wifi following this steps? Because after power up Camera did not recognize the QR code on App at all.

aelg305 commented 5 years ago

@keywansanay did you figure out what to do? 1- download your version from the release page 2-drop into formatted microsd (if using yi outdoor...I believe is home30 and roof..30) (I'm missing some letters but the important part is the last 2 digits/numbers) 3-put microsd into camera, wait to boot....yellow light sequence.... 4-enjoy (access through ip, etc) let me know.

Hi @aelg305, how to connect to the wifi following this steps? Because after power up Camera did not recognize the QR code on App at all.

I usually connect to the Yi first (with QR code, etc) unless you have the Chinese version. I have the regular version, which allows me to connect first and hack after and remain connected to Yi servers.

Is that your case?

channdy commented 5 years ago

@keywansanay did you figure out what to do? 1- download your version from the release page 2-drop into formatted microsd (if using yi outdoor...I believe is home30 and roof..30) (I'm missing some letters but the important part is the last 2 digits/numbers) 3-put microsd into camera, wait to boot....yellow light sequence.... 4-enjoy (access through ip, etc) let me know.

Hi @aelg305, how to connect to the wifi following this steps? Because after power up Camera did not recognize the QR code on App at all.

I usually connect to the Yi first (with QR code, etc) unless you have the Chinese version. I have the regular version, which allows me to connect first and hack after and remain connected to Yi servers.

Is that your case?

Mine is Chinese version and it could not detect QR code after flashing this firmware, it was end up with blue light blinking. Plse advise

arunsmu commented 4 years ago

I tried all the steps mentioned in YiHackV4 . 1, I copied the downloaded contents to the fat 32 formatted sd card, with the correct name and correct file for Yi outdoor camera. 2, All the steps worked flawlessly, like yellow light blinking and other stuff. 3, It's connected to WiFi , but it's not connecting to app. If I use international version of yi home app, camera says it can only be used in China in Chinese. If I use Chinese version, the camera says, it can only be used in China in English. So I'm kinda stuck at this level.

Anyone here faced such issue and successfully solved this ? Or does anyone have idea where the mistake might have happened? Since it's not connecting to the app, I can't do anything. It'll be of great help, if anyone can help me out with this