The present invention relates to the field of communications. In particular, the invention relates to a method and system for adjusting time settings.
Information handling devices, such as electronic processors, can include or communicate with one or more components used to provide a measurement of elapsed time to a greater or lesser degree of accuracy. When information is received, processed, or transmitted by an information handling device, the time indicated by those components can be associated with the information. In some situations, the times associated with sets of information are used to match that information. For example, a first information handling device could associate times with measurements of a first type, while a second information handling device associates times with measurements of a second type. If the measurements of the first type are associated with measurements of the second type based on the measurements having been taken in some specified time relationship, it can be useful for the information handling devices to have adjusted their time settings into a particular relationship.
One embodiment of the invention of a system of adjusting relative time settings is illustrated in
The second information handling device 105 includes an ADSL modem 120, coupled to the communications medium 115. The second information handling device 105 also includes a processor 125 and a clock 130. The clock 130 maintains a time that can be accessed and adjusted by a processor, e.g. 125. The ADSL modem 120 may reformat messages received from the communications medium 115 for the processor 125. The ADSL modem 120 may also reformat messages received from the processor 125 for the communications medium 115. In one embodiment of the invention, the processor 125 tracks the depth of the devices on the wireline in the well and stores the depth information along with the corresponding time as determined from the clock 130.
The first information handling device 110 includes an ADSL modem 135, coupled to the communications medium 115. The first information handling device 110 also includes a processor 140 and a clock 145. The clock 145 maintains a time that can be accessed and adjusted by a processor, e.g., processor 140. The ADSL modem 135 may reformat messages received from the communications medium 115 for the processor 140. The ADSL modem 135 also may reformat messages received from the processor 140 for the communications medium 115. In one embodiment of the invention, the processor 140 receives messages from a plurality of tools, for example downhole tools 155, 160, and 165. The tools communicate with the processor 140 through, for example, a network 150. The network 150 can be a symmetric network such as 10 MB/s Ethernet. Each tool 155, 160, and 165 can include a clock and can send data, e.g., formation measurements, to the processor 140 in packets that include the time that the measurement was taken according to the clock associated with the tool that took the measurement. Each clock associated with the tools 155, 160, and 165 can be adjusted to be in time with the clock 145 using a synchronization method suitable for a symmetric network. In an alternate embodiment, the tools 155, 160, and 165 can be coupled to the processor 140 by an asymmetric communications medium and an embodiment of the invention disclosed herein can be used to adjust the time settings.
In one embodiment of the invention, packets or messages sent by the tools 155, 160, and 165 to the downhole processor 140 are sent to surface processor 125 by way of ADSL modem 135, communications medium 115, and ADSL modem 120. Differences between the clocks of the tools 155, 160, and 165 and clock 130 can result in incorrect matching of measurements, e.g., formation measurements, taken by tools to the depth of the tools in the well. Greater differences in time settings may result in greater errors in depth. In other words, a measurement taken at a particular depth may be recorded as having been taken at a different depth depending upon the amount of skew between the clocks associated with the tools and surface clock 130. Differences in time settings can also cause problems in situations that require coordination of sensing conditions and controlling processes. For example, a refinery can include a control room that receives measurements based on which process control changes are implemented. Sensors remote from the control room, e.g., outside the control room, can provide the measurements. Differences in the time settings of processors that time stamp those measurements can lead to inefficient or dangerous failures to control processes in accordance to the actual conditions under which those processes are being performed.
Wireline logging includes taking measurements from instruments placed at various positions in the wellbore to better understand the characteristics of the formations that surround the wellbore. The instruments are able to take measurements at different depths more quickly if they are moved quickly through the wellbore and the cost of wireline logging can be reduced by obtaining the necessary information while minimizing the time that instruments are run. The instruments can be moved more quickly, while maintaining a particular maximum depth error for the measurements, if the depth at which a particular measurement was taken can be calculated more accurately because the various clocks in the system are kept in better alignment.
In one embodiment of the invention, the processors 125 and 140 receive messages from their respective ADSL modems 120 and 135. Those messages can be uniquely identified and can be sent at the same time or at different times wherein the difference in time is known. In one embodiment of the invention, the ADSL modems 120 and 135 can send messages to their respective processors 125 and 140 at a time wherein the difference in time is x. In response to receiving the corresponding message, each processor 125 and 140 records the time setting of its clock (e.g., processor 125 records the time of clock 130). Thereafter, a processor, for example the downhole processor 140 or the surface processor 125, sends a message to the other processor that includes the recorded time. That message can also include the identifier of the original message received from the ADSL modem. The processor receiving the message can check the identifier and return the time that it recorded when it received a message from its ADSL modem having that identifier. In an alternate embodiment of the invention, the processor receiving the message can use its recorded time and the recorded time of the sending processor (obtained from the message received from the sending processor) to determine a difference that is sent to the other processor in any format. The processor receiving this second message can then adjust its clock to the sum of the time recorded by the other processor and the round trip time, which can be calculated by determining the difference between the time that the second message was received and the time initially recorded. Resetting the time in a single change can be referred to as jamming the time of one processor into another. In an alternate embodiment of the invention, a correction is applied at a regular interval. The difference between the times can be divided into subparts that are applied at regular intervals between the exchange of messages. For example, if messages are exchanged every second, the difference between times can be divided by ten to calculate a correction that is applied every tenth of a second.
After the time of the first processor 205 has been set as a result of the exchange of messages, a delay 240 can occur before a new time adjustment process begins. During that delay 240, the clocks of the two processors can drift apart. For example, crystals used in clocks can have inherent differences and different amounts of heat experienced by the two clocks can also vary their recording of time. The delay between adjustments can be much greater than the roundtrip time of messages 220 and 230.
After the delay 240, new messages 245 and 250 are received and the times of reception are recorded. The first processor's time of reception is again sent at 255. At 260, the second processor 200 receives the time of reception and compares it to the time that it recorded. Based on that comparison and the times previously recorded at 210 and 215, the second processor determines a correction, for example a correction could be a tenth of the difference between the times of reception to be applied ten times, for the first processor 205 to be applied one or more times. That correction is sent to the first processor 205 in a message 265. The first processor 205 applies the correction beginning at 270 after the message is received. In an alternate embodiment of the invention, the correction is a portion of the difference between the recorded times that is applied to adjust the time of the first processor 205 on a regular basis until the adjustments equal the difference. In one embodiment of the invention, message 265 contains the time recorded by the second processor 200 and the first processor 205 calculates the correction beginning at 270.
After the time of the first processor 205 has been set, a delay 240 can occur before a new time adjustment process begins. During that delay 240, the clocks of the two processors can drift apart. For example, crystals used in clocks can have inherent differences and different amounts of heat experienced by the two clocks can also vary their recording of time. The delay between adjustments can be much greater than the transmission time of message 275.
After the delay 240, new messages 245 and 250 are received and the times of reception are recorded. The second processor's time of reception for message 245 is sent in message 285. At 290, the first processor 205 receives the second processor's time of reception in message 285 and compares it to the time that it recorded. Based on that comparison the first processor determines a correction, for example a correction could be a tenth of the difference between the times of reception to be applied ten times, for the first processor to be applied one or more times. The first processor 205 then applies the correction beginning at 290. In another embodiment, the first processor 205 keeps the last recorded time of the second processor 200 (i.e., when message 210 was received) and its own last recorded time (i.e., when message 215 was received). The first processor compares the difference between the second processor's last recorded time and current recorded time (i.e., when message 245 was received) to the difference between its own last recorded time and current recorded time (i.e., when message 250 was received) to determine a skew trend. The first processor 205 then calculates a correction to apply to its own time that includes the current difference in time between the processors (comparing the times of reception of 245 and 250) and skew trend. By applying this correction over the time period until the next messages are received, the processors will be adjusted to a synchronous state if the skew trend is consistent.
The technical applications of this invention include wireline logging in which time settings of processors at the surface or in the wellbore are adjusted. The technical applications of this invention also include wireline logging in which time settings of processors in the wellbore of one well or in the wellbore of another well are adjusted. The technical applications of this invention also include process measurement and control in which time settings of processors at a sensor or in a control room are adjusted.
The foregoing description of the embodiments of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. For example, the time settings of processors located at the control room and remote sensors of a refinery can be set using the claimed method, software or system. In addition, the time settings of processors located downhole in different wells can be set using the claimed method, software or system. It is intended that the scope of the invention be limited not by this detailed description, but rather by the claims appended hereto.