-
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
Will this "hack" be available for YI Home camera (aka Ant)? #25
Comments
@tbolsh As far as I know, the Yi Home camera uses a slightly different chipset to the Yi Dome / Yi 1080p Dome / Yi 1080p Home cameras. I believe the Yi Home uses the Hi3518_V100 chipset whilst the cameras I currently support utilise the Hi3518E_V200 chipset. That will mean that a different compiler will need to be used to compile programs for this camera. However I already have the SDK for the Hi3518_V100 chipset. I don't have this particular camera, so I will need your help to develop custom firmware images. Do you have Telnet access on your camera? Do you happen to have serial port access to your camera? It would be helpful to see the bootup messages that the camera displays through the serial port. On a separate note, I am wondering why you want to use my firmware on the Yi Home? What features are you looking for? |
Hello, shadow-1! Why your FW? I would highly prefer to have one platform and several cameras to choose from. I may choose not include YI Home into the set if it would not support that "one platform". Why your FW is the one platform? It seem to support the latest standard FW from YI, seem to be live and updated at least weekly. Discussions in issues also have sense. Thank you once again, good luck with everything, tbolsh P.S. If it will seem to be too hard - I will stop playing with YI Home. |
P.S. The features: |
@tbolsh The SDK for both the HiSilicon Hi3518E_V200 and HiSilicon Hi3518_V100 is available on my box account. The latest version of the SDK I currently have for the Hi3518E_V200 is; Hi3518E_V200R001C01SPC040 That should give you all the tools you need to start developing on both camera platforms. I may be able to help you out with Telnet and web server access on the Yi Home. However it would be easiest for me if you can obtain Telnet access using Fritz firmware (even if it uses a very old firmware) and obtain a backup of all the partitions on your camera. On the Yi Home, you can use the RTSP server included with the Fritz firmware (however I believe you will loose support for the Xiaomi smartphone app). It is a shame that the source code for the RTSP streaming program is not available in all of the custom firmwares I have seen for the Yi cameras. It would be much quicker for me to adapt RTSP from the Yi Home for use on the Yi Dome cameras rather than writing a RTSP streaming program from scratch. |
Up. I have a camera cannot be hack by Fritz hack (fritz-smh/yi-hack#173), so I think your hack will help. Since Fritz maybe stop maintenance his project( I submit this issue two month ago but no one reply). Thanks. |
@cnberg I think the only way to get alternative firmware running on the camera would be to connect to the camera through the serial port and to make some changes to the filesystem. This may require soldering. There may or may not be a connector inside the camera for serial port. If there is no connector, the serial port will need to be soldered. I can probably develop yi-hack-v3 for this camera. However as I don't have this camera, I will need help from someone with serial port access to the camera. A backup of all partitions on the camera should be sufficient for me to develop an initial version of yi-hack-v3 for this camera. If you are willing to experiment on your camera, then I may be able to help. |
Yes! I'm using 17CN version camera... What I can do now? Like this? https://www.youtube.com/watch?v=3e8jXuxiRzY |
@cnberg I have read online that the connector did not work for some people and they had to solder onto the pads shown on the video. However I have never seen a picture of the setup from those people. Maybe they mixed up the pins or their connection to the pins on the connector was not very good. On the Yi Dome cameras, there is no connector and the only choice is to solder onto the pads. Remember that you must use a USB-Serial converter. The serial port on these cameras operate at a voltage of 0 to 5V. If you have an old PC with native serial port, these normally operate at a voltage of -12 to 12V which may fry the camera. USB-Serial converters may operate at 0 to 3.3V or 0 to 5V (this is more common and is what is required in this case). If you have a spare Arduino, you may be able to use it as a USB-Serial converter if you don't have a dedicated device (it is what I use as I find it easier to connect to than my other USB-Serial converter). Arduino microcontrollers operate on 0 to 5V signals. If you do manage to get access to the serial port of the camera. Start the camera with an microSD card inserted. Run the following commands:
You can then post the files mtd0, mtd1, mtd2, mtd3, mtd4, mtd5, mtd6, mtd7 from the microSD card to me and I should be able to create an initial test firmware release for the camera. It would also be helpful if you could post the output of the following command:
This will confirm which chipset the camera uses and thus which compiler I need to use. |
Sorry for my late reply. I got these files, and the cpuinfo below. Since I have physical access to the camera, is there any way to hack the camera with full rtsp function? Thanks for your help! Processor : ARM926EJ-S rev 5 (v5l) Hardware : hi3518ev200 |
@cnberg Can you please post the output of the following command for me as well.
In terms of unlocking RTSP function. All the current implementations do not allow for the official Xiaomi app to work at the same time as RTSP. So on your camera you will have to kill most of the official Xiaomi programs.
Note: It is very important that you kill watch_process first. This program automatically restarts the Xiaomi programs whenever they close. Presumably the Xiaomi programs crash from time to time and this ensures that they get restarted automatically. In terms of RTSP functionality, you can try running the Fritz firmware RTSP implementation. Unfortunately I do not think it will work as the processor between the original Yi Home and Yi Home 17CN is different. I am helping out with RTSP implementation with the people working on this project: https://github.com/xmflsct/yi-hack-1080p . This project has got an initial test version of RTSP working. It is very limited at the moment and not completely stable. However it may work well enough for you for the time being. Link to the RTSP program: https://github.com/xmflsct/yi-hack-1080p/raw/master/sd/test/app/rtsp2301 It will probably take quite a while to get RTSP working reliably and properly on these cameras because we are starting from scratch. We do not have the source code for RTSP used on Fritz firmware for example. If we did, we could modify it to work on these other cameras and also extend the functionality (extra features). I am also working to make RTSP work at the same time as the official Xiaomi programs. |
@cnberg |
Thanks for your great work!! I'm really looking forward to have a hack can work on xiaoyi v2 & v3 camera which supports RTSP. ls /tmp, I got:
I will try your new version right now. |
@cnberg At least with this release you will get web server, telnet server, ftp server working. RTSP is a work in progress. EDIT: The camera should also be functional using the official Xiaomi app when the proxy server gets configured. |
GREAT JOB! This ROM works very well! I got a webpage titled "Yi Home 17CN". telnet & ftp working perfectly. But there is no voice prompt when the camera started or connecting wifi. |
@cnberg |
Yes. First time I booted this camera without any prompt, I reset it, and boot again, also no voice prompts (Such as waiting for connect/connecting wifi/wifi is connected). Actually, I'm in mainland China, so I never heard "This camera can only be used within China" :P |
Hmm...that is strange. The audio files that the camera uses are linked in the following location
|
@cnberg Can you try the following pair of images to make sure it still works properly for the 17CN. In addition, it may fix the audio issue you were having before. Firmware files below: home: https://www.dropbox.com/s/lxwxvm1haydkqmb/home_y18?dl=0 |
Has anyone had experience hacking the Yi Home 27US camera? I'm assuming it's this one on Amazon https://www.amazon.com/YI-Camera-Wireless-Security-Surveillance/dp/B019MMRV1M I'll be getting one today and hopefully I'll try to see if it works if I have time tonight. Nevermind I see another post related to the 27US and the sticker should have a serial # on it. EDIT: |
@TheWayAway |
@shadow-1 the 27US version seem to work fine. I was able to load it and I can hit the cam by IP. (I have a black US edition cam) Would you please post an update if the FW with RTSP is available? Thanks! |
@nosmex |
I tried this hack on 27US version camera, and it worked beautifully. I plan to use this camera as a car reversing camera, and see the feed on a mobile phone that would be running a wifi hotspot too. How do i ensure that everything works and remain on local network. How can i ensure that it does not require internet access for it to work ? (I'm hoping that rtsp work would make it possible to directly see the feed on browser or any other app) [BTW, it also seems that camera requires active internet connection for establishing the link between camera and app. Once the link is on, even if i turn the data off on the phone streaming works fine.] |
@amggupta RTSP should resolve this issue as it will not be relying on the Xiaomi app to work From your experimentation, it appears once the camera has authenticated with the Xiaomi server (only occurs at boot) and has connected to the camera, you no longer require an Internet connection. |
Yeah, if RSTP can work on this setup that would be awesome. along with the boot, I think it requires the working internet link from phone to camera at the time of launch of feed. Not very optimal as reverse cam. Also i dont want it to 3g/4g data on the mobile to keep sending some part of feed data to servers. Dont care about security, but worry about data usage. |
Looks like there is a new FW update: 1.8.7.0D_201708091510 |
On firmware versions 0.1.4-beta2 onwards, it is safe to perform Xiaomi updates. It will not affect yi-hack-v3. |
After flashing 27US with |
@shadow-1 any advice ? |
@deanet It has been tested on the Yi Home 1080p and is working. However it will not work with the 720p versions of the camera (Yi Home, Yi Home 17CN / 27US, Yi Dome) without modifying the code and recompiling. I am unsure whether it will work with the Yi Dome 1080p without modification. Also be aware that there are some limitations with this implementation at this stage. |
my camera version is Yi Home 17CN. How to recompile the code ? it's small linux box with different processor (amd or intel). |
@deanet That particular implementation that you linked to is compiled against the image sensor library applicable to the 1080p version of the camera. I have hosted the SDK for the chipset used on the Yi Home 17CN (HiSilicon Hi3518eV200) on my Box account: https://app.box.com/s/cibs7n1mgvhqaqjlidtveegu1uajt5yr The latest version of the SDK I currently have is; Hi3518E V200R001C01SPC040. The source code for this particular RTSP implementation is available here: https://github.com/xmflsct/yi-hack-1080p/files/908602/rtsp2301_20170409.zip |
How can I support project and RTSP development? Paypal? Maybe some other people want to support. |
Many thanks! Another happy user on Yi Home 17CN! Now patiently waiting to try RTSP. A hack to adjust the time zone would be a big + :) |
@Ordep @tbolsh Feel free to test it. If there are any issues, can you let me know so they can be fixed. I believe the Yi Home will only require the rootfs partition to be flashed, unlike the other Xiaomi cameras which I support. rootfs: https://www.dropbox.com/s/ukqd6uptf8nvlfw/rootfs?dl=0 In case there are issues and you would like to go back to stock firmware. I have created a recovery image compatible with the Yi Home camera: |
@shadow-1 That's great. Here's the steps I took.
What's the best way to send you the log files? Thank you |
@Ordep Keep in mind that the firmware file for the Yi Home is smaller than the firmware on the other supported cameras, so I expect the yellow light to flash for 10-20 seconds before the camera boots rather than the 30 seconds like the other supported cameras. Assuming that the firmware has been flashed, does Telnet of FTP work? Does the camera still work with the Yi Home app? I have a suspicion that I have a bit more work to complete with BusyBox. However it is best to confirm. |
@shadow-1 Couldn't see the yellow light blinking, although it seems I have ftp access, using the root user and it is still working fine using the app. When I try telnet it I get a login incorrect. PS: Tried to reset the camera this time, in case it helped. Cheers |
@Ordep If the yellow light still doesn't blink when booting up with either the Recovery firmware or the Custom firmware. Can you try another microSD card? |
@shadow-1 some progress :) I manage to install the custom software. PS: I did notice the camera is once in a while blinking blue Thank you |
@Ordep |
@shadow-1 that password works for me! |
Constant behavior: blue light is blinking every minute (wi-fi lost and then coming back). Hope this gives you some leads. Thanks for this! |
Have been actively following this thread am confused if the 27US version will work on the 22US too :( Edit: Just read up again and I got my answer. Eagerly waiting for your new build to test on my 22US Camera. |
this rootfs works with my 12cn version Version the only thing is ( ERROR: Could not connect to freevpn.ninja, ensure that you are connectected to the Internet. ) and sometime the blue led blinking because it lost connection with wifi ? after blinking few second , camera back online |
12cn camera flash this rootfs first , after that config the proxy by manual type in random_chain change the proxy by going to http://spys.one/proxys/CN/ , after that go to test proxy and save it go to ( http://www.xiaoyi.com/home/firmware/download/ ) download the latest firmware ( 1.8.7.0C_201705091058home.zip ) from official webside and throw home and home_y18m inside sd card , put the sd card into camera , after that pair it with app , and it success connected to app , you can also go to the ProxyChains-ng by camera ip
|
Any progress on the wifi resets on the 22cn? How can I revert to stock again? |
Wondering if there has been any progress on the 22US Devices? |
I second that about willing to help with the testing for a 22US. (First time posting so I apologize if I did this incorrectly.) |
I tried this rootfs and I've a very instabile wifi connection and SSH/telnet Is not working. Where are the source code for this camera version? |
It appears the recovery rootfs had the wifi issues. Does anyone have a dump of the 12CN original rootfs? |
I got the same problem...and I'm so regret to use it(rootfs). |
Hello! I could look into dumping and helping with development as I do have an extra of this camera lying around. How would I go about doing that? |
Hello!
Is it possible to use this hack for YI Home camera? The "/fritz-smh/yi-hack" project works with the very old firmware and, in fact, I had problems to make it work at all. If you can describe how to compile new fw for YI Home camera - as you did in another issue - I will try to follow and share the experience.
Thank you for providing the "hack"!
The text was updated successfully, but these errors were encountered: