A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By hreintke
#6200 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
User avatar
By alonewolfx2
#6218 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
User avatar
By hreintke
#6249 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
You do not have the required permissions to view the files attached to this post.
User avatar
By alonewolfx2
#6250 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