RPI Gateway Error
-
Hi!
I'm using a rpi gw with nrf24 in combination with Domoticz,worked ok until upgrading Domoticz that must have debian buster to work! Now it is impossible to build the gw , I have tried a number of times with fresh debian installs. and different pi's- when doing 'make' a number of warnings but no errors : one example see below
./core/MyMessage.cpp:284:17: warning: βchar strncpy(char*, const char*, size_t β output may be truncated copying between 0 and 25 bytes from a string of length 25 [-Wstringop-truncation]
(void)strncpy(buffer, this->data, this->getLength());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
In member function βchar* MyMessage::getString(char*) constβ,*- output from test :
Mar 25 10:59:23 INFO Starting gateway...
Mar 25 10:59:23 INFO Protocol version - 2.3.2
Mar 25 10:59:23 DEBUG MCO:BGN:INIT GW,CP=RNNGL---,FQ=NA,REL=255,VER=2.3.2
Mar 25 10:59:23 DEBUG TSF:LRT:OK
Mar 25 10:59:23 DEBUG TSM:INIT
Mar 25 10:59:23 DEBUG TSF:WUR:MS=0
Mar 25 10:59:23 DEBUG !TSM:INIT:TSP FAIL
Mar 25 10:59:23 DEBUG TSM:FAIL:CNT=1
Mar 25 10:59:23 DEBUG TSM:FAIL:DIS
Mar 25 10:59:23 DEBUG TSF:TDI:TSL
Mar 25 10:59:33 DEBUG TSM:FAIL:RE-INIT
Mar 25 10:59:33 DEBUG TSM:INIT
Mar 25 10:59:33 DEBUG !TSM:INIT:TSP FAIL
Mar 25 10:59:33 DEBUG TSM:FAIL:CNT=2
Mar 25 10:59:33 DEBUG TSM:FAIL:DIS
Mar 25 10:59:33 DEBUG TSF:TDI:TSL
^CMar 25 10:59:38 NOTICE Received SIGINTI am using an adapter (https://oshpark.com/shared_projects/aXLXBO3f) so pinout is ok.
Configuration :
./configure --my-transport=rf24 --my-rf24-irq-pin=18 --my-gateway=ethernet --my-port=5003 --my-leds-err-pin=11 --my-leds-rx-pin=13 --my-leds-tx-pin=15
(tried with just ./configure --my-transport=rf24, same result)Software/hardware:
debian ver 10.3 (with SPI enabled)processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5processor : 1
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5processor : 2
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5processor : 3
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5Hardware : BCM2835
Revision : a01041
Serial : 000000004831d281
Model : Raspberry Pi 2 Model B Rev 1.1Compiler : gcc (Raspbian 8.3.0-6+rpi1) 8.3.0
Is there a known problem with latest debian Buster ?
I'm going nut's and have run out of ideas how to solve thisSorry for this long text, but wanted to give as much information as possible.
Any help appreciated!
-
@hakha4 Domoticz flaked on update with my Buster on the Pi Controller, updated Buster and all fixed.
-
I have updated Buster and Domoticz works ok but can't get the gw to work. Btw is it normal (ok) to get a number of warnings when compiling??
-
@hakha4 said in RPI Gateway Error:
I have updated Buster and Domoticz works ok but can't get the gw to work. Btw is it normal (ok) to get a number of warnings when compiling??
I am getting the same warnings (about string truncation), that doesn't make it "normal", but I have a working gateway in Buster on my raspberry pi (raspbian). The error is about the radio. You have a rf24, I use a rfm69, so that is quite different.
Another difference is the gateway version. Mine is using protocol version 2.4.0-alpha:Apr 29 22:12:35 INFO Starting gateway... Apr 29 22:12:35 INFO Protocol version - 2.4.0-alpha Apr 29 22:12:35 DEBUG MCO:BGN:INIT GW,CP=RPNGL---,FQ=NA,REL=0,VER=2.4.0-alpha Apr 29 22:12:35 DEBUG TSF:LRT:OK Apr 29 22:12:35 DEBUG TSM:INIT Apr 29 22:12:35 DEBUG TSF:WUR:MS=0 Apr 29 22:12:35 DEBUG TSM:INIT:TSP OK Apr 29 22:12:35 DEBUG TSM:INIT:GW MODE Apr 29 22:12:35 DEBUG TSM:READY:ID=0,PAR=0,DIS=0 Apr 29 22:12:35 DEBUG MCO:REG:NOT NEEDED Apr 29 22:12:35 DEBUG MCO:BGN:STP Apr 29 22:12:35 DEBUG MCO:BGN:INIT OK,TSP=1 Apr 29 22:12:35 DEBUG GWT:RMQ:CONNECTING... Apr 29 22:12:35 DEBUG connected to 127.0.0.1 Apr 29 22:12:35 DEBUG GWT:RMQ:OK Apr 29 22:12:35 DEBUG GWT:TPS:TOPIC=mysensors/all/0/255/0/0/18,MSG SENT Apr 29 22:12:35 DEBUG TSM:READY:NWD REQ Apr 29 22:12:35 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: Apr 29 22:12:40 DEBUG TSF:MSG:READ,153-153-0,s=4,c=1,t=23,pt=0,l=4,sg=0:3.75 Apr 29 22:12:40 DEBUG GWT:TPS:TOPIC=mysensors/all/153/4/1/0/23,MSG SENT
I am using this version of MySensors (branch development):
git status On branch development Your branch is up to date with 'origin/development'.
The last commits that I have are:
git log commit 397b70f37b4fc5ffd15dddf49364cce2408e5bb5 (HEAD -> development, origin/development, origin/HEAD) Author: Henrik Ekblad <henrik.ekblad@gmail.com> Date: Mon Jan 6 15:47:04 2020 +0100 Fix logparser frequency regexp (#1380) commit 9040272ccbf57026780ed10f589a5498db729ae9 Author: Olivier <tekka007@users.noreply.github.com> Date: Mon Dec 9 22:43:02 2019 +0100 Development version 2.4.0-alpha (#1373)
So maybe you can try this newer development branch to build your gateway.
-
Hi! Thank's for info. I had almost given up and now using an ESP GW instead but I'll give your setup a try