• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    FOTA not working

    scheduled pinned locked moved Troubleshooting
    15 posts 5 posters 2.2k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • jkandasaJ offline
      jkandasa @Daniele
      global:last-edited-by,

      @daniele It should work, non-sleeping node firmware update works ok?

      I never tested sleep node firmware, needs to check. How about other data for sleep node, working as expected?

      one-reply-to-this-post last-reply-time reply quote 0
      • D offline
        Daniele
        global:last-edited-by,

        I tried reaplacing smartSleep with wait, but still nothing happens (and no errors in the log).
        All other things are working as expected.

        jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
        • jkandasaJ offline
          jkandasa @Daniele
          global:last-edited-by,

          @daniele can you increase MY_SMART_SLEEP_WAIT_DURATION_MS value something to 1000ms?

          #define MY_SMART_SLEEP_WAIT_DURATION_MS (1000ul)
          
          one-reply-to-this-post last-reply-time reply quote 0
          • D offline
            Daniele
            global:last-edited-by,

            I tried, but without any luck.
            After the reboot command, the node log is a continuous flow of MySensors splash screen:

            3485 TSF:MSG:SEND,50-50-0-0,s=255,c=3,t=33,pt=5,l=4,sg=0,ft=0,st=OK:10000
            3495 TSF:MSG:SEND,50-50-0-0,s=2,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:21
            3502 MCO:SLP:MS=10000,SMS=1,I1=255,M1=255,I2=255,M2=255
            3510 TSF:MSG:SEND,50-50-0-0,s=255,c=3,t=32,pt=5,l=4,sg=0,ft=0,st=OK:1000
            3831 TSF:MSG:READ,0-0-50,s=255,c=3,t=13,pt=0,l=0,sg=0:
            3837 TSF:MSG:ACK REQ
            3842 TSF:MSG:SEND,50-50-0-0,s=255,c=3,t=13,pt=0,l=0,sg=0,ft=0,st=OK:
             
             __  __       ____
            |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
            | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
            | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
            |_|  |_|\__, |____/ \__⸮ 
             __  __       ____
            |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
            | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
            | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
            |_|  |_|\__, |____/ \__⸮ 
             __  __       ____
            |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
            | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
            | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
            |_|  |_|\__, |____/ \___ 
             __  __       ____```
            jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
            • jkandasaJ offline
              jkandasa @Daniele
              global:last-edited-by, jkandasa

              @daniele Can you check, Have you burned MYSBootloader properly? Fuse settings are important.

              I had this reboot issue while ago with Pro mini default boot loader.

              one-reply-to-this-post last-reply-time reply quote 0
              • D offline
                Daniele
                global:last-edited-by,

                I tried re-burning the bootloader, taking the dev branch this time.
                No I don't have the reboot issue, everything goes without any error, but the sketch is not updated.
                In the folder with generated files I have 2 hex files: one with the name of my sketch, and one with the same name + .with_bootloader, I used the first one in my tests, is this wrong?
                Could this be related to the 250kbps parameter I used?

                jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
                • jkandasaJ offline
                  jkandasa @Daniele
                  global:last-edited-by,

                  @daniele You should use the hex without bootloader,

                  If you use burned bootloader from dev branch(hex file from GitHub), it should not work in your environment, since you are using non-default channels(MY_RF24_CHANNEL).

                  I guess, 250kbps is a default MY_RF24_DATARATE

                  • your settings, #define MY_RF24_CHANNEL 125
                  • default settings, #define MY_RF24_CHANNEL (76)
                  one-reply-to-this-post last-reply-time reply quote 0
                  • D offline
                    Daniele
                    global:last-edited-by,

                    So I cannot use FOTA with a custom channel?
                    Or should I use the master branch from GitHub?

                    skywatchS A topic:replies-to-this-post, 2 last-reply-time reply quote 0
                    • skywatchS offline
                      skywatch @Daniele
                      global:last-edited-by,

                      @daniele @jkandasa

                      That seems crazy that you can select a clear channel to use but only can use default for fota. There must be a way to edit the hex file with an editor and save it for other channels?

                      Maybe worth asking that question directly on the mysensors pages?

                      G one-reply-to-this-post last-reply-time reply quote 1
                      • A offline
                        aliasjim @Daniele
                        global:last-edited-by,

                        @Daniele You need to compile the MYSbootloader for the right channel. You can get all kind of flavors here: https://github.com/guillebot/MYSensors-Bootloaders

                        one-reply-to-this-post last-reply-time reply quote 0
                        • G offline
                          guille @skywatch
                          global:last-edited-by,

                          @skywatch You can use every channel!

                          Take a look:

                          https://github.com/guillebot/MYSensors-Bootloaders

                          I would be great some form of scanning or automation, but for the moment this will do.

                          skywatchS one-reply-to-this-post last-reply-time reply quote 0
                          • skywatchS offline
                            skywatch @guille
                            global:last-edited-by,

                            @guille That is a great resource, thanks.

                            My only comment would be that channels 111-125 are missing in the current version.

                            one-reply-to-this-post last-reply-time reply quote 0
                            • first-post
                              last-post

                            0

                            online

                            644

                            users

                            532

                            topics

                            3.4k

                            posts
                            Copyright © 2015-2025 MyController.org | Contributors | Localization