Skip to content
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

Reboot every OTA firmware update #29

Open
vampywiz17 opened this issue Dec 1, 2022 · 7 comments
Open

Reboot every OTA firmware update #29

vampywiz17 opened this issue Dec 1, 2022 · 7 comments

Comments

@vampywiz17
Copy link

Hello there,

If i update ESPhome, every time at need to try about 10-15 times that finally upload it. It restart when i upload the firmware via OTA.

Normal usage it not restart, only when i update it.

I can see it in the log:

Linking /data/csengo/.pioenvs/csengo/firmware.elf
RAM:   [=         ]  11.9% (used 38944 bytes from 327680 bytes)
Flash: [=====     ]  53.7% (used 986054 bytes from 1835008 bytes)
Building /data/csengo/.pioenvs/csengo/firmware.bin
esp32_create_combined_bin(["/data/csengo/.pioenvs/csengo/firmware.bin"], ["/data/csengo/.pioenvs/csengo/firmware.elf"])
Wrote 0x100c40 bytes to file /data/csengo/.pioenvs/csengo/firmware-factory.bin, ready to flash to offset 0x0
========================= [SUCCESS] Took 96.03 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of csengo.local
INFO  -> 192.168.31.154
INFO Uploading /data/csengo/.pioenvs/csengo/firmware.bin (986176 bytes)
Uploading: [====================                                        ] 34% 
ERROR Error sending data: [Errno 104] Connection reset by peer

[20:07:58][C][mdns:104]:   Hostname: csengo
[20:07:58][C][ota:093]: Over-The-Air Updates:
[20:07:58][C][ota:094]:   Address: csengo.local:3232
[20:07:58][C][ota:097]:   Using Password.
[20:07:58][W][ota:103]: Last Boot was an unhandled reset, will proceed to safe mode in 7 restarts
[20:07:58][C][api:138]: API Server:
[20:07:58][C][api:139]:   Address: csengo.local:6053
[20:07:58][C][api:141]:   Using noise encryption: YES
@nagyrobi
Copy link

nagyrobi commented Dec 1, 2022

Typical case of weak WiFi coverage, or interference (close to other network equipment/psu) in the place where you have placed the ESP.

@vampywiz17
Copy link
Author

@nagyrobi

First i think the same. But i try a lot of places and it do the same everywhere... Other ESP-s with same place update without any problem.

@nagyrobi
Copy link

nagyrobi commented Dec 1, 2022

Bad ESP...

@plantroon
Copy link

This may sound stupid but try rebooting your wifi router/ap. Do you run OpenWRT on it by any chance? I have this same problem and that's what helped.

@vampywiz17
Copy link
Author

I use Unifi AP-s. it restarted a many times.

@plantroon
Copy link

plantroon commented Dec 3, 2022

I use Unifi AP-s. it restarted a many times.

Try restarting everything and flashing as soon as possible after the restart. Every time I change configuration of any esphome device I have to do that before flashing. But it may be a different problem entirely of course...

Btw, I see your nick @vampywiz17 in a lot of places regarding doorbells and sonoff rf bridge as well - did you by any chance make ANY kinetic button work with sonoff rf bridge or any other similar device? This setup from pauln works perfectly for me, but I'd still like to know if Sonoff bridge can be made work with these kinetic buttons.

@vampywiz17
Copy link
Author

@plantroon

Yes, i able to use a Kerui self powered doorbell with rtl433.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants