|
From: | George Sexton |
Subject: | Re: [gpsd-users] OT: Radio Module Time |
Date: | Tue, 9 Aug 2016 12:51:06 -0600 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 8/9/2016 11:11 AM, Mark Atwood
wrote:
That's an idea I really hadn't thought. If I'm getting it correctly, you're suggesting that I write an actual native NTP driver module. That would actually be very cool. I'd have to take a look at things though. The clock module basically handles receiving and de-modulating the WWVB signal. It puts out a pulse every second which represents a bit, and the pulse width indicates whether it's a 1 or 0. For WWVB, 200ms is a binary 0, and 500ms is a binary 1, 800ms is a framing pulse. So, the receiver code actually has to catch a whole minute of bits, and then decode the results into the current time/date. I briefly looked at the docs on writing your own reference clock driver, and there's one thing I'm not quite getting. To implement this kind of driver I would need to have a function called any time DCD changes state. Is there some mechanism for doing that? I looked through the source for several reference clocks and couldn't quite make that out.
|
[Prev in Thread] | Current Thread | [Next in Thread] |