Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. ESP8266 OTA (SOLVED)

ESP8266 OTA (SOLVED)

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 5 Posters 16.9k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    niccodemi
    wrote on last edited by niccodemi
    #1

    Hi,

    I followed this guide

    https://github.com/esp8266/Arduino/blob/master/doc/ota_updates/readme.md

    to get OTA working on ESP8266. I can flash and re-upload (over WIFI) BasicOTA.ino without issues. Once I upload GatewayESP8266OTA.ino and afterwards try to upload another sketch I receive message "[ERROR]: No Answer".

    I am using Arduino IDE 1.6.9, MySensors 2.0.0, ESP Boards 2.3.0.

    mfalkviddM 1 Reply Last reply
    0
    • N niccodemi

      Hi,

      I followed this guide

      https://github.com/esp8266/Arduino/blob/master/doc/ota_updates/readme.md

      to get OTA working on ESP8266. I can flash and re-upload (over WIFI) BasicOTA.ino without issues. Once I upload GatewayESP8266OTA.ino and afterwards try to upload another sketch I receive message "[ERROR]: No Answer".

      I am using Arduino IDE 1.6.9, MySensors 2.0.0, ESP Boards 2.3.0.

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      @niccodemi OTA needs to be added to the gateway sketch (and all other sketches where you want OTA capability).

      From the instructions you linked to:
      Note: To be able to upload your sketch over and over again using OTA, you need to embed OTA routines inside. Please use BasicOTA.ino as an example.

      N 1 Reply Last reply
      1
      • mfalkviddM mfalkvidd

        @niccodemi OTA needs to be added to the gateway sketch (and all other sketches where you want OTA capability).

        From the instructions you linked to:
        Note: To be able to upload your sketch over and over again using OTA, you need to embed OTA routines inside. Please use BasicOTA.ino as an example.

        N Offline
        N Offline
        niccodemi
        wrote on last edited by
        #3

        @mfalkvidd ok, I'll try. I thought that's what GatewayESP8266OTA sketch was supposed to do.

        mfalkviddM 1 Reply Last reply
        0
        • N niccodemi

          @mfalkvidd ok, I'll try. I thought that's what GatewayESP8266OTA sketch was supposed to do.

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by mfalkvidd
          #4

          @niccodemi yes you are right. Sorry about that. The OTA stuff is already included in GatewayESP8266OTA. Then it should work.

          What output do you get on serial when you try updating?
          Have you modified GatewayESP8266OTA or are you using the example without modification? (except setting ssid and password)
          Does the gateway work (can you ping it, does it forward messages)?

          N 1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            @niccodemi yes you are right. Sorry about that. The OTA stuff is already included in GatewayESP8266OTA. Then it should work.

            What output do you get on serial when you try updating?
            Have you modified GatewayESP8266OTA or are you using the example without modification? (except setting ssid and password)
            Does the gateway work (can you ping it, does it forward messages)?

            N Offline
            N Offline
            niccodemi
            wrote on last edited by
            #5

            @mfalkvidd I reinstalled Arduino IDE and libraries and that seems to fixed the issue.

            1 Reply Last reply
            0
            • mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              Strange. But great that it got fixed :)

              1 Reply Last reply
              0
              • Daniel OliveiraD Offline
                Daniel OliveiraD Offline
                Daniel Oliveira
                wrote on last edited by Daniel Oliveira
                #7

                Hello all,

                Just to share my experience with OTA for the ESP8266 and VisualMicro for future reference, I think that there is no need to create a new topic as the search button works pretty well :)

                I've followed the toturials:
                http://esp8266.github.io/Arduino/versions/2.2.0-rc1/doc/ota_updates/readme.html
                http://www.visualmicro.com/page/esp8266.aspx

                Setting the IP of the ESP8266 works pretty well but I was not able to make the bonjour service to work maybe because of windows 10 ou Kaspersky firewall.

                The Issue that I've faced was after uploading the sketch, the ESP8266 did just stuck at boot or entered a bootloop and I've got this message "rst cause:4, boot mode:(3,6)"

                If you're facing the same or a similar issue I recommend checking your power source, I've added a 470uF capacitor between Vin and GND and start using a proper power supply even when connected to USB and the problem is gone.

                Source: https://github.com/esp8266/Arduino/issues/1328

                MySensors rules my home :)

                1 Reply Last reply
                2
                • V Offline
                  V Offline
                  vanjsy
                  wrote on last edited by
                  #8

                  Hi, is it okay if I ask how can I embed OTA code to my arduino sketch for me to be able to upload over and over again? Im working for Temperature Sensor. Thanks you.

                  M 1 Reply Last reply
                  0
                  • V vanjsy

                    Hi, is it okay if I ask how can I embed OTA code to my arduino sketch for me to be able to upload over and over again? Im working for Temperature Sensor. Thanks you.

                    M Offline
                    M Offline
                    manutremo
                    wrote on last edited by
                    #9

                    @vanjsy Use the sketch here - you can use it as is (change ssid and pwd of course) or add the missing pieces to yours.

                    1 Reply Last reply
                    1
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    29

                    Online

                    11.7k

                    Users

                    11.2k

                    Topics

                    113.1k

                    Posts


                    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • MySensors
                    • OpenHardware.io
                    • Categories
                    • Recent
                    • Tags
                    • Popular