EXTREME Overclocking  - Building a Stratum-1 GPS Based NTP Server with a Soekris net4501 Article - Page: 4
Home | Reviews | Forums | Downloads | $ EXTREME Deals $ | RealTime Pricing | Free Magazines | Gear | Folding Stats Newsletter | Contact Us

Building a Stratum-1 GPS Based NTP Server with a Soekris net4501

Date: May 12, 2008
Products: Soekris net4501 & Oncore UT+ GPS Receiver
Companies: Soekris & i-Lotus
Author: Jason Rabel

Overcoming Obstacles & Finishing The Build:

As I said before, my net4501 board is an OEM model and did not include the internal header for the second serial port. I had contemplated running a cable from inside the case out to the back of the board to connect to the serial port, or even soldering some wires to the underside of the PCB where the serial port is. Either way that would have meant the loss of using the only serial port for direct communication with the net4501, not something I really wanted to do. My other option was to just hook up the PPS signal and let the system get its coarse time from another source other than the GPS (like another NTP server).

Neither of the above choices really seemed that appealing, and fortunately I came across a third choice after booting up the net4501 with a quick build of NanoBSD. The system detected two serial ports in the startup logs, so that made me examine the physical board a little deeper. The serial point on the rear of the board has a TTL-to-RS232 chip near by, so I made the assumption that the location for the second serial port header used the same chip. I looked up the specs on the Maxium website, and using my trusty oscilloscope I verified that TTL signals were arriving on the pads where the converter chip goes. Eureka!

Since the Oncore receiver module also sends/receives data at TTL levels I could just wire it to the board directly! No need for the typical TTL-to-RS232 conversion. Below you can see where I wired through the DCD, TX, and RX lines @ U17 where the converter chip would go. I also added the row of pins @ JP11 which connects to the wiring I just did.

After working out the serial port issue it was pretty much easy going to finish up the wiring. I used a little 5V linear regulator to power the GPS module, the power is connected under the board to the main DC input. I could have used a spare 5V output from the main board, but I didn't want to chance drawing too much current and damaging anything, better safe than sorry.

In the left picture all the blue wires are the communication between the GPS and net4501. There's the TX & RX lines which allows the board to communicate with the GPS (for initialization and configuration) and also the GPS will output time & position data. There's also a wire from the GPS that sends the PPS (Pulse Per Second) to a GPIO pin (it's the wire with a resistor on it in the upper left corner). From that same pin a wire runs down to the front of the board where a pair of resistors are located (R61/R62) and connected on the front (common line between the two). This connection is the TMR1IN aka the high resolution timer that was mentioned on the second page.

To better explain how the time stamping works, here is part of the comment in the elan-mmcr.c source code:

The Elan has three general purpose counters, and when two of these are used just right they can hardware timestamp external events with approx 125 nsec resolution and +/- 125 nsec precision.

The rising edge of the signal will start timer 1 counting up from zero, and when the time counter polls for PPS, both counter 1 & 2 is read, as well as the GPIO bit. If a rising edge has happened, the contents of timer 1 which is how long time ago the edge happened, is subtracted from timer 2 to give us a "true time stamp".

 





EXTREME Overclocking Newsletter
Thousands of PC enthusiasts are already subscribed to the EXTREME Overclocking Newsletter, have you signed up yet?
Your Email Address:
Sponsored Links
Latest Reviews
Most Downloaded Files
Recently Added Files
CPU-Z 1.4912/12/08
Compare Prices On Top Brands!
Search:
For:

Intel Processors
Core i7 - Nehalem
965 Extreme  940  920

Core 2 Extreme - Yorkfield XE
QX9775  QX9770  QX9650

Core 2 Quad - Yorkfield
Q9650  Q9550  Q9400  Q9300  Q8300  Q8200

Core 2 Quad - Kentsfield
Q6600

Core 2 Duo - Wolfdale
E8600  E8500  E8400  E8200  E7300  E7200

AMD Processors
Phenom II X4
940 Black  920

Phenom X4
9950 Black  9850 Black  9750  9650

Phenom X3
8750  8650  8450

Athlon X2
7750 Black  6000+  5600+  5400+  5200+  5000+  5050e  4850e

Video Cards
nVidia GeForce GTX 200 Series
GTX 295  GTX 285  GTX 280  GTX 260

nVidia GeForce 9 Series
9800 GX2  9800 GTX+  9800 GTX  9800 GT  9600 GT  9600 GSO

ATI Radeon HD 4000 Series
4870 X2  4870  4850  4830  4670  4650

Search By Brand
ASUS  BFG  Diamond  eVGA  Gigabyte  HIS  MSI  Palit  PowerColor  PNY  Sapphire  Visiontek  XFX

PC Memory
DDR3  DDR2  DDR

Motherboards
ASUS  Biostar  DFI  ECS  eVGA  Foxconn  Gigabyte  Intel  MSI  Shuttle  Supermicro  Tyan  XFX

Hard Drives
Seagate  Maxtor  Samsung  Fujitsu  Western Digital

  Technology Magazines FREE to Qualified Professionals.
eWeek MagazineeWeek is the essential technology information source for builders of e-business. Focuses on e-commerce, communications and Internet-based architecture. Oracle MagazineOracle Magazine contains technology-strategy articles, sample code, tips, Oracle and partner news, how-to articles for developers and DBAs, and more. Dr. Dobb's JournalDr. Dobb's Journal enables programmers to write the most efficient and sophisticated programs and help in daily programming quandaries. InformationWeekInformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
  Other Popular Titles: PC Magazine, BusinessWeek, Baseline, Business Solutions, Software Magazine, InfoStor, Security Source , TelevisionWeek, more...
  EXTREME Deal Of The Day | More EXTREME Deals
Dell Small Business - Dell Vostro 220 Slim Tower Computer with Dual Core Processor, 2GB of Memory, 160GB Hard Drive and 18.5" LCD Monitor for Only $389!
Dell Vostro 220 Slim Tower ComputerYou get a 2.6GHz Intel Dual Core processor, 2GB of DDR2 SDRAM memory, 160GB SATA 7200rpm hard drive, DVDROM and Dell's E1910H 18.5" LCD monitor for just $389 after a $248 instant savings. You get the option of switching out the Norton for Trend Micro instead (which is DEFINITELY recommended) for the 15 month period and a 250GB hard drive is just $15. Windows 7 Home Premium 32bit comes with this system and you're all set to go for pretty much any home office, kids, school, work computing that you need to get done. DELL VOSTRO 220 SLIM TOWER COMPUTER WITH 18.5 INCH LCD MONITOR COMBO DEAL

Dell Financial Services - 33% Off Coupon for EVERYTHING!
Huge discount on their hot factory certified desktop computers and laptops. Stock is limited to whatever they've got in hand so grab it quick if you see what you want. Use coupon code: Save33PreHoliday (expires 11/9/09)

Copyright © 2000-2009 EXTREME Overclocking. All rights reserved.
Disclaimer of Liability - Privacy Policy