-
Notifications
You must be signed in to change notification settings - Fork 154
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
27US almost works, problems with WPA crashing #40
Comments
@yaddatrance When pairing the camera to your smartphone, the camera provides voice prompts and after connecting to WiFi, the camera says "WiFi is connected". What does your camera say during pairing? If it works properly on an older release and just stopped working in this latest beta version, we should be able to isolate what the issue is. |
The US27 is the latest US/international version which uses the v200 chip similar to the 17CN. It works properly when restored using the hizel restore image https://github.com/hizel/yi_dump. It doesn't get to "WiFi is connected" it says "Connecting to Wifi" then turns amber and after a while goes back to "Waiting to Connect" Log file on sd card shows [./rmm][1/19/6:48:54:551]: msg snd success[./rmm][1/19/6:48:54:575]: set ai volume via himm 0x201200d8 0x1e1ec001[./rmm][1/19/6:48:54:631]: set ai volume via himm 0x201200c8 0x23c2e[./rmm][1/19/6:48:54:685]: set ao volume via himm 0x201200d4 0x03122424[./rmm][1/19/6:48:55:901]: got RMM_SPEAK_WAIT[./rmm][1/19/6:49:0:405]: decoded QR-Code symbol "b=USb5WaySAqL6qpS6&s=Y2FyYm9u&p=VFAsIz8DCV0kPAQN" lsmod.txt shows Module Size Used by Tainted: P |
@yaddatrance Interesting that they both share the same firmware filename and the same firmware version. I am thinking that the 27US version and the 17CN version are exactly the same in terms of the firmware. My build for the 17CN is very recent and maybe it is broken. I will check what are the differences between Yi Home 17CN and Yi Home 27US and create a fresh pair of firmware images if they should be exactly the same. |
Awesome! Let me know if there's anything I can do to help. |
@shadow-1 : I have a 27US model as well and the fritz-smh version did not work. I gathered your beta for 17CN was the closest possible hack we have for 27US (as they share the same chip hi3518ev200 as @yaddatrance mentioned above). I will try the beta on my 27US and report back. Meanwhile,I believe you can find the firmware for the 27US on the xiaomi website here if you need it to compare with the 17CN version : http://download.us.xiaoyi.com/yifirmware/smarthomecam/1.8.7.0A_201702081101home |
@arunshivaram @yaddatrance The other difference is the firmware version. The backup file you provided me is firmware version 1.8.7.0A whilst the Yi Home 17CN is up to firmware version 1.8.7.0C. Considering 1.8.7.0C is available for download from the Xiaomi website (although from their Chinese page) and it uses the same firmware filename as the 27US. I have created a combined firmware that is hopefully compatible with both the Yi Home 17CN and Yi Home 27US. Please try my test firmware below. It would be a great help if you could provide feedback as it is a bit modified to the original. I'm not sure if the 27US camera will work properly when loaded with the 1.8.7.0C base firmware. However WiFi should be working along with telnet server, ftp server and web server. Please bear in mind that I developed this firmware primarily to get around region locking limitations imposed on the Chinese version of the camera. The camera will not complete the pairing process until ProxyChains-ng is disabled in the web interface. For further details, refer to the getting started guide on the main GitHub page. https://github.com/shadow-1/yi-hack-v3#getting-started---step-by-step-guide home: https://www.dropbox.com/s/lxwxvm1haydkqmb/home_y18?dl=0 I have also created recovery images to go back to stock firmware: |
Thanks, @shadow-1. WiFi is working now along with telnet/ftp/web server. No video through RTSP, though (tinycam picks up the device through scan and adds it), but there's no video. Nothing through VLC either. Any suggestions? EDIT: Just noticed RTSP support is in your to-do list. No problem. |
@retyre At the moment, RTSP support has not been developed. It is currently a work in progress. I am not aware of any RTSP implementation that works flawlessly on any Yi camera based on Hi3518eV200 chipset. |
@shadow-1 Yes, the official app works with the camera. It pops up a message about a new firmware being available (1.8.7.0A), but who needs that. Yes, I read about RTSP support being a WIP. No problem. Thank you for getting the firmware up and running so quickly. |
@retyre |
Thanks @shadow-1. I can also confirm that the test firmware you linked above worked as intended on my 27US version - telnet, http, ftp all up and running. |
@shadow-1 Do you have any pointers on how to experiment with rtsp? I saw your post (on another thread) about killing watch_process and others and trying one of the two rtsp builds you had linked. How does one do the latter? Editing equip_test.sh and running it with the correct call to the rtspsvr? Will equip_test run automatically (or manually) with your current firmware? Thanks. |
Yay it works for me as well! Thanks! |
@shadow-1, it works for me too, thanks! I wanna ask, does yi-hack-v3 support "no more cloud feature (nothing goes out of your local network)"(as it was in fritz-smh's version)? |
@arunshivaram @retyre @yaddatrance @mrbobo555 @retyre @mrbobo555 It is not completely stable yet and you will have to disable cloud features on the camera to make it work. I am currently in the process of developing this to be more stable and to be able to work in conjunction with the official Xiaomi programs running on the camera. However I need to work out how the official programs work which will take me a bit of time. However I do have some ideas. Anyone who is a keen developer is welcome to help. 😄 |
So is the idea that, if I kill those factory processes, the rtsp2301 binary will grab the correct video device and allow streaming rtsp? |
@shadow-1 Thanks for you work, i have restored my 27US cam with you firmware. The App works great. |
@yaddatrance rtsp2301 needs libsns_f22.so and/or libstdc++.so.6 (I was experimenting with many rtsp binaries, so I don't remember which of the two it needs!) in /home/lib. I found the binaries and the sources here: xmflsct/yi-hack-1080p#5. When I run rtsp2301, it reports a couple of errors but appears to stream; however, VLC picks up only a blank video. Could be a codec issue. Please update with your findings. Thanks. |
@yaddatrance @retyre This RTSP implementation has only been tested on the Yi 1080p Home. It appears that the 1080p sensor is: Silicon Optronics JX-F22 This RTSP implementation has only been compiled for use with the 1080p image sensor. |
Same discovery here, it streams a clever blend of zeros. |
I was able to recompile rtsp2301 for OV9732. The new binary initiates the correct sensor, but with errors: Clearly, there are leftovers from the old code (likely this): |
@retyre |
you guys are doing great work |
@kls629 I have been having a lot of trouble cross compiling various debug tools to examine the official programs. I have been progressing, however it is slow going for the time being. |
Just got two 27US cameras and got the same issue connecting but solved it using the firmware posted above. Following this thread for RTSP support which was the only reason I bought them (not knowing it was not supported 😭 ). |
@shadow-1 Great work! Thank you for your support. |
@shadow-1 Thanks for all of your work on these. Do you happen to have any updates on the RTSP support for the Yi Home 27US? I used Fritz's in the past but he is no longer developing and have newer cameras. |
@kruschman I have done a bit of work for Yi Home camera support (the original 720p version) and that should be ready for testing/pre-release soon. |
@shadow-1 will the Yi Home 720p Int version support will come with RTSP enabled? |
@bartaspoz However be aware that the camera will not work with the smartphone app and the RTSP implementation at the same time. I am also not sure whether RTSP works with the newer firmware versions. |
I have a US27 with 1.8.7.0D201 and I have tried the hack a few times with no luck. Is the new FW to hard to downgrade? Do I leave it as home or home_y18? |
@svtcontour If something has gone wrong, you can go back to stock firmware before flashing yi-hack-v3 again. Also try a different microSD card. I have had issues with some particular cards which could not be resolved. |
@shadow-1 Personally I would prefer the hack with RTSP support and no smartphone app support. Just like the fritz hack, I want to keep all video local only and not going out to Chinese servers. |
@shadow-1 and I prefer to leave the App control. Had no Idea that adding RTSP will break that support. Maybe you could release two versions of firmware - one with RTSP and one without it. |
@kruschman @bartaspoz However at the moment, all RTSP implementations conflict with the Xiaomi programs running on the camera and consequently smartphone app support needs to be disabled. |
@shadow-1 |
@kruschman However initial RTSP support has been developed for the Yi 1080p Home by others. The source code has been made available. So it is possible to modify the code slightly and recompile so that it will work with the 720p version of the camera. There are many limitations with this implementation. However it is a working example. |
Hi I have one YHS-113-HR FW 1.8.7.0D_201708091510 / 27USYLB3LD. I dont want brick my camera, so I prefer ask, I need to access this device by RTSP to see by VLC I Need this file below from https://github.com/shadow-1/yi-hack-v3/releases/tag/0.1.4-beta2 home_y18 and rootfs_y18 Than follow instruction on this page https://github.com/shadow-1/yi-hack-v3 After what I need to do? |
@emersonvier Unfortunetly RTSP support is still a work in progress. Refer to the following post: #15 |
@shadow-1 Thank you very munch, do you have any idea when the RTSP are will available? |
@emersonvier However it is definitely on my radar. |
I am looking to buy the previous model 22US, if someone know please share. |
Sorry guys. I've been reading and reading and trying to figure this all out. I'm just confused. Does this work on the US27 firmware 1.8.7.0D_201708091510? Trying to get RTSP server running. I also have 2 Dome. 13US? Firmware 1.9.1.0H_201708091518. What options do I have for RTSP for either of these? Will the older yi hack work? |
where you able to use RSTP on US27? if so, how? |
Thanks to shadow-1, I was able to get my US27 720p Home cam working thru the Yi app. There were a couple of quirks in my specific case (YMMV). 1st, I flashed the Recovery OEM firmware he keeps.
In my router I can see traffic going to an internet proxy server that just echoes "Hello World" back. So starting the camera up still requires web access? It would be nice to cut that need off completely. lance36 - a kludgie RTSP may be possible by adding Necromix's files onto the SD card with shadow-1's firmware substitute. It looks like the last 2 lines on Necromix's Github instructions might have to be run manually through telnet to start the stream (probably best, since it may not be ready for PrimeTime, so better to not have it auto-run in the shell script.) BTW - I notice about a 4 second lag in the stream to the Yi app. Also I will get a periodic "30%" on screen like it is trying to reconnect to wifi. But better that than the little brick it was before... |
Any news for us for the 27US version and the RTSP? |
Here is what I have going with my 27US and Home Assistant, using just downloads across github between this hack and the 1080p hack. It's not finished yet, but there's almost light at the end of the tunnel for my instance. I use the standard yi-hack-v3 from here. Its standard init calls /tmp/sd/yi-hack-v3/startup.sh if it exists so I created one to launch my apps. In testing I started killing everything with it like here (#92 (comment)), but now I just keep the part where only local traffic is allowed and launch sd card applications. Within startup.sh, I call a variant of the alarm script (#79 (comment)) that upon motion detect/clear by the standard software, a MQTT message (#130) is sent to HA. After that I call a script to launch andy2301's rtsp2303 server. In testing I followed this 1080p rtsp thread: xmflsct/yi-hack-1080p#5 (comment) and used andy's latest code in that thread to try various magic numbers for settings and see what would happen. To find starting numbers I wiki'd h.264 headers and hexdump-ed /tmp/view (the circular buffer file holding the 720p and 360p streams) and noticed a blank space around address 0x81b40. So calling his executable with a starting offset of 0, and playing around with the ending ("repeat") offset around 531264 and playing with the other variables I'm able to get a RTSP stream for HA's "ffmpeg camera" that mostly works. There are artifacts in the stream and it doesn't last forever, but since it's piggybacking on the standard firmware's output stream things like the camera switching to IR mode in low light still work. It isn't perfect so there's still work for somebody to do. I haven't even attempted opening and building andy's code (just copied the /bin folder contents), but it sounds like some inroads were made into how yi packages the two streams into /tmp/view. I've even been able to pull out the 360p stream for a bit using that software, but that's even more unstable than the main stream. |
Hi @johnpdowling ; couldo you share the scritp you use to comunicate via MQTT with HA? I'm struggling with this but cant move along. regards. Sergio |
Can dear roleoroleo tell you? |
The latest beta https://github.com/shadow-1/yi-hack-v3/releases/tag/0.1.4-beta2 got me the furthest on my 27US model camera.
It scans the QR code properly, setting the right info into WPA_supplicant.conf but wpa crashes with a log file named log_no_wifi_dev.tar.gz which to my untrained eye sounds like it can't find the wifi device?
Its so close to working! Anybody have any ideas or tips?
The text was updated successfully, but these errors were encountered: