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. FOTA with MYSController does not work with sleeping Sensebender Micro

FOTA with MYSController does not work with sleeping Sensebender Micro

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 1.2k Views 2 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.
  • A Offline
    A Offline
    arraWX
    wrote on last edited by arraWX
    #1

    I use the "official" sketch for the Sensebender Micro. However, with "MEASURE_INTERVAL = 6000" and "FORCE_TRANSMIT_INTERVAL = 1" in order to transmit every 6 seconds.

    Gateway is rpi ethernet.

    MYSController 1.0.0beta (build 3316), "Sensebender board = TRUE", "Battery-powered / sleeping = TRUE" gives the following message but nothing more happens.

    0_1513461114537_Udklip.PNG

    If I replace sleep by wait in the sketch and set "Battery-powered / sleeping = FALSE" in MYSController then FOTA works flawlessly. But then node is not sleeping.

    Anyone knows how to get it working with a sleeping node?

    tekkaT 1 Reply Last reply
    0
    • A arraWX

      I use the "official" sketch for the Sensebender Micro. However, with "MEASURE_INTERVAL = 6000" and "FORCE_TRANSMIT_INTERVAL = 1" in order to transmit every 6 seconds.

      Gateway is rpi ethernet.

      MYSController 1.0.0beta (build 3316), "Sensebender board = TRUE", "Battery-powered / sleeping = TRUE" gives the following message but nothing more happens.

      0_1513461114537_Udklip.PNG

      If I replace sleep by wait in the sketch and set "Battery-powered / sleeping = FALSE" in MYSController then FOTA works flawlessly. But then node is not sleeping.

      Anyone knows how to get it working with a sleeping node?

      tekkaT Offline
      tekkaT Offline
      tekka
      Admin
      wrote on last edited by
      #2

      @arrawx You should enable smart sleep.

      Substitute:
      https://github.com/mysensors/SensebenderMicro/blob/master/Arduino/SensebenderMicro/SensebenderMicro.ino#L221

      for

      sleep(MEASURE_INTERVAL, true);  
      

      and in MYSController set Sensebender board = TRUE, Battery-powered/sleeping = TRUE

      A 1 Reply Last reply
      2
      • tekkaT tekka

        @arrawx You should enable smart sleep.

        Substitute:
        https://github.com/mysensors/SensebenderMicro/blob/master/Arduino/SensebenderMicro/SensebenderMicro.ino#L221

        for

        sleep(MEASURE_INTERVAL, true);  
        

        and in MYSController set Sensebender board = TRUE, Battery-powered/sleeping = TRUE

        A Offline
        A Offline
        arraWX
        wrote on last edited by arraWX
        #3

        @tekka Thank you. However, it turned out that your advice was only part of the solution.

        In order to solve the problem I had to also change the sensebender from 2.1.1 to development branch.

        My rpi gateway uses development branch (due to reasons discussed here). Does the version mismatch between node and gateway explain why FOTA was not working?

        M 1 Reply Last reply
        0
        • A arraWX

          @tekka Thank you. However, it turned out that your advice was only part of the solution.

          In order to solve the problem I had to also change the sensebender from 2.1.1 to development branch.

          My rpi gateway uses development branch (due to reasons discussed here). Does the version mismatch between node and gateway explain why FOTA was not working?

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

          @arrawx may be related to this?

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


          10

          Online

          11.7k

          Users

          11.2k

          Topics

          113.0k

          Posts


          Copyright 2019 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