Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with NTP Server response #337

Open
jjx932 opened this issue Sep 18, 2023 · 13 comments
Open

Issue with NTP Server response #337

jjx932 opened this issue Sep 18, 2023 · 13 comments

Comments

@jjx932
Copy link

jjx932 commented Sep 18, 2023

Hello I keep getting a no response from the ntp server request. I have swapped out the server from time.google.com to time-a-g.nist.gov however it still returns a no response. Please advise. Using an ESP8285 IR board ESP-01M.

@mdhiggins
Copy link
Owner

It's probably a DNS configuration problem. Can try substituting the IP address for one of those URLs and see if it changes things. Also post the full logs and your configuration

@jjx932
Copy link
Author

jjx932 commented Sep 22, 2023

attempted with different varying ip addresses of time servers but to the same result.

here are my logs from the serial monitor:

*wm:STA IP Address: 10.0.1.10
WiFi connected! User chose hostname '' passcode '' and port '80'
WiFi configuration complete
Local IP: 10.0.1.10
DNS IP: 10.0.1.1
URL to send commands: http://ESP-0BF793.local:80Q� started
MDNS http service added. Hostname is set to ESP-0BF793.local:80
HTTP Servern port 80
Starting UDP
Local port: 8888
Waiting for sync
Transmit NTP Request
129.6.15.28: 129.6.15.28
�No NTP Response :-(
Turning off the LED to save power.
������Error retrieving external IP
HTTP Code: -1
connection failed
External IP address request took 5001 ms
No errors detected with security configuration
Epoch time from timeServer is unexpectedly old, probably failed connection to the time server. Check your network settings
18010
Invalid EPOCH time, security checks may fail if unable to sync with NTP server
Ready to send and receive IR signals

my configuration is this board v-v with a usb esp flash controller
http://www.chinalctech.com/m/view.php?aid=476

@mdhiggins
Copy link
Owner

mdhiggins commented Sep 22, 2023 via email

@jjx932
Copy link
Author

jjx932 commented Sep 22, 2023

my router's local address is 192.168.1.1

@jjx932
Copy link
Author

jjx932 commented Sep 22, 2023

should i change it to a 192.168.x.x type static ip on the device?

@mdhiggins
Copy link
Owner

So there's your problem, your DNS IP address is pointing to nothing and your local IP is on a totally different subnet, fix those things or your won't be able to communicate with any network

@jjx932
Copy link
Author

jjx932 commented Sep 22, 2023

is this the correct section to modify?

char static_ip[16] = "192.168.1.25";
char static_gw[16] = "10.0.1.1";
char static_sn[16] = "255.255.255.0";
char static_dns[16] = "10.0.1.1";

@mdhiggins
Copy link
Owner

No, its not modified in code but is set up using WiFiManager during the setup phase, no code edits should be needed

@mdhiggins
Copy link
Owner

@jjx932
Copy link
Author

jjx932 commented Sep 22, 2023

my gpio10 is quite difficult to get to as it is a daughter board soldered onto another, is there a soft way to reset the wifimanager? if not I will try tomorrow when i have my jumpers..

@mdhiggins
Copy link
Owner

You could change the configpin variable to a different pin and set that other pin to ground during boot

Line 40 and 47

@jjx932
Copy link
Author

jjx932 commented Sep 23, 2023

attempted flash wipe didnt work,, will update soon ty for the help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants