roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
846 stars 112 forks source link

Yi 1080p home not storing WiFi configuration #429

Closed edofullin closed 2 years ago

edofullin commented 2 years ago

The title says it all, every time the cam reboots it asks for the WiFi credentials and does not store them.

Was using 0.3.7, updated to 0.4.4 but the issue persists. Is it a known issue? Can I store the credentials on the SD card by chance?

Let me know if you need more info, thanks in advance!

edofullin commented 2 years ago

Opened the issue too early.

Downloading the configure_wifi.sh script, manually removing the check for the current SSID and password and manually running it from ssh seems to have solved the issue.

I don't know if this is just a workaround though

roleoroleo commented 2 years ago

Sometimes it happens, but the solution you used is correct.

andrzejSlomiany commented 2 years ago

Hello. I have the same problem every time the camera turns off, I need to configure it. Please what should be deleted in the file configure_wifi.sh ?

roleoroleo commented 2 years ago

I think he means:

if [ "$SSID" == "$CURRENT_SSID" ] && [ "$KEY" == "$CURRENT_KEY" ]; then
    echo "ssid and key already configured"
    exit
fi
edofullin commented 2 years ago

I think he means:

if [ "$SSID" == "$CURRENT_SSID" ] && [ "$KEY" == "$CURRENT_KEY" ]; then
    echo "ssid and key already configured"
    exit
fi

Correct, I followed this guide first and connected the cam manually with the qr code, sshed into it, navigated to the sdcard path, removed that check and ran the script manually.

It has been working for a few days now and it rebooted several times so I think this is solved.