Mud pulse communication test method and device

By collecting mud pulse coding generated by the encoder based on the rotation information of the shear valve motor in the well logging instrument, and combining Gaussian noise to simulate the actual working conditions, the problem that the existing testing methods cannot truly reflect the downhole working conditions is solved, and efficient and reliable mud pulse communication testing is achieved, reducing costs.

CN119844077APending Publication Date: 2025-04-18QINGDAO ZHITENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510159871.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-13
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The existing mud pulse communication testing methods cannot truly reflect the actual underground working conditions and are expensive.

Method used

By collecting the mud pulse encoding generated by the encoder based on the rotation information of the shear valve motor in the well logging instrument, the rotation angle of the shear valve motor is calculated and determined, the candidate ground mud pressure is determined based on the rotation angle, and Gaussian noise is added to it, the actual working conditions are simulated, and the processed data is uploaded to the ground target device to evaluate the communication function.

Benefits of technology

Real tests of mud pulse communication are realized, the reliability of test results is improved, the testing cost is reduced, and physical devices are not required, which weakens the demand for test sites.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119844077A_ABST
    Figure CN119844077A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a mud pulse communication testing method and device. The mud pulse communication testing method comprises the steps that mud pulse codes correspondingly generated by an encoder in a logging instrument based on rotation information of a shear valve motor are obtained; the rotation angle of the shear valve motor is calculated and determined based on the mud pulse code and the digit information of the encoder; candidate ground mud pressure intensity is determined in combination with the rotation angle of the shear valve motor; gaussian noise is added to the candidate ground slurry pressure intensity, and the ground slurry pressure intensity is obtained; and uploading the ground mud pressure to an overground target device, so that the target device determines whether a mud pulse communication function is normal or not based on the obtained ground mud pressure. According to the method provided by the embodiment of the invention, the slurry communication test can be carried out on the diameter measuring instrument based on a simple and accurate mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of mud communication technology, and in particular to a mud pulse communication testing method and device. Background Art

[0002] In order to accurately control the borehole trajectory during the drilling process, a measurement while drilling (MWD) system is required to transmit the drill bit's position and status information back to the ground. Compared with the use of electromagnetic waves and ultrasonic waves to transmit signals, the MWD transmission signal based on mud pressure pulses is less affected by electromagnetic and drilling tool vibration interference and is widely used in practice. Due to the high cost of going down the well, the mud pulse communication of the MWD needs to be tested before the formal downhole operation.

[0003] There are two existing methods for testing mud pulse communication. One is to collect the electrical signal output by the MWD main control code, convert it into a digital signal and send it to the ground software for decoding. Since the change speed of the electrical signal is much faster than the change speed of the mud pressure, this method cannot simulate the actual working conditions underground. The other is to build a water circulation test platform and use a 3,000-meter water pipe to simulate the underground working conditions. This method requires an independent test site and is costly. Summary of the invention

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a mud pulse communication test method, which is characterized by comprising:

[0005] Obtaining mud pulse codes correspondingly generated by an encoder in the logging instrument based on the rotation information of the shear valve motor;

[0006] Calculate and determine the rotation angle of the shear valve motor based on the mud pulse code and the bit information of the encoder;

[0007] determining a candidate ground mud pressure in combination with the rotation angle of the shear valve motor;

[0008] Adding Gaussian noise to the candidate ground mud pressure to obtain the ground mud pressure;

[0009] The ground mud pressure is uploaded to the ground target device, so that the target device determines whether the mud pulse communication function is normal based on the obtained ground mud pressure.

[0010] In some embodiments, the step of obtaining the mud pulse code generated by the encoder in the logging tool based on the rotation information of the shear valve includes:

[0011] Controlling the rotation of the shear valve motor and determining the rotation information of the shear valve motor;

[0012] The encoder is controlled to generate a mud pulse code corresponding to the rotation information of the shear valve motor.

[0013] In some embodiments, the method further comprises:

[0014] Obtain the pulse increment of the encoder at the current moment compared to the previous moment.

[0015] In some embodiments, the method further comprises:

[0016] The accumulated value of the number of pulses at the current moment is determined based on the number of pulses at the previous moment and the pulse increment at the current moment.

[0017] In some embodiments, the calculation and determination of the rotation angle of the shear valve motor in the logging instrument based on the mud pulse encoding and the bit information of the encoder includes:

[0018] Based on the pulse increment and the number of pulses, the rotation angle θ of the shear valve motor in the logging tool is calculated by the following formula: k :

[0019]

[0020] The EncoderIncrement k is the accumulated value of the number of pulses, EncoderBits is the pulse increment, and k represents the moment.

[0021] In some embodiments, the method further comprises:

[0022] Based on the rotation angle of the shear valve motor, the effective flow area ratio S of the shear valve is calculated by combining the following formula: k :

[0023]

[0024] The θ k is the rotation angle of the shear valve motor.

[0025] In some embodiments, determining the candidate ground mud pressure in combination with the rotation angle of the shear valve motor includes:

[0026] Determine the effective flow area ratio S of the shear valve determined based on the rotation angle of the shear valve motor k , mud density ρ, mud pumped out flow rate v;

[0027] Based on the effective circulation area ratio S k The candidate ground mud pressure is determined by calculating the mud density ρ and the flow rate v at which the mud is pumped out.

[0028] In some embodiments, the step of adding Gaussian noise to the candidate ground mud pressure to obtain the ground mud pressure includes:

[0029] Determine current working condition information;

[0030] determining a target Gaussian noise based on the operating condition information;

[0031] Based on the target Gaussian noise and the candidate ground mud pressure, the ground mud pressure is calculated by combining the following formula:

[0032]

[0033] S is the ground mud pressure, S k is the effective flow area ratio of the shear valve, ρ is the mud density, v is the flow rate of the mud being pumped out, (0-1)rand is a Gaussian random number, and 1+0.1rand represents the target Gaussian noise.

[0034] In some embodiments, the target device includes a surface box, which is used to decode the obtained surface mud pressure in real time and evaluate the quality of the decoded data to determine whether the mud pulse communication function is normal.

[0035] Another embodiment of the present invention further provides a mud pulse communication testing device, comprising:

[0036] An acquisition module is used to obtain the mud pulse code correspondingly generated by the encoder in the logging instrument based on the rotation information of the shear valve motor;

[0037] A calculation module, used for calculating and determining the rotation angle of the shear valve motor according to the mud pulse code and the bit information of the encoder;

[0038] a determination module, for determining a candidate ground mud pressure in combination with a rotation angle of the shear valve motor;

[0039] A noise adding module, used for adding Gaussian noise to the candidate ground mud pressure to obtain the ground mud pressure;

[0040] The uploading module is used to upload the ground mud pressure to the ground target device, so that the target device can determine whether the mud pulse communication function is normal based on the obtained ground mud pressure.

[0041] Based on the disclosure of the above embodiments, it can be known that the beneficial effects possessed by the embodiments of the present invention include collecting the rotation information of the shear valve motor instead of the mud pulse coded electrical signal, so as to truly reflect the change of mud pressure and improve the reliability of the mud pulse communication test results. Moreover, the implementation of the present application does not need to be based on high-computing power equipment, but only needs to be based on the existing encoder chip, control chip and supporting circuits in the logging instrument. There is no need to add physical devices, which reduces the demand for test sites and reduces testing costs. In addition, the noise added in the present application is custom noise, and the controller can choose to add different noises to the mud pressure according to different working conditions, thereby achieving a comprehensive test of mud pulse communication.

[0042] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings.

[0043] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 It is a schematic flow chart of the mud pulse communication testing method in an embodiment of the present invention.

[0046] Figure 2 FIG. 4 is a flow chart of a mud pulse communication testing method in another embodiment of the present invention.

[0047] Figure 3 The figure is a schematic diagram of the application flow of the mud pulse communication test method in the embodiment of the present invention.

[0048] Figure 4 4 is a structural block diagram of a mud pulse communication test device in an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings, but are not intended to limit the present invention.

[0050] It should be understood that various modifications may be made to the embodiments disclosed herein. Therefore, the following description should not be considered as limiting, but merely as an example of an embodiment. Other modifications within the scope and spirit of the present disclosure will occur to those skilled in the art.

[0051] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the general description of the present disclosure given above and the detailed description of the embodiments given below, serve to explain the principles of the present disclosure.

[0052] These and other characteristics of the invention will become apparent from the following description of a preferred form of embodiment given as a non-limiting example, with reference to the accompanying drawings.

[0053] It should also be understood that, although the invention has been described with reference to some specific examples, those skilled in the art will be able to realize many other equivalent forms of the invention that have the characteristics recited in the claims and are therefore within the scope of protection defined thereby.

[0054] The above and other aspects, features and advantages of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.

[0055] Specific embodiments of the present disclosure are described hereinafter with reference to the accompanying drawings; however, it should be understood that the disclosed embodiments are merely examples of the present disclosure, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid obscuring the present disclosure with unnecessary or redundant details. Therefore, the specific structural and functional details disclosed herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present disclosure in a variety of ways with substantially any suitable detailed structure.

[0056] This specification may use the phrases "in one embodiment," "in another embodiment," "in a further embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present disclosure.

[0057] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0058] like Figure 1 As shown, an embodiment of the present invention provides a mud pulse communication test method, comprising:

[0059] S1: Obtaining mud pulse codes correspondingly generated by the encoder in the logging instrument based on the rotation information of the shear valve motor;

[0060] S2: Calculating and determining the rotation angle of the shear valve motor based on the mud pulse code and the bit information of the encoder;

[0061] S3: determining a candidate ground mud pressure in combination with the rotation angle of the shear valve motor;

[0062] S4: adding Gaussian noise to the candidate ground mud pressure to obtain the ground mud pressure;

[0063] S5: Uploading the ground mud pressure to the ground target device, so that the target device determines whether the mud pulse communication function is normal based on the obtained ground mud pressure.

[0064] The scheme of this embodiment can be applied to well logging instruments, and can also be applied to other drilling equipment with limited computing power. In this embodiment, the method in this embodiment is mainly based on the encoder chip, controller (such as but not limited to MCU chip) and supporting circuits in the well logging instrument as the execution subject. Therefore, based on the content of the above embodiment, it can be known that the scheme of this embodiment does not need to be implemented based on high computing power equipment during implementation. It only needs to be based on the existing encoder chip and control chip and supporting circuits in the well logging instrument. There is no need to add physical devices, which reduces the demand for test sites, reduces testing costs, and also reduces subsequent application costs. Moreover, this embodiment collects the rotation information of the shear valve motor instead of the mud pulse coded electrical signal, so that the mud pressure changes can be truly reflected, and the reliability of the mud pulse communication test results is improved. In addition, in this embodiment, noise is added to the candidate ground mud pressure to simulate the actual working conditions, increase the test effectiveness, and improve the test value.

[0065] After starting the logging instrument and preparing to start the test, first initialize the pulse number accumulated value stored in the encoder, making EncoderNum0 = 0.

[0066] Then, if Figure 2 As shown, in one embodiment, the step of obtaining the mud pulse code correspondingly generated by the encoder in the logging tool based on the rotation information of the shear valve includes:

[0067] S6: controlling the shear valve motor to rotate and determining the rotation information of the shear valve motor;

[0068] S7: Control the encoder to generate mud pulse code corresponding to the rotation information of the shear valve motor.

[0069] The control of the shear valve motor can be performed based on the measurement while drilling system.

[0070] Further, such as Figure 3 As shown, the method also includes:

[0071] S8: Obtain the pulse increment of the encoder at the current moment compared with the previous moment.

[0072] Take the current moment as moment k and get the pulse increment EncoderIncrement of the current moment compared to moment k-1 k .

[0073] The method further comprises:

[0074] S9: Determine the cumulative value of the number of pulses at the current moment based on the number of pulses at the previous moment and the pulse increment calculation at the current moment.

[0075] For example, EncoderNum k =EncoderNum k-1 +EncoderIncrement k .

[0076] Furthermore, the calculation and determination of the rotation angle of the shear valve motor in the logging instrument based on the mud pulse encoding and the bit information of the encoder includes:

[0077] S10: Based on the pulse increment and the number of pulses, the rotation angle θ of the shear valve motor in the logging tool is calculated by the following formula: k :

[0078]

[0079] The EncoderIncrement k is the accumulated value of the number of pulses, EncoderBits is the pulse increment, and k represents the moment.

[0080] Continue to combine Figure 3 As shown, after the rotation angle of the shear valve motor is calculated, the method further includes:

[0081] S11: Based on the rotation angle of the shear valve motor, the effective flow area ratio S of the shear valve is calculated by combining the following formula: k :

[0082]

[0083] The θ k is the rotation angle of the shear valve motor.

[0084] After determining the effective flow area ratio of the shear valve, the controller will calculate the ground mud pressure accordingly. Specifically, the candidate ground mud pressure is determined in combination with the rotation angle of the shear valve motor, including:

[0085] S12: Determine the effective flow area ratio S of the shear valve determined based on the rotation angle of the shear valve motor k , mud density ρ, mud pumped out flow rate v;

[0086] S13: Based on the effective circulation area ratio S k The candidate ground mud pressure is determined by calculating the mud density ρ and the flow rate v at which the mud is pumped out.

[0087] For example, the candidate ground mud pressure can be calculated by combining the following formula:

[0088]

[0089] After obtaining the candidate ground mud pressure, in order to make it more able to express the real mud state under different working conditions, the controller in this embodiment will also add noise processing on the basis of the candidate ground mud pressure. Specifically, the Gaussian noise is added to the candidate ground mud pressure to obtain the ground mud pressure, including:

[0090] S14: Determine current working condition information;

[0091] S15: determining a target Gaussian noise based on the operating condition information;

[0092] S16: Based on the target Gaussian noise and the candidate ground mud pressure, the ground mud pressure is calculated by combining the following formula:

[0093]

[0094] S is the ground mud pressure, S k is the effective flow area ratio of the shear valve, ρ is the mud density, v is the flow rate of the mud being pumped out, (0-1)rand is a Gaussian random number, and 1+0.1rand represents the target Gaussian noise.

[0095] In this embodiment, the noise of the candidate ground mud pressure is a custom noise, and the controller can choose to add different noises to the mud pressure according to different working conditions, thereby realizing a comprehensive test of mud pulse communication, that is, a communication test under various working conditions.

[0096] After obtaining the ground mud pressure, the controller can upload it to the target device on the ground. The target device can be but is not limited to a ground box and other devices. In this embodiment, the ground box is taken as an example. The ground box is used to decode the obtained ground mud pressure in real time and evaluate the quality of the decoded data, thereby determining whether the mud pulse communication function is normal.

[0097] like Figure 4 As shown, another embodiment of the present invention also provides a mud pulse communication test device, including:

[0098] An acquisition module is used to obtain the mud pulse code correspondingly generated by the encoder in the logging instrument based on the rotation information of the shear valve motor;

[0099] A calculation module, used for calculating and determining the rotation angle of the shear valve motor according to the mud pulse code and the bit information of the encoder;

[0100] a determination module, for determining a candidate ground mud pressure in combination with a rotation angle of the shear valve motor;

[0101] A noise adding module, used for adding Gaussian noise to the candidate ground mud pressure to obtain the ground mud pressure;

[0102] The uploading module is used to upload the ground mud pressure to the ground target device, so that the target device can determine whether the mud pulse communication function is normal based on the obtained ground mud pressure.

[0103] In some embodiments, the step of obtaining the mud pulse code generated by the encoder in the logging instrument based on the rotation information of the shear valve motor includes:

[0104] Controlling the rotation of the shear valve motor and determining the rotation information of the shear valve motor;

[0105] The encoder is controlled to generate a mud pulse code corresponding to the rotation information of the shear valve motor.

[0106] In some embodiments, the obtaining module is further used to:

[0107] Obtain the pulse increment of the encoder at the current moment compared to the previous moment.

[0108] In some embodiments, the computing module is further configured to:

[0109] The accumulated value of the number of pulses at the current moment is determined based on the number of pulses at the previous moment and the pulse increment at the current moment.

[0110] In some embodiments, the calculation and determination of the rotation angle of the shear valve motor in the logging instrument based on the mud pulse encoding and the bit information of the encoder includes:

[0111] Based on the pulse increment and the number of pulses, the rotation angle θ of the shear valve motor in the logging tool is calculated by the following formula: k :

[0112]

[0113] The EncoderIncrement k is the accumulated value of the number of pulses, EncoderBits is the pulse increment, and k represents the moment.

[0114] In some embodiments, the computing module is further configured to:

[0115] Based on the rotation angle of the shear valve motor, the effective flow area ratio S of the shear valve is calculated by combining the following formula: k :

[0116]

[0117] The θ k is the rotation angle of the shear valve motor.

[0118] In some embodiments, determining the candidate ground mud pressure in combination with the rotation angle of the shear valve motor includes:

[0119] Determine the effective flow area ratio S of the shear valve determined based on the rotation angle of the shear valve motor k , mud density ρ, mud pumped out flow rate v;

[0120] Based on the effective circulation area ratio S k The candidate ground mud pressure is determined by calculating the mud density ρ and the flow rate v at which the mud is pumped out.

[0121] In some embodiments, the step of adding Gaussian noise to the candidate ground mud pressure to obtain the ground mud pressure includes:

[0122] Determine current working condition information;

[0123] determining a target Gaussian noise based on the operating condition information;

[0124] Based on the target Gaussian noise and the candidate ground mud pressure, the ground mud pressure is calculated by combining the following formula:

[0125]

[0126] S is the ground mud pressure, S k is the effective flow area ratio of the shear valve, ρ is the mud density, v is the flow rate of the mud being pumped out, (0-1)rand is a Gaussian random number, and 1+0.1rand represents the target Gaussian noise.

[0127] In some embodiments, the target device includes a surface box, which is used to decode the obtained surface mud pressure in real time and evaluate the quality of the decoded data to determine whether the mud pulse communication function is normal.

[0128] Another embodiment of the present invention also provides a testing system for use in a well logging instrument, wherein the well logging instrument includes an encoder, a controller, a measurement while drilling system, a drill bit, supporting circuits, etc., wherein the encoder, controller, and measurement while drilling system cooperate to perform the mud pulse communication test method described in any of the embodiments above.

[0129] Furthermore, an embodiment of the present invention also provides a storage medium on which a computer program is stored, and when the program is executed by a controller, the mud pulse communication test method described above is implemented. It should be understood that each solution in this embodiment has the corresponding technical effect in the above method embodiment, which will not be repeated here.

[0130] Furthermore, an embodiment of the present invention also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer-readable instructions. When the computer-executable instructions are executed, at least one controller performs a mud pulse communication test method such as the one in the above-described embodiment.

[0131] It should be noted that the computer storage medium of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access storage medium (RAM), a read-only storage medium (ROM), an erasable programmable read-only storage medium (EPROM or flash memory), an optical fiber, a portable compact disk read-only storage medium (CD-ROM), an optical storage medium, a magnetic storage medium, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate or transmit a program configured to be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, antenna, optical cable, RF, etc., or any suitable combination of the above.

[0132] In addition, it will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0133] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A system that specifies the functions of a box or boxes.

[0134] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction system, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0135] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of protection of the present application is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

Claims

1. A mud pulse communication test method, characterized in that: include: Obtaining mud pulse codes correspondingly generated by an encoder in the logging instrument based on the rotation information of the shear valve motor; Calculate and determine the rotation angle of the shear valve motor based on the mud pulse code and the bit information of the encoder; determining a candidate ground mud pressure in combination with the rotation angle of the shear valve motor; Adding Gaussian noise to the candidate ground mud pressure to obtain the ground mud pressure; The ground mud pressure is uploaded to the ground target device, so that the target device determines whether the mud pulse communication function is normal based on the obtained ground mud pressure.

2. The mud pulse communication test method according to claim 1, characterized in that: The method of obtaining the mud pulse code generated by the encoder in the logging instrument based on the rotation information of the shear valve motor includes: Controlling the rotation of the shear valve motor and determining the rotation information of the shear valve motor; The encoder is controlled to generate a mud pulse code corresponding to the rotation information of the shear valve motor.

3. The mud pulse communication test method according to claim 1, characterized in that: The method further comprises: Obtain the pulse increment of the encoder at the current moment compared to the previous moment.

4. The mud pulse communication test method according to claim 3, characterized in that: The method further comprises: The accumulated value of the number of pulses at the current moment is determined based on the number of pulses at the previous moment and the pulse increment at the current moment.

5. The mud pulse communication test method according to claim 4, characterized in that: The method of calculating and determining the rotation angle of the shear valve motor in the logging instrument based on the mud pulse encoding and the bit information of the encoder includes: Based on the pulse increment and the number of pulses, the rotation angle θ of the shear valve motor in the logging tool is calculated by the following formula: k : The EncoderIncrement k is the accumulated value of the number of pulses, EncoderBits is the pulse increment, and k represents the moment.

6. The mud pulse communication test method according to claim 1, characterized in that: The method further comprises: Based on the rotation angle of the shear valve motor, the effective flow area ratio S of the shear valve is calculated by combining the following formula: k : The θ k is the rotation angle of the shear valve motor.

7. The mud pulse communication test method according to claim 6, characterized in that: The determining of the candidate ground mud pressure in combination with the rotation angle of the shear valve motor includes: Determine the effective flow area ratio S of the shear valve determined based on the rotation angle of the shear valve motor k , mud density ρ, mud pumped out flow rate v; Based on the effective circulation area ratio S k The candidate ground mud pressure is determined by calculating the mud density ρ and the flow rate v at which the mud is pumped out.

8. The mud pulse communication test method according to claim 1, characterized in that: The step of adding Gaussian noise to the candidate ground mud pressure to obtain the ground mud pressure includes: Determine current working condition information; determining a target Gaussian noise based on the operating condition information; Based on the target Gaussian noise and the candidate ground mud pressure, the ground mud pressure is calculated by combining the following formula: S is the ground mud pressure, S k is the effective flow area ratio of the shear valve, ρ is the mud density, v is the flow rate of the mud being pumped out, (0-1)rand is a Gaussian random number, and 1+0.1rand represents the target Gaussian noise.

9. The mud pulse communication test method according to claim 1, characterized in that: The target device includes a ground box, which is used to decode the obtained ground mud pressure in real time and evaluate the quality of the decoded data, thereby determining whether the mud pulse communication function is normal.

10. A mud pulse communication test device, characterized in that: include: An acquisition module is used to obtain the mud pulse code correspondingly generated by the encoder in the logging instrument based on the rotation information of the shear valve motor; A calculation module, used for calculating and determining the rotation angle of the shear valve motor according to the mud pulse code and the bit information of the encoder; a determination module, for determining a candidate ground mud pressure in combination with a rotation angle of the shear valve motor; A noise adding module, used for adding Gaussian noise to the candidate ground mud pressure to obtain the ground mud pressure; The uploading module is used to upload the ground mud pressure to the ground target device, so that the target device can determine whether the mud pulse communication function is normal based on the obtained ground mud pressure.