Downhole directional detection system and control method
By introducing a central control module into the underground directional detection system and using vibration detection and detection signal analysis, fault restart and online upgrade of underground directional detection are realized, which solves the problems of single function and difficult upgrade of the central control circuit in the existing technology, and improves Improve system reliability and operational efficiency.
Patent Information
- Application Number
- CN202410813716.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-24
AI Technical Summary
The central control circuit of the existing underground directional detection system has a single function and cannot accurately record underground conditions. When upgrading the module, the instrument download program needs to be disassembled, which affects the efficiency of on-site operations.
An underground directional detection system including a power module, a central control module and a directional detection module is designed. The central control module includes a control unit, a voltage stabilizing unit, a vibration detection unit, a storage unit, a protection unit and a communication unit. Through vibration detection signals and Detection signal analysis enables online upgrade and fault restart.
It realizes fault restart and online upgrade of underground directional detection, improves the reliability and operating efficiency of the system, and avoids the need to disassemble instruments on site.
Smart Images

Figure CN118391011B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of downhole directional detection, and in particular, to a downhole directional detection system and a control method. Background Art
[0002] In order to improve the accuracy of directional well drilling in the oil and gas industry, it is necessary to use Measurement While Drilling (MWD) as a measuring instrument to collect downhole data and upload it to the ground. The most critical part is the data processing circuit and signal transmission method.
[0003] At present, the directional measurement unit in the industry is relatively mature, but the central control circuit has developed slowly, mainly because of its relatively single function. It can only transmit the downhole attitude measurement data to the ground through mud pulse coding, and cannot configure the mode for various drilling environments. In addition, the clock and memory are not available, and it is impossible to accurately record the situation downhole. In case of module upgrade, the instrument needs to be disassembled, and then the central control part needs to be downloaded and upgraded, which is not conducive to the operation of on-site personnel. Summary of the invention
[0004] In view of this, in order to solve the technical problems of insufficient data processing and signal transmission in the above-mentioned downhole directional detection process, an embodiment of the present application provides a downhole directional detection system and a control method.
[0005] In a first aspect, an embodiment of the present application provides a downhole directional detection system, comprising:
[0006] Power module, central control module and directional detection module;
[0007] The power module is connected to the central control module, and the power module provides power to the central control module;
[0008] The central control module is connected to the directional detection module, and the central control module obtains the mud pulse signal detected by the directional detection module, analyzes it and transmits it to the ground;
[0009] The central control module includes: a control unit, a voltage stabilization unit, a vibration detection unit, a storage unit, a protection unit and a communication unit;
[0010] A first end of the control unit is connected to an output end of the voltage stabilizing unit, a second end of the control unit is connected to one end of the vibration detection unit, a third end of the control unit is connected to the storage unit, a fourth end of the control unit is connected to the protection unit, and a fifth end of the control unit is connected to the communication unit;
[0011] The input end of the voltage stabilizing unit is connected to the output end of the power module;
[0012] The other end of the vibration detection unit is connected to the directional detection module, and the voltage stabilizing unit inputs the power supply signal output by the power module to the control unit after voltage stabilization. The control unit receives the vibration detection signal input by the vibration detection unit, determines the vibration state after analysis and processing, communicates with the outside through communication signals, and issues instructions when the vibration detection signal is abnormal. The storage unit stores abnormal state data according to the instructions, and protects the control unit through the protection unit.
[0013] In a possible implementation, the control unit includes:
[0014] A main control chip, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, a first port device, a second port device, a third port device, a fourth port device, a first crystal oscillator and a second crystal oscillator, wherein the port device is used for externally connecting a transmission data line;
[0015] The second pin of the main control chip is connected to one end of the first crystal oscillator and the first capacitor, the third pin is connected to the other end of the first crystal oscillator and the second capacitor, the fourth pin is connected to the first pin of the first port component, the fifth pin is connected to the sixth pin and then connected to the output end of the voltage stabilizing unit and the first pin of the second port component, the seventh pin is connected to the ground terminal, the first resistor and the second crystal oscillator are connected between the eighth pin and the ninth pin, the tenth pin is connected to one end of the fifth capacitor and one end of the second resistor, the thirteenth pin is connected to the second pin of the second port component, the fourteenth pin is connected to the first pin of the second port component, the sixteenth pin, the seventeenth pin, the eighteenth pin and the nineteenth pin are respectively connected to the first input end, the second input end, the third input end and the fourth input end of the vibration detection unit, and the twenty-second pin and the twenty-third pin is connected to the second pin and the first pin of the fourth port device respectively, the twenty-ninth pin is connected to the first input terminal of the communication unit, the thirty-second pin is connected to the first output terminal of the communication unit, the thirty-third pin is connected to the power ground terminal, the thirty-fifth pin is connected to one end of the second resistor and the second pin of the second port device, the thirty-sixth pin is connected to one end of the third resistor and the third pin of the second port device, the thirty-eighth pin is connected to the first end of the storage unit, the thirty-ninth pin is connected to the second end of the storage unit, the forty-first pin is connected to the third end of the storage unit, the forty-second pin is connected to the second pin of the first port device, the forty-third pin and the forty-fourth pin are connected to the first input terminal and the second input terminal of the protection unit respectively, and the forty-sixth pin is connected to the fourth end of the storage unit;
[0016] The other end of the first capacitor is connected to the ground terminal, and the other end of the second capacitor is connected to the ground terminal;
[0017] One end of the second crystal oscillator is connected to one end of the third capacitor, the other end of the third capacitor is connected to the ground, the other end of the second crystal oscillator is connected to one end of the fourth capacitor, the other end of the fourth capacitor is connected to the ground;
[0018] The other end of the fifth capacitor is connected to the ground end;
[0019] The other end of the second resistor is connected to the output end of the voltage stabilizing unit;
[0020] The fourth pin of the second port is connected to the ground terminal;
[0021] The third pin of the third port is connected to the ground terminal;
[0022] The other end of the third resistor is connected to the output end of the voltage stabilizing unit;
[0023] The other end of the fourth resistor is connected to the ground.
[0024] In a possible implementation, the voltage stabilizing unit includes:
[0025] A voltage stabilizing chip, a fifth port device, a first diode, a sixth capacitor, a seventh capacitor, an eighth capacitor, a ninth capacitor and a first voltage stabilizing diode;
[0026] The first pin of the voltage stabilizing chip is connected to the ground terminal, the second pin is connected to one end of the sixth capacitor and the forward output end of the first diode, and the third pin is connected to one end of the seventh capacitor, one end of the eighth capacitor, one end of the ninth capacitor and the forward output end of the first voltage stabilizing diode as the output end of the voltage stabilizing unit to the first end of the control unit;
[0027] The other end of the sixth capacitor, the other end of the seventh capacitor, the other end of the eighth capacitor, the other end of the ninth capacitor and the reverse input end of the first voltage stabilizing diode are connected to the ground end respectively;
[0028] The first pin of the fifth port device is connected to the reverse input terminal of the first diode, and the second pin is connected to the ground terminal.
[0029] In a possible implementation, the vibration detection unit includes:
[0030] a vibration detection chip, a tenth capacitor, an eleventh capacitor, a twelfth capacitor, a thirteenth capacitor, a fourteenth capacitor, a fifteenth capacitor, a sixteenth capacitor and a seventeenth capacitor;
[0031] The first pin, the second pin, the third pin and the fourth pin of the vibration detection chip are connected to the control unit respectively, the fifth pin and one end of the tenth capacitor and one end of the eleventh capacitor are connected to the output end of the voltage stabilizing unit, the sixth pin and the other end of the tenth capacitor, the other end of the eleventh capacitor, one end of the twelfth capacitor and one end of the thirteenth capacitor are connected to the ground terminal, the eighth pin is connected to the other end of the twelfth capacitor and the other end of the thirteenth capacitor, the ninth pin is connected to the ground terminal, the tenth pin is connected to one end of the fourteenth capacitor and one end of the fifteenth capacitor, and the eleventh pin is connected to one end of the sixteenth capacitor and one end of the seventeenth capacitor;
[0032] The other end of the fourteenth capacitor, the other end of the fifteenth capacitor, the other end of the sixteenth capacitor and the other end of the seventeenth capacitor are connected to the ground terminal.
[0033] In a possible implementation, the storage unit includes:
[0034] Memory chip and eighteenth capacitor;
[0035] The first pin of the memory chip is connected to the control unit as the first end of the memory unit, the second pin is connected to the control unit as the second end of the memory unit, the third pin is connected to the output end of the voltage stabilizing unit, the fourth pin is connected to the ground end, the fifth pin is connected to the control unit as the third end of the memory unit, the sixth pin is connected to the control unit as the fourth end of the memory unit, and the seventh pin and the eighth pin are connected to one end of the eighteenth capacitor and the output end of the voltage stabilizing unit;
[0036] The other end of the eighteenth capacitor is connected to the ground.
[0037] In a possible implementation manner, the protection unit includes:
[0038] A buffer chip, a protection chip, a fifth resistor, a sixth resistor and a sixth port device;
[0039] The first pin and the third pin of the buffer chip are respectively connected to the fourth end of the control unit, the second pin is connected to the ground end, the fourth pin is connected to one end of the fifth resistor, the fifth pin is connected to the output end of the voltage stabilizing unit, and the sixth pin is connected to one end of the sixth resistor;
[0040] The other end of the fifth resistor is connected to the first pin of the sixth port device and the first pin of the protection chip;
[0041] The other end of the sixth resistor is connected to the fourth pin of the sixth port device and the third pin of the protection chip;
[0042] The second pin of the protection chip is connected to the ground terminal, the fourth pin is connected to the first terminal of the directional detection module, and the fifth pin is connected to the second terminal of the directional detection module.
[0043] In a possible implementation, the communication unit includes:
[0044] A communication chip, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a seventeenth capacitor, a second diode, a third diode and a seventh port device;
[0045] The first pin and the fourth pin of the communication chip are connected to the control unit as the first output end and the first input end of the communication unit, respectively, the second pin and the third pin are connected to one end of the seventh resistor, the fifth pin is connected to the ground terminal, the sixth pin is connected to one end of the eighth resistor, one end of the ninth resistor and one end of the tenth resistor, the seventh pin is connected to the other end of the ninth resistor, one end of the eleventh resistor and one end of the twelfth resistor, and the eighth pin is connected to one end of the seventeenth capacitor and the other end of the eighth resistor to the output end of the voltage stabilizing unit;
[0046] The other end of the seventh resistor is connected to the output end of the voltage stabilizing unit;
[0047] The other end of the seventeenth capacitor and the other end of the eleventh resistor are connected to the ground terminal respectively;
[0048] The other end of the tenth resistor is connected to the forward output end of the second diode and the first pin of the seventh port device as a first communication interface;
[0049] The other end of the twelfth resistor is connected to the forward output end of the third diode and the fourth pin of the seventh port device as a second communication interface;
[0050] An inverting input terminal of the second diode and an inverting input terminal of the third diode are connected to ground terminals, respectively.
[0051] In a possible implementation, the power module includes:
[0052] A power chip, an eighth port component, a ninth port component, a tenth port component, an eleventh port component, a thirteenth resistor, a fourteenth resistor, a fifteenth resistor, a sixteenth resistor, a seventeenth resistor, an eighteenth resistor, a nineteenth resistor, a twentieth resistor, a twenty-first resistor, a twenty-second resistor, a nineteenth capacitor, a twentieth capacitor, a twenty-first capacitor, a twenty-second capacitor, a twenty-third capacitor, a twenty-fourth capacitor, a twenty-fifth capacitor, a twenty-sixth capacitor, a twenty-seventh capacitor, a first inductor, a fourth diode, a fifth diode, a sixth diode, a seventh diode, an eighth diode, a second voltage regulator diode, a first transistor, and a second transistor;
[0053] The first pin of the power chip is connected to one end of the nineteenth capacitor, the second pin is connected to one end of the twenty-third capacitor, one end of the twenty-first capacitor, one end of the thirteenth resistor and one end of the fourteenth resistor, the fourth pin is connected to one end of the fifteenth resistor, the fifth pin is connected to the feedback signal terminal, the sixth pin is connected to one end of the sixteenth resistor and one end of the twenty-second capacitor, the seventh pin is connected to the ground terminal, and the eighth pin is connected to the other end of the nineteenth capacitor, one end of the first inductor and the forward output terminal of the fourth diode;
[0054] The other end of the thirteenth resistor and the other end of the fourteenth resistor are connected to the first pin of the eighth port device, and the second pin of the eighth port device is connected to the ground terminal;
[0055] The other end of the sixteenth resistor is connected to one end of the twenty-third capacitor;
[0056] The other end of the first inductor is connected to one end of the seventeenth resistor, one end of the eighteenth resistor, one end of the twenty-fourth capacitor, one end of the twenty-fifth capacitor, one end of the twenty-sixth capacitor, one end of the twenty-seventh capacitor, the forward output end of the second voltage zener diode, the forward input end of the fifth diode, the first end of the first transistor, and one end of the nineteenth resistor;
[0057] The other end of the seventeenth resistor, the other end of the eighteenth resistor and one end of the twentieth resistor are connected to the feedback signal terminal;
[0058] The first end of the second transistor is connected to the other end of the nineteenth resistor and the control end of the first transistor, the control end is connected to one end of the twenty-first resistor and one end of the twenty-second resistor, and the second end and the other end of the twenty-second resistor are connected to the ground end;
[0059] The other end of the twenty-first resistor and the first pin of the ninth port device are connected to the input end of the voltage stabilizing unit;
[0060] A second terminal of the first transistor is connected to a first pin of a tenth port;
[0061] The second pin of the ninth port is connected to the control unit;
[0062] The forward output terminal of the fifth diode is connected to the reverse input terminal of the sixth diode, the forward output terminal of the sixth diode is connected to the reverse input terminal of the seventh diode, the forward output terminal of the seventh diode is connected to the reverse input terminal of the eighth diode, and the forward output terminal of the eighth diode is connected to the first pin of the eleventh port device;
[0063] The other end of the 20th capacitor, the other end of the 21st capacitor, the other end of the 15th resistor, the other end of the 22nd capacitor, the other end of the 23rd capacitor, the reverse input terminal of the fourth diode, the other end of the 24th capacitor, the other end of the 25th capacitor, the other end of the 26th capacitor, the other end of the 27th capacitor, the reverse input terminal of the second Zener diode, the other end of the 20th resistor, the second pin of the tenth port device and the second pin of the 11th port device are respectively connected to the ground terminal.
[0064] In a second aspect, an embodiment of the present application provides a control method for a downhole directional detection system, comprising:
[0065] Configure the system mode through software, and initialize the system after the configuration is completed;
[0066] Acquire a directional detection signal sent by the directional detection module through the control unit;
[0067] Determining the operating status of the system based on the directional detection signal;
[0068] determining an adjustment strategy for the system when the working state is in an abnormal state;
[0069] The system is controlled based on the adjustment strategy so that the system completes an online upgrade process.
[0070] In a possible implementation, determining the working state of the system based on the directional detection signal includes:
[0071] When the directional detection signal is within a set threshold range, determining that the working state is a normal state;
[0072] When the directional detection signal exceeds the threshold range, the working state is determined to be an abnormal state.
[0073] In a possible implementation manner, determining the adjustment strategy of the system when the working state is in an abnormal state includes:
[0074] When the working state is an abnormal state, determining whether the control unit receives a directional detection signal again within a set time, and obtaining a corresponding determination result;
[0075] An adjustment strategy of the control unit is determined according to the judgment result.
[0076] In a possible implementation manner, determining an adjustment strategy of the control unit according to the judgment result includes:
[0077] When the control unit receives the directional detection signal again, determining that the judgment result is the first judgment result;
[0078] When the control unit does not receive the directional detection signal, determining that the judgment result is a second judgment result;
[0079] Determining the adjustment strategy as an upgrade strategy according to the first determination result;
[0080] The adjustment strategy is determined to be a restart strategy according to the second determination result.
[0081] In a possible implementation, the controlling the system based on the adjustment strategy includes:
[0082] When the adjustment strategy is an upgrade strategy, the system upgrade operation is implemented by downloading the target program;
[0083] When the adjustment strategy is a restart strategy, the output end of the control power module starts a restart signal to re-supply the central control module.
[0084] The downhole directional detection system provided in the embodiment of the present application is provided with a power module, a central control module and a directional detection module; the power module is connected to the central control module, and the power module provides electric energy to the central control module; the central control module is connected to the directional detection module, and the central control module obtains the mud pulse signal detected by the directional detection module, analyzes it and transmits it to the ground; the central control module includes: a control unit, a voltage stabilizing unit, a vibration detection unit, a storage unit, a protection unit and a communication unit; the first end of the control unit is connected to the output end of the voltage stabilizing unit, the second end of the control unit is connected to one end of the vibration detection unit, and the third end of the control unit is connected to the storage unit , the fourth end of the control unit is connected to the protection unit, and the fifth end of the control unit is connected to the communication unit; the input end of the voltage stabilizing unit is connected to the output end of the power module; the other end of the vibration detection unit is connected to the directional detection module, and the voltage stabilizing unit inputs the power supply signal output by the power module to the control unit after voltage stabilization processing, and the control unit receives the vibration detection signal input by the vibration detection unit, and determines the vibration state after analysis and processing, and communicates with the outside through the communication signal, and issues instructions when the vibration detection signal is abnormal, and the storage unit stores abnormal state data according to the instruction, and protects the control unit through the protection unit. By adding a central control module, the vibration detection signal detected by the vibration detection unit is used, and the detection signal of the directional detection module is obtained, and the safety state of the current system is determined after analysis by the control unit in the central control module, and when an abnormality occurs underground, the storage unit and the protection unit are controlled to store the detection data, and the detection state is disconnected at the same time. By this scheme, the technical effects of fault restart and online upgrade of underground directional detection can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0086] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0087] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0088] Figure 1A schematic diagram of the structure of a downhole directional detection system provided in an embodiment of the present application;
[0089] Figure 2a A schematic diagram of the structure of a control unit in a downhole directional detection system provided in an embodiment of the present application;
[0090] Figure 2b A schematic diagram of the structure of a control unit in another downhole directional detection system provided in an embodiment of the present application;
[0091] Figure 2c A schematic diagram of the structure of a control unit in another downhole directional detection system provided in an embodiment of the present application;
[0092] Figure 2d A schematic diagram of the structure of a control unit in another downhole directional detection system provided in an embodiment of the present application;
[0093] Figure 3 A schematic diagram of the structure of a vibration detection unit in a downhole directional detection system provided in an embodiment of the present application;
[0094] Figure 4 A schematic diagram of the structure of a storage unit in a downhole directional detection system provided in an embodiment of the present application;
[0095] Figure 5 A schematic diagram of the structure of a protection unit in a downhole directional detection system provided in an embodiment of the present application;
[0096] Figure 6 A schematic diagram of the structure of a communication unit in a downhole directional detection system provided in an embodiment of the present application;
[0097] Figure 7 A schematic diagram of the structure of a voltage stabilizing unit in a downhole directional detection system provided in an embodiment of the present application;
[0098] Figure 8 A schematic diagram of the structure of a power supply module in a downhole directional detection system provided in an embodiment of the present application;
[0099] Fig. 9 A flow chart of a control method for a downhole directional detection system provided in an embodiment of the present application;
[0100] Fig.10 A flow chart of another control method of a downhole directional detection system provided in an embodiment of the present application;
[0101] Fig.11 A schematic diagram of a process flow of a fault restart of a downhole directional detection system provided in an embodiment of the present application;
[0102] Fig.12 A schematic diagram of the process of online upgrading of a downhole directional detection system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0103] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0104] The terms "including" and "having" in the embodiments of the present application are used to express an open-ended inclusive meaning, and mean that in addition to the listed elements / components / etc., there may be additional elements / components / etc.; the terms "first" and "second" etc. are used only as labels and are not intended to limit the quantity of their objects. In addition, the different elements and regions in the drawings are only schematically shown, so the present application is not limited to the sizes or distances shown in the drawings.
[0105] To facilitate understanding of the embodiments of the present application, further explanation will be given below with reference to specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present application.
[0106] Figure 1 A schematic diagram of the structure of a downhole directional detection system provided in an embodiment of the present application. Applicable to the downhole directional detection process of oil and natural gas. Figure 1 The structure of the downhole directional detection system specifically includes:
[0107] A power module 10 , a central control module 20 and a directional detection module 30 .
[0108] The power module 10 is connected to the central control module 20 , and the power module 10 provides power to the central control module 20 .
[0109] The central control module 20 is connected to the directional detection module 30 . The central control module 20 acquires the mud pulse signal detected by the directional detection module 30 , analyzes it and transmits it to the ground.
[0110] The central control module 20 includes: a control unit 201 , a voltage stabilizing unit 202 , a vibration detection unit 203 , a storage unit 204 , a protection unit 205 and a communication unit 206 .
[0111] The first end of the control unit 201 is connected to the output end of the voltage stabilizing unit 202, the second end of the control unit 201 is connected to one end of the vibration detection unit 203, the third end of the control unit 201 is connected to the storage unit 204, the fourth end of the control unit 201 is connected to the protection unit 205, and the fifth end of the control unit 201 is connected to the communication unit 206.
[0112] An input terminal of the voltage stabilizing unit 202 is connected to an output terminal of the power module 10 .
[0113] The other end of the vibration detection unit 203 is connected to the directional detection module 30. The voltage stabilizing unit 202 inputs the power supply signal output by the power module 10 to the control unit 201 after voltage stabilization. The control unit 201 receives the vibration detection signal input by the vibration detection unit 203, determines the vibration state after analysis and processing, communicates with the outside through communication signals, and issues instructions when the vibration detection signal is abnormal. The storage unit 204 stores abnormal state data according to the instructions, and protects the control unit 201 through the protection unit 205.
[0114] according to Figure 1 According to the diagram provided, the system supplies power to the central control module 20 through the power module 10, converts the input power signal into a stable electrical signal through the voltage stabilizing unit 202, and then obtains the detection signal of the target position detected by the directional detection module 30 through the vibration detection unit 203. After detection and analysis by the vibration detection unit 203, the corresponding vibration detection signal is obtained, and the vibration detection signal and the detection signal are fed back to the control unit 201. After analysis, the signal data is first transmitted to the storage unit 204 to store the signal data; when it is analyzed that the signal data is normal, the communication transmission process with the external device is completed through the communication module 206; when it is analyzed that the signal data is abnormal, the protection unit 205 performs fault restart on the system to protect the control unit 201, thereby realizing the technical effects of fault restart, online upgrade and mode configuration of the downhole directional detection system.
[0115] The downhole directional detection system provided by the embodiment of the present application is provided with a power module, a central control module and a directional detection module; the power module is connected to the central control module, and the power module provides electric energy to the central control module; the central control module is connected to the directional detection module, and the central control module obtains the mud pulse signal detected by the directional detection module, analyzes it and transmits it to the ground; the central control module includes: a control unit, a voltage stabilizing unit, a vibration detection unit, a storage unit, a protection unit and a communication unit; the first end of the control unit is connected to the output end of the voltage stabilizing unit, the second end of the control unit is connected to one end of the vibration detection unit, the third end of the control unit is connected to the storage unit, the fourth end of the control unit is connected to the protection unit, and the fifth end of the control unit is connected to the communication unit; the input end of the voltage stabilizing unit is connected to the output end of the power module; the other end of the vibration detection unit is connected to the directional detection module, the voltage stabilizing unit inputs the power supply signal output by the power module to the control unit after voltage stabilization processing, the control unit receives the vibration detection signal input by the vibration detection unit, determines the vibration state after analysis and processing, communicates with the outside through the communication signal, and issues an instruction when the vibration detection signal is abnormal, the storage unit stores the abnormal state data according to the instruction, and protects the control unit through the protection unit. By adding a central control module, using the vibration detection signal detected by the vibration detection unit and obtaining the detection signal of the directional detection module, the safety state of the current system is determined after analysis by the control unit in the central control module, and when an abnormality occurs underground, the storage unit and the protection unit are controlled to store the detection data and the detection state is disconnected. This solution can achieve the technical effects of fault restart and online upgrade of underground directional detection.
[0116] Figure 2a , Figure 2b , Figure 2c and Figure 2d A schematic diagram of the structure of a control unit in a downhole directional detection system provided in an embodiment of the present application. Figure 2a-2d This is introduced based on the previous embodiment. Figure 2a-2d The structure of the central control module 20 in the downhole directional detection system specifically includes:
[0117] A control unit 201 , a voltage stabilizing unit 202 , a vibration detecting unit 203 , a storage unit 204 , a protection unit 205 and a communication unit 206 .
[0118] according to Figure 2a-2d The control unit 201 in the downhole directional detection system includes:
[0119] Main control chip U1, first resistor R1, second resistor R2, third resistor R3, fourth resistor R4, first capacitor C1, second capacitor C2, third capacitor C3, fourth capacitor C4, fifth capacitor C5, first port component P1, second port component P2, third port component P3, fourth port component P4, first crystal oscillator Y1 and second crystal oscillator Y2, the port components are used for external transmission data lines.
[0120] The second pin of the main control chip U1 is connected to one end of the first crystal oscillator Y1 and the first capacitor C1, the third pin is connected to the other end of the first crystal oscillator Y1 and the second capacitor C2, the fourth pin is connected to the first pin of the first port P1, the fifth pin is connected to the sixth pin and then connected to the output end of the voltage stabilizing unit 202 and the first pin of the second port P2, the seventh pin is connected to the ground terminal GND, the first resistor R1 and the second crystal oscillator Y2 are connected between the eighth pin and the ninth pin, the tenth pin is connected to one end of the fifth capacitor C5 and one end of the second resistor R2, the thirteenth pin is connected to the second pin of the second port P2, the fourteenth pin is connected to the first pin of the second port P2, the sixteenth pin, the seventeenth pin, the eighteenth pin and the nineteenth pin are respectively connected to the first input end, the second input end, the third input end and the fourth input end of the vibration detection unit 203, and the twenty-second pin and the twenty-third pin are respectively connected to the first input end, the second input end, the third input end and the fourth input end of the vibration detection unit 203. The twenty-ninth pin is connected to the first pin and the second pin of the fourth port component P4 respectively, the twenty-ninth pin is connected to the first input terminal of the communication unit 206, the thirty-second pin is connected to the first output terminal of the communication unit 206, the thirty-third pin is connected to the power ground terminal POWER_DOWN, the thirty-fifth pin is connected to one end of the second resistor R2 and the second pin of the second port component PO2, the thirty-sixth pin is connected to one end of the third resistor R3 and the third pin of the second port component P2, the thirty-eighth pin is connected to the first end of the storage unit 204, the thirty-ninth pin is connected to the second end of the storage unit 204, the forty-first pin is connected to the third end of the storage unit 204, the forty-second pin is connected to the second pin of the first port component P1, the forty-third pin and the forty-fourth pin are respectively connected to the first input terminal and the second input terminal of the protection unit 205, and the forty-sixth pin is connected to the fourth end of the storage unit 204.
[0121] The other end of the first capacitor C1 is connected to the ground terminal GND, and the other end of the second capacitor C2 is connected to the ground terminal GND.
[0122] One end of the second crystal oscillator Y2 is connected to one end of the third capacitor C3, the other end of the third capacitor C3 is connected to the ground terminal GND, the other end of the second crystal oscillator Y2 is connected to one end of the fourth capacitor C4, the other end of the fourth capacitor C4 is connected to the ground terminal GND.
[0123] The other end of the fifth capacitor C5 is connected to the ground terminal GND.
[0124] The other end of the second resistor R2 is connected to the output end of the voltage stabilizing unit 202 .
[0125] The fourth pin of the second port P2 is connected to the ground terminal GND.
[0126] The third pin of the third port P3 is connected to the ground terminal GND.
[0127] The other end of the third resistor R3 is connected to the output end of the voltage stabilizing unit 202 .
[0128] The other end of the fourth resistor R4 is connected to the ground terminal GND.
[0129] The main control chip U1 is connected to various functional units and modules to realize functions such as pulse encoding and control, system self-check, real-time clock, working mode and hardware configuration. It is the core of the underground directional detection system.
[0130] In one possible example scenario, Fig.11 A schematic diagram of a fault restart process provided for an embodiment of the present application. The main control chip U1 program is written in C language. After initializing the system, the main control chip U1 communicates with the directional sensor based on the TTL level through the thirteenth pin PA2 and the fourteenth pin PA3. The main control chip U1 will first send a 0x83 command. After receiving the command, the directional sensor will return the posture data to the main control chip U1 through the thirteenth pin PA2 and the fourteenth pin PA3. When the main control chip U1 does not receive the reply data from the directional sensor within 1 second, and the action is repeated three times and still not received, the POWER_OPEN potential corresponding to the forty-second pin PB3 is pulled high for 3 seconds, 7.5V has no output, and then the forty-second pin PB3 and 7.5V are pulled low to output again, thereby realizing the fault restart of the directional sensor.
[0131] according to Figure 2a-2d According to the diagram provided, after the main control chip U1 receives the power supply signal, the received signal data is transmitted to the storage unit 204 for storage after processing. At the same time, when the vibration detection unit 203 detects a system abnormality, the protection unit 205 is disconnected to achieve the purpose of protecting the main control chip U1, and it plays the role of the main controller for realizing fault restart and online upgrade in the system.
[0132] Figure 3 A schematic diagram of the structure of a vibration detection unit in a downhole directional detection system provided in an embodiment of the present application. Figure 3 The invention is introduced on the basis of the first embodiment. Figure 3 The structure of the vibration detection unit 203 in the downhole directional detection system specifically includes:
[0133] The vibration detection chip U2, the tenth capacitor C10, the eleventh capacitor C11, the twelfth capacitor C12, the thirteenth capacitor C13, the fourteenth capacitor C14, the fifteenth capacitor C15, the sixteenth capacitor C16 and the seventeenth capacitor C17.
[0134] The first pin, the second pin, the third pin and the fourth pin of the vibration detection chip U2 are respectively connected to the control unit 201, the fifth pin and one end of the tenth capacitor C10 and one end of the eleventh capacitor C11 are connected to the output end of the voltage stabilizing unit 202, the sixth pin and the other end of the tenth capacitor C10, the other end of the eleventh capacitor C11, one end of the twelfth capacitor C12 and one end of the thirteenth capacitor C13 are connected to the ground terminal GND, the eighth pin is connected to the other end of the twelfth capacitor C12 and the other end of the thirteenth capacitor C13, the ninth pin is connected to the ground terminal GND, the tenth pin is connected to one end of the fourteenth capacitor C14 and one end of the fifteenth capacitor C15, and the eleventh pin is connected to one end of the sixteenth capacitor C16 and one end of the seventeenth capacitor C17.
[0135] The other end of the fourteenth capacitor C14, the other end of the fifteenth capacitor C15, the other end of the sixteenth capacitor C16, and the other end of the seventeenth capacitor C17 are connected to the ground terminal GND.
[0136] according to Figure 3 According to the diagram provided, the vibration detection unit U2 measures the vibration signal received from the directional detection module, and the measurement signal data is connected to the main control chip U1 via the SPI interface (1, 2, 3, 4 pins are connected to the 16, 17, 18, 19 pins of the main control chip U1). The main control chip U1 analyzes and processes the vibration signal to determine whether it is in a state of vibration. The detection signal detected by the directional detection module is fed back to the control unit 201 through the vibration detection unit U2. After analysis, it is determined whether the current directional detection signal is normal. The structure formed by the tenth capacitor C10, the eleventh capacitor C11, the twelfth capacitor C12, and the thirteenth capacitor C13 provides a stable signal for the vibration detection chip U2. The fourteenth capacitor C14, the fifteenth capacitor C15, the sixteenth capacitor C16 and the seventeenth capacitor C17 form a parallel capacitor group to provide a 3.3V electrical signal for the external circuit.
[0137] Figure 4 A schematic diagram of the structure of a storage unit in a downhole directional detection system provided in an embodiment of the present application. Figure 4 The invention is introduced on the basis of the first embodiment. Figure 4 The structure of the central control module in the downhole directional detection system specifically includes:
[0138] A control unit 201 , a voltage stabilizing unit 202 , a vibration detecting unit 203 , a storage unit 204 , a protection unit 205 and a communication unit 206 .
[0139] according to Figure 4 The diagram provided shows that the storage unit 204 in the downhole directional detection system includes:
[0140] Storage chip U3 and eighteenth capacitor C18.
[0141] The first pin of the storage chip U3 is connected to the control unit 201 as the first end of the storage unit 204, the second pin is connected to the control unit 201 as the second end of the storage unit 204, the third pin is connected to the output end of the voltage stabilizing unit 202, the fourth pin is connected to the ground terminal GND, the fifth pin is connected to the control unit 201 as the third end of the storage unit 204, the sixth pin is connected to the control unit 201 as the fourth end of the storage unit 204, and the seventh pin and the eighth pin are connected to one end of the eighteenth capacitor C18 and the output end of the voltage stabilizing unit 202.
[0142] The other end of the eighteenth capacitor C18 is connected to the ground terminal GND.
[0143] according to Figure 4 In the diagram provided, the storage chip U3 is set as a high-temperature storage chip, which is connected to the corresponding functional pin of the control unit 201 through the SPI port, and records the operating status of the instrument at a fixed interval according to a predetermined format. Each time the detection signal fed back by the directional detection module 30 is obtained, the control unit 201 stores the detection signal in the storage chip U3.
[0144] Figure 5 A schematic diagram of the structure of a protection unit in a downhole directional detection system provided in an embodiment of the present application. Figure 5 The invention is introduced on the basis of the first embodiment. Figure 5 The structure of the protection unit 205 in the downhole directional detection system specifically includes:
[0145] A buffer chip U6, a protection chip U4, a fifth resistor R5, a sixth resistor R6 and a sixth port component P6.
[0146] The first pin and the third pin of the buffer chip U6 are respectively connected to the fourth end of the control unit 201, the second pin is connected to the ground terminal GND, the fourth pin is connected to one end of the fifth resistor R5, the fifth pin is connected to the output end of the voltage stabilizing unit 202, and the sixth pin is connected to one end of the sixth resistor R6.
[0147] The other end of the fifth resistor R5 is connected to the first pin of the sixth port P6 and the first pin of the protection chip U4.
[0148] The other end of the sixth resistor R6 is connected to the fourth pin of the sixth port component P6 and the third pin of the protection chip U4.
[0149] The second pin of the protection chip U4 is connected to the ground terminal GND, the fourth pin is connected to the first end of the directional detection module 30 , and the fifth pin is connected to the second end of the directional detection module 30 .
[0150] according to Figure 5 According to the diagram provided, the protection chip U4 is an ESD protector, which can provide transient surge current protection for the data line. When an abnormal current enters the directional detection system, the protection chip U4 will discharge the energy in a short time to ensure that the instrument is not damaged by the surge current. At the same time, the buffer chip U6 is connected to the protection chip U4, and is used to transmit the width modulated wave signal transmitted by the protection chip U4 to the subsequent circuit in a unidirectional manner. And the buffer chip U6 is a unidirectional data buffer. The signal generated by the control unit 201 flows through the first pin and the third pin of the buffer chip U6 respectively, and is output through the sixth pin and the fourth pin. The sixth port P6 is used as a socket for external electrical equipment, and the data flow direction is unidirectional, which can ensure that the system will not be affected when an external abnormal signal flows in.
[0151] Figure 6 A schematic diagram of the structure of a communication unit in a downhole directional detection system provided in an embodiment of the present application. Figure 6 The invention is introduced on the basis of the first embodiment. Figure 6 The structure of the communication unit 206 in the downhole directional detection system specifically includes:
[0152] Communication chip U5, seventh resistor R7, eighth resistor R8, ninth resistor R9, tenth resistor R10, eleventh resistor R11, twelfth resistor R12, thirteenth resistor R13, seventeenth capacitor C17, second diode D2, third diode D3 and seventh port component P7.
[0153] The first pin and the fourth pin of the communication chip U5 are connected to the control unit 201 as the first output terminal and the first input terminal of the communication unit 206 respectively, the second pin and the third pin are connected to one end of the seventh resistor R7, the fifth pin is connected to the ground terminal GND, the sixth pin is connected to one end of the eighth resistor R7, one end of the ninth resistor R9 and one end of the tenth resistor R10, the seventh pin is connected to the other end of the ninth resistor R9, one end of the eleventh resistor R11 and one end of the twelfth resistor R12, and the eighth pin is connected to one end of the seventeenth capacitor C17 and the other end of the eighth resistor R8 to the output end of the voltage stabilizing unit 202.
[0154] The other end of the seventh resistor R7 is connected to the output end of the voltage stabilizing unit 202 .
[0155] The other end of the seventeenth capacitor C17 and the other end of the eleventh resistor R11 are connected to the ground terminal GND respectively.
[0156] The other end of the tenth resistor R10 is connected to the forward output end of the second diode D2 and the first pin of the seventh port P7 as a first communication interface.
[0157] The other end of the twelfth resistor R12 is connected to the forward output end of the third diode D3 and the fourth pin of the seventh port P7 as a second communication interface.
[0158] An inverting input terminal of the second diode D2 and an inverting input terminal of the third diode D3 are connected to the ground terminal GND, respectively.
[0159] according to Figure 6 In the diagram provided, the communication chip U5 is set as an RS485 circuit. The communication chip U5 used has an automatic reversing function, and bidirectional communication can be achieved without separately leading out a pin as a data direction control pin.
[0160] In one possible example scenario, Fig.12 The schematic diagram of the process of online upgrade provided by the embodiment of the present application has a bootloader program inside the control unit 201, and the online download uses the RS485 interface for downloading. By writing a program, when receiving a response that requires an online upgrade program, the option bytes in the control unit 201 are configured as nBOOT1=1, NBOOT_SEL=1 and nBOOT0=0 and a RESET is performed, so that the control unit 201 enters the bootloader, and then the STM32 Cube Programmer can be used to download. When downloading, it is necessary to check run to main. After the program is burned, it will be detected again whether the above bytes have been modified. If it is found that it has been modified, the value will be changed back to the default value to prevent the upgrade mode from being entered again after the next power-on, and the online upgrade operation of the system is realized through the communication chip.
[0161] according to Figure 6 The diagram provided shows that after receiving the communication data from the control unit through the communication chip U5, the communication data is processed internally and then divided by multiple resistors, and then a communication signal is provided to the peripheral circuit through the 485 communication port A and the 485 communication port B. The direction of the communication signal is then controlled by the unidirectional conductivity of the two diodes, and the seventh port P7 is set as a socket to facilitate the peripheral communication device to connect the communication signal.
[0162] Figure 7 A schematic diagram of the structure of a voltage stabilizing unit in a downhole directional detection system provided in an embodiment of the present application. Figure 7The invention is introduced on the basis of the first embodiment. Figure 7 The structure of the voltage stabilizing unit 202 in the downhole directional detection system specifically includes:
[0163] A voltage stabilizing chip U7, a fifth port component P5, a first diode D1, a sixth capacitor C6, a seventh capacitor C7, an eighth capacitor C8, a ninth capacitor C9 and a first voltage stabilizing diode Z1.
[0164] The first pin of the voltage stabilizing chip U7 is connected to the ground terminal GND, the second pin is connected to one end of the sixth capacitor C6 and the forward output end of the first diode D1, and the third pin is connected to one end of the seventh capacitor C7, one end of the eighth capacitor C8, one end of the ninth capacitor C9 and the forward output end of the first voltage stabilizing diode Z1 as the output end of the voltage stabilizing unit 202 to the first end of the control unit 201.
[0165] The other end of the sixth capacitor C6, the other end of the seventh capacitor C7, the other end of the eighth capacitor C8, the other end of the ninth capacitor C9 and the inverting input end of the first zener diode Z1 are respectively connected to the ground end GND.
[0166] A first pin of the fifth port element P5 is connected to the inverting input terminal of the first diode D1 , and a second pin of the fifth port element P5 is connected to the ground terminal GND.
[0167] according to Figure 7 The diagram provided is for the voltage regulator chip U7 and the peripheral circuit. The power module 10 will output a 7.5V power signal and enter the first diode D1 through the fifth port P5. The first diode D1 is an anti-reverse connection diode. The main power is filtered by the sixth capacitor C6 as a filter capacitor and enters the second input pin of the voltage regulator chip U7. After being stabilized by the voltage regulator chip U7, it is output from the third pin, flows through the filter capacitors of the seventh capacitor C7, the eighth capacitor C8, and the ninth capacitor C9, and is connected in parallel with the bidirectional transient voltage suppression diode (the first voltage regulator diode Z1) to power the system.
[0168] Figure 8 A schematic diagram of the structure of a power supply module in a downhole directional detection system provided in an embodiment of the present application. Figure 8 The invention is introduced on the basis of the first embodiment. Figure 8 The structure of the power module 10 in the downhole directional detection system specifically includes:
[0169] The power chip U11, the eighth port component P8, the ninth port component P9, the tenth port component P10, the eleventh port component P11, the thirteenth resistor R13, the fourteenth resistor R14, the fifteenth resistor R15, the sixteenth resistor R16, the seventeenth resistor R17, the eighteenth resistor R18, the nineteenth resistor R19, the twentieth resistor R20, the twenty-first resistor R21, the twenty-second resistor R22, the nineteenth capacitor C19, the twentieth capacitor C20, the twenty-first capacitor C21, the twenty-second capacitor C22, the twenty-third capacitor C23, the twenty-fourth capacitor C24, the twenty-fifth capacitor C25, the twenty-sixth capacitor C26, the twenty-seventh capacitor C27, the first inductor L1, the fourth diode D4, the fifth diode D5, the sixth diode D6, the seventh diode D7, the eighth diode D8, the second voltage regulator diode Z2, the first transistor Q1 and the second transistor Q2.
[0170] A first pin of the power chip U11 is connected to one end of the nineteenth capacitor C19, a second pin is connected to one end of the twentieth capacitor C20, one end of the twenty-first capacitor C21, one end of the thirteenth resistor R13 and one end of the fourteenth resistor R14, a fourth pin is connected to one end of the fifteenth resistor R15, a fifth pin is connected to the feedback signal terminal FB2, a sixth pin is connected to one end of the sixteenth resistor R16 and one end of the twenty-second capacitor C22, a seventh pin is connected to the ground terminal GND, and an eighth pin is connected to the other end of the nineteenth capacitor C19, one end of the first inductor L1 and the forward output end of the fourth diode D4.
[0171] The other end of the thirteenth resistor R13 and the other end of the fourteenth resistor R14 are connected to a first pin of an eighth port P8 , and a second pin of the eighth port P8 is connected to a ground terminal GND.
[0172] The other end of the sixteenth resistor R16 is connected to one end of the twenty-third capacitor C23.
[0173] The other end of the first inductor L1 is connected to one end of the seventeenth resistor R17, one end of the eighteenth resistor R18, one end of the twenty-fourth capacitor C24, one end of the twenty-fifth capacitor C25, one end of the twenty-sixth capacitor C26, one end of the twenty-seventh capacitor C27, the forward output end of the second voltage zener diode Z2, the forward input end of the fifth diode D5, the first end of the first transistor Q1, and one end of the nineteenth resistor R19.
[0174] The other end of the seventeenth resistor R17 , the other end of the eighteenth resistor R18 , and one end of the twentieth resistor R20 are connected to the feedback signal terminal FB2 .
[0175] The first end of the second transistor Q2 is connected to the other end of the nineteenth resistor R19 and the control end of the first transistor Q1, the control end is connected to one end of the twenty-first resistor R21 and one end of the twenty-second resistor R22, and the second end and the other end of the twenty-second resistor R22 are connected to the ground end GND.
[0176] The other end of the twenty-first resistor R21 and the first pin of the ninth port P9 are connected to the input end of the voltage stabilizing unit 202 .
[0177] A second terminal of the first transistor Q1 is connected to a first pin of a tenth port P10.
[0178] A second pin of the ninth port P9 is connected to the control unit 201 .
[0179] The forward output terminal of the fifth diode D5 is connected to the reverse input terminal of the sixth diode D6, the forward output terminal of the sixth diode D6 is connected to the reverse input terminal of the seventh diode D7, the forward output terminal of the seventh diode D7 is connected to the reverse input terminal of the eighth diode D8, and the forward output terminal of the eighth diode D8 is connected to the first pin of the eleventh port P11.
[0180] The other end of the twentieth capacitor C20, the other end of the twenty-first capacitor C21, the other end of the fifteenth resistor R15, the other end of the twenty-second capacitor C22, the other end of the twenty-third capacitor C23, the reverse input end of the fourth diode D4, the other end of the twenty-fourth capacitor C24, the other end of the twenty-fifth capacitor C25, the other end of the twenty-sixth capacitor C26, the other end of the twenty-seventh capacitor C27, the reverse input end of the second Zener diode Z2, the other end of the twentieth resistor R20, the second pin of the tenth port component P10 and the second pin of the eleventh port component P11 are respectively connected to the ground terminal GND.
[0181] according to Figure 8According to the diagram provided, the power supply enters from the first pin and the second pin of the eighth port P8 interface, and after the positive pole flows through the thirteenth resistor R13 and the fourteenth resistor R14 acting as protection resistors, it enters the power chip U11 through the twentieth capacitor C20 and the twenty-first capacitor C21. The fifteenth resistor R15 is a frequency resistor to ensure that the power chip U11 operates at a stable frequency. The sixteenth resistor R16, the twenty-third capacitor C23 and the twenty-second capacitor C22 form a voltage comparison unit, the seventeenth resistor R17, the eighteenth resistor R18 and the twenty-third resistor R20 form a voltage feedback unit, and the fourth diode D4 and the first inductor L1 constitute the energy storage and energy storage part to ensure the normal output of the 7.5V voltage. The twenty-fourth capacitor C24, the twenty-fifth capacitor C25, the twenty-sixth capacitor C26, and the twenty-seventh capacitor C27 are filter capacitors. The signal at the input end of the twenty-first resistor R21 comes from the control unit. When the input end of the twenty-first resistor R21 is at a low level, the second transistor Q1 is not turned on, and the first transistor Q2 is also not turned on at this time. The tenth port piece P10 serves as a socket and the power output is 0; when the input end of the twenty-first resistor R21 is at a high level, the second transistor Q1 is turned on, and the first transistor Q2 is also turned on at this time. The tenth port piece P10 serves as a socket and the power output is 7.5V. This structure is used to restart when the directional sensor has no response to ensure reliable underground operation.
[0182] In a possible example scenario, the electric signal is transmitted to the voltage regulator chip U7 through the power supply chip U11, and after voltage stabilization processing by the voltage regulator chip, stable power is provided to the main control chip U1; then, by periodically acquiring the detection signal transmitted by the directional detection module 30 and the vibration detection signal detected by the vibration detection chip U2, the detection signal, the vibration detection signal and the analysis data are transmitted to the storage chip U3 through the main control chip U1 for data storage and backup; when the data is analyzed to be abnormal through the main control chip U1, the connection with the main control chip U1 is disconnected through the buffer chip U6 and the protection chip U4 to protect the main control chip U1; at the same time, when the data is normal, real-time communication is achieved with peripheral communication equipment through the communication chip U5, so as to realize the technical effect of online upgrade and fault restart of downhole directional detection.
[0183] Fig. 9 A flow chart of a control method for a downhole directional detection system provided in an embodiment of the present application. Applicable to a directional detection system. Fig. 9 The steps of the control method of the downhole directional detection system specifically include:
[0184] S901. Configure the system mode through software, and initialize the system after the configuration is completed.
[0185] The embodiment of the present application is applied to the underground directional detection system. The system is initialized by configuring data; when obtaining the directional detection signal, the directional detection signal is analyzed to determine whether the current detection environment is normal. When an abnormal detection situation occurs, the working state of the internal structure of the system is adjusted to achieve the purpose of protection or fault restart, thereby realizing the upgrade and restart operation of the system.
[0186] Furthermore, the constructed directional detection system is firstly processed for mode configuration, and parameter values are selected according to the position and depth data of the downhole directional detection. When the mode configuration data is selected, the system is initialized to provide a reference basis for the next step of detection data.
[0187] S902: Acquire, by a control unit, a directional detection signal sent by a directional detection module.
[0188] Furthermore, after the system is initialized, the control unit acquires the directional detection signal detected by the directional detection module, and the vibration detection unit acquires the corresponding vibration detection signal, so as to provide analysis data for the next step of analyzing the working status of the detection system.
[0189] S903: Determine the working status of the system based on the directional detection signal.
[0190] The working status mentioned here can be understood as whether the currently constructed downhole directional detection system is in a normal operating state or an abnormal operating state. The working status is used to characterize the safety status of the current oil detection or downhole detection.
[0191] Furthermore, the detected vibration detection signal and directional detection signal are fed back to the control unit for analysis, and the signal data is used to determine whether the current system is in a normal operating state or an abnormal operating state, thereby determining whether the system is in a safe working environment.
[0192] S904. Determine a system adjustment strategy when the working state is in an abnormal state.
[0193] The adjustment strategy mentioned here can be understood as a means of dealing with abnormal conditions.
[0194] Furthermore, when it is determined that the current operating environment of the system is in an abnormal state, it is characterized that there is a fault in the current system, and different adjustment strategies are generated for different fault causes to provide protection measures for the system.
[0195] S905: Control the system based on the adjustment strategy to enable the system to complete the online upgrade process.
[0196] Furthermore, when the system is abnormal, by adjusting the strategy to execute the improvement to the system, the system can be restarted or upgraded online to solve the problem of system abnormality caused by the fault, so as to achieve the control of the downhole directional detection system.
[0197] The control method of a downhole directional detection system provided in an embodiment of the present application configures the mode of the system through software, initializes the system after the configuration is completed; obtains the directional detection signal sent by the directional detection module through the control unit; determines the working state of the system based on the directional detection signal; determines the adjustment strategy of the system when the working state is in an abnormal state; and controls the system based on the adjustment strategy so that the system completes the online upgrade process. By improving the system through the adjustment strategy, the system can be restarted or upgraded online to solve the problem of system abnormality caused by faults, so as to achieve the control of the downhole directional detection system.
[0198] Fig.10 A flowchart of another method for controlling a downhole directional detection system provided in an embodiment of the present application. Fig.10 This is introduced based on the previous embodiment. Fig.10 The steps of the control method of the downhole directional detection system specifically include:
[0199] S1001. Configure the system mode through software, and initialize the system after the configuration is completed.
[0200] Furthermore, the constructed downhole directional detection system is firstly processed for mode configuration, and parameter values are selected according to the position and depth data of the downhole directional detection. When the mode configuration data is selected, the system is initialized to provide a reference basis for the next step of detection data.
[0201] According to different usage environments and functions, the system allows different working modes to be configured. Six arrays are opened in the main control chip U1. The first three use three common fixed modes, and the last three allow users to customize. For example, a data content includes "AB AB x1 data check bit". Among them, AB AB is the synchronization header, x1 is the total length of the data, data contains the data command and the number of repetitions required by the user, and the check bit is an XOR check to ensure that the data is transmitted correctly when the system interacts with the outside, thereby improving the stability of the system.
[0202] S1002. Acquire a directional detection signal sent by a directional detection module through a control unit.
[0203] Furthermore, after the system is initialized, the directional detection signal detected by the directional detection module is acquired through the control unit, and the corresponding vibration detection signal is acquired through the vibration detection unit, so as to provide analysis data for the next step of analyzing the working status of the downhole directional detection system.
[0204] During downhole oil well detection, MWD data is transmitted from the well to the ground using mud pulse signals. Since the instrument is generally more than 2,000 meters away from the ground, mud pulse modulation signals are generally used to upload the downhole attitude data to the ground during drilling. This module supports mud transmission encoding algorithms. The program first reads the above working mode and arranges the various types of data in sequence to ensure that the ground part is synchronized with the system data decoding. The mud pulse is encoded as a one-dimensional position code with an adjustable pulse width. The pulse encoding follows the following formula:
[0205] Synchronous head: 1.5+0.75*synchronous head N;
[0206] Pulse 1: 12.75-0.75*sync header+0.75*data 1;
[0207] Pulse 2: 12.75-0.75*data 1+0.75*data 2;
[0208] Pulse N: 12.75-0.75*data (N-1) + 0.75*data N;
[0209] End: 14.25-0.75*data N.
[0210] This encoding method is stable and reliable. It relies on the pulse time interval to distinguish data. The interval between each data is about 10 seconds, which can save battery power and help extend the instrument's use time. In addition, with the help of a longer time interval, it helps the ground decoding software to perform filtering and decoding, reducing the complexity of the software. The system has strong scalability and can be connected to various instruments only through software upgrades.
[0211] S1003: When the directional detection signal is within a set threshold range, determine that the working state is a normal state.
[0212] S1004: When the directional detection signal exceeds a threshold range, determine that the working state is an abnormal state.
[0213] Furthermore, the working state of the system is determined by analyzing the vibration detection signal and the directional detection signal; when the vibration detection signal and the directional detection signal are within the set threshold range, the working state is determined to be normal; when the vibration detection signal and the directional detection signal are outside the threshold range, the working state is determined to be abnormal, indicating that there is a fault problem in the system.
[0214] S1005. When the working state is an abnormal state, determine whether the control unit receives the directional detection signal again within a set time, and obtain a corresponding determination result.
[0215] S1006. Determine an adjustment strategy for the control unit according to the judgment result.
[0216] S1007. When the control unit receives the directional detection signal again, it determines that the judgment result is the first judgment result.
[0217] S1008. When the control unit does not receive the directional detection signal, determine that the judgment result is the second judgment result.
[0218] S1009: Determine, according to the first determination result, that the adjustment strategy is an upgrade strategy.
[0219] S1010: Determine, according to the second determination result, that the adjustment strategy is a restart strategy.
[0220] Furthermore, when the working state is abnormal, when the control unit receives the directional detection signal again, it indicates that the current system can still collect data, and the adjustment strategy is determined to be an upgrade strategy; when the control unit does not receive the directional detection signal, it indicates that the system cannot continue to collect data, and the system has an irreversible fault and needs to be improved by restarting the system, and then the adjustment strategy is determined to be a restart strategy.
[0221] S1011. When the adjustment strategy is an upgrade strategy, the system upgrade operation is implemented by downloading a target program.
[0222] S1012: When the adjustment strategy is the restart strategy, the output terminal of the control power module starts a restart signal to re-supply the central control module.
[0223] Furthermore, according to different adjustment strategies, different operations are performed on the system; according to the upgrade strategy, the system upgrade operation is implemented by downloading the target program; according to the restart strategy, the restart signal is started at the output end of the control power module to re-power the central control module, thereby improving the operability of the system.
[0224] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A downhole directional detection system, characterized in that: include: Power module, central control module and directional detection module; The power module is connected to the central control module, and the power module provides power to the central control module; The central control module is connected to the directional detection module, and the central control module obtains the mud pulse signal detected by the directional detection module, analyzes it and transmits it to the ground; The central control module includes: a control unit, a voltage stabilization unit, a vibration detection unit, a storage unit, a protection unit and a communication unit; A first end of the control unit is connected to an output end of the voltage stabilizing unit, a second end of the control unit is connected to one end of the vibration detecting unit, a third end of the control unit is connected to the storage unit, a fourth end of the control unit is connected to the protection unit, and a fifth end of the control unit is connected to the communication unit; The input end of the voltage stabilizing unit is connected to the output end of the power module; The other end of the vibration detection unit is connected to the directional detection module, the voltage stabilizing unit inputs the power supply signal output by the power module to the control unit after voltage stabilization processing, the control unit receives the vibration detection signal input by the vibration detection unit, determines the vibration state after analysis and processing, communicates with the outside through the communication signal, and issues an instruction when the vibration detection signal is abnormal, the storage unit stores the abnormal state data according to the instruction, and protects the control unit through the protection unit; The control unit comprises: A main control chip, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, a first port device, a second port device, a third port device, a fourth port device, a first crystal oscillator and a second crystal oscillator, wherein the port device is used for externally connecting a transmission data line; The second pin of the main control chip is connected to one end of the first crystal oscillator and the first capacitor, the third pin is connected to the other end of the first crystal oscillator and the second capacitor, the fourth pin is connected to the first pin of the first port component, the fifth pin is connected to the sixth pin and then connected to the output end of the voltage stabilizing unit and the first pin of the second port component, the seventh pin is connected to the ground terminal, the first resistor and the second crystal oscillator are connected between the eighth pin and the ninth pin, the tenth pin is connected to one end of the fifth capacitor and one end of the second resistor, the thirteenth pin is connected to the second pin of the second port component, the fourteenth pin is connected to the first pin of the second port component, the sixteenth pin, the seventeenth pin, the eighteenth pin and the nineteenth pin are respectively connected to the first input end, the second input end, the third input end and the fourth input end of the vibration detection unit, and the twenty-second pin and the twenty-third pin is connected to the second pin and the first pin of the fourth port device respectively, the twenty-ninth pin is connected to the first input terminal of the communication unit, the thirty-second pin is connected to the first output terminal of the communication unit, the thirty-third pin is connected to the power ground terminal, the thirty-fifth pin is connected to one end of the second resistor and the second pin of the second port device, the thirty-sixth pin is connected to one end of the third resistor and the third pin of the second port device, the thirty-eighth pin is connected to the first end of the storage unit, the thirty-ninth pin is connected to the second end of the storage unit, the forty-first pin is connected to the third end of the storage unit, the forty-second pin is connected to the second pin of the first port device, the forty-third pin and the forty-fourth pin are connected to the first input terminal and the second input terminal of the protection unit respectively, and the forty-sixth pin is connected to the fourth end of the storage unit; The other end of the first capacitor is connected to the ground terminal, and the other end of the second capacitor is connected to the ground terminal; One end of the second crystal oscillator is connected to one end of the third capacitor, the other end of the third capacitor is connected to the ground, the other end of the second crystal oscillator is connected to one end of the fourth capacitor, the other end of the fourth capacitor is connected to the ground; The other end of the fifth capacitor is connected to the ground end; The other end of the second resistor is connected to the output end of the voltage stabilizing unit; The fourth pin of the second port is connected to the ground terminal; The third pin of the third port is connected to the ground terminal; The other end of the third resistor is connected to the output end of the voltage stabilizing unit; The other end of the fourth resistor is connected to the ground terminal; The protection unit comprises: A buffer chip, a protection chip, a fifth resistor, a sixth resistor and a sixth port device; The first pin and the third pin of the buffer chip are respectively connected to the fourth end of the control unit, the second pin is connected to the ground end, the fourth pin is connected to one end of the fifth resistor, the fifth pin is connected to the output end of the voltage stabilizing unit, and the sixth pin is connected to one end of the sixth resistor; The other end of the fifth resistor is connected to the first pin of the sixth port device and the first pin of the protection chip; The other end of the sixth resistor is connected to the fourth pin of the sixth port device and the third pin of the protection chip; The second pin of the protection chip is connected to the ground terminal, the fourth pin is connected to the first terminal of the directional detection module, and the fifth pin is connected to the second terminal of the directional detection module.
2. The system according to claim 1, characterized in that The voltage stabilizing unit comprises: A voltage stabilizing chip, a fifth port device, a first diode, a sixth capacitor, a seventh capacitor, an eighth capacitor, a ninth capacitor and a first voltage stabilizing diode; The first pin of the voltage stabilizing chip is connected to the ground terminal, the second pin is connected to one end of the sixth capacitor and the forward output end of the first diode, and the third pin is connected to one end of the seventh capacitor, one end of the eighth capacitor, one end of the ninth capacitor and the forward output end of the first voltage stabilizing diode as the output end of the voltage stabilizing unit to the first end of the control unit; The other end of the sixth capacitor, the other end of the seventh capacitor, the other end of the eighth capacitor, the other end of the ninth capacitor and the reverse input end of the first voltage stabilizing diode are connected to the ground end respectively; The first pin of the fifth port device is connected to the reverse input terminal of the first diode, and the second pin is connected to the ground terminal.
3. The system according to claim 1, characterized in that The vibration detection unit comprises: a vibration detection chip, a tenth capacitor, an eleventh capacitor, a twelfth capacitor, a thirteenth capacitor, a fourteenth capacitor, a fifteenth capacitor, a sixteenth capacitor and a seventeenth capacitor; The first pin, the second pin, the third pin and the fourth pin of the vibration detection chip are connected to the control unit respectively, the fifth pin and one end of the tenth capacitor and one end of the eleventh capacitor are connected to the output end of the voltage stabilizing unit, the sixth pin and the other end of the tenth capacitor, the other end of the eleventh capacitor, one end of the twelfth capacitor and one end of the thirteenth capacitor are connected to the ground terminal, the eighth pin is connected to the other end of the twelfth capacitor and the other end of the thirteenth capacitor, the ninth pin is connected to the ground terminal, the tenth pin is connected to one end of the fourteenth capacitor and one end of the fifteenth capacitor, and the eleventh pin is connected to one end of the sixteenth capacitor and one end of the seventeenth capacitor; The other end of the fourteenth capacitor, the other end of the fifteenth capacitor, the other end of the sixteenth capacitor and the other end of the seventeenth capacitor are connected to the ground terminal.
4. The system according to claim 1, characterized in that The storage unit comprises: Memory chip and eighteenth capacitor; The first pin of the memory chip is connected to the control unit as the first end of the memory unit, the second pin is connected to the control unit as the second end of the memory unit, the third pin is connected to the output end of the voltage stabilizing unit, the fourth pin is connected to the ground end, the fifth pin is connected to the control unit as the third end of the memory unit, the sixth pin is connected to the control unit as the fourth end of the memory unit, and the seventh pin and the eighth pin are connected to one end of the eighteenth capacitor and the output end of the voltage stabilizing unit; The other end of the eighteenth capacitor is connected to the ground.
5. The system according to claim 1, characterized in that The communication unit comprises: A communication chip, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a seventeenth capacitor, a second diode, a third diode and a seventh port device; The first pin and the fourth pin of the communication chip are connected to the control unit as the first output end and the first input end of the communication unit, respectively, the second pin and the third pin are connected to one end of the seventh resistor, the fifth pin is connected to the ground terminal, the sixth pin is connected to one end of the eighth resistor, one end of the ninth resistor and one end of the tenth resistor, the seventh pin is connected to the other end of the ninth resistor, one end of the eleventh resistor and one end of the twelfth resistor, and the eighth pin is connected to one end of the seventeenth capacitor and the other end of the eighth resistor to the output end of the voltage stabilizing unit; The other end of the seventh resistor is connected to the output end of the voltage stabilizing unit; The other end of the seventeenth capacitor and the other end of the eleventh resistor are connected to the ground terminal respectively; The other end of the tenth resistor is connected to the forward output end of the second diode and the first pin of the seventh port device as a first communication interface; The other end of the twelfth resistor is connected to the forward output end of the third diode and the fourth pin of the seventh port device as a second communication interface; An inverting input terminal of the second diode and an inverting input terminal of the third diode are connected to ground terminals, respectively.
6. The system according to claim 1, characterized in that The power module comprises: A power chip, an eighth port component, a ninth port component, a tenth port component, an eleventh port component, a thirteenth resistor, a fourteenth resistor, a fifteenth resistor, a sixteenth resistor, a seventeenth resistor, an eighteenth resistor, a nineteenth resistor, a twentieth resistor, a twenty-first resistor, a twenty-second resistor, a nineteenth capacitor, a twentieth capacitor, a twenty-first capacitor, a twenty-second capacitor, a twenty-third capacitor, a twenty-fourth capacitor, a twenty-fifth capacitor, a twenty-sixth capacitor, a twenty-seventh capacitor, a first inductor, a fourth diode, a fifth diode, a sixth diode, a seventh diode, an eighth diode, a second voltage regulator diode, a first transistor, and a second transistor; The first pin of the power chip is connected to one end of the nineteenth capacitor, the second pin is connected to one end of the twenty-third capacitor, one end of the twenty-first capacitor, one end of the thirteenth resistor and one end of the fourteenth resistor, the fourth pin is connected to one end of the fifteenth resistor, the fifth pin is connected to the feedback signal terminal, the sixth pin is connected to one end of the sixteenth resistor and one end of the twenty-second capacitor, the seventh pin is connected to the ground terminal, and the eighth pin is connected to the other end of the nineteenth capacitor, one end of the first inductor and the forward output terminal of the fourth diode; The other end of the thirteenth resistor and the other end of the fourteenth resistor are connected to the first pin of the eighth port device, and the second pin of the eighth port device is connected to the ground terminal; The other end of the sixteenth resistor is connected to one end of the twenty-third capacitor; The other end of the first inductor is connected to one end of the seventeenth resistor, one end of the eighteenth resistor, one end of the twenty-fourth capacitor, one end of the twenty-fifth capacitor, one end of the twenty-sixth capacitor, one end of the twenty-seventh capacitor, the forward output end of the second voltage zener diode, the forward input end of the fifth diode, the first end of the first transistor, and one end of the nineteenth resistor; The other end of the seventeenth resistor, the other end of the eighteenth resistor and one end of the twentieth resistor are connected to the feedback signal terminal; The first end of the second transistor is connected to the other end of the nineteenth resistor and the control end of the first transistor, the control end is connected to one end of the twenty-first resistor and one end of the twenty-second resistor, and the second end and the other end of the twenty-second resistor are connected to the ground end; The other end of the twenty-first resistor and the first pin of the ninth port device are connected to the input end of the voltage stabilizing unit; A second terminal of the first transistor is connected to a first pin of a tenth port; The second pin of the ninth port is connected to the control unit; The forward output terminal of the fifth diode is connected to the reverse input terminal of the sixth diode, the forward output terminal of the sixth diode is connected to the reverse input terminal of the seventh diode, the forward output terminal of the seventh diode is connected to the reverse input terminal of the eighth diode, and the forward output terminal of the eighth diode is connected to the first pin of the eleventh port device; The other end of the 20th capacitor, the other end of the 21st capacitor, the other end of the 15th resistor, the other end of the 22nd capacitor, the other end of the 23rd capacitor, the reverse input terminal of the fourth diode, the other end of the 24th capacitor, the other end of the 25th capacitor, the other end of the 26th capacitor, the other end of the 27th capacitor, the reverse input terminal of the second Zener diode, the other end of the 20th resistor, the second pin of the tenth port device and the second pin of the 11th port device are respectively connected to the ground terminal.
7. A control method for a downhole directional detection system according to claim 1, characterized in that: include: Configure the system mode through software, and initialize the system after the configuration is completed; Acquire a directional detection signal sent by the directional detection module through the control unit; Determining the operating status of the system based on the directional detection signal; determining an adjustment strategy for the system when the working state is in an abnormal state; The system is controlled based on the adjustment strategy so that the system completes an online upgrade process.
8. The method according to claim 7, characterized in that The determining the working state of the system based on the directional detection signal comprises: When the directional detection signal is within a set threshold range, determining that the working state is a normal state; When the directional detection signal exceeds the threshold range, the working state is determined to be an abnormal state.
9. The method according to claim 8, characterized in that The step of determining the adjustment strategy of the system when the working state is in an abnormal state includes: When the working state is an abnormal state, determining whether the control unit receives a directional detection signal again within a set time, and obtaining a corresponding determination result; An adjustment strategy of the control unit is determined according to the judgment result.
10. The method according to claim 9, characterized in that Determining the adjustment strategy of the control unit according to the judgment result includes: When the control unit receives the directional detection signal again, determining that the judgment result is the first judgment result; When the control unit does not receive the directional detection signal, determining that the judgment result is a second judgment result; Determining the adjustment strategy as an upgrade strategy according to the first determination result; The adjustment strategy is determined to be a restart strategy according to the second determination result.
11. The method according to claim 10, characterized in that The controlling the system based on the adjustment strategy includes: When the adjustment strategy is an upgrade strategy, the system upgrade operation is implemented by downloading the target program; When the adjustment strategy is a restart strategy, the output end of the control power module starts a restart signal to re-supply the central control module.
