Go Down

Topic: ESP8266 NodeMCU WiFi issues (Read 5540 times) previous topic - next topic

nate123456

I suppose you're asking me to switch back to 2.4 board release since you noticed that I have 2.4 rc2?

I did that, and readded the crystal build flag to the boards.txt, and the issue still occurs using the same sketch as I included in my last post.


Juraj

did you try the WiFiScan example?
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

nate123456

Setting up an AP seems to work, as I can see the AP as an available network on my phone.

WiFiScan detected one network in my area twice out of about 40 tries, though it was not my network.

Juraj

#18
Jan 13, 2018, 11:08 am Last Edit: Nov 29, 2018, 09:25 am by Juraj
your posts about settings were hard to follow.
Common is 80 MHz CPU, 40 MHz flash and 26 or 40 MHz crystal.
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

nate123456

I have 80 MHz CPU currently set, 40 MHz crystal as build flag, and flash frequency at 40 as well.

Juraj

so AP wasn't working before and now it works? how far are you from the WiFi router of you network? isn't your module a PRO version with external antenna connector and without on-board antenna?
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

nate123456

Yes, that's right AP now works after setting the crystal frequency correctly.

My router is about a foot away from the board.

I'm using this board: https://www.amazon.com/HiLetgo-Internet-Development-Wireless-Micropython/dp/B010O1G1ES/

Juraj

try other rooter or a hotspot function on a smartphone
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

nate123456

#23
Jan 13, 2018, 12:32 pm Last Edit: Jan 13, 2018, 02:18 pm by nate123456
I don't have another router to try at the moment, but I enabled the hotspot feature on my phone and found the network once out of about 20 or so scans. The first scan found it, then none of the rest did.

Edit-a direct connection attempt via SSID and password to the hotspot did not work.

Edit 2- after giving it about 5 minutes, it finally printed out an IP address indicating that it successfully connected. It seems to have really spotty connectivity.

What do you think might be causing my hotspot but not my router to be visible to my board? Also, why does it only ocassionally detect the hotspot?

nate123456

Well, I ordered another ESP 12E board https://www.amazon.com/gp/product/B071WRD25D/ from a different manufacturer a few days ago in case I was actually having a hardware issue. This particular board's crystal runs at 26 MHz, so I changed the boards.txt to reflect this from 40 MHz as the new board uses the same firmware as the other board.

This board works great, and the WiFi connects immediately to my router, and sees the networks on the WiFi scan sketch.

Any ideas as to why my other board still has the problem? Maybe it's just a bad WiFi chip? Or perhaps something else involving the firmware is having an effect?

chris44000

Hello,
I have the same problem : I am not able to get connected to my Wifi router (1meter distance).
My version is from amazon: AZDelivery Módulo WiFi NodeMCU Lua Lolin V3 ESP8266 ESP-12E WiFi Placa de Desarrollo con CH340 para Arduino.

When I try to connect, I get the following status : WL_NO_SSID_AVAIL - in case configured SSID cannot be reached

when I Scan the available Wifi, i can see 10 wifi, but mine is never detected
Code: [Select]

scan start
scan done
10 networks found
1: MOVISTAR_C9C5 (-81)*
2: vodafone0161 (-91)*
3: JAZZTEL_T9CE (-96)*
4: MIWIFI_2G_qEAi (-62)*
5: Orange-F2A8 (-95)*
6: MOVISTAR_D07A (-94)*
7: vodafone80C3 (-58)*
8: ONOFC30 (-85)*
9: JAZZTEL_HpTX (-57)*
10: Orange-3D22 (-85)*


I checked the following :
- The band : 2,4GHz
- Channel :  Auto
- Hidden SSID : false
- Bandwidth : 20MHz


any idea ? the only solution is to buy from another brand ? :smiley-cry: 

Thank you,
Chris

Juraj

Hello,
I have the same problem : I am not able to get connected to my Wifi router (1meter distance).
My version is from amazon: AZDelivery Módulo WiFi NodeMCU Lua Lolin V3 ESP8266 ESP-12E WiFi Placa de Desarrollo con CH340 para Arduino.

When I try to connect, I get the following status : WL_NO_SSID_AVAIL - in case configured SSID cannot be reached

when I Scan the available Wifi, i can see 10 wifi, but mine is never detected
Code: [Select]

scan start
scan done
10 networks found
1: MOVISTAR_C9C5 (-81)*
2: vodafone0161 (-91)*
3: JAZZTEL_T9CE (-96)*
4: MIWIFI_2G_qEAi (-62)*
5: Orange-F2A8 (-95)*
6: MOVISTAR_D07A (-94)*
7: vodafone80C3 (-58)*
8: ONOFC30 (-85)*
9: JAZZTEL_HpTX (-57)*
10: Orange-3D22 (-85)*


I checked the following :
- The band : 2,4GHz
- Channel :  Auto
- Hidden SSID : false
- Bandwidth : 20MHz


any idea ? the only solution is to buy from another brand ? :smiley-cry: 

Thank you,
Chris

is the router 2.4GHz?
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

chris44000

#27
Nov 16, 2018, 09:59 am Last Edit: Nov 16, 2018, 10:02 am by chris44000
Yes, it is one of the points that I checked.
additional information is that my router has 2 Wifi with 2 distinct SSID :
- one SSID of 2.4GHz
- one SSID of 5GHz

Obviously, I used the SSID of 2.4GHz.
As I was desesperated, I also tried the SSID of 5GHz.

Attached, my router wireless configuration for 2.4GHz SSID . Is everything OK ?

Juraj

try to erase the flash of the esp8266 with esptool to clear old RF settings and then upload the sketch from IDE
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

chris44000

Hello,

I tried to erase the flash of the esp8266 with esptool successfuly.
I get the version of the frimware on https://nodemcu-build.com/
Code: [Select]

sudo python esptool.py --baud 115200 --port /dev/tty.wchusbserial1420 write_flash -fm dio 0x00000 /.../nodemcu-master-8-modules-2018-11-26-21-36-08-integer.bin
esptool.py v2.6-beta1
Serial port /dev/tty.wchusbserial1420
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:52:fe:36
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0240
Compressed 425984 bytes to 274277...
Wrote 425984 bytes (274277 compressed) at 0x00000000 in 24.5 seconds (effective 138.8 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...



After installing the new firmware, I upload the sketch "wifiScan" and I get the same result: my wifi is not detected but other wifi are detected.

Any idea ?
Thank you

Go Up