UDP : AT+CIPSTART ./. AT+CIPSERVER

User avatar
rudi
Posts: 197
Joined: Fri Oct 24, 2014 7:55 pm

UDP : AT+CIPSTART ./. AT+CIPSERVER

Postby rudi » Tue Dec 09, 2014 12:09 pm

Hi
i try to config one ESP8266ex as a UDP "server" but i think this is only possible as client to send UDP msg but not receive.
is there a choice with AT+CIPSTART and the UDP register run as a UDP device for incomming UDP msg?
perhabs this will be a nice doing in UDP as a "Server" / UDP device.

why:
with UDP broadcast message so all UDP devices can response the sending command with one command .. and at same time.
example
a remote RST
a remote Cloud update
a remote Home Automation example "Jalousie" close..open
a remote Home Automation example "Light out, Panik Light on.. ect ..

thank you for your instruction.
best wishes
rudi ;-)

-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

costaud
Posts: 138
Joined: Fri Oct 24, 2014 7:40 pm

Re: UDP : AT+CIPSTART ./. AT+CIPSERVER

Postby costaud » Sun Dec 28, 2014 1:19 pm

Hey, I see your reply.

To the question, actually , the server in udp just means to register a receive port.

So in AT+ project , the process is :

Code: Select all

AT+CWMODE=3//or other mode
OK
AT+CWJAP="AP_SSID","AP_PASSWORD" //connect to ap or work as a softap
OK
AT+CIPMUX=0 //single link, or multi
OK
AT+CIPSTART="UDP","0",0,10000,2 //set udp local port , remote ip and port is irrespective until send data...
0,CONNECT
OK


Then just send data via udp port you set ,(10000 in this case)

Code: Select all

+IPD,14:broadcast test
OK

+IPD,8:test udp
OK

lucio.macellari.mac
Posts: 2
Joined: Wed Nov 09, 2016 4:42 pm

Re: UDP : AT+CIPSTART ./. AT+CIPSERVER

Postby lucio.macellari.mac » Wed Nov 09, 2016 7:09 pm

Hi,

the 8266 socket using AT commands seems to be unable to receive UDP broadcast datagrams.
The command:
AT+CIPSTART="UDP","0",0,10000,2
does not setup the module to receive broadcast datagrams.

+IPD,14:broadcast test
OK
is impossible to achieve.

Someone can help?

Who is online

Users browsing this forum: No registered users and 3 guests