Data transmission method and device based on injection well pipe
By using pressure wave transmission in downhole water injection pipelines, the problem of shortened valve lifespan caused by frequent valve opening and closing was solved, achieving efficient transmission and accurate decoding of downhole commands and data, and extending the valve's service life.
Patent Information
- Application Number
- CN202310118942.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-06
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2043-02-06
AI Technical Summary
The frequent opening and closing of existing downhole valves leads to a shortened service life, and this problem cannot be effectively solved.
A cableless pressure wave transmission method based on water injection well pipeline is adopted. The target command is converted into pressure wave code through coding rules, and transmitted downhole by controlling the opening time of the wellhead regulating valve, thereby reducing the number of valve openings and closings and extending service life.
It enables accurate and efficient transmission of downhole commands and data, reduces valve wear, and extends valve service life.
Smart Images

Figure CN116291344B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present specification belongs to the technical field of oilfield separate layer injection wells, and particularly relates to a data transmission method and device based on an injection well pipe. BACKGROUND
[0002] In the technical field of oilfield separate layer injection wells, it is often necessary to transmit relevant instructions or data from a ground measurement and control system to a downhole water distributor control system to control relevant operations in the downhole.
[0003] However, based on the existing instruction transmission method, it is often necessary to frequently open and close relevant valves multiple times, which causes relatively serious wear of the relevant valves, thereby affecting the service life of the relevant valves.
[0004] In view of the above problems, no effective solution has been proposed so far. SUMMARY
[0005] The present specification provides a data transmission method and device based on an injection well pipe, which can effectively reduce the number of times of opening and closing the valves and the wear of the valves, and accurately and efficiently transmit target instructions and target engineering quantity parameters in a cableless transmission manner through target pressure waves from a ground measurement and control system to a downhole water distributor control system, thereby prolonging the service life of the valves.
[0006] The present specification provides a data transmission method based on an injection well pipe, applied to a ground measurement and control system, and the method comprises:
[0007] obtaining target instructions about the injection well pipe; wherein the target instructions also carry target engineering quantity parameters when the target instructions are executed;
[0008] encoding the target instructions into a corresponding first target pressure wave code according to a preset encoding rule; wherein the first target pressure wave code at least includes a start bit, a stop bit, a function code bit and a data bit; the wavelength parameter of the function code bit is used to represent the instruction type of the target instructions; and the wavelength parameter of the data bit is used to represent the target engineering quantity parameters;
[0009] transmitting the first target pressure wave code to the downhole water distributor control system by changing the downhole pressure data through controlling the opening degree time change of the wellhead regulating valve according to the preset control rule and the first target pressure wave code.
[0010] In one embodiment, the data bit includes a plurality of sequentially arranged data bits.
[0011] Correspondingly, the combination of the wavelength parameters of the plurality of sequentially arranged data bits is used to indicate the data value based on the decimal system.
[0012] In one embodiment, the data bits include a first data bit, a second data bit and a third data bit arranged in sequence; wherein the wavelength parameter of the first data bit is used to indicate the data value of the ten's place, the wavelength parameter of the second data bit is used to indicate the data value of the one's place, and the wavelength parameter of the third data bit is used to indicate the data value of the decimal place.
[0013] In one embodiment, according to the preset control rule and the first target pressure wave code, the downhole pressure data is changed by controlling the opening duration change of the wellhead regulating valve, including:
[0014] According to the preset control rule and the start bit in the first target pressure wave code, the opening of the wellhead regulating valve is changed from the current opening to full closing, and maintained for a first time corresponding to the wavelength parameter of the start bit, to form a downward pressure wave;
[0015] According to the preset control rule and the function code bit in the first target pressure wave code, the opening of the wellhead regulating valve is changed from the current opening to full opening, and maintained for a second time corresponding to the wavelength parameter of the function code bit, to form an upward pressure wave;
[0016] According to the preset control rule and the data bit in the first target pressure wave code, the opening of the wellhead regulating valve is changed from the current opening to full opening, and maintained for a third time corresponding to the wavelength parameter of the data bit, to form an upward pressure wave;
[0017] According to the preset control rule and the stop bit in the first target pressure wave code, the opening of the wellhead regulating valve is changed from the current opening to full closing, and maintained for a fourth time corresponding to the wavelength parameter of the stop bit, to form a downward pressure wave.
[0018] In one embodiment, in the case where the data bits include a first data bit, a second data bit and a third data bit arranged in sequence, according to the preset control rule and the data bit in the first target pressure wave code, the opening of the wellhead regulating valve is changed from the current opening to full opening, and maintained for a third time corresponding to the wavelength parameter of the data bit, to form an upward pressure wave, including:
[0019] According to the preset control rule and the first data bit, the opening of the wellhead regulating valve is changed from the current opening to full opening, and maintained for a first third time corresponding to the wavelength parameter of the first data bit, to form a first upward pressure wave;
[0020] According to the preset control rule and the second data bit, the opening of the wellhead regulating valve is changed from the current opening to full opening, and maintained for a second third time corresponding to the wavelength parameter of the second data bit, to form a second upward pressure wave;
[0021] According to the preset control rule and the third data bit, the opening degree of the wellhead regulating valve is changed from the current opening degree to full opening, and a third third time length corresponding to a wavelength parameter of the third data bit is maintained to form a third upward pressure wave.
[0022] The present specification also provides a data transmission method based on a water injection well pipe, applied to a downhole water distributor control system, and the method comprises:
[0023] According to the preset acquisition rule, the downhole pressure value is monitored, and downhole pressure data of a target time period meeting the requirements is acquired; wherein the downhole pressure data of the target time period meeting the requirements is generated by the ground measurement and control system according to the preset control rule and a first target pressure wave code through control of the opening degree time length change of the wellhead regulating valve;
[0024] According to the downhole pressure data of the target time period, the first target pressure wave code is acquired;
[0025] The start bit and the stop bit are determined in the first target pressure wave code; and the function code bit and the data bit are extracted from the first target pressure wave code according to the start bit and the stop bit;
[0026] According to the preset encoding rule, the wavelength parameter of the function code bit and the wavelength parameter of the data bit are used for decoding processing to determine the instruction type of the target instruction and the target engineering quantity parameter when the target instruction is executed;
[0027] The target instruction is determined according to the instruction type of the target instruction; and the target instruction is executed based on the target engineering quantity parameter.
[0028] In one embodiment, according to the preset acquisition rule, the downhole pressure value is monitored, and downhole pressure data of a target time period meeting the requirements is acquired, comprising:
[0029] According to the preset acquisition rule, the downhole pressure value is monitored at a preset time interval;
[0030] According to the monitored downhole pressure value, downhole pressure data of a first time period is acquired; and the downhole pressure data of the first time period is stored in a first cache area;
[0031] At a preset time interval, downhole pressure data of a second time period is acquired; and whether the downhole pressure data of the first time period meets a preset first requirement is determined according to the downhole pressure data of the second time period;
[0032] In a case where it is determined that the downhole pressure data of the first time period does not meet the preset first requirement, the data in the first cache area is deleted; and the downhole pressure data of the second time period is stored in the first cache area.
[0033] In one embodiment, the start bit and the stop bit are determined in the first target pressure wave code; and the function code bit and the data bit are extracted from the first target pressure wave code according to the start bit and the stop bit, including:
[0034] Based on the sliding window method, the rising edge and the falling edge are determined in the first target pressure wave code by taking difference value operation on the window data;
[0035] According to the rising edge and the falling edge, the start bit and the stop bit are determined in the first target pressure wave code;
[0036] The pressure wave code adjacent to the start bit in the first target pressure wave code is determined as the function code bit;
[0037] The remaining pressure wave code in the first target pressure wave code except the start bit, the stop bit and the function code bit is determined as the data bit.
[0038] In one embodiment, after executing the target instruction based on the target engineering quantity parameter, the method further includes:
[0039] According to the execution result, the corresponding target feedback result is generated;
[0040] According to the preset encoding rule, the target feedback result is encoded into the corresponding second target pressure wave code;
[0041] According to the preset control rule and the second target pressure wave code, the downhole pressure data is changed by controlling the opening degree time change of the water nozzle, so as to transmit the second target pressure code to the ground control system.
[0042] The specification also provides a data transmission device based on a water injection well pipeline, applied to a ground control system, the device includes:
[0043] The acquisition module is used to acquire a target instruction about the water injection well pipeline; wherein the target instruction also carries a target engineering quantity parameter when the target instruction is executed;
[0044] The encoding module is used to encode the target instruction into the corresponding first target pressure wave code according to the preset encoding rule; wherein the first target pressure wave code at least includes: start bit, stop bit, function code bit and data bit; the wavelength parameter of the function code bit is used to represent the instruction type of the target instruction; and the wavelength parameter of the data bit is used to represent the target engineering quantity parameter;
[0045] The transmission module is used to change the downhole pressure data by controlling the opening degree time change of the wellhead regulating valve according to the preset control rule and the first target pressure wave code, so as to transmit the first target pressure wave code to the downhole water distributor control system.
[0046] Based on the water injection well pipe based data transmission method and device provided in the specification, the ground measurement and control system can first encode the target instruction into a corresponding first target pressure wave code according to a preset encoding rule; wherein the first target pressure wave code at least includes a start bit, a stop bit, a function code bit and a data bit; the wavelength parameter of the function code bit is used to represent the instruction type of the target instruction; the wavelength parameter of the data bit is used to represent the target engineering quantity parameter when the target instruction is executed; then according to the preset control rule and the first target pressure wave code, the opening degree time change of the wellhead regulating valve is controlled to change the downhole pressure data, so as to transmit the first target pressure wave code to the downhole water distributor control system. Correspondingly, the downhole water distributor control system can monitor the downhole pressure value according to the preset acquisition rule, and acquire the downhole pressure data of the target time period meeting the requirements; then according to the downhole pressure data of the target time period, the first target pressure wave code is obtained; the start bit and the stop bit are determined in the first target pressure wave code; and the function code bit and the data bit are extracted from the first target pressure wave code according to the start bit and the stop bit; according to the preset encoding rule, the wavelength parameter of the function code bit and the wavelength parameter of the data bit are used for decoding processing to determine the instruction type of the target instruction and the target engineering quantity parameter when the target instruction is executed; the target instruction is determined according to the instruction type of the target instruction; and the target instruction is executed based on the target engineering quantity parameter. Thus, according to the preset encoding rule and the preset control rule, the opening degree time change of the related valve is controlled instead of the switching frequency of the related valve to change the downhole pressure data, which effectively reduces the switching times of the valve and the loss of the valve, and the target instruction and the related target engineering quantity parameter can be accurately and efficiently transmitted from the ground measurement and control system to the downhole water distributor control system through the target pressure wave in a cableless transmission mode, so as to perform downhole operation, thereby prolonging the service life of the valve. BRIEF DESCRIPTION OF DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the specification, the drawings required in the embodiments will be briefly introduced as follows. The drawings in the following description are only some embodiments described in the specification, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0048] Figure 1 is a flowchart of the water injection well pipe based data transmission method provided by an embodiment of the specification;
[0049] Figure 2 is a schematic diagram of one embodiment of the water injection well pipe based data transmission method provided by the embodiment of the specification in a scene example;
[0050] Figure 3FIG. 1 is a schematic diagram of an embodiment of a method for data transmission based on a water injection well pipeline according to an embodiment of the present specification, in a scenario example;
[0051] Figure 4 FIG. 1 is a schematic diagram of an embodiment of a method for data transmission based on a water injection well pipeline according to an embodiment of the present specification, in a scenario example;
[0052] Figure 5 FIG. 1 is a schematic diagram of an embodiment of a method for data transmission based on a water injection well pipeline according to an embodiment of the present specification, in a scenario example;
[0053] Figure 6 FIG. 1 is a schematic diagram of an embodiment of a method for data transmission based on a water injection well pipeline according to an embodiment of the present specification, in a scenario example;
[0054] Figure 7 FIG. 1 is a schematic diagram of an embodiment of a method for data transmission based on a water injection well pipeline according to an embodiment of the present specification, in a scenario example;
[0055] Figure 8 FIG. 1 is a schematic diagram of an embodiment of a method for data transmission based on a water injection well pipeline according to an embodiment of the present specification, in a scenario example. DETAILED DESCRIPTION
[0056] In order to enable persons skilled in the art to better understand the technical solutions in the present specification, the technical solutions in the present specification will be described clearly and completely in the following with reference to the drawings in the present specification. Obviously, the described embodiments are only some of the embodiments of the present specification, but not all the embodiments. Based on the embodiments in the present specification, all other embodiments obtained by persons skilled in the art without creative labor should belong to the scope of protection of the present specification.
[0057] Referring to Figure 1 The present specification provides a method for data processing based on a water injection well pipeline. The method can include the following when implemented:
[0058] S101: obtaining a target instruction about a water injection well pipeline; wherein the target instruction also carries a target engineering parameter when the target instruction is executed;
[0059] S102: encoding the target instruction into a corresponding first target pressure wave code according to a preset encoding rule; wherein the first target pressure wave code at least includes a start bit, a stop bit, a function code bit and a data bit; the wavelength parameter of the function code bit is used to represent the instruction type of the target instruction; and the wavelength parameter of the data bit is used to represent the target engineering parameter when the target instruction is executed;
[0060] S103: According to the preset control rule and the first target pressure wave code, the downhole pressure data is changed by controlling the opening degree time length change of the wellhead regulating valve, so as to transmit the first target pressure wave code to the downhole water distributor control system.
[0061] In some embodiments, the above-mentioned data transmission method based on the injection well pipe can be applied to the ground measurement and control system side. The ground measurement and control system can be deployed at the wellhead ground of the oilfield layered injection well.
[0062] For the above-mentioned oilfield layered injection well, the cable injection technology with bridge eccentricity and bridge concentricity as the core can be used to efficiently perform layered injection measurement and adjustment.
[0063] During the specific operation, in order to ensure the injection qualification rate of the above-mentioned oilfield layered injection well, it is usually necessary to encrypt the measurement and adjustment period. Moreover, with the increase in the number of injection wells year by year, the segmentation of single wells is becoming increasingly fine, and the measurement and adjustment period is becoming shorter, resulting in a large amount of layered injection measurement and adjustment work. In addition, since the oilfield layered injection well is generally deep, if a cable is used for specific instruction and data transmission during measurement and adjustment, a relatively long cable is required, and the cost is relatively high. In addition, the cable in the well is relatively easy to break due to the influence of gravity and construction operation, and it is difficult to maintain.
[0064] Based on the above reasons, in the present embodiment, the application first considers using pressure wave communication technology based on the injection pipe to use water and other fluids in the well injection pipe as the carrier of the transmitted signal, without using a cable. Instead, by periodically changing the opening of the valve at the wellhead or the well bottom, the fluid pressure in the well is changed, and then the fluid in the injection pipe is transmitted to change the pressure at the other end, thereby realizing the transmission of related instructions and data.
[0065] Specifically, the pressure wave communication based on the injection pipe can include two communication processes: wellhead to downhole and downhole to wellhead. The wellhead to downhole communication process can include: the ground measurement and control system controls the opening change of the wellhead regulating valve to form a pressure wave code, the pressure wave code is transmitted to the downhole through the injection pipe, and the downhole water distributor control system detects and stores the pressure data. The downhole to wellhead communication process can include: the downhole water distributor control system controls the opening change of the water nozzle to form a pressure wave code, the pressure wave code is transmitted to the wellhead through the injection pipe, and the ground measurement and control system detects and stores the pressure data.
[0066] The pressure wave can be a wave form with a certain rule caused by changing the opening of the valve and then changing the flow pressure. The pressure wave code can be a data carrier that can represent the specific content meaning formed by combining the wave form of the pressure wave. The wavelength parameter can be the length value of the wave peak or the wave trough in the wave form of the pressure wave code.
[0067] Further, considering the conventional water injection pipeline-based pressure wave communication technology, binary coding (e.g., Manchester coding) is often used, the coding process is complex and cumbersome, and more data bits need to be generated. Moreover, based on the above-mentioned coding, when controlling transmission, the valve opening degree needs to be frequently switched to form continuous pressure waves to form a required set of pressure wave codes, resulting in a large number of valve switching times and high switching frequency during each transmission, which can easily cause damage to the valve and affect the service life of the valve. In addition, based on the conventional water injection pipeline-based pressure wave communication technology, the data bits, start bits and stop bits are all represented by wave peaks during coding, which can easily cause confusion between data bits and start bits and stop bits during decoding, affecting the accuracy of decoding.
[0068] In view of the above problems, the present application further considers that the coding rules and related control rules can be improved in view of the specific construction work in the layer-by-layer water injection and adjustment scene of the oilfield layer-by-layer water injection well and the specific characteristics of the instruction data often required during construction work. Specifically, a decimal coding method can be introduced and used instead of the original binary coding method, thereby simplifying the coding process, reducing the data bits required during coding, and reducing the pressure waves that need to be generated, thereby reducing the valve switching times and switching frequency during each generation of pressure wave codes from the source and prolonging the service life of the valve. At the same time, the wavelength parameter of the pressure wave can be introduced and used to represent specific data, so that the valve opening time can be controlled instead of the opening frequency to represent the specific data value, thereby further reducing the valve switching times and switching frequency during each generation of pressure wave codes and further prolonging the service life of the valve.
[0069] In some embodiments, the above-mentioned target instruction is specifically a control instruction for the water injection well pipeline downhole water distributor control system.
[0070] Specifically, the above-mentioned target instruction includes at least one of the following: a control instruction for flow, a control instruction for pre-valve pressure, a control instruction for post-valve pressure, etc.
[0071] Of course, the above-mentioned instructions are only illustrative. In specific implementation, the above-mentioned target instruction can also include other types of instructions according to specific conditions and processing requirements. The present specification does not limit this.
[0072] In some embodiments, the above-mentioned preset coding rule can be a coding rule for pressure wave codes that introduces and uses a wavelength parameter and adopts a decimal counting mechanism.
[0073] Specifically, referring to Figure 2As shown, the pressure wave code compiled based on the preset coding rule at least includes sequentially arranged start bit, function code bit, data bit and stop bit. The start bit is used to represent the start of a pressure wave code, the stop bit is used to represent the end of a pressure wave code, the function code bit is used to represent the instruction type of the transmitted instruction, and the data bit is used to represent the engineering parameter when the instruction is executed.
[0074] The engineering parameter can be the flow, pressure, pressure intensity and the like of the fluid.
[0075] Further, based on the preset coding rule, the wave crest of the pressure wave is used as the function code bit and the data bit, and the wave trough of the pressure wave is used as the start bit and the stop bit. Thus, the start bit, the stop bit and the function code bit, the data bit can be effectively avoided from being confused, and the error generation is reduced.
[0076] In addition, based on the preset coding rule, the wavelength parameter of the pressure wave is used in the function code bit to represent different instruction types, the wavelength parameter of the pressure wave is used in the data bit to represent different data values, and the wavelength parameter of the pressure wave is used in the start bit to represent whether the pressure wave code is from the ground control system or the downhole water distributor control system.
[0077] Specifically, referring to Figure 2 As shown, when the wave trough of the pressure wave in the start bit is a standard wavelength (which can be recorded as -1), one byte is corresponded, and at this time, it can be represented that the pressure wave code is from the ground control system. In contrast, referring to Figure 3 As shown, when the wave trough of the pressure wave in the start bit is two standard wavelengths (which can be recorded as -2), two bytes are corresponded, and at this time, it can be represented that the pressure wave code is from the downhole water distributor control system.
[0078] Based on the preset coding rule, when the wave crest of the pressure wave in the function code bit is a standard wavelength (which can be recorded as 1), one byte is corresponded, and at this time, it can be represented that the control instruction is for the flow. When the wave crest of the pressure wave in the function code bit is a standard wavelength (which can be recorded as 2), two bytes are corresponded, and at this time, it can be represented that the control instruction is for the pressure before the valve. When the wave crest of the pressure wave in the function code bit is three standard wavelengths (which can be recorded as 3), three bytes are corresponded, and at this time, it can be represented that the control instruction is for the pressure after the valve.
[0079] Based on the preset coding rule, in order to distinguish the function code bit, when the wave crest of the pressure wave in the data bit is two standard wavelengths (which can be recorded as 2), two bytes are corresponded, and at this time, the represented data value can be the difference between the byte number (2) and 2, i.e. 0. When the wave crest of the pressure wave in the data bit is three standard wavelengths (which can be recorded as 3), three bytes are corresponded, and at this time, the represented data value can be the difference between the byte number (3) and 2, i.e. 1. Similarly, please refer toFigure 4 As shown, the wave crest of the pressure wave of the data bit is a preset number of wavelengths (which can be denoted as x, and the corresponding number of bytes is x. Wherein, x is greater than or equal to 2 and less than or equal to 11), corresponding to a preset number of bytes, at this time the data value represented can be the difference between the number of bytes (x) and 2, that is, x-2. In this way, 10 different data values from 0 to 9 can be completely represented by one data bit.
[0080] In some embodiments, the data bit can specifically include one data bit, or a plurality of data bits arranged in sequence; and correspondingly, the combination of the wavelength parameters of the plurality of data bits arranged in sequence can be used to indicate a decimal-based data value.
[0081] Specifically, in combination with the operation characteristics in the layer-by-layer water injection measurement and adjustment scene of the layer-by-layer water injection well in the oil field, the above-mentioned data bit can include three data bits arranged in sequence: a first data bit, a second data bit, and a third data bit. Wherein, the wavelength parameter of the first data bit can be used to indicate the data value of the tens place, the wavelength parameter of the second data bit can be used to indicate the data value of the units place, and the wavelength parameter of the third data bit can be used to indicate the data value of the decimal place. In this way, the data values from 0 to 99.9 that can occur in the layer-by-layer water injection measurement and adjustment scene of the layer-by-layer water injection well in the oil field can be completely represented by using the above-mentioned data bit.
[0082] Specifically, for example, referring to Figure 2 As shown, the wavelength parameter of the first data bit is 3 standard wavelengths, the ratio of the wavelength parameter of the first data bit to the standard wavelength is 3 / 1=3, the corresponding number of bytes is 3, and correspondingly, the data value represented by the first data bit is 3-2=1. In a similar manner, it can be determined that the data value represented by the second data bit is 1, and the data value represented by the third data bit is 1. Combining the data values represented by the first data bit, the second data bit, and the third data bit, the final data value to be represented is 11.1, that is, the engineering quantity parameter to be transmitted is 11.1.
[0083] In some embodiments, specifically according to the preset encoding rule, when the target instruction is encoded into the corresponding first target pressure wave code, the pressure wave code (or the waveform of the pressure wave) of the starting bit can be determined according to the source of the pressure wave code. For example, referring to Figure 2 As shown, when the source of the pressure wave code is the ground measurement and control system, the pressure wave code of the starting bit can be set to a wave trough of one standard wavelength. Referring to Figure 3 As shown, when the source of the pressure wave code is the downhole water distributor control system, the pressure wave code of the starting bit can be set to a wave trough of two standard wavelengths. The pressure wave code of the function code bit can be determined according to the instruction type of the target instruction. For example, referring to Figure 2As shown, when the instruction type of the target instruction is a control instruction for flow, the pressure wave code of the function code bit can be set as a wave crest of one standard wavelength. The pressure wave code of each data bit in the data bit can be determined according to the target engineering quantity parameter. For example, when the target engineering quantity parameter is 20.4, the pressure wave code of the first data bit can be set as a wave crest of four standard wavelengths, the pressure wave code of the second data bit can be set as a wave crest of two standard wavelengths, and the pressure wave code of the third data bit can be set as a wave crest of six standard wavelengths.
[0084] In some embodiments, the above-mentioned control of the opening degree of the wellhead regulating valve according to the preset control rule and the first target pressure wave code can specifically include the following contents:
[0085] S1: According to the preset control rule and the start bit in the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full closing, and maintained for a first time corresponding to the wavelength parameter of the start bit, to form a downward pressure wave;
[0086] S2: According to the preset control rule and the function code bit in the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full opening, and maintained for a second time corresponding to the wavelength parameter of the function code bit, to form an upward pressure wave;
[0087] S3: According to the preset control rule and the data bit in the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full opening, and maintained for a third time corresponding to the wavelength parameter of the data bit, to form an upward pressure wave;
[0088] S4: According to the preset control rule and the stop bit in the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full closing, and maintained for a fourth time corresponding to the wavelength parameter of the stop bit, to form a downward pressure wave.
[0089] The above-mentioned preset control rule can be understood as a control rule matched with the preset encoding rule, used to control the opening degree of the valve (or water nozzle, etc.) to change the time length, so as to generate a corresponding waveform pressure wave.
[0090] In implementation, the first time length can be determined according to the ratio of the wavelength parameter of the start bit (i.e. the wavelength parameter of the pressure wave code of the start bit) to the standard wavelength. For example, when the ratio of the wavelength parameter of the start bit to the standard wavelength is 2, a time length greater than or equal to 2 times the standard period and less than 3 times the standard period can be determined as the first time length. One standard period can be denoted as T. Similarly, the second time length can be determined according to the ratio of the wavelength parameter of the function bit (i.e. the wavelength parameter of the pressure wave code of the function bit) to the standard wavelength. The third time length can be determined according to the ratio of the wavelength parameter of the data bit (i.e. the wavelength parameter of the pressure wave code of the data bit) to the standard wavelength. The fourth time length can be determined according to the ratio of the wavelength parameter of the stop bit (i.e. the wavelength parameter of the pressure wave code of the stop bit) to the standard wavelength. For example, when the wavelength parameter of the stop bit is fixed at one standard wavelength, the ratio of the wavelength parameter of the stop bit to the standard wavelength is 1, and a time length greater than or equal to 1 times the standard period and less than 2 times the standard period can be determined as the fourth time length.
[0091] Furthermore, in the transmission of the target pressure wave code, the opening time length of the wellhead regulating valve for different pressure wave codes can be controlled to transmit more complex and rich data information, without frequent opening and closing of the regulating valve, reducing the number of opening and closing of the regulating valve and prolonging the service life of the regulating valve.
[0092] In some embodiments, when the data bit includes a first data bit, a second data bit and a third data bit arranged in sequence, the opening degree of the wellhead regulating valve is changed from the current opening degree to full opening according to the preset control rule and the data bit in the first target pressure wave code, and maintained for a third time length corresponding to the wavelength parameter of the data bit to form an upward pressure wave. In implementation, the following contents can be included:
[0093] S1: The opening degree of the wellhead regulating valve is changed from the current opening degree to full opening according to the preset control rule and the first data bit, and maintained for a first third time length corresponding to the wavelength parameter of the first data bit to form a first upward pressure wave.
[0094] S2: The opening degree of the wellhead regulating valve is changed from the current opening degree to full opening according to the preset control rule and the second data bit, and maintained for a second third time length corresponding to the wavelength parameter of the second data bit to form a second upward pressure wave.
[0095] S3: The opening degree of the wellhead regulating valve is changed from the current opening degree to full opening according to the preset control rule and the third data bit, and maintained for a third third time length corresponding to the wavelength parameter of the third data bit to form a third upward pressure wave.
[0096] Based on the above embodiment, the ground TT&C system can first encode the target instruction into a corresponding first target pressure wave code according to a preset encoding rule; wherein the first target pressure wave code at least includes: a start bit, a stop bit, a function code bit and a data bit; the wavelength parameter of the function code bit is used to represent the instruction type of the target instruction; the wavelength parameter of the data bit is used to represent the target engineering quantity parameter when the target instruction is executed; and then according to the preset control rule and the first target pressure wave code, the downhole pressure data is changed by controlling the opening duration change of the wellhead regulating valve, so as to transmit the first target pressure wave code to the downhole water distributor control system. Thus, according to the preset encoding rule and the preset control rule, the downhole pressure data can be changed by controlling the opening duration change of the related valve, so as to effectively reduce the switching times of the valve and the loss of the valve, accurately and efficiently transmit the target instruction and the related target engineering quantity parameter from the ground TT&C system to the downhole water distributor control system through the target pressure wave in a cableless transmission mode, and prolong the service life of the valve.
[0097] Referring to Figure 5 The present specification also provides another water injection well pipe based data transmission method, wherein the method can include the following contents when implemented:
[0098] S501: According to a preset acquisition rule, monitor the downhole pressure value and acquire the downhole pressure data of a target time period meeting the requirements; wherein the downhole pressure data of the target time period meeting the requirements is generated by the ground TT&C system according to a preset control rule and a first target pressure wave code by controlling the opening duration change of the wellhead regulating valve;
[0099] S502: Obtain the first target pressure wave code according to the downhole pressure data of the target time period;
[0100] S503: Determine the start bit and the stop bit in the first target pressure wave code; and extract the function code bit and the data bit from the first target pressure wave code according to the start bit and the stop bit;
[0101] S504: According to a preset encoding rule, determine the instruction type of the target instruction and the target engineering quantity parameter when the target instruction is executed by decoding the wavelength parameter of the function code bit and the wavelength parameter of the data bit;
[0102] S505: Determine the target instruction according to the instruction type of the target instruction; and execute the target instruction based on the target engineering quantity parameter.
[0103] In some embodiments, the above water injection well pipe based data transmission method can be specifically applied to the side of the downhole water distributor control system. Wherein the above downhole water distributor control system can be deployed at the downhole position of the oilfield separate layer water injection well.
[0104] For the downhole water distributor control system side, in specific implementation, the relevant downhole pressure data can be monitored and collected through a pressure transmitter; then the corresponding pressure wave code can be obtained through operation according to the downhole pressure data through a modem; the rising edge and the falling edge of the pressure wave code can be found through difference calculation on window data based on the sliding window method, and the start bit and the stop bit can be judged according to the rising edge and the falling edge to analyze the pressure wave code and convert the pressure wave code into an analog signal; the start bit and the stop bit can be searched and determined according to the analog signal; and the function code bit and the data bit can be determined according to the start bit and the stop bit based on the preset encoding rule; then the received instruction and the relevant engineering quantity parameter can be determined according to the function code bit and the data bit.
[0105] In some embodiments, the above monitoring the downhole pressure value and collecting the downhole pressure data of the target time period meeting the requirement according to the preset collection rule can include the following contents in specific implementation:
[0106] S1: monitoring the downhole pressure value at a preset time interval according to a preset collection rule;
[0107] S2: collecting the downhole pressure data of a first time period according to the monitored downhole pressure value; and storing the downhole pressure data of the first time period into a first cache area;
[0108] S3: collecting the downhole pressure data of a second time period at a preset time interval; and determining whether the downhole pressure data of the first time period meets a preset first requirement according to the downhole pressure data of the second time period;
[0109] S4: in the case that the downhole pressure data of the first time period does not meet the preset first requirement, deleting the data in the first cache area; and storing the downhole pressure data of the second time period into the first cache area.
[0110] In specific implementation, the above preset time interval can be one-tenth of a standard period, for example, 0.1T. Each time period can be a standard period.
[0111] When the detected downhole pressure value is a trough value, a plurality of pressure values at a plurality of time points in a time period can be triggered to be collected as downhole pressure data of a first time period, and the downhole pressure data of the first time period is first stored in a first cache area. Then, the pressure values at the plurality of time points in a next time period are continuously collected to obtain downhole pressure data of a second time period, and the downhole pressure data of the second time period is temporarily stored in a temporary cache area (for example, a seventh cache area). Then, whether the downhole pressure data of the first time period meets a preset first requirement can be determined according to the downhole pressure data of the second time period. If it is determined that the downhole pressure data of the first time period meets the preset first requirement, it can be judged that the downhole pressure data of the first time period is a start bit of a first target pressure wave code sent by the ground control system, and then the first target pressure wave code can be kept in the first cache area, and the downhole pressure data of the second time period temporarily stored in the temporary cache area is transferred to a second cache area next to the first cache area. Further, the downhole pressure data of a third time period can be collected and stored in a third cache area. In this way, the downhole pressure data of a target time period meeting the requirement is collected through a plurality of cache areas including the first cache area to the specified cache area. The specified cache area is determined according to the preset encoding rule.
[0112] On the contrary, if it is determined that the downhole pressure data of the first time period does not meet the preset first requirement, it can be judged that the downhole pressure data of the first time period is not a start bit of the first target pressure wave code, and then the downhole pressure data of the first time period stored in the first cache area can be deleted, and the downhole pressure data of the second time period temporarily stored in the temporary cache area is transferred to the first cache area. The above process is repeated until the stop bit is stored in the corresponding cache area (for example, the sixth cache area), so that the downhole pressure data of the target time period meeting the requirement is collected through a plurality of cache areas including the first cache area to the specified cache area.
[0113] When determining whether the downhole pressure data of the first time period meets the preset first requirement, the rising edge and the falling edge in the downhole pressure data of the first time period and the downhole pressure data of the second time period can be detected, and whether a wave crest appears in the downhole pressure data of the second time period can be determined. If the wave crest appears, it is determined that the preset first requirement is met. On the contrary, if the wave crest does not appear, it is determined that the preset first requirement is not met.
[0114] In some embodiments, the first target pressure wave code is obtained by taking out the waveforms of the pressure waves corresponding to the downhole pressure data stored in each buffer area according to the downhole pressure data of the target time period, and splicing the waveforms of the pressure waves in each buffer area in sequence.
[0115] In some embodiments, the start bit and the stop bit are determined in the first target pressure wave code, and the function code bit and the data bit are extracted from the first target pressure wave code according to the start bit and the stop bit. In particular, the following steps can be included:
[0116] S1: The rising edge and the falling edge are determined in the first target pressure wave code by taking the difference value of the window data based on the sliding window method.
[0117] S2: The start bit and the stop bit are determined in the first target pressure wave code according to the rising edge and the falling edge.
[0118] S3: The pressure wave code adjacent to the start bit in the first target pressure wave code is determined as the function code bit.
[0119] S4: The remaining pressure wave code in the first target pressure wave code except the start bit, the stop bit, and the function code bit is determined as the data bit.
[0120] Based on the above embodiments, the start bit, the stop bit, the function code bit, and the data bit can be quickly and efficiently determined in the first target pressure wave code by using the sliding window method.
[0121] In some embodiments, the instruction type of the target instruction and the target engineering quantity parameter when the target instruction is executed are determined by using the wavelength parameter of the function code bit and the wavelength parameter of the data bit according to the preset encoding rule. In particular, the instruction type of the target instruction corresponding to the target pressure code is determined by using the wavelength parameter of the function code bit according to the preset encoding rule, and the target engineering quantity parameter corresponding to the target pressure code is determined by using the wavelength parameter of the data bit according to the preset encoding rule.
[0122] In particular, the instruction type of the target instruction corresponding to the target pressure code is determined by using the wavelength parameter of the function code bit divided by the standard wavelength according to the preset encoding rule, and then the type indication parameter of the function code bit is obtained by rounding down the quotient. The instruction type corresponding to the type indication parameter of the function code bit is determined by querying the preset instruction type mapping relationship table, and is taken as the instruction type of the target instruction. For example, the type indication parameter of the function code bit obtained is 1, and accordingly the instruction type of the target instruction is determined as the control instruction for flow rate.
[0123] The target engineering quantity parameter corresponding to the target pressure code is determined according to the wavelength parameter of the data bit according to the preset encoding rule, which can include: dividing the wavelength parameter of the data bit by the standard wavelength according to the preset encoding rule; then taking the quotient down and subtracting 2 to obtain the data value of the data bit; and determining the corresponding target engineering quantity parameter according to the data value of the data bit.
[0124] In some embodiments, after the downhole water distributor control system executes the target instruction according to the target engineering quantity parameter, the method can also include: obtaining the corresponding target feedback result according to the execution result; encoding the target feedback result into the corresponding second target pressure wave code according to the preset encoding rule; and changing the downhole pressure data by controlling the opening degree time length of the water nozzle to transmit the second target pressure code according to the preset control rule.
[0125] Similarly, the ground control system can monitor the downhole pressure value according to the preset acquisition rule, and acquire the second target pressure wave code according to the downhole pressure data of another target time period that meets the requirements; determine the start bit and stop bit in the second target pressure wave code; and extract the function code bit and data bit from the second target pressure wave code according to the start bit and stop bit; and obtain the feedback result by decoding the wavelength parameter of the function code bit and the wavelength parameter of the data bit according to the preset encoding rule.
[0126] In this way, the ground control system can also efficiently and accurately obtain the feedback result uploaded by the downhole water distributor control system; and can understand the specific situation downhole in a timely manner according to the feedback result, and then generate instruction data with stronger pertinence and better effect in the follow-up.
[0127] From the above, based on the data transmission method of the injection well pipeline provided by the embodiments of the present specification, the ground control system can first encode the target instruction into a corresponding first target pressure wave code according to the preset encoding rule; wherein the first target pressure wave code at least includes: start bit, stop bit, function code bit and data bit; the wavelength parameter of the function code bit is used to represent the instruction type of the target instruction; the wavelength parameter of the data bit is used to represent the target engineering quantity parameter when the target instruction is executed; then according to the preset control rule and the first target pressure wave code, the opening duration change of the wellhead regulating valve is controlled to change the downhole pressure data, so as to transmit the first target pressure wave code to the downhole water distributor control system. Correspondingly, the downhole water distributor control system can monitor the downhole pressure value according to the preset acquisition rule, and acquire the downhole pressure data of the target time period meeting the requirements; then according to the downhole pressure data of the target time period, the first target pressure wave code is obtained; the start bit and the stop bit are determined in the first target pressure wave code; and the function code bit and the data bit are extracted from the first target pressure wave code according to the start bit and the stop bit; according to the preset encoding rule, the instruction type of the target instruction and the target engineering quantity parameter when the target instruction is executed are determined by decoding processing using the wavelength parameter of the function code bit and the wavelength parameter of the data bit; the target instruction is determined according to the instruction type of the target instruction; and the target instruction is executed based on the target engineering quantity parameter. Thus, according to the preset encoding rule and the preset control rule, the opening duration change of the related valve is controlled to change the downhole pressure data, which effectively reduces the switching times of the valve and the loss of the valve, accurately and efficiently transmits the target instruction and the related target engineering quantity parameter from the ground control system to the downhole water distributor control system through the target pressure wave in the form of cableless transmission, and prolongs the service life of the valve.
[0128] The embodiments of the present specification also provide a server, comprising a processor and a memory for storing processor executable instructions, wherein the processor can implement the following steps when executing the instructions: obtaining a target instruction related to an injection well pipeline; wherein the target instruction also carries a target engineering quantity parameter when the target instruction is executed; encoding the target instruction into a corresponding first target pressure wave code according to a preset encoding rule; wherein the first target pressure wave code at least includes: start bit, stop bit, function code bit and data bit; the wavelength parameter of the function code bit is used to represent the instruction type of the target instruction; the wavelength parameter of the data bit is used to represent the target engineering quantity parameter; according to the preset control rule and the first target pressure wave code, the opening duration change of the wellhead regulating valve is controlled to change the downhole pressure data, so as to transmit the first target pressure wave code to the downhole water distributor control system.
[0129] In order to be able to more accurately complete the above instructions, reference is made to Figure 6As shown, the embodiment of the present specification further provides another specific server, wherein the server comprises a network communication port 601, a processor 602 and a memory 603, and the above structures are connected through internal cables so that specific data interaction can be performed.
[0130] The network communication port 601 can be specifically used to obtain a target instruction about the injection well pipeline; wherein the target instruction also carries a target engineering quantity parameter when the target instruction is executed.
[0131] The processor 602 can be specifically used to encode the target instruction into a corresponding first target pressure wave code according to a preset encoding rule; wherein the first target pressure wave code at least comprises a start bit, a stop bit, a function code bit and a data bit; the wavelength parameter of the function code bit is used to represent the instruction type of the target instruction; the wavelength parameter of the data bit is used to represent the target engineering quantity parameter; according to the preset control rule and the first target pressure wave code, the downhole pressure data is changed by controlling the opening degree time length change of the wellhead regulating valve, so as to transmit the first target pressure wave code to the downhole water distributor control system.
[0132] The memory 603 can be specifically used to store a corresponding instruction program.
[0133] In the embodiment, the network communication port 601 can be bound with different communication protocols, so that a virtual port of different data can be sent or received. For example, the network communication port can be a port responsible for web data communication, can also be a port responsible for FTP data communication, and can also be a port responsible for mail data communication. In addition, the network communication port can also be an entity communication interface or a communication chip. For example, it can be a wireless mobile network communication chip such as GSM, CDMA, etc.; it can also be a Wifi chip; it can also be a Bluetooth chip.
[0134] In the embodiment, the processor 602 can be implemented in any appropriate manner. For example, the processor can take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (such as software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (ASIC), programmable logic controllers and embedded microcontrollers, etc. The present specification is not limited.
[0135] In the embodiment, the memory 603 can include multiple levels, and can be any memory that can save binary data in a digital system; in an integrated circuit, a circuit without a physical form that has a storage function is also called a memory, such as RAM, FIFO, etc.; in a system, a storage device with a physical form is also called a memory, such as a memory stick, a TF card, etc.
[0136] The embodiment of the present specification also provides a computer readable storage medium based on the above water injection well pipeline-based data transmission method, the computer readable storage medium stores computer program instructions, and when the computer program instructions are executed, the following is implemented: obtaining a target instruction about a water injection well pipeline; wherein the target instruction also carries a target engineering quantity parameter when the target instruction is executed; according to a preset encoding rule, encoding the target instruction into a corresponding first target pressure wave code; wherein the first target pressure wave code at least includes a start bit, a stop bit, a function code bit and a data bit; the wavelength parameter of the function code bit is used to represent the instruction type of the target instruction; the wavelength parameter of the data bit is used to represent the target engineering quantity parameter; according to the preset control rule and the first target pressure wave code, the downhole pressure data is changed by controlling the opening degree time length change of the wellhead regulating valve, so as to transmit the first target pressure wave code to the downhole water distributor control system.
[0137] The embodiment of the present specification also provides another computer readable storage medium based on the above water injection well pipeline-based data transmission method, the computer readable storage medium stores computer program instructions, and when the computer program instructions are executed, the following is implemented: according to a preset acquisition rule, monitoring the downhole pressure value, and acquiring the downhole pressure data of a target time period meeting the requirements; wherein the downhole pressure data of the target time period meeting the requirements is generated by the ground measurement and control system according to the preset control rule and the first target pressure wave code by controlling the opening degree time length change of the wellhead regulating valve; according to the downhole pressure data of the target time period, the first target pressure wave code is acquired; the start bit and the stop bit are determined in the first target pressure wave code; and the function code bit and the data bit are extracted from the first target pressure wave code according to the start bit and the stop bit; according to the preset encoding rule, the instruction type of the target instruction and the target engineering quantity parameter when the target instruction is executed are determined by decoding processing by using the wavelength parameter of the function code bit and the wavelength parameter of the data bit; according to the instruction type of the target instruction, the target instruction is determined; and based on the target engineering quantity parameter, the target instruction is executed.
[0138] In the embodiment, the storage medium includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a cache, a hard disk drive (HDD), or a memory card. The storage medium can be used to store computer program instructions. The network communication unit can be an interface configured according to a standard of a communication protocol, and used for network connection communication.
[0139] In the embodiment, the functions and effects of the program instructions stored in the computer-readable storage medium can be explained in comparison with other embodiments, and will not be described here.
[0140] Referring to Figure 7 As shown in the software layer, the embodiment of the present specification also provides a data transmission device based on a water injection well pipeline. The device can specifically include the following structure modules:
[0141] The acquisition module 701 can be specifically used to acquire a target instruction about the water injection well pipeline; wherein the target instruction also carries a target engineering quantity parameter when the target instruction is executed;
[0142] The encoding module 702 can be specifically used to encode the target instruction into a corresponding first target pressure wave code according to a preset encoding rule; wherein the first target pressure wave code at least includes a start bit, a stop bit, a function code bit, and a data bit; the wavelength parameter of the function code bit is used to represent the instruction type of the target instruction; and the wavelength parameter of the data bit is used to represent the target engineering quantity parameter;
[0143] The transmission module 703 can be specifically used to change the downhole pressure data by controlling the opening degree time change of the wellhead regulating valve, so as to transmit the first target pressure wave code to the downhole water distributor control system according to the preset control rule and the first target pressure wave code.
[0144] In some embodiments, the data bit can specifically include a plurality of sequentially arranged data bits; correspondingly, the combination of the wavelength parameters of the plurality of sequentially arranged data bits is used to indicate a decimal-based data value.
[0145] In some embodiments, the data bit can specifically include a first data bit, a second data bit, and a third data bit arranged in sequence; wherein the wavelength parameter of the first data bit is used to indicate a data value of tens of bits, the wavelength parameter of the second data bit is used to indicate a data value of units of bits, and the wavelength parameter of the third data bit is used to indicate a data value of decimal places.
[0146] In some embodiments, when the transmission module 703 is implemented, the opening degree of the wellhead regulating valve can be controlled according to the preset control rule and the first target pressure wave code in the following manner: according to the start bit in the preset control rule and the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full closing, and maintained for a first time length corresponding to the wavelength parameter of the start bit, to form a downward pressure wave; according to the function code bit in the preset control rule and the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full opening, and maintained for a second time length corresponding to the wavelength parameter of the function code bit, to form an upward pressure wave; according to the data bit in the preset control rule and the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full opening, and maintained for a third time length corresponding to the wavelength parameter of the data bit, to form an upward pressure wave; and according to the stop bit in the preset control rule and the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full closing, and maintained for a fourth time length corresponding to the wavelength parameter of the stop bit, to form a downward pressure wave.
[0147] In some embodiments, when the transmission module 703 is implemented, the opening degree of the wellhead regulating valve can be controlled according to the preset control rule and the first target pressure wave code in the following manner: according to the start bit in the preset control rule and the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full closing, and maintained for a first time length corresponding to the wavelength parameter of the start bit, to form a downward pressure wave; according to the function code bit in the preset control rule and the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full opening, and maintained for a second time length corresponding to the wavelength parameter of the function code bit, to form an upward pressure wave; according to the data bit in the preset control rule and the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full opening, and maintained for a third time length corresponding to the wavelength parameter of the data bit, to form an upward pressure wave; and according to the stop bit in the preset control rule and the first target pressure wave code, the opening degree of the wellhead regulating valve is changed from the current opening degree to full closing, and maintained for a fourth time length corresponding to the wavelength parameter of the stop bit, to form a downward pressure wave.
[0148] Referring to Figure 8 As shown in the software layer, the embodiment of the present specification also provides another data transmission device based on the injection well pipe, which can specifically include the following structure modules:
[0149] The acquisition module 801 can be specifically used for monitoring the downhole pressure value according to a preset acquisition rule, and acquiring downhole pressure data of a target time period meeting a requirement; wherein the downhole pressure data of the target time period meeting the requirement is generated by a ground control system according to a preset control rule and a first target pressure wave code by controlling the opening degree duration change of a wellhead regulating valve;
[0150] The acquisition module 802 can be specifically used for acquiring the first target pressure wave code according to the downhole pressure data of the target time period;
[0151] The determination module 803 can be specifically used for determining a start bit and a stop bit in the first target pressure wave code; and extracting a function code bit and a data bit from the first target pressure wave code according to the start bit and the stop bit;
[0152] The decoding module 804 can be specifically used for determining the instruction type of the target instruction and the target engineering quantity parameter when the target instruction is executed by decoding processing using the wavelength parameter of the function code bit and the wavelength parameter of the data bit according to a preset encoding rule;
[0153] The execution module 805 can be specifically used for determining the target instruction according to the instruction type of the target instruction; and executing the target instruction based on the target engineering quantity parameter.
[0154] In some embodiments, the acquisition module 801 can be specifically implemented to monitor the downhole pressure value according to a preset acquisition rule, and acquire downhole pressure data of a target time period meeting a requirement in the following manner: monitoring the downhole pressure value at a preset time interval according to a preset acquisition rule; acquiring downhole pressure data of a first time period according to the monitored downhole pressure value; storing the downhole pressure data of the first time period in a first cache area; acquiring downhole pressure data of a second time period at a preset time interval; determining whether the downhole pressure data of the first time period meets a preset first requirement according to the downhole pressure data of the second time period; deleting the data in the first cache area in a case where it is determined that the downhole pressure data of the first time period does not meet the preset first requirement; and storing the downhole pressure data of the second time period in the first cache area.
[0155] In some embodiments, the determination module 803, when implemented, can determine the start bit and the stop bit in the first target pressure wave code in the following manner, and extract the function code bit and the data bit from the first target pressure wave code according to the start bit and the stop bit: determine the rising edge and the falling edge in the first target pressure wave code by performing a difference operation on the window data based on the sliding window method; determine the start bit and the stop bit in the first target pressure wave code according to the rising edge and the falling edge; determine the pressure wave code adjacent to the start bit in the first target pressure wave code as the function code bit; and determine the remaining pressure wave code in the first target pressure wave code except the start bit, the stop bit and the function code bit as the data bit.
[0156] In some embodiments, after executing the target instruction based on the target engineering quantity parameter, the device, when implemented, can also be used to obtain and generate a corresponding target feedback result according to the execution result; encode the target feedback result into a corresponding second target pressure wave code according to a preset encoding rule; and change the downhole pressure data by controlling the opening degree time length change of the water nozzle according to the preset control rule and the second target pressure wave code, so as to transmit the second target pressure code to the ground control system.
[0157] It should be noted that the units, devices or modules and the like described in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. For the convenience of description, the above device is described as various modules respectively described in function. Of course, in the implementation of the present specification, the functions of each module can be implemented in the same software and / or hardware, or the modules implementing the same function can be implemented by a combination of multiple sub-modules or sub-units, etc. The above-described device embodiments are only illustrative, for example, the division of the units is only a logical function division, and in actual implementation, another division mode can be used, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0158] As can be seen from the above, the data transmission device based on the water injection well pipeline provided by the embodiments of the present specification can change the downhole pressure data by controlling the opening degree time length change of the related valve according to the preset encoding rule and the preset control rule, effectively reducing the switching times of the valve and the wear of the valve, accurately and efficiently transmitting the target instruction and the related target engineering quantity parameter from the ground control system to the downhole water distributor control system through the target pressure wave in the cableless transmission mode, and prolonging the service life of the valve.
[0159] In one specific scenario example, the method and device for data transmission based on the injection well pipe provided by the embodiments of the present specification can be applied to realize encoding and decoding based on the wavelength and amplitude of pressure waves to reduce the number of valve switching.
[0160] In implementation, referring to FIG. 1, Figure 2 As shown, based on the preset encoding rule, the complete pressure wave code is designed as a combination of six pressure waves, which correspond to start bit, stop bit, function code bit, and data bit respectively. The data bit includes three data bits corresponding to three pressure waves. The byte length corresponding to each pressure wave is indefinite, and the wavelength parameter of each pressure wave is related to the byte. Further, the length of the wavelength of each pressure wave is determined by time, and the peak value of the wave crest and the estimated value of the wave trough are determined by the high and low values of the downhole pressure.
[0161] In specific encoding, referring to FIG. 2, Figure 2 According to the waveform of the pressure wave, each pressure wave code can be encoded respectively according to Table 1.
[0162] Table 1
[0163]
[0164] In combination with FIG. 3, Figure 2 Each pressure wave represents one bit of data of the pressure wave code. The different states of the start bit and the stop bit and the data in the function code bit and the data bit are distinguished by the wavelength of the pressure wave. For convenience of description, according to the preset encoding rule, it can be stipulated that when the pressure wave is at the wave crest or the wave trough, it occupies one byte every T (a standard period) time, and the byte number is added by one. Further, based on the preset encoding rule, it can also be stipulated that the initial value of the data in the data bit and the function code bit is 0, and when the pressure wave is at the wave crest for T time, the data of this bit is added by 1. In addition, the start bit and the stop bit have a fixed length, and the size is the time of the pressure wave at the wave trough divided by T and then rounded down (equivalent to the quotient obtained by dividing the wavelength parameter by the standard wavelength rounded down).
[0165] The first bit of the pressure wave code is a start bit. Based on the preset encoding rule and the preset control rule, a downward pressure wave is formed by changing the valve from the current opening to full closing, maintaining for a T-2T time period, and then restoring to the original opening. The pressure wave corresponds to the start bit. The start bit has two states of -1 and -2. The second bit is a function code bit. Based on the preset encoding rule and the preset control rule, an upward pressure wave is formed by changing the valve from the current opening to full opening, maintaining for a T-3T time period, and then restoring to the original opening. The pressure wave corresponds to the function code bit. The function code bit has three states of 1, 2 and 3, which respectively represent the physical meaning of the pressure wave transmission data. Specifically, for example, 1 indicates that the current transmitted engineering quantity or instruction is for flow data, 2 indicates that the current transmitted engineering quantity or instruction is for valve front pressure, and 3 indicates that the current transmitted engineering quantity or instruction is for valve rear pressure. The third, fourth and fifth bits are data bits. When the pressure waves corresponding to the three data bits are generated, the valve acts similarly, that is, the valve is changed from the current opening to full opening, maintained for a 2T-12T time period, and then restored to the original opening. The data in each data bit is the byte length of the pressure wave it occupies minus 2. The last data bit is a stop bit. According to the preset encoding rule and the preset control rule, a downward pressure wave is formed by changing the valve from the current opening to full closing, maintaining for a T time period, and then restoring to the original opening. The pressure wave corresponds to the stop bit, and the stop bit has only one state of -1.
[0166] The decoding process can specifically include data collection, synchronization identification and signal real-time conversion. The wellhead or downhole pressure transmitter detects the change of pressure and transmits the signal to the modem. The modem converts the pressure value into a pressure wave signal through operation. The pressure wave signal can be converted into an analog signal by using a sliding window method, that is, the rising edge and the falling edge of the pressure wave are found by calculating the difference value of the window data, the start and end of each bit of data are judged according to the rising edge and the falling edge, and then the start bit and the stop bit are found from the received analog signal. After finding the start bit and the stop bit, the decoding rule converts the function code bit, the data bit in order, and then converts the pressure wave into the corresponding decimal data, reads the control instruction or collects the downhole data, and obtains and stores the data transmitted by the pressure wave.
[0167] Specifically, the data transmission from the wellhead to the downhole is a process of sending instructions to the downhole. First, the ground control system encodes the instructions, and the encoded content is transmitted to the ground valve. The ground valve changes the opening according to the received information, so that the pressure forms a pressure wave at the wellhead. After the pressure wave is transmitted to the downhole water distributor, the water distributor decodes the pressure wave and controls the action of the distributor regulating valve to realize the instruction transmitted by the pressure wave.
[0168] The data transmission from downhole to wellhead is a process of transmitting engineering quantity to wellhead. Through the engineering quantity transmitted from downhole, the wellhead can realize the function of monitoring. First, the water distributor encodes the engineering quantity to be transmitted and transmits the encoded information to the water nozzle. The water nozzle changes the opening degree according to the encoding, so that the pressure forms a pressure wave. After the complete pressure wave code is collected at the wellhead, the ground measurement and control system decodes the pressure wave code, converts it into the collected downhole engineering quantity, and realizes real-time monitoring and storage at the wellhead.
[0169] It should be further pointed out that the pressure wave decoding is the reverse process of encoding, mainly including data collection, synchronous identification and real-time signal conversion. The pressure transmitter at the wellhead or downhole detects the change of pressure and transmits the signal to the ground measurement and control system or the water distributor. Through operation, the two will convert the pressure value into a pressure wave signal. The pressure wave signal is converted into an analog signal by using the sliding window method, the rising edge and falling edge of the pressure wave are found by calculating the difference value of the window data, then the start bit and stop bit are found from the received analog signal, and the function code bit, data bit are converted in order, and then converted into the corresponding decimal data, the control instruction or the collected downhole data is read to obtain the actual meaning value. The specific steps are as follows:
[0170] S1: The modem opens 7 buffer zones, and the real-time pressure value is stored in the first buffer zone (equivalent to the first cache zone).
[0171] S2: Real-time monitoring and decoding of the first bit of pressure wave are performed by using the sliding time window method.
[0172] S3: If the start bit is detected in step 2, the subsequent collected data is stored in the buffer zone, otherwise step S2 is repeated and the data in the first buffer zone is updated.
[0173] S4: Real-time monitoring of the sixth buffer zone (equivalent to the specified cache zone) is performed to obtain the stop bit (obtain the first target pressure wave code).
[0174] S5: After obtaining the stop bit, the data in the second to fifth buffer zones is decoded and a response is made.
[0175] The sliding window uses the following example: during the wake-up period of the downhole water distributor or the ground measurement and control system pressure sampling function, the average pressure value of n pressure points is continuously sampled at a frequency of 0.1Ts / second to form a data frame of 1 byte length, and a set pressure threshold is used to judge the current pressure wave state. When the current data frame data is 1, the current bit data is 1, and when the current data frame data is -1, the current bit data is -1. When the rising edge or the falling edge is detected, the demodulator stores the data from the rising edge / falling edge to the falling edge / rising edge in the corresponding buffer zone, and the size of the data is the size of the pressure wave occupied by the byte minus one, so as to decode the data carried by the pressure wave code.
[0176] Specifically, for example, first, by changing the opening of the ground valve to form a pressure wave code as shown in Figure 2 , which means that the wave is an instruction transmitted from the well to the downhole, and the mouth pressure needs to reach 11.1% of the range. After the pressure wave is transmitted to the downhole through the pipeline, the water distributor monitors and receives the pressure wave through the sliding window and decodes the pressure wave. After decoding, the downhole valve changes the valve opening so that the mouth pressure reaches the set value, and generates a pressure wave as shown in Figure 3 , which means that the wave is an instruction transmitted from the downhole to the well, and the mouth pressure is currently 11.1% of the range. After transmission to the well, the well decodes to obtain the specific value of the downhole mouth pressure, and the entire encoding and decoding process ends.
[0177] Based on the above scenario example, it is verified that the encoding and decoding technology adopted by the data transmission method and device based on the injection well pipeline provided in the specification indeed reduces the number of times the valve is opened and closed when sending data, to a certain extent, reduces the wear of the valve, and prolongs the service life of the valve. And, by using three-state pressure waves instead of two-state pressure waves, by redesigning the encoding rules of the start bit and stop bit, the stability of decoding in the case of fast transmission of multiple data is improved, and the error is reduced.
[0178] Although the present specification provides method operation steps as described in the embodiments or flowcharts, more or fewer operation steps can be included based on conventional or non-inventive means. The order of steps listed in the embodiments is only one of the many step execution orders, and does not represent the only execution order. When the device or client product is executed in practice, it can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment, or even in a distributed data processing environment) according to the method order shown in the embodiments or drawings. The terms "include", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, product or equipment. Without more limitations, it does not exclude the presence of other identical or equivalent elements in the process, method, product or equipment including the elements. The terms "first", "second", etc. are used to represent names, not any particular order.
[0179] Those skilled in the art will also appreciate that, in addition to being implemented in purely computer readable program code means, the controller can be implemented using logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded microcontrollers to perform the same functions as described in the method steps. The controller can therefore be considered to be a hardware component and the means for performing the various functions described therein can be considered to be structures within the hardware component. Alternatively, the means for performing the various functions can be considered to be both software modules which implement the method and structures within the hardware component.
[0180] The specification can be described in the general context of computer- executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc., that perform particular tasks or implement particular abstract data types. Computer-executable instructions, associated data structures, and the like, can also be stored in computer system memory and implemented as program modules as discussed above. Those skilled in the art will also appreciate that the specification can be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In this case, computer-executable instructions, associated data structures, and the like, can be located in both local and remote computer system storage media including memory storage devices.
[0181] From the above description of the embodiments, those skilled in the art will clearly understand that the specification can be implemented by means of software in conjunction with the necessary universal hardware platforms. Based on such an understanding, the technical solutions of the specification can essentially be embodied in a software product form, which can be stored in a storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a plurality of instructions for causing a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the methods described in the specification or some parts of the embodiments.
[0182] The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The specification can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable electronic devices, network PCs, small computers, large computers, distributed computing environments including any of the above systems or devices, etc.
[0183] Although the specification is described through the embodiments, those skilled in the art know that the specification has many modifications and changes without departing from the spirit of the specification, and it is intended that the appended claims include these modifications and changes without departing from the spirit of the specification.
Claims
1. A data transmission method based on a water injection well pipe, characterized by, The method is applied to a ground measurement and control system, and comprises the following steps: acquiring a target instruction about a water injection well pipe; wherein the target instruction also carries a target engineering quantity parameter when the target instruction is executed; encoding the target instruction into a corresponding first target pressure wave code according to a preset encoding rule; wherein the first target pressure wave code at least comprises a start bit, a stop bit, a function code bit and a data bit; a wavelength parameter of the function code bit is used to represent a command type of the target instruction; and a wavelength parameter of the data bit is used to represent the target engineering quantity parameter; changing downhole pressure data by controlling a change in opening duration of a wellhead regulating valve according to a preset control rule and the first target pressure wave code, so as to transmit the first target pressure wave code to a downhole water distributor control system; wherein the target instruction is determined by the downhole water distributor control system in the following manner: monitoring downhole pressure values and collecting downhole pressure data of a target time period that meets a requirement according to a preset collection rule; including: monitoring downhole pressure values at a preset time interval according to the preset collection rule; collecting downhole pressure data of a first time period according to the monitored downhole pressure values; storing the downhole pressure data of the first time period in a first cache area; collecting downhole pressure data of a second time period at a preset time interval; and determining whether the downhole pressure data of the first time period meets a preset first requirement according to the downhole pressure data of the second time period; in a case where it is determined that the downhole pressure data of the first time period does not meet the preset first requirement, deleting the data in the first cache area; and storing the downhole pressure data of the second time period in the first cache area; wherein the downhole pressure data of the target time period that meets the requirement is generated by the ground measurement and control system according to the preset control rule and the first target pressure wave code by controlling a change in opening duration of the wellhead regulating valve; the determination of whether the downhole pressure data of the first time period meets the preset first requirement comprises: judging whether a wave crest appears in the downhole pressure data of the second time period by detecting and according to rising and falling edges in the downhole pressure data of the first time period and the downhole pressure data of the second time period, if a wave crest appears, it is determined that the preset first requirement is met; on the contrary, if no wave crest appears, it is determined that the preset first requirement is not met; acquiring the first target pressure wave code according to the downhole pressure data of the target time period; determining the start bit and the stop bit in the first target pressure wave code; and extracting the function code bit and the data bit from the first target pressure wave code according to the start bit and the stop bit; determining the command type of the target instruction and the target engineering quantity parameter when the target instruction is executed by decoding processing the wavelength parameter of the function code bit and the wavelength parameter of the data bit according to the preset encoding rule; and determining the target instruction according to the command type of the target instruction.
2. The method of claim 1, wherein, The data bit comprises a plurality of data bits arranged in sequence; Correspondingly, a combination of wavelength parameters of the plurality of data bits arranged in sequence is used to indicate a data value based on the decimal system.
3. The method of claim 2, wherein, The data bits include a first data bit, a second data bit and a third data bit arranged in sequence; wherein the wavelength parameter of the first data bit is used to indicate the data value of ten, the wavelength parameter of the second data bit is used to indicate the data value of one, and the wavelength parameter of the third data bit is used to indicate the data value of a decimal.
4. The method of claim 3, wherein, According to the preset control rule and the first target pressure wave code, the opening duration of the wellhead regulating valve is changed to change the downhole pressure data, including: According to the preset control rule and the starting bit in the first target pressure wave code, the opening of the wellhead regulating valve is changed from the current opening to full closing, and maintained for a first time corresponding to the wavelength parameter of the starting bit to form a downward pressure wave; According to the preset control rule and the function code bit in the first target pressure wave code, the opening of the wellhead regulating valve is changed from the current opening to full opening, and maintained for a second time corresponding to the wavelength parameter of the function code bit to form an upward pressure wave; According to the preset control rule and the data bit in the first target pressure wave code, the opening of the wellhead regulating valve is changed from the current opening to full opening, and maintained for a third time corresponding to the wavelength parameter of the data bit to form an upward pressure wave; According to the preset control rule and the stop bit in the first target pressure wave code, the opening of the wellhead regulating valve is changed from the current opening to full closing, and maintained for a fourth time corresponding to the wavelength parameter of the stop bit to form a downward pressure wave.
5. The method of claim 4, wherein, In the case that the data bits include a first data bit, a second data bit and a third data bit arranged in sequence, according to the preset control rule and the data bit in the first target pressure wave code, the opening of the wellhead regulating valve is changed from the current opening to full opening, and maintained for a third time corresponding to the wavelength parameter of the data bit to form an upward pressure wave, including: According to the preset control rule and the first data bit, the opening of the wellhead regulating valve is changed from the current opening to full opening, and maintained for a first third time corresponding to the wavelength parameter of the first data bit to form a first upward pressure wave; According to the preset control rule and the second data bit, the opening of the wellhead regulating valve is changed from the current opening to full opening, and maintained for a second third time corresponding to the wavelength parameter of the second data bit to form a second upward pressure wave; According to the preset control rule and the third data bit, the opening of the wellhead regulating valve is changed from the current opening to full opening, and maintained for a third third time corresponding to the wavelength parameter of the third data bit to form a third upward pressure wave.
6. A data transmission method based on a water injection well pipe, characterized by, The method is applied to a downhole water distributor control system, and the method includes: According to the preset acquisition rule, the downhole pressure value is monitored, and the downhole pressure data of the target time period meeting the requirements is collected; including: according to the preset acquisition rule, the downhole pressure value is monitored at a preset time interval; according to the monitored downhole pressure value, the downhole pressure data of the first time period is collected; and the downhole pressure data of the first time period is stored in the first cache area; at a preset time interval, the downhole pressure data of the second time period is collected; and according to the downhole pressure data of the second time period, it is determined whether the downhole pressure data of the first time period meets the preset first requirement; in the case where it is determined that the downhole pressure data of the first time period does not meet the preset first requirement, the data in the first cache area is deleted; and the downhole pressure data of the second time period is stored in the first cache area; wherein the downhole pressure data of the target time period meeting the requirements is generated by the ground control system according to the preset control rule and the first target pressure wave code by controlling the opening degree change of the wellhead regulating valve; the determination of whether the downhole pressure data of the first time period meets the preset first requirement includes: by detecting and according to the rising edge and falling edge in the downhole pressure data of the first time period and the downhole pressure data of the second time period, it is judged whether the downhole pressure data of the second time period appears a wave crest, if there is a wave crest, it is determined that the preset first requirement is met; on the contrary, if there is no wave crest, it is determined that the preset first requirement is not met; According to the downhole pressure data of the target time period, the first target pressure wave code is obtained; In the first target pressure wave code, the start bit and the stop bit are determined; and according to the start bit and the stop bit, the function code bit and the data bit are extracted from the first target pressure wave code; According to the preset encoding rule, the wavelength parameters of the function code bit and the wavelength parameters of the data bit are used for decoding processing to determine the instruction type of the target instruction and the target engineering quantity parameter when the target instruction is executed; According to the instruction type of the target instruction, the target instruction is determined; and based on the target engineering quantity parameter, the target instruction is executed.
7. The method of claim 6, wherein, In the first target pressure wave code, the start bit and the stop bit are determined; and according to the start bit and the stop bit, the function code bit and the data bit are extracted from the first target pressure wave code, including: Based on the sliding window method, the rising edge and the falling edge are determined in the first target pressure wave code by taking difference value operation on the window data; According to the rising edge and the falling edge, the start bit and the stop bit are determined in the first target pressure wave code; In the first target pressure wave code, the pressure wave code adjacent to the start bit is determined as the function code bit; The remaining pressure wave code in the first target pressure wave code except the start bit, the stop bit and the function code bit is determined as the data bit.
8. The method of claim 6, wherein, After executing the target instruction based on the target engineering quantity parameter, the method further includes: According to the execution result, the corresponding target feedback result is generated; According to the preset encoding rule, the target feedback result is encoded into the corresponding second target pressure wave code; According to the preset control rule and the second target pressure wave code, the opening duration of the water nozzle is controlled to change the downhole pressure data, so as to transmit the second target pressure wave code to the ground control system.
9. A data transmission apparatus based on a water injection well pipe, characterized by The device is applied to the ground control system, and the device comprises: An acquisition module is configured to acquire a target instruction related to a water injection well pipe; the target instruction further carries a target engineering quantity parameter when the target instruction is executed; An encoding module is configured to encode the target instruction into a corresponding first target pressure wave code according to a preset encoding rule; the first target pressure wave code at least comprises a start bit, a stop bit, a function code bit and a data bit; the wavelength parameter of the function code bit is used to represent the instruction type of the target instruction; and the wavelength parameter of the data bit is used to represent the target engineering quantity parameter when the target instruction is executed; A transmission module is configured to change the downhole pressure data by controlling the opening duration of the wellhead regulating valve according to the preset control rule and the first target pressure wave code, so as to transmit the first target pressure wave code to the downhole water distributor control system. The target instruction is determined by the downhole water distributor control system in the following manner: according to a preset acquisition rule, the downhole pressure value is monitored, and the downhole pressure data of a target time period meeting the requirements is acquired; the downhole pressure value is monitored at a preset time interval according to the preset acquisition rule; the downhole pressure data of a first time period is acquired according to the monitored downhole pressure value; the downhole pressure data of the first time period is stored in a first cache area; the downhole pressure data of a second time period is acquired at a preset time interval; whether the downhole pressure data of the first time period meets a preset first requirement is determined according to the downhole pressure data of the second time period; in the case that the downhole pressure data of the first time period does not meet the preset first requirement, the data in the first cache area is deleted; and the downhole pressure data of the second time period is stored in the first cache area; the downhole pressure data of the target time period meeting the requirements is generated by the ground control system by controlling the opening duration of the wellhead regulating valve according to the preset control rule and the first target pressure wave code; whether the downhole pressure data of the first time period meets the preset first requirement is determined by detecting and according to the rising and falling edges in the downhole pressure data of the first time period and the downhole pressure data of the second time period; if a wave crest appears, it is determined that the preset first requirement is met; otherwise, if no wave crest appears, it is determined that the preset first requirement is not met; the first target pressure wave code is acquired according to the downhole pressure data of the target time period; the start bit and the stop bit are determined in the first target pressure wave code; the function code bit and the data bit are extracted from the first target pressure wave code according to the start bit and the stop bit; the instruction type of the target instruction and the target engineering quantity parameter when the target instruction is executed are determined by decoding the wavelength parameter of the function code bit and the wavelength parameter of the data bit according to the preset encoding rule; and the target instruction is determined according to the instruction type of the target instruction.
Citation Information
Patent Citations
Intelligent water distribution system
CN104695917A
Layered water injection method ofwater injection well multi-layered injection distributed communication
CN109854216A
Method for processing MWD mud pressure waves
CN112183268A