AU2012216514A1 - Distributed synchronization and timing system - Google Patents

Distributed synchronization and timing system Download PDF

Info

Publication number
AU2012216514A1
AU2012216514A1 AU2012216514A AU2012216514A AU2012216514A1 AU 2012216514 A1 AU2012216514 A1 AU 2012216514A1 AU 2012216514 A AU2012216514 A AU 2012216514A AU 2012216514 A AU2012216514 A AU 2012216514A AU 2012216514 A1 AU2012216514 A1 AU 2012216514A1
Authority
AU
Australia
Prior art keywords
usb
frequency
synchronized
clock
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
AU2012216514A
Inventor
Peter Foster
Alex Kouznetsov
Mykola Vlasenko
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chronologic Pty Ltd
Original Assignee
Chronologic Pty Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from AU2007215381A external-priority patent/AU2007215381B2/en
Application filed by Chronologic Pty Ltd filed Critical Chronologic Pty Ltd
Priority to AU2012216514A priority Critical patent/AU2012216514A1/en
Publication of AU2012216514A1 publication Critical patent/AU2012216514A1/en
Abandoned legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

A method and apparatus for controlling the phase and frequency of the local clock of a USB device, the apparatus comprising circuitry for observing USB 5 traffic and decoding from the USB traffic a periodic data structure containing information about the frequency and phase of a distributed clock frequency, and phase and circuitry for receiving the periodic data structure and generating from at least the periodic data structure a local clock signal locked in both frequency and phase to the periodic data structure. The circuitry for receiving the periodic 10 data structure and generating the local clock signal may generate the local clock signal with a frequency that is a non-integral multiple of a frequency of the periodic data structure. 3840245_1 (GHMatters) P63419.AU

Description

AUSTRALIA Patents Act 1990 COMPLETE SPECIFICATION Standard Patent Applicant: Chronologic Pty. Ltd. Invention Title: DISTRIBUTED SYNCHRONIZATION AND TIMING SYSTEM The following statement is a full description of this invention, including the best method for performing it known to me/us: -2 DISTRIBUTED SYNCHRONIZATION AND TIMING SYSTEM RELATED APPLICATION This application is divided from and claims the benefit of the priority date of 5 Australian patent application no. 2007215381, the content of which as filed is incorporated herein by reference in its entirety. FIELD OF THE INVENTION The present invention relates to a method and apparatus for providing a 10 distributed synchronization and timing system, of particular but by no means exclusive use in providing clocks, data acquisition and control of test and measurement equipment, instrumentation interfaces and process control equipment, synchronized to an essentially arbitrary degree. 15 BACKGROUND OF THE INVENTION The USB specification is intended to facilitate the interoperation of devices from different vendors in an open architecture. USB data is encoded using differential signalling (viz. two wires transfer the information) in the form of the difference between the signal levels of those two wires. The USB specification 20 is intended as an enhancement to the PC architecture, spanning portable, desktop and home environments. The USB specification assumes that devices differ. This is true for the intended environments in which devices from a multiplicity of manufacturers are 25 connected, but there exist other environments (such as certain common industrial or laboratory environments) that require a specification for operating multiple devices of a similar nature in a synchronized manner. The specification does not sufficiently address this issue. Such environments are typically those where testing, measuring or monitoring is performed, and which 30 require the devices to be synchronized to a more accurate degree than is specified. The USB specification allows limited inter-device synchronization by providing a 1 kHz clock signal to all devices. However, many laboratory and industrial environments require synchronization at megahertz frequencies and higher. 35 USB employs a tiered star topology, where hubs provide attachment points for USB devices. The USB host controller which is located on the user's personal 384024_1 (GHMalters) P63419gAU -3 computer (PC), laptop or personal digital assistant (PDA) contains the root hub, which is the origin of all USB ports in the system. The root hub provides a number of USB ports to which USB functional devices or additional hubs may be attached. 5 In turn, one can attach more hubs (such as USB composite device) to any of these ports, which then provide additional attachment points via ports for further USB devices. In this way, USB allows a maximum of 127 devices (including hubs) to be connected, with the restriction that any device may be at most 5 10 levels deep. The root hub in the host transmits a Start of Frame (SOF) signal packet every 1 ms to every device, the time between two SOF packets being termed a frame. Each module receives this SOF packet at a different time, allowing for electrical is delays inherent in USB topology. The topology implies that there may be a significant time delay (specified as 380 ns) for receiving the same signal between a device that is connected directly to the host controller and a device, which is 5 levels down. This is a severe restriction when there is a need to synchronize devices at megahertz levels and above. Furthermore the USB 20 specification allows the host controller to fail to transmit up to five consecutive SOF tokens. Current synchronization between a USB host and a USB device is possible by two types of USB transfers, Interrupt and Isochronous. Interrupt transfers allow 25 guaranteed polling frequencies of devices with minimum periods of 125 ps, whereas isochronous transfers guarantee a constant transfer rate. Both methods require there to be traffic between the device and host for synchronization to take place and therefore reserve more bandwidth for higher degrees of synchronization. This unfortunately means that the available USB 30 bandwidth can be used up before the maximum number of devices has been connected. This approach also places on the host the great computational burden of keeping 127 devices synchronized to the host by means of software, yet still fails to address maintaining synchrony between the devices as to the host the individual devices represent separate processes. 35 Devices that contain a physical transducer of some kind, such as a laser diode or a photodetector, may require clock and trigger information. Such devices, 3840245_1 (GHMatters) P63419.AU -4 such as a laser diode with a modulated light output at 1 MHz, may use a clock signal to perform transducer functions at regular intervals or at a constant frequency. A trigger signal is usually used to start or end an operation at a set time. In the laser diode example, a trigger signal could be used to turn the 5 modulated light output on or off. These clock and trigger signals or information (referred to below as synchronization information) can be used to synchronize a multiplicity of devices to each other, provided the signals are common and simultaneous to all 10 devices. 'Common' and 'simultaneously' here mean that the variation in time of these signals between the devices is less than a specified quantity, Dt. In the laser diode example, this would enable a multiplicity of laser diodes to modulate their light output at one frequency. The modulation frequency of all devices would be the same, and their waveforms would be in-phase. The current USB 15 specification (viz. 2.0) allows for delays in 8t of up to 0.35 Is. For a signal with a frequency of 1 MHz and a period of 1.0 ps, this delay represents almost half of the period. It is thus unusable as specified as a synchronization signal for routine use. 20 Devices like hubs and USB controller chips commonly use some amount of phase locking in order to decode the USB protocol. It is the purpose of the SYNC pattern in the USB protocol to provide a synchronization pattern for another electronic circuit to lock to. However, this is intended to synchronize the device to the USB bit streams to an accuracy sufficient to interpret MHz bit 25 streams. It is not intended to synchronize two separate devices with each other to an accuracy required by many test and measurement instruments. The USB specification-to the extent that it deals with inter-device synchronization-is mainly concerned with synchronizing a USB-CD audio stream sufficiently for output on a USB-speaker pair. The requirements of such an arrangement are 30 in the kHz range and, for this, the USB provides ideal conditions. However, the specification does not address the potential problems of synchronizing 100 USB-speaker pairs. As discussed above, USB communication transfers data during regular 1 ms 35 frames or-in the case of the High-Speed USB specification-in eight micro frames per 1 ms frame. A Start of Frame (SOF) packet is transmitted to all but Low-Speed devices at the beginning of each frame and to all High-Speed 3040245_1 (GHMatters) P63419.AU -5 devices at the beginning of each micro-frame. The SOF packet therefore represents a periodic low resolution signal broadcast to all but Low-Speed devices connected to a given Host Controller. 5 This SOF packet broadcast occurs at a nominal frequency of 1 kHz. However the USB specification allows a very large frequency tolerance (by instrumentation standards) of some 500 ppm (parts per million). The background art utilises this low resolution frequency signal that is broadcast to each of the devices to provide clock synchronization, but only to the somewhat 10 ambiguous frequency provided by the USB Host Controller. US Patent No. 6,343,364 (Leydier et al.) discloses an example of frequency locking to USB traffic, which is directed toward a smart card reader. This patent teaches a local, free-running clock that is compared to USB SYNC and packet is ID streams; its period is updated to match this frequency, resulting in a local clock with a nominal frequency of 1.5 MHz. This provides a degree of synchronization sufficient to read the smart card information into the host PC. As this approach is directed to a smart card reader, inter-device synchronization is not addressed. Further, neither a frequency lock to 1 kHz or 20 better stability nor high accurate phase control is disclosed. US Patent No. 6,012,115 and subsequent continuation US Patent No. 6,226,701 (Chambers et al.) addresses the USB SOF periodicity and numbering for timing. As explained in the abstracts of these disclosures, the 25 invention allows a computer system to perform an accurate determination of the moment in time a predetermined event occurred within a real-time peripheral device by using the start of frame pulse transmitted from a USB host controller to peripheral devices connected to it. 30 However these approaches do not measure the frequency of a periodic data structure contained within the USB data traffic for determination of the absolute frequency of the master clock in the USB Host Controller, and in some cases rely on the provision of an additional counter in the host. 35 US Patent No. 6,092,210 (Larky et al.) discloses a method for connecting two USB hosts for the purpose of data transfer, by employing a USB-to-USB connecting device for synchronizing local device clocks to the data streams of 3640245. (GHMatters) P63419.AU -6 both USB hosts. Phase locked loops are used to synchronize local clocks and over-sampling is used to ensure that data loss does not occur. This document, however, relates to the synchronization of the data streams of two USB hosts with each other (and with limited accuracy) such that transfer of information is s then possible between said Hosts. The invention does not teach about the synchronization of a multiplicity of USB devices to a single USB Host or to a plurality of USB hosts. The USB specification was written with audio applications in mind, and US 10 Patent No. 5,761,537 (Sturges et al.) describes how to synchronize two or more pairs of speakers with individual clocks, where one pair operates off a stereo audio circuit in the PC and the other pair is controlled by the USB. Since both speaker pairs use their own clocks, they need to be synchronized so this document teaches one technique for maintaining synchronization of the audio 15 signals despite possible clock skew between the asynchronous clocks. US Patent Application No. 10/620,769 discloses a synchronized version of the USB, in which the local clock of each device is synchronized on a given USB to an arbitrary degree. This document also discloses a method and apparatus for 20 providing a trigger signal to each device within the USB such that an event may be synchronously initiated on multiple devices by the trigger signal. US Patent No. 6,904,489 (Zarns) discloses methods and systems for remotely accessing a USB device, in which a requesting device (such as a personal 25 computer) issues a request for a USB device, the request is intercepted and packaged and then transmitted over a network. The packet is received by a USB host device, and the request is unpackaged and passed to the controller for processing by the USB device. 30 Figure 1 is a schematic diagram of an exemplary background art synchronized USB device 10, connected to a digital USB 12, a clock signal and synchronization bus 14, and including a digitally controlled transducer 16. The device 10 also includes a bus connector 18, digital 1/O bus interface circuitry 20, a microprocessor 22, and synchronization channel 24 for passing 35 synchronization information including trigger and clock signals to the transducer 16. 3840245_i (GHMatters) P63419.AU -7 The device 10 is connected by means of the bus connector 18 to a digital USB 12 containing USB data and control signals for the USB device 10; clock signal and synchronization bus 14 provides clock and synchronization signals. 5 Another synchronized USB device, disclosed in US Patent Application No. 10/620,769, is shown schematically at 10' in figure 2. Like reference numerals have been used to refer to like features in figure 1. In device 10', clock signals are generated locally to the synchronized USB device 10' by decoding information present in the data stream of USB 12, through bus connector 18. In 10 this device, all synchronization is provided through USB 12 using standard USB cables and connectors (rendering the clock signal and synchronization bus 14 of figure 1 unnecessary). Synchronization channel 26 provides synchronization information including trigger and clock signals to digital transducer 16. 15 This architecture for synchronization of the local clock on each of a plurality of USB devices relies on periodic data structures present in the USB traffic. The preferred embodiment of US Patent Application No. 10/620,769 essentially locks the local clock in frequency and phase to the detection of a SOF packet token at the USB device. 20 Figure 3 is a schematic representation of another embodiment of US Patent Application No. 10/620,769. In this embodiment, a synchronization channel 26 operates by detecting and extracting information from a USB 12 as USB signal traffic passes through to digital I/O bus interface circuitry 20 (not shown in this 25 figure), and by generating both a local clock signal 28 and a local trigger signal 30. This embodiment employs circuitry to observe traffic through the USB and decode all SOF packets, which results in a pulse once every 1 ms. The local 30 clock signal 28, from a controlled oscillator clock 32, is locked to the reception of the USB 1 kHz SOF packet in both phase and frequency. This first requires the local high speed clock signal 28 from clock 23-which may be, say, 1 MHz-to be divided by a clock frequency divider 34 down to the 35 frequency of the SOF packet reception (nominally at 1 kHz). Matched filter 36 sends a clock synch signal 38 when a SOF packet arrives, which passes to a phase detector 40. The phase detector 40 is coupled to the controlled oscillator 36402451 (GHMatters) P83419.AU -8 clock 32 via a filter 42. The local clock signal 28 is subsequently supplied to the transducer circuitry on the USB device (i.e. digital transducer 16 in figures 1 and 2), thus ensuring that 5 all devices attached to the root hub are locked in frequency to the point at which they receive the SOF packet token. This arrangement is said to be able to produce a local clock signal to arbitrarily high frequencies, such as a clock frequency of tens of megahertz, and thereby 10 to ensure that the local clock of each device connected to a given USB is synchronized in frequency. US Patent Application No. 10/620,769 also teaches a method and apparatus to further synchronize multiple local clocks in phase by measurement of signal propagation time from the host to each device and provision of clock phase compensation on each of the USB devices. 15 However, the approach described in Patent Application No. 10/620,769 is limited in its ability to provide a precisely known clock frequency to each device. The arrangement described above by reference to figure 3 locks the frequency of each local clock to the reception of the SOF packet token. The rate of SOF 20 packet generation is driven by the local crystal oscillator on a host PC. This is generally inaccurate and the USB specification has a very large tolerance on clock frequency and subsequent SOF rate. The USB specification dictates that the host controller must send a SOF packet at a rate of 12 MHz ±500 ppm (parts per million), that is, 12 MHz ±0.05%. 25 This is a very large tolerance for clocks. For example, a standard crystal oscillator has a central frequency tolerance of approximately 20 ppm with temperature stability of approximately ±50 ppm across the usable temperature range. Even this tolerance is unacceptable for highly accurate clock systems. 30 Time critical systems often require temperature stabilised crystal oscillators with centre frequency tolerance and temperature stability of approximately 5 ppm or better. US Patent Application No. 10/620,769 also teaches a method of controlling the 35 synchronized USB clock frequency by manufacture of a special USB host controller with local clock of precisely controlled reference frequency. Such a system would then produce a USB data stream with 1 kHz SOF clock accuracy 3840245_i (GHMatters) P63419.AU -9 of a few parts per million. This device is likely to be too costly to see widespread implementation in the highly competitive personal computer market; further, systems such as laptop computers and PDAs (personal digital assistants) have no provision to add on an aftermarket USB host controller. 5 US Patent No. 6,226,701 (Chambers et al.) discloses a system for time stamping real-time events within a USB, employing multiple counters and comparing elapsed time since USB SOF packets. This system requires a counter in both the USB device and the USB Host Controller to be activated by 10 SOF tokens. The counter in the device is activated by the external event and stopped by the next SOF. The counter in the Host controller is reset and started by each SOF. The USB host controller interrogates the peripheral device which transfers data to the host controller indicating (i) that an event has occurred, and (ii) the time before start of frame value of the first timer. The 15 USB host controller interrupts the host processor and transfers to it the data related to the peripheral device. In this way the system of this document can determine the elapsed time since the external event occurred and the processor read the second timer. 20 However, while the system of Chambers et al. can perform basic event time stamping, it requires a specific hardware implementation of the USB Host Controller and is therefore not compatible with a generic implementation of USB. Furthermore, that system relies on PC interrupt features and the associated timing restrictions of the real-time clock of the Host PC. 25 SUMMARY OF THE INVENTION Thus, it is an object of this invention to supplement the USB specification such that any number of USB devices, up to some allowed maximum, can operate in a synchronized and triggered manner with local clocks both phase and 30 frequency locked to precisely controlled arbitrary frequencies. It is another object of the invention to retain the advantages of USB while supplementing the USB specification, including the ability to operate multiple devices via a tiered star architecture (up to a current total of 127 devices), hot 35 swap capability, automatic enumeration, ease-of-use, cross-operating system compatibility, and portability. 3840245_1 (GHMatters) P63419.AU -10 It is yet another object of this invention to provide highly accurate time-stamping of the events of a real-time system with generic implementation of USB Host controller hardware applicable to every USB. 5 In a first broad aspect, the invention provides a method and apparatus for controlling the phase and frequency of the local clock of a USB device, the apparatus comprising: circuitry for observing USB traffic and decoding from the USB traffic a periodic data structure containing information about frequency and 10 phase of a distributed clock frequency and phase; and circuitry for receiving the periodic data structure and generating from at least the periodic data structure a local clock signal locked in both frequency and phase to the periodic data structure. 15 Thus, the periodic structure acts as a carrier for clock information, without itself constituting the clock frequency information. The clock may either be of the same frequency as the carrier or a different frequency according to any number of additional signals used to modify the carrier signal frequency. 20 Indeed, the local clock signal can be generated with a frequency that is a non integral multiple (including sub-multiple) of that of the periodic structure/carrier signal; this is also the case in other aspects of the invention described below. That is, the local clock signal need not be generated with a frequency that is a fixed multiple of the frequency of the periodic structure/carrier signal, but rather 25 with a frequency that is calculated based on the actual frequency of the periodic structure/carrier signal. For example, if the frequency of the periodic structure/carrier signa is 1.01 kHz, according to the present invention it is possible to synchronize to substantially exactly 10 MHz (rather than to an integral multiple, such as 10.1 MHz). 30 The circuitry for receiving the periodic data structure and generating a local clock signal may also be adapted to receive an information signal (such as from a microcontroller) and to generate the local clock signal from at least the periodic data structure and the information signal. 35 The circuitry for receiving the periodic data structure and generating a local clock signal may include a phase comparator, a controlled oscillator clock 3840245_1 (GHMatters) P63419 AU -11 generator and frequency synthesis circuitry for generating a clock signal of arbitrary frequency. Preferably the periodic data structure comprises a USB Start of Frame (SOF) 5 packet token. In a second broad aspect, the invention provides a synchronized USB for synchronizing a plurality of USB devices, comprising: an external reference clock signal provided to the plurality of USB 10 devices enabling them to each synchronize themselves to the external reference clock signal (and by implication to one another). Thus, according to this aspect, an essentially unlimited number of USB devices can be synchronized, so that the synchronous channel count of a synchronized 15 USB can be increased beyond the present limit of 127 devices (including hubs) imposed by the USB specification. This enables the USBs to each synchronize themselves to that external reference signal. According to this aspect of the invention, there is provided a method of 20 synchronizing a plurality of USB devices, comprising: providing an external reference clock signal to the plurality of USB devices; and the USB devices synchronizing themselves to the external reference clock signal (and by implication to one another). 25 The method may include synchronizing events on a plurality of synchronized USBs. Preferably the method includes communicating information to a further plurality of USB devices on said USB devices such that said further USB devices are triggered to execute commands or functions in real-time and as 30 required by an operator. Thus, according to this method, to extend the number of devices and the physical separation of devices that USB can support in a synchronized system can be extended. USB can currently support 127 devices (including hubs) and 35 with few exceptions is limited to a range of 30 m. In this aspect a GPS or IEEE 1588 signal (for example) can be used as the local timing reference for a plurality of USBs, so an essentially unlimited number of devices may be 3640245_1 (GHMatters) P83419.AU -12 included in the system with no restriction on their locations. Hence, a globally synchronized system may be provided. In a third broad aspect, the invention provides a method for reducing 5 communication latency of a USB (such as for time critical applications, including control applications), comprising: monitoring and decoding upstream USB data traffic associated with the USB; extracting specific information packets from said upstream 10 information; and initiating at least one action according to content of the specific information packets. The specific information packets may be processed by a local processor before 15 being acted upon. In one embodiment, the action includes communicating with one or more other devices (that is, outside the USB environment). This communication may include transmitting data to the other devices. The data may be communicated 20 through any communication channel, including a serial communication channel, a parallel communication channel, a wired communication channel, a fiber optic communication channel, and a wireless communication channel. This aspect also provides a USB with reduced latency, comprising: 25 a USB device with an upstream port; and a data decoder and processor for observing USB data traffic on the upstream port, decoding data structures present in the USB traffic, and initiating at least one action according to content of the data structures. 30 Thus, according to this aspect, a new class of USB control device is possible whereby the usual limitations of latency on the USB are reduced. In a fourth broad aspect, the invention provides a USB device, comprising at least one (and in some embodiments more than one) local clock, wherein the 35 local clock is synchronized to the USB, whereby the local clock can be controlled to an arbitrarily precise frequency and phase. 3840245)1 (GHMatters) P83419.AU -13 The USB device may include a synchronizer for synchronizing the local clock with a carrier signal contained within a USB data stream, wherein accuracy of a local clock frequency and phase is not limited by an accuracy of a USB Host Controller clock. In this (and other embodiments), the carrier signal may 5 comprise USB data OUT tokens, IN tokens, ACK tokens, NAK tokens, STALL tokens, PRE tokens, SOF tokens, DATAO tokens, DATA1 tokens or programmable bit pattern sequences in the USB data packets. In a fifth broad aspect, the invention provides a frequency and phase controlled, io synchronous multichannel USB, comprising: a plurality of USB devices attached to said USB; one or more local clocks on each of said plurality of USB devices; and a synchronizer for synchronizing said local clocks with a carrier signal contained within a USB data stream; is wherein accuracy of local clock frequency and phase is not limited by an accuracy of a USB Host Controller clock, so that said USB devices can be controlled to an arbitrarily precise frequency and phase. In a sixth broad aspect, the invention provides a method of providing a 20 frequency and phase controlled, synchronous multichannel USB, comprising: observing USB traffic at each of a plurality of USB devices; and locking a local clock signal of each of said USB devices to a periodic carrier signal contained within USB data traffic in respect of frequency, of phase, or of both frequency and phase. 25 In a seventh broad aspect, the invention provides a frequency and phase controlled, synchronous multichannel USB, comprising: a synchronized multichannel USB; a plurality of USB devices coupled to said synchronized multichannel 30 USB, each having a local clock with a local clock signal locked or lockable to a periodic carrier signal contained within USB data traffic in respect of frequency, of phase, or of both frequency and phase. In a eighth broad aspect, the invention provides a method of improving the 35 stability of the synchronized local clock of each of a plurality of USB devices, comprising: creating a synchronized clock for each of a plurality of USB devices; 3640245_1 (GHMatters) P83419 AU -14 integrating stochastic effects in a carrier signal over a plurality of cycles of said carrier signal; In a ninth broad aspect, the invention provides a method of determining a clock 5 rate of a USB Host Controller, comprising: monitoring USB data traffic at a device adapted to observe USB traffic; generating a replica signal of said USB data traffic; decoding periodic signal structures from said USB Host Controller; identifying carrier signals within said signal structures; and 10 determining a clock rate of said USB Host Controller from said carrier signals. In a tenth broad aspect, the invention provides a method of synchronizing a plurality of synchronous multichannel USBs, comprising: 15 synchronizing said plurality of synchronous multichannel USBs by reference to a common external frequency reference signal; wherein said common external reference signal is provided by a plurality of synchronous frequency references and time-stamp outputs from a clock distribution device. 20 In a eleventh broad aspect, the invention provides a real-time synchronous multichannel USB, comprising: a synchronized multichannel USB; a plurality of USB devices comprising respective local clocks 25 synchronized to an arbitrary degree; and an absolute time register contained within each of said plurality of USB devices; wherein said absolute time register is clocked by said synchronous local clock. 30 In a twelfth broad aspect, the invention provides a real-time, frequency and phase controlled, synchronous multichannel USB, comprising: a synchronized multichannel USB; and a plurality of USB devices coupled to said synchronized multichannel 35 USB, each having a local clock synchronized to an arbitrary degree and an absolute time register clocked by the respective synchronous local clock. wherein said absolute time registers are synchronized. 3840245.1 (GHMatlers) P63419.AU -15 In a thirteenth broad aspect, the invention provides a method of providing a real-time, frequency and phase controlled, synchronous multichannel USB, comprising: 5 synchronizing a multichannel USB; synchronizing each of a plurality of USB devices attached to said multichannel USB and having synchronized local clocks; providing each of said USB devices with an absolute time register; clocking said absolute time registers by the respective local clock; and 10 synchronizing said plurality of absolute time registers. In a fourteenth broad aspect, the invention provides a method of synchronizing the real-time clocks of a synchronous multichannel USB, comprising: synchronizing local clocks of a plurality of USB devices; 15 synchronizing a local absolute time register in each of said USB devices; and preconfiguring said respective local absolute time register of each of said USB devices with a real time corresponding to a moment of synchronization. 20 In a fifteenth broad aspect, the invention provides a real-time, frequency and phase controlled, synchronous multichannel USB, comprising: a synchronized multichannel USB; and a plurality of synchronized USB devices attached to said multichannel USB, each having synchronized local clocks and an absolute time register; 25 wherein said absolute time registers are clocked by the respective local clock and synchronized. In a sixteenth broad aspect, the invention provides a method of assigning a real time to a synchronized USB bus, comprising: 30 providing an external time event; and providing an external time-stamp that corresponds to said external time event. In a seventeenth broad aspect, the invention provides a synchronized USB for 35 generating an accurate time-stamp of a real-time external event, comprising: a calibrated real time counter register on a USB device attached to said USB; 3640245_1 (GHMatters) P63419.AU -16 an event detector; a data latch; and a data link to a USB system controller. 5 In a eighteenth broad aspect, the invention provides a method of generating an accurate time-stamp of a real-time external event in a synchronized USB, comprising: synchronizing a local clock of a USB device; calibrating a real time counter; 10 detecting said external real-time event; latching the value of said real time counter on detection of said real time event and outputting a corresponding time-stamp; and transferring said time stamp to a USB system controller of said USB. 15 In a nineteenth broad aspect, the invention provides a synchronized USB adapted to generate an accurate time-stamp of a real-time external event, comprising: circuitry adapted to synchronize a local clock of a USB device; circuitry adapted to calibrate a real time counter; 20 a detector for detecting said external real-time event; and a latch for latching the value of said real time counter on detection of said real time event, outputting a corresponding time stamp and directing said time stamp to a USB system controller of said USB. 25 In a twentieth broad aspect, the invention provides a synchronized multichannel USB synchronizable to a synchronized Ethernet, comprising: a USB host system; a plurality of USB devices coupled to said USB host system, each having a local clock and an absolute time register; 30 a synchronization channel for communicating clock frequency and time stamp information with said synchronized Ethernet; and a data channel for data communication with said synchronized Ethernet; wherein the local clocks of the USB devices are synchronized in frequency and phase, the absolute time registers of the USB devices are 35 synchronized and clocked by the respective local clock. The synchronization channel may comprise one or more USB devices attached 3840245_1 (GHMatters) P6341A9AU -17 to the synchronized USB, a compound USB Hub and USB device function, or a device that observes USB data traffic on the synchronized USB but is not an attached member of the synchronized USB. 5 In a twenty-first broad aspect, the invention provides a method for synchronizing a synchronized multichannel USB to a synchronized Ethernet, the USB including a USB host system, the method comprising: synchronizing local clocks of a plurality of USB devices coupled to said USB host system in frequency and phase; 10 synchronizing absolute time registers of said USB devices; clocking said absolute time registers by said respective local clock; and communicating clock frequency and time stamp information between said synchronized USB and said synchronized Ethernet over a synchronization channel. 15 In a twenty-second broad aspect, the invention provides a USB adapted to reduce latency in communication with one or more devices, comprising: monitoring and decoding circuitry for extracting information packets from a USB data stream; 20 processing circuitry for acting on content of said information packets; and interface circuitry for communication with external devices. In a twenty-third broad aspect, the invention provides a method of reducing communication latency between a USB and one or more devices, comprising: 25 monitoring USB data streams at a point in said USB; decoding information from said USB; extracting specific information packets from said USB; replacing specific information packets with other information; and communicating information and instructions with a plurality of external 30 devices. In a twenty-fourth broad aspect, the invention provides a USB adapted to reduce latency in communication with one or more devices, comprising: monitoring and decoding circuitry wherein information packets can be 35 extracted from said USB data streams; 3640245_1 (GMMatters) P63419.AU -18 data multiplexing switch for routing data streams in said USB; control circuitry for controlling said data multiplexing switch; processing circuitry for acting on the contents of said information packets; and s interface circuitry for communication with external devices. It should be noted that any of the various individual features of each of the above aspects of the invention, and any of the various individual features of the embodiments described herein including in the claims, can be combined as 10 suitable and desired. In addition, apparatuses according to the invention can be embodied in various ways. For example, such devices could be constructed in the form of multiple components on a printed circuit or printed wiring board, on a ceramic substrate 15 or at the semiconductor level, that is, as a single silicon (or other semiconductor material) chip. BRIEF DESCRIPTION OF THE DRAWING In order that the present invention may be more clearly ascertained, 20 embodiments will now be described, by way of example, with reference to the accompanying drawing, in which: Figure 1 is a schematic diagram of a background art synchronized USB device; Figure 2 is a schematic diagram of another background art 25 synchronized USB device; Figure 3 is a schematic diagram of the details of background art synchronized USB circuits; Figure 4 is a schematic diagram of a synchronized USB device according to a first embodiment of the present invention; 30 Figure 5 is a schematic diagram of the synchronization channel of the synchronized USB device of figure 4; Figure 6 is a is a schematic diagram of a device for synchronizing a USB according to a second embodiment of the present invention;. Figure 7 is a schematic diagram of the timing measurement 35 circuitry of the USB synchronizing device of figure 6; Figure 8 is a schematic diagram of a USB system according to a third embodiment of the present invention; 3640245_1 (GHMatters) P63419.AU -19 Figure 9 is a schematic diagram of a USB system according to a fourth embodiment of the present invention; Figure 10 is a schematic view of a USB Timing Hub according to a fifth embodiment of the present invention; s Figure 11 is a schematic view of a system for increasing the synchronous channel count of a USB according to a sixth embodiment of the present invention; Figure 12 is a schematic diagram of a synchronized USB according to a seventh embodiment of the present invention; io Figure 13 is a schematic view of a globally synchronized USB according to the embodiment of figure 12; Figure 14 is a schematic diagram of a USB synchronized to an Ethernet according to a eighth embodiment of the present invention. Figure 15 is a schematic diagram of the USB-Ethernet 15 synchronizing circuitry of the USB Timing Hub of the USB of figure 14; Figure 16 is a schematic diagram of a hybrid USB hub according to a ninth embodiment of the present invention that provides a control path that is not subject to the normal USB latency delays ; Figure 17 is a schematic diagram of the USB monitoring circuitry 20 of the Hybrid USB Hub of the synchronized USB of figure 16; Figures 18A, 18B and 18C schematically illustrate the data insertion switch and method used in the USB monitoring circuitry of figure 17 to insert payload data into a USB data stream; Figure 19 is a schematic diagram of a USB with Hybrid USB Host 25 Controller synchronized to an Ethernet according to a tenth embodiment of the present invention; Figure 20 is a schematic diagram of the Hybrid USB Host Controller of the USB of the embodiment of figure 19; Figure 21 is a schematic diagram of a USB device with a notion of 30 real time according to an eleventh embodiment of the present invention; Figure 22 is a schematic diagram of the real time clock circuitry of the USB device of figure 21; Figure 23 is a timing diagram of the USB device of figure 21; and Figure 24 is a schematic diagram of a USB device according to a 35 twelfth embodiment of the present invention that can accurately time stamp external events. 3840245_1 (GHMatters) P03419.AU -20 DETAILED DESCRIPTION OF THE INVENTION A USB device according to a first embodiment of the present invention is shown schematically at 50 in figure 4, with a USB 52. In this embodiment, clock synchronization information to allow the local clock of the USB device 50 to be 5 frequency controlled to an arbitrary degree is passed to the USB device by a carrier signal (described below) that is then decoded from the USB data stream. Referring to figure 4, USB device 50 includes a bus connector 54, digital 1/O bus interface circuitry 56, a microcontroller 58, a digitally controlled transducer 10 60 and synchronization circuitry in the form of synchronizer 62 (described in greater detail below). The digital 1/O bus interface circuitry 56 acts as a transceiver for USB data detected at bus connector 54, passing the USB data to microcontroller 58. The microcontroller 58 provides information 64 to synchronizer 62 for accurate frequency synthesis and a direct control channel 15 66 to digitally controlled transducer 60. The carrier signal referred to above is a periodic data structure and hence usable as a carrier signal; in this and the other embodiments described below it is in the form of the SOF packet token, which provides a periodic low resolution 20 signal of ambiguous frequency that is broadcast to all but Low-Speed devices connected to a given Host Controller. The carrier signal, once decoded from the USB traffic, is combined with a scaling factor to generate synchronization information and hence to synthesize a local clock signal with precise control of the clock frequency. 25 Thus, figure 5 is a detailed schematic diagram of the synchronizer 62 of this embodiment. Synchronizer 62 includes a matched filter 68 to observe USB traffic through bus connector 54, decode the aforementioned periodic carrier signals (in the form, in this embodiment, of SOF packet tokens) and send a 30 clock synchronization signal 70 to local clock synthesis circuitry 72. A frequency-accurate local clock signal 74 is synthesized from the decoded carrier signal (i.e. clock synchronization signal 70), using information signal 76 provided by microcontroller 58. In this embodiment (and typically) local clock 35 signal 74 has a frequency several orders of magnitude higher than has clock synchronization signal 70 and is divided down by a frequency divider 78 to a divided signal 80 of frequency closer to that of clock synchronization signal 70. 3640245_1 (GHMatters) P83419 AU -21 Local clock synthesis circuitry 72 manipulates its input signals (i.e. clock synchronization signal 70 and divided signal 80) according to information signal 76 provided by microcontroller 58. The resulting two output signals 82 and 84 5 are passed to a phase comparator 86. The phase comparator 86 is coupled via a filter 88 to a controlled oscillator clock generator 90. Accurate local clock signal 74 is then used as clock signal for trigger circuitry to generate a phase accurate trigger signal 92. Synchronizer 62 includes a further 10 matched filter 94 that also decodes USB data received through the USB bus connector 54 and produces a trigger enable signal 96 upon detection of the required trigger signal from the USB data stream. The trigger enable signal 96 is passed to a data latch 98, which uses the local frequency accurate clock signal 74 to clock the trigger enable signal 96 through to form phase accurate 15 trigger signal 92. According to this embodiment, therefore, it is possible to produce a clock signal stable to arbitrarily high frequencies, such as a clock frequency of tens of megahertz with stochastic jitter as low as a few nanoseconds or less, and with 20 arbitrarily high frequency accuracy. As discussed above, the SOF packet broadcast occurs at a nominal frequency of 1 kHz but the actual frequency of this signal is determined by the accuracy of the USB Host Controller clock. A USB device 100 according to a second 25 embodiment of the invention employs a method for determining the effective clock rate of the USB Host Controller by accurately measuring the frequency of the SOF packet. This signal can then be considered a carrier for information about the Host Controller clock rate and the carrier signal is broadcast to all connected USB devices. The carrier signal embedded in the normal USB 30 protocol is thus decoded and its frequency measured to determine the effective clock rate of the USB Host Controller clock. Thus, figure 6 is a schematic diagram of a device 100 for synchronizing a USB according to a second embodiment of the invention, which includes a USB bus 35 connector 102 for connection to a USB. Device 100 has a first connector 104 for receiving an external reference clock signal, and a second connector 106 for receiving an external reference time-stamp signal, by mean of which device 100 3040245_1 (GHMatter) P63419.AU -22 measures the frequency of the SOF packet signal (or carrier signal). Device 100 includes USB monitoring circuitry 108 to observe the USB data stream, a microcontroller 110, timing measurement circuitry 112 and information bus 114 (incorporating an analog and/or a digital bus) for communication between 5 microcontroller 110 and timing measurement circuitry 112. Although device 100 determines the SOF packet carrier signal frequency and by implication the USB Host Controller frequency, and can pass information about the frequency back to a microcontroller and indeed back to a host PC, it 1o will be apparent to those skilled in the art that this approach may also be used with non-USB devices. For example, this approach may be used in a device that merely detects and decodes a USB data stream but is not a USB device. Although device 100 determines the SOF packet carrier signal frequency, it will 15 be apparent to those skilled in the art that both the connector for receiving external reference clock signal 104 and the connector for receiving external reference time-stamp signal 106 can be bidirectional ports. Such bidirectional ports can transmit or receive clock and data signals (including time-stamp information) to or from an external device. It will also be apparent to those 20 skilled in the art that such signals can be used for controlling external devices. Figure 7 is a more detailed schematic diagram of the timing measurement circuitry 112. Timing measurement circuitry 112 includes a matched filter 116 for decoding the carrier synchronization signal in the USB data stream to output 25 a decoded carrier signal 118, and frequency measurement circuitry 120 that compares decoded carrier signal 118 with a local reference signal 122. The frequency measurement circuitry 120 produces clock accuracy information signal 124 indicative of the absolute clock accuracy of the carrier signal and hence indicative of the clock rate of the USB Host Controller. (This clock 30 accuracy information signal 124 is passed through information bus 114 of figure 6.) Local reference signal 122 is provided by multiplexer 126, which selects either local reference clock signal 128, generated by local reference clock 130, or an external reference signal 132 (provided by first connector 104), as controlled by microcontroller 110 through information bus 114. 35 The decoded carrier signal 118 is also used by time-stamp latch 134, which time stamps a data signal 136 received from external time-stamp second 3840245_ 1 (GHMatters) P83419 AU -23 connector 106, and output at 138 to information bus 114. In this way, absolute time-stamp information from an external source can be synchronized to the reception of the carrier signal. 5 Figure 8 is a schematic diagram of a USB system 140 according to a third embodiment of the present invention, in which a personal computer 142 with a USB Host Controller 144 is attached to a single USB device 146 at a USB 148. The USB device 144 contains timing measurement circuitry 150 (as per timing measurement circuitry 112 of figure 7) to measure repetitive carrier signal 1o frequency using an internal reference clock (comparable to local reference clock 130 of figure 7) to an arbitrary degree. Thus, in this embodiment the absolute frequency of the clock carrier signal of the USB Host Controller 144 is determined by means of circuitry (i.e. the timing measurement circuitry 150) contained solely within a USB device. Further, it will be apparent to those 15 skilled in the art that, although this embodiment includes a personal computer, alternative similar embodiments may instead include any device, such as a personal digital assistant (PDA) or mobile communication device, that contains a USB host controller or USB on-the-go controller.. 20 Figure 9 is a schematic diagram of a USB system 160 according to a fourth embodiment of the present invention, in which personal computer 162 with a USB Host Controller 164 is attached to a USB hub 166 at a USB 168. USB Hub 168 provides connectivity to a plurality of USB devices 170, each of which contains timing measurement circuitry (comparable to timing measurement 25 circuitry 150 of USB system 140) to measure repetitive carrier signal frequency using an internal reference clock (comparable to local reference clock 130 of figure 7). Each of the USB devices 170 measures carrier signal frequency with some finite error. As the error is essentially random, statistical analysis is used to analyse measurements from the USB devices 170 and thereby reduce the 30 overall uncertainty in measurement of the carrier signal frequency. Thus, in this embodiment, the absolute frequency of the clock carrier signal frequency of USB Host Controller 164 is determined to a greater accuracy than would be achievable with a single USB device. 35 Figure 10 is a schematic representation of a USB Timing Hub 180 according to a fifth embodiment of the present invention. The USB Timing Hub 180 has an 340245_1 (GHMatters) P63419 AU -24 upstream port 182 for connection to a Host Controller (or intermediate upstream device between USB Timing Hub 180 and a Host Controller), a plurality of downstream ports 184 (that provide USB expansion), an external reference clock input port 186, and an external reference time-stamp input port 188. 5 USB upstream port 182 is connected to USB Hub circuitry 190 that provides USB expansion to the plurality of downstream USB ports 184; one of the downstream USB ports 184 is directed to an internal USB device 192. Internal USB device 192 is connected to timing measurement circuitry 194 (comparable 10 to timing measurement circuitry 112 of figure 6) via a communication bus 196. The timing measurement circuitry 194 contains an internal local reference clock (comparable to local reference clock 130 of figure 7) and also receives information from both external reference clock input port 186 and external time stamp input port 188. The timing measurement circuitry 194 also observes is USB data traffic on the upstream port 182 with USB monitoring circuitry 198 and uses this signal 199 to decode the USB Host Controller clock carrier signal for measurement of the carrier signal frequency. Thus, USB Timing Hub 180 contains both circuitry 194 (of the type described by 2o reference to figure 7) to determine the absolute clock rate of a USB Host Controller and normal USB Hub circuitry 190. Such a hybrid device provides both USB Host Controller clock carrier signal frequency information and expansion of the USB. 25 According to a sixth embodiment of the present invention, the synchronous channel count of a USB system can be extended beyond that allowed by the USB specification (which is currently 127 devices including hubs). This embodiment allows a plurality of discrete USBs to be synchronized by delivering a common external reference clock signal to each of the USBs. The 30 common reference clock signal is then used to measure the USB Host Controller clock carrier signal of each of the USBs and subsequently to use that information to synthesise a known frequency on the local clocks on each USB device connected to any of the USBs to an essentially arbitrary degree. 35 Thus, figure 11 is a schematic view of a system 200 according to a sixth embodiment for increasing the synchronous channel count of a USB, in which a plurality of synchronized USBs are synchronized to an arbitrary degree. The 3640245_1 (OHMatters) PS3419 AU -25 system 200 includes a plurality of personal computers 202, each containing a USB Host Controller 204. Each personal computer 202 is connected to a hybrid USB Timing Hub 206 (of the type described and illustrated at 180 to figure 10); each USB Timing Hub 206 provides a plurality of synchronized 5 USBs 208 to allow expansion to a plurality of USB devices 210. An external reference clock 212 provides a signal to the synchronized USBs 208 by means of the USB Timing Hubs 206. In an alternative arrangement, system 200 omits the USB Timing Hubs 206, and the USB devices are configured to receive the external reference clock signal directly. However the use of the USB Timing 1o Hubs 206 are preferred. According to a seventh embodiment of the present invention, a synchronized USB is provided with an external reference clock signal that is frequency accurate and time-stamp accurate to an arbitrary degree. These signals allow 15 the USB to be synchronized to an arbitrary accuracy. This embodiment uses an external Global Positioning System (GPS) Time Server as the external synchronization reference. The GPS Time Server reference clock signal is delivered by means of satellite communication. Furthermore, the GPS Time Server can deliver absolute time-stamp information accurate to an arbitrary 20 degree, regardless of position, essentially anywhere. Thus, figure 12 is a schematic diagram of a system 220 in which a USB 222 is synchronized to a GPS Time Server 224. System 220 includes a personal computer 226 containing a USB Host Controller 228, connected to synchronous 25 USB 222, where synchronous clock frequency is accurate to an arbitrary degree. USB port 230 of personal computer 226 connects to USB Timing Hub 232, which provides downstream expansion ports 234 for the attachment of 30 additional USB devices 236. USB Timing Hub 232 (of the type described and illustrated at 180 to figure 10) also has ports 238, 240 for receiving, respectively, a reference clock signal 242 and time-stamp information 244 from GPS Time Server 224. The GPS Timer Server 224 is connected to an antenna 246 for receiving GPS time and position information. 35 It will be appreciated that other means for providing a globally synchronized external reference clock and time signal may be employed in this embodiment, 3640245_1 (GHMatlers) P63419.AU - 26 without departing from the scope of the invention. Figure 13 is accordingly a schematic representation of a USB 250 globally synchronized according to this embodiment. Globally synchronized USB 250 5 comprises a plurality of USBs located at different locations 252; each is of the type shown at 222 in figure 12, so each is synchronized by a separate GPS Time Server. The plurality of GPS Time Servers provide reference clock signals that are frequency locked to an essentially arbitrary degree by means of satellite communication. Furthermore, the plurality of GPS Time Servers each 10 deliver absolute time-stamp information to their respective USB Timing Hub accurate to an arbitrary degree, regardless of position, anywhere on earth. Thus, a plurality of otherwise independent USBs are synchronized. Such a system is capable of accurate synchronization anywhere on earth for a widely 15 distributed synchronous USB. This also has the capability of unlimited channel count by adding as many synchronized USBs (222 of figure 12) as desired. According to a eighth embodiment of the present invention, a synchronized USB can be synchronized to a synchronized Ethernet (that is, a network that is 20 in internal data communication according to the Ethernet protocol). In this embodiment, the synchronized USB is provided with an external signal from a synchronized Ethernet that contains timing information according to IEEE-1 588 Precision Time Protocol. Said external signal contains both an Ethernet communication pathway and a Precision Time Protocol pathway. In this way, 25 both data and timing information can be communicated between USB and Ethernet systems. Thus, figure 14 is a schematic diagram 260 of a USB 262 synchronized to Ethernet 264. The synchronized Ethernet 264 contains a plurality of devices 30 266 to be synchronized and an Ethernet Boundary Clock 268. The Boundary Clock 268 performs Ethernet connectivity between devices as well as compensating for latency and timing jitter present in traditional Ethernet switches and routers. The synchronized USB 262 includes a personal computer 270 with a USB Host Controller 272 and, connected to Host 35 Controller 272, a hybrid USB Timing Hub 274. USB Timing Hub 274 provides connectivity expansion to a plurality of USB devices 276. USB Timing Hub 274 includes an IEEE-1 588 compatible port 278 for communication of data and 3840245_1 (GHMatters) P63419.AU -27 timing information 280 to synchronous Ethernet 264. The IEEE-1 588 Precision Time Protocol contains a protocol for determining which node of a network is the time-base master. It will be apparent to those 5 skilled in the art that any node (viz. device 266) of the synchronous Ethernet 264 or the synchronous USB 262 can be the time-base master clock depending on the absolute accuracy of all device clocks. Figure 15 is a detailed schematic diagram of USB Timing Hub 274 of USB 262 10 of figure 14. The hybrid USB Timing Hub 274 has an upstream port 292 for connection to Host Controller 272 (or an intermediate upstream device between USB Timing Hub 274 and Host Controller 272), a plurality of downstream ports 294 (that provide USB expansion) and external port 278 for connectivity to the synchronous Ethernet. 15 USB Timing Hub 274 includes USB Hub circuitry 298, to which USB upstream port 292 is connected, that provides USB expansion to the plurality of downstream USB ports 294; one of the downstream USB ports 294 is directed to an internal USB device 300. Internal USB device 300 is connected to timing 20 measurement circuitry 302 (comparable to timing measurement circuitry 112 of figure 6) via a communication bus 304. Timing measurement circuitry 302 also observes USB data traffic on the upstream port 292 by means of USB monitoring circuitry 306, and uses the 25 signal 308 therefrom to decode the USB Host Controller clock carrier signal for measurement of the carrier signal frequency. Timing measurement circuitry 302 contains an internal local reference clock (comparable to local reference clock 130 of figure 7) and also receives or transmits information to an additional local clock 310 through clock control channel 312. In this way, either the local 30 clock 310 or a clock in the form of timing measurement circuitry 302 can be the local master clock for use determining the carrier signal frequency. USB Timing Hub 274 includes a synchronous Ethernet controller 314 to which is connected external port 278 and which provides external Ethernet 35 connectivity and supports IEEE-1588 Precision Time Protocol. Synchronous Ethernet controller 314 has a data channel 316 for communication of data between the external Ethernet (shown at 264 in figure 14) and internal USB 38402451 (GHMatters) P63419.AU -28 device 300. In this way data is transferred from the external synchronous Ethernet 264 via synchronous Ethernet controller 314 and internal USB device 300 the personal computer (270 of figure 14). 5 Synchronous Ethernet controller 314 also contains a synchronization channel 318 through which local clock 310 can be synchronized to external Ethernet 264. In this way timing information is passed between synchronous Ethernet controller 314 and local clock 310, thereby effecting a hybrid synchronized USB/Ethernet system using the best of both interfaces: Ethernet provides wide io ranging connectivity but limited synchronization capabilities, while USB provides a local precision synchronization network. According to a ninth embodiment of the present invention, a USB is provided that provides a control path that is not subject to the normal latency delays of 15 USB (such as the 30 ms time frame implied by the typically 30 ms thread cycle time of the Windows (trade mark) operating system). Thus, figure 16 is a schematic diagram of a hybrid USB hub 330 according to this embodiment that provides an additional data pathway for reducing USB control loop latency. USB hub 330 has an upstream port 332 for connection to a Host Controller (or 20 intermediate upstream device between Hybrid USB Hub 330 and a Host Controller), a plurality of downstream ports 334 (that provide USB expansion) and an external control port 336 for connectivity to external interfaces, equipment or transducers. 25 USB hub 330 also has USB Hub circuitry 338 (connected to Upstream port 332) that provides USB expansion to the plurality of downstream USB ports 334, and an internal USB device 340 to which is directed one of the downstream USB ports 334. USB hub 330 includes an internal USB device 340 and a Data Decoder and Processor 342, mutually connected by a communication bus 344. 30 Data Decoder and Processor 342 observes USB data traffic on the upstream port 302 with USB monitoring circuitry 346 and uses the resulting signal 348 to decode USB communications. Communication between Data Decoder and Processor 342 and external control port 336 is controlled by an Interface 350. 35 Interface 350 can be an Ethernet interface, a serial communication interface (such as a SPI (Serial Peripheral Interface) bus, a CAN Controller Area Network, a ProfiBus, aProcess Field Bus or a USB (including USB-on-the-go), a 36402451 (GHMatters) P63419.AU - 29 parallel communication interface (such as a Centronics (trade mark) Parallel Port or an IDE (Integrated Drive Electronics) bus). Furthermore, external control port 336 can provide either single-ended or differential signalling, and can be adapted to any desired form of connectivity, whether copper cabling, 5 fibre-optical cabling, wireless communication channels or otherwise. In this way, data that is being transmitted between a Host Controller and any USB device attached to downstream ports 334 can be intercepted and interpreted in USB hub 330 and used to immediately control an external device 10 through the external control port 336. This circumvents the normal communication and control loop latency of USB. It will be apparent to those skilled in the art that, although various embodiments of the present invention described herein include a hybrid USB Hub, these 15 techniques need not be employed in a USB hub, but may in fact be used in any device that is at least attached to a USB for the purpose of detecting USB data flows and acting on the information contained therein. Thus according to a variation of the ninth embodiment of the present invention, 20 there is provided a system with a hybrid USB hub (comparable to USB hub 330 of figure 16) with an additional data pathway that allows control loop responses to be reduced to an arbitrarily short time. Figure 17 is a schematic diagram of USB monitoring circuitry 360 (comparable to USB monitoring circuitry 346 of USB hub 330 figure 16); USB monitoring circuitry 360 has an upstream port 25 362 for connection to the Host Controller side of the bus, a downstream port 364 for connection to the device side of the bus, a USB data monitoring port 366 for transmission of a replica of the USB data stream present at the USB upstream port 362, a data switch control port 368 for controlling internal data pathways inside the circuit, a bidirectional data port 370 and buffering circuitry 30 372. Buffering circuitry 372 observes USB data signal 374 (which comprises bidirectional communications between the Host Controller and attached devices) and provides a buffered replica signal 376 thereof. Replica signal 376 is an exact copy of the bidirectional communication present on the USB, is transmitted on the USB data monitoring port 366 and is typically comparable to 35 signal 308 of figure 15. Thus, USB monitoring circuitry 360 is able to monitor all USB data packets and 384024_1 (GHMatters) P63419.AU -30 provide a buffered replica signal 376 of USB data signal 374 for use by external circuitry. Buffered replica signal 376 can be used by external circuitry for decoding periodic signal structures from the Host Controller within USB data to identify carrier signals which contain information about the clock rate of the 5 USB Host Controller. Buffered replica signal 376 can also be used to decode information from all downstream USB devices as it passes upstream toward the Host Controller. In this way, direct action can be taken on the information from downstream devices without first requiring the Host Controller and associated operating system to process and act on the data. 10 USB monitoring circuitry 360 also includes additional circuitry for advanced data management, switching and reducing USB control loop latency, including a USB data switch 378 (shown as a pair of simple single pole switches in figure 17 for simplicity, though in reality USB data signals are differential) and data 15 controller circuitry 380 for controlling USB data switch 378. USB data switch 378 contains an upstream switch 382 and a downstream switch 384, and is configured to synchronously direct USB data signal 374 from upstream port 362 either directly to the downstream port 364 (the configuration shown in figure 17) or utilising a bidirectional data stream 386 from external circuitry via 2o bidirectional data port 370. USB data switch 378 has access to buffered replica signal 376, and data controller circuitry 380 is configured by data switch control port 368. In this way, USB data switch 378 can be switched synchronously with the USB data signal as monitored at 374. 25 USB monitoring circuitry 360 is also able to dynamically configure itself to insert data within a USB data stream. A message from the Host Controller to a device may be intercepted and altered by USB monitoring circuitry. In this way, software can be configured to provide regular polling of a particular USB device with a known data packet size. USB monitoring circuitry, having access to the 30 size of a specified regularly polled packet, can insert data within the payload of a transaction by synchronously bypassing the direct connection (viz. the configuration of USB data switch 378 shown in figure 17) and inserting data into the payload field of the transaction. 35 Figure 18A depicts the configuration of USB data switch 378 of figure 17 for downstream insertion of payload data 388 at 378'; figure 18B depicts the configuration of USB data switch 378 of figure 17 for upstream insertion of 38402451 (GHMatters) P63419.AU -31 payload data 390 at 378". During downstream insertion of data the switch must initially be configured as shown at 378 in figure 17 while the host transmits the transaction packet header information, but switch to configuration 378' of figure 18A for insertion of the payload and CRC data 388. For upstream insertion of s data, the device waits until it detects the polling request from the Host Controller before switching to configuration 378" of figure 18B for transmission of the entire upstream transaction (including header). It should be noted that the device may alternatively wait for the upstream transaction packet header pass upstream before switching to configuration 378" of figure 18B and 10 inserting the payload data 390. Figure 18C is a schematic timing diagram for downstream data insertion (upper portion of the figure) and the upstream data insertion (lower portion of the figure), indicating the configuration of the USB data switch. 15 According to a tenth embodiment of the present invention, there is provided a Hybrid USB Host Controller that is synchronized to a synchronized Ethernet, to ensure that the attached synchronized USB is also synchronized to the synchronized Ethernet. The Hybrid USB Host Controller is provided with an 20 external signal from a synchronized Ethernet that contains timing information according to IEEE-1588 Precision Time Protocol. The external signal contains both an Ethernet communication pathway and a Precision Time Protocol pathway. In this way, both data and timing information can be communicated between Hybrid USB Host Controller and Ethernet systems. 25 In this embodiment, the Hybrid USB Host Controller contains an embedded microcontroller so that it is a stand-alone device that is not dependent on a host personal computer. The Hybrid USB Host Controller may contain a standard USB Host controller, a USB-on-the-go Host Controller, a wireless USB Host 30 Controller or any other form of USB Host Controller. Figure 19 is a schematic diagram of a system 400 according to this embodiment, comprising stand-alone USB 402 (that is, one containing an embedded controller that does not require attachment to a personal computer) 35 and an Ethernet 404, synchronized to each other. The Ethernet 404 typically contains an Ethernet Boundary Clock 406 and a plurality of devices to be synchronized 408. Boundary Clock 406 performs Ethernet connectivity 3840245_1 (GHMatters) P63419.AU - 32 between devices as well as compensating for latency and timing jitter present in traditional Ethernet switches and routers. USB 402 consists of a Hybrid USB Host Controller 410 and a plurality of USB devices (or USB Hubs for further expansion) 412. 5 In this embodiment, Hybrid USB Controller 410 contains an embedded USB Hub functionality providing a plurality of downstream expansion ports. Hybrid USB Controller 410 also includes an IEEE-1588 compatible port 414 for communication of data and timing information 416 to Ethernet 404. 10 Figure 20 is a more detailed schematic diagram of Hybrid USB Host Controller 410 of figure 19. Hybrid USB Host Controller 470 has a plurality of downstream ports 472 (that provide USB expansion), an embedded controller 474, USB Hub circuitry 478 and USB master clock circuitry 480. Controller 474 has an 15 embedded microcontroller 482, external interface circuitry 484 and a USB Host Controller 486. USB Host Controller 486 is connected to USB Hub circuitry 478 that provides USB expansion to the plurality of downstream USB ports 472 and USB master clock circuitry 480 through a clock bus 488. 20 USB master clock circuitry 480 contains an internal local reference clock 490 and also receives or transmits information to an additional local clock 492 (also a part of Hybrid USB Host Controller 410, and in the form of a synchronous Ethernet IEEE-1588 clock) through a clock control channel 494. Hybrid USB Host Controller 410 further includes a synchronous Ethernet controller 496, to 25 which external port 414 is connected and which provides external Ethernet connectivity and supports IEEE-1588 Precision Time Protocol. Synchronous Ethernet controller 496 has a data channel 498 for communication of data between the external Ethernet and external interface circuitry 484 of embedded controller 474. A bidirectional data link is therefore provided between the 30 external synchronous Ethernet and the synchronized USB through synchronous Ethernet controller 496 and the embedded controller 474. Synchronous Ethernet controller 496 also has a clock control channel 500 for communicating with synchronous Ethernet clock 492. IEEE-1588 clock 492 35 may be either the bus master if it is more accurate than the clocks of other attached IEEE-1 588 clocks or a slave clock that is slaved to a more accurate attached IEEE-1 588 clock. Hybrid USB Host Controller 410 includes a control 3640245_1 (GHMatters) P63419.AU -33 channel 502 between external interface circuitry 484 of embedded controller 474 and USB master clock circuitry 480 enabling the embedded controller 474 to control clock signals. In a similar way either the local reference clock 490 or the IEEE-1588 clock 492 acts as the system master clock, according to which is 5 the more accurate. USB Host Controller 486 uses the clock signal from clock bus 488 as its master timing reference. This clock signal can be precisely tuned in USB master clock circuitry 480 to provide a frequency accurate time reference to arbitrary 10 precision for synchronous USB control. Accordingly, the frequency of a periodic signal structure (such as a Start of Frame token) in the USB data stream can be accurately controlled, resulting in a synchronized USB with precisely controlled timing. In this way a hybrid synchronized USB/Ethernet system is achieved without requiring a personal computer. It will be apparent, 15 in addition, that latency can be improved in this arrangement according to the approach described in the context of the embodiments of figures 16 and 17. A USB device according to an eleventh embodiment of the present invention is shown schematically with a USB at 510 in figure 21. In this embodiment, the 20 synchronized USB device might be said to have some notion of (or data indicative of) real time. This notion or data of time is derived from USB bus transactions, the USB data stream and information received from the host system. Such a notion of real time is shared by all devices attached to the same USB. 25 Referring to figure 21, therefore, USB device 520 includes a bus connector 522 for connecting to USB 524, digital 1/O bus interface circuitry 526, a microcontroller 528, a digitally controlled transducer 530, synchronization circuitry in the form of synchronizer 532 (comparable to synchronizer circuitry 30 62 of figure 5) and real time clock 534. The digital 1/O bus interface circuitry 526 acts as a transceiver for USB data detected at bus connector 524, and passes the USB data to microcontroller 528. The microcontroller 528 is provided with an information channel 536 to synchronizer 532 and a direct control channel 538 to digitally controlled transducer 530. 35 USB device 520 has circuitry 540 at USB connector 522 that detects USB data traffic on USB 524 , and generates and passes a replica 542 of the USB data 304024_1 (GHMatters) P83419AU - 34 traffic to synchronizer 532. Synchronizer 532 (which is comparable to synchronizer 46 of figure 4) generates a local clock signal 544 that is frequency and phase controlled to an arbitrary precision, and will be synchronous with those of any similar USB devices attached to the same USB 524. Local clock 5 signal 544 is passed to both the digitally controlled transducer 530 to control its operation and to real time clock 534. Real time clock 534 can be synchronized to an absolute time and then clocked by local clock signal 544. In this way, a plurality of USB devices can operate 10 sharing a common notion of real time each being clocked by a synchronous local clock. Synchronization of the real time clock 534 is initiated by a command from the host personal computer; this command is interpreted by microcontroller 528 and transferred to both synchronizer 532 (via information channel 536) and real time clock 534 through another information channel 546. 15 Synchronizer 532 then acts to synchronize real time clock 534 through a real time synchronizing channel 548. In this way, the real time clock can be synchronized to a known time. Real time clock 534 can then deliver real time trigger signals 550 (which may also include a time stamp from the real time clock) to control the operation of digitally controlled transducer 530 such that it 20 performs actions at specified time. Figure 22 is a detailed schematic diagram of the real time clock 534 of USB device 520 of this embodiment. Real time clock 534 has a control port 558 for communication with microcontroller 528 (see figure 21), a synchronous clock 25 input port 560 for receiving synchronous clock signals 544 from synchronizer 532 (see figure 21), a synchronizing port 562 for receiving synchronizing signals on synchronizing channel 546 (see figure 21), an output port 564 and an input event/timestamp port 566. 30 Control port 558 receives information signals which are decoded by interface 568 to provide a data signal 570 that contains the absolute time value, which is loaded into a temporary register 572 (for subsequent synchronous latching into real time clock counter 574), a data latch signal 576 for latching data signal 570 into the real time clock counter 574, a counter enable signal 578 for enabling 35 the real time clock counter 574, and another data signal 580 to be loaded into a counter comparator 582. 3840245_1 (GHMatters) P03419 AU -35 Real time clock counter 574 also receives a synchronous clock signal 584 from synchronous clock input port 560, which is used to increment the real time clock counter 574, and a resynchronize signal 586 from synchronizing port 562, which can be used to synchronously clear the real time clock counter 574. The 5 resynchronize signal 586 is generated from synchronizer 532 such that it occurs synchronously with a start of frame (SOF) token in the USB (or more precisely, synchronously with a synthetic SOF). This synchronizing synthetic SOF token frame number is known to the host controller (which keeps track of rollover of this number since the host began) and can therefore synchronize the 10 device (or a plurality of similar devices) at the same point in time. Furthermore, the host maintains knowledge of the rollover of this synthetic SOF token number and of the absolute timestamp of the real time clock counter 574, so USB devices need not be synchronized at the same point in time. Once a single USB device has been synchronized to real time according to this is technique, the host can calculate the real time at any future synthetic SOF frame token. This allows any number of devices to be synchronized in a sequential manner. In this way, real time clock counter 574 can either be synchronously loaded with 20 a known 'real time' by microcontroller 528 (see figure 21) and time counting initiated by resynchronizing signal 586, or synchronously cleared by resynchronizing signal 586 with the counter incremented in both cases by synchronous clock signal 584. The system controller (such as a personal computer) then determines how the notion of time is represented by the real 25 time clock counter 574. The real time value 588 (a data signal) is clocked out of real time counter 574 on each cycle of synchronous clock signal 584 to interface 590 which provides signals for external circuitry through output port 564. Furthermore, real time 30 clock 534 can be configured to provide a trigger signal 592 by comparing the instantaneous real time value 588 with a data signal that has previously been latched into counter comparator 582. Trigger signal 592 is then passed to output interface 590 for transmission to external circuitry. 35 Interface 590 also receives external signals from an event with associated timestamp data from external event/timestamp port 566. This data 592 is passed to real time clock counter circuitry 574 for calibration and setting of real 3040245_1 (GHMatter) P03419.AU - 36 time of the local clock contained therein. It should be noted that this notion of real time can be shared by a plurality of synchronized USBs, such as according to the approach employed in system 5 220 of figure 12 or those embodiments described above that conform to IEEE 1588. Furthermore, synchronous clock signal 584 and resynchronizing signal 586 are synchronous with carrier signals (as described above in the context of USB io device 50 of figure 4). Thus, it is possible to determine the real time of the reception of these carrier signals and hence set the real time of real time clock counter 574 of figure 22. Figure 23 is a timing diagram 600 of the USB device 520 of figure 21. External 15 event 602 of known real time can be used to start a local counter 604, which is clocked from the synchronous clock signal 606 (derived from synchronizer circuitry 62 of figure 4), and the real time 608 of external event 602 is latched into the device. Reception of the next decoded carrier signal 610 (synthetic start of frame) token stops local counter 604 and latches the number 612 of the 20 frame token. The host controller can then determine the real time of latched frame token number 612 using the time elapsed of local counter 604 (time At between the event and the start of frame token). In this way, an external event of known real time at event/timestamp port 566 25 can be used to determine the real time of the arrival of local carrier signal and hence set (or calibrate) the real time of a USB device 520. Real time determined by this method is latched into real time clock counter (574 of figure 22) at 614. Such an externally derived real time event and time stamp may be generated by a known frequency and time reference, such as a precision 30 Caesium clock, a GPS time server that is locked to a global positioning satellite system or an IEEE-1588 precision time protocol device. In the absence of an external precision time stamped reference event 602, the host personal computer can assign its own notion of time (from its internal, 35 inaccurate real time clock) to the synchronous USB. This method merely assigns the personal computer's notion of time to a given carrier frame number as the reference time for use by the real time clock counter. From that time 364024_1 (GHMatters) P63419 AU - 37 forward, the synchronous USB has highly precise relative accuracy (as defined by its real time clock counter circuitry) but with an offset from absolute time determined by the initial error of the host personal computer's real time clock. 5 By extension, using multiple external events of known time, the carrier signal frequency can be determined to an arbitrary degree, using the approach employed in device 100 of figure 6. This is a method of generating a time stamp of an external event, relative to a known carrier signal number. 10 It should be noted that this approach can be implemented in a hub or a USB device, or in a device attached to the USB. It can also be implemented once or in multiple devices to improve accuracy by statistical means. A USB device according to a twelfth embodiment of the present invention is is shown schematically at 630 in figure 24. In this embodiment, the synchronized USB device 630 can time stamp external events according to its own notion of time, which has either been calibrated by its own real time clock or by an externally provided real time clock and time stamp. 20 The USB device 630 has an upstream port 632 for connection to a Host Controller (or intermediate upstream device between USB device 630 and such a host controller), an external trigger port 634 and a data port 636 for communication of time stamp information. USB device 630 also includes digital I/O bus interface circuitry 638, microcontroller 640 and synchronizing time 25 stamp circuitry 642. Time stamp circuitry 642 includes synchronizing circuitry 646 (comparable to timing measurement circuitry 302 of figure 15) that observes USB data traffic on the upstream port 632 by means of USB monitoring circuitry 644 to synchronize a local clock using the carrier signal contained in decoded USB data stream signal 650 and real time clock circuitry 30 648 (comparable to real time clock 534 of figure 22). External event signals (otherwise known as external triggers) connected to external trigger port 634 and time stamp information present on data port 636 are passed to time stamp circuitry 642 for processing. In this way, external 35 events (triggers) and associated time stamps can be passed to the device and correlated with a synchronized local clock contained in synchronizing circuitry 646. 3840245_1 (GHMatters) P63419.AU - 38 Hence, once real time clock circuitry has been calibrated (such as by latching real time into real time clock counter 574 of figure 22), all external events can be time stamped according to real time clock counter 574. 5 Modifications within the scope of the invention may be readily effected by those skilled in the art. It is to be understood, therefore, that this invention is not limited to the particular embodiments described by way of example hereinabove and that combinations of the various embodiments described herein are readily 10 apparent to those skilled in the art. In the preceding description of the invention, except where the context requires otherwise owing to express language or necessary implication, the words "Host Controller" may be used to specify a standard USB Host controller, a USB-on is the-go Host Controller, a wireless USB Host Controller or any other form of USB Host Controller. In the claims that follow and in the preceding description of the invention, except where the context requires otherwise owing to express language or 20 necessary implication, the word "comprise" or variations such as "comprises" or "comprising" is used in an inclusive sense, that is, to specify the presence of the stated features but not to preclude the presence or addition of further features in various embodiments of the invention. 25 Further, any reference herein to prior art is not intended to imply that such prior art forms or formed a part of the common general knowledge. 3840245_ (GHMatters) P83419.AU

Claims (30)

1. An apparatus for controlling the phase and frequency of the local clock of a USB device, comprising: 5 circuitry for observing USB traffic and decoding from said USB traffic a periodic data structure containing information about frequency and phase of a distributed clock; and circuitry for receiving said periodic data structure and generating from at least the periodic data structure a local clock signal locked in both frequency 10 and phase to said periodic data structure.
2. An apparatus as claimed in claim 1, wherein said circuitry for receiving said periodic data structure and generating said local clock signal is further adapted to receive an information signal and to generate said local clock signal from at i5 least said periodic data structure and said information signal.
3. An apparatus as claimed in claim 1, wherein said circuitry for receiving said periodic data structure and generating said local clock signal can generate said local clock signal with a frequency that is a non-integral multiple of a frequency 20 of said periodic data structure.
4. An apparatus as claimed in claim 1, wherein said circuitry for receiving said periodic data structure and generating said local clock signal includes a phase comparator, a controlled oscillator clock generator and frequency synthesis 25 circuitry for generating a clock signal of arbitrary frequency.
5. An apparatus as claimed in claim 1, wherein said periodic data structure comprises a USB Start of Frame (SOF) packet token. 30
6. A method for controlling the phase and frequency of the local clock of a USB device, comprising: observing USB traffic; decoding from said USB traffic a periodic data structure containing information about frequency and phase of a distributed clock; and 35 generating from at least said periodic data structure a local clock signal locked in both frequency and phase to the periodic data structure. 3640245_1 (GHMafters) P83419.AU -40
7. A method as claimed in claim 6, including generating said local clock signal from at least said periodic data structure and said information signal.
8. A method as claimed in claim 6, including generating said local clock signal 5 with a frequency that is a non-integral multiple of a frequency of said periodic data structure.
9. A method for generating a local clock signal, comprising: measuring a frequency of a periodic data structure in a USB data stream. 10
10. A method as claimed in claim 9, further comprising determining a clock rate of a USB host controller from said frequency of said periodic data structure.
11. A method as claimed in claim 9, including generating said local clock signal 1 with a frequency that is different from said frequency of said periodic data structure.
12. A method as claimed in claim 9, including generating said local clock signal with a frequency that is a non-integral multiple of said frequency of said periodic 20 data structure.
13. A synchronized USB for synchronizing a plurality of USB devices, comprising: an external reference clock signal provided to at least one of said USB 25 devices enabling them to each synchronize themselves to said external reference clock signal.
14. A method of synchronizing a plurality of USB devices, comprising: providing an external reference clock signal to at least one of said USB 30 devices; and said USB devices synchronizing themselves to said external reference clock signal.
15. A method as claimed in claim 14, including synchronizing events on a 35 plurality of synchronized USBs.
16. A method as claimed in claim 15, including communicating information to a
3840245.1 (GHMatters) P63419.AU -41 further plurality of USB devices on said plurality of USB devices such that said further USB devices are triggered to execute commands or functions in real time and as required. 5
17. A method for reducing the latency of communication in a USB, comprising: monitoring and decoding upstream USB data traffic associated with the USB; extracting specific information packets from said upstream information; and 10 initiating performing at least one some actions according to content of the specific information packets.
18. A method as claimed in claim 17, wherein said action includes communicating with one or more other devices. 15
19. A USB with reduced latency, comprising: a USB device with an upstream port; and a data decoder and processor for observing USB data traffic on said upstream port, decoding data structures present in said USB traffic, and 20 initiating at least one action according to content of said data structures.
20. A USB as claimed in claim 19, comprising an inline data switch adapted to controllably synchronously direct said USB data traffic from said upstream port either directly to a downstream port or utilising a bidirectional data stream from 25 external circuitry.
21. A USB device, comprising: at least one local clock; wherein said local clock is synchronized to said USB, whereby said local 30 clock can be controlled to an arbitrarily precise frequency and phase.
22. A USB device as claimed in claim 21, comprising a synchronizer for synchronizing said local clock with a carrier signal contained within a USB data stream, wherein accuracy of a local clock frequency and phase is not limited by 35 an accuracy of a USB Host Controller clock.
23. A USB device as claimed in claim 22, further comprising: 3840245_1 (GHMatters) P63419 AU -42 one or more frequency references of known frequency and local to said USB device; and frequency measurer for measuring a frequency of said carrier signal locally at said USB device using said frequencies of said plurality of frequency s references.
24. A USB device as claimed in claim 23, further comprising a signal processor for synthesizing said synchronized local clock signal from said carrier signal from information about said carrier signal and a required local clock signal 10 frequency.
25. A USB device as claimed in claim 24, wherein said synchronized local clock is controlled to an arbitrary frequency and phase to an arbitrary degree. 15
26. A frequency and phase controlled, synchronous multichannel USB, comprising: a plurality of USB devices attached to said USB; one or more local clocks on each of said plurality of USB devices; and a synchronizer for synchronizing said local clocks with a carrier signal 20 contained within a USB data stream; wherein accuracy of local clock frequency and phase is not limited by an accuracy of a USB Host Controller clock, so that said USB devices can be controlled to an arbitrarily precise frequency and phase. 25
27. A USB as claimed in claim 26, comprising: a plurality of frequency references of known frequency and local to each of said plurality of USB devices; a frequency measurer for measuring the frequency of said carrier signal locally at each of said plurality of USB devices using said plurality of known 30 frequency references.
28. A USB as claimed in claim 27, further comprising a signal processor for synthesizing said synchronized local clock signal from said carrier signal from information about said carrier signal and a required local clock signal frequency. 35
29. A USB as claimed in claim 28, further comprising: a plurality of synchronized USB devices to independently measure a 3640245_1 (GHMatters) Pe3419 AU -43 frequency of said carrier signal and thereby obtain a plurality of determinations of said frequency; and a data processor configured to receive said plurality of determinations of said frequency and to determine said frequency therefrom. 5 30. A USB as claimed in claim 29, wherein said data processor is configured to determine said frequency from of said carrier signal from said plurality of determinations by employing at least one statistical technique. 10 31. A universal serial bus as claimed in claim 29, wherein said local clocks are controlled to an arbitrary frequency and phase. 32. A method of providing a frequency and phase controlled, synchronous multichannel USB, comprising: 15 observing USB traffic at each of a plurality of USB devices; and locking a local clock signal of each of said USB devices to a periodic carrier signal contained within USB data traffic in respect of frequency, of phase, or of both frequency and phase. 20 33. A method as claimed in claim 32, comprising: a USB host controller generating said carrier signal with known frequency; determining an actual frequency of said carrier signal; for each of said USB devices, creating a synthetic local carrier signal, 25 local to said respective USB device, from said carrier signal, said synthetic local carrier signal being filtered to remove stochastic frequency noise in said carrier signal; and locking the local clock of each of said respective USB devices to said synthetic carrier signal.
30 34. A method as claimed in claim 33, including creating said synthetic local carrier signal with a frequency stability substantially greater than that of said carrier signal. 35 35. A method as claimed in claim 33, including creating said synthetic local carrier signal with a frequency noise level substantially lower than that of said carrier signal. 3840245_1 (GHMatters) P63419AU -44 36. A method as claimed in claim 33, including creating said synthetic local carrier signal at a frequency substantially the same as that of said carrier signal. 5 37. A method as claimed in claim 33, including creating said synthetic local carrier signal at a frequency substantially different from that of said carrier signal. 38. A method as claimed in claim 33, including creating said synthetic local 10 carrier signal with a phase substantially identical with that of said carrier signal. 39. A method as claimed in claim 33, including creating said synthetic local carrier signal with a phase substantially different from that of said carrier signal. 15 40. A method as claimed in claim 33, wherein said determining of said actual carrier frequency is carried out by one of said USB devices, and said method includes subsequently transmitting said actual carrier frequency to all other of said USB devices. 20 41. A method as claimed in claim 33, wherein said plurality of said USB devices are attached to a USB, said method further comprising: making a plurality of measurements of a frequency of said carrier signal locally at each of said plurality of USB devices; and using at least one statistical technique to determine said frequency of 25 said carrier signal from said plurality of measurements of said carrier signal frequency. 42. A method as claimed in claim 33, further comprising: observing USB traffic; 30 defining a specific periodic signal structure as said carrier signal; decoding said carrier signal from within said USB traffic; and measuring a frequency of said carrier signal. 43. A frequency and phase controlled, synchronous multichannel USB, 35 comprising: a synchronized multichannel USB; a plurality of USB devices coupled to said synchronized multichannel 3640245_1 (GHMatters) P63419.AU -45 USB, each having a local clock with a local clock signal locked or lockable to a periodic carrier signal contained within USB data traffic in respect of frequency, of phase, or of both frequency and phase. 5 44. A method of improving the stability of the. synchronized local clock of each of a plurality of USB devices, comprising: creating a synchronized clock for each of a plurality of USB devices; integrating stochastic effects in a carrier signal over a plurality of cycles of said carrier signal; 10 45. A method of determining a clock rate of a USB Host Controller, comprising: monitoring USB data traffic at a device adapted to observe USB traffic; generating a replica signal of said USB data traffic; decoding periodic signal structures from said USB Host Controller; i5 identifying carrier signals within said signal structures; and determining a clock rate of said USB Host Controller from said carrier signals. 46. A method of synchronizing a plurality of synchronous multichannel USBs, 20 comprising: synchronizing said plurality of synchronous multichannel USBs by reference to a common external frequency reference signal; wherein said common external reference signal is provided by a plurality of synchronous frequency references and time-stamp outputs from a clock 25 distribution device. 47. A method as claimed in claim 46, wherein said external frequency reference comprises Caesium or Rubidium clock sources, a clock source synchronized to a global positioning system (GPS) satellite-based navigation 30 and timing system, a clock source synchronized to IEEE-1588 precision time protocol across Ethernet, or a clock source synchronized to a predefined time standard or protocol. 48. A method as claimed in claim 46, wherein said plurality of synchronous 35 USBs comprise more than a maximum allowable number of USB devices attachable to a given USB. 3840245.1 (GHMatters) P83419.AU -46 49. A method as claimed in claim 46, wherein said plurality of synchronous USBs are able to transfer more data that a maximum allowable data throughput of a single USB. 5 50. A real-time synchronous multichannel USB, comprising: a synchronized multichannel USB; a plurality of USB devices comprising respective local clocks synchronized to an arbitrary degree; and an absolute time register contained within each of said plurality of USB 10 devices; wherein said absolute time register is clocked by said synchronous local clock. 51. A USB as claimed in claim 50, adapted to provide real time synchronization 15 based on a signal received from a USB device attached to said USB. 52. A USB as claimed in claim 50, adapted to provide real time synchronization based on signals from a composite USB hub and a USB device attached to said USB. 20 53. A USB as claimed in claim 50, adapted to provide real time synchronization based on a signal from an external device adapted to observe USB traffic and provide information to a USB host system controller of said USB. 25 54. A real-time, frequency and phase controlled, synchronous multichannel USB, comprising: a synchronized multichannel USB; and a plurality of USB devices coupled to said synchronized multichannel USB, each having a local clock synchronized to an arbitrary degree and an 30 absolute time register clocked by the respective synchronous local clock. wherein said absolute time registers are synchronized. 55. A USB as claimed in claim 54, wherein said absolute time registers are synchronized to a real-time clock of a host computing or other system. 35 56. A USB as claimed in claim 54, wherein said absolute time registers are synchronized to a real-time clock on one or more of said plurality of USB 3840245_1 (GHMatters) P63419.AU -47 devices. 57. A USB as claimed in claim 54, wherein said absolute time registers are synchronized to an external time reference. 5 58. A USB as claimed in claim 57, wherein said external time reference is adapted to synchronize to a global positioning system (GPS) satellite-based navigation and timing system, complies with IEEE-1 588 precision time protocol across Ethernet, or is provided by a time standard or protocol. 10 59. A method of providing a real-time, frequency and phase controlled, synchronous multichannel USB, comprising: synchronizing a multichannel USB; synchronizing each of a plurality of USB devices attached to said 15 multichannel USB and having synchronized local clocks; providing each of said USB devices with an absolute time register; clocking said absolute time registers by the respective local clock; and synchronizing said plurality of absolute time registers. 20 60. A method of synchronizing the real-time clocks of a synchronous multichannel USB, comprising: synchronizing local clocks of a plurality of USB devices; synchronizing a local absolute time register in each of said USB devices; and 25 preconfiguring said respective local absolute time register of each of said USB devices with a real time corresponding to a moment of synchronization. 61. A method as claimed in claim 60, including: setting said respective local absolute time register of each of said USB 30 devices to a predefined value at said moment of synchronization; and recording the real time of said moment of synchronization for each of said plurality of USB devices by a USB system controller. 62. A method as claimed in claim 61, including synchronizing each of said USB 35 devices substantially simultaneously. 63. A method as claimed in claim 61, including synchronizing each of said USB 38A402451 (GHMatters) P63419 AU -48 devices sequentially. 64. A method as claimed in claim 61, including said USB system controller keeping track of the real time at said moment of synchronization for each of 5 said USB devices. 65. A real-time, frequency and phase controlled, synchronous multichannel USB, comprising: a synchronized multichannel USB; and 10 a plurality of synchronized USB devices attached to said multichannel USB, each having synchronized local clocks and an absolute time register; wherein said absolute time registers are clocked by the respective local clock and synchronized. 15 66. A method of assigning a real time to a synchronized USB bus, comprising: providing an external time event; and providing an external time-stamp that corresponds to said external time event. 20 67. A method as claimed in claim 66, further comprising: observing USB traffic; and synchronizing a local clock of a synchronization device to carrier signals within said USB traffic. 25 68. A method as claimed in claim 67, comprising: observing said external time event; latching a value of said external time-stamp into a local register; initiating a local counter; monitoring a USB data stream local to said synchronization device for 30 carrier signals; generating a signal to stop said local counter on receipt of a next carrier signal; detecting a frame number associated with said next carrier signal; and reporting a value of said local counter, said frame number and said value 35 of said time-stamp to a host system. 69. A method as claimed in claim 68, comprising determining a time of receipt 3640245_1 (GHMatters) P63419 AU -49 of the carrier signal that stopped said local counter; 70. A method as claimed in claim 69, comprising: determining a period between receipt of said external time event and 5 said numbered carrier signal; and using said time-stamp data latched into said local register as said external time event. 71. A method as claimed in claim 70, including determining said period from a lo number of clock cycles between receipt of said external time event and of said numbered carrier signal, and from the period of said local synchronized clock. 72. A method as claimed in claim 70, comprising transferring information to a host system controller relating to the real time of said numbered carrier signal. 15 73. A method as claimed in claim 68, including clocking said local counter by said synchronized local clock or by an external reference clock. 74. A method as claimed in claim 67, wherein said synchronization device 20 comprises a USB device, or a composite USB hub and USB device function. 75. A method as claimed in claim 67, wherein said synchronization device is a non-USB device configured to observe USB data traffic and pass information to a host system controller via another information channel. 25 76. A synchronized USB for generating an accurate time-stamp of a real-time external event, comprising: a calibrated real time counter register on a USB device attached to said USB; 30 an event detector; a data latch; and a data link to a USB system controller. 77. A method of generating an accurate time-stamp of a real-time external 35 event in a synchronized USB, comprising: synchronizing a local clock of a USB device; calibrating a real time counter; 3840245_1 (GHMatters) P63419.AU - 50 detecting said external real-time event; latching the value of said real time counter on detection of said real time event and outputting a corresponding time-stamp; and transferring said time stamp to a USB system controller of said USB. 5 78. A synchronized USB adapted to generate an accurate time-stamp of a real time external event, comprising: circuitry adapted to synchronize a local clock of a USB device; circuitry adapted to calibrate a real time counter; 10 a detector for detecting said external real-time event; and a latch for latching the value of said real time counter on detection of said real time event, outputting a corresponding time stamp and directing said time stamp to a USB system controller of said USB. 15 79. A synchronized multichannel USB synchronizable to a synchronized Ethernet, comprising: a USB host system; a plurality of USB devices coupled to said USB host system, each having a local clock and an absolute time register; 20 a synchronization channel for communicating clock frequency and time stamp information with said synchronized Ethernet; and a data channel for data communication with said synchronized Ethernet; wherein the local clocks of the USB devices are synchronized in frequency and phase, the absolute time registers of the USB devices are synchronized and 25 clocked by the respective local clock. 80. A USB as claimed in claim 79, wherein said synchronization channel comprises one or more USB devices attached to said synchronized USB, a compound USB Hub and USB device function, or a device that observes USB 30 data traffic on said synchronized USB but is not an attached member of said synchronized USB. 81. A USB as claimed in claim 79, further comprising a USB hub function for USB device tree expansion, a USB device function, a USB synchronization 35 function for synchronizing said synchronized USB, a local reference clock, and an IEEE-1588 interface. 3840245_1 (GHMatters) P63419.AU -51 82. A USB as claimed in claim 81, wherein said local clock is the IEEE-1 588 master clock or an IEEE-1588 slave clock. 83. A USB as claimed in claim 83, wherein said data channel comprises a USB 5 device function or a compound USB Hub and USB device function. 84. A USB as claimed in claim 83, wherein said USB host system is a personal computer, a USB-on-the-go controller, or an embedded controller combined with a compound USB Hub and USB device function. 10 85. A method for synchronizing a synchronized multichannel USB to a synchronized Ethernet, the USB including a USB host system, the method comprising: synchronizing local clocks of a plurality of USB devices coupled to said 15 USB host system in frequency and phase; synchronizing absolute time registers of said USB devices; clocking said absolute time registers by said respective local clock; and communicating clock frequency and time stamp information between said synchronized USB and said synchronized Ethernet over a synchronization 20 channel. 86. A method as claimed in claim 85, wherein said synchronization channel comprises one or more USB devices attached to said synchronized USB, a compound USB Hub and USB device function, or a device that observes USB 25 data traffic on said synchronized USB but is not an attached member of said synchronized USB. 87. A method as claimed in claim 85, further comprising a USB hub function for USB device tree expansion, a USB device function, a USB synchronization 30 function for synchronizing said synchronized USB, a local reference clock, and an IEEE-1588 interface. 88. A method as claimed in claim 87, wherein said local clock is the IEEE 1588 master clock or an IEEE-1588 slave clock. 35 3840245_1 (GHMatters) P63419.AU -52 89. A method as claimed in claim 85, further comprising providing a data channel for data communication between said synchronized USB and said synchronized Ethernet, said data channel comprising a USB device function or a compound USB Hub and USB device function. 5 90. A method as claimed in claim 85, wherein said USB host system is a personal computer, a USB-on-the-go controller, or an embedded controller combined with a compound USB Hub and USB device function. 10 91. A USB adapted to reduce latency in communication with one or more devices, comprising: monitoring and decoding circuitry for extracting information packets from a USB data stream; processing circuitry for acting on content of said information packets; and 15 interface circuitry for communication with external devices. 92. A USB as claimed in claim 91, wherein said interface circuitry is adapted to receive data from an external source. 20 93. A USB as claimed in claim 91, whereby said device is a non-USB device configured to observe and extract USB data traffic from a USB device. 94. A USB as claimed in claim 91, whereby said device is a hybrid USB Hub device that acts to communicate USB data traffic between an upstream 25 connection point and one or more downstream ports. 95. A method of reducing communication latency between a USB and one or more devices, comprising: monitoring USB data streams at a point in said USB; 30 decoding information from said USB; extracting specific information packets from said USB; replacing specific information packets with other information; and communicating information and instructions with a plurality of external devices. 35 3840245_1 (GHMallers) P63419.AU -53 96. A method as claimed in claim 95, comprising: configuring a USB host controller to send a regular message packet to a specific USB device attached to said USB; monitoring USB data traffic for said regular message packet to said USB 5 device; receiving information from an external interface for delivery to said USB device; allowing packet header of said regular message packet to pass downstream of said USB monitoring point; 10 disabling downstream communication from host controller to device at the end of said USB packet header; transmitting said information to said USB device such that it is consistent with expected data format and protocol of said regular message packet; transmitting USB CRC packet footer to said USB device; and 15 switching USB communication channel to an original state. 97. A method as claimed in claim 95, comprising: configuring a USB host controller to send a regular request for upstream information to a USB device attached to said USB; 20 monitoring USB data traffic for said regular request; observing and extracting a reply sent to USB host controller by said USB device; and transmitting information via an external interface for delivery to said plurality of external devices. 25 98. A USB adapted to reduce latency in communication with one or more devices, comprising: monitoring and decoding circuitry wherein information packets can be extracted from said USB data streams; 30 data multiplexing switch for routing data streams in said USB; control circuitry for controlling said data multiplexing switch; processing circuitry for acting on the contents of said information packets; and interface circuitry for communication with external devices. 35 3840245_1 (GHMatters) PS3419.AU -54 99. A USB as claimed in claim 98, wherein said interface circuitry is adapted to receive data from an external source. 100. An apparatus as claimed in claim 98, wherein said device is a non-USB 5 device configured to observe and extract USB data traffic from said USB. 101. An apparatus as claimed in claim 98, wherein said device is a hybrid USB Hub device that acts to communicate USB data traffic between an upstream connection point and one or more downstream ports. 10 364024.1 (GHMatters) P53419.AU
AU2012216514A 2006-02-15 2012-08-29 Distributed synchronization and timing system Abandoned AU2012216514A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU2012216514A AU2012216514A1 (en) 2006-02-15 2012-08-29 Distributed synchronization and timing system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US60/773,537 2006-02-15
AU2007215381A AU2007215381B2 (en) 2006-02-15 2007-02-15 Distributed synchronization and timing system
AU2012216514A AU2012216514A1 (en) 2006-02-15 2012-08-29 Distributed synchronization and timing system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
AU2007215381A Division AU2007215381B2 (en) 2006-02-15 2007-02-15 Distributed synchronization and timing system

Publications (1)

Publication Number Publication Date
AU2012216514A1 true AU2012216514A1 (en) 2012-09-20

Family

ID=46846063

Family Applications (1)

Application Number Title Priority Date Filing Date
AU2012216514A Abandoned AU2012216514A1 (en) 2006-02-15 2012-08-29 Distributed synchronization and timing system

Country Status (1)

Country Link
AU (1) AU2012216514A1 (en)

Similar Documents

Publication Publication Date Title
US8762762B2 (en) Distributed synchronization and timing system for generating local clock signal based on a desired clock signal embedded in USB data stream
EP1901178B1 (en) Synchronized multichannel universal serial bus
US20140229756A1 (en) Compound universal serial bus architecture providing precision synchronisation to an external timebase
US20120005517A1 (en) Synchronisation and timing method and apparatus
US8688874B2 (en) Method and system for reducing triggering latency in universal serial bus data acquisition
EP2147361B1 (en) Usb based synchronization and timing system
AU2012216514A1 (en) Distributed synchronization and timing system

Legal Events

Date Code Title Description
MK5 Application lapsed section 142(2)(e) - patent request and compl. specification not accepted