Download coding and decoding method and system for simplifying pulse number of rotary steerable drilling system

By using the down-pass codec method with a streamlined pulse count in the rotary guide drilling system, the erosion problem caused by the number of openings of the disc valve in the mud leaking device is solved, and the effect of reducing the opening time of the disc valve and extending the life of the device is achieved.

CN119519890APending Publication Date: 2025-02-25CNPC BOHAI DRILLING ENG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311079938.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the existing rotary guide drilling system, the disk valve of the mud discharge device is opened many times, resulting in a long erosion time of high-pressure mud on the disk valve, reducing the mud circulation efficiency and device service life, and increasing maintenance costs.

Method used

A download codec method for streamlining pulse counts of rotary guide drilling system is proposed. By obtaining the download command to be encoded, including synchronization pulses, data pulses and end pulses, it is arranged in sequence according to the set interval, and binary encoding is performed to fill it. In the time slot, only the position of the time slot occupied by the pulse is identified, and the pulse width is not identified.

Benefits of technology

With the same pulse width, the opening time of the slurry discharge device disk valve is reduced by 2/3, extending the service life of the device, reducing maintenance costs, and dynamically adjusting the pulse width during drilling without affecting decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119519890A_ABST
    Figure CN119519890A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of pulse signal encoding and decoding, and particularly relates to a downloading encoding and decoding method and system for simplifying the number of pulses of a rotary steerable drilling system and an encoding method and system. The problems that the slurry circulation efficiency is reduced, the service life of a slurry drainage device is shortened, and the maintenance cost is increased are solved. The method comprises the following steps: acquiring a downloading instruction to be coded of the rotary steerable drilling system; the downloading instruction comprises a synchronization pulse, a data pulse and an end pulse; after at least one synchronization pulse, a data pulse and an end pulse in the downloading instruction are sequentially arranged according to a set interval, binary coding is performed on the original data pulse, and the original data pulse is set in the data pulse to obtain coded data; and carrying out inverse operation decoding on the coded data to obtain a decoded downloading instruction. According to the invention, the opening time of the disc valve of the slurry discharge device can be saved by 2 / 3, the service life of the slurry discharge device is prolonged, and the maintenance cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of pulse signal coding and decoding, and specifically relates to a downlink coding and decoding method and system for reducing the number of pulses in a rotary steering drilling system, and a coding method and system. Background Art

[0002] In the oil drilling industry, the rotary steerable drilling system is currently an advantageous technology for the economical and efficient development of unconventional oil and gas reservoirs, and is a key equipment for the safe and rapid drilling of long horizontal wells. With the large-scale application of the rotary steerable drilling system, the efficiency and stability of the signal up and down transmission technology are key links in the overall reliability of the system. At present, the command transmission is generally achieved through the riser diversion method. The riser is connected to the mud discharge device BPA, the computer runs the command transmission software, and the BPA is controlled through the DLC interface box to automatically complete the command transmission. The command transmission encoding generally adopts the binary encoding method. The transmission encoding consists of a data wake-up pulse and information data. When the downhole master control receives the wake-up pulse signal, it stops sending the upload pulse signal. The information data includes the command header, command content and checksum.

[0003] The data frame consists of 16-bit binary code, including frame header (4 bits), data content (10 bits) and parity check (2 bits). With this encoding method, the disc valve of the mud discharge device needs to be opened 18 times to complete the sending of a downlink instruction. However, in actual use, the erosion of the mud discharge device should be taken into consideration. If the disc valve of the mud discharge device is opened many times, the high-pressure mud will erode the disc valve for a long time, which will not only reduce the efficiency of mud circulation, but also reduce the service life of the mud discharge device and increase maintenance costs.

[0004] Based on this, the present invention provides a method and system for encoding and decoding the number of pulses for a rotary steerable drilling system, which can reduce the erosion time of the mud on the mud discharge device, reduce the number of times the disc valve is opened, and reduce the number of pulses for command transmission. Summary of the invention

[0005] In order to solve the above-mentioned problems in the prior art, namely, the disc valve of the mud drainage device is opened many times, and the erosion time of the disc valve by the high-pressure mud is long, which not only reduces the efficiency of mud circulation, but also reduces the service life of the mud drainage device and increases the maintenance cost. The present invention provides a downlink encoding and decoding method and system for simplifying the number of pulses of a rotary steerable drilling system.

[0006] In one aspect of the present invention, a downlink encoding and decoding method for reducing the number of pulses in a rotary steerable drilling system is provided, the method comprising:

[0007] Obtaining a downlink instruction to be encoded by a rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse;

[0008] After arranging at least one synchronization pulse, data pulse and end pulse in the downlink instruction in sequence according to a set interval, the original data pulse is binary-encoded and set in the data pulse to obtain the coded data; the synchronization pulse is a pulse signal for commanding the downhole tool to stop uploading; the data pulse is a pulse signal obtained by encoding the original data pulse based on a set encoding method; the end pulse is a pulse signal for confirming the end of the downlink instruction;

[0009] The set encoding method includes: filling the data pulse into a time slot divided based on the downlink time of the original data pulse, and when the data corresponding to the peak or trough of any pulse data in the data pulse falls into the time slot, taking the pulse data as valid data;

[0010] The encoded data is decoded by inverse operation to obtain a decoded downlink instruction.

[0011] In some preferred embodiments, the data pulse is obtained by evenly dividing the original data pulse into N time slots of equal time according to the time length of the downlink, encoding the pulse data in the M original data pulses in the N time slots, and thereby obtaining the data pulse.

[0012] In some preferred embodiments, the width of each data in the data pulse does not exceed X of the time slots.

[0013] In some preferred embodiments, the center distance between the plurality of synchronization pulses is n times the time slot.

[0014] In some preferred embodiments, the set interval is: the center distance between the synchronization pulse and the adjacent data pulse is m times the time slot, where m is a positive integer.

[0015] In some preferred embodiments, the set interval is: the center distance between the end pulse and the adjacent data pulse is f times the time slot, where f is a positive integer.

[0016] In some preferred embodiments, the interval between two adjacent data in the data pulse is greater than or equal to Y time slots; and no data is set in the last T time slots of the data pulse.

[0017] Another aspect of the present invention provides a downlink encoding and decoding system for reducing the number of pulses in a rotary steerable drilling system. The system is based on a downlink encoding and decoding method for reducing the number of pulses in a rotary steerable drilling system. The system comprises:

[0018] The first data acquisition module is configured to acquire a downlink instruction to be encoded by the rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse;

[0019] The first encoding module is configured to sequentially arrange at least one synchronization pulse, data pulse and end pulse in the downlink instruction according to a set interval, perform binary encoding on the original data pulse, and set it in the data pulse to obtain the encoded data; the synchronization pulse is a pulse signal for commanding the downhole tool to stop uploading; the data pulse is a pulse signal obtained by encoding the original data pulse based on a set encoding method; the end pulse is a pulse signal for confirming the end of the downlink instruction;

[0020] The set encoding method includes: filling the data pulse into a time slot divided based on the downlink time of the original data pulse, and when the data corresponding to the peak or trough of any pulse data in the data pulse falls into the time slot, taking the pulse data as valid data;

[0021] The first decoding module is configured to perform inverse operation decoding on the encoded data to obtain decoded downlink instructions.

[0022] A third aspect of the present invention provides an encoding method, the method comprising:

[0023] Obtaining a downlink instruction to be encoded by a rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse;

[0024] After arranging at least one synchronization pulse, data pulse and end pulse in the downlink instruction in sequence according to a set interval, the original data pulse is binary-encoded and set in the data pulse to obtain the coded data; the synchronization pulse is a pulse signal for commanding the downhole tool to stop uploading; the data pulse is a pulse signal obtained by encoding the original data pulse based on a set encoding method; the end pulse is a pulse signal for confirming the end of the downlink instruction;

[0025] The set encoding method includes: filling the data pulse into a time slot divided based on the download time of the original data pulse, and when the corresponding data on the peak or trough of any pulse data in the data pulse falls into the time slot, the pulse data is used as valid data.

[0026] A fourth aspect of the present invention provides a coding system, which is based on a coding method and includes:

[0027] The second data acquisition module is configured to acquire the downlink instruction to be encoded by the rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse;

[0028] The second encoding module is configured to sequentially arrange at least one synchronization pulse, data pulse and end pulse in the downlink instruction according to a set interval, perform binary encoding on the original data pulse, and set it in the data pulse to obtain the encoded data; the synchronization pulse is used to command the downhole tool to stop uploading the pulse signal; the data in the data pulse is encoded using a set arrangement method; the end pulse is used to transmit the confirmation instruction;

[0029] The set encoding method includes: filling the data pulse into a time slot divided based on the download time of the original data pulse, and when the corresponding data on the peak or trough of any pulse data in the data pulse falls into the time slot, the pulse data is used as valid data.

[0030] Beneficial effects of the present invention:

[0031] (1) Under the same pulse width, compared with the instruction downlink binary encoding and decoding method, the disk valve opening time of the mud drainage device can be reduced by 2 / 3, which greatly improves the service life of the mud drainage device and saves maintenance costs;

[0032] (2) Because this encoding method only calculates the position of the time slot occupied by the pulse and does not identify the pulse width, the change of the pulse width does not affect the normal encoding and decoding. Due to the difference in well depth and mud density, the degree of signal attenuation is different. Therefore, the ground software can change the pulse width of the current downlink command at any time before the command is issued during the drilling process as the well depth and mud density change without affecting the decoding. Therefore, there is no need to take the equipment out of the well every time the pulse width is changed, which can save time, manpower and material resources.

[0033] (3) When the center point of any pulse data in the data pulse, that is, the point corresponding to the peak or trough, falls within the time slot, it is considered to be valid data and can be read. Therefore, there is an error in the time corresponding to the time slot. In this embodiment, an error of 8s is allowed, thereby improving the decoding rate and avoiding the occurrence of inaccurate pulse data recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0035] Figure 1 The present invention is a flow chart of a downlink encoding and decoding method for reducing the number of pulses in a rotary steerable drilling system;

[0036] Figure 2 It is the format of the downlink instruction signal of the present invention;

[0037] Figure 3 It is a schematic diagram of the encoding method of the present invention;

[0038] Figure 4 2 is a schematic diagram of the combined coding relationship of the code 54 of the first embodiment of the present invention;

[0039] Figure 5 This is the pulse sending process of the downlink instruction of the code 54 of the first embodiment of the present invention. DETAILED DESCRIPTION

[0040] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0041] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0042] like Figure 1-5 As shown, see Figure 1 , Figure 2 The first embodiment of the present invention provides a downlink encoding and decoding method for reducing the number of pulses in a rotary steerable drilling system, the method comprising:

[0043] Obtaining a downlink instruction to be encoded by a rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse;

[0044] After arranging at least one synchronization pulse, data pulse and end pulse in the downlink instruction in sequence according to a set interval, the original data pulse is binary-encoded and set in the data pulse to obtain the coded data; the synchronization pulse is a pulse signal for commanding the downhole tool to stop uploading; the data pulse is a pulse signal obtained by encoding the original data pulse based on a set encoding method; the end pulse is a pulse signal for confirming the end of the downlink instruction;

[0045] The set encoding method includes: filling the data pulse into a time slot divided based on the downlink time of the original data pulse, and when the data corresponding to the peak or trough of any pulse data in the data pulse falls into the time slot, taking the pulse data as valid data;

[0046] The encoded data is decoded by inverse operation to obtain a decoded downlink instruction.

[0047] Among them, “when the data corresponding to the crest or trough of any pulse data in the data pulse falls into the time slot” is specifically expanded as follows: when the data pulse is a positive pulse, the data corresponding to the crest of any pulse data in the data pulse falls into the time slot, and the pulse data is regarded as valid data;

[0048] When the data pulse is a negative pulse, the data corresponding to the trough of any pulse data in the data pulse falls into the time slot, and the pulse data is regarded as valid data.

[0049] In this embodiment, two synchronization pulses are used, such as Figure 2 Syn0 and Syn1 shown in the figure, 4 data pulses, such as Figure 2 P0, P1, P2, P3, and 1 end pulse are shown in Figure 2 End as shown.

[0050] Preferably, see Figure 5 The data pulse is obtained by evenly dividing the original data pulse into N time slots of equal time according to the time length of the downlink, encoding the pulse data in the M original data pulses in the N time slots, and then obtaining the data pulse.

[0051] Among them, in this embodiment, because the total number of transmitted instructions does not exceed 4000, the combination encoding of M=4 and N=28 is adopted.

[0052] Preferably, see Figure 3 , Figure 5 , the width of each data in the data pulse does not exceed X of the time slots.

[0053] In this embodiment, X is preferably 1.5, and one time slot is 8 seconds.

[0054] Preferably, see Figure 5 , the center distance between multiple synchronization pulses is n times of the time slot.

[0055] In this embodiment, n is preferably 3.5, that is, the center distance between two synchronization pulses is 28s.

[0056] Preferably, see Figure 5 , the set interval is: the center distance between the synchronization pulse and the adjacent data pulse is m times the time slot, where m is a positive integer.

[0057] In this embodiment, m is preferably 4, that is, the data interval between the second synchronization pulse and the first data pulse is 32s.

[0058] Preferably, see Figure 5 , the set interval is: the center distance between the end pulse and the adjacent data pulse is f times the time slot, where f is a positive integer.

[0059] In this embodiment, the f is preferably 2, that is, the data in the last data pulse is 16s away from the center of the end pulse.

[0060] Preferably, see Figure 3 , the interval between two adjacent data in the data pulse is greater than or equal to Y time slots; no data is set in the last T time slots of the data pulse.

[0061] Among them, in this embodiment, the Y is preferably 2, and the T is preferably 2, that is, the center distance between two adjacent data in the data pulse is at least 2 time slots apart, and no data is set in the last two time slots of the data pulse.

[0062] By using the encoding method, as long as the center point of any pulse data in the data pulse, that is, the peak or trough point falls within the time slot, the data is determined to be valid data. Therefore, there is an error in the time corresponding to a time slot. In the present embodiment, an error of 8s can be allowed to exist, thereby improving the decoding rate and avoiding the phenomenon of inaccurate recognition of pulse data. At the same time, the encoding and decoding method of the present invention does not need to identify the pulse width. The pulse width of the transmitted instruction can be changed at any time before the instruction is issued without affecting the decoding, thereby eliminating the need to take the equipment up from the well to adjust the parameters, thereby saving time, manpower and material resources.

[0063] See also Figure 5 The width of the time slot occupied by P0, P1, P2, and P3 represents the width of this pulse. When the center point of P0, P1, P2, and P3 is located in the time slot, the data of the pulse can be read.

[0064] In the present invention, see Figure 5, the pulse width DLPW of the transmitted instruction can be 2s, 4s, 6s, 8s, 10s, 12s. In one instruction, the width of each pulse is the same. The center distance of the synchronization pulse (Syn0, Syn1) is 28s (8s*3.5 time slots). Because the interval of the data pulse is an integer multiple of the time slot, in order to prevent the data pulse of a specific value from being identified as a synchronization pulse, the center distance of the synchronization pulse is specified to be 3.5*time slots. The 28 time slots of the data pulse are defined as S0-S27. The first time slot (S0) of the data frame is 4 time slots (32s) away from the center of SYN1. The last one of the instruction is the end pulse END. The end pulse END is 2 time slots (16s) away from the center of S27. The instruction length (Syn0~End) is fixed to 292s.

[0065] Because this encoding method only calculates the position of the time slot occupied by the pulse and does not identify the pulse width, the change of the pulse width does not affect the normal encoding and decoding. Due to the difference in well depth and mud density, the degree of signal attenuation is different, so the ground software can change the pulse width of the current downlink command at any time before the command is issued during the drilling process as the well depth and mud density change without affecting the decoding.

[0066] For example, see Figure 4 , Figure 5 , the specific encoding method is explained by taking the downlink instruction encoding as 54 (decimal) as an example, and the decoding method is the reverse operation process of the encoding;

[0067] The downlink instruction corresponding to code 54 is the target well inclination angle of 10°, using M=4, N=28 combination coding. The specific position correspondence between the pulse and the time slot is as follows: Figure 5 As shown, the corresponding binary code is: 1001000001000000001000000000.

[0068] Although the various steps in the above embodiment are described in the above-mentioned order, those skilled in the art can understand that in order to achieve the effect of this embodiment, different steps do not have to be executed in such an order. They can be executed simultaneously (in parallel) or in a reverse order. These simple changes are within the scope of protection of the present invention.

[0069] A second embodiment of the present invention provides a downlink encoding and decoding system for a rotary steerable drilling system with reduced pulse counts. The system is based on a downlink encoding and decoding method for a rotary steerable drilling system with reduced pulse counts. The system comprises:

[0070] The first data acquisition module is configured to acquire a downlink instruction to be encoded by the rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse;

[0071] The first encoding module is configured to sequentially arrange at least one synchronization pulse, data pulse and end pulse in the downlink instruction according to a set interval, perform binary encoding on the original data pulse, and set it in the data pulse to obtain the encoded data; the synchronization pulse is a pulse signal for commanding the downhole tool to stop uploading; the data pulse is a pulse signal obtained by encoding the original data pulse based on a set encoding method; the end pulse is a pulse signal for confirming the end of the downlink instruction;

[0072] The set encoding method includes: filling the data pulse into a time slot divided based on the downlink time of the original data pulse, and when the data corresponding to the peak or trough of any pulse data in the data pulse falls into the time slot, taking the pulse data as valid data;

[0073] The first decoding module is configured to perform inverse operation decoding on the encoded data to obtain decoded downlink instructions.

[0074] It should be noted that the above embodiment provides a rotary steerable drilling system with a simplified pulse number downlink encoding and decoding system, which is illustrated only by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the modules or steps in the embodiments of the present invention can be decomposed or combined. For example, the modules in the above embodiments can be combined into one module, or further divided into multiple sub-modules to complete all or part of the functions described above. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing the modules or steps, and are not regarded as improper limitations on the present invention.

[0075] A third embodiment of the present invention provides an encoding method, the method comprising:

[0076] Obtaining a downlink instruction to be encoded by a rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse;

[0077] After arranging at least one synchronization pulse, data pulse and end pulse in the downlink instruction in sequence according to a set interval, the original data pulse is binary-encoded and set in the data pulse to obtain the coded data; the synchronization pulse is a pulse signal for commanding the downhole tool to stop uploading; the data pulse is a pulse signal obtained by encoding the original data pulse based on a set encoding method; the end pulse is a pulse signal for confirming the end of the downlink instruction;

[0078] The set encoding method includes: filling the data pulse into a time slot divided based on the download time of the original data pulse, and when the corresponding data on the peak or trough of any pulse data in the data pulse falls into the time slot, the pulse data is used as valid data.

[0079] The details of the above method can be found in the first embodiment of the present invention and will not be described in detail here.

[0080] A fourth embodiment of the present invention provides a coding system, the system comprising:

[0081] The second data acquisition module is configured to acquire the downlink instruction to be encoded by the rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse;

[0082] The second encoding module is configured to arrange at least one synchronization pulse, data pulse and end pulse in the downlink instruction in sequence according to a set interval, perform binary encoding on the original data pulse, and set it in the data pulse to obtain the encoded data; the synchronization pulse is used to command the downhole tool to stop uploading the pulse signal; the data in the data pulse is encoded using a set arrangement method; the end pulse is used to transmit the confirmation instruction. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process and related instructions of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0083] The set encoding method includes: filling the data pulse into a time slot divided based on the download time of the original data pulse, and when the corresponding data on the peak or trough of any pulse data in the data pulse falls into the time slot, the pulse data is used as valid data.

[0084] The terms "first", "second", etc. are used to distinguish similar objects rather than to describe or indicate a particular order or sequence.

[0085] The term "comprise" or any other similar term is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus / device that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus / device.

[0086] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A method for encoding and decoding the number of pulses in a rotary steerable drilling system, characterized in that: The method includes: Obtaining a downlink instruction to be encoded by a rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse; After arranging at least one synchronization pulse, data pulse and end pulse in the downlink instruction in sequence according to a set interval, the original data pulse is binary-encoded and set in the data pulse to obtain the coded data; the synchronization pulse is a pulse signal for commanding the downhole tool to stop uploading; the data pulse is a pulse signal obtained by encoding the original data pulse based on a set encoding method; the end pulse is a pulse signal for confirming the end of the downlink instruction; The set encoding method includes: filling the data pulse into a time slot divided based on the downlink time of the original data pulse, and when the data corresponding to the peak or trough of any pulse data in the data pulse falls into the time slot, taking the pulse data as valid data; The encoded data is decoded by inverse operation to obtain a decoded downlink instruction.

2. A method for encoding and decoding a reduced pulse number for a rotary steerable drilling system according to claim 1, characterized in that: The data pulse is obtained by evenly dividing the original data pulse into N time slots of equal time according to the time length of the downlink, encoding the pulse data in the M original data pulses in the N time slots, and then obtaining the data pulse.

3. The method for encoding and decoding the pulse number of a rotary steerable drilling system according to claim 2, characterized in that: The width of each data in the data pulse does not exceed X of the time slots.

4. The method for encoding and decoding the pulse number of a rotary steerable drilling system according to claim 3 is characterized in that: The center distance between the multiple synchronization pulses is n times the time slot.

5. A method for encoding and decoding the pulse number of a rotary steerable drilling system according to claim 4, characterized in that: The set interval is: the center distance between the synchronization pulse and the adjacent data pulse is m times the time slot, where m is a positive integer.

6. A method for encoding and decoding the pulse number of a rotary steerable drilling system according to claim 5, characterized in that: The set interval is: the center distance between the end pulse and the adjacent data pulse is f times the time slot, where f is a positive integer.

7. A method for encoding and decoding the pulse number of a rotary steerable drilling system according to claim 6, characterized in that: The interval between two adjacent data in the data pulse is greater than or equal to Y time slots; no data is set in the last T time slots of the data pulse.

8. A downlink encoding and decoding system for reducing the number of pulses in a rotary steerable drilling system, based on a downlink encoding and decoding method for reducing the number of pulses in a rotary steerable drilling system as claimed in any one of claims 1 to 7, characterized in that: The system includes: The first data acquisition module is configured to acquire a downlink instruction to be encoded by the rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse; The first encoding module is configured to sequentially arrange at least one synchronization pulse, data pulse and end pulse in the downlink instruction according to a set interval, perform binary encoding on the original data pulse, and set it in the data pulse to obtain the encoded data; the synchronization pulse is a pulse signal for commanding the downhole tool to stop uploading; the data pulse is a pulse signal obtained by encoding the original data pulse based on a set encoding method; the end pulse is a pulse signal for confirming the end of the downlink instruction; The set encoding method includes: filling the data pulse into a time slot divided based on the downlink time of the original data pulse, and when the data corresponding to the peak or trough of any pulse data in the data pulse falls into the time slot, taking the pulse data as valid data; The first decoding module is configured to perform inverse operation decoding on the encoded data to obtain decoded downlink instructions.

9. A coding method, characterized in that: The method includes: Obtaining a downlink instruction to be encoded by a rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse; After arranging at least one synchronization pulse, data pulse and end pulse in the downlink instruction in sequence according to a set interval, the original data pulse is binary-encoded and set in the data pulse to obtain the coded data; the synchronization pulse is a pulse signal for commanding the downhole tool to stop uploading; the data pulse is a pulse signal obtained by encoding the original data pulse based on a set encoding method; the end pulse is a pulse signal for confirming the end of the downlink instruction; The set encoding method includes: filling the data pulse into a time slot divided based on the download time of the original data pulse, and when the corresponding data on the peak or trough of any pulse data in the data pulse falls into the time slot, the pulse data is used as valid data.

10. A coding system, characterized in that The system includes: The second data acquisition module is configured to acquire the downlink instruction to be encoded by the rotary steerable drilling system; the downlink instruction includes a synchronization pulse, a data pulse and an end pulse; The second encoding module is configured to sequentially arrange at least one synchronization pulse, data pulse and end pulse in the downlink instruction according to a set interval, perform binary encoding on the original data pulse, and set it in the data pulse to obtain the encoded data; the synchronization pulse is used to command the downhole tool to stop uploading the pulse signal; the data in the data pulse is encoded using a set arrangement method; the end pulse is used to transmit the confirmation instruction; The set encoding method includes: filling the data pulse into a time slot divided based on the download time of the original data pulse, and when the corresponding data on the peak or trough of any pulse data in the data pulse falls into the time slot, the pulse data is used as valid data.