Thank you :), version 2.7.4 works
skom
@skom
Best posts made by skom
Latest posts made by skom
-
Gateway stopped "seeing" the sensors
I use MySensors: Gateway ESP8266 WiFi (power supply), Sensory: Pulse Water Meter (power supply), Pulse Gas Meter (battery powered) and check PostBox (battery powered). Everything worked fine for over a year. However, a month ago, the gateway stopped receiving information from sensors (all sensors were no longer visible within an hour - battery sensors sent the battery status every hour). After disconnecting the power supply from Gateway and sensors, it started working again (but only for a dozen or so days). after this time, disconnecting the power supply (several times already) restored the power of this system - unfortunately for a few days. After this time, disconnecting the power supply and restarting the Gateway and sensors did not help. And since then I have failed to "get" the system to work.
GatewayESP8266.ino:
#define MY_DEBUG #define MY_BAUD_RATE 9600 #define MY_RADIO_RF24 #define MY_GATEWAY_ESP8266 #define MY_WIFI_SSID "P*a" #define MY_WIFI_PASSWORD "***" #define MY_HOSTNAME "ESP8266_GW" #define MY_PORT 5003 #define MY_GATEWAY_MAX_CLIENTS 2 #define MY_INCLUSION_MODE_BUTTON_PIN 5 //D1 #define MY_DEFAULT_ERR_LED_PIN 0 //D3 // Error led pin #define MY_DEFAULT_RX_LED_PIN 2 //D4 // RX led pin #define MY_DEFAULT_TX_LED_PIN 16 //D0 // TX led pin #include <MySensors.h> void setup() { // Setup locally attached sensors } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attached sensors data here }
Console debug from Gateway:
61 MCO:BGN:INIT GW,CP=RNNGE---,FQ=80,REL=255,VER=2.3.2 119 TSF:LRT:OK 134 TSM:INIT 148 TSF:WUR:MS=0 171 !TSM:INIT:TSP FAIL 195 TSM:FAIL:CNT=1 215 TSM:FAIL:DIS 232 TSF:TDI:TSL scandone no P*a found, reconnect after 1s reconnect scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 2 cnt connected with P*a, channel 12 dhcp client start... ip:10.1.1.70,mask:255.255.255.0,gw:10.1.1.1 10250 TSM:FAIL:RE-INIT 10274 TSM:INIT 10295 !TSM:INIT:TSP FAIL 10321 TSM:FAIL:CNT=2 10343 TSM:FAIL:DIS 10362 TSF:TDI:TSL pm open,type:2 0 bcn_timout,ap_probe_send_start 20382 TSM:FAIL:RE-INIT 20406 TSM:INIT 20426 !TSM:INIT:TSP FAIL 20453 TSM:FAIL:CNT=3 20474 TSM:FAIL:DIS 20494 TSF:TDI:TSL 30514 TSM:FAIL:RE-INIT 30538 TSM:INIT 30559 !TSM:INIT:TSP FAIL 30585 TSM:FAIL:CNT=4 30607 TSM:FAIL:DIS 30626 TSF:TDI:TSL bcn_timout,ap_probe_send_start 40646 TSM:FAIL:RE-INIT 40670 TSM:INIT 40690 !TSM:INIT:TSP FAIL 40717 TSM:FAIL:CNT=5 40738 TSM:FAIL:DIS 40758 TSF:TDI:TSL 50778 TSM:FAIL:RE-INIT 50802 TSM:INIT 50822 !TSM:INIT:TSP FAIL 50849 TSM:FAIL:CNT=6 50870 TSM:FAIL:DIS 50890 TSF:TDI:TSL 60910 TSM:FAIL:RE-INIT 60934 TSM:INIT 60955 !TSM:INIT:TSP FAIL 60981 TSM:FAIL:CNT=7 61003 TSM:FAIL:DIS 61022 TSF:TDI:TSL
Console debug from node:
__ __ ____ | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ |___/ 2.3.2 209 MCO:BGN:INIT NODE,CP=RNNNA---,FQ=16,REL=255,VER=2.3.2 337 TSM:INIT 351 TSF:WUR:MS=0 373 TSM:INIT:TSP OK 395 TSF:SID:OK,ID=1 415 TSM:FPAR 433 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 2506 !TSM:FPAR:NO REPLY 2531 TSM:FPAR 2548 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 4624 !TSM:FPAR:NO REPLY 4648 TSM:FPAR 4666 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 6742 !TSM:FPAR:NO REPLY 6766 TSM:FPAR 6784 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 8859 !TSM:FPAR:FAIL 8880 TSM:FAIL:CNT=1 8900 TSM:FAIL:DIS 8920 TSF:TDI:TSL 18938 TSM:FAIL:RE-INIT 18962 TSM:INIT 18983 TSM:INIT:TSP OK 19006 TSF:SID:OK,ID=1 19030 TSM:FPAR 19048 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 21124 !TSM:FPAR:NO REPLY 21149 TSM:FPAR 21168 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 23244 !TSM:FPAR:NO REPLY 23270 TSM:FPAR 23288 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 25365 !TSM:FPAR:NO REPLY 25391 TSM:FPAR 25409 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 27486 !TSM:FPAR:FAIL 27507 TSM:FAIL:CNT=2 27530 TSM:FAIL:DIS 27549 TSF:TDI:TSL 37570 TSM:FAIL:RE-INIT 37594 TSM:INIT 37615 TSM:INIT:TSP OK 37638 TSF:SID:OK,ID=1 37661 TSM:FPAR 37680 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 39755 !TSM:FPAR:NO REPLY 39781 TSM:FPAR 39799 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 41876 !TSM:FPAR:NO REPLY 41902 TSM:FPAR 41920 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 43997 !TSM:FPAR:NO REPLY 44022 TSM:FPAR 44041 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 46117 !TSM:FPAR:FAIL 46139 TSM:FAIL:CNT=3 46161 TSM:FAIL:DIS 46181 TSF:TDI:TSL 56201 TSM:FAIL:RE-INIT 56224 TSM:INIT 56246 TSM:INIT:TSP OK 56268 TSF:SID:OK,ID=1 56292 TSM:FPAR 56310 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 58386 !TSM:FPAR:NO REPLY 58412 TSM:FPAR 58430 ?TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
Where could be the reason it stopped working?
-
RE: Android App - Client ethernet gateway
Where can you download these apk now?
-
RE: GatawayESP8266 - Compile error
Here is the beginning of a long list of errors
Arduino:1.8.15 (Windows 7), Board:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200" In file included from c:\users\K\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.0-newlib4.0.0-gnu23-48f7b08\xtensa-lx106-elf\include\assert.h:10, from c:\users\K\appdata\local\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 c:\users\K\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.0-newlib4.0.0-gnu23-48f7b08\xtensa-lx106-elf\include\stdlib.h:18, from c:\users\K\appdata\local\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 c:\users\K\appdata\local\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 C:\Users\K\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\cores\esp8266/Arduino.h:27, from sketch\GatewayESP8266.ino.cpp:1: C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyProtocol.cpp: In function 'char* protocolMyMessage2Serial(MyMessage&)': C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyProtocol.cpp:94:28: error: expected ')' before '__INT8' 94 | PSTR("%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%s\n"), message.getSender(), | ^~~~~ C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyProtocol.cpp:94:19: note: to match this '(' 94 | PSTR("%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%s\n"), message.getSender(), | ^~~~ C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyProtocol.cpp: In function 'char* protocolMyMessage2MQTT(const char*, MyMessage&)': C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyProtocol.cpp:103:31: error: expected ')' before '__INT8' 103 | PSTR("%s/%" PRIu8 "/%" PRIu8 "/%" PRIu8 "/%" PRIu8 "/%" PRIu8 ""), prefix, | ^~~~~ C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyProtocol.cpp:103:19: note: to match this '(' 103 | PSTR("%s/%" PRIu8 "/%" PRIu8 "/%" PRIu8 "/%" PRIu8 "/%" PRIu8 ""), prefix, | ^~~~ In file included from C:\Users\K\Documents\Arduino\libraries\MySensors/MySensors.h:43, from C:\Downloads\mysensors\GatewayESP8266\GatewayESP8266.ino:114: C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool _readFromClient(uint8_t)': C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:317:38: error: expected ')' before '__INT8' 317 | GATEWAY_DEBUG(PSTR("GWT:RFC:C=%" PRIu8 ",MSG=%s\n"), i, inputString[i].string); | ^~~~~ C:\Users\K\Documents\Arduino\libraries\MySensors/MyConfig.h:2139:43: note: in definition of macro 'DEBUG_OUTPUT' 2139 | #define DEBUG_OUTPUT(x,...) hwDebugPrint(x, ##__VA_ARGS__) //!< debug | ^ C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:317:5: note: in expansion of macro 'GATEWAY_DEBUG' 317 | GATEWAY_DEBUG(PSTR("GWT:RFC:C=%" PRIu8 ",MSG=%s\n"), i, inputString[i].string); | ^~~~~~~~~~~~~ C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:317:19: note: to match this '(' 317 | GATEWAY_DEBUG(PSTR("GWT:RFC:C=%" PRIu8 ",MSG=%s\n"), i, inputString[i].string); | ^~~~ C:\Users\K\Documents\Arduino\libraries\MySensors/MyConfig.h:2139:43: note: in definition of macro 'DEBUG_OUTPUT' 2139 | #define DEBUG_OUTPUT(x,...) hwDebugPrint(x, ##__VA_ARGS__) //!< debug | ^ C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:317:5: note: in expansion of macro 'GATEWAY_DEBUG' 317 | GATEWAY_DEBUG(PSTR("GWT:RFC:C=%" PRIu8 ",MSG=%s\n"), i, inputString[i].string); | ^~~~~~~~~~~~~ C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:328:38: error: expected ')' before '__INT8' 328 | GATEWAY_DEBUG(PSTR("!GWT:RFC:C=%" PRIu8 ",MSG TOO LONG\n"), i); | ^~~~~ C:\Users\K\Documents\Arduino\libraries\MySensors/MyConfig.h:2139:43: note: in definition of macro 'DEBUG_OUTPUT' 2139 | #define DEBUG_OUTPUT(x,...) hwDebugPrint(x, ##__VA_ARGS__) //!< debug | ^ C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:328:4: note: in expansion of macro 'GATEWAY_DEBUG' 328 | GATEWAY_DEBUG(PSTR("!GWT:RFC:C=%" PRIu8 ",MSG TOO LONG\n"), i); | ^~~~~~~~~~~~~ C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:328:18: note: to match this '(' 328 | GATEWAY_DEBUG(PSTR("!GWT:RFC:C=%" PRIu8 ",MSG TOO LONG\n"), i); | ^~~~ C:\Users\K\Documents\Arduino\libraries\MySensors/MyConfig.h:2139:43: note: in definition of macro 'DEBUG_OUTPUT' 2139 | #define DEBUG_OUTPUT(x,...) hwDebugPrint(x, ##__VA_ARGS__) //!< debug | ^ C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:328:4: note: in expansion of macro 'GATEWAY_DEBUG' 328 | GATEWAY_DEBUG(PSTR("!GWT:RFC:C=%" PRIu8 ",MSG TOO LONG\n"), i); | ^~~~~~~~~~~~~ C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool gatewayTransportAvailable()': C:\Users\K\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:425:38: error: expected ')' before '__INT8' 425 | GATEWAY_DEBUG(PSTR("GWT:TSA:C=%" PRIu8 ",DISCONNECTED\n"), i); | ^~~~~
and so on
-
GatawayESP8266 - Compile error
I installed on Windows 7 64bit: Arduino IDE 1.8.15, MySensors lib 2.3.2 and from "ESP8266 by ESP8266 Community" 3.0.0 board: NodeMCU 1.0 (ESP-12E Module). When trying to compile GatawayESP8266 (I only changed to my MY_WIFI_SSID and MY_WIFI_PASSWORD). I'm getting errors and can't compile it
[0_1621338567721_compile errors 1.txt](Uploading 100%)
What am I doing wrong?