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. Controllers
  3. OpenHAB
  4. Problem on cummunicate beween arduino Mosquitto broker openhab

Problem on cummunicate beween arduino Mosquitto broker openhab

Scheduled Pinned Locked Moved OpenHAB
11 Posts 3 Posters 6.7k Views 1 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.
  • J Offline
    J Offline
    JackRyan
    wrote on last edited by JackRyan
    #1

    Hi I need anybody to help me regarding openHAB and Mosquitto to communicate with arduino mega + w5100 ethernet shield.

    I already install and followed all the installation step on both openHAB and Mosquitto.
    www.instructables.com/id/Garage-Genie-Parking-Remote-Control/?ALLSTEPS

    But, I got an error on openHAB:

    2015-03-11 00:38:03.979 [ERROR] [.io.transport.mqtt.MqttService] - Error starting broker connection

    org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server

    at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:75) ~[na:na]

    at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:538) ~[na:na]

    at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_40]

    Caused by: java.net.ConnectException: Connection timed out: connect

    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[na:1.8.0_40]

    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_40]

    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_40]

    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_40]

    at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_40]

    at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_40]

    at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_40]

    Arduino error:
    error connecting to MQTT

    Please, help me
    Tq.

    M 1 Reply Last reply
    0
    • J JackRyan

      Hi I need anybody to help me regarding openHAB and Mosquitto to communicate with arduino mega + w5100 ethernet shield.

      I already install and followed all the installation step on both openHAB and Mosquitto.
      www.instructables.com/id/Garage-Genie-Parking-Remote-Control/?ALLSTEPS

      But, I got an error on openHAB:

      2015-03-11 00:38:03.979 [ERROR] [.io.transport.mqtt.MqttService] - Error starting broker connection

      org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server

      at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:75) ~[na:na]

      at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:538) ~[na:na]

      at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_40]

      Caused by: java.net.ConnectException: Connection timed out: connect

      at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[na:1.8.0_40]

      at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_40]

      at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_40]

      at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_40]

      at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_40]

      at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_40]

      at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_40]

      Arduino error:
      error connecting to MQTT

      Please, help me
      Tq.

      M Offline
      M Offline
      marceloaqno
      Code Contributor
      wrote on last edited by
      #2

      @JackRyan Which part of your project mysensors comes in?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JackRyan
        wrote on last edited by
        #3

        @celonunes: Actualy I just follow this link exactly :
        www.instructables.com/id/Garage-Genie-Parking-Remote-Control/?ALLSTEPS

        Step (After all the connection and installation done):
        1-open mosquitto in command windows
        2-open openHAB start.bat

        error at
        2015-03-11 00:38:03.979 [ERROR] [.io.transport.mqtt.MqttService] - Error starting broker connection

        org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server

        3- open arduino serial monitior
        error connecting to mqtt

        M 1 Reply Last reply
        0
        • J JackRyan

          @celonunes: Actualy I just follow this link exactly :
          www.instructables.com/id/Garage-Genie-Parking-Remote-Control/?ALLSTEPS

          Step (After all the connection and installation done):
          1-open mosquitto in command windows
          2-open openHAB start.bat

          error at
          2015-03-11 00:38:03.979 [ERROR] [.io.transport.mqtt.MqttService] - Error starting broker connection

          org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server

          3- open arduino serial monitior
          error connecting to mqtt

          M Offline
          M Offline
          marceloaqno
          Code Contributor
          wrote on last edited by
          #4

          @JackRyan You need to set the mosquitto server ip in the openhab.cfg file. I don't know if the instructables guide explain it. Did you do that?
          You can find more about it here:
          http://forum.mysensors.org/topic/303/mqtt-broker-gateway

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JackRyan
            wrote on last edited by
            #5

            @celonunes Yes I already done it like this right
            mqtt:mymosquitto.url=tcp://192.168.1.13:1883
            mqtt:mymosquitto.clientId=MQTT

            M 1 Reply Last reply
            0
            • J JackRyan

              @celonunes Yes I already done it like this right
              mqtt:mymosquitto.url=tcp://192.168.1.13:1883
              mqtt:mymosquitto.clientId=MQTT

              M Offline
              M Offline
              marceloaqno
              Code Contributor
              wrote on last edited by
              #6

              @JackRyan You are running both mosquitto and openhab in the same computer, right? Are you sure 192.168.1.13 is your computer ip? If you are using Windows try to disable the firewall or change the ip in openhab.cfg to 127.0.0.1

              1 Reply Last reply
              0
              • J Offline
                J Offline
                JackRyan
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  JackRyan
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    JackRyan
                    wrote on last edited by
                    #9

                    Thank you for helping me...I just realize that my ip address is wrong.

                    1 Reply Last reply
                    0
                    • E Offline
                      E Offline
                      ewgor
                      wrote on last edited by
                      #10

                      hi all, i have a problem and i don't know where else to ask for help!
                      i'm trying to install mosquitto broker in my pc for a long time but no positive result. i have a laptop with win 7 and after i download the mosquitto broker for my system a lot of dll have been required like ssleay 32 or cygcrypto .... after downloading and installing them when i try to open mosquitto.exe i get this message that the application was not able to start correctly (0xc000007b or something!
                      can anyone please help understand what i'm doing wrong or what i have to do to see this mosquitto running on my pc?
                      thank you in advance.

                      1 Reply Last reply
                      0
                      • E Offline
                        E Offline
                        ewgor
                        wrote on last edited by
                        #11

                        anybody, any ideea? how to set mosquitto in my pc?
                        please help....
                        thanks.

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


                        28

                        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