Simple data transfer between two ESP01 modules?

MLsi
Posts: 4
Joined: Mon May 22, 2017 4:44 am

Simple data transfer between two ESP01 modules?

Postby MLsi » Wed May 24, 2017 10:32 pm

I want to transfer data between two ESP-01 modules. A wireless serial bus, I think transparent mode is just that. But no matter what is the name, I want send serial data to the first and it must come out from the second. And vice versa. No AT commands except in the beginning.

I have two black ESP-01s with their original FW.
This is info about it:

Code: Select all

 ets Jan  8 2013,rst cause:1, boot mode:(3,7)

load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0

2nd boot version : 1.4(b1)
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

rl⸮⸮r⸮
Ai-Thinker Technology Co. Ltd.



The modules work all right. My router sees them, they see each other and so on. I can start a HTML server and so on them, but I want a simpler way to transfer data between. I have studied some web examples, but they seem to have data transfer between a computer and module.

User avatar
pratik
Posts: 467
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: Simple data transfer between two ESP01 modules?

Postby pratik » Sun May 28, 2017 10:37 pm

You may want to use UDP, that is better for this kind of communication.
Set one module as AP and one as STA. Connect them.
Start UDP mode 0 on one and set to transparent transmission. Fir bidirect, you cannot do this though. Then you will need to work with AT commands for each data tx/rx operation.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

MLsi
Posts: 4
Joined: Mon May 22, 2017 4:44 am

Re: Simple data transfer between two ESP01 modules?

Postby MLsi » Mon May 29, 2017 12:08 am

Thank you.

I think bidirectional data transfer is more important than avoiding AT-commands. So I will use those AT-commands, probably helps in avoiding data loss and such too.

May I ask a list of the commands. Is it best to assign an fixed IP for them both. Then AP/STA. Then AT+CIPSEND and receiving. What about CIPMUX and CIPSERVER.

Is there 8266 device able to handle bidirectional traffic easily?

User avatar
pratik
Posts: 467
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: Simple data transfer between two ESP01 modules?

Postby pratik » Sun Jun 04, 2017 11:37 pm

Yes, you can set the IPs for transfering data easily.
BTW if one ESP is server at 192.168.4.1 (AP), then the client STA will be 192.168.4.2!
You can use CIPSERVER for starting web server on one of the modules. CIPMUX must be 1 for using server mode.

Yes, ESP8266 can handle upstream and downstream data well at the same time.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Jamartox
Posts: 11
Joined: Tue Sep 12, 2017 2:09 am

Simple data transfer between two ESP01 modules

Postby Jamartox » Wed Sep 20, 2017 4:28 am

I would like to know the difference between these two devices. I don´t know for what exactly is each one and when I have to use them.

Thanks.

Who is online

Users browsing this forum: No registered users and 1 guest