Connect multiple ESP8266 with mobile

amtech
Posts: 3
Joined: Tue Jan 19, 2016 3:54 pm

Connect multiple ESP8266 with mobile

Postby amtech » Mon Jul 17, 2017 7:56 pm

Hi,

I've three ESP8266 modules. All are used as web-servers as transparent serial link.
With one to one connection it's working OK.
How can I connect to all three module with one mobile application?

Thanks.

pratik

Re: Connect multiple ESP8266 with mobile

Postby pratik » Mon Jul 24, 2017 6:35 pm

Perhaps you should consider ESP-MESH?
https://github.com/espressif/ESP8266_MESH_DEMO
You can connect multiple devices in a self organizing network without much issue.

Nielson
Posts: 160
Joined: Wed Dec 09, 2020 4:15 pm

Re: Connect multiple ESP8266 with mobile

Postby Nielson » Wed Mar 17, 2021 2:14 pm

Assuming you plan, I suggest you look at the ESP8266 examples include with the IDE. The following are links to github but the same code is available in the FMWhatsApp IDE.

Make an ESP8266 an access point with web server.

https://github.com/esp8266/Arduino/blob ... Portal.ino

Web client for ESP8266.

https://github.com/esp8266/Arduino/blob ... Client.ino

The hazy general idea is to have the 4 ESPs/web clients connect to the ESP AP/web server. The Android phone can connect to the ESP AP to get data. Try the other examples because there may be a better way to do what you want.

milesstone
Posts: 169
Joined: Mon Apr 26, 2021 4:50 pm

Re: Connect multiple ESP8266 with mobile

Postby milesstone » Thu Apr 29, 2021 1:51 pm

You should use a bus that's designed for this kind of thing, rather than inventing a new one on your own. With your description, I see two options: I2C or RS485. The former is designed for close distance (mostly on the same PCB, maybe a dozen centimeters, while the latter is designed for up to hundreds of meters, offering protection against interference. The ESP comes with I2C support built in. For RS485, you can convert the built-in UART interface to that via a chip (or module) like theyowhatsapp MAX485.

Nielson
Posts: 160
Joined: Wed Dec 09, 2020 4:15 pm

Re: Connect multiple ESP8266 with mobile

Postby Nielson » Sat Jul 31, 2021 10:03 pm

milesstone wrote:You should use a bus that's designed for this kind of thing, rather than inventing a new one on your own. With your description, I see two options: I2C or RS485. The former is designed for close distance (mostly on the same PCB, maybe a dozen centimeters, while the latter is designed for up to hundreds of meters, offering protection against interference. The ESP comes with I2C support built in. For RS485, you can convert the built-in UART interface to that via a chip (or module) like theyowhatsapp MAX485.

You know how you have a web link that brings up your HTML GUI developed from one of your esp 8266s? Wondering if that can website can be used to manipulate multiple esp8266s.

nobita001
Posts: 12
Joined: Tue Sep 07, 2021 5:02 pm
Contact:

Re: Connect multiple ESP8266 with mobile

Postby nobita001 » Tue Sep 07, 2021 5:13 pm

milesstone wrote:You should use a bus that's designed for this kind of thing, rather than inventing a new one on your own. With your description, I see two options: I2C or RS485. The former is designed for close distance (mostly on the same PCB, maybe a dozen centimeters, while the latter is designed for up to hundreds of meters, offering protection against interference. The ESP comes with I2C support built in. For RS485, you can convert the built-in UART interface to that via a chip (or module) like thekinemaster mods MAX485.


Thanks for the suggestion...hope it work out without any issue.

JohnWick128
Posts: 10
Joined: Sat Sep 11, 2021 2:42 pm
Contact:

Re: Connect multiple ESP8266 with mobile

Postby JohnWick128 » Sat Sep 11, 2021 2:47 pm

milesstone wrote:You should use a bus that's designed for this kind of thing, rather than inventing a new one on your own. With your description, I see two options: I2C or RS485. The former is designed for close distance (mostly on the same PCB, maybe a dozen centimeters, while the latter is designed for up to hundreds of meters, offering protection against interference. The ESP comes with I2C support built in. For RS485, you can convert the built-in UART interface to that via a chip (or module) like the MAX485.



Thanks for your suggestion, it was very helpfulNull's Brawl Apk

daniel8317lon
Posts: 1
Joined: Sat Dec 25, 2021 12:01 am

Re: Connect multiple ESP8266 with mobile

Postby daniel8317lon » Sat Dec 25, 2021 12:06 am

@JohnWick128 Hi. John, yes, you are right. This information is also help me a lot. I want to know about chips that used in mobile.

Keonte45
Posts: 102
Joined: Mon Sep 05, 2022 2:19 pm

Re: Connect multiple ESP8266 with mobile

Postby Keonte45 » Fri Sep 23, 2022 12:16 am

milesstone wrote:You should use a bus that's designed for this kind of thing, rather than inventing a new one on your own. With your description, I see two options: I2C or RS485. The former is designed for close distance (mostly on the same PCB, maybe a dozen centimeters, while the latter is designed for up to hundreds of meters, offering protection against interference. The ESP comes with I2C support built in. For RS485, you can convert the built-in UART interface to that via a chip (or module) like theyowhatsapp MAX485.

Thank you for this!!

Who is online

Users browsing this forum: No registered users and 1 guest