Skip to content
  • 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. General Discussion
  3. Raspberry Pi and MQTT-OpenHAB
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Raspberry Pi and MQTT-OpenHAB

Scheduled Pinned Locked Moved General Discussion
mqttopenhab
3 Posts 3 Posters 2.9k 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.
  • C Offline
    C Offline
    C.r.a.z.y.
    wrote on last edited by
    #1

    I am a newbei and some stupid questions like cookies:p
    Do i have to use Raspberry Pi for OpenHAB or PiDome?

    My hardware : ENC28J60 Ethernet module + UNO + NRF24L01 Radio so I made connections following http://www.mysensors.org/build/ethernet_gateway and using sketch : http://www.mysensors.org/build/mqtt_gateway without changing any code i got this:

    Started!
    0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
    0;0;3;0;9;version mismatch
    0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
    0;0;3;0;9;version mismatch

    Is it ok?

    I tried everything to install OpenHAB server with Mac but "start.sh" didnt work, i cant open this file, do you have any idea? (Yes i installed Java)


    When Uno is connected with the same network

    • Win8 cmd is running this:****

    Launching the openHAB runtime...

    osgi> 2014-11-27 19:21:06.004 [INFO ] [.o.core.internal.CoreActivator] - openHAB

    runtime has been started (v1.6.0).

    2014-11-27 19:21:06.619 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service

    has been started

    2014-11-27 19:21:06.734 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Disco

    very initialization completed.

    2014-11-27 19:21:06.739 [INFO ] [.io.transport.mqtt.MqttService] - MQTT Service

    initialization completed.

    2014-11-27 19:21:06.739 [INFO ] [o.i.t.m.i.MqttBrokerConnection] - Starting MQTT

    broker connection 'mysensor'

    2014-11-27 19:21:07.990 [INFO ] [penhab.io.rest.RESTApplication] - Started REST

    API at /rest

    2014-11-27 19:21:16.926 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Class

    ic UI at /openhab.app

    2014-11-27 19:21:27.769 [ERROR] [.io.transport.mqtt.MqttService] - Error startin

    g broker connection

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

        at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNet
    

    workModule.java:75) ~[na:na]

        at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(Cli
    

    entComms.java:538) ~[na:na]

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

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

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

    1.8.0_25]

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

    1.8.0_25]

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

    _25]

        at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[n
    

    a:1.8.0_25]

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

    5]

        at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_25]
    
        at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_25]
    
        at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_25]
    
        at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNet
    

    workModule.java:66) ~[na:na]

        ... 2 common frames omitted
    
    1 Reply Last reply
    0
    • JohnJ Offline
      JohnJ Offline
      John
      Plugin Developer
      wrote on last edited by
      #2

      If you are planning on using PiDome i would say yes because that is the primary platform focused on, it could theoratically also run on other platforms but we are not done yet supporting a correct way to start.

      If you are planning openhab you can run it on other systems like windows (as you do (win8?)) as well.

      Your first error, i would say double check you are using the latest versions of each (MQTT gateway on the uno and the nodes).

      The second error mentions that it is having a connection timeout which would say it is unable to reach the given ip address, make sure you can connect to the MQTT broker on the uno using for example with mqtt.fx (http://mqttfx.jfx4ee.org/). or other mqtt tools.

      John.

      My Domotica project: http://www.pidome.org

      1 Reply Last reply
      0
      • daulagariD Offline
        daulagariD Offline
        daulagari
        Hero Member
        wrote on last edited by
        #3

        I can nothing say about OpenHAB or PiDome but:

        Started!
        0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
        0;0;3;0;9;version mismatch 
        0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
        0;0;3;0;9;version mismatch
        

        Does not look good, it seems an error from the gateway.

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


        14

        Online

        11.7k

        Users

        11.2k

        Topics

        113.0k

        Posts


        Copyright 2019 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
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular