espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.46k stars 7.25k forks source link

Unable to connect to WiFi, ESP32S3 goes in loop (IDFGH-7755) #9296

Closed ble0 closed 1 year ago

ble0 commented 2 years ago

Environment

Problem Description

Unable to connect to WiFi using a modified example in /examples/wifi/getting_started/station

Expected Behavior

ESP32S3 should connect to AP

Actual Behavior

ESP32 does not connect to AP. It goes is series of loop

Screenshot 2022-07-06 at 16 19 24

Steps to reproduce

  1. Execute esptool.py --chip esp32s3 erase_flash
  2. Go to /examples/wifi/getting_started/station
  3. Compile the example with few modifications:

    
    /* WiFi station Example
    
    This example code is in the Public Domain (or CC0 licensed, at your option.)
    
    Unless required by applicable law or agreed to in writing, this
    software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
    CONDITIONS OF ANY KIND, either express or implied.
    */
    #include <string.h>
    #include "freertos/FreeRTOS.h"
    #include "freertos/task.h"
    #include "freertos/event_groups.h"
    #include "esp_system.h"
    #include "esp_wifi.h"
    #include "esp_event.h"
    #include "esp_log.h"
    #include "nvs_flash.h"

include "lwip/err.h"

include "lwip/sys.h"

/* The examples use WiFi configuration that you can set via project configuration menu

If you'd rather not, just change the below entries to strings with the config you want - ie #define EXAMPLE_WIFI_SSID "mywifissid" */

define EXAMPLE_ESP_WIFI_SSID CONFIG_ESP_WIFI_SSID

define EXAMPLE_ESP_WIFI_PASS CONFIG_ESP_WIFI_PASSWORD

define EXAMPLE_ESP_MAXIMUM_RETRY CONFIG_ESP_MAXIMUM_RETRY

/ FreeRTOS event group to signal when we are connected/ static EventGroupHandle_t s_wifi_event_group;

/* The event group allows multiple bits for each event, but we only care about two events:

static const char *TAG = "wifi station";

static int s_retry_num = 0;

static void event_handler(void arg, esp_event_base_t event_base, int32_t event_id, void event_data) { if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_START) { esp_wifi_connect(); } else if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_DISCONNECTED) { if (s_retry_num < EXAMPLE_ESP_MAXIMUM_RETRY) { esp_wifi_connect(); s_retry_num++; ESP_LOGI(TAG, "retry to connect to the AP"); } else { xEventGroupSetBits(s_wifi_event_group, WIFI_FAIL_BIT); } ESP_LOGI(TAG,"connect to the AP fail"); } else if (event_base == IP_EVENT && event_id == IP_EVENT_STA_GOT_IP) { ip_event_got_ip_t event = (ip_event_got_ip_t) event_data; ESP_LOGI(TAG, "got ip:" IPSTR, IP2STR(&event->ip_info.ip)); s_retry_num = 0; xEventGroupSetBits(s_wifi_event_group, WIFI_CONNECTED_BIT); } else if(event_base == WIFI_EVENT) { // FMOD ESP_LOGE(TAG, "Unhandled WIFI_EVENT event_id = %d", event_id); } else if(event_base == IP_EVENT) { // FMOD ESP_LOGE(TAG, "Unhandled IP_EVENT event_id = %d", event_id); } }

void wifi_init_sta(void) { s_wifi_event_group = xEventGroupCreate();

ESP_ERROR_CHECK(esp_netif_init());

ESP_ERROR_CHECK(esp_event_loop_create_default());
esp_netif_create_default_wifi_sta();

wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK(esp_wifi_init(&cfg));

esp_event_handler_instance_t instance_any_id;
esp_event_handler_instance_t instance_got_ip;
ESP_ERROR_CHECK(esp_event_handler_instance_register(WIFI_EVENT,
                                                    ESP_EVENT_ANY_ID,
                                                    &event_handler,
                                                    NULL,
                                                    &instance_any_id));
ESP_ERROR_CHECK(esp_event_handler_instance_register(IP_EVENT,
                                                    IP_EVENT_STA_GOT_IP,
                                                    &event_handler,
                                                    NULL,
                                                    &instance_got_ip));

wifi_config_t wifi_config = {
    .sta = {
        .ssid = EXAMPLE_ESP_WIFI_SSID,
        .password = EXAMPLE_ESP_WIFI_PASS,
        /* Setting a password implies station will connect to all security modes including WEP/WPA.
         * However these modes are deprecated and not advisable to be used. Incase your Access point
         * doesn't support WPA2, these mode can be enabled by commenting below line */
     .threshold.authmode = WIFI_AUTH_WPA2_PSK,
    },
};
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA) );
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &wifi_config) );
ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE)); // FMOD
ESP_ERROR_CHECK(esp_wifi_start() );

ESP_LOGI(TAG, "wifi_init_sta finished.");

/* Waiting until either the connection is established (WIFI_CONNECTED_BIT) or connection failed for the maximum
 * number of re-tries (WIFI_FAIL_BIT). The bits are set by event_handler() (see above) */
EventBits_t bits = xEventGroupWaitBits(s_wifi_event_group,
        WIFI_CONNECTED_BIT | WIFI_FAIL_BIT,
        pdFALSE,
        pdFALSE,
        portMAX_DELAY);

/* xEventGroupWaitBits() returns the bits before the call returned, hence we can test which event actually
 * happened. */
if (bits & WIFI_CONNECTED_BIT) {
    ESP_LOGI(TAG, "connected to ap SSID:%s password:%s",
             EXAMPLE_ESP_WIFI_SSID, EXAMPLE_ESP_WIFI_PASS);
} else if (bits & WIFI_FAIL_BIT) {
    ESP_LOGI(TAG, "Failed to connect to SSID:%s, password:%s",
             EXAMPLE_ESP_WIFI_SSID, EXAMPLE_ESP_WIFI_PASS);
} else {
    ESP_LOGE(TAG, "UNEXPECTED EVENT");
}

#if 0   // FMOD
/* The event will not be processed after unregister */
ESP_ERROR_CHECK(esp_event_handler_instance_unregister(IP_EVENT, IP_EVENT_STA_GOT_IP, instance_got_ip));
ESP_ERROR_CHECK(esp_event_handler_instance_unregister(WIFI_EVENT, ESP_EVENT_ANY_ID, instance_any_id));
vEventGroupDelete(s_wifi_event_group);
#endif

}

void app_main(void) { //Initialize NVS esp_err_t ret = nvs_flash_init(); if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) { ESP_ERROR_CHECK(nvs_flash_erase()); ret = nvs_flash_init(); } ESP_ERROR_CHECK(ret);

ESP_LOGI(TAG, "ESP_WIFI_MODE_STA");
wifi_init_sta();

}



### If possible, attach a picture of your setup/wiring here.
No special setup, nothing is connected to the ESP32S3 devboard.

### Code to reproduce this issue
Refer to example code

Other info:
ESP32S3 log: 
[10_WiFi_Disconnect.txt](https://github.com/espressif/esp-idf/files/9053028/10_WiFi_Disconnect.txt)
Packet capture on CH9 (rename to .pcap):
[10_WiFi_Disconnect.log](https://github.com/espressif/esp-idf/files/9053034/10_WiFi_Disconnect.log)
Flash dump (rename to .bin):
[10_WiFi_Disconnect.zip](https://github.com/espressif/esp-idf/files/9053071/10_WiFi_Disconnect.zip)
sdkconfig (remove file extension):
[sdkconfig.txt](https://github.com/espressif/esp-idf/files/9053094/sdkconfig.txt)
Router: Huawei E5885Ls-93a
nishanth-radja commented 2 years ago

@ble0 From the capture,STA is trying to connect to the AP,By sending out the AUTH req.But the AP does not ACK the AUTH and no AUTH response.Hence the connection failed. Is the client far away from the AP ? Are other clients able to connect to the AP ? Can we have a capture of successful connection if any other client connects to the AP?

ble0 commented 2 years ago

Is the client far away from the AP ? No, in fact it is very near Are other clients able to connect to the AP ? Yes Can we have a capture of successful connection if any other client connects to the AP? Give me some time to provide it and what capture do you exactly need? .pcap?

nishanth-radja commented 2 years ago

Is the client far away from the AP ? No, in fact it is very near Are other clients able to connect to the AP ? Yes Can we have a capture of successful connection if any other client connects to the AP? Give me some time to provide it and what capture do you exactly need? .pcap? If the STA is very close,Can you move it a little further.Even if STA and AP are very close,They won't be able listen to each other. yes, .pcap will do.

ble0 commented 2 years ago

Rename to .pcap file Connected.log

nishanth-radja commented 2 years ago

@ble0 The issue is that the AP has not cleared the AUTH state of the previous connection.Hence The AP is not able to reply to the AUTH. In the connected capture,The STA sends a Deauth before sending an auth ,Which helps in clearing the state of the AP and hence the AP is able to respond to the AUTH req from STA. Sending Deauth before Auth was recently removed as it created other issues.We will provide a better workaround for this problem shortly.

ble0 commented 2 years ago

Hi @nishanth-radja Ok, thanks, will look forward to it. You can also mention the commit id or esp-idf version once it is ready.

MaxwellAlan commented 2 years ago

Hi @ble0 From your log:https://github.com/espressif/esp-idf/files/9053028/10_WiFi_Disconnect.txt, the firmware version: 63017e0, this version still will send deauth before auth, can you confirm that this version connect fail? Thanks.

ble0 commented 2 years ago

Yes, it is the version where I experience the issue

MaxwellAlan commented 2 years ago

Maybe the root cause is not deauth. Can you try with the master(271f4e4c40d5acecf4c97770211ab5bb61e703cf) and also capture the wireless pkts. Thanks.

ble0 commented 2 years ago

Hi @MaxwellAlan This issue is not easy to reproduce, so it will take me a while.

AxelLin commented 1 year ago

Hi @MaxwellAlan This issue is not easy to reproduce, so it will take me a while.

@ble0 Any update? Can you reproduce the issue with recent master tree?

Alvin1Zhang commented 1 year ago

@ble0 Thanks for reporting, would you please help share if any further updates for the issue? Thanks.

Alvin1Zhang commented 1 year ago

Thanks for reporting, will close due to short of feedback, feel free to reopen with more updates. Thanks.

Solar320 commented 7 months ago

I have 3pcs of ESP32SS3 Board recently buyed at Aliexpress and it do may be the same:

The DEV board is connected to an breadboard and has an wifi Testprogram on it.

The serial console:

48:40.868 -> ..ESP-ROM:esp32s3-20210327 21:48:41.881 -> Build:Mar 27 2021 21:48:41.881 -> rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) 21:48:41.881 -> SPIWP:0xee 21:48:41.881 -> mode:DIO, clock div:1 21:48:41.881 -> load:0x3fce3808,len:0x44c 21:48:41.881 -> load:0x403c9700,len:0xbe4 21:48:41.881 -> load:0x403cc700,len:0x2a68 21:48:41.881 -> entry 0x403c98d4 21:48:42.023 -> [ 151][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled 21:48:42.059 -> [ 180][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 0 - WIFI_READY 21:48:42.100 -> [ 213][V][WiFiGeneric.cpp:340] _arduino_event_cb(): STA Started 21:48:42.100 -> [ 217][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 2 - STA_START 21:48:42.147 -> [ 269][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0 21:48:42.645 -> ...[ 2142][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: Web**, BSSID: XX:bf:XX:64:bd:18, Reason: 2 21:48:44.002 -> [ 2143][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED 21:48:44.045 -> [ 2150][W][WiFiGeneric.cpp:1057] _eventCallback(): Reason: 2 - AUTH_EXPIRE 21:48:44.045 -> [ 2157][D][WiFiGeneric.cpp:1077] _eventCallback(): WiFi Reconnect Running 21:48:44.045 -> [ 2177][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0 21:48:44.124 -> ....[ 3988][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: Web***, BSSID: XX:bf:XX:64:bd:18, Reason: 2 21:48:45.866 -> [ 3988][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED 21:48:45.866 -> [ 3996][W][WiFiGeneric.cpp:1057] _eventCallback(): Reason: 2 - AUTH_EXPIRE 21:48:45.866 -> [ 4003][D][WiFiGeneric.cpp:1081] _eventCallback(): WiFi AutoReconnect Running 21:48:45.901 -> [ 4023][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0 21:48:46.151 -> ....[ 5902][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: Web**, BSSID: XX:bf:XX:64:bd:18, Reason: 2 21:48:47.797 -> [ 5902][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED 21:48:47.797 -> [ 5910][W][WiFiGeneric.cpp:1057] _eventCallback(): Reason: 2 - AUTH_EXPIRE 21:48:47.797 -> [ 5917][D][WiFiGeneric.cpp:1081] _eventCallback(): WiFi AutoReconnect Running 21:48:47.797 -> [ 5938][V][WiFiGeneric.cpp:97] set_esp_interface_ip():

If I put my Finger on the shielding plate of the ESP, this happens:

21:41:54.444 -> ESP-ROM:esp32s3-20210327 21:41:54.444 -> Build:Mar 27 2021 21:41:54.444 -> rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) 21:41:54.444 -> SPIWP:0xee 21:41:54.444 -> mode:DIO, clock div:1 21:41:54.444 -> load:0x3fce3808,len:0x44c 21:41:54.444 -> load:0x403c9700,len:0xbe4 21:41:54.444 -> load:0x403cc700,len:0x2a68 21:41:54.444 -> entry 0x403c98d4 21:41:54.570 -> [ 151][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled 21:41:54.601 -> [ 181][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 0 - WIFI_READY 21:41:54.637 -> [ 214][V][WiFiGeneric.cpp:340] _arduino_event_cb(): STA Started 21:41:54.637 -> [ 216][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 2 - STA_START 21:41:54.637 -> [ 224][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0 21:41:55.164 -> ...[ 2182][V][WiFiGeneric.cpp:355] _arduino_event_cb(): STA Connected: SSID: Web***, BSSID: xx:bf:b8:xx:bd:18, Channel: 9, Auth: WPA2_PSK 21:41:56.604 -> [ 2183][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 4 - STA_CONNECTED 21:41:56.638 -> [ 2196][V][WiFiGeneric.cpp:369] _arduino_event_cb(): STA Got New IP:192.168.50.197 21:41:56.638 -> [ 2198][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 7 - STA_GOT_IP 21:41:56.638 -> [ 2205][D][WiFiGeneric.cpp:1098] _eventCallback(): STA IP: 192.168.50.197, MASK: 255.255.255.0, GW: 192.168.50.1 21:41:56.677 -> . 21:41:56.677 -> WiFi connected 21:41:56.677 -> IP address: 21:41:56.677 -> 192.168.50.197 21:41:56.677 -> 21:41:56.677 -> - Signal Level: -55 21:41:58.673 -> - Signal Level: -55 21:42:00.681 -> - Signal Level: -55 21:42:02.670 -> - Signal Level: -55 21:42:04.654 -> - Signal Level: -57

If I remove my Finger from the shielding plate, the connection remains stable but depending from the Board with much bader receiving signal or with the same as above (-50 -57 and so on) I also have an ESP32S3 Board which goes to -70 when I release my Finger from the shielding plate!

The better one of this board is also able to connect, as long it is not connected to the breadboard! The bad one do not connect independend if it is connected to the Breadboard or not. Only touching the shielding plate let it connect.

Long Story short, the onboard PCB seems to be broken on my boards, this is apperently not an problem with the Software. I used this for testing: https://github.com/Edistechlab/DIY-Heimautomation-Buch/blob/master/ESP32-CAM%20Projekte/ESP32-CAM_Antennen_Test/ESP32-CAM_Antennen_Test.ino IPEX-Connector

IPEX mit Antenne

HotCHip-with Internal Antenna

I also saw that the ESP chip runs very hot with the internal Antenna, so I mounted an IPEX connector and an external wifi antenna and voila I receiving with -41 to -47db and i can now connect to my router, in many times with only one or two "AUTH_EXPIREs" And instead of nearly 70°C the ESP runs now at 35°C colder ESP with IPEX connector

The board: ESP32S3-DEV-Board ESP32S3-DEV-Board-rear EDIT: I also MOD the PCB Antenna on the other ESP and this also is working: IMG_20240210_212608 PCB-Antenna-Mod

sivar2311 commented 7 months ago

Hi @Solar320 !

I have the same board with the same breadboard issue:( Can you explain your last patch (with the small piece of wire) in more detail? Did this also solve the breadboard problem? How long does the wire need to be and where did you solder it?

Solar320 commented 7 months ago

Hello. I soldered an 8,5mm wire of an resistor, from the end of the PCB wire Antenna in to direction of the input. So 1/2 of the wire length is used to connect it to the original PCB Wire. The active part is only what is on the left side. If I do this It will instantly connect after reset an while connected to the Breadboard. I will test it in the next time if it also connect stable if I don't use the Breadboard. IMG_20240216_141428 IMG_20240216_141247

This is only experimental and the Signal is Ok but not very good, may be it must be minimal shorter to get an better result. I will try this in the next time.

sivar2311 commented 7 months ago

@Solar320 Thank you for your reply! Please let me know the results when you have completed the tests.

Solar320 commented 7 months ago

I allready test it now and it work with or without Breadboard.

EDIT: Ok, I edit it again, it was allready right so I change it back. I have a little headage today:

It looks like the Breadboard has an little negativ influence to the PCB Antenna but I am sure that this is also the case at other ESP32 boards.

The reason why this mod is working is, that the original antenna is mismatched for some reason. Since the Antenna looks almost the same than at the old ESP32 Boards I suspect that the internal components between the ESP32S3 output and the PCB Antenna are not an good choice in the case of this ESP32S3 Boards. (in the datasheet pdf they wrote that the values of this components can vary, depending the PCB which are used)

But this all is not important, Important is that something like this is gone:

48:40.868 -> ..ESP-ROM:esp32s3-20210327 21:48:41.881 -> Build:Mar 27 2021 21:48:41.881 -> rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) 21:48:41.881 -> SPIWP:0xee 21:48:41.881 -> mode:DIO, clock div:1 21:48:41.881 -> load:0x3fce3808,len:0x44c 21:48:41.881 -> load:0x403c9700,len:0xbe4 21:48:41.881 -> load:0x403cc700,len:0x2a68 21:48:41.881 -> entry 0x403c98d4 21:48:42.023 -> [ 151][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled 21:48:42.059 -> [ 180][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 0 - WIFI_READY 21:48:42.100 -> [ 213][V][WiFiGeneric.cpp:340] _arduino_event_cb(): STA Started 21:48:42.100 -> [ 217][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 2 - STA_START 21:48:42.147 -> [ 269][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0 21:48:42.645 -> ...[ 2142][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: Web**, BSSID: XX:bf:XX:64:bd:18, Reason: 2 21:48:44.002 -> [ 2143][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED 21:48:44.045 -> [ 2150][W][WiFiGeneric.cpp:1057] _eventCallback(): Reason: 2 - AUTH_EXPIRE 21:48:44.045 -> [ 2157][D][WiFiGeneric.cpp:1077] _eventCallback(): WiFi Reconnect Running 21:48:44.045 -> [ 2177][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0 21:48:44.124 -> ....[ 3988][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: Web***, BSSID: XX:bf:XX:64:bd:18, Reason: 2 21:48:45.866 -> [ 3988][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED 21:48:45.866 -> [ 3996][W][WiFiGeneric.cpp:1057] _eventCallback(): Reason: 2 - AUTH_EXPIRE 21:48:45.866 -> [ 4003][D][WiFiGeneric.cpp:1081] _eventCallback(): WiFi AutoReconnect Running 21:48:45.901 -> [ 4023][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0 21:48:46.151 -> ....[ 5902][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: Web**, BSSID: XX:bf:XX:64:bd:18, Reason: 2 21:48:47.797 -> [ 5902][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED 21:48:47.797 -> [ 5910][W][WiFiGeneric.cpp:1057] _eventCallback(): Reason: 2 - AUTH_EXPIRE 21:48:47.797 -> [ 5917][D][WiFiGeneric.cpp:1081] _eventCallback(): WiFi AutoReconnect Running 21:48:47.797 -> [ 5938][V][WiFiGeneric.cpp:97] set_esp_interface_ip():

The most differences in receiving strenght, which you now see, came from that because I change the direction of the pcb antenne many times, vertical horizontal and so on. But in the averange it looks like that the metall in the Breadbord is not good for the receiving strength.

After soldering this little wire to the PCB Antenna the WIFI connection starts instantly:

1. Mounted on the breadboard: 15:19:16.136 -> ESP-ROM:esp32s3-20210327 Manual reset 15:19:16.178 -> Build:Mar 27 2021 15:19:16.178 -> rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) 15:19:16.178 -> SPIWP:0xee 15:19:16.178 -> mode:DIO, clock div:1 15:19:16.178 -> load:0x3fce3808,len:0x44c 15:19:16.178 -> load:0x403c9700,len:0xbe4 15:19:16.178 -> load:0x403cc700,len:0x2a68 15:19:16.178 -> entry 0x403c98d4 15:19:16.909 -> .. 15:19:17.407 -> WiFi connected 15:19:17.407 -> IP address: 15:19:17.407 -> 192.168.50.109 15:19:17.407 -> 15:19:17.407 -> - Signal Level: -57 15:19:19.404 -> - Signal Level: -57 15:19:21.392 -> - Signal Level: -56 15:19:23.412 -> - Signal Level: -58 15:19:25.396 -> - Signal Level: -58 15:19:27.418 -> - Signal Level: -58 15:19:29.376 -> - Signal Level: -52 15:19:31.412 -> - Signal Level: -59 15:19:33.404 -> - Signal Level: -59 15:19:35.376 -> - Signal Level: -54 15:19:37.416 -> - Signal Level: -55 15:19:39.416 -> - Signal Level: -57 15:19:41.416 -> - Signal Level: -56 15:19:43.405 -> - Signal Level: -59 15:19:45.406 -> - Signal Level: -61 15:19:47.398 -> - Signal Level: -60 15:19:49.407 -> - Signal Level: -60 15:19:51.416 -> - Signal Level: -60 15:19:52.660 -> ESP-ROM:esp32s3-20210327 Next manual reset 15:19:52.660 -> Build:Mar 27 2021 15:19:52.660 -> rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) 15:19:52.660 -> SPIWP:0xee 15:19:52.660 -> mode:DIO, clock div:1 15:19:52.660 -> load:0x3fce3808,len:0x44c 15:19:52.660 -> load:0x403c9700,len:0xbe4 15:19:52.660 -> load:0x403cc700,len:0x2a68 15:19:52.660 -> entry 0x403c98d4 15:19:53.398 -> .. 15:19:53.917 -> WiFi connected 15:19:53.917 -> IP address: 15:19:53.917 -> 192.168.50.109 15:19:53.917 -> 15:19:53.917 -> - Signal Level: -63 15:19:55.916 -> - Signal Level: -62 15:19:57.901 -> - Signal Level: -61 15:19:59.883 -> - Signal Level: -57 15:20:01.910 -> - Signal Level: -60 15:20:03.882 -> - Signal Level: -67 15:20:05.920 -> - Signal Level: -60 15:20:07.913 -> - Signal Level: -67 15:20:09.882 -> - Signal Level: -57 15:20:11.922 -> - Signal Level: -58 15:20:13.918 -> - Signal Level: -56 15:20:15.904 -> - Signal Level: -61 15:20:17.881 -> - Signal Level: -61 15:20:19.881 -> - Signal Level: -59 15:20:21.881 -> - Signal Level: -58 15:20:23.925 -> - Signal Level: -58 15:20:25.926 -> - Signal Level: -57 15:20:27.903 -> - Signal Level: -57

2. Without Breadboard:

15:25:10.109 -> rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) Normal Start Power on 15:25:10.109 -> SPIWP:0xee 15:25:10.109 -> mode:DIO, clock div:1 15:25:10.109 -> load:0x3fce3808,len:0x44c 15:25:10.109 -> load:0x403c9700,len:0xbe4 15:25:10.109 -> load:0x403cc700,len:0x2a68 15:25:10.109 -> entry 0x403c98d4 15:25:10.844 -> .. 15:25:11.310 -> WiFi connected 15:25:11.310 -> IP address: 15:25:11.310 -> 192.168.50.109 15:25:11.310 -> 15:25:11.310 -> - Signal Level: -51 15:25:13.308 -> - Signal Level: -51 15:25:15.307 -> - Signal Level: -49 15:25:17.336 -> - Signal Level: -50 15:25:19.307 -> - Signal Level: -60 15:25:21.307 -> - Signal Level: -63 15:25:23.346 -> - Signal Level: -57 15:25:25.336 -> - Signal Level: -49 15:25:27.307 -> - Signal Level: -49 15:25:29.307 -> - Signal Level: -48 15:25:31.328 -> - Signal Level: -49 15:25:33.324 -> - Signal Level: -66 15:25:35.351 -> - Signal Level: -52 15:25:37.351 -> - Signal Level: -51 15:25:39.340 -> - Signal Level: -51 15:25:41.332 -> - Signal Level: -54 15:25:43.340 -> - Signal Level: -52 15:25:45.335 -> - Signal Level: -53 15:25:47.340 -> - Signal Level: -53 15:25:49.345 -> - Signal Level: -55 15:25:51.305 -> - Signal Level: -57 15:25:53.340 -> - Signal Level: -56 15:25:55.305 -> - Signal Level: -64 15:25:57.341 -> - Signal Level: -60 15:25:59.304 -> - Signal Level: -65 15:26:01.304 -> - Signal Level: -67 15:26:03.319 -> - Signal Level: -57 15:26:05.304 -> - Signal Level: -58 15:26:07.337 -> - Signal Level: -56 15:26:09.329 -> - Signal Level: -48 15:26:11.325 -> - Signal Level: -56 15:26:13.304 -> - Signal Level: -55 15:26:15.324 -> - Signal Level: -51 15:26:17.349 -> - Signal Level: -54 15:26:19.324 -> - Signal Level: -54 15:26:21.303 -> - Signal Level: -57 15:26:23.334 -> - Signal Level: -54 15:26:25.303 -> - Signal Level: -54 15:26:27.339 -> - Signal Level: -55 15:26:29.228 -> ESP-ROM:esp32s3-20210327 Manual Reset 15:26:29.228 -> Build:Mar 27 2021 15:26:29.228 -> rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) 15:26:29.268 -> SPIWP:0xee 15:26:29.268 -> mode:DIO, clock div:1 15:26:29.268 -> load:0x3fce3808,len:0x44c 15:26:29.268 -> load:0x403c9700,len:0xbe4 15:26:29.268 -> load:0x403cc700,len:0x2a68 15:26:29.268 -> entry 0x403c98d4 15:26:29.957 -> .. 15:26:30.495 -> WiFi connected 15:26:30.495 -> IP address: 15:26:30.495 -> 192.168.50.109 15:26:30.495 -> 15:26:30.495 -> - Signal Level: -54 15:26:32.459 -> - Signal Level: -54 15:26:34.499 -> - Signal Level: -54

sivar2311 commented 7 months ago

I don't think the antenna is the cause. The mod seems to improve the signal strength but not solve the root cause.

I have a Freenove ESP32-S3-N8R8 board which does not have these problems. This board works both plugged into the breadboard and unplugged.

I have 3 more N16R8s where I haven't soldered the pin headers yet. When I put them flat on the breadboard everything works fine.

I therefore suspect that there is more of a grounding problem with the board. That would also explain why it works with the finger on the shielding.

What do you think?

zhangyanjiaoesp commented 7 months ago

@Solar320 Are there any other devices on the breadboard besides the DEV board? @sivar2311 what's your problem? Can you describe it?

sivar2311 commented 7 months ago

Hi @zhangyanjiaoesp Thanks for your reply! I have the exact same board like Solar320.

If the board is not plugged into the breadboard, it connects to my WiFi network within 0.2 seconds.

log ``` 05:37:46.049 > ESP-ROM:esp32s3-20210327 05:37:46.057 > Build:Mar 27 2021 05:37:46.057 > rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) 05:37:46.063 > SPIWP:0xee 05:37:46.063 > mode:DIO, clock div:1 05:37:46.063 > load:0x3fce3808,len:0x44c 05:37:46.069 > load:0x403c9700,len:0xbd8 05:37:46.069 > load:0x403cc700,len:0x2a80 05:37:46.069 > entry 0x403c98d0 05:37:46.251 > ARDUINO_EVENT_WIFI_READY 0 05:37:46.288 > ARDUINO_EVENT_WIFI_STA_START 2 05:37:46.316 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:37:46.365 > ARDUINO_EVENT_WIFI_STA_CONNECTED 4 05:37:46.380 > ARDUINO_EVENT_WIFI_STA_GOT_IP 7 05:37:46.396 > 192.168.2.188 ```

As soon as I plug it into an (empty) breadboard, no WiFi connection is possible.

log ``` 05:35:56.188 > ESP-ROM:esp32s3-20210327 05:35:56.197 > Build:Mar 27 2021 05:35:56.197 > rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) 05:35:56.202 > SPIWP:0xee 05:35:56.202 > mode:DIO, clock div:1 05:35:56.202 > load:0x3fce3808,len:0x44c 05:35:56.208 > load:0x403c9700,len:0xbd8 05:35:56.208 > load:0x403cc700,len:0x2a80 05:35:56.208 > entry 0x403c98d0 05:35:56.389 > ARDUINO_EVENT_WIFI_READY 0 05:35:56.425 > ARDUINO_EVENT_WIFI_STA_START 2 05:35:57.531 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:35:58.554 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:35:59.577 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:00.600 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:01.624 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:02.647 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:03.671 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:04.694 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:05.717 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:06.740 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:07.764 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:08.787 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:09.810 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:10.834 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:11.857 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:12.880 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:13.903 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:14.927 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:15.950 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:16.973 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:17.996 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:19.019 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:20.043 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:21.066 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:22.091 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:23.114 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:24.137 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:25.160 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:26.184 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:27.206 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:28.232 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:29.253 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:30.277 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:31.299 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:32.323 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:33.347 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:34.369 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:35.393 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:36.418 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:37.439 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:38.464 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:39.486 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:40.510 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:41.534 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:42.556 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:43.580 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:44.603 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:45.627 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:46.650 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:47.673 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:48.696 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:49.720 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:50.743 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:51.766 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:52.789 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:53.813 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:54.836 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:55.859 > ARDUINO_EVENT_WIFI_STA_DISCONNECTED 5 05:36:56.427 > 0.0.0.0 ```

The sketch I'm using for testing: wifi_test.cpp

I am aware that this is a hardware problem.

I also performed a "RSSI scan test" which scans for my network on channel 1 -> rssi_scan.cpp The results are the same (around -42 dBm). Regardless of whether the board is in the breadboard or not.

zhangyanjiaoesp commented 7 months ago

@sivar2311 @Solar320 we will test locally and feedback ASAP.

Solar320 commented 7 months ago

@Solar320 Are there any other devices on the breadboard besides the DEV board? @sivar2311 what's your problem? Can you describe it?

Hello, I were away for one week. In my case it is equal if other components are conected to the breadboard (and ESP). The metall in the breadboards clamps are enough to bring the Antenna out of balance. Every antenna can be missmatched if you bring big metall parts to near to it. But this should not be the case when you only connect the ESP to the breadboard, unless the Antenna is allready missmatchend and the additionally metal from the breadboard give them the rest.

My guess is that in some cases they use the wrong or components with an to big tolerance between the ESP and the Antenna. (matching circuit) This can explain why only a few people have this problem.

My antennamod is working good enough to bring the ESP in an useable state. We can only wait if there are other peoples which have the same problem and can confirm it.

As I see this now... https://github.com/schreibfaul1/ESP32-audioI2S/issues/530 I have installed the ESP32-miniwebradio from "schreibfaul1" a few days ago!!!

It had also this problem, it won't connect to my router in 3m distance. After the antennamod the radio is working as it should. As i was away in Germany I also get the DAC PCM5102A in my hands to test if there audio came out and it was working as expected. Also it has an good Wifi signal (3 to 4 bars) given to the mod with an IPEX connector and an antenna. The distance was now 6 - 7 m through 2 walls. EDIT: As mentioned in the Miniradio thread, I also can confirm that my ESP32S3 Dev Board do not bring out 5V to the 5V Pin. I believe, if you use the direct USB connector instead "USB to serial mode connector", the 5V Pin may have an 5V output... I used the 3,3V Output instead and it was working very good. I am also not sure if the logic level of the PCM stays at 3,3V if you feed it with 5V...

IMG-20240220-WA0002 IMG_20240220_130029 IMG_20240220_130020

sivar2311 commented 7 months ago

The RSSI is not affected in my case. I used a second ESP32 as an access point for testing. Both ESP's "see" each other with an RSSI value greater than -10, so in my case it cannot be due to the antenna.

If the faulty ESP is plugged into the breadboard, I get a Reason: 2 - AUTH_EXPIRE error:

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a80
entry 0x403c98d0
06:15:00.272 > ESP-ROM:esp32s3-20210327
06:15:00.281 > Build:Mar 27 2021
06:15:00.281 > rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
06:15:00.286 > SPIWP:0xee
06:15:00.286 > mode:DIO, clock div:1
06:15:00.286 > load:0x3fce3808,len:0x44c
06:15:00.292 > load:0x403c9700,len:0xbd8
06:15:00.292 > load:0x403cc700,len:0x2a80
06:15:00.292 > entry 0x403c98d0
06:15:00.449 > [   174][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled
06:15:00.481 > [   207][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 0 - WIFI_READY
06:15:00.520 > [   244][V][WiFiGeneric.cpp:340] _arduino_event_cb(): STA Started
06:15:00.526 > [   245][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
06:15:00.531 > [   246][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 2 - STA_START
06:15:01.616 > [  1341][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: ESP32APESP32AP, BSSID: 84:cc:a8:5f:19:01, Reason: 2
06:15:01.627 > [  1342][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
06:15:01.633 > [  1350][W][WiFiGeneric.cpp:1061] _eventCallback(): Reason: 2 - AUTH_EXPIRE
06:15:01.639 > [  1356][D][WiFiGeneric.cpp:1081] _eventCallback(): WiFi Reconnect Running
06:15:01.644 > [  1364][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0

If the ESP is not in the breadboard, this error does not occur:

06:16:37.449 > ESP-ROM:esp32s3-20210327
06:16:37.458 > Build:Mar 27 2021
06:16:37.458 > rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
06:16:37.463 > SPIWP:0xee
06:16:37.463 > mode:DIO, clock div:1
06:16:37.463 > load:0x3fce3808,len:0x44c
06:16:37.469 > load:0x403c9700,len:0xbd8
06:16:37.469 > load:0x403cc700,len:0x2a80
06:16:37.469 > entry 0x403c98d0
06:16:37.626 > [   174][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled
06:16:37.659 > [   208][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 0 - WIFI_READY
06:16:37.698 > [   245][V][WiFiGeneric.cpp:340] _arduino_event_cb(): STA Started
06:16:37.704 > [   247][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
06:16:37.709 > [   247][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 2 - STA_START
06:16:41.739 > [  4285][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: ESP32APESP32AP, BSSID: 84:cc:a8:5f:19:01, Reason: 15
06:16:41.750 > [  4287][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
06:16:41.755 > [  4295][W][WiFiGeneric.cpp:1061] _eventCallback(): Reason: 15 - 4WAY_HANDSHAKE_TIMEOUT
06:16:41.761 > [  4302][D][WiFiGeneric.cpp:1081] _eventCallback(): WiFi Reconnect Running
06:16:41.772 > [  4310][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
06:16:41.804 > [  4352][V][WiFiGeneric.cpp:355] _arduino_event_cb(): STA Connected: SSID: ESP32APESP32AP, BSSID: 84:cc:a8:5f:19:01, Channel: 1, Auth: WPA2_PSK
06:16:41.815 > [  4354][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
06:16:42.208 > [  4753][V][WiFiGeneric.cpp:369] _arduino_event_cb(): STA Got New IP:192.168.4.2
06:16:42.213 > [  4756][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
06:16:42.219 > [  4759][D][WiFiGeneric.cpp:1102] _eventCallback(): STA IP: 192.168.4.2, MASK: 255.255.255.0, GW: 192.168.4.1
Solar320 commented 7 months ago

I do not understand the logic behind this "Both ESP's "see" each other with an RSSI value greater than -10, so in my case it cannot be due to the antenna."

If you connect the ESP to the breadboard it shows the auth error. This clearly states that the antenna is not good matched.

You may have an connection if the second esp is directly next to the the esp on the breadboard, but try to bring the second ESP in the same distance as the router has to the breadboard ESP should cause the same problems. I now tested an blank ESP32C6 DEV Board with the original internal antenna. It instantly connect to the router in 3m distance trough an wall with RSI between -42 to arround -50. I now will solder the pins and try this again, then I will connect it to the breadboard, I will bet that this will working althought it has the same antenna.

sivar2311 commented 7 months ago

I wanted to determine the RSSI from the router to the connected client and compare it with the RSSI value from the faulty ESP32-S3 to the router. Unfortunately, my router does not show me the RSSI of the connected clients. So I used a second ESP32 as an access point to determine the RSSI to the faulty ESP32-S3.

I get the RSSI from both ESP's (from the access point ESP32 and from the faulty "client" ESP32-S3) and they both pretty much match. In my case it is irrelevant whether the ESP32-S3 is in the breadboard or not. The values always match and even when the faulty ESP32-S3 is plugged into the breadboard, the value does not get worse. It should be a few dBm less here, but it doesn't in my case.

Solar320 commented 7 months ago

Ok, I now tested the ESP32C6 in all 3 variations. Without Pins, with Pins and withpins and connected to the Breadboard. All tests in the same distance to the router.

In the first 2 tests this board shows no problems. When I connect it to the breadboard it has an very bad Influence to the antenna and signal. But this time there are no Auth Errors.

When I touch the shielding plate with my finger the biggest Influence to the Antenna happens when I do this when the ESP is connected to the board. If the ESP not connected the Influence is minimal.

My Router is able to show the Signal strength, in theorie it should show the same differences as the ESP itself. I can test this also with an ESP AP, but I think that the test should show the same Auth error when It is at the same distance like my router currently is. (e.g. 3m)

In some weeks I will get one new ESP32 S3 dev board looking like this. ESP32S3NewVersion

There is an additionally "2022-V1.3" writing on the backside, my modules do not have this. On my modules there is only the writing "ESP32-S3" nothing else. I don't know if this will made an difference..I will see.

zhangyanjiaoesp commented 7 months ago

@sivar2311 @Solar320 I didn't reproduce your problem.

I'm using the following ESP32-S3 dev board to test, and I'm on the IDF master branch, using the station example .

image

When I only connect the ESP32-S3 board to the breadboard, it can connect to AP quickly.

5ac45fbc-57a9-4eb8-bda0-4146f78a4015

Can you show me a picture about how you connect the ESP with the breadboard ? Also, please tell me the Arduino version you are using, I will try to test with Arduino again.

Solar320 commented 7 months ago

"@sivar2311 @Solar320 I didn't reproduce your problem."

You may didn't understand the problem, we do not have this 2022 V1.3 Version of this board. You have already the Version V1.3!
But it sounds good, so it is possible that my second purchase of the ESP32S3 2022 V1.3 will working without errors. I can't test it till now because it is still on the way.

The connections to the display are in this case irrelevant, because my modules do not work eighter, if it is connectet on the bord or/and if there any additionally wiress connected.

My boards looking like this, they have no "2022 v1.3" on it!

IMG_20240228_175503 IMG_20240228_175456

zhangyanjiaoesp commented 7 months ago

My boards looking like this, they have no "2022 v1.3" on it!

IMG_20240228_175456

@Solar320 I knew your board is this, and I have purchased it and it's on the way. I saw in one of your comments that you wanted to test the ESP32-S3 2022 v1.3 board, and I happen to have one, so I tested with it and the issue can't be reproduced, then I share the test results with you.

My other purpose is to hope you to confirm whether my connection between the ESP and the breadboard is correct.

zhangyanjiaoesp commented 7 months ago

@Solar320 Can you provide me with a purchase link for the board you are using? I find that the one I bought is a little different from yours.

sivar2311 commented 7 months ago

@zhangyanjiaoesp I have the exact same board as Solar320. I bought it on aliexpress: https://de.aliexpress.com/item/1005006266375800.html (N16R8 version)

Solar320 commented 7 months ago

My boards looking like this, they have no "2022 v1.3" on it! IMG_20240228_175456

@Solar320 I knew your board is this, and I have purchased it and it's on the way. I saw in one of your comments that you wanted to test the ESP32-S3 2022 v1.3 board, and I happen to have one, so I tested with it and the issue can't be reproduced, then I share the test results with you.

My other purpose is to hope you to confirm whether my connection between the ESP and the breadboard is correct.

Ok then I missunderstood you. Your connection should be correct to supply the Board direct with 3,3V. You should be carefull when you also connect the USB the same time, it should not have an influence but you never know...

@sivar your link should be the right one.

I bought my board there: https://de.aliexpress.com/item/1005004639132852.html?spm=a2g0o.order_list.order_list_main.82.50cc5c5fSSVejr&gatewayAdapt=glo2deu

If the link do not work search for TZT-FIVE-STARS Store and Tzt ESP32-S3-DevKitC-1 ESP32-S3 wifi I hope this is working.

captaincarmnlg commented 7 months ago

If you connect the right side (com port side) of the board wifi does not connect. If you only connect the left side on a breadboard without powerrail it will.

Solar320 commented 7 months ago

I get my module now, it look little different than on the product photo. And it has clearly another Antenna!

This module was connected to the right COM-USB-C and is working "without Pins", with soldered Pins and also when it is connected to the breadboard. The Label is different, my old modules has the Label N16R8 and P2N8 the productphoto has only one label MON16R8 and the modul I get now, has also only one label N16R8

The Antenna is now super stable.

IMG_20240301_182437 IMG_20240301_165032 IMG_20240301_165055

IMG_20240301_165000

sivar2311 commented 7 months ago

@Solar320 My ordered modules and boards should arrive within 10 days. Thanks for the link to the correct version of the board!

Solar320 commented 7 months ago

I hope they deliver the same version with the new antenna form, at least I can't quarantee it to 100%.

There you can see my ESP32 mini radio, currently without the DAC. if you look to the Antenna, you can see that it is the new Antennaform. Also you see clearly that the receiving strength is 3 of 4 bars. If I turn the ESP module vertical, I get easily 4 of 4 bars. And this all when the ESP board is connected to the board inclusive the influence of the whole wires and the metall inside the Breadboard. It looks that this new Antennadesign is now perfect.

IMG_20240302_112539

zhangyanjiaoesp commented 7 months ago

@Solar320 The antenna of my ESP32-S3 2022 v1.3 board is as follows, is different from yours, but it can work well.

截屏2024-03-04 11 05 19
Xiehanxin commented 7 months ago

hi @sivar2311 @Solar320 , thanks for your feedback. in the hardware design guidelines, we need to ensure there is sufficient clearance around the antenna. Therefore, compared to the module, the RF performance of the development board may be affected to some extent, but it should not completely disrupt the WiFi connection. Additionally, based on the product images you provided, it appears that this product, whether it's the development board or the module, is not an official product. There are even printing errors on the module. image

If you could provide more detailed information about the purchasing channel for this product, (you can send email to sales@espressif.com and add the issue link ) we would greatly appreciate it.

I have seen that you have bought two different devkitboard, are they all from the https://de.aliexpress.com/item/1005004639132852.html?spm=a2g0o.order_list.order_list_main.82.50cc5c5fSSVejr&gatewayAdapt=glo2deu ?

Xiehanxin commented 7 months ago

hi @sivar2311 @Solar320 could you read the MAC of the module? you can use _esptool.py chipid by esptool https://github.com/espressif/esptool This is very helpful for us to track the chip's manufacturing information.

sivar2311 commented 7 months ago

Hi @Xiehanxin many thanks for the feedback!

I was aware that the board was a clone. However, I would not have guessed that the module itself is also a clone :/

The link to where I bought it is here: https://github.com/espressif/esp-idf/issues/9296#issuecomment-1970398549

The module on my board looks like exactly the same as in the picture you posted https://github.com/espressif/esp-idf/issues/9296#issuecomment-1975933792

Unfortunately I'm a noob when it comes to python. I can't manage to start the script (error message that pyserial is not available). I'm using PlatformIO and the Arduino framework. I don't know what esptool.py outputs but the following sketch

#include <Arduino.h>

void setup() {
    Serial.begin(9600);
    uint64_t efuseMac = ESP.getEfuseMac();
    while (efuseMac) {
        Serial.printf("%02X ", efuseMac & 0xFF);
        efuseMac >>= 8;
    }
    Serial.println();
}

void loop() {}

outputs 80 65 99 A1 AA 28

Xiehanxin commented 7 months ago

hi @sivar2311 thanks for your feedback, we will check the MAC address you provide.

sivar2311 commented 7 months ago

@Xiehanxin ipchecktool.com says: image

Source: https://www.ipchecktool.com/tool/macfinder?oui=80%3A65%3A99%3AA1%3AAA%3A28&page=1

Solar320 commented 7 months ago

hi @sivar2311 @Solar320 , thanks for your feedback. in the hardware design guidelines, we need to ensure there is sufficient clearance around the antenna. Therefore, compared to the module, the RF performance of the development board may be affected to some extent, but it should not completely disrupt the WiFi connection. Additionally, based on the product images you provided, it appears that this product, whether it's the development board or the module, is not an official product. There are even printing errors on the module. image

If you could provide more detailed information about the purchasing channel for this product, (you can send email to sales@espressif.com and add the issue link ) we would greatly appreciate it.

I have seen that you have bought two different devkitboard, are they all from the https://de.aliexpress.com/item/1005004639132852.html?spm=a2g0o.order_list.order_list_main.82.50cc5c5fSSVejr&gatewayAdapt=glo2deu ?

Yes I got the working Boards from this TZT Store and they have the new antenna form. I bought an ESP3S3 Board and an the same as chipmodule, I only test the normal ESP32S3 board but I think the chipmodule also will work, both have the new Antenna form.

The not working one's are from:
Store-Infos Name des Geschäfts:Shop-ID:Standort:Seit geöffnet: AliSupplier Store 5017177 Shenzhen Longgang District, ChinaMay 5,2019 EDIT: I am not sure if they changed their product photo now.

https://de.aliexpress.com/item/1005005767192637.html?spm=a2g0o.order_list.order_list_main.106.70925c5fDX06Yb&gatewayAdapt=glo2deu

Solar320 commented 7 months ago

Screenshot 2024-03-04 at 20-55-52 ASUS Wireless Router 4G-AC86U - Übersicht

MAC 30:30:F9:77:0c:c8 this should be the MAC Screenshot 2024-03-04 at 21-00-12 ipchecktool com - what your browser knows about you

Xiehanxin commented 7 months ago

@Solar320 thanks for your information

sivar2311 commented 7 months ago

I get my module now, it look little different than on the product photo. And it has clearly another Antenna!

This module was connected to the right COM-USB-C and is working "without Pins", with soldered Pins and also when it is connected to the breadboard. The Label is different, my old modules has the Label N16R8 and P2N8 the productphoto has only one label MON16R8 and the modul I get now, has also only one label N16R8

The Antenna is now super stable.

My boards arrived today. I can confirm that these v1.3 boards work perfectly!

Solar320 commented 7 months ago

This are great news, since the Alisupplier store seems still to sell the old modules, I don't buy anymore there. I will now buy all modules at TZT-FIVE-STARS Store. I also bought an ESP32C6 module from TENSTAR ROBOT Store, this module has the old antenna design but seems to work without Auth errors and seems to be stable. But I prefer the new antenna design, delivered from TZT.

Sorry at Xiehanxin the espressive Team has mailed me, telling me that this module from Alisupplier was not genuie and gave me an link to their esspressive store. This store is INSANE in the negative meaning! They want over 20€ for an normal ESP32S3 module, NO WAY!!! https://de.aliexpress.com/item/1005003979778978.html?gatewayAdapt=4itemAdapt

sivar2311 commented 6 months ago

image

@Xiehanxin Here is a picture from the module of the new v1.3 board: ESP32-S3-WROOM-1_N16R8

Is this a genuine module? What are the characteristics by which one can distinguish original from fake? Unfortunately, only renderings of the modules can be seen on the official Espressif AliExpress store.

Solar320 commented 6 months ago

This is like my new modules look like. Original or not, but you won't pay over 20€ for only one board at espressive store at least I don't. The module looks like it is mounted a bit to high. on the upper left edge there is very few space between the first 2 pins. It can also

Espressive seems to sell this chips in big ammounts, who say that all modules which don't come directly from Espressive are not genuie? Every manufacturer can create it's own modules, based on this espressive chips and are compatible to the espressive 's own boards. The only different is that this boards do not come directly from espressive may be also the quality is different. If espressive attaches so much importance to it, they should play on any protected program which shows were it is manufactured.

Some professionals may need the boards, coming directly from espressive, to be sure to have the same quality over a high quantity.