Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Making NTP Server with Arduino R3

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-ARDUINO
View previous topic :: View next topic  
Author Message
NE5660

Bascom Member



Joined: 20 Oct 2012
Posts: 13

blank.gif
PostPosted: Thu Apr 26, 2018 7:17 am    Post subject: Making NTP Server with Arduino R3 Reply with quote

Hi dear
I want to make ntp server with arduino uno R3 with ethernetshield and rtc Ds 1307. So i try to send 1 ntp packet .but the client don't work .i use sntp function that have been said in mcs help.
Do you have same exprience?
Can you help me?
How do i make NTp packet?
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4747
Location: Holland

blank.gif
PostPosted: Thu Apr 26, 2018 8:59 am    Post subject: Reply with quote

so you want to make a server, not use sntp() function as a client right?
have a look at RFC 2030
it explains how it works.
and/or show what you have so far.

_________________
Mark
Back to top
View user's profile Visit poster's website
NE5660

Bascom Member



Joined: 20 Oct 2012
Posts: 13

blank.gif
PostPosted: Thu Apr 26, 2018 9:13 am    Post subject: Reply with quote

Thank's alot for your reply.
But i have to explain that , I used var=sntp(idx,ip) command to get time and date in client .
Do you kwnow sntp function how do work.
I couldn't find SNTP Function .
Back to top
View user's profile
NE5660

Bascom Member



Joined: 20 Oct 2012
Posts: 13

blank.gif
PostPosted: Thu Apr 26, 2018 9:16 am    Post subject: Reply with quote

Can i make NTP Server with arduino ?
Back to top
View user's profile
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1111
Location: SYDNEY

australia.gif
PostPosted: Thu Apr 26, 2018 9:22 am    Post subject: Reply with quote

Hello NE5660
As Mark said you have to read RFC 2030 https://tools.ietf.org/html/rfc2030
SNTP is not a function it is a time server just like a web server but you ask it for the time not web pages
Regards Paul
Back to top
View user's profile
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1111
Location: SYDNEY

australia.gif
PostPosted: Thu Apr 26, 2018 9:25 am    Post subject: Reply with quote

NE5660 wrote:
Can i make NTP Server with arduino ?


Yes but it will require a lot of code would be easyer to use a raspberry pi

Regards Paul
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4747
Location: Holland

blank.gif
PostPosted: Thu Apr 26, 2018 9:31 am    Post subject: Reply with quote

mind you that this is the BASCOM forum and the ARDUINO is for the ARDUINO hardware.
This is not intended to discuss arduino or PI projects. there are a lot of other forums for that.

It is still not clear what the TS wants but it appears he want to make a time server. that is relatively simple. Just read the RFC !

_________________
Mark
Back to top
View user's profile Visit poster's website
NE5660

Bascom Member



Joined: 20 Oct 2012
Posts: 13

blank.gif
PostPosted: Thu Apr 26, 2018 3:19 pm    Post subject: My mean is that ,Bascom has a command SNTP(). Reply with quote

Paulvk wrote:
Hello NE5660
As Mark said you have to read RFC 2030 https://tools.ietf.org/html/rfc2030
SNTP is not a function it is a time server just like a web server but you ask it for the time not web pages
Regards Paul
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-ARDUINO All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum