fritz-smh / yi-hack

Xiaomi Yi Ants camera hack
1.41k stars 339 forks source link

12CN always yellow on #231

Closed MoienBowen closed 4 years ago

MoienBowen commented 4 years ago

Firmware: 1.8.7.0C_201705091058 Model: 12CN


First case:

Second case:

Third case:

In first and second cases, there won't be record and record_sub folders.


I find the issue #212. But the case is even I turn the debug on, there is no new file comes out (with 15min waiting while yellow on).


ipconfig on win10: IPv4: 192.168.178.x Subnet Mask: 255.255.255.0 Default Gateway: 192.168.178.1

yi-hack.cfg: IP=192.168.178.40 NETMASK=255.255.255.0 GATEWAY=192.168.178.1 NAMESERVER=192.168.178.1 ... DEBUG=yes

wpa_supplicant.conf: ssid="xxx_2.4GHz" .. psk="rightpassword"

kruschman commented 4 years ago

This is an abandoned project. I wouldn't expect it to work in any case.

MoienBowen commented 4 years ago

Solved:

  1. create folder "test" at root folder
  2. create file "equip_test.sh" in "test"
#!/bin/sh
# Telnet
if [ ! -f "/etc/init.d/S88telnet" ]; then
    echo "#!/bin/sh" > /etc/init.d/S88telnet
    echo "telnetd &" >> /etc/init.d/S88telnet
    chmod 755 /etc/init.d/S88telnet
fi
dr=`dirname $0`
# fix bootcycle
mv $dr/equip_test.sh $dr/equip_test.sh.moved

echo "root:n00d1e5Yummy" | chpasswd
reboot
  1. copy "sd\test\rtspsvrM" to root folder
  2. insert the memory card back to camera
  3. plug-in
  4. from terminal, telnet camera_ip
  5. cp /tmp/hd1/rtspsvrM /home/rtspsvr
  6. set date and time date -s 'YYYY-MM-DD hh:mm(:ss)'

source: https://bbs.hassbian.com/thread-3402-1-1.html