logo elektroda
logo elektroda
X
logo elektroda

ESP32 does not connect to WiFi, CWLAP and CWJAP errors - what to do?

bolek 630 8
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17930341
    bolek
    Level 35  
    I can't seem to find an answer to a topic that is strange to me, nor do I actually have any experience with these modules. To start with, I uploaded the official soft and the module presents itself as follows:

    Code: C / C++
    Log in, to see the code
    .

    And now my problems:
    1. AT+CWLAP basically responds all the time with just OK, less often ERROR, and in general it's a holiday when it shows what it's chasing in the air. The correct list of networks appears basically all the time, as long as the module has connected to one of them.

    2. it won't connect to the home router for anything. It appears

    Code: C / C++
    Log in, to see the code
    .
    From what I've read CWJAP:4 can mean anything and nothing. Supposedly it is possible to turn on in the ESP code and peek at, among other things, this cause but it is too much for me at the moment. Which way to go to look for solutions to the problem?

    3. even when CWLAP returns nothing, I have been able to connect to the phone, e.g.

    Code: C / C++
    Log in, to see the code
    .

    4 I write to it from a terminal and occasionally get it wrong. In extreme cases I have to reset it because it stops contacting. These modules can be so easily "tired"?
  • ADVERTISEMENT
  • #2 17930913
    xury
    Automation specialist
    Let go of the AT communication and the original software in general. It is better to use the Arduino.
    Alternatively, ready-made multisofts such as EspEasy, Tasmota, Espurna
  • ADVERTISEMENT
  • #3 17932308
    bolek
    Level 35  
    I don't do arduino, and for the purposes of this project I'm not too keen on figuring out the environment. I just need a "sessnowly working wifi module" ;/.
    The batches you mentioned are definitely not suitable (without modifications). Do you know something that might work?

    On a side note, I uploaded version 1.1.2 and it is better. The ping itself does not fly 50 but 5ms.
  • ADVERTISEMENT
  • #4 17932341
    xury
    Automation specialist
    I just don't know what exactly you want to realise.
  • #5 17932356
    tos18
    Level 42  
    bolek wrote:
    I just need a "sesnally working wifi module" ;/
    .
    What are you going to send AT commands to the module with ?
    bolek wrote:
    I don't do Arduino and somehow for the purposes of this project I don't like to learn about this environment.
    .
    I think it's worth it though - if not arduino then maybe micro python or something similar.
    You have a dual-core processor in the module, a nice chunk of memory and configurable peripherals - it's a sin not to use it.
  • ADVERTISEMENT
  • #6 17932366
    bolek
    Level 35  
    I need to make a supply for an existing device. On the local network I want to put up a page where I display/receive some parameters.
  • #8 17932442
    bolek
    Level 35  
    CWMODE was correctly (1 or 3). So far I see that 1.1.2 works better than 1.1.3. I don't know, maybe this bin was not suitable for this version of ESP.
  • #9 17932460
    tos18
    Level 42  
    it is possible.
    there is also AT+CWLAPOPT

Topic summary

The discussion revolves around issues faced by a user attempting to connect an ESP32 module to WiFi, encountering errors with AT commands such as AT+CWLAP and AT+CWJAP. The user reports that AT+CWLAP often returns "OK" or "ERROR" and struggles to connect to their home router, receiving a CWJAP:4 error. Suggestions include abandoning the AT command set in favor of using Arduino or alternative firmware like EspEasy, Tasmota, or Espurna. The user expresses reluctance to switch to Arduino but notes improved performance with a different firmware version (1.1.2). Other participants recommend exploring MicroPython and checking the CWMODE setting, which was confirmed to be correct. The conversation highlights the need for a reliable WiFi module setup for local network applications.
Summary generated by the language model.
ADVERTISEMENT