Switch not getting started after connecting to Access Point

dalohar
Posts: 29
Joined: Tue Jul 28, 2020 6:42 am

Switch not getting started after connecting to Access Point

Postby dalohar » Thu Jun 13, 2024 5:38 am

Hi,

I am using Rainmaker Switch application on ESP32-C3-WROOM-02 module.
Initially device was working well and today suddenly it stopped working even after power reset.
As per log it shows that device is connected to access point "Gladiance" but there is no further progress.

Please guide me on this issue to resoleve it.

Also please find below device log for your understanding.

Code: Select all

I (1001) phy_init: phy_version 1130,b4e4b80,Sep  5 2023,11:09:30
I (1041) wifi:mode : sta (d4:f9:8d:1b:8b:a0)
I (1041) wifi:enable tsf
I (3451) wifi:new:<6,1>, old:<1,0>, ap:<255,255>, sta:<6,1>, prof:1
I (3451) wifi:state: init -> auth (b0)
I (3461) wifi:state: auth -> init (8a0)
I (3461) wifi:new:<6,0>, old:<6,1>, ap:<255,255>, sta:<6,1>, prof:1
I (3461) wifi:new:<6,1>, old:<6,0>, ap:<255,255>, sta:<6,1>, prof:1
I (3461) wifi:state: init -> auth (b0)
I (3471) wifi:state: auth -> init (8a0)
I (3471) wifi:new:<6,0>, old:<6,1>, ap:<255,255>, sta:<6,1>, prof:1
I (3471) wifi:new:<1,0>, old:<6,0>, ap:<255,255>, sta:<1,0>, prof:1
I (3481) wifi:state: init -> auth (b0)
I (3481) wifi:state: auth -> assoc (0)
I (3501) wifi:state: assoc -> run (10)
I (3571) wifi:connected with Gladiance, aid = 6, channel 1, BW20, bssid = 45:0f:81:8c:a6:de
I (3571) wifi:security: WPA2-PSK, phy: bgn, rssi: -85
I (3581) wifi:pm start, type: 1

I (3581) wifi:set rx beacon pti, rx_bcn_pti: 14, bcn_timeout: 25000, mt_pti: 14, mt_time: 10000
I (3601) wifi:<ba-add>idx:0 (ifx:0, 45:0f:81:8c:a6:de), tid:6, ssn:0, winSize:64
I (3651) wifi:<ba-add>idx:1 (ifx:0, 45:0f:81:8c:a6:de), tid:0, ssn:2, winSize:64
I (3721) wifi:AP's beacon interval = 102400 us, DTIM period = 1

Thanks in advance.

Regards,

Dinesh

ESP_Piyush
Posts: 268
Joined: Wed Feb 20, 2019 7:02 am

Re: Switch not getting started after connecting to Access Point

Postby ESP_Piyush » Thu Jun 13, 2024 12:47 pm

Do you mean that the exact same firmware that was working earlier is not working anymore? Or was this re-compiled with some different ESP IDF version (please provide idf version)? Is this with the standard switch example available on GitHub?

dalohar
Posts: 29
Joined: Tue Jul 28, 2020 6:42 am

Re: Switch not getting started after connecting to Access Point

Postby dalohar » Thu Jun 13, 2024 12:52 pm

1. Yes this is happening with the same device and same firmware and no change in device firmware.
2. We are using esp-idf 5.1.1
3. Not a standard Switch application but base is of switch application.

ESP_Piyush
Posts: 268
Joined: Wed Feb 20, 2019 7:02 am

Re: Switch not getting started after connecting to Access Point

Postby ESP_Piyush » Thu Jun 13, 2024 1:18 pm

RainMaker services begin after getting IP address. Typical logs for working use case are these:

Code: Select all

I (3464) wifi:connected with MYSSID_2GEXT, aid = 11, channel 4, BW20, bssid = 2c:30:33:54:ba:d9
I (3474) wifi:security: WPA2-PSK, phy: bgn, rssi: -51
I (3474) wifi:pm start, type: 1

I (3474) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I (3484) wifi:set rx beacon pti, rx_bcn_pti: 14, bcn_timeout: 25000, mt_pti: 14, mt_time: 10000
I (3524) wifi:dp: 2, bi: 102400, li: 4, scale listen interval from 307200 us to 409600 us
I (3524) wifi:AP's beacon interval = 102400 us, DTIM period = 2
W (3644) wifi:[ADDBA]rx delba, code:39, delete tid:0
I (3644) wifi:<ba-del>idx:0, tid:0
W (3644) wifi:[ADDBA]rx delba, code:39, delete tid:0
I (4994) app_wifi: Connected with IP Address:192.168.1.165
I (4994) esp_netif_handlers: sta ip: 192.168.1.165, mask: 255.255.255.0, gw: 192.168.1.1
Considering that the same firmware was working fine, there are high chances that there are some external factors causing the issue. Have you tried rebooting your AP? If possible, can you try creating a new Wi-Fi network with same credentials to see if the RainMaker device gets IP address?

dalohar
Posts: 29
Joined: Tue Jul 28, 2020 6:42 am

Re: Switch not getting started after connecting to Access Point

Postby dalohar » Fri Jun 14, 2024 4:52 am

Hi,

Further we have observed that after rebooting node node multiple times same issue has been observed.
However after couple of hours, node got IP address and started working properly.

On contrary we have observed that (before device started working proerly and got stuck up at getting IP adderss),
on access point, in DHCP client list it was showing IP address is assigned and whenever I refresh the webpage of access point it shows IP lease time to 2 hours approximately (which is maximum lease time).

I still aslo hope that this issue might be with Access Point. However wish to understand what the problem eaxctly is?
If you have any clue or have experienced similar issue in past please share.

Thanks in advance.

Regards,

Dinesh

Who is online

Users browsing this forum: No registered users and 11 guests