ESP8266 Developer Zone The Official ESP8266 Forum 2017-07-01T02:29:10+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=5217 2017-07-01T02:29:10+08:00 2017-07-01T02:29:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5217&p=14317#p14317 <![CDATA[Re: Quick Data Send Commands]]> 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

Statistics: Posted by Jan Kijonka — Sat Jul 01, 2017 2:29 am


]]>
2017-06-28T16:58:56+08:00 2017-06-28T16:58:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5217&p=14256#p14256 <![CDATA[Re: Quick Data Send Commands]]> Statistics: Posted by Her Mary — Wed Jun 28, 2017 4:58 pm


]]>
2017-06-18T08:30:24+08:00 2017-06-18T08:30:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5217&p=14061#p14061 <![CDATA[Quick Data Send Commands]]>
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

Statistics: Posted by Jan Kijonka — Sun Jun 18, 2017 8:30 am


]]>