Chat freely about anything...

User avatar
By platforma
#9273 So what's the current status of running UDP server and receiving data on the ESP? With the firmware 0.21 using sdk 0.9.5. I used the OTA update feature to bring the module up to date, but I can't seem to find anyone successfully running UDP with this firmware.
User avatar
By Athena
#9293
Kruger wrote:With the latest versions of the AT commands (from espressif GIT), UDP listening is disabled. You may want to stick with the older versions if you need that.


Hi,

Please try the latest AT firmware http://bbs.espressif.com/viewtopic.php?f=5&t=154

refer to documents in folder "document"
User avatar
By platforma
#9327 From the AT Commands Example doc, as suggested:
Create a UDP transmission, for example, id is 4.
Code: Select allAT+CIPSTART=4,"UDP","192.168.101.110",8080,1112,0
Response:4,CONNECT   OK

Note:
"192.168.101.110",8080 here is the remote ip and port of UDP transmission which create on PC in step 4.
1112 is the local port of ESP8266, user-define, if user does not define it, it will be a random value;
0 means destination peer entity of UDP will not change. For example, in this case, if another PC also creates a UDP entity and sends data to ESP8266 port 1112, ESP8266 can receive these data, but when we send data with command “AT+CIPSEND=4,X”, it will still be sent to the first PC. If this parameter is not 0, it will send to the new PC.


I was able to get the module to send and receive UDP data using the above AT command. Didn't have any success testing the last parameter though, as the ESP always to the specified IP (AT+CIPSEND), even if the UDP data came from another destination.
User avatar
By Athena
#9379 Hi, platforma,

Sorry that I can't really understand what's your question。。 Could you offer more information,like your test steps ,UART output log ?

It seems that you want to change the destination of UDP transmission ,if it‘s that,you should set the last parameter not to be 0 。。。

Example,notice the last parameter:
Code: Select allAT+CIPSTART=4,"UDP","192.168.101.110",8080,1112,2


Thanks for your interest in ESP8266 !