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. How to do resend when st=fail on a Repeater

How to do resend when st=fail on a Repeater

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 3 Posters 1.8k Views 3 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.
  • D Offline
    D Offline
    doblanch
    wrote on last edited by
    #1

    everything is in the title :-)
    I'm wondering how to increase reliability on bad RF transmission (big ceiling).
    I want to do a resend when st=fail.
    I do it already on my sensor, it's easy to code, as it's in the sketch directly.
    I'm wondering how to do it in the repetear ??? some ideas ???

    rvendrameR 1 Reply Last reply
    0
    • D doblanch

      everything is in the title :-)
      I'm wondering how to increase reliability on bad RF transmission (big ceiling).
      I want to do a resend when st=fail.
      I do it already on my sensor, it's easy to code, as it's in the sketch directly.
      I'm wondering how to do it in the repetear ??? some ideas ???

      rvendrameR Offline
      rvendrameR Offline
      rvendrame
      Hero Member
      wrote on last edited by
      #2

      @doblanch ,

      I see two ways of implementing it (despite I never tried):

      1. gw.send( msg ) returns false in case transmission fails.

      OR

      1. gw.send( msg, true ) will request an ack from controller, which should arrive back in few seconds if everything went well.

      In both cases, you have to write your own logic to retry.

      http://www.mysensors.org/download/sensor_api_15#the-full-api

      Home Assistant / Vera Plus UI7
      ESP8266 GW + mySensors 2.3.2
      Alexa / Google Home

      D 1 Reply Last reply
      0
      • rvendrameR rvendrame

        @doblanch ,

        I see two ways of implementing it (despite I never tried):

        1. gw.send( msg ) returns false in case transmission fails.

        OR

        1. gw.send( msg, true ) will request an ack from controller, which should arrive back in few seconds if everything went well.

        In both cases, you have to write your own logic to retry.

        http://www.mysensors.org/download/sensor_api_15#the-full-api

        D Offline
        D Offline
        doblanch
        wrote on last edited by
        #3

        @rvendrame Hello,
        yes, I use this already. But as you know in a repeater, the gw.send is not available as it's include in the process() function... I do nont have access to gw.send...

        rvendrameR 1 Reply Last reply
        0
        • D doblanch

          @rvendrame Hello,
          yes, I use this already. But as you know in a repeater, the gw.send is not available as it's include in the process() function... I do nont have access to gw.send...

          rvendrameR Offline
          rvendrameR Offline
          rvendrame
          Hero Member
          wrote on last edited by
          #4

          @doblanch , not sure if I understood. gw.process is used to listen to incoming radio messages, while gw.send is to transmit messages, and is present on every example sketch here. For example the 'Door/Window/Button' sensor:

          void loop() 
          {
            debouncer.update();
            // Get the update value
            int value = debouncer.read();
           
            if (value != oldValue) {
               // Send in the new value
               gw.send(msg.set(value==HIGH ? 1 : 0));
               oldValue = value;
            }
          } 
          

          Home Assistant / Vera Plus UI7
          ESP8266 GW + mySensors 2.3.2
          Alexa / Google Home

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

            http://forum.mysensors.org/topic/1424/resend-if-st-fail might be relevant

            http://forum.mysensors.org/topic/2189/serial-api-noack-when-sending-with-ack-failed started by @SiLeX has a longer discussion on resending

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


            12

            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