GWT:TPC:CONNECTING
-
I understand that I forget the "#define MY_GATEWAY_MQTT_CLIENT" was commented out.
So when I uncommented it, all return back with the:
169206 GWT:TPC:CONNECTING... 170210 GWT:TPC:CONNECTING... 171214 GWT:TPC:CONNECTING... 172218 GWT:TPC:CONNECTING... 173222 GWT:TPC:CONNECTING... 174226 GWT:TPC:CONNECTING...So if I take out all the MQTT story, the GTW is connect to WiFi and I can ping it.
When I put back the MQTT rows the GTW is not connected and I always have the GWT:TPC:CONNECTINGI try with another ESP32, I try with another MQTT broker... I don't know anymore what to try :-(
A little help will be so appreciated
Thanks again
Denis -
@DenisJ I have the same problem. Works with
#define MY_GATEWAY_ESP32but with
#define MY_GATEWAY_ESP32 #define MY_GATEWAY_MQTT_CLIENTit dosen't. But when I changed the delay to 3000
bool gatewayTransportConnect(void) { #if defined(MY_GATEWAY_ESP8266) || defined(MY_GATEWAY_ESP32) if (WiFi.status() != WL_CONNECTED) { GATEWAY_DEBUG(PSTR("GWT:TPC:CONNECTING...\n")); delay(3000); // Was 1000 return false; } GATEWAY_DEBUG(PSTR("GWT:TPC:IP=%s\n"), WiFi.localIP().toString().c_str());in MyGatewayTransportMQTTClient.cpp then it started to work! :)
-
@smilvert said in GWT:TPC:CONNECTING:
in MyGatewayTransportMQTTClient.cpp then it started to work!
Thanks a lot @smilvert ...for me it's a big step forward, cause is 2 days that I'm so angry with this connections
I don't understand why I test a lot of Arduino schetch that use ETH+MQTT and was work all,
but MySensors use something that is not work always...Now my GTW is connect (eth and mqtt) but then it goes in error:
E (46) psram: PSRAM ID read error: 0xffffffff 32 MCO:BGN:INIT GW,CP=RPNGF---,FQ=240,REL=0,VER=2.4.0-alpha 38 TSF:LRT:OK 39 TSM:INIT 40 TSF:WUR:MS=0 42 TSM:INIT:TSP OK 44 TSM:INIT:GW MODE 46 TSM:READY:ID=0,PAR=0,DIS=0 49 MCO:REG:NOT NEEDED 171 GWT:TPC:CONNECTING... 3173 MCO:BGN:STP 3175 MCO:BGN:INIT OK,TSP=1 3177 GWT:TPC:IP=192.168.1.170 3180 GWT:RMQ:CONNECTING... 3234 GWT:RMQ:OK 3235 GWT:TPS:TOPIC=MySensors-out/0/255/0/0/18,MSG SENT Stack smashing protect failure! abort() was called at PC 0x401353af on core 1 ELF file SHA256: 0000000000000000 Backtrace: 0x4008c6a8:0x3ffb1eb0 0x4008c921:0x3ffb1ed0 0x401353af:0x3ffb1ef0 0x400d2a56:0x3ffb1f10 0x400d2a91:0x3ffb1f50 0x400d2cb3:0x3ffb1f70 0x400d32f6:0x3ffb1f90 0x400d3429:0x3ffb1fb0 0x4008d926:0x3ffb1fd0 Rebooting... ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:10944 load:0x40080400,len:6388 entry 0x400806b4 E (46) psram: PSRAM ID read error: 0xffffffff 32 MCO:BGN:INIT GW,CP=RPNGF---,FQ=240,REL=0,VER=2.4.0-alpha 37 TSF:LRT:OK 39 TSM:INIT 40 TSF:WUR:MS=0 42 TSM:INIT:TSP OK 44 TSM:INIT:GW MODE 46 TSM:READY:ID=0,PAR=0,DIS=0 48 MCO:REG:NOT NEEDED 168 GWT:TPC:CONNECTING... 3170 MCO:BGN:STP 3172 MCO:BGN:INIT OK,TSP=1 3174 GWT:TPC:IP=192.168.1.170 3177 GWT:RMQ:CONNECTING... 11960 GWT:RMQ:OK 11962 GWT:TPS:TOPIC=MySensors-out/0/255/0/0/18,MSG SENT Stack smashing protect failure!Do you think is a hardware problem ?
Thank you so much for the help
Denis -
@electrik said in GWT:TPC:CONNECTING:
Do you have the latest ESP32 framework installed?
I use Ardiono IDE and I have Espressif Systems version 1.0.6 installed on boards manager.
It tell me that is the last.
Do I must install other please ?Thanks a lot
Denis -
Thanks a lot @electrik ... but I was on stable release when the problem has began.
For this reason I download the DEV version, but I have the same problem.There is surely something stupid think that is wrong, but I don't know what is it.
This gateway was working for more than a month.Thanks again
Denis -
And if you change the lines like below now?
@smilvert said in GWT:TPC:CONNECTING:
it dosen't. But when I changed the delay to 3000
bool gatewayTransportConnect(void)
{
#if defined(MY_GATEWAY_ESP8266) || defined(MY_GATEWAY_ESP32)
if (WiFi.status() != WL_CONNECTED) {
GATEWAY_DEBUG(PSTR("GWT:TPC:CONNECTING...\n"));
delay(3000); // Was 1000
return false;
}
GATEWAY_DEBUG(PSTR("GWT:TPC:IP=%s\n"), WiFi.localIP().toString().c_str());in MyGatewayTransportMQTTClient.cpp then it started to work!
-
@electrik said in GWT:TPC:CONNECTING:
gatewayTransportConnect
I changed it:
bool gatewayTransportConnect(void) { #if defined(MY_GATEWAY_ESP8266) || defined(MY_GATEWAY_ESP32) if (WiFi.status() != WL_CONNECTED) { GATEWAY_DEBUG(PSTR("GWT:TPC:CONNECTING...\n")); delay(3000); // denis: era 1000 dar l am schimbat pt. ca nu se lega la MQTT return false; } GATEWAY_DEBUG(PSTR("GWT:TPC:IP=%s\n"), WiFi.localIP().toString().c_str()); #elif defined(MY_GATEWAY_LINUX) #if defined(MY_IP_ADDRESS) _MQTT_ethClient.bind(_MQTT_clientIp); #endif /* End of MY_IP_ADDRESS */ #elif defined(MY_GATEWAY_TINYGSM) GATEWAY_DEBUG(PSTR("GWT:TPC:IP=%s\n"), modem.getLocalIP().c_str()); #else #if defined(MY_IP_ADDRESS) Ethernet.begin(_MQTT_clientMAC, _MQTT_clientIp); #else /* Else part of MY_IP_ADDRESS */ // Get IP address from DHCP if (!Ethernet.begin(_MQTT_clientMAC)) { GATEWAY_DEBUG(PSTR("!GWT:TPC:DHCP FAIL\n")); _MQTT_connecting = false; return false; } #endif /* End of MY_IP_ADDRESS */ GATEWAY_DEBUG(PSTR("GWT:TPC:IP=%" PRIu8 ".%" PRIu8 ".%" PRIu8 ".%" PRIu8 "\n"), Ethernet.localIP()[0], Ethernet.localIP()[1], Ethernet.localIP()[2], Ethernet.localIP()[3]); // give the Ethernet interface a second to initialize delay(1000); #endif return true; }But in this case I get this error:
29 MCO:BGN:INIT GW,CP=RPNGF---,FQ=240,REL=0,VER=2.4.0-alpha 34 TSF:LRT:OK 35 TSM:INIT 37 TSF:WUR:MS=0 39 TSM:INIT:TSP OK 40 TSM:INIT:GW MODE 42 TSM:READY:ID=0,PAR=0,DIS=0 45 MCO:REG:NOT NEEDED 159 GWT:TPC:CONNECTING... 3162 MCO:BGN:STP 3164 MCO:BGN:INIT OK,TSP=1 3166 GWT:TPC:IP=192.168.1.170 3169 GWT:RMQ:CONNECTING... 3371 GWT:RMQ:OK 3372 GWT:TPS:TOPIC=MySensors-out/0/255/0/0/18,MSG SENT Stack smashing protect failure! abort() was called at PC 0x40134cef on core 1 ELF file SHA256: 0000000000000000 Backtrace: 0x40088620:0x3ffb1eb0 0x4008889d:0x3ffb1ed0 0x40134cef:0x3ffb1ef0 0x400d27e6:0x3ffb1f10 0x400d281e:0x3ffb1f50 0x400d2a23:0x3ffb1f70 0x400d2ff4:0x3ffb1f90 0x400d3105:0x3ffb1fb0 0x400898ae:0x3ffb1fd0 Rebooting... ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:10944 load:0x40080400,len:6388 entry 0x400806b4 29 MCO:BGN:INIT GW,CP=RPNGF---,FQ=240,REL=0,VER=2.4.0-alpha 34 TSF:LRT:OK 36 TSM:INIT 37 TSF:WUR:MS=0 39 TSM:INIT:TSP OK 40 TSM:INIT:GW MODE 42 TSM:READY:ID=0,PAR=0,DIS=0 45 MCO:REG:NOT NEEDED 164 GWT:TPC:CONNECTING... 3166 MCO:BGN:STP 3168 MCO:BGN:INIT OK,TSP=1 3170 GWT:TPC:IP=192.168.1.170 3173 GWT:RMQ:CONNECTING... 6058 GWT:RMQ:OK 6059 GWT:TPS:TOPIC=MySensors-out/0/255/0/0/18,MSG SENT Stack smashing protect failure! abort() was called at PC 0x40134cef on core 1 ELF file SHA256: 0000000000000000 ...from here it goes in LOOPI'm near to become creasy :-(
Thanks again
Denis -
@electrik said in GWT:TPC:CONNECTING:
2.3.2 release
I can't believe... IT'S WOOOOOOORK !!!
Thanks a lot @electrik !!!I don't know why, and I don't understand... but with 2.3.2 release it's work if I make that modify in the MyGatewayTransportMQTTClient.cpp file.
Also I don't like that I must modify that time... but for now it's ok.
Also I don't understand why 2 days ago it's change same hardware and same soft,
from work to no work (I don't know haw to tell this in english) :-)Thanks so much again :-)
Denis -
@electrik said in GWT:TPC:CONNECTING:
Perhaps a GitHub issue should be raised for these points...
Well... if the DEV version is not work even if I make that change... I don't know.
I thinks this part is too sensibile. I'm not a programmer, but I think that this important part of communication must be renovate.Tomorrow I can return to my node sensors test.
Thanks a lot all for the help.
Denis -
@smilvert said in GWT:TPC:CONNECTING:
A ticket is raised quite long time ago
Thanks a lot... I put my case there also, maybe can help.
That gui use same ESP32 DevKit V1 like me.Strange that I didn't fount that page in this 2 days of research.
Thanks a lot
Denis
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login