CN-121984200-A - Underground power supply switching method
Abstract
The invention provides an underground power supply switching method which comprises the steps of collecting input voltage of each switch branch of a switching module, collecting output current of the switching module, determining target electric parameters of a power supply connected with the switching module according to each input voltage and each output current, wherein the target electric parameters comprise voltage or electric quantity, the target electric parameters are electric quantity when the power supply is a battery, controlling on-off of the corresponding switch branch of the switching module according to the target electric parameters of the power supply when an underground power supply switching circuit adopts an automatic control mode, and controlling on-off of the switch branch according to the target electric parameters of the power supply, namely controlling the power supply mode, namely controlling the power supply switching by adopting the electric quantity, so that the problem that the underground power supply is unstable and cannot work normally due to frequent switching of the power supply caused by adopting a voltage value as a judging basis is solved, the monitoring of the electric energy parameters is realized, and the stability of underground power supply is improved.
Inventors
- ZHANG SHOUWEI
- ZANG DEFU
- CHAO YONGSHENG
- SUN FENG
- HUANG YUKE
- GUAN LINHUA
Assignees
- 中国石油化工股份有限公司
- 中石化石油工程技术服务股份有限公司
- 中石化经纬有限公司
- 中石化经纬有限公司地质测控技术研究院
Dates
- Publication Date
- 20260505
- Application Date
- 20241029
Claims (10)
- 1. The underground power supply switching method is characterized by being applied to an underground power supply switching circuit, wherein the underground power supply switching circuit comprises a processing module and a switching module, an LTC4417 chip in the switching module is controlled by the processing module, N switch branches in the switching module are connected with N power supplies in a one-to-one correspondence manner, N is an integer larger than 1, and the underground power supply switching method comprises the following steps: Collecting input voltages of all switch branches of the switching module; collecting the output current of the switching module; Determining target electric parameters of a power supply connected with the switching module according to the input voltage and the output current, wherein the target electric parameters comprise voltage or electric quantity; when the underground power supply switching circuit adopts an automatic control mode, the on-off of the corresponding switch branch of the switching module is controlled according to the target electric parameter of the power supply.
- 2. The method of claim 1, wherein the power source to which the switching module is connected comprises a battery, and wherein determining the target electrical parameter of the power source to which the switching module is connected based on each of the input voltage and the output current comprises: Determining the accumulated electricity consumption of the currently-input battery according to the input voltage and the output current of the switch branch corresponding to the currently-input battery; and taking the accumulated electricity consumption of the currently input battery as the target electric parameter.
- 3. The method according to claim 2, wherein controlling the on-off of the corresponding switching branch of the switching module according to the target electrical parameter of the power supply comprises: And if the accumulated electricity consumption of the currently input battery reaches a threshold value, controlling the switch branch corresponding to the currently input battery to be turned off, and controlling the other switch branch in the switching module to be turned on so as to enable the switching power supply to continue supplying power.
- 4. The method of claim 3, wherein the power source to which the switching module is connected comprises a sustainable power source comprising at least one of a cable power source and a generator power source; and determining the target electrical parameter of the power supply connected with the switching module according to the input voltage and the output current, wherein the target electrical parameter is the voltage value of the sustainable power supply which is input at present.
- 5. The method of claim 4, wherein controlling the switching of the corresponding switching branches of the switching module according to the target electrical parameter of the power supply comprises: If the voltage value of the currently-input sustainable power supply is smaller than the threshold voltage, the switching branch corresponding to the currently-input sustainable power supply is controlled to be turned off, and the other switching branch in the switching module is controlled to be turned on, so that the switching power supply continues to supply power.
- 6. The downhole power switching method of claim 1, further comprising: when the underground power supply switching circuit adopts an upper computer control mode, acquiring an instruction sent by an upper computer; And controlling a target switch branch in the switching module to execute target action, wherein the target action is the action indicated in the instruction, and the target switch branch is the switch branch indicated in the instruction.
- 7. The downhole power switching method of claim 1, wherein the downhole power switching circuit comprises two switching systems, the switching systems comprising a processing module and a switching module, further comprising: and when the synchronization condition is met, data synchronization is carried out between the two switching systems.
- 8. The method of claim 7, wherein the two switching systems are in a master-slave control mode or a parallel control mode.
- 9. The method of claim 7, wherein when the two switching systems adopt a master-slave control mode, initializing a first switching system as a master system and a second switching system as a slave system, wherein the master system is used for executing the method, and when the first switching system fails to work normally, the second switching system is used as the master system and the first switching system is used as the slave system.
- 10. The method of claim 1, further comprising storing operating parameters of the switching system in a memory module; The operation parameters comprise input voltages of all switch branches of the switching module, output currents of the switching module, target electric parameters of the power supply and operation states of all switch branches; before the collecting the input voltages of the switch branches of the switching module, the method further comprises: and after the switching system is electrified, the operation parameters stored in the storage module are read.
Description
Underground power supply switching method Technical Field The invention belongs to the technical field of power supply switching devices, and particularly relates to an underground power supply switching method. Background The low-voltage direct current power supply supplies power to the instrument and performs switching control on power supply of multiple power supplies, one of the mature schemes is to adopt an LTC4417 chip, and an automatic switching control module for three groups of power supplies is formed by externally expanding a plurality of groups of MOS (metal oxide semiconductor) tubes and sampling resistors. In the prior art, an LTC4417 chip is adopted, simple logic switching of 3-path power supply is realized according to a standard scheme provided by manufacturers, a power supply switching mechanism of the LTC4417 chip depends on resistance sampling to compare the values of three groups of power supply voltages, specifically, for example, a1 st channel has higher priority, the voltage is reduced during power supply, and when the voltage of a sampling signal is smaller than a threshold value, the LTC4417 chip determines that the channel 1 does not meet the power supply requirement and switches to the channel 2. When the voltage of the channel 2 sampling signal is smaller than the threshold value, the LTC4417 chip determines that the channel 2 does not meet the power supply requirement, and switches to the channel 3. The voltage of the power supply is compared through voltage sampling, and the function of automatically switching one path of power supply to supply power to the load by the three paths of input power supplies is realized according to the priority. When the power of the three power supplies is stable, any one of the three power supplies suddenly breaks, the control circuit is simple by adopting a resistance sampling mode, the effect is obvious, and the power supply channel can be timely adjusted according to the power supply condition. In the logging application process, the power supply mode of the instrument is complex, and various modes such as cable power supply, generator power supply, battery power supply and the like exist. When a special power supply mode such as a battery or a generator is adopted, the battery or the generator power supply is limited in a specific application scene under the well, the situation that power is insufficient can occur for an instrument needing to be supplied with power, and an unstable power supply switching state can occur through a voltage comparison method. For example, after the 1 st channel is disconnected, no load is applied, the power supply voltage of the 1 st channel is recovered to be above the limit value, the 1 st channel has the highest priority, and then the LTC4417 chip considers that the 1 st channel has power supply capacity and is switched to the 1 st channel again, the 1 st channel is affected by the load after being powered, the power supply voltage is reduced, the condition of continuously switching to the 2 nd channel occurs, and the process is repeated repeatedly, so that the underground instrument cannot work normally. In logging applications, there are a number of unstable factors in controlling power switching by using an LTC4417 independent chip, such as frequent power switching, which may result in unstable power supply when logging in deep strata, so that logging service cannot be performed. Once this occurs, the instrument must be lifted from the well back to the surface for inspection and maintenance, which not only consumes significant labor and material costs, but also increases the life of the wellhead. Disclosure of Invention Therefore, the invention aims to provide an underground power supply switching method which is used for realizing monitoring of electric energy parameters and improving the stability of underground power supply. The application discloses an underground power supply switching method which is applied to an underground power supply switching circuit, wherein the underground power supply switching circuit comprises a processing module and a switching module, an LTC4417 chip in the switching module is controlled by the processing module, N switch branches in the switching module are in one-to-one correspondence connection with N power supplies, N is an integer larger than 1, and the underground power supply switching method comprises the following steps: Collecting input voltages of all switch branches of the switching module; collecting the output current of the switching module; Determining target electric parameters of a power supply connected with the switching module according to the input voltage and the output current, wherein the target electric parameters comprise voltage or electric quantity; when the underground power supply switching circuit adopts an automatic control mode, the on-off of the corresponding switch branch of the switching module is controlled according to the target