Closed XFer012 closed 2 years ago
Full output from serial monitor:
Connecting to [my SSID] [ 1503][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE Not connected. Status=6 [ 2528][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE [ 3550][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE Not connected. Status=6 [ 4574][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE [ 5600][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE Not connected. Status=6 [ 6624][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE [ 7648][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE Not connected. Status=6 [ 8672][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE [ 9696][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE Not connected. Status=6 [ 10720][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE [ 11744][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE
[...]
@PilnyTomas, PTAL - Thanks!
Hi @XFer012, could you please get the signal strength of the AP you are trying to connect to? You can use WiFiScan example. You can also find it in Arduino IDE under File > Examples > WiFi > WiFiScan
Sure, here it's the output from WiFiScan:
scan done 10 networks found 1: [My SSID] (-36) <--- this is mine 2: TP-Link_xxxx (-67) 3: Vodafone-xxxx (-77) 4: Vodafone-xxxx (-79) 5: Vodafone-xxxx (-79) 6: Vodafone-xxxx (-80) 7: Vodafone-xxxx (-85) 8: Vodafone-xxxx (-86) 9: Vodafone-xxxx (-87) 10: Vodafone-xxxx (-87)
@PilnyTomas @XFer012 We have only troubles with the Lolin C3-Mini and Tasmota. Every! other C3 board does work well. After we modified the HF part of the board we got it going more or less good. There is "somewhere" a bug in the HF board design. Arduino core is NOT the problem!
You mean all Lolin-C3 you tested scan OK, correctly detect RSSI, but cannot connect with an "AUTH_EXPIRE" error?
@XFer012 Either this or some even did not found a AP. I trashed all. Just a time waster.
@Jason2866 is right, there is a flaw in the design. You need to set the transmit power to -8.5db right after wifi.begin then it will connect. If using the softAP, you need to set it after starting also.
WiFi.begin(ssid_char, password_char);
WiFi.setTxPower(WIFI_POWER_8_5dBm);
The antenna matching is not correct. So the HF signal gets reflected. A really bad workaround is to reduce transmit power so the reflecting is reduced and does not eliminate the (weak) signal completly. A real fix needs changes in the HF matching network.
Yes, it's a bad workaround and although it eliminates the AUTH_EXPIRE response it's deceiving because the board's RX'd signal will be much greater than the TX range. I bought a bunch of these boards when they first came out and have used many successfully but only within ~10 meters of the AP, after that RX strength is still pretty good but too many dropped packets on the TX end. I only use them now with SoftAP as it only needs to transmit to a mobile phone which is usually within a few meters of the device. Hoping they improve the design and release an updated version of the board.
@Jason2866 is right, there is a flaw in the design. You need to set the transmit power to -8.5db right after wifi.begin then it will connect. If using the softAP, you need to set it after starting also.
WiFi.begin(ssid_char, password_char); WiFi.setTxPower(WIFI_POWER_8_5dBm);
Thank you, I will try this workaround. Better than nothing!
Confirmed working. Thanks!
Closing as solved, if needed, you can reopen the issue.
Hi. If someone somewhere search it, same problem with the "banana pi BPI-Centi-S3" and the same workaround works Thanks @Sys64736
@Jason2866 is right, there is a flaw in the design. You need to set the transmit power to -8.5db right after wifi.begin then it will connect. If using the softAP, you need to set it after starting also.
WiFi.begin(ssid_char, password_char); WiFi.setTxPower(WIFI_POWER_8_5dBm);
That workaround also worked for me!
@Jason2866 is right, there is a flaw in the design. You need to set the transmit power to -8.5db right after wifi.begin then it will connect. If using the softAP, you need to set it after starting also.
WiFi.begin(ssid_char, password_char); WiFi.setTxPower(WIFI_POWER_8_5dBm);
Thank you, I will try this workaround. Better than nothing!
Thank you! it worked perfectly :)
Board
Lolin C3-Mini
Device Description
Lolin C3-Mini alone, nothing connected
Hardware Configuration
Nothing
Version
v2.0.3
IDE Name
Arduino IDE 1.8.19
Operating System
Windows 10 Pro 64 bit
Flash frequency
80 MHz
PSRAM enabled
no
Upload speed
921600
Description
ESP32-C3 can not connect to my AccessPoint, while ESP32 "stock" (ESP32 Devkit board) connects without issues
C3 reports continously "[W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE"
Sketch
Debug Message
Other Steps to Reproduce
I also tried ESP32 Devkit board, same AP, same parameters, same position; works without issues
I have checked existing issues, online documentation and the Troubleshooting Guide