Chat freely about anything...

User avatar
By kmansfie
#2419 All,

I'm trying to get an NTP client running using an ESP8266. What I get when I'm "waiting" for the response from the NTP server is a reset. Here is my conversation with the ESP8266:

micro sends - AT+GMR 0x0D 0x0A
ESP8266 returns - AT+GMR 0x0D 0x0D 0x0A 00160901 0x0D 0x0A 0x0D 0x0A OK 0x0D 0x0A
micro sends - AT+CWJAP? 0x0D
ESP8266 returns - AT+CWJAP? 0x0D 0x0D 0x0A+CWJAP:"T-Mobile Broadband33"0x0D 0x0A 0x0D 0x0A OK 0x0D 0x0A
micro sends - AT+CIPMUX=1 0x0D 0x0A
ESP8266 returns - AT+CIPMUX=1 0x0D 0x0D 0x0A 0x0D 0x0A OK 0x0D 0x0A
micro sends - AT+CIFSR 0x0D 0x0A
ESP8266 returns - AT+CIFSR 0x0D 0x0D 0x0A 192.168.0.102 0x0D 0x0A
micro sends - AT+CIPSTART=4,"UDP","192.168.0.101",123 0x0D 0x0A
ESP8266 returns - AT+CIPSTART=4,"UDP","192.168.0.101",123 0x0D 0x0D 0x0A 0x0D 0x0A OK 0x0D 0x0A
micro sends - AT+CIPSEND=4,48 0x0D
ESP8266 returns - AT+CIPSEND=4,48 0x0D 0x0D 0x0A >
micro sends - 0x1B 0x00 ..... 0xD8 0x06 0x2F 0x18 0x78 0x93 0x74 0x31
ESP8266 returns - 0x1B 0x00 ..... 0xD8 0x06 0x2F 0x18 0x78 0x93 0x74 0x31 0x0D 0x0A SEND OK 0x0D 0x0A
ESP8266 returns - 0x0D 0x0A ets Jan 8 2013,rst cause:4, boot mode:(3,6) 0x0D 0x0A 0x0D 0x0A wdt reset.....

On the NTP server side I have been running wireshark and see the packet that the ESP8266 sends and the return packet from the NTP server. Could some one tell me what I'm doing wrong?

Thanks so much
Kim
User avatar
By kmansfie
#2481 Solved!!

I'm responding to myself. But, I have been able to get it to work. I updated my firmware to the latest and with that change I'm able to send a packet to the NTP server and get a response back. I have it working. So, if anyone else is seeing similar issues upgrade your firmware and give it a go.

Thanks
Kim
User avatar
By Didier9
#2523
kmansfie wrote:Solved!!

I'm responding to myself. But, I have been able to get it to work. I updated my firmware to the latest and with that change I'm able to send a packet to the NTP server and get a response back. I have it working. So, if anyone else is seeing similar issues upgrade your firmware and give it a go.

Thanks
Kim


Please let us know what the old software was and what the new is, that may be useful...

Thanks
User avatar
By djkraz
#3472 Would you possibly post your code? I've been battling with this for days and though I can get it to connect and it get a response, the arduino drops most of the response. Any ideas?