Hey I am having some internet connection problem once a day and when I reboot or restart my router everything works fine again.
So I was wondering if I can use my ESP8266 to check my internet connection (maybe by pinging some servers) and when it is disconnected just reboot my router remotely by using the interface of my router.
Like going 192.168.1.1 and entering my ID and password, then activating the reboot command somehow.
Is it possible and can someone help me with the circuit diagram and software ?
There are sections where you can pay to get this type of help. If you are like me and do not have the money to spare but have time you can search the internet and find just about everything you need. The ESP8266 or ESP32 would do the job and only require power, now extra hardware other then a case if you want one.
gilshultz:
There are sections where you can pay to get this type of help. If you are like me and do not have the money to spare but have time you can search the internet and find just about everything you need. The ESP8266 or ESP32 would do the job and only require power, now extra hardware other then a case if you want one.
Thanks for the reply but I think I don't need to pay some money for this. It is not a huge problem but I'm a bit lazy tbh...
Most routers support SSH login, you can use it to login from ESP8266 then issue command to reboot it. You can also do HTTP post to router's webserver from ESP8266 with the specific API data to reboot it.
Last option could be an ESP8266 board with a relay that powers the router. If there's no internet connection, ESP8266 can cycle the power of router.
chall3ng3r:
Most routers support SSH login, you can use it to login from ESP8266 then issue command to reboot it. You can also do HTTP post to router's webserver from ESP8266 with the specific API data to reboot it.
Last option could be an ESP8266 board with a relay that powers the router. If there's no internet connection, ESP8266 can cycle the power of router.
I did the 2nd suggestion above, i to used to have issues with my internet slowing down or my wifi and being on the other side of the house, it was a pain to get out of bed during a movie to go stand at the router and unplug and wait and then boot back up the equipment. So i setup a RF solution instead of the ESP route, so that if we are watching tv and noticed buffering in the movies, i would simple click my remote, and it would trigger a relay controlled by an UNO board, It would turn off the modem and router at the same time, then wait for 5 seconds or whatever was recommended by the ISP then turn it back on modem first.. Once that was triggered, i would wait another minute before turning on the router.. and worked like a charm.
I do like the ESP method, run a routine to ping something every so often and if no response reboot the device. The other options are also viable solutions and if you router has the ability to do it, would be worth a try, but are you looking for that level of control or do you really care?