Patent Abstract:
Network aware oscillator synchronization via a computer network. A correction processor connected to an oscillator uses precision timing signals propagated over a digital network to generate an error signal. IEEE-1588 time synchronization protocols produce precision time signals which are converted to precision interval signals. In one embodiment a correction processor uses the precision interval signals to count pulses of the oscillator. A correction circuit compares the counter output with a predetermined value and generates an error signal. The error signal may be used to correct the oscillator, as in a voltage controlled oscillator. Or, the error signal may be propagated to consumers of the oscillator. This error signal, for example, may be used to correct an instrument display. An arbitrary reference oscillator may be used to generate the precision timing signals propagated on the network, slaving other oscillators to it. The precision of the reference oscillator may be deliberately overstated to insure it is used as a master.

Full Description:
TECHNICAL FIELD  
       [0001]    Embodiments in accordance with the invention are related to frequency references, and more particularly, to distributing frequency reference information among devices in a test or production environment, such as among test instruments, or between test instruments and a device under test. 
       BACKGROUND  
       [0002]    Many laboratory and manufacturing test environments use a variety of electronic test and measurement equipment, including for example, signal generation and measurement instruments. In any situation where multiple instruments are used, the question of accuracy arises. If a signal generator is programmed to generate a signal at 146.115 MHz, and a frequency counter measures that frequency at 146115003.7 Hz, which instrument is more accurate? When the frequency counter reports 146115006.2 Hz a few hours later, which instrument has changed? 
         [0003]    Signal generation and measurement instruments generate and measure signals with respect to an internal oscillator, a reference, commonly a signal source of 10 MHz. With multiple instruments each having their own internal oscillator or timebase, instantaneous differences in frequency, as well as drifting differences over time are inevitable. 
         [0004]    One approach to solving this problem is to use more stable oscillators in equipment. Companies such as Agilent Technologies offer precision timebases as an option on many products. These timebases, typically a double-oven temperature controlled crystal oscillator, greatly increase the accuracy and stability of an instrument, as well as increasing the instrument&#39;s price, weight, heat generation, and power consumption; for best performance, these timebases must be powered continuously. And with a suite of instruments each with its own precision oscillator, issues of differences between instruments have been pushed over a few decimal places, but are still present. 
         [0005]    Another approach to the problem is to drive instruments from a common oscillator. This approach makes the fundamental assumption that all instruments are able to use the same reference frequency. This common reference frequency may be generated by one instrument, as an example, a master instrument with an upgraded timebase oscillator, or an external reference such as a GPS-synchronized reference oscillator, a rubidium standard, or other “house” standard. The reference signal must be distributed to each instrument. This means each instrument requires yet another signal connector (typically a rear-panel BNC), which adds cost and takes up space. Yet another cable must be run from each instrument to a distribution point, further adding to the rat&#39;s nest of cables. To maintain spectral purity and low phase noise, special distribution amplifiers must be used. Additional cabling between instruments can introduce ground loops and other undesirable signals which can make complex test and measurement environments even more complex. 
         [0006]    Instruments in a test environment are often required to use reference signals from a device under test (DUT) such as a cellular base station (BTS). When an instrument is required to “lock on” to such a nonstandard reference using reference signals, that instrument can then serve as a master for other instruments in the test suite. 
       SUMMARY OF THE INVENTION  
       [0007]    An oscillator is synchronized to an external reference through the use of timing synchronization information provided over a computer network. Precision time references distributed across a computer network, such as provided by the IEEE 1588-2002 standard, provide precise time and interval data. In one embodiment, precision interval information is used to adjust the frequency of an oscillator. In another embodiment, precision interval information is used to determine the error of an oscillator in an instrument; the determined error is used to correct instrument operation. In a third embodiment, an arbitrary frequency reference is distributed over a network by converting frequency information to interval information and distributing the interval information over the network. The interval information may deliberately overstate its precision. Other instruments using this distributed interval information to adjust their local reference clocks will reproduce the arbitrary reference, including frequency drifts and other errors in the arbitrary reference. 
     
     
       BRIEF DESCRIPTION OF THE INVENTION  
         [0008]      FIG. 1  shows a first block diagram of a network aware oscillator, 
           [0009]      FIG. 2  shows a flowchart of frequency correction, 
           [0010]      FIG. 3  shows a second embodiment of an instrument, and 
           [0011]      FIG. 4  shows an instrument with an external reference. 
       
    
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS  
       [0012]    Many frequency generating and measuring instruments make use of a reference oscillator. In many applications, such as in complex laboratory or test environments, it is desirable to synchronize many instruments to a common standard. 
         [0013]    Computer networks, particularly Ethernet networks, have become ubiquitous, even in the test and measurement environment. 
         [0014]    The IEEE-1588(TM)-2002 standard, hereinafter 1588 and incorporated by reference, provides a precision clock synchronization protocol for networked measurement and control systems. By implementing the standard, in particular by implementing the standard as it applies to Ethernet networks, clocks in multiple instruments on a network may be synchronized to a time source, known in 1588 terminology as a boundary, master, or grandmaster clock. Synchronization is obtained through the use of the Precision Time Protocol (PTP) defined by 1588. Packets defined by the standard are exchanged between instruments to achieve time synchronization. While the present invention describes implementations in terms of Ethernet networks, it should be noted that IEEE-1588 supports any network protocol with multicast messaging. 
         [0015]      FIG. 1  shows a block diagram of a network aware oscillator according to a first embodiment of the present invention. Network aware oscillator  100  connects  410  to network  400  through 1588-enabled network hub  420 . Hub  420  may be any 1588-compliant hub, switch, or router; suitable switches and routers are available from companies such as Hirschmann Electronics and OnTime Networks. In the example shown, boundary clock  430  provides time synchronization services  440  according to the 1588 standard. OnTime Networks also produces 1588 boundary clocks, including GPS time synchronization. 
         [0016]    Within network aware oscillator  100 , network interface  110  provides network services  120  to clients within the instrument. Network interface  110  also provides, in coordination with 1588 messages, precision timing signal  130 . For the present embodiment, precision timing signal  130  is in the nature of pulses at a predetermined interval, such as one pulse per second, or one pulse every two seconds. One such client is correction processor  300 . It should be noted that part of the 1588 standard includes additional timing signals as part of network services  120 , allowing synchronization without the delays and variations introduced by protocol stacks and operating system interactions. 
         [0017]    The 1588 standard is a time synchronization standard. Using the Precision Time Protocol defined by the 1588 standard, processor  310  in correction processor  300  maintains the synchronization of its clock  320  with similar clocks in instruments attached to hub  420 . In the embodiment shown, the time is set by clock  430 . Timing parameters are stored in memory  330 . 
         [0018]    Also present in instrument  100  is oscillator  200 . Oscillator  200  produces output signal  210  which is used by the instrument. In one example, this is a 10 MHz signal. Output signal  210  is also passed to correction processor  300 , and within the correction processor, to counter  150  and processor  310 . Control lines  350  allow processor  310  to reset, enable, and read the contents of counter  340 . Counter  340  is typically  32  bits wide or wider, so that processor  310  may count long periods of oscillator  200 . A 48-bit wide counter  340  allows for counting periods of many days at 10 MHz. Prescaling may also be used ahead of counter  340 . 
         [0019]    In the network aware oscillator of  FIG. 1 , a voltage-controlled oscillator is used for oscillator  200 . Such an oscillator has an input which allows its operating frequency to be adjusted. As an example, the Agilent 10811 and 10544 series crystal oscillators are oven-stabilized devices which provide a 10 MHz output. The electronic frequency control (EFC) input on these devices allows an output frequency adjustment of 1 Hz over a ±5V control range. Alternate embodiments of oscillator  200  may use any suitable oscillator topology, although crystal oscillators are preferred. Placing a variable capacitance (varactor) diode in the oscillator feedback loop allows for electronic frequency control (EFC) and the ability to change the oscillator frequency, even of a crystal oscillator, slightly. An analog EFC input is typically fed by a digital to analog converter. Other electrically tunable oscillators may also be used, such as dielectric resonant oscillators (DRO) or ytterbium-iron-garnet tuned oscillators (YTO) common in very high frequency systems. 
         [0020]    In operation according to the present invention, processor  310  responding to PTP requests through network  400  establishes precision time intervals according to an external reference. By counting  340  suitable periods of oscillator  200  output  210 , processor  310  develops an error indication  360  and used this error indication to adjust electronic frequency control  220  of oscillator  200  to trim its operating frequency and phase. 
         [0021]    According to the 1588 specification, all systems on a network containing clocks may participate in selecting a master clock. This selection is performed using the 1588 PTP protocols and allows systems receiving PTP Sync messages to select the best master clock, and is described in section 6.1.2 Operation Overview of the 1588 Specification. When a master clock is identified, it sends out periodic Sync messages which allow other systems, known in 1588 as slave clocks, to synchronize their clocks to the master clock. This synchronization process is described in section 7.8 of the 1588 Specification 
         [0022]    The application and adaptation of this process to the present invention is shown in the flowchart of  FIG. 2  Referring also to  FIG. 1 , in this embodiment correction processor  300  synchronizes its local clock  320  with a master clock,boundary clock  430  in the embodiment shown. This synchronization is maintained through periodic PTP messages passed  120  through network interface  110 . 
         [0023]    According to the present invention, correction processor  300  selects a measurement interval for counting pulses from oscillator  200 . As an example, assume an interval of 100 seconds is used. 
         [0024]    Using 1588 timing information provided  120  by network interface  110 , pulses from oscillator  200  are counted for the selected measurement interval. 
         [0025]    Next, the reference correction is calculated. Assume for example that the measurement interval is 100 seconds with an uncertainty of 200 nanoseconds (ns). For this interval, the expected number of pulses from oscillator  200  would be the frequency times the interval plus or minus the number of counts in the uncertainty. For the example given, with an interval of 100 seconds and a reference oscillator frequency of 10 MHz, the expected number of counts would be in the range  100  times  10  million, plus or minus 2 counts. If the actual number of pulses counted during the measurement interval is higher than the calculated range, oscillator  200  is running fast. If the actual number of pulses counted during the measurement interval is lower than the calculated range, oscillator  200  is running slow. This error indication is generated as signal  360 . 
         [0026]    If a correction is needed, it may be calculated using any number of models. The system represented by oscillator  200  with electronic frequency control  220  and correction processor  300  forms a control loop, and standard analytical tools may be employed for example to insure a suitably damped response. The correction based on error indication  360  is calculated and passed to electronic frequency control input  220  of oscillator  200 , altering its operating frequency. 
         [0027]    As shown in the flowchart of  FIG. 2 , the process continues, both in terms of maintaining clock synchronization, and of correcting oscillator  200 . The longer the measurement interval, the closer the synchronization between oscillator  200  and the master clock, at a cost of slower response to change. In the example shown, using measurement intervals of 100 seconds and measurement uncertainties on the order of 200 nanoseconds, synchronization on the order of one part in ten to the eighth may be achieved. It should be noted that this high degree of synchronization is achieved without needing any knowledge of the operating frequencies of the clocks or oscillators involved. 
         [0028]    In correcting the frequency of oscillator  200 , the first-order correction is of operating frequency and phase. Correction information is stored in memory  330 . By collecting measurement and correction information over longer periods of time, hours to days, second order effects such as aging in a temperature-stabilized crystal oscillator may be modeled and corrected. 
         [0029]    In implementing the present invention, network interface  110  and correction processor  300  comprising processor  310 , clock  320 , memory  330 , and counter  340  may be a portion of network aware oscillator  100 , or they may be part of a larger instrument in which the reference is embedded. Network aware oscillator  100  could be offered as a stand-alone device, or as an option in instruments. 
         [0030]    In a second embodiment of the invention as shown in Fig,  3 , precision interval information is delivered  130  to correction processor  300 . Correction processor  300  counts periods of oscillator  200  as defined by precision interval signal  130 . Where the first embodiment of the invention developed correction information used to directly adjust the frequency of the oscillator, in this embodiment correction information  360  is produced and propagated to the instrument to correct for errors in the frequency of oscillator  200 . 
         [0031]    In the case of a frequency measuring instrument such as a counter, correction data  520  may be used digitally to correct measurements. As an example, assume a frequency counter with a nominal timebase of 10 Mhz measures 154904876 cycles in a one second interval, the interval defined as 10,000,000 cycles of the timebase oscillator. If correction data  520  indicates the 10 Mhz oscillator is 8 cycles per second slow, operating at 9999992 Hz rather than 10 Mhz, the measured data may be corrected and reported or displayed as 154905000 Hz rather than 154904876 Hz. In the case of a signal generating instrument such as a frequency synthesizer, device operation may be adjusted to take into account correction data  520 . 
         [0032]    In a third embodiment of the invention as shown in  FIG. 4 , an arbitrary frequency reference is distributed via a network to one or more instruments and used to correct references in those instruments. Arbitrary frequency reference  430  generates interval information  440  which is processed by IEEE-1588 aware network interface  420  and made available over network  410 . The IEEE 1588 standard allows for devices to select a master based on accuracy information published in network messages for each source. For arbitrary source  430  to insure it is used as the master in a network, it may be desirable to deliberately overstate the published accuracy of reference  430 . 
         [0033]    Instruments  700 ,  710 , and  720  connect to network  410 . These instruments operate in accordance with the embodiments of the invention as shown in  FIGS. 1 through 3  to match their reference oscillators to the performance of arbitrary reference  430 . Thus, frequency errors, frequency drift, and the like in reference  430  will be tracked in the operation of instruments  700 ,  710 , and  720 . 
         [0034]    While the embodiments of the present invention have been illustrated in detail, it should be apparent that modifications and adaptations to these embodiments may occur to one skilled in the art without departing from the scope of the present invention as set forth in the following claims.

Technology Classification (CPC): 7