does not wifi-connect with attached serial client

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
_Cyber_
Normal user
Posts: 115
Joined: 20 Oct 2019, 09:46

does not wifi-connect with attached serial client

#1 Post by _Cyber_ » 03 Jul 2023, 09:16

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

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: does not wifi-connect with attached serial client

#2 Post by TD-er » 03 Jul 2023, 09:38

While connected via USB, is it then also powered by USB?

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

_Cyber_
Normal user
Posts: 115
Joined: 20 Oct 2019, 09:46

Re: does not wifi-connect with attached serial client

#3 Post by _Cyber_ » 03 Jul 2023, 09:47

yes, powered over USB only.
the serial console is stalled, so typing has no effect.

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: does not wifi-connect with attached serial client

#4 Post by Ath » 03 Jul 2023, 09:49

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.
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: does not wifi-connect with attached serial client

#5 Post by TD-er » 03 Jul 2023, 09:52

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.

_Cyber_
Normal user
Posts: 115
Joined: 20 Oct 2019, 09:46

Re: does not wifi-connect with attached serial client

#6 Post by _Cyber_ » 03 Jul 2023, 10:48

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:

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests