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
T

TommiP

@TommiP
Unfollow Follow
About
Posts
6
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 💬 Building a Raspberry Pi Gateway
    T TommiP
    Announcements

    @marceloaqno
    Ok, now I understand what happened, thanks.


  • 💬 Building a Raspberry Pi Gateway
    T TommiP
    Announcements

    Hi
    Is anyone else having this same problem on Rpi3?: Gateway works ok after "sudo make install" with openHAB. With "sudo ./bin/mysgw -d" I can get debug log visible and log works ok.
    But if I run "sudo systemctl enable mysgw.service" after "sudo make install", debug log start showing endlessly "mysgw: accept: Bad file descriptor". So debug log function gets destroyed and it can't be used anymore. I have made several clean installations and every time this same happens.
    Br
    Tommi


  • Help needed to beginner
    T TommiP
    OpenHAB

    Ok, now I got gateway working and openHAB 2 latest snapshot reading temperature sensor. Only thing did not work automatically was Thing auto discovery in openHAB. I needed manually add things ( MySensors Ethernet Gateway and Temperature Sensor).
    Temperature sensor Node ID and Child ID needed to be checked from log and manually put in Thing settings.
    Ethernet Gateway needed also IP 127.0.0.1 manually put in.

    This is what I made:

    • install fresh openHABian to Rpi3
    • update openhab to latest snapshot
    • install MySensors gateway, stop installation commands after:
      To install run:
      sudo make install
    • install MySensors openhab 2 binding
    • manually added things (with values) in openhab

    Br
    Tommi


  • Help needed to beginner
    T TommiP
    OpenHAB

    @gohan

    Ok, good to know, Thanks for information gohan.
    When you installed gateway, did you run these commands?:
    ./configure --my-gateway=ethernet --my-controller-url-address=YOUR-CONTROLLER-ADDRESS
    or
    ./configure --my-gateway=ethernet --my-controller-ip-address=YOUR-CONTROLLER-IP

    Br
    Tommi


  • Help needed to beginner
    T TommiP
    OpenHAB

    @keldandorin
    If you mean by debug this:
    pi@raspberrypi:~/MySensors $ sudo ./bin/mysgw -d
    it gives endlessly this:
    mysgw: accept: Bad file descriptor

    I think this problem has something to do with Rpi3 and GPIO uart/serial problem described in here?:
    http://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/
    and here?:
    http://raspberrypi.stackexchange.com/questions/45570/how-do-i-make-serial-work-on-the-raspberry-pi3
    Br
    Tommi


  • Help needed to beginner
    T TommiP
    OpenHAB

    Re: openHAB 2.0 binding

    Hi
    I have openHAB 2 latest snapshot installed on Raspberry Pi 3 model B. I have installed MySensors Binding for OpenHAB 2.x as described in here:
    https://github.com/tobof/openhab2-addons/wiki/Installation
    MySensors binding can be found from openHAB PaperUI.
    My Problem is that I can't get gateway working. I have connected NRF24L01+ and installed gateway as described in here:
    https://www.mysensors.org/build/raspberry

    My questions are:

    1. should I leave gateway to ethernet or change it to serial?
    2. which one should I choose in openHAB binding, serial or ethernet gateway?
    3. should I run some of these commands during gateway installation:

    -"By default, the gateway is built for ethernet and it listens on port 5003:
    ./configure --my-gateway=ethernet --my-port=5003

    -To set the gateway as a client that connects to a controller, use:
    ./configure --my-gateway=ethernet --my-controller-url-address=YOUR-CONTROLLER-ADDRESS
    or
    ./configure --my-gateway=ethernet --my-controller-ip-address=YOUR-CONTROLLER-IP

    Br
    Tommi

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular