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. Development
  3. sending two messages one after another

sending two messages one after another

Scheduled Pinned Locked Moved Development
7 Posts 5 Posters 1.1k Views 7 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.
  • rozpruwaczR Offline
    rozpruwaczR Offline
    rozpruwacz
    wrote on last edited by
    #1

    Hi,
    in my node I send two messages with ack=1 one after another. And it seems that most of the times the second one gets NACK. Is it possible that the gateway ACK message for the first node message gets into collision with the second node message ? I'm using RFM69 as a transport, does this transport handle collisions by itself ?

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      I could be, maybe you can add a little delay between sends if they get sent too quickly one after the other

      1 Reply Last reply
      0
      • rozpruwaczR Offline
        rozpruwaczR Offline
        rozpruwacz
        wrote on last edited by
        #3

        I implemented the message queue so the queue does not send another message until it gets ack from gateway. Now it seems that everything is ok.

        J 1 Reply Last reply
        0
        • rozpruwaczR rozpruwacz

          I implemented the message queue so the queue does not send another message until it gets ack from gateway. Now it seems that everything is ok.

          J Offline
          J Offline
          jkandasa
          Plugin Developer
          wrote on last edited by
          #4

          @rozpruwacz can you share your implementation details?

          1 Reply Last reply
          1
          • alowhumA Offline
            alowhumA Offline
            alowhum
            Plugin Developer
            wrote on last edited by
            #5

            @rozpruwacz I'd love to see how you implemented that as well!

            1 Reply Last reply
            0
            • rozpruwaczR Offline
              rozpruwaczR Offline
              rozpruwacz
              wrote on last edited by rozpruwacz
              #6

              I have implemented it in form of library. The library is here https://github.com/mczerski/MySensorsToolkit and example project that uses this library is here https://github.com/mczerski/MyDimmer. The actual logic is implemented here https://github.com/mczerski/MySensorsToolkit/blob/master/src/MySensorsToolkit/Message.cpp

              This implementation is not using software ack because i do not use repeaters in my setup and i believe that for such setup software ack will make no difference.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                ArduiSens
                wrote on last edited by
                #7

                Hello all,
                is this solution added to the standard MySensor library?
                If so, in which version is it implemented?

                I want to be sure there are no missing messages when having a list of messages to be sent.

                many thanks in advance

                MySensors 2.3.2; contr:Domoticz; layer: RS485, nRF24; gw: Ethernet, Serial

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


                14

                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