💬 Building a Raspberry Pi Gateway
-
Hi to all,
I'm testing an ethernet gateway on RPI3, with nrf24 + 1 node with a relay.I want introduce security and signing. On Arduino gateway / node no problem at all, but, how to do on the RPI3 as gateway?
I would get / create / set a software serial on PI itself and whitelisting it on the node, after I will introduce the AES Key and signing.
Cannot find in documentation how do it on PI3. Thank you very much!
@sineverba said in 💬 Building a Raspberry Pi Gateway:
Hi to all,
I'm testing an ethernet gateway on RPI3, with nrf24 + 1 node with a relay.I want introduce security and signing. On Arduino gateway / node no problem at all, but, how to do on the RPI3 as gateway?
I would get / create / set a software serial on PI itself and whitelisting it on the node, after I will introduce the AES Key and signing.
Cannot find in documentation how do it on PI3. Thank you very much!
Earlier in this forum... https://forum.mysensors.org/topic/4803/building-a-raspberry-pi-gateway/350
-
@ghiglie https://lists.yoctoproject.org/pipermail/yocto/2016-January/028233.html seems to suggest that adding
#include <asm/ioctl.h>would solve the problem. Could you try that?
@mfalkvidd I'm trying today, but to compile correctly the Docker image I'll have to clone to my github account :( or at least locally. My Dockerfile for the "Alpine edition" for Hass.io is simply:
ARG BUILD_FROM ARG BUILD_ARCH ARG BUILD_DATE ARG BUILD_REF ARG BUILD_VERSION FROM ${BUILD_FROM} ENV CONFIG_PATH=/data/options.json ENV APPDIR=/opt/MySensors RUN apt-get update && apt-get install -y --force-yes \ make \ g++ \ git \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache \ && git clone https://github.com/mysensors/MySensors.git --branch development $APPDIR # Copy root filesystem COPY rootfs / #CMD [ "/run.sh" ]I deleted the LABELS 'cause... the data is still too rawly "buried" from others. :tongue:
The Configure and Make is in run.sh.
BTW, I still need to figure out how to start mysgw as service... Mainlyt I'd like to redirect the log: how can I do this safely?
And... can I use the rx/tx/err led feature on Raspi too (aside being in a Docker) ?
EDIT: the code add works!
Another question: I'm not getting far from this... what is it trying to do?: Starting gateway... : Protocol version - 2.2.0-rc.2 : MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0-rc.2 : TSF:LRT:OK : TSM:INIT : TSF:WUR:MS=0 -
@sineverba said in 💬 Building a Raspberry Pi Gateway:
Hi to all,
I'm testing an ethernet gateway on RPI3, with nrf24 + 1 node with a relay.I want introduce security and signing. On Arduino gateway / node no problem at all, but, how to do on the RPI3 as gateway?
I would get / create / set a software serial on PI itself and whitelisting it on the node, after I will introduce the AES Key and signing.
Cannot find in documentation how do it on PI3. Thank you very much!
Earlier in this forum... https://forum.mysensors.org/topic/4803/building-a-raspberry-pi-gateway/350
-
Does the Pi Gateway support the MY_SIGNING_SIMPLE_PASSWD option? I couldn't find anything about that. I've been gearing up to use that feature in my network, but I've also been playing with moving my gateway onto my Pi Zero W.
-
Does the Pi Gateway support the MY_SIGNING_SIMPLE_PASSWD option? I couldn't find anything about that. I've been gearing up to use that feature in my network, but I've also been playing with moving my gateway onto my Pi Zero W.
-
@alowhum If you want to just encrypt data, just add the encryption key in the myconfig.h file and compile it
-
Anyone tried using the new Pi Zero WH as a Raspberry Pi Gateway. Presumably by MQTT and using NRF24 radio?
@alowhum Have you been able to setup a gateway with your Raspberry Pi Zero?
-
Does the Pi Gateway support the MY_SIGNING_SIMPLE_PASSWD option? I couldn't find anything about that. I've been gearing up to use that feature in my network, but I've also been playing with moving my gateway onto my Pi Zero W.
@alowhum yes, to use MY_SIGNING_SIMPLE_PASSWD feature, add the following to your list of configure options:
... --my-signing=password --my-signing-password=<PASSWORD> -
Is there anyway where i can see if i have IRQ configured ?
ive build it a long time ago, but now upgraded to a nrf24 PA/LNA and have more an more sensors. -
look inside makefile.inc in mysensors folder, that should contain the parameters you set in ./configure
@gohanm, as it seems not ?, can i rebuild it easily? ```
SOC=BCM2837
CPPFLAGS=-march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_NRF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -DMY_PORT=5003
LDFLAGS=-pthread
PREFIX=/usr/local
CC=gcc
CXX=g++
BUILDDIR=build
BINDIR=bin
GATEWAY_DIR=/usr/local/bin
INIT_SYSTEM=systemd
SPI_DRIVER=BCM``` -
@gohan make a copy of the makefile.inc and restart the ./configure command again you mean ?
ill try it tomorrow, too afraid to break things late in the evening ;) -
but ill have to do it sometime , just ./configure with all the options, build , test and install ?
-
if you only want to check if irq is enabled, otherwise you could just build it fresh with irq enabled and you can go back by replacing the mysgw executable
@gohan ty
-
This post is deleted!