These postal companies, having the monopoly for postal services became pimps, picking pockets for their good.
pw44
Posts
-
2021 EU customs regulatory changes — where should I buy now? -
Unable to add node - more than 2@mfalkvidd said in Unable to add node - more than 2:
which debugs are necessary?
MY_DEBUG or MY_DEBUG and MY_DEBUG_VERBOSE_RF24?
-
Unable to add node - more than 2@mfalkvidd i really like the concept, but having troubles by trying more than 2 nodes is simply ridiculous.
I'm not finding out how to solve it.
i have 3 nodes. all works, but only 2 at a time. clearing the eeproms and flahsing again, it's like the 2 fastest. in any order. but only 2.
-
Unable to add node - more than 2@mfalkvidd
thx for answering.all use the same radio channel: 72
the problematic node was working before.
original: esp8266 gateway + 4 binarys sensor node + weather station node - all ok, no problem
by trying to add the 6 binary sensor node, this new node was never added.clearead all gw + 3 nodes - eeprom.
now: esp8266 gateway + 4 binarys sensor node + 6 binary sensor node - all ok, no problem
the weather station node, which was working before, does not get added.seams that by node 3, it gets refused.
{ "0": { "sensor_id": 0, "children": {}, "type": 18, "sketch_name": null, "sketch_version": null, "battery_level": 0, "protocol_version": "2.3.2", "heartbeat": 0 }, "1": { "sensor_id": 1, "children": { "1": { "id": 1, "type": 0, "description": "", "values": {} }, "2": { "id": 2, "type": 0, "description": "", "values": {} }, "3": { "id": 3, "type": 0, "description": "", "values": {} }, "4": { "id": 4, "type": 0, "description": "", "values": {} } }, "type": 18, "sketch_name": "Door Window Sns x4", "sketch_version": "1.0", "battery_level": 0, "protocol_version": "2.3.2", "heartbeat": 0 }, "2": { "sensor_id": 2, "children": { "1": { "id": 1, "type": 0, "description": "", "values": {} }, "2": { "id": 2, "type": 0, "description": "", "values": {} }, "3": { "id": 3, "type": 0, "description": "", "values": {} }, "4": { "id": 4, "type": 0, "description": "", "values": {} }, "5": { "id": 5, "type": 0, "description": "", "values": {} }, "6": { "id": 6, "type": 0, "description": "", "values": {} } }, "type": 18, "sketch_name": "Door Window Sns x6", "sketch_version": "1.0", "battery_level": 0, "protocol_version": "2.3.2", "heartbeat": 0 } } -
Unable to add node - more than 2Hya,
i have a esp8266 gateway and had 2 nodes - one with 4 binary sensor (door/window) and one weather station
Both nodes works very well with the gateway.
By trying to add a 3rd node, did not work. the 3rd node, a 6 binary sensor (door/window).
By last resource, i cheared the eeprom of all devices, 3 nodes and the gateway and flashed all again.
Now, i have 4 binary sensor and 6 binary sensor recognized by the gateway and the weather station not being included.
Yes, all are using the same radio channel.
No, no hardware was modified.
Is there any limitation?
Any hint of what can be done?
Thx in advance.
-
Node inclusion problem.@mfalkvidd may this problem be related with eeprom stored vars?
i will clear the eeproms and flash gatewayand nodes again.
-
Node inclusion problem.This is what i have from GW:
⸮⸮⸮⸮⸮hlD⸮x⸮hT⸮76 MCO:BGN:INIT GW,CP=RNNGE---,FQ=80,REL=255,VER=2.3.2 134 TSF:LRT:OK 149 TSM:INIT 163 TSF:WUR:MS=0 186 TSM:INIT:TSP OK 207 TSM:INIT:GW MODE 229 TSM:READY:ID=0,PAR=0,DIS=0 262 MCO:REG:NOT NEEDED scandone 1367 GWT:TIN:CONNECTING... 2396 GWT:TIN:CONNECTING... scandone state: 0 -> 2 (b0) 4175 GWT:TIN:CONNECTING... state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 5 cnt connected with Hirschberg, channel 1 dhcp client start... ip:192.168.80.9,mask:255.255.255.0,gw:192.168.80.1 4393 GWT:TIN:IP: 192.168.80.9 4424 MCO:BGN:STP 4442 MCO:BGN:INIT OK,TSP=1 4471 TSM:READY:NWD REQ 4498 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: 12252 GWT:TSA:C=0,CONNECTED pm open,type:2 0 22390 GWT:RFC:C=0,MSG=0;255;3;0;2; 32460 GWT:RFC:C=0,MSG=0;255;3;0;2; 42660 GWT:RFC:C=0,MSG=0;255;3;0;2; 52698 GWT:RFC:C=0,MSG=0;255;3;0;2; 62829 GWT:RFC:C=0,MSG=0;255;3;0;2; 72967 GWT:RFC:C=0,MSG=0;255;3;0;2; 83002 GWT:RFC:C=0,MSG=0;255;3;0;2; 93141 GWT:RFC:C=0,MSG=0;255;3;0;2; 103175 GWT:RFC:C=0,MSG=0;255;3;0;2;no node being recognized
and these are the arduino mini pro gpios being used
#define BUTTON_PIN1 3 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN2 4 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN3 5 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN4 6 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN5 7 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN6 8 // Arduino Digital I/O pin for button/reed switch -
Node inclusion problem.@mfalkvidd ok, but does it have any influence by node being recognized by gateway?
-
Node inclusion problem.@mfalkvidd well, neither my build gateway or the two working nodes have MY_NODE_ID and MY_PARENT_NODE_ID.
in one of the posts, one user claimed not being able to include a node, but was able to do it by defining those https://forum.mysensors.org/post/36819.
so, the question is if those are necessary by having the gateway and nodes, and how to use it?
shall i define MY_NODE_ID 0 to the gateway and AUTO do the nodes, by MY_PARENT_NODE_ID, or MY_PARENT_NODE_ID 0 to the nodes?
yes, maybe stupid questions, but i didn't realize, as i have one gateway and two nodes working and a third one not being registered, even with some nrf24l01 replaced.
-
Node inclusion problem.@mfalkvidd ok, i did, and did not understand how it works, that's why i asked.
-
Node inclusion problem. -
Node inclusion problem.@mfalkvidd with linux i'm very confortable... screen /dev/ttyUSB0 9600
-
Node inclusion problem.@pw44 any hint in how to?
-
nRF24DoctorHya,
correct me if i'm wrong.
To make use of this, two units must be built. One for node and other for gateway.
Is this undestanding correct? If not, how to use nRF24DoctorGateway and nRF24DoctorNode?
Thx in advance.
-
Node inclusion problem.@mfalkvidd the two other nodes are as close as this third, and are being recognized.
How to get the gateway's log?
by telnet gateway's ip 5003? or is there any other way without pluging to the arduino ide and opening the serial monitor for debug?
Regarding "But it could be a problem with the radio or the antenna", it happened with 3 different nrf24l01 (no extendal antenna).
Thx in advance
-
Node inclusion problem.Hya,
some time ago i've built a 8266 gateway, a weather station and a binary sensor ( for 4 door/window) and it's working well.
Today i´ve bult another binary sensor (door/window) with 6 sensors.
But no way it get's recognized.
The dbug output shows:
__ __ ____ | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ |___/ 2.3.2 209 MCO:BGN:INIT REPEATER,CP=RNNRA---,FQ=16,REL=255,VER=2.3.2 342 TSM:INIT 355 TSF:WUR:MS=0 377 TSM:INIT:TSP OK 399 TSM:FPAR 414 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 2492 !TSM:FPAR:NO REPLY 2516 TSM:FPAR 2533 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 4612 !TSM:FPAR:NO REPLY 4636 TSM:FPAR 4653 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 6731 !TSM:FPAR:NO REPLY 6756 TSM:FPAR 6772 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 8851 !TSM:FPAR:FAIL 8871 TSM:FAIL:CNT=1 8892 TSM:FAIL:DIS 8911 TSF:TDI:TSL 18930 TSM:FAIL:RE-INIT 18954 TSM:INIT 18975 TSM:INIT:TSP OK 18998 TSM:FPAR 19015 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 21095 !TSM:FPAR:NO REPLY 21121 TSM:FPAR 21138 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 23218 !TSM:FPAR:NO REPLY 23243 TSM:FPAR 23261 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 25341 !TSM:FPAR:NO REPLY 25367 TSM:FPAR 25384 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 27464 !TSM:FPAR:FAIL 27486 TSM:FAIL:CNT=2 27508 TSM:FAIL:DIS 27528 TSF:TDI:TSL 37548 TSM:FAIL:RE-INIT 37571 TSM:INIT 37593 TSM:INIT:TSP OK 37615 TSM:FPAR 37633 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 39712 !TSM:FPAR:NO REPLY 39738 TSM:FPAR 39755 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 41835 !TSM:FPAR:NO REPLY 41861 TSM:FPAR 41878 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 43958 !TSM:FPAR:NO REPLY 43983 TSM:FPAR 44001 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 46081 !TSM:FPAR:FAIL 46102 TSM:FAIL:CNT=3 46125 TSM:FAIL:DIS 46144 TSF:TDI:TSL 56164 TSM:FAIL:RE-INIT 56187 TSM:INIT 56209 TSM:INIT:TSP OK 56231 TSM:FPAR 56249 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 58329 !TSM:FPAR:NO REPLY 58354 TSM:FPAR 58372 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 60451 !TSM:FPAR:NO REPLY 60477 TSM:FPAR 60494 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 62574 !TSM:FPAR:NO REPLY 62600 TSM:FPAR 62617 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 64697 !TSM:FPAR:FAIL 64718 TSM:FAIL:CNT=4 64741 TSM:FAIL:DIS 64760 TSF:TDI:TSL 74781 TSM:FAIL:RE-INIT 74805 TSM:INIT 74826 TSM:INIT:TSP OK 74849 TSM:FPAR 74866 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 76946 !TSM:FPAR:NO REPLY 76972 TSM:FPAR 76989 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 79069 !TSM:FPAR:NO REPLY 79094 TSM:FPAR 79112 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 81192 !TSM:FPAR:NO REPLY 81218 TSM:FPAR 81235 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 83315 !TSM:FPAR:FAIL 83337 TSM:FAIL:CNT=5 83359 TSM:FAIL:DIS 83379 TSF:TDI:TSL 93399 TSM:FAIL:RE-INIT 93422 TSM:INIT 93444 TSM:INIT:TSP OK 93466 TSM:FPAR 93484 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 95563 !TSM:FPAR:NO REPLY 95589 TSM:FPAR 95606 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 97686 !TSM:FPAR:NO REPLY 97712 TSM:FPAR 97729 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 99809 !TSM:FPAR:NO REPLY 99834 TSM:FPAR 99852 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 101932 !TSM:FPAR:FAIL 101954 TSM:FAIL:CNT=6 101978 TSM:FAIL:DIS 101998 TSF:TDI:TSL 112020 TSM:FAIL:RE-INIT 112045 TSM:INIT 112067 TSM:INIT:TSP OK 112091 TSM:FPAR 112109 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 114191 !TSM:FPAR:NO REPLY 114217 TSM:FPAR 114236 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 116317 !TSM:FPAR:NO REPLY 116343 TSM:FPAR 116362 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 118443 !TSM:FPAR:NO REPLY 118469 TSM:FPAR 118488 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 120568 !TSM:FPAR:FAIL 120591 TSM:FAIL:CNT=7as i understand, radio does not connect.
The radio definitions are the same:
// Enables and select radio type (if attached) #define MY_RADIO_RF24 #define MY_RF24_PA_LEVEL (RF24_PA_MAX) // RF24_PA_MIN = -18dBm RF24_PA_LOW = -12dBm RF24_PA_HIGH = -6dBm RF24_PA_MAX = 0dBm #define MY_RF24_CHANNEL (1) // RF channel for the sensor net, 0-125.and gateway and this new device are 1 meter far fom another.
Any hint of what could avoid the connection?
The capacitor i've used for the nrf24l01 is a 10uF 25V
Thx in advance.
-
Mysensors libray error - esp8266@pw44 downgraded ESP from 3.0.1 to 2.7.4 and issue is gone.
-
Mysensors libray error - esp8266Hya,
i got the following errror while trying to compile the code:
Sketch wird kompiliert... /home/paulo/.arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 /home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/signing.py --mode header --publickey /home/paulo/Arduino/Projects/PW/MySensors/GatewayESP8266-pw/public.key --out /tmp/arduino_build_767423/core/Updater_Signing.h /home/paulo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.0-newlib4.0.0-gnu23-48f7b08/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/sdk/include -I/home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/sdk/lwip2/include -I/home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_767423/core -c -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_WEMOS_D1MINIPRO -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINIPRO\"" -DFLASHMODE_DIO -DESP8266 -I/home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/cores/esp8266 -I/home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/variants/d1_mini -I/home/paulo/Arduino/Projects/libraries/MySensors -I/home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/libraries/SPI -I/home/paulo/Arduino/Projects/libraries/ESP8266WiFi/src -I/home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/libraries/EEPROM /tmp/arduino_build_767423/sketch/GatewayESP8266-pw.ino.cpp -o /tmp/arduino_build_767423/sketch/GatewayESP8266-pw.ino.cpp.o In file included from /home/paulo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.0-newlib4.0.0-gnu23-48f7b08/xtensa-lx106-elf/include/assert.h:10, from /home/paulo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.0-newlib4.0.0-gnu23-48f7b08/xtensa-lx106-elf/include/sys/reent.h:503, from /home/paulo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.0-newlib4.0.0-gnu23-48f7b08/xtensa-lx106-elf/include/stdlib.h:18, from /home/paulo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.0-newlib4.0.0-gnu23-48f7b08/xtensa-lx106-elf/include/c++/10.2.0/cstdlib:75, from /home/paulo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.0-newlib4.0.0-gnu23-48f7b08/xtensa-lx106-elf/include/c++/10.2.0/stdlib.h:36, from /home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/cores/esp8266/Arduino.h:27, from /tmp/arduino_build_767423/sketch/GatewayESP8266-pw.ino.cpp:1: /home/paulo/Arduino/Projects/libraries/MySensors/core/MyProtocol.cpp: In function 'char* protocolMyMessage2Serial(MyMessage&)': /home/paulo/Arduino/Projects/libraries/MySensors/core/MyProtocol.cpp:94:28: error: expected ')' before '__INT8' 94 | PSTR("%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%s\n"), message.getSender(), | ^~~~~ /home/paulo/Arduino/Projects/libraries/MySensors/core/MyProtocol.cpp:94:19: note: to match this '(' 94 | PSTR("%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%s\n"), message.getSender(), | ^~~~ /home/paulo/Arduino/Projects/libraries/MySensors/core/MyProtocol.cpp: In function 'char* protocolMyMessage2MQTT(const char*, MyMessage&)': /home/paulo/Arduino/Projects/libraries/MySensors/core/MyProtocol.cpp:103:31: error: expected ')' before '__INT8' 103 | PSTR("%s/%" PRIu8 "/%" PRIu8 "/%" PRIu8 "/%" PRIu8 "/%" PRIu8 ""), prefix, | ^~~~~ /home/paulo/Arduino/Projects/libraries/MySensors/core/MyProtocol.cpp:103:19: note: to match this '(' 103 | PSTR("%s/%" PRIu8 "/%" PRIu8 "/%" PRIu8 "/%" PRIu8 "/%" PRIu8 ""), prefix, | ^~~~ Mehrere Bibliotheken wurden für "ESP8266WiFi.h" gefunden Benutzt: /home/paulo/Arduino/Projects/libraries/ESP8266WiFi Nicht benutzt: /home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/libraries/ESP8266WiFi Mehrere Bibliotheken wurden für "EEPROM.h" gefunden Benutzt: /home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/libraries/EEPROM Nicht benutzt: /home/paulo/Arduino/Projects/libraries/EEPROM Bibliothek MySensors in Version 2.3.2 im Ordner: /home/paulo/Arduino/Projects/libraries/MySensors wird verwendet Bibliothek SPI in Version 1.0 im Ordner: /home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/libraries/SPI wird verwendet Bibliothek ESP8266WiFi in Version 1.0 im Ordner: /home/paulo/Arduino/Projects/libraries/ESP8266WiFi wird verwendet Bibliothek EEPROM in Version 1.0 im Ordner: /home/paulo/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/libraries/EEPROM wird verwendet exit status 1 Fehler beim Kompilieren für das Board LOLIN(WEMOS) D1 mini Pro.anyone aware of what it can be?
thx in advance.
-
ESP8266 nRF24L01 Gateway - photos of the finished device




-
Which pins should I use for status led on a wemos d1 mini gateway@pw44 and so, my first assbled gateway looks like:





Now i will try a more robust version, with external antenna.