CN102647269A - Time synchronization method for downhole instrument - Google Patents
Time synchronization method for downhole instrument Download PDFInfo
- Publication number
- CN102647269A CN102647269A CN2011100424448A CN201110042444A CN102647269A CN 102647269 A CN102647269 A CN 102647269A CN 2011100424448 A CN2011100424448 A CN 2011100424448A CN 201110042444 A CN201110042444 A CN 201110042444A CN 102647269 A CN102647269 A CN 102647269A
- Authority
- CN
- China
- Prior art keywords
- time
- message
- logging
- field
- equipment
- 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.)
- Pending
Links
Images
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention discloses a data transmission method used for multiple well logging devices and a control device, wherein the multiple well logging devices comprises a first well logging device and a second well logging device. The method comprises the following steps: the first well logging device obtains reference time; the first well logging device sends a time synchronization message; the second well logging device receives the time synchronization message; the second well logging device modifies local time; the first well logging device and the second well logging device print a timestamp for well logging data; and the first well logging device and the second well logging device convey the well logging data to the control device.
Description
Technical field
The present invention relates to a kind of method for synchronizing time of downhole instrument.
Background technology
Well logging; Also be geophysical log or oil well logging; Be called for short well logging; Be geophysics characteristics such as the electrochemical properties that utilizes the rock stratum, conductive characteristic, acoustic characteristic, radioactivity, measure the method for geophysical parameters, belong to one of applied geophysics method (comprising weight, magnetic, electricity, shake, well logging).Generally can be divided into electrical log, acoustic logging, radioactive logging, dipmeter log, mud logging, formation testing well logging, bore mud logging etc. by petrophysical property of being surveyed or detection purpose.The various logging equipments that utilize physical principles manufacturings such as electricity, magnetic, sound, heat, nuclear,, make the ground electrical measuring instrument can be along the various parameters of pit shaft recording occurring continuously with change in depth by the logging cable G.I.H.Through representing the curve of this type parameter, discern underground rock stratum, like oil, gas, water layer, coal seam, metalliferous deposit etc.
In traditional logging technique, the data that each logging equipment obtains all are sent on the GCU through unified timeticks, print unified time at control appliance then and stab.This pattern has a lot of shortcomings:
One, each logging equipment is all relevant with GCU, and the whole system degree of coupling is big, increases the source code that any new logging equipment all will change GCU.
Two, time inaccuracy.The timestamp of each logging equipment data is relevant with the processing time-delay of timeticks and GCU, and time error is big, and precision is low.
Summary of the invention
The present invention will guarantee that the clock of each logging equipment of down-hole is consistent, and each equipment independent operating is all packed to the data of oneself respectively like this, alleviates the degree of coupling of whole system greatly.
A kind of method for synchronizing time is provided according to an aspect of the present invention, and said method comprises:
Main equipment obtains fiducial time;
Main equipment transmitting time sync message, said time synchronized message comprises said fiducial time;
Slave unit time of reception sync message;
Slave unit is revised local zone time according to the time synchronized message that receives.
Alternatively, the step of main equipment transmitting time sync message comprises that main equipment passes through broadcast cycle ground transmitting time sync message.
Alternatively, main equipment is carried out and is obtained step fiducial time behind the request message that receives the slave unit initiation.
Wherein, said message is made up of heading field, version number field, pattern field, precision field, type of message field, response time field and check code field.
A kind of data transmission method that is used between a plurality of logging equipments and the control appliance is provided according to another aspect of the present invention, and said a plurality of logging equipments comprise first logging equipment and second logging equipment, and said method comprises:
First logging equipment obtains fiducial time;
The first logging equipment transmitting time sync message, said time synchronized message comprises said fiducial time;
The second logging equipment time of reception sync message;
Second logging equipment is revised local zone time according to the time synchronized message that receives;
Said first and second logging equipments are to stab the log data time-write interval of obtaining,
Said first and second logging equipments send log data to control appliance.
Description of drawings
Fig. 1 shows the block diagram according to the embodiment of the master-slave equipment of logging system of the present invention;
Fig. 2 shows the time synchronization process of logging system under the aggressive mode;
Fig. 3 shows the time synchronization process of logging system under the server client pattern;
Fig. 4 shows an instance of the logging equipment that connects through network.
Embodiment
NTP NTP is widely used in network at present and carries out the synchronous of equipment time; In most of the cases; NTP is different according to synchronisation source and network path, the different time accuracy can be provided, for example; On Internet, can obtain the precision of a few tens of milliseconds, in local area network (LAN), can obtain precision less than 1 millisecond.The Network Time Protocol that has also occurred a kind of simplification in addition, i.e. SNTP, it has omitted Network Time Protocol many to the time algorithm.The SNTP agreement can be compatible with Network Time Protocol, promptly SNTP client can with the ntp server collaborative work, same NTP client also can accept the temporal information that the SNTP server sends.This is because the data packet format of NTP and SNTP is the same, and the algorithm of computing client time, time deviation and bag round-trip delay also is the same.But no matter Network Time Protocol still be the SNTP agreement in order to guarantee the accuracy of height, need very complicated algorithm.
The present invention has proposed a kind of new time synchronization protocol according to the characteristics of logging technique.And the agreement that proposes according to the present invention under accurate prerequisite of assurance time, makes the development and application of network time become easy.
The protocol format of time synchronization protocol of the present invention is following:
Heading | Version number | Pattern | Precision | Type of message | Response time | Check code |
2 (bytes) | 2 (bytes) | 2 (bytes) | 2 (bytes) | 2 (bytes) | 8 (bytes) | 1 (byte) |
Heading: 0XAA55
Message version: 0x1.
Pattern: 01, client mode; 02, server mode; 03, broadcast mode.
Precision: be the unit of response time byte.01, precision unit is a millisecond; 02, precision unit is a microsecond.
Type of message: 01, request message; 02, response message.
Response time: the response time of main equipment, i.e. the local zone time of main equipment during the request of main equipment response slave unit, field length is 8 bytes.Chronomere is determined by the precision byte.
Check code: parity check code
According to agreement of the present invention, there are two kinds of mode of operations: aggressive mode and server client mode.The server client pattern is meant that slave unit transmit a request to main equipment, obtains correct time from main equipment then.Under the server client pattern, slave unit request message pattern field is set to 01, and main equipment response message pattern field is set to 02.Aggressive mode is meant main equipment periodically to the slave unit transmission time information, and slave unit is intercepted broadcasting, does not need initiatively to send request message.The pattern field of main equipment transmission message is set to 03 under aggressive mode.
Fig. 1 illustrates the block diagram according to an embodiment of logging system of the present invention, and wherein master-slave equipment connects through network (wireless or cable network).Main equipment comprises master clock, and master clock has provided the fiducial time of system, and master clock can be the atomic clock that main equipment carries, and rubidium clock for example is perhaps based on the clock of hydrogen, caesium or other elements or molecule operation.Slave unit need make the synchronous from clock and this fiducial time of its this locality.
In one embodiment, logging system comprises a plurality of main equipments, and each main equipment all has one group of slave unit related with it.In another embodiment, logging system includes only single main equipment, and all slave units are all related with it.
In the logging system, the accurate collection of signal and reliable transmission are successful prerequisite of whole system and basis.Because have a plurality of equipment in the logging system, it is particularly outstanding that stationary problem seems, it is a difficult problem in the prior art that the error that how to guarantee transmission signal (for example, the data) timestamp of each equipment is no more than certain limit.Can address this problem well according to the method for the invention.
Fig. 2 shows the time synchronization process of logging system under the aggressive mode:
1, main equipment obtains fiducial time.Main equipment through current time of reading master clock and obtaining master clock as fiducial time.
2, main equipment airtime sync message.Main equipment is according to the rise time fiducial time sync message that reads and to all slave units while airtime sync messages.The pattern field of time synchronized message is 03, the fiducial time that the corresponding main equipment of response time field obtains.The chronomere of response is by the value decision of precision field.Type of message field numerical value is 02.
3, slave unit time of reception sync message.Because slave unit keeps intercepting always, it can receive the time synchronized message of main equipment broadcasting.At this moment, slave unit is gone back the proving time sync message usually, for example, verifies the correctness of whole message through check code.Confirm the pattern field numerical value and the type of message field numerical value of time synchronized message.
4, slave unit is revised local zone time.After slave unit received the time synchronized message, the response time field according in the time synchronized message was revised as fiducial time with local zone time.Thereby kept the time of each slave unit consistent with the main equipment time.
Above-mentioned steps can repeat according to some cycles as required, and for example this can read periodically through main equipment and initiate start-up time.
Fig. 3 shows the time synchronization process of the following logging system of server client pattern:
1, slave unit is initiated synchronization request.Slave unit can be periodically or can be to main equipment clean culture transmitting time sync message under the triggering of certain incident.
During the slave unit initiation request, time synchronized message pattern field numerical value is 01, and type of message field numerical value is 01.
2, main equipment receives the time synchronized message that slave unit sends.At this moment, main equipment is also verified the time synchronized message that receives usually, for example, verifies the correctness of whole message through check code.Whether Validation Mode field numerical value is 01, and whether type of message field numerical value is 01, otherwise shows and make mistakes.
3, main equipment obtains fiducial time.For example, main equipment through current time of reading master clock and obtaining master clock as fiducial time.
4, main equipment response time sync message.Be the request of main equipment response slave unit, to slave unit clean culture transmitting time sync message.At this moment, main equipment is revised the time synchronized message that slave unit sends, and for example main equipment writes the response time field of message with the fiducial time of reading as timestamp, and as response, the time synchronized message is returned to slave unit.At this moment, the pattern field of time synchronized message is 02, and the fiducial time that the corresponding main equipment of response time field obtains, type of message field numerical value is 02.
5, slave unit time of reception sync message.At this moment, slave unit is also verified the time synchronized message that main equipment returns usually, for example, verifies the correctness of whole message through check code.Confirm the pattern field numerical value and the type of message field numerical value of time synchronized message.
6, slave unit is revised local zone time.After slave unit received the time synchronized message, the response time field according in the time synchronized message was revised as fiducial time with local zone time.Thereby kept the time of each slave unit consistent with the main equipment time.
Instance:
According to an instance of the present invention, logging system can comprise a plurality of logging equipments that are distributed in the down-hole and the control appliance that is positioned at ground, and each logging equipment all comprises corresponding separately transducer, clock, amplifier, A/D converter and microprocessor etc.Connect through wired or wireless network between the logging equipment.Logging equipment is also through the wired or wireless control appliance that is connected to ground.Sensor to analog signal this locality convert digital signal into, pass to control appliance behind the stack clock coding.Control appliance carries out control and management to each logging equipment, the monitoring whole system operation.
Can select one of them logging equipment as main equipment, other logging equipment is as slave unit.Carry out synchronously according to aggressive mode or server client pattern according to above-mentioned agreement between the master-slave equipment.
Fig. 4 shows an instance of the logging equipment that connects through network.The logging equipment of logging system comprises gamma ray logger, acoustic logging instrument, two direction finding logging instrument and array induction logging tool.Gamma ray logger is as the main equipment of time synchronized, and acoustic logging instrument, two direction finding logging instrument and array induction logging tool are set to slave unit.Gamma ray logger whenever at a distance from 2 seconds just to whole Web broadcast sync message.Acoustic logging instrument, two direction finding logging instrument and array induction logging tool are when receiving the message of gamma ray logger, just the corresponding correction of the local zone time of oneself once.Like this, the time of all logging equipments of whole system always keeps synchronous regime.
The invention solves the time synchronization problem of logging equipment.Have following advantage: lock in time, precision was high, can solve the time depth transfer problem of all logging equipments in the logging system.The solution cost is low, implements quick easily.Simple in structure, be easy to expansion.As long as logging equipment is realized this agreement, add network node and just can satisfy this system requirements.In this system, the time of all slave units is all consistent with main equipment, guarantees that the time of whole system is consistent.
The above is merely exemplary embodiment of the present invention, rather than is used to limit protection scope of the present invention.
Claims (9)
1. method for synchronizing time, said method comprises:
Main equipment obtains fiducial time;
Main equipment transmitting time sync message, said time synchronized message comprises said fiducial time;
Slave unit time of reception sync message;
Slave unit is revised local zone time according to the time synchronized message that receives.
2. method according to claim 1, wherein the step of main equipment transmitting time sync message comprises that main equipment passes through the time synchronized message that broadcast cycle ground transmitting time sync message perhaps passes through the unicast response request.
3. method according to claim 1, wherein main equipment is carried out and is obtained step fiducial time behind the request message that receives the slave unit initiation.
4. according to claim 2 or 3 described methods, wherein said message is made up of heading field, version number field, pattern field, precision field, type of message field, response time field and check code field.
5. method that is used for the transfer of data between a plurality of logging equipments and the control appliance, said a plurality of logging equipments comprise first logging equipment and second logging equipment, said method comprises:
First logging equipment obtains fiducial time;
The first logging equipment transmitting time sync message, said time synchronized message comprises said fiducial time;
The second logging equipment time of reception sync message;
Second logging equipment is revised local zone time according to the time synchronized message that receives;
Said first and second logging equipments are to stab the log data time-write interval of obtaining,
Said first and second logging equipments send log data to control appliance.
6. method according to claim 5, wherein said a plurality of logging equipments comprise a plurality of second logging equipments.
7. method according to claim 6, wherein the step of the first logging equipment transmitting time sync message comprises that said first logging equipment perhaps passes through the time synchronized message of unicast response request through broadcast cycle ground transmitting time sync message.
8. method according to claim 6, wherein said first logging equipment are carried out and are obtained step fiducial time behind the request message that receives the initiation of second logging equipment.
9. according to claim 7 or 8 described methods, wherein said message is made up of heading field, version number field, pattern field, precision field, type of message field, response time field and check code field.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100424448A CN102647269A (en) | 2011-02-22 | 2011-02-22 | Time synchronization method for downhole instrument |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100424448A CN102647269A (en) | 2011-02-22 | 2011-02-22 | Time synchronization method for downhole instrument |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102647269A true CN102647269A (en) | 2012-08-22 |
Family
ID=46659858
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011100424448A Pending CN102647269A (en) | 2011-02-22 | 2011-02-22 | Time synchronization method for downhole instrument |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102647269A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9534486B2 (en) | 2014-03-13 | 2017-01-03 | Halliburton Energy Services Inc. | Method and system for tracking time in a downhole tool without the need for a battery |
CN111194076A (en) * | 2018-11-15 | 2020-05-22 | 西安诺瓦星云科技股份有限公司 | Multi-device time synchronization system and method |
CN111447030A (en) * | 2020-03-31 | 2020-07-24 | 中国科学院地质与地球物理研究所 | Network time service precision control method and system of earthquake collector and terminal equipment |
CN111983948A (en) * | 2020-07-07 | 2020-11-24 | 宝能(广州)汽车研究院有限公司 | Multi-sensor data synchronization method and equipment thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1902510A (en) * | 2003-10-21 | 2007-01-24 | 石油研究和发展公司 | Methods and apparatus for downhole inter-tool communication |
CN101315029A (en) * | 2007-05-29 | 2008-12-03 | 中国石油天然气集团公司 | Accurate synchronous method for receiving and transmitting well logging sound wave signal |
CN101425887A (en) * | 2007-10-29 | 2009-05-06 | 吉林市曼博科技有限公司 | Time synchronization method used for wireless sensor network |
CN101697502A (en) * | 2009-09-22 | 2010-04-21 | 哈尔滨工业大学 | Method for precisely synchronizing wireless sensor network under coal mine |
-
2011
- 2011-02-22 CN CN2011100424448A patent/CN102647269A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1902510A (en) * | 2003-10-21 | 2007-01-24 | 石油研究和发展公司 | Methods and apparatus for downhole inter-tool communication |
CN101315029A (en) * | 2007-05-29 | 2008-12-03 | 中国石油天然气集团公司 | Accurate synchronous method for receiving and transmitting well logging sound wave signal |
CN101425887A (en) * | 2007-10-29 | 2009-05-06 | 吉林市曼博科技有限公司 | Time synchronization method used for wireless sensor network |
CN101697502A (en) * | 2009-09-22 | 2010-04-21 | 哈尔滨工业大学 | Method for precisely synchronizing wireless sensor network under coal mine |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9534486B2 (en) | 2014-03-13 | 2017-01-03 | Halliburton Energy Services Inc. | Method and system for tracking time in a downhole tool without the need for a battery |
CN111194076A (en) * | 2018-11-15 | 2020-05-22 | 西安诺瓦星云科技股份有限公司 | Multi-device time synchronization system and method |
CN111447030A (en) * | 2020-03-31 | 2020-07-24 | 中国科学院地质与地球物理研究所 | Network time service precision control method and system of earthquake collector and terminal equipment |
CN111447030B (en) * | 2020-03-31 | 2021-02-19 | 中国科学院地质与地球物理研究所 | Network time service precision control method and system of earthquake collector and terminal equipment |
WO2021196923A1 (en) * | 2020-03-31 | 2021-10-07 | 中国科学院地质与地球物理研究所 | Network time service accuracy control method and system for seismic collector, and terminal device |
US11716162B2 (en) | 2020-03-31 | 2023-08-01 | Institute Of Geology And Geophysics, The Chinese Academy Of Sciences | Method and system for controlling network timing precision of a seismic collector, and terminal device |
CN111983948A (en) * | 2020-07-07 | 2020-11-24 | 宝能(广州)汽车研究院有限公司 | Multi-sensor data synchronization method and equipment thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101682443B (en) | A network device for use in a network | |
CN102421187B (en) | High-accuracy clock synchronization method of wireless sensor network | |
CN103929293B (en) | Asymmetrically-delayed time synchronization method and system | |
CN102742190A (en) | Synchronization method, device, and system | |
CN102647269A (en) | Time synchronization method for downhole instrument | |
EP2365651A2 (en) | System and method for providing time synchronization | |
CN103812630B (en) | The clock of line differential protection is synchronous | |
CN103856360A (en) | Method and device for synchronization link fault detection | |
JP5373260B2 (en) | Accident point location method and system for transmission and distribution systems | |
US9007231B2 (en) | Synchronization of distributed measurements in a borehole | |
CN106487467A (en) | A kind of time synchronized deviation detecting method and device | |
Bae | Power consumption analysis of prominent time synchronization protocols for wireless sensor networks | |
CN103647614A (en) | Method for reliably improving time synchronization precision based on IEEE1588 protocol | |
CN108693553A (en) | System is monitored based on the mine microquake of internet and supercomputer | |
CN102523263A (en) | Sharing access host quantity monitoring method, device thereof and system thereof | |
KR101686619B1 (en) | Time synchronization system for seismic data acquisition and Time synchronization method for seismic data acquisition | |
CN102420715B (en) | IEEE (Institute of Electrical and Electronics Engineers) 1588 protocol negative test method | |
CN108259105B (en) | time synchronization processing method and device and synchronization network | |
CN202194654U (en) | Well logging bus system based on FlexRay bus | |
CN202256575U (en) | Online failure positioning system based on IEEE1588 for underground cable | |
CN110308482A (en) | The AD conversion and data-storage system and method for seismic exploration data wireless acquisition node | |
CN107636627A (en) | Time synchronizer, time synchronization system and method for synchronizing time | |
CN105260199B (en) | The method and apparatus of deployment and management electronic equipment | |
CN106656395A (en) | Improved system and method for synchronous time measurement in power grid based on self-learning | |
CN104935630A (en) | HTTP-based millisecond-level clock calibration method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120822 |