Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: PC time sync from Arduino

  1. #1
    Junior Member
    Join Date
    Oct 2019
    Posts
    6

    PC time sync from Arduino

    Hi, I`m reading with Teensy 3.2 time protocol from Time server via serial line , and want to send received date/ time to PC via RS422. The best will be to emmulate with Teensy some some standard protocol, which is PC able to automatic synchronise time with.
    I find lot of programs, how to sync Arduino time from PC, but nothing like I need: how to sync PC time from Arduino.
    Can somebody help me with some useful links?

  2. #2
    Senior Member
    Join Date
    Aug 2017
    Posts
    138
    Quote Originally Posted by ddano007 View Post
    Hi, I`m reading with Teensy 3.2 time protocol from Time server via serial line , and want to send received date/ time to PC via RS422. The best will be to emmulate with Teensy some some standard protocol, which is PC able to automatic synchronise time with.
    I find lot of programs, how to sync Arduino time from PC, but nothing like I need: how to sync PC time from Arduino.
    Can somebody help me with some useful links?
    Have you checked this yet?
    https://www.pjrc.com/teensy/td_libs_Time.html

    Maybe there's a way to adapt some of these methods to what you need

  3. #3
    Junior Member
    Join Date
    Oct 2019
    Posts
    6
    Thanks for tips, I`m going to check it, however it`s seems to be Teensy`s synchro with external source and I need opposite way...

  4. #4
    Senior Member vjmuzik's Avatar
    Join Date
    Apr 2017
    Location
    Florida
    Posts
    383
    The only way I can think of would be to setup a NTP server with the Teensy, I don't think the current Ethernet library has any examples of this, just an NTP client. It would depend on your OS but I don't know if any OS has a way for a program to set the system time besides telling the time to sync with an NTP server.

  5. #5
    Junior Member
    Join Date
    Oct 2019
    Posts
    6
    OK, I found nothing useful for me, so I`m sending simple time string and in PC will be a program reading this and synchronize the time.
    However thanks for You comments.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •