Hi,
What are the best commands and optimized timmings for quick TCP data send ?
I use "AT+CIPSTART" and "AT+CIPSEND" commands in a loop. After the data are sent, the "SEND OK" and "CLOSED" messages are returned. The communication is closed automatically without "AT+CIPCLOSE" command call and regardless of <TCP keep alive> time settings.
How to stay connected to the server without sending the "AT+CIPSTART" command repetitivelly ?
I need to get faster. Now I can send only one data packet every 1 000 ms. When I'm trying to speed up to 500 ms, some data packet are sometimes ommited and some errors are returned.
Jan
Quick Data Send Commands
-
- Posts: 28
- Joined: Fri Jun 09, 2017 10:17 pm
-
- Posts: 28
- Joined: Fri Jun 09, 2017 10:17 pm
Re: Quick Data Send Commands
Postby Jan Kijonka » Sat Jul 01, 2017 2:29 am
Hi,
I have tested some options. When I'm connected to an online server like "esp8266test1.000webhostapp.com", the packets are sent with more delay than when I'm connected to a local IP adress like "192.168.0.106". Moreover, with local IP the client is not automatically disconnected after one packet transmission.
Now I can send one 2048 Bytes packet every 500 ms:
Write: "AT+CIPSEND=2048\r\n>"
Read: "\r\nOK\r\n> " (wait for response max 4 ms)
Write: DATA
Read: "\r\nRecv 2048 bytes\r\n\r\nSEND OK\r\n>" (wait for response ~150 ms)
I use Baud Rate: 625000 Bd (a further increase of baud rate will not give a noticeable improvement).
Still not perfect (32 kbit/s). I have achieved almost 200 kbit/s with ZigBee CC2520 from TI (128 bytes packets transmitted in 6-8 ms intervals with every succesfully sent packet checksumed and confirmed by ACK from the receiver, TX 33.6 mA @ +5 dBm).
I have expected much faster WiFi communication than ZigBee:( I actually don't prefer continuous mode, because of loosing some control about missing packets and disabling the possibility of power saving modes.
Jan
I have tested some options. When I'm connected to an online server like "esp8266test1.000webhostapp.com", the packets are sent with more delay than when I'm connected to a local IP adress like "192.168.0.106". Moreover, with local IP the client is not automatically disconnected after one packet transmission.
Now I can send one 2048 Bytes packet every 500 ms:
Write: "AT+CIPSEND=2048\r\n>"
Read: "\r\nOK\r\n> " (wait for response max 4 ms)
Write: DATA
Read: "\r\nRecv 2048 bytes\r\n\r\nSEND OK\r\n>" (wait for response ~150 ms)
I use Baud Rate: 625000 Bd (a further increase of baud rate will not give a noticeable improvement).
Still not perfect (32 kbit/s). I have achieved almost 200 kbit/s with ZigBee CC2520 from TI (128 bytes packets transmitted in 6-8 ms intervals with every succesfully sent packet checksumed and confirmed by ACK from the receiver, TX 33.6 mA @ +5 dBm).
I have expected much faster WiFi communication than ZigBee:( I actually don't prefer continuous mode, because of loosing some control about missing packets and disabling the possibility of power saving modes.
Jan
Who is online
Users browsing this forum: No registered users and 167 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
-
- All times are UTC+08:00
- Top
- Delete all board cookies
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.