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. MQTTGateway does not seem to start broker

MQTTGateway does not seem to start broker

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 4 Posters 2.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.
  • dakkyD Offline
    dakkyD Offline
    dakky
    wrote on last edited by dakky
    #1

    Hello

    I sucessfully uploaded the mqtt gateway example. The host is reachable from the network => w5100 seems to work fine.

    $> ping 192.168.111.1
    PING 192.168.111.1 (192.168.111.1) 56(84) bytes of data.
    64 bytes from 192.168.111.1: icmp_seq=1 ttl=128 time=0.092 ms
    64 bytes from 192.168.111.1: icmp_seq=2 ttl=128 time=0.091 ms
    

    Serial monitor states:

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

    so everthing seems fine in my eyes. BUT: the mqtt broker seems not to start. nmap/telnet to 192.168.111.1:1883 fails and a mosquitto_pub/sub does time out after a while.

    $> mosquitto_sub -v -t \$SYS/# -h 192.168.111.1
    
    Error: Connection timed out
    
    

    Any idea how to debug this problem?

    EDIT: I used MySigningNone signer; because debug + spi + signing does not fit on an arduino uno :(

    Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
    Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

    Software: MySensors 2.0development

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Samuel235
      Hardware Contributor
      wrote on last edited by
      #2

      First of all, could you provide the software guys here with more information to enable them to assist you. Information like; what hardware are you using, what version of MySensors are you using, what sketch is it.

      This will hopefully make the debugging job easier.

      MySensors 2.1.1
      Controller - OpenHAB (Virtual Machine)
      Gateway - Arduino Mega MQTT Gateway W5100

      1 Reply Last reply
      0
      • dakkyD Offline
        dakkyD Offline
        dakky
        wrote on last edited by dakky
        #3

        hurm you're right ;)

        some facts:

        • arduino uno R3
        • mysensors 1.5 (master)
        • sketch is the example mqtt gateway + custom IP + signing enabled (MySigningNone)
          http://www.mysensors.org/build/mqtt_gateway

        Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
        Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

        Software: MySensors 2.0development

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giova
          wrote on last edited by
          #4

          Hi,
          I have same problem on arduino one clone-w5100-mysensors 1.5-sketch is the example mqtt gateway.
          Can someone post a simply and working sketch of mqtt gateway??

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mihai
            wrote on last edited by
            #5

            I succeed to get a working system using MySensors with MQTT Gateway and Home Assistant, details here: https://github.com/Mihai258/HomeAssistant-MySensors-MQTT, or you may wait for the future release of MySensors who may work with any external mqtt broker, like mosquitto.

            G 2 Replies Last reply
            0
            • M Mihai

              I succeed to get a working system using MySensors with MQTT Gateway and Home Assistant, details here: https://github.com/Mihai258/HomeAssistant-MySensors-MQTT, or you may wait for the future release of MySensors who may work with any external mqtt broker, like mosquitto.

              G Offline
              G Offline
              giova
              wrote on last edited by
              #6

              @Mihai thanks for your reply, I read only today. I will try your sketch and tell you my results.

              1 Reply Last reply
              0
              • M Mihai

                I succeed to get a working system using MySensors with MQTT Gateway and Home Assistant, details here: https://github.com/Mihai258/HomeAssistant-MySensors-MQTT, or you may wait for the future release of MySensors who may work with any external mqtt broker, like mosquitto.

                G Offline
                G Offline
                giova
                wrote on last edited by
                #7

                @Mihai It works!! Thank you very much.
                Giovanni

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Mihai
                  wrote on last edited by
                  #8

                  You very welcome! I am happy that my work is useful for somebody else, you are the first with a feedback, so I am also happy about this. I hope my examples are simple and clear enough to build any sensor combination you need.

                  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


                  13

                  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