Background technology
During oil and gas exploitation, underground sensing equipment can measure the numerical value of multiple physical quantitys of underground, example
Such as the pressure and temperature value of underground, subsurface reservoir situation of change and underground equipment work can be preferably judged according to these measured values
Condition, so that it is determined that reasonably exploitation system and inspection pump measure, the exploitation to petroleum gas has very important significance.Underground
Sensing equipment is generally communicated by logging cable with floor passageway, realizes the upload of downhole data.
Work condition abnormality in diversity, the diversity of winning apparatus due to Oil/gas Well well rod structure, pit shaft is complicated, well logging
Cable is highly susceptible to rub, pulls, extrudes, corroding etc. and by major injury so that ground and underground sensing equipment it
Between communication interrupt.And the operating cost for changing logging cable is costly, and also result in stopping production change cable made
Into production loss.In the market the overwhelming majority system ground and underground equipment between all be simplex, used for twin-core
Or single armored cable, once short circuit or open circuit fault occur for a wherein core, then system is entirely ineffective.
The ground of some systems and underground equipment all employ binary channels design, employ four cores or three core armourings electricity
Cable, realizes 1+1 backup, further improves the reliability of the system.But it is due to that each pair core and equipment two are led in four cores
Road is fixed correspondence, once respectively there is a cable core to break down in each pair core, then during the communication of two passages can all occur
It is disconnected.For example, in quad (as shown in Figure 1), the quad is tetra- core compositions of A, B, C, D, wherein AB cores composition one
To core (i.e. first via communication line), CD cores constitute another pair core (i.e. No. second communication line), due to equipment passage U1 and
Passage U2 correspond to two pairs of cores respectively, and when respectively there is a core to break down in each pair core, then the communication of two passages can all occur
Interrupt, so result in two-way measured value and upload and fail, therefore the design of binary channels 1+1 backup is also not reaching to optimization
State.
The content of the invention
Present invention generally provides a kind of automatic switching method of underground logging cable, when four core logging cables or three core armourings
Any two core of cable breaks down, can be by the automatic detection and switching of ground and underground equipment so that two other is without reason
Hinder cable core pairing, so as to recover the communication all the way between underground and ground.
The technical scheme for solving above-mentioned technical problem is as follows:
A kind of automatic switching method of underground logging cable, comprises the following steps:
Step 1, by ground control and data processing unit, communication cable and underground sensing unit, set up ground and lead to
At least two-way communication between road and underground sensing passage;
Step 2, ground control and data processing unit and/or underground sensing unit are to floor passageway and underground sensing passage
Between communication state detection;
Step 3, if step 2 detection communication occurs abnormal, ground control and data processing unit and/or underground sensing
Unit judges communication abnormality way whether be in two-way all the way;
Step 4, if the judged result of step 3 is no, i.e. all there is exception in two-way communication, and it is different to be detected as communication cable
Often, then ground control and data processing unit control the cable core switching matrix in the unit to be polled switching, underground sensing
Unit controls the cable core switching matrix in the unit to be polled switching, two-way cable core is carried out new pairing;
Step 5, when matching again, detect whether at least recover to communicate all the way.
Preferably, the communication cable is quad or three core armored cables.
Preferably, in step 1, two-way communication is configured to:
The first via is:First subchannel of floor passageway one passes sequentially through the first son of the first cable core, underground passage one
Passage is communicated with underground sensing passage one;Second subchannel of floor passageway one passes sequentially through the second cable core, underground and led to
Second subchannel in road one is communicated with underground sensing passage one;
Second tunnel is:First subchannel of floor passageway two passes sequentially through the first son of the 3rd cable core, underground passage two
Passage is communicated with underground sensing passage two;Second subchannel of floor passageway two passes sequentially through the 4th cable core, underground and led to
First subchannel in road two is communicated with underground sensing passage two.
Preferably, in step 2, ground control and data processing unit are detecting detection communication electricity after exception occurs in communication
The resistance and operating current of cable, judge whether communication cable is damaged with this.
Preferably, in step 3, if anomalous communication be in two-way all the way, the alarm letter of passage where reporting fault
Breath, and report the normal data all the way of communication.
Preferably, in step 4, ground control and data processing unit control the cable core switching matrix in the unit to carry out
Poll switching time, the cable core switching matrix in the unit is controlled to be polled switching time not phase with underground sensing unit
Deng.
Preferably, underground sensing unit is polled switching time to the cable core switching matrix in the unit, at least
Ground is controlled and data processing unit controls the cable core switching matrix in the unit to be polled 3 times of switching time.
Preferably, in the poll handoff procedure of step 4, ground control and data processing unit are sent out with cycle time to underground
Send communication frame and wait the acknowledgement frame of underground sensing unit, ground control and data processing unit send downwards cycle of communication frame
Time, the cable core switching matrix in the unit is controlled to be polled switching time with underground sensing unit unequal.
Preferably, ground control and data processing unit send downwards the cycle time of communication frame, are sensed less than underground single
Member controls the cable core switching matrix in the unit to be polled switching time.
Preferably, cable core switching matrix is electronic switch or micro-machinery switch.
By the detection of the present invention, when communication failure only occurs all the way, the cable core switching matrix at cable two ends is not
Switch over action.Whole system still can communicate normal passage by another road and carry out downhole data upload.Have simultaneously
The alarm of faulty channel is indicated.When two-way communication all generation exceptions, and cable exception is detected as, then firing cable core automatic detection
And matcher.If only having faulty and other two core of two cores to be good in four cores, by cable core automatic detection and match somebody with somebody
It to program, can recover to communicate all the way, keep downhole data to upload.The position of the core of failure two is can indicate that simultaneously.When cable has
Three cores appear above failure, then cable core automatic detection and matcher can not also recover communication, and now ground installation reports well
Lower communication complete failure alarm prompt.When communication abnormality is caused at cable two ends due to wiring error, it can also pass through same side
Method recovers communication automatically, so as to reduce the complexity of system operation maintenance.
In summary, by the method for the present invention, when any two core of four core logging cables (or three core armored cables) goes out
Existing failure, can be by the automatic detection and switching of ground and underground equipment so that two other fault-free cable core is matched, so that extensive
Multiple communication all the way between underground and ground so that downhole measurement can successfully be uploaded to ground installation, so as to significantly carry
The reliability of whole system is risen.
Embodiment
As shown in Fig. 2 the present invention on hardware include underground ground control and data processing unit, underground sensing unit with
And the communication cable at connection two ends.Ground is controlled and data processing unit is connected with one end of communication cable, ground control and number
Processor, the communication channel of two-way independence, cable detection unit and 1 4x4 cable core switching matrix are included according to processing unit,
Cable detection unit have detection communication cable resistance and operating current function, judged with this communication cable whether by
Damage.Underground sensing unit is connected with the other end of communication cable, and underground sensing unit at least includes two groups of sensings mutually backed up
There are processor, underground in sense channel, and 1 4x4 cable core switching matrix, the sensing detection passage that two groups are mutually backed up
Sensing unit uploads the data that two-way is detected in real time respectively by four cores or three core armored cables.Communication cable is four cores well logging electricity
Cable or three core armored cables.Above-mentioned 4x4 cables core switching matrix can be electronic switch or micromechanics (MEMS) switch.
As shown in Figures 2 to 5, the automatic switching method of underground logging cable of the invention, comprises the following steps:
Step 1, program initialization, by ground control and data processing unit, communication cable and underground sensing unit,
At least two-way communication set up between floor passageway and underground sensing passage, the as data transfer of 1+1 backup formula, if wherein
Failure all the way, another road still can upload data.In the present invention, said so that communication cable uses quad as an example
Bright, in this step, the concrete configuration of two-way communication is (the first width figure in such as Fig. 4 and Fig. 5):The first via is:Floor passageway one
The first subchannel U1_A pass sequentially through the first subchannel D1_A and underground sensing passage of the first cable core A, underground passage one
One is communicated;Second subchannel U1_B of floor passageway one passes sequentially through the second cable core B, the second son of underground passage one leads to
Road D1_B is communicated with underground sensing passage one.
Second tunnel is:First subchannel U2_A of floor passageway two passes sequentially through the 3rd cable core C, the of underground passage two
One subchannel D2_A is communicated with underground sensing passage two;Second subchannel U2_B of floor passageway two passes sequentially through the 4th electricity
Cable core D, the first subchannel D2_B of underground passage two and underground sensing passage two are communicated.
Step 2, ground control and data processing unit and/or underground sensing unit are to floor passageway and underground sensing passage
Between communication state detection;In step 2, ground control and data processing unit are detecting detection communication after exception occurs in communication
The resistance and operating current of cable, judge whether communication cable is damaged with this.
Step 3, if step 2 detection communication occurs abnormal, ground control and data processing unit and/or underground sensing
The way of unit judges communication abnormality whether be in two-way all the way.In step 3, if anomalous communication be in two-way all the way,
The then warning information of passage where reporting fault, and report the normal data all the way of communication.Communication all the way in this explanation two-way
When abnormal, and the communication of another road is intact, and intact all the way can be uploaded the data of detection, to the work of system not
Impact.
Step 4, if the judged result of step 3 is no, i.e. all there is exception in two-way communication, and it is different to be detected as communication cable
Often, illustrate in two-way communication per at least one cable core damage or failure all the way, at this moment need cable intact in two-way
Core re-starts configuration, for recovering communication.Detailed process is:
Ground is controlled and data processing unit controls the cable core switching matrix in the unit to be polled switching, and underground is passed
Sense unit controls the cable core switching matrix in the unit to be polled switching, two-way cable core is carried out new pairing.Lead to
Ground and the respective internal cable core switching matrix of underground control are crossed, makes do not have faulty cable core and cable core switching matrix shape
Cheng Xin configuration relation.
In step 4, ground control and data processing unit control the cable core switching matrix in the unit to be polled to cut
The time is changed for T1, controls the cable core switching matrix in the unit to be polled switching time for T2, T1 with underground sensing unit
Unequal with T2, the purpose so set is:The cable core switching matrix of cable core switching matrix and underground on ground is cut
Change the cycle one fast one slowly, be to ensure that two of which fault-free cable core has an opportunity to dock.Underground sensing unit is to the unit
In cable core switching matrix be polled switching time, at least ground control and data processing unit are controlled in the unit
Cable core switching matrix is polled 3 times of switching time, i.e. T1 be at least T2 3 times (in turn can also, and T2 is at least
3 times of T1), it can so ensure that the cable core switching matrix on ground often switches once, the cable core switching matrix of underground is at least
A different cable core connection configuration can be traveled through.
In the poll handoff procedure of step 4, ground control and data processing unit are sent to underground with cycle time and communicated
Frame and the acknowledgement frame for waiting underground sensing unit, ground is controlled and data processing unit sends downwards cycle time of communication frame and is
T3, controls the cable core switching matrix in the unit to be polled switching time unequal with underground sensing unit.Ground is controlled
And data processing unit sends downwards the cycle time T3 of communication frame, and the cable core in the unit is controlled less than underground sensing unit
Switching matrix is polled switching time T2, i.e. T3 < T2, to ensure that underground sensing unit can receive the communication that ground is sent out
Frame.
Step 5, when matching again, detect whether at least recover to communicate all the way.If testing result is yes, this explanation two-way
Only have faulty and other two core of two cores to be good in four cables core in communication, then pass through cable core automatic detection and pairing
Program, can recover to communicate all the way, keep downhole data to upload.The position of the core of failure two is can indicate that simultaneously.
If the testing result of step 5 is no, into step 6, the alarm of downhole communication complete failure is indicated, this explanation communication
There are three cores to appear above failure in cable, then cable core automatic detection and matcher can not also recover communication, and now ground is set
It is standby to report downhole communication complete failure alarm prompt.
It is illustrated below by taking the two of which cable core communication abnormality in quad as an example:
Such as Fig. 4 and Fig. 5 the first width figure, step 1, communication initial configuration is that the first via is:First son of floor passageway one
Passage U1_A passes sequentially through the first cable core A, the first subchannel D1_A of underground passage one and underground sensing passage one and led to
News;Second subchannel U1_B of floor passageway one pass sequentially through the second cable core B, the second subchannel D1_B of underground passage one with
Underground sensing passage one is communicated.
Second tunnel is:First subchannel U2_A of floor passageway two passes sequentially through the 3rd cable core C, the of underground passage two
One subchannel D2_A is communicated with underground sensing passage two;Second subchannel U2_B of floor passageway two passes sequentially through the 4th electricity
Cable core D, the first subchannel D2_B of underground passage two and underground sensing passage two are communicated.
Simplify explanation:Below in the later description of step 3, to the first cable core A, the second cable core B, the 3rd cable core
C, the 4th cable core D, are accordingly indicated using A, B, C, D, passage one are represented with passage 1, to the table of passage 2 of passage two
Show.
Step 2, when ground control and data processing unit and underground sensing unit detect ground and the communication of underground two-way
All occur after exception, then cable core automatic detection and matching function is respectively started.Here with the first cable core A and the second cable core
Illustrated exemplified by D failures, other core failure processing methods of AC, BC, BD two are identical
Step 3, ground control and data processing unit control the switching of the 4X4 cable core switching matrixs of this unit, and well
Lower sensing unit controls the switching of the cable core switching matrix of this unit.The poll switching cycle of two cable core switching matrixs is needed
Want one at a slow speed and another to be switched fast, to ensure that two of which fault-free cable core can have an opportunity docking.Such as ground
The switching time of 4X4 cables core switching matrix 1 is T1, and the switching time of downhole cable core switching matrix 2 is T2, and T1 is at least big
In 3T2 (can also T2 at least above 3T1).To ensure that ground matrix often switches once, underground matrix can at least travel through one time not
Same cable core connection configuration.
Step 4, as shown in figure 4, ground control and data processing unit in cable core switching matrix, transfer sequence is successively
For AB (passage 1), CD (passage 2) → AC (passage 1), BD (passage 2) → AD (passage 1), BC (passage 2), each switching time
At intervals of T1.Surface units send communication frame to underground with cycle time T3 and wait the acknowledgement frame of underground sensing unit.T3<
T2, to ensure that underground sensing unit can receive the communication frames that ground is sent out.
As shown in figure 5, the cable core switching matrix of underground sensing unit, it is (logical that transfer sequence is followed successively by AB (passage 1), CD
Road 2) → AC (passage 1), BD (passage 2) → AD (passage 1), BC (passage 2), each switching time is at intervals of T2.If underground
Some passage of sensing equipment receives the communication frame that ground installation is sent out within the T2 times, then keeps the matrix position constant.Together
When earthward device replied acknowledgement frame.
In this example embodiment, because cable core A and D break down, after switching, make in ground control and data processing unit
Cable core switching matrix is located at AD (passage 1), BC (passage 2), and the cable core switching matrix of underground sensing unit is (logical positioned at AD
Road 1), BC (passage 2), ground control and the passage 2 of data processing unit and underground sensing unit can be carried out by cable core BC
Normal communication, so as to complete the automatic matching of cable core and recover the communication of ground and underground.If ground and underground are exchanged
Matrix still can not recover communication, then show that the logging cable at least 3 cores appear above failure by repeatedly traversal switching,
Downhole communication complete failure is then reported to alert.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright description is made, or directly or indirectly it is used in other related technology necks
Domain, is included within the scope of the present invention.