π¬ Building a Raspberry Pi Gateway
-
excellent, will the cpu utilisation be much higher that with a usb connected gw ?
-
@Richard van der Plas: I strongly recommend to use MQTT instead of Ethernet gateway, as it is a standard way for 2 processes to communicate, and platform-agnostic.
HASS comes with an embed MQTT broker taht works out of the box.
Plus:- you can easily mock either your sensors network or your controller
- it does support secure communication
- you can add other clients to observe the event, e.g. to log what is coming from/what is sent to the gateway
-
Hi
I also have problem to get the NRF24L01+ chip to work with the RPi3.I find that the masterbranch don't recognize the board as RPi3 and sets SoC and Type as unknown.
But if i take development branch itΒ΄s detecting RPi3 and seems to work correct.This is result from development Branch configure:
[SECTION] Detecting target machine.
[OK] machine detected: SoC=BCM2837, Type=rpi3, CPU=armv7l.
[SECTION] Detecting SPI driver.
[OK] SPI driver detected:BCM.
[SECTION] Detecting init system.
[OK] init system detected: systemd.
[SECTION] Saving configuration.
[SECTION] Cleaning previous builds.
[OK] Finished.This is result from Master Branch configure:
[SECTION] Detecting target machine.
[OK] machine detected: SoC=unknown, Type=unknown, CPU=armv7l.
[SECTION] Checking GPIO Sysfs.
[OK] /sys/class/gpio/export found
[SECTION] Detecting SPI driver.
[OK] SPI driver detected:SPIDEV.
[SECTION] Detecting init system.
[OK] init system detected: systemd.
[SECTION] Saving configuration.
[SECTION] Cleaning previous builds.
[OK] Finished.This is the result from cat /proc/cpuinfo:
Hardware : BCM2835
Revision : a02082//Peter
-
-
How will this work with HASS running on the same pi ?
@Richard-van-der-Plas what is this: HASS ?
-
Ok, i am standig on a crossroad it seems, i have to build a new gateway but i am also interested in the MQTT option, this is between mysensors & HomeASSistant i presume? i have some ESP's lying around unused, but i have 0 knowledge of mqtt (i dont think my hass has it running by default)
-
Damn, just connected as in manual, but gives an error : mysgw: !TSM:INIT:TSP FAIL
Double checked the GPIO pins (except 15 cannot find that one) but seems ok -
NM, used GPIO numbers instead of Pin numbers RTFM :)
-
I always have a
mysgw: accept: Bad file descriptorerror when I launch a new./bin/mysgw -dExact problem is the following:mysgw: bind: Address already in use mysgw: Failed to bind!And I always need to kill the process first. Is this normal ? (I'm in LAN GW)
Thanks!
-
@gohan said in π¬ Building a Raspberry Pi Gateway:
lready installed mysgw as service to start at boot, it is normal that you can not run another process in debug mode and it conflicts
Oh, Ok. Thanks.
Another thing is that when i close PuTTY, the gateway doesn't retrieve anymore the data... -
Is it this process :
1421 ? Rs 40:25 /usr/local/bin/mysgwSeems it runs for 40 minutes, but no the gateway sees no data...