Regarding esp8266

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi onw question from all ...how does esp8266 gets connect to wifi .
Like in register level what happens when we write our ssid and password of the wifi router then what happens in register level?
And what role does AT commands play in establishing connection with wifi ..is it like the method in by which we can talk to esp8266 and gets connect to wifi with programing it and just sending commands to it.

This topic has a solution.

Kunal Gupta

github.com/gkunalupta

Last Edited: Mon. Jun 22, 2020 - 10:00 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

You're asking the wrong questions in the wrong place - there's esp8266.com for such questions. Considering how popular these devices are, why would you even consider asking here as there's plenty on the web.

 

However, I've had a bit of experience with the esp8266 and it's big brother, the esp32. I've not had to get to the register level in regards to wifi on these devices. There's a manufacturer supplied library that takes care of everything wifi. In turn, the Arduino libraries call this.

 

As for AT commands, you're probably referring to the default firmware on the esp-01 that does serial to wifi. You can use this, Arduino and many other frameworks etc with these devices. For example, I've been using Tasmota.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This has nothing to do with AVR.

 

You'd be better asking either on the Arduino forums:

 

https://forum.arduino.cc/

 

Or on the Espressif forums: 

 

https://www.esp8266.com/

 

https://bbs.espressif.com/

 

https://www.esp32.com/

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Okay thanks for suggestions

Kunal Gupta

github.com/gkunalupta

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman wrote:
Considering how popular these devices are, why would you even consider asking here as there's plenty on the web.

 

I've not had to get to the register level in regards to wifi on these devices. There's a manufacturer supplied library that takes care of everything wifi. In turn, the Arduino libraries call this.

.

I read the datasheet too and many resources on net ...but i gets confused on two -three things

Like we have register for spi,i2c or other things and their data is send and received so is that the same kinda implementation with wifi stack

I am trying to understand that only and have been reading lots of things from past a week but just keep getting confused

Kunal Gupta

github.com/gkunalupta

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What’s to get confused about? They simply don’t tell you about the wifi hardware. They (espressif) give you an api for your code to call and it does the secret black magic of wifi. The other peripherals they do tell you about.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well okay skipping for now the part of TCP/iP stack part ...
My main concern is that i want to know what commands or things enable the connection of esp8266 with wifi ans by what commands or things it connects to servern and get and receive data.

Now as kartman said in #2 that if i am using default firmware if espriff then i send AT commands....
After this i found this link on net which have connected to esp8266 via uart and send the AT commands by writing code in Embedded c .

https://www.electronicwings.com/avr-atmega/atmega16-interface-with-esp8266-module
Avr Atmega Atmega16 Interface With Esp8266 Module | Avr Atmega

Now so the library of wifi which are used in Arduino ide ... Do they also follow the AT commands in the functions which are their for connecting to wifi and server.....
Or is it something like that only with default firmware of espriff at commands can be used ????

Kunal Gupta

github.com/gkunalupta

Last Edited: Tue. May 5, 2020 - 02:26 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why are you still posting this here?

 

Hasn't it been established that this has nothing to do with AVR!

 

 i want to know what commands or things enable the connection of esp8266 with wifi ans

All of that will be in the ESP documentation - it has nothing to do with AVR.

 

The ESP cannot tell that you're using an AVR and, therefore, it's behaviour will not change because you're using an AVR.

 

Kunalgupta wrote:
Do they also follow the AT commands in the functions

Did you actually read the article at all ?

 

It clearly shows that they are using AT commands!

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. May 5, 2020 - 02:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

No point in flogging this horse any more.

 

Locked,

Ross McKenzie ValuSoft Melbourne Australia

Topic locked