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. Disable restarting arduino after connect to serial gateway.

Disable restarting arduino after connect to serial gateway.

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 3 Posters 748 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.
  • D Offline
    D Offline
    Dawidi
    wrote on last edited by
    #1

    Arduino is restarting after connect to controler (Serial Gateway - OpenHab). But this is not gateway issue. I think it is quite natural, because arduino had to run presentation, but I wondering is it possible to not restarting arduino? It is very important because i have to controll critical relays by it. And i wont turn it off after gateway restart by any reason.

    mfalkviddM Y 2 Replies Last reply
    0
    • D Dawidi

      Arduino is restarting after connect to controler (Serial Gateway - OpenHab). But this is not gateway issue. I think it is quite natural, because arduino had to run presentation, but I wondering is it possible to not restarting arduino? It is very important because i have to controll critical relays by it. And i wont turn it off after gateway restart by any reason.

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @dawidi do you mean that OpenHab sends a command to the Nodes to restart? Idon't have experience with OpenHab, but that sounds like a strange behavior. I use Domoticz and it does not send restart commands.

      D 1 Reply Last reply
      0
      • D Dawidi

        Arduino is restarting after connect to controler (Serial Gateway - OpenHab). But this is not gateway issue. I think it is quite natural, because arduino had to run presentation, but I wondering is it possible to not restarting arduino? It is very important because i have to controll critical relays by it. And i wont turn it off after gateway restart by any reason.

        Y Offline
        Y Offline
        Yveaux
        Mod
        wrote on last edited by
        #3

        @dawidi arduino hardware resets a board through the DTR signal on the serial port. You could disconnect the DTR line to prevent the reset.

        http://yveaux.blogspot.nl

        1 Reply Last reply
        0
        • mfalkviddM mfalkvidd

          @dawidi do you mean that OpenHab sends a command to the Nodes to restart? Idon't have experience with OpenHab, but that sounds like a strange behavior. I use Domoticz and it does not send restart commands.

          D Offline
          D Offline
          Dawidi
          wrote on last edited by
          #4

          @mfalkvidd I do not find any information sending by gateway to restart arduino. It looks like that:

          [log] system start
          [log] some relays state changed from null to ON (restored states)
          [log] some relays state changed from null to OFF
          [log] MySensors bridge is changed from OFFLINE (COMMUNICATION_ERROR)  to OFFLINE
          [log] MySensors bridge is changed from OFFLINE (COMMUNICATION_ERROR)  to OFFLINE
          [log] MySensors bridge is changed from OFFLINE to ONLINE (finnaly)
          [log] all relays changed from OFFLINE to ONLINE
          

          And then arduino restarting. So if i restart OH, arduino keep states until it connect again.

          @Yveaux How can i do that?

          Y 1 Reply Last reply
          0
          • D Dawidi

            @mfalkvidd I do not find any information sending by gateway to restart arduino. It looks like that:

            [log] system start
            [log] some relays state changed from null to ON (restored states)
            [log] some relays state changed from null to OFF
            [log] MySensors bridge is changed from OFFLINE (COMMUNICATION_ERROR)  to OFFLINE
            [log] MySensors bridge is changed from OFFLINE (COMMUNICATION_ERROR)  to OFFLINE
            [log] MySensors bridge is changed from OFFLINE to ONLINE (finnaly)
            [log] all relays changed from OFFLINE to ONLINE
            

            And then arduino restarting. So if i restart OH, arduino keep states until it connect again.

            @Yveaux How can i do that?

            Y Offline
            Y Offline
            Yveaux
            Mod
            wrote on last edited by Yveaux
            #5

            @dawidi to bypass it depends a lot on the actual Arduino hardware used. See here for some background info on the topic: https://rheingoldheavy.com/arduino-from-scratch-part-11-atmega328p-dtr-and-reset/
            The link describes for an Arduino Uno: "If for some reason, you wanted to disable the autoreset function, you would run a very sharp knife down between the two halves of the solder jumper at “RESET EN”, to cut the trace. "

            From software you can prevent auto reset by disabling DTR when talking to the serial port; google for it: https://www.google.com/search?q=prevent+dtr+reset+from+software

            http://yveaux.blogspot.nl

            D 1 Reply Last reply
            1
            • Y Yveaux

              @dawidi to bypass it depends a lot on the actual Arduino hardware used. See here for some background info on the topic: https://rheingoldheavy.com/arduino-from-scratch-part-11-atmega328p-dtr-and-reset/
              The link describes for an Arduino Uno: "If for some reason, you wanted to disable the autoreset function, you would run a very sharp knife down between the two halves of the solder jumper at “RESET EN”, to cut the trace. "

              From software you can prevent auto reset by disabling DTR when talking to the serial port; google for it: https://www.google.com/search?q=prevent+dtr+reset+from+software

              D Offline
              D Offline
              Dawidi
              wrote on last edited by
              #6

              @yveaux Thank you man so much. I wrote topics on gateway's github, here in cotroller section, OH forum and no one knows how to fix that. I cut jumper on RESET EN and it works. TY!

              Y 1 Reply Last reply
              1
              • D Dawidi

                @yveaux Thank you man so much. I wrote topics on gateway's github, here in cotroller section, OH forum and no one knows how to fix that. I cut jumper on RESET EN and it works. TY!

                Y Offline
                Y Offline
                Yveaux
                Mod
                wrote on last edited by
                #7

                @dawidi great to hear you solved it! Glad I could help.

                http://yveaux.blogspot.nl

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                14

                Online

                12.0k

                Users

                11.2k

                Topics

                113.4k

                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