Split from: C code for interfacing ESP8266 with AVR mcu

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

Awneil i have a doubt.

I am studying what you asked me too but i need to know this desperately because every minute it bubbling in my mind so i need to clear it first.

 

What i want is,

 

Microcontroller(1st)<-------->ESP(1st)<-------------------->ESP(2nd)<-------->Microcontroller(2nd)

                              (UART)                        (WIFI)                            (UART)

 

Above you can see Microcontroller sends data and receives data by ESP through UART Right ?

and ESP-ESP communication done by WIFI.

 

Now my question is,

When 1st micro transmit some data to ESP and that data Transmitted again by (1st)ESP to (2nd)ESP by WIFI,

 

Now question comes,

 

"DOES ESP(2nd) share that received data with 2nd micro or NOT ??.

Please clearfy it.

Is it possible or i'm just wasting my time. 

Manish verma

Last Edited: Wed. Nov 1, 2017 - 01:12 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The question you really want to ask is: can the esp work both as a access point and a client?

I Googled this: esp8266 connect to esp8266

Really (and we've told you this before) for esp8266 related questions - go to esp8266.com! There's zillions of people there that play with these daily - you're going to get a more focussed response there. That's where I went when I was playing around with them a couple of years ago - and they were bleeding edge back then.

 

I have no idea of your end goal, but personally, I'd be using Arduino for the esp8266 and if you want timers and adc, then connect this to the AVR and bypass all this AT command shenanigans. Strangely enough, there's plenty of examples of people most likely doing something very similar to what you want. It's all just a Google away. 9 times out of 10, if I have a technical question (and I have many - daily) I can Google it and get a precise response - all without having to ask/beg on a forum and wait for a response. Generally, if I don't find a good response, that sort of tells me what I'm wanting is probably not a good idea.

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

Well Kartman sir,

I know it very well if ESP8266 works as ASSCESS POINT or CLIENT or BOTH.

And actually i configured it as both already, But all this done using AT commands (Typing manually).

Now point is i programmed in 1st controller to send Hello , ESP(1st) receives it by UART Communication and Forward that data via WIFI to ESP(2nd).

Now here it comes the point does ESP(2nd) tells Microcontroller that he receives "HELLO" from ESP(1st).

Just this nothing more.

 go to esp8266.com!

And yes i did try there but unfortunately that site is DEAD.

No reply from there after waiting like 1-1.5 Month.

 

Manish verma

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

This has nothing to do with the topic of this thread.

 

EDIT: The post has now been moved to its own thread; it was originally posted here: http://www.avrfreaks.net/comment...

 

This thread is already far too long and rambling - don't make it worse with side-tracks!

 

For unrelated questions, start a separate thread.

 

Also, this has nothing to do with AVR:  it is about the general operation of WiFi, and the specific capabilities of the ESP - neither of which has anything to do with AVR.

 

A Moderator can split & move has split & moved this - I guess to "General" or "Off-Topic"

 

Last Edited: Wed. Nov 1, 2017 - 09:57 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

staring.net@gmail.com wrote:
And yes i did try there but unfortunately that site is DEAD. No reply from there after waiting like 1-1.5 Month.  
 

There seems to be a lot of recent activity. Sorry, the evidence doesn't support your claims.

I know it very well if ESP8266 works as ASSCESS POINT or CLIENT or BOTH.Now point is i programmed in 1st controller to send Hello , ESP(1st) receives it by UART Communication and Forward that data via WIFI to ESP(2nd). - so where is the problem?

Have you tried Arduino for esp8266?

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

staring.net@gmail.com wrote:
Is it possible or i'm just wasting my time. 

Another classic example of why you need to have a good design before you start coding!!

 

Part of your design exercise should have been to determine whether this is possible or not!

 

EDIT

 

http://www.avrfreaks.net/comment...

 

http://www.avrfreaks.net/comment...

 

http://www.avrfreaks.net/comment...

Last Edited: Wed. Nov 1, 2017 - 10:01 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

staring.net@gmail.com wrote:
does ESP(2nd) tells Microcontroller that he receives "HELLO" from ESP(1st).

Think about it: it would be a pretty useless WiFi device if it didn't - woudln't it?!

 

What would be the point of a WiFi device that could only send stuff, but not receive anything?!

 

As to how the ESP specifically advises its Host - RTFM!

 

As already noted (many times), there are plenty of Arduino (and other) projects out there which demonstrate this.

 

EDIT - Example:

 

ESP8266 Arduino Tutorial - How to make two ESP8266 talk each other. 40 x ESP8266 communication network example in real life IoT project.

http://www.geekstips.com/two-esp8266-communication-talk-each-other/

 

 

 

But note that it is far more common not to have WiFi devices talk directly to each other - "peer-to-peer"

 

If is far more common to go via "the cloud":

Image result for esp8266 wifi communication

http://maxembedded.com/2016/05/getting-started-esp8266-wifi-module/

 

 

Last Edited: Wed. Nov 1, 2017 - 10:52 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:
What would be the point of a WiFi device that could only send stuff, but not receive anything?!

Remote control?

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

laugh

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

JohanEkdahl wrote:

awneil wrote:
What would be the point of a WiFi device that could only send stuff, but not receive anything?!

Remote control?

Radio navigation (GPS?*).

Signal Propagation measurement (amateur radio beacons - KG6IIM here?).

Anti-theft protection (Can you hear me now?  If not, I've been stolen...)

AM/FM radio stations?

And now we're just being mean to the kitty.  cheeky  S.

 

* Yes, I know GPS satellites can and do receive stuff like recalibration and orbital correction instructions, &c., but not from your average receiver.  Edit - A better example might be LORAN, but they turned that off (and possibly back on again...)  S.

Last Edited: Wed. Nov 1, 2017 - 07:07 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was talking specifically about WiFi

 

Yes, there are many other types of radio links where single-direction makes sense

 

But it would make little sense to make a general WiFi device - such as the ESP - that could not receive.

 

And even the most cursory review would show that the ESP is widely used in application that require "receive".

 

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

I believe the ESP8266 modules default come with an "AT" command set and were originally intended to be a (uart controlled) slave peripheral to a master uC.

But the hacker community quickly noticed it had a lot more capability and Espressif followed (partly?) by releasing some info (maybe even active participation).

(I haven't looked too deeply into the ESP's yet).

 

It's not unheared of to even use an ESP8266 without WiFi at all.

With it's pll it can be clocked to 160MHz (overclocked to 300+ MHz).

Combine that with a Flash chip of a few MB on a by hobbyists solderabe module and you've got a USD 2 development platform with some punch even without WiFi.

It also has a bunch of other "usual" uC peripherals and sleep modes (Down to 20uA with only RTC running).

 

But a 27 page datasheet for such a chip is not very encouraging...

Paul van der Hoeven.
Bunch of old projects with AVR's:
http://www.hoevendesign.com

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

Paulvdh wrote:
I believe the ESP8266 modules default come with an "AT" command set and were originally intended to be a (uart controlled) slave peripheral to a master uC.

That is exactly what the OP is trying to do in his original thread!