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. MQTT Gateway - Stuck on "Started!"

MQTT Gateway - Stuck on "Started!"

Scheduled Pinned Locked Moved Troubleshooting
29 Posts 6 Posters 14.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.
  • FotoFieberF Offline
    FotoFieberF Offline
    FotoFieber
    Hardware Contributor
    wrote on last edited by
    #5

    I had a similar problem, when I used the voltage regulator of my arduino and I had to use a separate regulator. Do you have enough power for the ethernet module?

    1 Reply Last reply
    0
    • siodS Offline
      siodS Offline
      siod
      wrote on last edited by
      #6

      Hi FotoFieber,

      I can confirm it´s not a power issue:

      -Ethernet is connected to 5V
      -When using the MySensors Ethernet Gateway Sketch with my setup, everything is working fine. Because I would like to use Openhab and MQTT I need to use the MySensors MQTT Gateway Sketch. And here I have the problem that no MQTT messages come in, the only output I get from Serial monitor is "Started!".

      So I am using a Nano and because of my ENC28J Ethernet module I use the UIPEthernet Library instead of the Ethernet Library. I am pretty sure it´s some code problem.

      still learning...

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        Zed
        wrote on last edited by
        #7

        I power things up from a lab bench power supply (able to provide up to 3 Amps) so I think that there is enough power for everything.

        1 Reply Last reply
        0
        • siodS Offline
          siodS Offline
          siod
          wrote on last edited by
          #8

          @Zed Could you test if Ethernet Gateway Sketch is working just like it´s working in my setup?

          still learning...

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            Zed
            wrote on last edited by
            #9

            I have already done that. Although the Ethernet module works correctly (I've checked that with a simple Ethernet sketch) either the Ethernet or the MQTT gateway seems to work. The only message I get on the serial monitor is something like started, yet I cannot ping the gateway.

            1 Reply Last reply
            0
            • siodS Offline
              siodS Offline
              siod
              wrote on last edited by
              #10

              You should try the UIPEthernet library for Ethernet.

              still learning...

              Z 1 Reply Last reply
              0
              • siodS siod

                You should try the UIPEthernet library for Ethernet.

                Z Offline
                Z Offline
                Zed
                wrote on last edited by
                #11

                @siod I am using the W5100 Ethernet module so there is no need to change the library. Funny thing...I just compiled bot MQTT and Ethernet GW without any problems. They seem to work and I finally can ping them.:bowtie:

                The only thing that I changed is that now I use an official Arduino UNO and not the pro minis. I will try the circuit with the mini again and I will update my post.

                1 Reply Last reply
                0
                • siodS Offline
                  siodS Offline
                  siod
                  wrote on last edited by siod
                  #12

                  W5100, sure, should have read your first post again. No need for the UIPEthernet library, of course.

                  Ok, thanks for the hint, as I am using a nano testing with an uno could be an option. Will wait for your updated post first...

                  still learning...

                  Z 1 Reply Last reply
                  0
                  • siodS siod

                    W5100, sure, should have read your first post again. No need for the UIPEthernet library, of course.

                    Ok, thanks for the hint, as I am using a nano testing with an uno could be an option. Will wait for your updated post first...

                    Z Offline
                    Z Offline
                    Zed
                    wrote on last edited by Zed
                    #13

                    @siod I tried again with an unofficial Arduino UNO R3. None of the gateways is working. I get the same symptoms with the pro minis (which are also unofficial boards from China).

                    • Could someone comment of the official/unofficial board issue?
                    • I suppose it could be useful to start a compatibility list for the gateways.

                    UPDATE: I attach a picture with the two boards that do not work correctly with the Ethernet and the MQTT gateway sketch. I managed to compile and upload the sketches to the boards without any problem. In the serial monitor I get the proper message showing that the GW has started, however I cannot ping it.

                    UPDATE 2: I removed the photos that I have posted earlier since all the boards seem to work correctly. See post below.

                    1 Reply Last reply
                    0
                    • siodS Offline
                      siodS Offline
                      siod
                      wrote on last edited by
                      #14

                      OK great testing. I will test as soon as possible and will post my results here. We'll get it to work! ;)

                      still learning...

                      1 Reply Last reply
                      0
                      • hekH Offline
                        hekH Offline
                        hek
                        Admin
                        wrote on last edited by
                        #15

                        Weird. Bad decoupling is the only thing that comes into mind. It contains the same MCU...

                        Z 1 Reply Last reply
                        0
                        • hekH hek

                          Weird. Bad decoupling is the only thing that comes into mind. It contains the same MCU...

                          Z Offline
                          Z Offline
                          Zed
                          wrote on last edited by Zed
                          #16

                          @hek I am pretty sure that this is not the case. I have a quite decent power supply. Attached is a picture of my stone age 10MHz oscilloscope. Although old with some tilt issues (I have to fix that) it is quite enough for identifying a poor power supply. As you can see there are no decoupling issues.

                          IMG_3366.jpg

                          UPDATE: Finally, after experimenting for more than a week, the gateway seems to work even with the unofficial Arduino boards! Unfortunately I don't know what the problem was. I would blame the power supply but the gw now works with all boards and with three different power supplies (bench power supply, PC usb port and cell phone chargers), including those (cell charger, desktop usb port and laptop usb port) I was using before.

                          In case i find what the problem was I will post it here. Of course I now have to get the gw working with one of the software controllers, probably with Domoticz.

                          Thanks for your contributions!

                          1 Reply Last reply
                          0
                          • siodS Offline
                            siodS Offline
                            siod
                            wrote on last edited by
                            #17

                            mmh, that´s very strange. Did you change anything in your code? I can´t test right now but will give you more info the next days.

                            still learning...

                            Z 1 Reply Last reply
                            0
                            • siodS siod

                              mmh, that´s very strange. Did you change anything in your code? I can´t test right now but will give you more info the next days.

                              Z Offline
                              Z Offline
                              Zed
                              wrote on last edited by
                              #18

                              @siod No, I did not change anything. The only thing that I can think of is that the supply voltage (~3.3V) could be marginally enough and due the consumption of the cheap regulators that the unofficial boards have.

                              1 Reply Last reply
                              0
                              • siodS Offline
                                siodS Offline
                                siod
                                wrote on last edited by siod
                                #19

                                Uploaded sketch on my original Arduino Uno, made same connections, did not change anything in the code:

                                • Serial Monitor is showing nothing -.-

                                edit: can I use an Uno using the same code for the nano? :suspect:
                                edit2: Testing Nano again. Unconnected Ethernet module from nano, still only geting "Started!" message. Uploaded Ethernet Gateway Sketch and everything is fine again. -> So it must have to do sth. with the code. :hurtrealbad:
                                edit3: Now tested different nanos, still the same problem with every Nano. Holy, I don´t have any more ideas...:finnadie:

                                edit4: I shit bricks...I downloaded the whole MySensors Library again, installed it and uploaded the sketch again: IT WORKS ! ! ! :feelsgood:
                                Some file must have been missing...WTF. Well, thanks anyway guys, have fun with your sensors. :godmode:

                                still learning...

                                1 Reply Last reply
                                0
                                • Z Offline
                                  Z Offline
                                  Zed
                                  wrote on last edited by Zed
                                  #20

                                  Not as tidy as other gateways, yet its something. I got bored and didn't open holes for LEDs. I'll do it after I am sure that it works. For the moment I am able to ping it successfully. I am thinking now that an Arduino nano is more appropriate for a GW. The USB port can be used to monitor and reflash the gateway.

                                  IMG_3371 (1).jpg IMG_3372.jpg

                                  PS. I am pretty sure now that the power supply was the problem. The AC to DC unit that I was using (12V) could provide just 0.5 Amps an probably this is not enough for all the components to work properly. Has anyone measured what is the max current required from such a GW?

                                  1 Reply Last reply
                                  0
                                  • rvendrameR Offline
                                    rvendrameR Offline
                                    rvendrame
                                    Hero Member
                                    wrote on last edited by
                                    #21

                                    @Zed , the antenna-version of nRF officially consumes up to 115mA (cheap clones can easily drawn more). The w5100 running at 100Mbps may consume ~140mA. That still leave some room for your arduino. Have you measured the DC adapter with full load on it?

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

                                    Z 1 Reply Last reply
                                    0
                                    • rvendrameR rvendrame

                                      @Zed , the antenna-version of nRF officially consumes up to 115mA (cheap clones can easily drawn more). The w5100 running at 100Mbps may consume ~140mA. That still leave some room for your arduino. Have you measured the DC adapter with full load on it?

                                      Z Offline
                                      Z Offline
                                      Zed
                                      wrote on last edited by
                                      #22

                                      @rvendrame No, I have not measured the DC adapter with full load on it. I will do it in the following days and I will report my findings.

                                      1 Reply Last reply
                                      0
                                      • Z Offline
                                        Z Offline
                                        Zed
                                        wrote on last edited by Zed
                                        #23

                                        I still have some trouble... Although this seems like a Domoticz question, I'll post it here because I think that the problem is related to my Ethernet GW and not to Domoticz.

                                        So, I upgraded my GW to mySensors 1.5 and I made a Temperature/Humidity sensor as it is described here using a DHT22. On the serial monitor I get:

                                        find parent
                                        send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                                        sensor started, id=255, parent=255, distance=255
                                        find parent
                                        send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                                        find parent
                                        send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                                        find parent
                                        send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                                        find parent
                                        send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                                        find parent
                                        send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                                        T: 31.00
                                        find parent
                                        send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                                        H: 44.40
                                        
                                        

                                        I don't really understand the message (could someone explain a little bit), however I suppose that the sensor works. Then, on the serial monitor of the ethernet gateway I get:

                                        0;0;3;0;9;gateway started, id=0, parent=0, distance=0
                                        

                                        On Domoticz I have added the Ethernet GW to the hardware list. However when I open the web interface i see the following:

                                        Screen Shot 2015-08-03 at 5.40.27 PM.png

                                        and in the log I get:

                                        2015-08-03 17:03:45.650 Domoticz V2.2657 (c)2012-2015 GizMoCuz
                                        2015-08-03 17:03:45.758 Sunrise: 06:31:00 SunSet:20:31:00
                                        2015-08-03 17:03:45.763 Active notification subsystems: (0/8)
                                        2015-08-03 17:03:46.164 Webserver started on port: 8008
                                        2015-08-03 17:03:46.171 Webserver started on port: 443
                                        2015-08-03 17:03:46.172 Hardware Monitor: Started
                                        2015-08-03 17:03:48.509 Incoming connection from: 127.0.0.1
                                        2015-08-03 17:03:49.837 Incoming connection from: 192.168.1.14
                                        2015-08-03 17:03:50.191 MySensors: connected to: 192.168.1.152:5003
                                        

                                        Questions:

                                        • Does the GW message mean that the GW is not working properly?
                                        • I've set the IP of the GW to be 192.168.1.152 and Port 5003. Does this mean that the same port has to be free on the server side?
                                        • What is the inclusion button. Do I have to add it to the GW?

                                        So, any suggestions for troubleshooting? :bowtie:

                                        PS: Configuration summary
                                        Arduino IDE: 1.6.5
                                        OS: Mac OS X Yosemite 10.10.4 (for the sketches) and Windows 10 for Domoticz
                                        MySensor Library: 1.5

                                        hekH 1 Reply Last reply
                                        0
                                        • hekH Offline
                                          hekH Offline
                                          hek
                                          Admin
                                          wrote on last edited by
                                          #24

                                          Looks like GW has started correctly but no messages seems to reach the gateway from the node. The node is broadcasting a find-parent-request with no answer from the gateway.

                                          Hard to say what the problem is.. Have you changed any channels settings in MyConfig.h before compiling gateway/node?

                                          Z 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