roleoroleo / sonoff-hack

Custom firmware for Sonoff GK-200MP2B camera
GNU General Public License v3.0
200 stars 45 forks source link

S-CAM Documentation #138

Open couriersud opened 1 year ago

couriersud commented 1 year ago

I am running 0.1.5 on a fairly recent SONOFF firmware on the S-CAM model:

Firmware Version 0.1.5
Base Version V5520.2053.0504build20230103
Model S-CAM

In the Readme.md it is stated that the sd-card should be formatted using fat32 filesystem. But than in the ewelink app the sd-card is reported as unformatted.

What worked for this model was:

darkxst commented 1 year ago

Formatting the sd-card in the ewelink app is certainly the fail proof way of doing it and people have reported having to do this previously. However I have always formatted sd-cards on my computer (Ubuntu) and never had a problem.

couriersud commented 1 year ago

The format by the firmware creates an empty file IsFormatted in the root of the sd-card. As long as it does not exist, the eWelink app reports the sd-card as unformatted and blocks all sd-card related actions.

darkxst commented 1 year ago

Sonoff-hack still boots without that file though? I assume it must since I dont have it on my sd-cards.

couriersud commented 1 year ago

Yes, Sonoff-hack boots. But the sd-card is not recognized by the ewelink cloud. In the app, it is reported as unformatted and all sd-card related functionality won't work.

darkxst commented 1 year ago

Does motion event recording work?

In anycase that would easy to check and fix in boot scripts [ ! -f /mnt/mmc/isFormatted ] && touch /mnt/mmc/isFormatted

couriersud commented 1 year ago

Yes, motion event recording strangely works. But eWeLink shows the SD card as unformatted.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

SirSheik commented 2 months ago

Hello. Has anyone managed to get the hack working with the latest firmware 50520230320? I followed the steps in this topic, previously formatting the card with the APP and then include the latest firmware available of this project (.tar file in root folder) without touching the folder and the file that creates the APP itself, but I can not access by http or ssh. Any help or advice is well appreciated. Thank you very much

SirSheik commented 2 months ago

Hello. Has anyone managed to get the hack working with the latest firmware 50520230320? I followed the steps in this topic, previously formatting the card with the APP and then include the latest firmware available of this project (.tar file in root folder) without touching the folder and the file that creates the APP itself, but I can not access by http or ssh. Any help or advice is well appreciated. Thank you very much

I answer myself. I confirm that the version 0.17 - GK-200MP2-B works correctly also for the S-CAM with the latest official firmware version as of today V5520.2053.0505 build20230320. My problem is that I didn't understand the instructions and I thought that I had to unzip the .tgz file and leave the .tar file in the root folder, but I also have to unzip the .tar file. I leave a screenshot of how it has to be the SD in case it helps someone in the future. The file "IsFormatted" that creates the APP when the SD is formatted must be left so that the camera recognizes the card correctly. Thank you very much for this great hack, thanks to this I will finally be able to use the camera in 100% offline mode. Image 485