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. Serial Gateway restarting

Serial Gateway restarting

Scheduled Pinned Locked Moved Troubleshooting
31 Posts 4 Posters 7.0k Views 5 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.
  • gohanG gohan

    Ok, then it must be something else. Don't you have a regular Uno to try?

    J Offline
    J Offline
    Jan Gatzke
    wrote on last edited by
    #10

    @gohan

    The restarts seem to have stopped after setting a static parent. But the gateway should never restart because of some failed transmission imho.

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

      agreed but when communications are not optimal bugs can come out.
      Maybe @Yveaux @hek can add something?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jan Gatzke
        wrote on last edited by
        #12

        Ok, now I can reproduce another bug that causes the serial gateway to restart:

        2017-04-26 11:09:51.760 MySensors: Node: 14, Sketch Name: Molgan
        2017-04-26 11:09:51.761 MySensors: Node: 14, Sketch Version: 1.0
        2017-04-26 11:09:51.780 (MySensorsGw1) Lighting 2 (Security Sensor)
        2017-04-26 11:09:51.928 MySensors: Gateway Ready...
        2017-04-26 11:09:52.004 MySensors: Gateway Version: 2.1.1
        

        I have built several nodes based on the Ikea Molgan hack

        I am using the included sketch without modifications.

        Every time one of these nodes starts up, the gateway restarts. Without a starting Molgan node I did not see a single gateway restart for 24 hours.

        @Yveaux @hek guys, can you please have a look?

        YveauxY 1 Reply Last reply
        0
        • J Jan Gatzke

          Ok, now I can reproduce another bug that causes the serial gateway to restart:

          2017-04-26 11:09:51.760 MySensors: Node: 14, Sketch Name: Molgan
          2017-04-26 11:09:51.761 MySensors: Node: 14, Sketch Version: 1.0
          2017-04-26 11:09:51.780 (MySensorsGw1) Lighting 2 (Security Sensor)
          2017-04-26 11:09:51.928 MySensors: Gateway Ready...
          2017-04-26 11:09:52.004 MySensors: Gateway Version: 2.1.1
          

          I have built several nodes based on the Ikea Molgan hack

          I am using the included sketch without modifications.

          Every time one of these nodes starts up, the gateway restarts. Without a starting Molgan node I did not see a single gateway restart for 24 hours.

          @Yveaux @hek guys, can you please have a look?

          YveauxY Offline
          YveauxY Offline
          Yveaux
          Mod
          wrote on last edited by
          #13

          @Jan-Gatzke There's nothing special about the Molgan sketch, so I seriously doubt the Molgan causing a gateway restart.
          To be able to really help, we'll need more info:

          • What radio are you using?
          • Are you also using MySensors 2.1.1 to build your sensors?
          • You state you're using a "dedicated voltage regulator". For what? What do you use as power supply?
          • Foto's of your setup; it has helped others in the past...

          Initially you reported restarting issues when the gateway tried to sent to nodes which were offline. For an nRF24 this causes the radio to excessive retry sending each message, placing a burden on the power supply. My first guess would be you have a power supply issue on the gateway.

          Another thing you could try is running your gateway on a 16Mhz ATMega. In general the gateway is the part in your network that needs to process the most data, and therefore would require a 'powerful' processor.

          http://yveaux.blogspot.nl

          J 1 Reply Last reply
          0
          • YveauxY Yveaux

            @Jan-Gatzke There's nothing special about the Molgan sketch, so I seriously doubt the Molgan causing a gateway restart.
            To be able to really help, we'll need more info:

            • What radio are you using?
            • Are you also using MySensors 2.1.1 to build your sensors?
            • You state you're using a "dedicated voltage regulator". For what? What do you use as power supply?
            • Foto's of your setup; it has helped others in the past...

            Initially you reported restarting issues when the gateway tried to sent to nodes which were offline. For an nRF24 this causes the radio to excessive retry sending each message, placing a burden on the power supply. My first guess would be you have a power supply issue on the gateway.

            Another thing you could try is running your gateway on a 16Mhz ATMega. In general the gateway is the part in your network that needs to process the most data, and therefore would require a 'powerful' processor.

            J Offline
            J Offline
            Jan Gatzke
            wrote on last edited by
            #14

            @Yveaux

            • Radio is nrf24l01. The version with antenna and pa + lna . http://www.ebay.de/itm/272260489477?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT .I have wrapped it in aluminum foil which improved the communications much. MY_RF24_PA_LEVEL is set to RF24_PA_HIGH.
            • Yes, most of my nodes including the molgans are also 2.1.1. Some other nodes are still 1.8.
            • I am using Rev 7 of this board: https://www.openhardware.io/view/4/EasyNewbie-PCB-for-MySensors . I have connected it to the 5V Line of my Raspberry Pi. Power Supply is good, the rpi runs fine and stable. On the board there is a 3.3V regulator + the recommended capacitors. I also have an additional capacitor (47 uF) soldered directly to the nrf.
            YveauxY 1 Reply Last reply
            0
            • J Jan Gatzke

              @Yveaux

              • Radio is nrf24l01. The version with antenna and pa + lna . http://www.ebay.de/itm/272260489477?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT .I have wrapped it in aluminum foil which improved the communications much. MY_RF24_PA_LEVEL is set to RF24_PA_HIGH.
              • Yes, most of my nodes including the molgans are also 2.1.1. Some other nodes are still 1.8.
              • I am using Rev 7 of this board: https://www.openhardware.io/view/4/EasyNewbie-PCB-for-MySensors . I have connected it to the 5V Line of my Raspberry Pi. Power Supply is good, the rpi runs fine and stable. On the board there is a 3.3V regulator + the recommended capacitors. I also have an additional capacitor (47 uF) soldered directly to the nrf.
              YveauxY Offline
              YveauxY Offline
              Yveaux
              Mod
              wrote on last edited by
              #15

              @Jan-Gatzke Perform following tests (in this order):

              • Test with a regular nRF24L01, non-amplified
              • Power from a separate 5V power supply
              • I assume you're using the suggested LE33ACZ? It can only supply 100mA (if you get the original ones, not China clones) and the amplified nRF24 is said to draw over 100mA. You wouldn't be the first having issues (see here). Try powering from a separate 3V3 power supply, bypassing the regulator on the Easy/newbie PCB.

              Do you see a difference between 1.8 and 2.1.1 Molgans?

              http://yveaux.blogspot.nl

              J 1 Reply Last reply
              0
              • YveauxY Yveaux

                @Jan-Gatzke Perform following tests (in this order):

                • Test with a regular nRF24L01, non-amplified
                • Power from a separate 5V power supply
                • I assume you're using the suggested LE33ACZ? It can only supply 100mA (if you get the original ones, not China clones) and the amplified nRF24 is said to draw over 100mA. You wouldn't be the first having issues (see here). Try powering from a separate 3V3 power supply, bypassing the regulator on the Easy/newbie PCB.

                Do you see a difference between 1.8 and 2.1.1 Molgans?

                J Offline
                J Offline
                Jan Gatzke
                wrote on last edited by
                #16

                @Yveaux

                oops, missed this limitation of the LE33. I will replace it by an ASM1117 and test again. Thx.

                YveauxY 1 Reply Last reply
                0
                • J Jan Gatzke

                  @Yveaux

                  oops, missed this limitation of the LE33. I will replace it by an ASM1117 and test again. Thx.

                  YveauxY Offline
                  YveauxY Offline
                  Yveaux
                  Mod
                  wrote on last edited by
                  #17

                  @Jan-Gatzke Please perform the other tests first!
                  Also make sure to get a real AMS1117,! I've got some China clones that have a hard time producing even 100mA...

                  http://yveaux.blogspot.nl

                  J 1 Reply Last reply
                  0
                  • YveauxY Yveaux

                    @Jan-Gatzke Please perform the other tests first!
                    Also make sure to get a real AMS1117,! I've got some China clones that have a hard time producing even 100mA...

                    J Offline
                    J Offline
                    Jan Gatzke
                    wrote on last edited by
                    #18

                    @Yveaux I really don't know whether this is a genuine chip. But I can still reproduce the problem after replacing the LE33. Tested with a non amplified nrf24, too. Same problem.

                    I have restarted two other nodes with an older version of mysensors (2.0 or 1.8). The gateway did not restart.

                    YveauxY 1 Reply Last reply
                    0
                    • J Jan Gatzke

                      @Yveaux I really don't know whether this is a genuine chip. But I can still reproduce the problem after replacing the LE33. Tested with a non amplified nrf24, too. Same problem.

                      I have restarted two other nodes with an older version of mysensors (2.0 or 1.8). The gateway did not restart.

                      YveauxY Offline
                      YveauxY Offline
                      Yveaux
                      Mod
                      wrote on last edited by Yveaux
                      #19

                      @Jan-Gatzke so it doesn't reproduce then? Or only with 2.1.1?

                      http://yveaux.blogspot.nl

                      J 1 Reply Last reply
                      0
                      • YveauxY Yveaux

                        @Jan-Gatzke so it doesn't reproduce then? Or only with 2.1.1?

                        J Offline
                        J Offline
                        Jan Gatzke
                        wrote on last edited by
                        #20

                        @Yveaux

                        Correct. I have tested this with some other nodes. This seems only a problem with the molgan nodes. Even other nodes with 2.1.1 work without problems. Differences I see with the Molgans is the use of the internal oscillator and the use of the smd version of the nrf.

                        YveauxY 1 Reply Last reply
                        0
                        • J Jan Gatzke

                          @Yveaux

                          Correct. I have tested this with some other nodes. This seems only a problem with the molgan nodes. Even other nodes with 2.1.1 work without problems. Differences I see with the Molgans is the use of the internal oscillator and the use of the smd version of the nrf.

                          YveauxY Offline
                          YveauxY Offline
                          Yveaux
                          Mod
                          wrote on last edited by
                          #21

                          @Jan-Gatzke well, my networks are all at 2.1.1 with Molgans. No issues whatsoever...

                          http://yveaux.blogspot.nl

                          J 1 Reply Last reply
                          0
                          • YveauxY Yveaux

                            @Jan-Gatzke well, my networks are all at 2.1.1 with Molgans. No issues whatsoever...

                            J Offline
                            J Offline
                            Jan Gatzke
                            wrote on last edited by Jan Gatzke
                            #22

                            @Yveaux

                            Wie probably have the same problems with the smd nrf24 that we have with the regular ones, too. There is no big capacitor in the circuit of the molgan hack pcb. Perhaps this the cause of the problems. I will try to add one.

                            Edit: Tried it with an additional 10 uF capacitor. That changed nothing.

                            YveauxY 1 Reply Last reply
                            0
                            • J Jan Gatzke

                              @Yveaux

                              Wie probably have the same problems with the smd nrf24 that we have with the regular ones, too. There is no big capacitor in the circuit of the molgan hack pcb. Perhaps this the cause of the problems. I will try to add one.

                              Edit: Tried it with an additional 10 uF capacitor. That changed nothing.

                              YveauxY Offline
                              YveauxY Offline
                              Yveaux
                              Mod
                              wrote on last edited by
                              #23

                              @Jan-Gatzke of course that doesn't help. The batteries have sufficient power to accommodate for the required power when sending.
                              That's why I never add buffer capacitors to battery powered nodes.

                              http://yveaux.blogspot.nl

                              1 Reply Last reply
                              0
                              • J Offline
                                J Offline
                                Jan Gatzke
                                wrote on last edited by
                                #24

                                Any other ideas? Just tested with another power supply (3 * AA cell) but I am still facing the same problem.

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

                                  Did you try RF24_PA_MIN? Just for testing

                                  1 Reply Last reply
                                  0
                                  • J Jan Gatzke

                                    Any other ideas? Just tested with another power supply (3 * AA cell) but I am still facing the same problem.

                                    YveauxY Offline
                                    YveauxY Offline
                                    Yveaux
                                    Mod
                                    wrote on last edited by
                                    #26

                                    @Jan-Gatzke Try with a 16Mhz ATMega gateway setup

                                    http://yveaux.blogspot.nl

                                    J 1 Reply Last reply
                                    1
                                    • YveauxY Yveaux

                                      @Jan-Gatzke Try with a 16Mhz ATMega gateway setup

                                      J Offline
                                      J Offline
                                      Jan Gatzke
                                      wrote on last edited by
                                      #27

                                      @Yveaux @gohan

                                      I have tested these constallations:

                                      3.3V Arduino, RF24_PA_MIN
                                      5V Arduino, RF24_PA_MIN
                                      5V arduino, RF24_PA_MAX

                                      All with the amplified and the simple version of the radio. The Result was always the same:

                                      2017-04-28 13:45:41.346 MySensors: Node: 11, Sketch Name: Molgan
                                      2017-04-28 13:45:41.347 MySensors: Node: 11, Sketch Version: 1.0
                                      2017-04-28 13:45:41.380 MySensors: Gateway Ready...
                                      2017-04-28 13:45:41.456 MySensors: Gateway Version: 2.1.1
                                      

                                      I will try another power supply for the Pi later. Just to be sure.

                                      Do you think it would make sense to try the git hub version of MySensors?

                                      YveauxY 1 Reply Last reply
                                      0
                                      • J Jan Gatzke

                                        @Yveaux @gohan

                                        I have tested these constallations:

                                        3.3V Arduino, RF24_PA_MIN
                                        5V Arduino, RF24_PA_MIN
                                        5V arduino, RF24_PA_MAX

                                        All with the amplified and the simple version of the radio. The Result was always the same:

                                        2017-04-28 13:45:41.346 MySensors: Node: 11, Sketch Name: Molgan
                                        2017-04-28 13:45:41.347 MySensors: Node: 11, Sketch Version: 1.0
                                        2017-04-28 13:45:41.380 MySensors: Gateway Ready...
                                        2017-04-28 13:45:41.456 MySensors: Gateway Version: 2.1.1
                                        

                                        I will try another power supply for the Pi later. Just to be sure.

                                        Do you think it would make sense to try the git hub version of MySensors?

                                        YveauxY Offline
                                        YveauxY Offline
                                        Yveaux
                                        Mod
                                        wrote on last edited by
                                        #28

                                        @Jan-Gatzke I assume the 5V versions are running at 16Mhz, right?

                                        You can always give the most recent version a try.

                                        http://yveaux.blogspot.nl

                                        J 1 Reply Last reply
                                        0
                                        • YveauxY Yveaux

                                          @Jan-Gatzke I assume the 5V versions are running at 16Mhz, right?

                                          You can always give the most recent version a try.

                                          J Offline
                                          J Offline
                                          Jan Gatzke
                                          wrote on last edited by Jan Gatzke
                                          #29

                                          @Yveaux @gohan

                                          I chose 5V / 16Mhz in the Arduino IDE. If that did not fit the serial interface would not work, right?
                                          I will try with the git version then.

                                          As your installation includes similar components, may I ask what your gateway looks like?

                                          Edit: Tested with 2.2 Beta gateway. Problem seems solved. I am running on 5V 16 Mhz / RF24_PA_MAX now. Could not reproduce the problem anymore. Thx for your help!

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


                                          23

                                          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