-->
Page 6 of 8

Re: Addition of NTP support for 0020000903/0020000904

PostPosted: Sat Jan 03, 2015 6:10 pm
by hreintke
LS,
I am using the rtos sdk and want to implement the setting of time using ntp.
The ntp request and answer is already running but I cannot find how to actually set the system time.
Have looked into your code on how to do it but also there I failed to get the details.
Can you point me to some documentation on it or where to look into your implementation ?

Kind regards,
Herman

Re: Addition of NTP support for 0020000903/0020000904

PostPosted: Sun Jan 04, 2015 12:53 am
by alonewolfx2
There is no record implementation for rtos SDK yet. I am developing rtos SDK too. Can you share your code with ntp?
hreintke wrote:LS,
I am using the rtos sdk and want to implement the setting of time using ntp.
The ntp request and answer is already running but I cannot find how to actually set the system time.
Have looked into your code on how to do it but also there I failed to get the details.
Can you point me to some documentation on it or where to look into your implementation ?

Kind regards,
Herman

Re: Addition of NTP support for 0020000903/0020000904

PostPosted: Sun Jan 04, 2015 10:21 am
by hreintke
LS,

No problem at all sharing my code.
Please beware :
- It is work in progress
- still debug print in the code
- no handling of "no reply from ntp server
- I cannot get the printf for unsigned long working correctly
- I am not an experienced C proigrammer
But.. any comments welcome
See the attachments.
Kind regards,

Herman

Re: Addition of NTP support for 0020000903/0020000904

PostPosted: Sun Jan 04, 2015 10:27 am
by alonewolfx2
I ment all ntp rtos project files. By the way We have new libmain.a and it's more stable.
hreintke wrote:LS,

No problem at all sharing my code.
Please beware :
- It is work in progress
- still debug print in the code
- no handling of "no reply from ntp server
- I cannot get the printf for unsigned long working correctly
- I am not an experienced C proigrammer
But.. any comments welcome
See the attachments.
Kind regards,

Herman