Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP12e WiFi not working using Arduino IDE, but working well in lua #2265

Closed
croisez opened this issue Jul 11, 2016 · 27 comments
Closed

ESP12e WiFi not working using Arduino IDE, but working well in lua #2265

croisez opened this issue Jul 11, 2016 · 27 comments
Labels
waiting for feedback Waiting on additional info. If it's not received, the issue may be closed.

Comments

@croisez
Copy link

croisez commented Jul 11, 2016

----------------------------- Remove above -----------------------------

Basic Infos

Hardware

Hardware: ESP-12E
Core Version: 2.3.0

Description

ESP12e WiFi not working using Arduino IDE, but working well in lua.
If I use the Nodemcu Firmware Programmer to put nodemcu inside my esp12e, I am able to configure WiFi in STA or in SOFTAP mode. I am able to connect to an AP, and when SOFTAP mode is started, I can see the new AP name using my smartphone.
But if I do the same in cpp, using Arduino IDE, in STA mode, the RSSI is always -31.
And in SOFTAP mode, the new AP name is not visible on my smartphone.
Someone has posted a similar issue at esp8266.com forum: http://www.esp8266.com/viewtopic.php?f=28&t=5890
The conclusion was that the programmer had chosen the wrong esp board while programming.
I don't think that I choose the wrong board. Isn't it?

Settings in IDE

Module: Generic ESP8266 Module
Flash Size: 4MB (3M)
CPU Frequency: 80Mhz
Flash Mode: dio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck

Sketch

Basic example from ArduinoIDE->ESP8266Wifi->NTPClient

@entropia1ac
Copy link

Hi,
I've got the same issue .(ESP01/ESP12/ESP12E)

@MPX4132
Copy link

MPX4132 commented Jul 20, 2016

Same issue on ESP03...

@krzychb
Copy link
Contributor

krzychb commented Jul 20, 2016

@entropia1ac,
@MPX4132,

As you are using core 2.3.0, maybe you face the issue #2186 (comment).

If you are new to esp8266/Arduino, then I would install core 2.2.0 instead of 2.3.0 and check if you are able to make ruining the following example sketches:

  1. https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide#blink-test
  2. https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide#connecting-via-wifi

Krzysztof

@MPX4132
Copy link

MPX4132 commented Jul 20, 2016

Yeah, I'm in fact using 2.3.0. I tried @SupotSaeEa's workaround and it seemed to fix the issue, was about to post the comment, @krzychb beat me to the punch.

Workaround using version 2.3.0 and ESP03:

WiFi.setOutputPower(0);
WiFi.begin(ssid, password);

@nneil
Copy link

nneil commented Jul 25, 2016

The workaround doesn't work for me. I am using an ESP-201 and cannot connect to any AP using WPA2-Personal and a simple SSID and password. I chose Generic ESP8266 as the board type. NodeMCU works fine.

@MPX4132
Copy link

MPX4132 commented Jul 27, 2016

I'm guessing the workaround fixes the bug, or set of bugs, with the newer firmware on the older models. The ESP-201 seems to be fairly new. I'm guessing that's why it's not working out for you. If I were you, I'd try to find a workaround for the ESP-12, since the one you've got seems to be closer to that model.

@nneil
Copy link

nneil commented Jul 27, 2016

I subsequently tried a WeMos D1 Mini (rev 1), and a Doit.am ESP12E DEVKIT V2 (NodeMCU clone). I don't know where to begin to "find a workaround", other than to report the issue here.

@MPX4132
Copy link

MPX4132 commented Jul 27, 2016

Yeah, same, I just got lucky finding a solution for mine. Just googled "site:github esp03 won't connect" or something like that, I forgot.

@devyte
Copy link
Collaborator

devyte commented Oct 14, 2017

@croisez is this issue still valid with latest git? does it happen with #3215 ?

@devyte devyte added the waiting for feedback Waiting on additional info. If it's not received, the issue may be closed. label Oct 14, 2017
@parth-garg
Copy link

Select NodeMCU 1.0(ESP-12E Module) as Board with the default settings,works like a charm

@arnold-b
Copy link

Hello,

i have the same problem. On me the NodeMCU (ESP-12E) don´t work. I cant get any Wifi connection

@parth-garg
Copy link

parth-garg commented Nov 25, 2017 via email

@parth-garg
Copy link

parth-garg commented Nov 25, 2017 via email

@devyte
Copy link
Collaborator

devyte commented Nov 26, 2017

I am closing this due to lack of feedback from Op in over a month, and due to age.
@arnold-b if you need assistance getting started, please refer to a community forum. If you think there is a problem in the code or tools hosted in this repo, please open a new issue and fill in the details requested.
A tip off the top of my head: erase the entire flash using esptool, and only then flash a new sketch.

@devyte devyte closed this as completed Nov 26, 2017
@arnold-b
Copy link

arnold-b commented Nov 26, 2017 via email

@parth-garg
Copy link

parth-garg commented Nov 28, 2017 via email

@parth-garg
Copy link

parth-garg commented Nov 28, 2017 via email

@arnold-b
Copy link

arnold-b commented Nov 28, 2017 via email

@zeitwesen
Copy link

not sure if it is related - I had the problem that I did not see any networks on a WifiScan nor could I open up my own AP...

problem was, that this particular ESP8266-12 was using crystal frequency of 26Mhz...

Fix: Arduino IDE -> Tools -> (Selected Board: Generic ESP8266 Module) -> Crystal Frequency -> 26MHz

Maybe it can help somebody

@tokitahmid4
Copy link

Select NodeMCU 1.0(ESP-12E Module) as Board with the default settings,works like a charm

thank you "parth-garg" it works

@maximo80
Copy link

not sure if it is related - I had the problem that I did not see any networks on a WifiScan nor could I open up my own AP...

problem was, that this particular ESP8266-12 was using crystal frequency of 26Mhz...

Fix: Arduino IDE -> Tools -> (Selected Board: Generic ESP8266 Module) -> Crystal Frequency -> 26MHz

Maybe it can help somebody

@zeitwesen I would like to thank your post..... I've been looking a solution days and days..... but ESP12F didn't connect with nothing.... I was desperate but with "ONLY" change crystal frequency to 26 Mhz everything works fine..... So THANKS a lot !!!!!!
This forum is very useful thanks to everybody.

@tokitahmid4
Copy link

tokitahmid4 commented May 19, 2020 via email

@tokitahmid4
Copy link

tokitahmid4 commented May 19, 2020

ESP12-E / ESP12-F select Board NodeMCU 1.0 . Do you want to connect ESP12E with arduino or USE ESP12E Standalone ? if you connect ESP12E with arduino , first you should flash ESP12E . if you need any help , contract me tokitahmid4 a t gma i l d otcom
Edit by @devyte

@tokitahmid4
Copy link

Bro How can i help you ?

@devyte
Copy link
Collaborator

devyte commented May 19, 2020

Please don't include your email address in a post/comment.

@tokitahmid4
Copy link

OK

@maximo80
Copy link

thanks @tokitahmid4 I built a pcb with ESP12F but with ESP8266 arduino ide parameters didn't work, but only changing crystal frequency to 26 mhz in arduino ide, everything was oK.
I didn't check if i put the board as nodemcu works as well. I'll do.
thanks to everybody for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for feedback Waiting on additional info. If it's not received, the issue may be closed.
Projects
None yet
Development

No branches or pull requests