@marceloaqno
Ok, now I understand what happened, thanks.
TommiP
@TommiP
Best posts made by TommiP
Latest posts made by TommiP
-
RE: 💬 Building a Raspberry Pi Gateway
-
RE: 💬 Building a Raspberry Pi Gateway
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 -
RE: Help needed to beginner
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 -
RE: Help needed to beginner
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-IPBr
Tommi -
RE: Help needed to beginner
@keldandorin
If you mean by debug this:
pi@raspberrypi:~/MySensors $ sudo ./bin/mysgw -d
it gives endlessly this:
mysgw: accept: Bad file descriptorI 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
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/raspberryMy questions are:
- should I leave gateway to ethernet or change it to serial?
- which one should I choose in openHAB binding, serial or ethernet gateway?
- 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-IPBr
Tommi