Coder Social home page Coder Social logo

yi-hack's Introduction

=============== Yi-hack project

Personnal note - 4 october 2016

Hi, I am Fritz, the one who created this project. Since summer 2016, I have a lot of other topics to work on (especially the Domogik home automation project) and I have nearly to time for this project.

I would like to say THANK YOU to the people who are currently helping the others in the issues opened and who have submitted some pull requests! Your help is really welcome and I am very happy that this project is interesting to many people !!!

Thanks again to all of you, users and contributors !

If one of the regular contributor wish to got some administrator permissions to this repository, please, just create an issue and I will be happy to give you the access.

-- Fritz

Purpose

This project is a collection of scripts and binaries file to hack your Xiaomi Yi Ants camera.

Alt text

This camera has the default following features :

  • wifi
  • night vision
  • motion detection : a video file is generated if a motion have been detected in the last 60 seconds.
  • send video data over the network on Chinese servers in the cloud to allow people to view camera data from their smartphone wherever they are.
  • setup thanks to a smartphone application.
  • local video storage on a SD card
  • no RTSP server in the last firmwares

This hack includes :

  • ntpclient (set date and time over internet)
  • Base firmware is : M release.
  • no more cloud feature (nothing goes out of your local network)
  • no more need to use a smartphone application
  • RTSP server activated
  • Telnet server activated
  • HTTP server activated
  • FTP server activated
  • No more (chinese) voices on startup

Warning about some models that are usable only in China

If you have some issues to use your camera, even without this firmware, please read this webpage : https://diy.2pmc.net/solved-xiaomi-xiao-yi-ant-home-camera-can-used-china/ (more information about users issues here : #8 )

Installation on the Yi camera

The memory card must stay in the camera ! If you remove it, the camera will start without using the hack.

Prepare the memory card

Clone this repository on a computer :

git clone http://github.com/fritz-smh/yi-hack.git

Then, format a micro SD card in fat32 (vfat) format and copy the content of the yi-hack/sd/ folder at the root of your memory card.

The memory card will so contain :

  • home : the official firmware file compliant with this hack
  • test : the folder which contains the hack scripts and binaries
  • record : this folder will only be created when some video records will be added on the memory card by the camera
  • record_sub : this folder will only be created when some video records will be added on the memory card by the camera

Configure the Yi camera on the memory card

You will need to set a static IP adresse to the camera. To check for the available IPs on your network, you can use the Fing application to scan the network on your Android smartphone.

To configure the wifi network to use, edit the file test/wpa_supplicant.conf.

To configure your IP address, open the file test/yi-hack.cfg and set the values.

Start the camera

  • If plugged, unplug the Yi camera
  • Insert the memory card in the Yi camera
  • Plug the Yi camera

The camera will start. The led will indicate the current status :

  • yellow : camera startup
  • blue blinking : network configuration in progress (connec to wifi, set up the IP address)
  • blue : network configuration is OK. Camera is ready to use.

You can test is your camera is up and running this hack with your browser on url http://ip/. You should see this page :

Alt text

Warning : changes done on the original camera filesystem

One change is needed on the camera filesystem which will not be reverted by removing the memory card : the file /home/timeout.g726 is renamed to /home/timeout.g726.OFF.

This is done because a process (rmm) tries to connect to the cloud process without success (as it is not started) and raise the play of a chinese voice timeout file. If this file would not be renamed, you would be bothered with this message.

How can I know which is the version of a firmware 'home' file ?

Just do : strings home | grep version. Example :

$ strings home  | grep 1.8.5
version=1.8.5.1M_201512011815

Use the camera

Domogik

You can easily use the Yi camera with the Domogik (http://www.domogik.org) home automation solution. You just need to install the domogik-plugin-yi package.

Access the video stream over RTSP

RTSP server is on port 554.

You can access the video over RTSP on 3 urls :

There is no login and password and currently no way to set it.

Access the history of motion detection

Each time a motion is detected, the camera will generate a video file (60s max). This file is stored on the memory card and can be accessed over :

  • http server
  • ftp server

The simplest way is to browse the file from the http server.

To know if a motion have been detected in the last minute, you can check the url http://ip/motion (GET). It can give :

  • when no motion is detected : an empty content
  • when motion is detected : a file path to the video file from the root of the http server

Telnet server

The telnet server is on port 23.

Default login/password :

  • login = root
  • password = 1234qwer (unless you specified another password in yi-hack.cfg file)

Ftp server

The ftp server is on port 21.

There is no login/password required.

I want more !

Some scripts are provided in the sd/test/scripts folder. Please read the README.md file in this folder for more informations.

Uninstall the hack

First, remove the SD card. But keep in mind that the timeout sound has been altered.

If you want the timeout sound back: Edit equip_test.sh to look like this:

#!/bin/sh
######################################################
# Xiaomi Yi hack restore
######################################################
 
### Rename back the timeout sound file ...
[ -f /home/timeout.g726.OFF ] && mv /home/timeout.g726.OFF /home/timeout.g726
 
sync

Then reboot the camera so the script runs. After remove the stuff from sd card and you are all original.

How it works ?

Hack content

home                           Official firmware 
test/                          Yi hack folder
  yi-hack.cfg                  Yi hack configuration file
  equip_test.sh                This script is called on camera startup and will launch all the needed processes
  check_motion.sh              This script will check each minute if a motion video has been recorded and fill the **motion** file of the http server
  rtspsrvK|L|M                 The various RTSP server binary releases (the final letter is corresponding to the firmware)
  http/                        HTTP server folder
    index.html                 HTTP server home page
    record/                    Mount point to access video records
    server                     HTTP server binary
  wpa_supplicant.conf          Configuration file for wifi  
  log.txt                      Log file of the hack (filled by equip_test.sh)

equip_test.sh

TODO

check_motion.sh

Script that runs from equip_test.sh and tell us if a new video was created in the last minute (a video file is created in case of motion detection).

If a file is found, it adds the name of the file to the section GET /motion on the http server.

yi-hack's People

Contributors

alpha14 avatar fritz-smh avatar garvarma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yi-hack's Issues

Have to reset it every time i unplug it

Hi,
Thank you for your work this is very good for the owners of this camera.
The thing is that i don't always have the camera plugged and i dont have it always on the same place.
So every time i unplug it and plug it on another place i have to reset the camera for it to work. Is this normal?

Another thing wich i don't think it's related to this hack is that the camera works without any problems near my wifi router but if put it for example one room away the wifi signal that it gets it's not good at all and sometimes i can't watch the rstp. Other wifi devices work without problems there.

the camera does not record video

help
Everything works fine but the camera does not record video

Yet she has 000.qui FOUND create a folder contains a file
FILE 0000.CHK

thank you in advance for your help

Jacques L.

comportement bizarre

Hello,

Merci bcp pour ce super boulot!
J'aimerai bien pouvoir en profiter mais je rencontre quelques problèmes :-)

lorsque je démarre la CAM avec la carte SD la led passe par les états suivants
jaune fixe
bleu clignotant
bleu fixe
et puis la led s'eteint

Ci-joint mon fichier de log mais la j'avoue être un peu déconcerté...
log.txt

J'essaie de la pinger mais rien n'y fait.

Si quelqu'un a une idée, je suis preneur :-)
Merci

Pas d'accès web telnet ok

Bonjour

Sur une version chinoise avant novembre 2015 et avec version 1.8.6.1A.201602241619

Connexion Telnet ok ping Internet ok date ok accès Web ko

Lock down access to camera

Currently anyone on the network can open the camera download files etc, each feature should be able to be locked down with a password or turned off.

The best way to achieve this would be to have a settings link on the web-server that requires a user to log in, and all settings are managed there.

Timestamp

Hi,

is there any way to add a parameter to disable timestamp?

thx :)

probleme config

bonjour
je n'arrive pas a trouver le ip de la ANTS nul part.

j'ai flasher la camera em firmware B et en suite fait le yi-hack.
mais impossible de la trouver dans mes router.

le led bleu rest allumer elle capture les mouvements. mais je ne la trouve pas.

merci d'avance

1.8.6.1 B FW doesn't seems to be able to downgrade

I tried to downgrade using querex files and procedure, then applying the hack. My Camera is on the good IP, I can access it via FTP, but not any other access. And Firmware is still 1.8.6.1 B. Any chance to have the hack working for 6.1 FWs?
Thx
elembee

Installation problems

Good day, when I start yi camera with the memory card inserted the LED just stay stuck on orange and nothing happens. I have already configured the wifi and network configs.

Any other advice how to get this project running or how to debug this problem? Thanks in advance

Performance improvements

Hi,

Thanks a lot for this hack ! It's sooooooooooo good ! I'm using this camera in a robot, it was a bit slow to be able to drive the robot (1.5s lag). Since the hack, the lag is reduced under 1s.

Do you think it can again be improved by removing some other features from the camera:

  • Keep only one video stream
  • Remove audio stream
  • Remove motion detection ...

Thanks a lot for this project ! 👍

cron to startup

Can you add cron to the startup? I tried adding 'crond &' to 'equip_test.sh but the camera would not boot after I did. I also trying adding /etc/init.d/S89crond. I would like to use crontab to check if the network is up and if it is not up reboot the camera.

Camera connot connect to the internet

The camera cannot update his time/date because he can't connect to the internet.

I tried to Ping to 8.8.8.8 in tellnet but it gives me 100% packageloss. Is there a way where i can configure internet acces?

Xiaomi ants 2 ?

Hi,

Is this hack usable with the second version of the xiaomi ants ?

Regards,

Pas d'accès à la caméra

Hello,

Merci pour le boulot effectué !
Je n'ai malheureusement pas d'accès à la caméra.

Pourtant la connexion wifi semble bien se passer, elle est détectée par ma box, par contre mon gateway est en 192.168.1.1 et elle semble être en dur à la valeur 192.168.1.255, si j'en crois les logs. Ou alors c'est parce que je me suis trompé la première fois et du coup c'est gravé quelque part ?

Le serveur FTP semble attendre des connexions entrantes sur le port 0.0.0.0
Le serveur RSTP fait état d'une "unknown operation 0x1 error"
Quand à la log HTTP elle essaie de faire un bind sur une adresse qui est déjà utilisée, or je n'ai pas de 192.168.1.128 d'utilisé.

Pas de mise à jour de l'heure non plus.

Je joints mes logs :

log_rtsp.txt
log.txt
log_ftp.txt
log_http.txt

Merci pour le coup de main :)

PS : je me sentirai bête si j'ai "juste" à faire un reset de l'engin, mais j'ai tellement galéré pour la faire fonctionner par défaut avec mon smarphone que je n'ose pas ;)

Caméra non connectée

Bonjour,

Toutes les étapes ont été faite, la caméra au démarrage passe par les 3 étapes décrites jusqu'à l'étape LED bleue allumée en continu.
Mais impossible de se connecter à la caméra et l'IP de la caméra n'est pas présente sur le réseau.
Modèle de la caméra : YHS-113

Pour revenir "a zéro", comment faire ? J'ai reset la camera mais je n'arrive pas à la connecter à l'application MiHome.

Merci pour votre aide

Pas d'accès à la caméra

D'abord merci pour ce hack :)

J'ai bien suivie la procédure, la caméra se connecte bien au wifi (et je la vois sur le réseau) mais la page html n'est pas accessible via navigateur (Chrome/IE).

La caméra enregistre bien les mouvements détectés par contre.

J'ai activé le mode debug mais rien de notable à première vue (log_http & log_rtsp sont vides).

Cannot contact the camera

Hi !

I tried to install the firmware. I placed the files on a micro sd, edited the 2 configuration files. The camera blinks and the stabilize.

I can see the camera with nmap but not with http, ftp or ping. I have no sound.

I attached the log file and the yi-hack.cfg file.

My camera were shipped on 09/08/2015.

Thank you !

log.txt
yi-hack.cfg.txt

copy_to_ftp.sh

please can you provide the full path where to copy the copy_to_ftp.sh.

Thank you

IR illuminator doesn't seem to turn on

First, thank you for all of your work on this project! This distribution of hacks seems to be the best combination of all the changes out there for the camera.

My problem is that the IR illuminator has stopped turning on. I can enable and disable the IR filter via sendMQ mask commands and can verify as I can hear the filter clicking in and out:

http://en.miui.com/thread-135585-1-1.html

However, I can't seem to turn the IR illuminator LEDs manually using those commands and they don't come on anymore when it is dark. I know they used to work when I ran the original firmware from the manufacturer, as I verified these using another camera pointed at the front of the Yi camera.

Is there a sequence I need to set them up with? (eg leave them off before I reboot the camera) Or is there something I can do to help debug this issue?

European Version

Hello,

first, this is not an issue.

I have the European version of the camera and I'm wondering if I could help a little bit by offering remote access to the camera's console via Internet.

Regards, Paul

Motion Detection

Hi,

After installing the hack, the motion detection and subsequent file creation seemed to work at first, but later the camera stopped creating video logs for motion detection despite there being movement in front of it. It acted as if no motion was detected. One possibility is that we were working on the FTP connection, but we'd prefer if both worked. Do you have any advice on what could be causing the motion detection issue?

(I'm not sure whether its a relevant issue, but the timestamp displays year 1970; record files indicate 1980).
image

Thanks.

accès caméra en http et de l'extérieur

Bonsoir,
j'ai suivi avec intérêt ce magnifique tuto , et quel travail ? Bravo et merci.
tout a fonctionné pour moi, l'installation, la config et l'utilisation sur mon réseau local en accédant à la caméra avec une adresse interne en 192 en protocole rtsp.
J'ai mis l'url rtsp://198...:554/ch0_0.h264 dans VLC et ça marche très bien.
Par contre je n'y accède pas en http avec l'adresse indiquée : http://198...:554/ch0_0.h264
Et donc, je pense que c'est à cause de cela que je n'y accède pas de l'extérieur vers mon ip fixe.
Mon routeur (srf, virgin mobile) me permet des translations de port uniquement en tcp et udp . Est-ce lié ?
En fait je ne comprends pas grand chose au réseau.
Merci de votre aide
Barny80

Cam non visible sur réseau

hello
je pense que j'ai un soucis niveau réseau.
Dans les logs le wifi semble pourtant ok.
mais on voit bien que le stp est ko puisque pas de mac de la date
j'imagine que j'ai loupé un truc.
voici mon log.txt

`
Starting to log...
Hardware version informations :
hwplatform=2
Software version informations :
[sys]
version=1.8.5.1M_201512011815
[kernel]
version=3-0.8
provider=18e
devtype=18e
Firmware letter is : 'M'
The RTSP server binary version which will be used is the 'M'
The HTTP server binary version which will be used is the 'M'
Check for some files size...
-rwxr-xr-x 1 root root 144885 Mar 28 2016 /home/hd1/test/http/serverJ
-rwxr-xr-x 1 root root 144912 Mar 28 2016 /home/hd1/test/http/serverM
-rwxr-xr-x 1 root root 121932 Mar 28 2016 /home/hd1/test/rtspsvrI
-rwxr-xr-x 1 root root 39572 Mar 28 2016 /home/hd1/test/rtspsvrK
-rwxr-xr-x 1 root root 39580 Mar 28 2016 /home/hd1/test/rtspsvrM
The blue led is currently blinking
Debug mode = no
Check for wifi configuration file...*
/home/wpa_supplicant.conf
Start wifi configuration...

Status for wifi configuration=0 (0 is ok)
Do network configuration 1/2 (ip and gateway)
Done
Configuration is :
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

ra0       Link encap:Ethernet  HWaddr B0:D5:9D:24:B1:BA  
          inet addr:192.168.1.121  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::b2d5:9dff:fe24:b1ba/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:417 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:86954 (84.9 KiB)  TX bytes:400 (400.0 B)

Do network configuration 2/2 (DNS)
Done
Get time from a NTP server...
But first, test the NTP server '0.fr.pool.ntp.org':
Previous datetime is Thu Jan 1 02:00:49 GMT 1970
Done
New datetime is Thu Jan 1 02:01:19 GMT 1970
Start blue led on
Start ftp server...
Check for ftp process :
1729 root 1716 S tcpsvd -vE 0.0.0.0 21 ftpd -w /
Start http server : serverM...
Check for http server process :
1768 root 1408 S ./serverM 80
Start rtsp server : rtspsvrM...
Check for rtsp process :
1815 root 2644 D ./rtspsvrM
Processes after startup :
PID USER VSZ STAT COMMAND
1 root 1708 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW [kworker/u:0]
6 root 0 SW [rcu_kthread]
7 root 0 SW< [khelper]
8 root 0 SW [kworker/u:1]
143 root 0 SW [sync_supers]
145 root 0 SW [bdi-default]
146 root 0 SW< [kintegrityd]
148 root 0 SW< [kblockd]
161 root 0 SW [khubd]
174 root 0 SW< [cfg80211]
175 root 0 SW [kworker/0:1]
257 root 0 SW< [rpciod]
260 root 0 SW [kswapd0]
314 root 0 SW [fsnotify_mark]
322 root 0 SW< [nfsiod]
331 root 0 SW< [crypto]
405 root 0 SW [mtdblock0]
410 root 0 SW [mtdblock1]
415 root 0 SW [mtdblock2]
420 root 0 SW [mtdblock3]
425 root 0 SW [mtdblock4]
430 root 0 SW [mtdblock5]
435 root 0 SW [mtdblock6]
438 root 0 SW [romblock0]
441 root 0 SW [romblock1]
444 root 0 SW [romblock2]
447 root 0 SW [romblock3]
450 root 0 SW [romblock4]
453 root 0 SW [romblock5]
456 root 0 SW [romblock6]
591 root 0 SW< [kpsmoused]
600 root 0 SW [kworker/u:2]
616 root 0 SW [mmcqd/0]
620 root 0 SWN [jffs2_gcd_mtd4]
624 root 1712 S /bin/sh /etc/init.d/rcS
636 root 872 S < udevd --daemon
642 root 1704 S /bin/sh /etc/init.d/S80network
656 root 0 SWN [jffs2_gcd_mtd5]
657 root 1708 S /bin/sh ./init.sh
664 root 0 SW [flush-mtd-unmap]
675 root 1712 S /bin/sh /home/hd1/test/equip_test.sh
677 root 0 SW [flush-179:0]
680 root 1704 S telnetd
686 root 984 S /home/log_server
798 root 0 SW [RtmpTimerTask]
799 root 0 SW [RtmpMlmeTask]
800 root 0 SW [RtmpCmdQTask]
801 root 0 SW [RtmpWscTask]
931 root 0 SW [hidog]
969 root 1164 S ./peripheral
970 root 1144 S < ./dispatch
971 root 1060 S ./exnet
1087 root 3172 S /home/wpa_supplicant -B -i ra0 -c /home/wpa_supplica
1715 root 97480 S ./rmm
1729 root 1716 S tcpsvd -vE 0.0.0.0 21 ftpd -w /
1768 root 1408 S ./serverM 80
1805 root 3360 S ./record_event
1806 root 14728 S ./mp4record 60
1807 root 1708 S /bin/sh /home/hd1/test/check_motion.sh
1815 root 27252 S N ./rtspsvrM
1819 root 1700 S sleep 30
1952 root 904 S /home/led_ctl -boff -bon
1954 root 1708 R ps

`

Camera not in the local network

Hello guys,

I am not able to see the camera in my network.
I have a recent CN version of the camera.
I enable the log

Check for wifi configuration file...*
/home/wpa_supplicant.conf
Start wifi configuration...
Successfully initialized wpa_supplicant rfkill: Cannot open RFKILL control device Could not read interface ra0 flags: No such device WEXT: Could not set interface 'ra0' UP ra0: Failed to initialize driver interface
Status for wifi configuration=0 (0 is ok)
Do network configuration 1/2 (ip and gateway)
Done
Configuration is :
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Do you have any idea ?

Thank you in advance for your help

Yi-Hack + Appli Xiaomi

Bonjour,
Quels sont les fichiers à éditer afin de pouvoir profiter d'un coté du Yi-Hack, et de l'autre pouvoir toujours utiliser l'appli Xiaomi ?
Je trouve pratique le fait de pouvoir visualiser les moments où un mouvement à été detecté, ce que malheureusement, ton hack ne propose pas (encore :)).

Merci de ta réponse
@+

Impossible de se connecter à la caméra

Bonjour,

Il m'est impossible d'accéder à la caméra (ni ftp, http ou rstp). Pourtant la caméra se connecte au wifi (lumière bleue fixe) et je peux la pinger. Elle enregistre d'ailleurs dans le répertoire sur la sd.
J'ai l'impression que le firmware 1.8.6.1B n'est pas downgradable..

Voici mon fichier log 👍
Starting to log...
Hardware version informations :
hwplatform=2
Software version informations :
[sys]
version=1.8.6.1B_201603181307
[kernel]
version=3-0.8
provider=18e
devtype=18e
Firmware letter is : 'B'
The RTSP server binary version which will be used is the 'I'
The HTTP server binary version which will be used is the 'J'
Check for some files size...
-rwxr-xr-x 1 root root 144885 Mar 28 2016 /home/hd1/test/http/serverJ
-rwxr-xr-x 1 root root 144912 Mar 28 2016 /home/hd1/test/http/serverM
-rwxr-xr-x 1 root root 121932 Mar 28 2016 /home/hd1/test/rtspsvrI
-rwxr-xr-x 1 root root 39572 Mar 28 2016 /home/hd1/test/rtspsvrK
-rwxr-xr-x 1 root root 39580 Mar 28 2016 /home/hd1/test/rtspsvrM
The blue led is currently blinking
Debug mode = yes
Check for wifi configuration file...*
/home/wpa_supplicant.conf
Start wifi configuration...

Status for wifi configuration=0 (0 is ok)
Do network configuration 1/2 (ip and gateway)
Done
Configuration is :
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

ra0       Link encap:Ethernet  HWaddr B0:D5:9D:1D:94:6C  
          inet addr:192.168.1.121  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::b2d5:9dff:fe1d:946c/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:815 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:186460 (182.0 KiB)  TX bytes:200 (200.0 B)

Do network configuration 2/2 (DNS)
Done
Get time from a NTP server...
But first, test the NTP server '0.uk.pool.ntp.org':
PING 0.uk.pool.ntp.org (87.81.181.2): 56 data bytes
64 bytes from 87.81.181.2: seq=0 ttl=51 time=83.049 ms

--- 0.uk.pool.ntp.org ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 83.049/83.049/83.049 ms
Previous datetime is Sun Apr 24 15:30:40 GMT 2016
Done
New datetime is Sun Apr 24 15:30:40 GMT 2016
Start blue led on
Start ftp server...
Check for ftp process :
1191 root 1716 S tcpsvd -vE 0.0.0.0 21 ftpd -w /
Start http server : serverJ...
Check for http server process :
Start rtsp server : rtspsvrI...
Check for rtsp process :
1268 root 2244 S < ./rtspsvrI
Processes after startup :
PID USER VSZ STAT COMMAND
1 root 1708 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW [kworker/u:0]
6 root 0 SW [rcu_kthread]
7 root 0 SW< [khelper]
8 root 0 SW [kworker/u:1]
143 root 0 SW [sync_supers]
145 root 0 SW [bdi-default]
146 root 0 SW< [kintegrityd]
148 root 0 SW< [kblockd]
161 root 0 SW [khubd]
174 root 0 SW< [cfg80211]
175 root 0 SW [kworker/0:1]
257 root 0 SW< [rpciod]
260 root 0 SW [kswapd0]
314 root 0 SW [fsnotify_mark]
322 root 0 SW< [nfsiod]
331 root 0 SW< [crypto]
405 root 0 SW [mtdblock0]
410 root 0 SW [mtdblock1]
415 root 0 SW [mtdblock2]
420 root 0 SW [mtdblock3]
425 root 0 SW [mtdblock4]
430 root 0 SW [mtdblock5]
435 root 0 SW [mtdblock6]
438 root 0 SW [romblock0]
441 root 0 SW [romblock1]
444 root 0 SW [romblock2]
447 root 0 SW [romblock3]
450 root 0 SW [romblock4]
453 root 0 SW [romblock5]
456 root 0 SW [romblock6]
591 root 0 SW< [kpsmoused]
600 root 0 SW [kworker/u:2]
616 root 0 SW [mmcqd/0]
620 root 0 SWN [jffs2_gcd_mtd4]
624 root 1712 S /bin/sh /etc/init.d/rcS
636 root 872 S < udevd --daemon
642 root 1704 S /bin/sh /etc/init.d/S80network
656 root 0 SWN [jffs2_gcd_mtd5]
657 root 1708 S /bin/sh ./init.sh
664 root 0 SW [flush-mtd-unmap]
675 root 1712 S /bin/sh /home/hd1/test/equip_test.sh
677 root 0 SW [flush-179:0]
682 root 1704 S telnetd
686 root 984 S /home/log_server
798 root 0 SW [RtmpTimerTask]
799 root 0 SW [RtmpMlmeTask]
800 root 0 SW [RtmpCmdQTask]
801 root 0 SW [RtmpWscTask]
931 root 0 SW [hidog]
969 root 1164 S ./peripheral
970 root 1144 S < ./dispatch
971 root 1068 S ./exnet
1106 root 3140 S /home/wpa_supplicant -B -i ra0 -c /home/wpa_supplica
1169 root 1708 S ntpd -q -p 0.uk.pool.ntp.org
1185 root 97580 S ./rmm
1191 root 1716 S tcpsvd -vE 0.0.0.0 21 ftpd -w /
1252 root 1708 S /bin/sh /home/hd1/test/check_motion.sh
1268 root 26836 S N ./rtspsvrI
1275 root 1700 S sleep 30
1371 root 904 S /home/led_ctl -boff -bon
1374 root 1708 R ps

Quelqu'un peut éclairer ma lanterne ?
Merci d'avance.

Compatible Synology ?

Tout d'abord merci pour le boulot effectué !

Petite question, est ce que c'est compatible avec un Synology ?

J'ai bien flashé la caméra avec le firmware, j'arrive bien à accéder à l'interface web 👍

Merci de ta réponse :)

Pas d'accès web telnet ok

Bonjour

Sur une version chinoise avant novembre 2015 et avec version 1.8.6.1A.201602241619

Connexion Telnet ok ping Internet ok date ok accès Web ko

Voici mon log

Cant connect to wifi...

Sorry about this but I've been trying a lot of times without success.
I tried a few wifi broadcasts, and although I'm absolutely sure of the pswd etc, I can't managed to get the camera through.
Among possible issues, I wondered about two possibilities :

  • do the passwords have to respect the (tedious) passport rules of Yi? Not likely, but I wonder.
  • do the gateway addresses have to end with 255 ?
    In fact my Gateway addresses are always ending by 1. (as given in line 8 of the yi-hack). Not by 255. I wonder if this could be the issue.
    In fact when I look at the log indeed in the ra0 section, I read :
    ra0 Link encap:Ethernet HWaddr B0:D5:9D:63:E3:5C
    inet addr:192.168.8.121 Bcast:192.168.8.255 Mask:255.255.255.0
    inet6 addr: fe80::b2d5:9dff:fe63:e35c/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:343 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:78315 (76.4 KiB) TX bytes:0 (0.0 B)
    Why is this broadcast at 192.168.8.255?
    (the full log is attached if needed).
    Any suggestion welcome.

log.txt

Camera file system changed to read-only!

Bonjour,

for the last 24 hours I was wondering why no new motion files have been recorded. I thought maybe it's a disk space issue... so I telneted into the cam and it turns out that the file system was read-only for some reason.

I rebooted the device... and voilá... I was able to write on the file system again.

How could that have happened?

How can I remount the filesystem as rw when connected via telnet - ?

Bonjour,

short question: I've tried to remount the record folders with read/write (rw) option in order to delete the video file via telnet (or via FTP, which results in a ERR 550 (Permission denied)).

This is what happens when I rm -rf the hell out of the directory:

rm: can't remove '2016Y06M22D08H': Read-only file system
rm: can't remove '2016Y06M22D09H/20M00S.mp4': Read-only file system
rm: can't remove '2016Y06M22D09H/21M00S.mp4': Read-only file system
rm: can't remove '2016Y06M22D09H/32M00S.mp4': Read-only file system
rm: can't remove '2016Y06M22D09H/33M00S.mp4': Read-only file system
rm: can't remove '2016Y06M22D09H': Read-only file system

Listing the mount points gives me the following:

mount -v | grep "^/" | awk '{print "\nPartition identifier: " $1  "\n Mountpoi
nt: "  $3}'

Partition identifier: /dev/root
 Mountpoint: /

Partition identifier: /dev/mtdblock5
 Mountpoint: /home

Partition identifier: /dev/hd1
 Mountpoint: /tmp/hd1

Partition identifier: /dev/hd1
 Mountpoint: /tmp/hd1/test/http/record

All "mount -o remount,rw /partition/identifier" commands fail...

Which folder is the correct one for deleting files?

I don't have the latest version yet, therefore I don't have the "delete_old_videos.sh" file... but shouldn't that script fail as well?

Improvement

Will you add the ability to save videos on nas?

Configuration NTP

Serait-ce possible de paramétrer un serveur NTP spécifique dans le fichier de config ?
Celà permet d'utiliser un NTP local et non publique.
Merci

Start/Stop motion detection and Start/Stop recording

Bonjour Fritz,

Excellent travail, tout fonctionne comme décrit.

J'aurais aimé avoir 2 fonctions en plus:

  • start/stop la détection de mouvement via http par exemple (j'ai peur de faire mal à la carte SD, donc activer cette fonction uniquement quand personne à la maison)
  • start/stop l'enregistrement: simple enregistrement sans détection

Qu'en penses-tu ?

Not able to flash firmware

Hello,
I've tried everything, but can't seem to get the firmware flashed. I put the files on a fat32 formatted drive and restarted the camera with it in, reset the camera, followed the downgrade instructions, but it isn't changing off the firmware the camera came with, 1.8.5L. I've tried download the official M firmware, but that doesn't seem to do anything either. Has anyone gotten over this issue? I'm using the US version

ntp server problem and blue state led off

HI,
congratulations for your work.
I have a problem with the NTP server, brings me the wrong date (1970/01/01 /), can you help me?
Also can I turn off the blue LED by default?
Thanks.

Mise à l'heure GMT

Bonjour,
Une mini question à propos de la mise à l'heure : GMT-2 veut-il dire Paris/Madrid par exemple : GMT + 2, ou bien GMT - 2... Ce qui ne correspondrait à aucun pays...
Dans les autres firmwares il y avait un calcul bizarre à faire et je n'avais pas trop compris comment m'y retrouver. Si on mettait 0 c'était l'heure principale de la Chine, et il fallait faire la différence entre les deux...

J'habite sur le fuseau horaire Paris/Madrid justement. Si GMT-2 est bien comme par défaut, je laisse comme ça :-)

Merci d'avance.

Timezone off 2hrs

I am on Rome time, which is pretty much the same of Paris; using the given string for Paris, which is the exact same for Rome when checking the referral website from yi_hack.cfg, I always get my real time -2hrs. Tried different ntp servers, from two different places.
I appear to not be able to get the time right, I might just put there the timezone of a city normally two hours ahead of Rome, but that would be a quite ugly workaround :)

Pb avec les flux RTSP

Bonjour
merci pour le boulot et pour le partage ! :)
j'ai utilisé ton package et je suis parvenu à downgrader et passer en firmware M.
Je parviens à pinguer ma cam , et j'ai accès à la page YI HTTP Server.
Par contre lorsque je clic sur les 3 liens pour avoir accès aux flux SD HD ou audio j'ai une erreur sur la page.
J'ai testé de visualiser le flux directement avec VLC mais ça ne passe pas ..
avez vous des idées pour orienter mes recherches ? :)
merci pour vos retours

HTTP Server does not start

Everything looks good in the log. Debug is on. log_http.txt is empty. 'ps' does not show serverJ running. I can not browser to camera's IP address.

Start http server : serverJ... Check for http server process :

If I manually run ./serverJ 80
# ./serverJ 80 Segmentation fault

Not storing any video files

Hi,

The stream works perfect but the camera won't store video files on the SD card or the system via ftp.

Also the time starts everytime at 1969/12/31 22:00:00. I already changed the time server but it didn't work.

Region ban still an issue?

Cameras produced after 11 Nov has a region ban while using firmware newer than "L" version.
I saw that you removed cloud feature so region ban will not happen after flashing with your firmware?

pas de flux video

bonjour j'ai acheté le modèle chinois et suivi la procédure
j'arrive bien sur la page web, mais ensuite quand je click sur un lien de streaming je suis redirigé vers : rtsp://192.168.1.167:554/ch0_0.h264 et je reçois un message d'erreur sous IE

sous Chrome, rien ne se passe je ne suis redirigé nul part....

Samuel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.