Hello all,
I’m trying to get a response from a NTP server using a UDP socket on the WS6318.
No response is coming, and I’ve already verified the validity of the SNTP packet I’m sending to the server, so
it looks as if I’m doing something wrong.
Here is the series of AT commands I’m using: (I prefixed everything I’m sending with a ‘>’)
ATI
WS6318
OK
AT+CMEE=1
OK
AT+WIPCFG=1
OK
AT+WIPBR=1,6
OK
AT+WIPBR=2,6,11,“internet.proximus.be”
OK
AT+WIPBR=2,6,0,“”
OK
AT+WIPBR=2,6,1,“”
OK
AT+WIPBR=4,6,0
OK
AT+WIPCREATE=1,1,10000,“at.pool.ntp.org”,123
OK
+WIPREADY: 1,1
AT+WIPDATA=1,1,2
CONNECT
now I send 48 bytes of data (the NTP packet) over the USART
[wait one second]
+++
[wait one second]
OK
AT+WIPDATA?
here is my problem: I’m expecting an unsolicited response
+WIPDATA: ,,,,
but none is ever received (even after waiting more than 10 sec)
what am I doing wrong? Is it correct to expect a response on the same
socket, UDP being a connectionless protocol?
AT+WIPCLOSE=1,1
OK
AT+WIPBR=5,6
OK
AT+WIPBR=0,6
OK
AT+WIPCFG=0
OK
I would be grateful if someone could have a look at this,
Marleen