-->
Page 1 of 1

Replace UART cable with a 2xESP8266 link

PostPosted: Wed Feb 10, 2016 11:32 am
by Garga69
Hi all,

I'm trying to connect two UART devices with an ESP8266 link.
These devices are usually connected with an RS232 cable.
I would like to make this conection wireless. I have succesfully done it with bluetooth but im courious to know if it is also possible to do it with the ESP8266.
There is no "intelligence" in these devices so all code needs to be in the ESPs.

The process should be as follows.

One of the ESP works as an WIFI AP.
When the second ESP is powered it automatically connects to the first one.
When the connection is done the Wifi link makes the UART transparent.

device1----------uart----------------ESP1---------WIFI----------ESP2------------------uart-----------------device2

Do you think it is possible to create this transparent and "unattended" link between two ESP8266?

Many thanks.

Garga.

Re: Replace UART cable with a 2xESP8266 link

PostPosted: Wed Feb 10, 2016 1:32 pm
by Trickuncle
See this thread:
http://www.esp8266.com/viewtopic.php?f=4&t=6087&start=4

I tried it and it worked at first but then I noticed that it seemed to be (for me) sensitive to how the two modules started up and began to drop bytes. I setup two terminal programs to send lines of text once per second and usually both would work but sometimes, one of them would drop bytes and sometimes only one would show any receive chars at all. There may be some limitation on data rates or something like maybe if one is sending, it misses bytes coming to it. Don't know yet.

I haven't had time to debug it yet but it certainly looked good initially.