Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Assume I connect a microcontroller board (like an Arduino) to a Win 7 PC via USB. Is there anything in the USB communication protocol that contains host clock data? In other words, can I sync the microcontroller to the PC clock just by hooking up to USB?

If that's not possible, could you suggest some clever minimal-effort way to get the clock info from PC to Arduino?

I guess I could always write some software to run on the PC in the background and provide that info to the Arduino, and I'll do that if I must, but I'd like to avoid that.

I could also use a network shield and have the Arduino query the PC over the network, but I'd like to keep cost and complexity down by not using any extra shields.

I could also have the Arduino run its own clock base, but that's not an option - it must be synced to this particular PC down to the second, even if the PC itself is out of sync with NTP.

share|improve this question
    
    
NTP Time Server Update Code Example openreefs.com/ntpServer –  STTR Jul 27 '13 at 15:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.