Received data block gets polluted by events from other clients (server mode)
-
- Posts: 4
- Joined: Wed Nov 04, 2015 6:12 pm
Received data block gets polluted by events from other clients (server mode)
Postby claudiu.matei » Wed Nov 04, 2015 6:54 pm
We are trying to build a multiple client HTTP server using an ESP8266 board and the AT command set, connected to an Arduino board through the serial port. We are using an Arduino Mega 2560 board. It has more serial ports, so we can use one of the serial ports for debugging and one for communicating with the ESP8266 board. Thus, we discovered the following issue while debugging.
While receiving the data bytes from the ESP8266 (after the +IPD command), if another client connects while then data is being sent, the CONNECT event and the data from the newly connected client are sent out to the serial port before the previous transmission ends.
For example, the module sends "+IPD,0,300" (i.e. 300 bytes from client 0), then another client connects before the 300 bytes are completely written and the module immediately sends "1,CONNECT" (then +IPD and the new data, if it's the case).
We would expect the ESP8266 to enqueue the newly connected client's events until the initial transmission is finished.
Is there any way of achieving this with the AT commands in the "server" mode?
Thank you,
Claudiu
Re: Received data block gets polluted by events from other clients (server mode)
Postby ESP_Faye » Wed Nov 18, 2015 10:38 am
Which version of AT commands you are using ? You can get the version info by command "AT+GMR".
Please have a try with the latest AT firmware http://bbs.espressif.com/viewtopic.php?f=46&t=1123
The received data "+IPD, XXXXX" will not be interrupted by "1,CONNECT".
-
- Posts: 4
- Joined: Wed Nov 04, 2015 6:12 pm
Re: Received data block gets polluted by events from other clients (server mode)
Postby claudiu.matei » Fri Nov 20, 2015 8:58 pm
We are already running the latest version (AT v0.5.0, SDK 1.4.0). The problem is there.
Re: Received data block gets polluted by events from other clients (server mode)
Postby ESP_Faye » Mon Nov 23, 2015 4:57 pm
Please provide your entire UART output logs for debugging.
And the whole AT version info which can be got by command "AT+GMR".
Thanks for your interest in ESP8266 !
-
- Posts: 4
- Joined: Wed Nov 04, 2015 6:12 pm
Re: Received data block gets polluted by events from other clients (server mode)
Postby claudiu.matei » Tue Nov 24, 2015 11:15 pm
AT version:0.50.0.0(Sep 18 2015 20:55:38)
SDK version:1.4.0
compile time:Sep 18 2015 21:32:07
OK
Could you please detail what you meant by "UART output logs"? Is there an output log provided by the ESP module, or should we send our own debugging log?
Thanks!
Re: Received data block gets polluted by events from other clients (server mode)
Postby ESP_Faye » Wed Nov 25, 2015 10:48 am
Here is our test log as the attachment.
In the logs, you can see that the "1,CONNECT" will output after the received data "+IPD, XXXXX" finished.
The received data "+IPD, XXXXX" will not be interrupted by "1,CONNECT".
This is the test result of the latest official AT firmware : http://bbs.espressif.com/viewtopic.php?f=46&t=1123
- Attachments
-
- 10_32_00.zip
- (1.27 KiB) Downloaded 484 times
-
- Posts: 4
- Joined: Wed Nov 04, 2015 6:12 pm
Re: Received data block gets polluted by events from other clients (server mode)
Postby claudiu.matei » Fri Nov 27, 2015 5:24 pm
Indeed, it appears that the IPD does not get interrupted in this log.
We will do some more research and get back with our log.
Who is online
Users browsing this forum: No registered users and 2 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
- 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.