Page 1 of 1

does not wifi-connect with attached serial client

Posted: 03 Jul 2023, 09:16
by _Cyber_
hi,

I am trying to debug a issue which leads to resets on my ESP32. it likes to reboot since I updated from ESP_Easy_mega_20221224_normal_ESP32_4M316k.bin to ESP_Easy_mega_20230508_normal_ESP32_4M316k.bin where "Last Action before Reboot" looks always to be "Const Interval: TIMER_20MSEC"

as there is no more log, I tried to put on serial console (windows, client putty), but as soon as I connect with putty to the COM port it does not connect to wifi. even if pressing reset with connected serial line, it does not. it stucks with the log below.

sometimes I can see the DHCP request arriving the server, but it is not ACKed.

Code: Select all

Jul  3 09:17:10 Router dhcpd[1513482]: DHCPDISCOVER from 7c:9e:bd:f8:f8:08 (RollladenManagerBackup) via br2
Jul  3 09:17:11 Router dhcpd[1513482]: DHCPOFFER on 192.168.10.135 to 7c:9e:bd:f8:f8:08 (RollladenManagerBackup) via br2
tried different cables, no luck. besides this, I am sure the cable is OK, debugged (also on an ESP32) last week a lot with opendtu with it, same windows notebook, same USB-port, same cable.

any hints what I can try?

also funny - as soon as I close putty, it comes up. ofc. I do not know at this state if it got resetted or just the release of the serial line helps.

Thanks! :-)

BR
Alois

Code: Select all

rst:0x1 (POWERON_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:DOUT, clock div:2
load:0x3fff0030,len:184
load:0x40078000,len:12616
load:0x40080400,len:2916
entry 0x400805c4
▒U138 : Info   :

INIT : Booting version: ESP_Easy_mega_20230508_normal_ESP32_4M316k, (GitHub Actions) mega-20230508 (ESP32 SDK 4.4.4.20230310)
139 : Info   : INIT : Free RAM:281304
140 : Info   : INIT : Cold Boot - Restart Reason: CPU0: Vbat power on reset CPU1: for APP CPU, reseted by PRO CPU
141 : Info   : FS   : Mounting...
165 : Info   : FS   : Mount successful, used 163903 bytes of 290156

Build changed!
183 : Info   : CRC  : SecuritySettings CRC   ...OK
201 : Info   : INIT : SPI not enabled
202 : Info   : Set Network mode: WiFi
305 : Info   : WIFI : Set WiFi to STA
408 : Info   : WiFi : Event STA Started
509 : Info   : WiFi : Start ▒▒▒▒▒▒▒▒▒▒▒▒▒all channels

Re: does not wifi-connect with attached serial client

Posted: 03 Jul 2023, 09:38
by TD-er
While connected via USB, is it then also powered by USB?

What happens if you enter the command "wifidisconnect" via the serial console?

Re: does not wifi-connect with attached serial client

Posted: 03 Jul 2023, 09:47
by _Cyber_
yes, powered over USB only.
the serial console is stalled, so typing has no effect.

Re: does not wifi-connect with attached serial client

Posted: 03 Jul 2023, 09:49
by Ath
Is Serial log disabled on the Tools/Advanced page? In that case you'll see some initial logs, but after a few (hundred milli)seconds the log will stop.

Re: does not wifi-connect with attached serial client

Posted: 03 Jul 2023, 09:52
by TD-er
You don't see anything being echo'ed until you press enter.
And if it doesn't respond (and you know the serial console is enabled) the ESP may actually experience too much of a voltage drop when turning on the WiFi.

Re: does not wifi-connect with attached serial client

Posted: 03 Jul 2023, 10:48
by _Cyber_
so, in the stalled state, even with enter it does simply nothing.

with a lot resets in a row, it booted now with connecting wifi correctly. so this means the USB connection does not provide enough power to show serial and connect to wifi simultaneously?

and, the other bad thing, I cannot reproduce the reboots. nevertheless I updated now to the latest 20230623 maybe it is fixed there already. :D

and, also I had set the serial lot to none... :roll: