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

    Node ACK issue

    scheduled pinned locked moved General Discussion
    17 posts 3 posters 3.3k views 2 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 Thank you for the update. After implemented ack feature, I never tested ethernet gateway. I will do it when I get time. Kindly update your findings. It might help us to narrow down the issue.

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

        Apparently nothing changes if I reboot the ethernet GW, the node remains disconnected.

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

          @daniele looks like the problem on node side.

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

            I fully agree with you, but I cannot understand what can be causing the issue.
            On the software side, do you suggest any change on the node code?
            Could it be an hardware issue?
            I tried changing both the arduino and the NRF24, but without any luck.
            I tried switching from the 3.3V pin to the 5V pin with a voltage regulator, but still the same issue.

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

              @daniele Can you try with a different version of MySensors library? What the current version of MySensor library?

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

                I'm using version 2.2.0, which is the last one.

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

                  @daniele ok, When I get time, I will try to reproduce this locally.

                  one-reply-to-this-post last-reply-time reply quote 0
                  • T offline
                    Tag MOD @Daniele
                    global:last-edited-by, Tag

                    @daniele said in Node ACK issue:

                    pinMode(ledPin, OUTPUT);
                    pinMode(relayPin, OUTPUT);
                    pinMode(ventolePin, OUTPUT);

                    // Set relay to last known state (using eeprom storage)
                    relay = loadState(CHILD_ID_RELAY)?RELAY_ON:RELAY_OFF;

                    Hi!,

                    Might not be an issue, however from a code perspective you should set the stuff below in the setup loop:

                     pinMode(ledPin, OUTPUT);
                      pinMode(relayPin, OUTPUT);
                      pinMode(ventolePin, OUTPUT);
                    
                      // Set relay to last known state (using eeprom storage)
                      relay = loadState(CHILD_ID_RELAY)?RELAY_ON:RELAY_OFF;
                    

                    Before() is called prior to setup... not sure if this really is an issue, but just try it...

                    What might help is the example from the mysensors site. It contains an example to control relays:
                    https://www.mysensors.org/build/relay

                    It does basically the same you want... can you try the example?

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

                      That's exactly the example I started with, then I changed it trying to avoid this issue (basically I only change the value of a variable during the receive() function to reduce the time needed to process a new message).

                      I also tried using the setup() instead of the before(), but the effect is the same.

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

                        @jkandasa , the ack issue is probably related to some hardware interference, not to your code.

                        Yesterday as a last test I turned off a wireless thermostat I have close to arduino (working on 433 Mhz, so really far from the 2.4 GHz I use with NRF24), and the disconnections suddenly disappeared!

                        I'm sorry I bothered you.
                        Thank you very much for your support!
                        Daniele

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

                          @daniele no worries. I am happy that you find the root cause of the issue 🙂

                          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