Raspberry Pi and MQTT-OpenHAB



  • 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

  • Plugin Developer

    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.


  • Hero Member

    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.


Log in to reply
 

Suggested Topics

  • 7
  • 49
  • 1
  • 2
  • 2
  • 6
  • 3
  • 3

15
Online

11.4k
Users

11.1k
Topics

112.7k
Posts