Power failure alarm equipment, method and device and storage medium

The power failure alarm device efficiently determines and signals different power-off states, enhancing equipment maintenance efficiency and reducing costs by remotely identifying and addressing power failures.

CN119107779APending Publication Date: 2024-12-10CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411230571.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

Existing power failure detection methods in equipment monitoring systems are inefficient and costly due to the inability to determine the specific cause of power outages remotely, requiring on-site checks by maintenance personnel.

Method used

A power failure alarm device that includes a processor to determine active or passive power-off states by comparing voltage values with a threshold, uses a backup power supply to maintain equipment operation, and sends specific fault signals to the oilfield gateway device, eliminating the need for on-site checks.

Benefits of technology

Improves the efficiency and reduces costs in handling equipment abnormalities by accurately distinguishing between active and passive power failures without requiring maintenance personnel to visit the site.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119107779A_ABST
    Figure CN119107779A_ABST
Patent Text Reader

Abstract

The invention discloses power failure alarm equipment, a power failure alarm method, a power failure alarm device and a storage medium, relates to the technical field of intelligent gateways, and aims to solve the problem that the processing efficiency is relatively low when a power failure fault occurs in a traditional gateway. The power failure alarm equipment comprises a processor, a power manager and a standby power supply, the processor is used for acquiring voltage values at two ends of the power-off alarm equipment, determining a power-off state based on the voltage values and a preset threshold value, and sending a power-off fault signal to the oil field gateway equipment, so that the oil field gateway equipment reports fault information; the power manager is used for controlling the standby power supply to supply power to the power failure alarm device and the oil field gateway device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent gateway technology, and in particular to a power failure alarm device, method, apparatus and storage medium. Background Art

[0002] As the demand for electricity continues to rise, there is a shortage of electricity, resulting in abnormal power outages in some equipment. In order to ensure the normal operation of the equipment, the abnormal situation needs to be handled in a timely manner.

[0003] In the related technology, the operation status of the equipment is usually monitored by adding unmanned remote monitoring. The operation and maintenance personnel can determine whether the equipment is operating normally through remote monitoring. Although this method can remotely identify abnormal equipment, it cannot determine the specific cause of the equipment abnormality. The operation and maintenance personnel still need to go to the equipment site to check the specific fault and handle it.

[0004] Therefore, the existing processing efficiency of equipment abnormalities is low and the processing cost is high. Summary of the invention

[0005] The purpose of the present application is to provide a power failure alarm device, method, apparatus and storage medium, aiming to solve the problem of low processing efficiency when a power failure occurs in a traditional gateway.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] The present application provides a power-off alarm device, comprising a processor, a power manager and a backup power supply, wherein the power-off alarm device is connected to an oilfield gateway device; the processor is used to obtain voltage values ​​at both ends of the power-off alarm device, and determine the power-off state of the oilfield gateway device based on the voltage value and a preset threshold, wherein the power-off state includes an active power-off state and a passive power-off state; the power manager is used to control the backup power supply to supply power to the power-off alarm device and the oilfield gateway device when in the power-off state; the processor is also used to send a power-off fault signal to the oilfield gateway device according to the power-off state, so that the oilfield gateway device reports fault information, and different power-off fault signals correspond to different power-off states.

[0008] The power failure alarm device provided in the embodiment of the present application has various reasons for causing the power failure of the device, and the operation and maintenance personnel cannot accurately determine the specific reason for the power failure. Therefore, the present application obtains the voltage value at both ends of the power failure alarm device connected to the oilfield gateway device, and combines it with the preset threshold value to determine whether the oilfield gateway device is powered off, so as to control the backup power supply to supply power to the power failure alarm device and the oilfield gateway device in the power failure state. At the same time, since the power failure state includes an active power failure state and a passive power failure state, the power failure alarm device can send different power failure fault signals to the oilfield gateway device according to different power failure states, so that the operation and maintenance personnel can determine whether the power failure cause of the oilfield gateway device is an active power failure or a passive power failure according to different power failure fault signals, without having to go to the device site to check, thereby not only improving the efficiency of handling equipment abnormalities, but also reducing processing costs.

[0009] In some embodiments, the above-mentioned processor is specifically used to: collect the level analog signal and convert the level analog signal into a voltage value, and when the voltage value is less than a preset threshold, determine that the power-off state is an active power-off state; when the voltage value is zero, determine that the power-off state is a passive power-off state.

[0010] Among them, the active power-off state means that after the power-off alarm device detects abnormal voltage, it actively cuts off the power supply of the power grid to the oilfield gateway device; the passive power-off state means that when the power-off alarm device detects that the voltage value is zero, it determines that the power grid has stopped supplying power to the oilfield gateway device.

[0011] Based on this, the power off alarm device provided in the embodiment of the present application can first convert the level analog signal into a voltage value, and then accurately determine whether the current power off state is an active power off state or a passive power off state by comparing the voltage value with the size of a preset threshold.

[0012] In some embodiments, the power off alarm device provided in the embodiments of the present application also includes a functional interface, the functional interface includes an external interface, the external interface includes a first wired interface and a second wired interface; the processor is connected to the oilfield gateway device through the first wired interface, and the second wired interface is used to transmit data for maintaining the power off alarm device.

[0013] The first wired interface may be a recommended standard 485 (RS485) or a universal serial bus 2.0 (USB2.0); and the second wired interface may be a recommended standard 232 (RS232).

[0014] Based on this, the power outage alarm device provided in the embodiment of the present application is connected to the oilfield gateway device by using a wired interface to send data to the oilfield gateway device by wired transmission, without the need to send data by additionally configuring a wireless communication module, thereby saving the physical cost of the power outage alarm device.

[0015] In some embodiments, the power off alarm device provided in the embodiments of the present application also includes a memory and a temperature sensor, and the above-mentioned functional interface also includes an internal interface; the internal interface includes a third wired interface and a fourth wired interface; the processor is connected to the memory through the third wired interface; the processor is connected to the temperature sensor through the fourth wired interface.

[0016] Among them, the memory can be a not and gate flash memory (NandFlash), an embedded multi media card (eMMC), a secure digital (SD) card or a micro (transflash, TF) card, which is used to store the software version and application of the power off alarm device; the third wired interface can be a serial peripheral interface (SPI); the fourth wired interface can be an integrated circuit bus (IIC).

[0017] Based on this, the power off alarm device provided in the embodiment of the present application can use the third wired interface to expand the storage capacity when the storage capacity is insufficient, and can use a temperature sensor to monitor the temperature changes of the device to promptly detect abnormal conditions such as overheating of the device, thereby preventing failures from occurring.

[0018] In some embodiments, the power failure alarm device provided in the embodiments of the present application further includes a clock source, which is used to provide a clock signal for the power failure alarm device to synchronize the clock inside the power failure alarm device. The clock may be a passive crystal oscillator.

[0019] Based on this, the power off alarm device provided in the embodiment of the present application provides a clock signal for the device by adding a clock source, sends address signals and control signals, synchronizes the internal clock of the device, and ensures the normal operation of the device.

[0020] The present application provides a power off alarm method, which is applied to a power off alarm device. The method includes: obtaining voltage values ​​at both ends of the power off alarm device, and based on the voltage value and a preset threshold, determining the power off state of an oilfield gateway device connected to the power off alarm device, the power off state including an active power off state and a passive power off state; in the case of a power off state, controlling a backup power supply to supply power to the power off alarm device and the oilfield gateway device; and sending a power off fault signal to the oilfield gateway device according to the power off state, so that the oilfield gateway device reports fault information, and different power off fault signals correspond to different power off states.

[0021] The power failure alarm method provided in the embodiment of the present application is difficult for operation and maintenance personnel to accurately determine the specific cause of power failure due to the variety of reasons for power failure of the equipment. Therefore, the present application obtains the voltage value at both ends of the power failure alarm device connected to the oilfield gateway device, and determines whether the oilfield gateway device is powered off by combining the preset threshold value, so as to control the backup power supply to supply power to the power failure alarm device and the oilfield gateway device in the power failure state. At the same time, since the power failure state includes an active power failure state and a passive power failure state, different power failure fault signals can be sent to the oilfield gateway device according to different power failure states, so that the operation and maintenance personnel can determine whether the power failure cause of the oilfield gateway device is an active power failure or a passive power failure according to different power failure fault signals, without having to go to the equipment site to check, thereby not only improving the efficiency of handling equipment abnormalities, but also reducing the processing cost.

[0022] In some embodiments, the power off state of the oilfield gateway device connected to the power off alarm device is determined based on the voltage value and the preset threshold, including: when the voltage value is less than the preset threshold, determining the power off state as an active power off state; when the voltage value is zero, determining the power off state as a passive power off state.

[0023] In some embodiments, the sending of the power failure signal to the oilfield gateway device comprises: sending the power failure signal to the oilfield gateway device through a first wired interface of a power failure alarm device.

[0024] The present application provides a power outage alarm device, which includes: an acquisition unit, a determination unit, a control unit and a sending unit, wherein: the acquisition unit is used to acquire the voltage value at both ends of the power outage alarm device; the determination unit is used to determine the power-off state of the oilfield gateway device connected to the power outage alarm device based on the voltage value and a preset threshold, and the power-off state includes an active power-off state and a passive power-off state; the control unit is used to control the backup power supply to supply power to the power outage alarm device and the oilfield gateway device when the power is off; the sending unit is used to send a power-off fault signal to the oilfield gateway device according to the power-off state, so that the oilfield gateway device reports fault information, and different power-off fault signals correspond to different power-off states.

[0025] In some embodiments, the above-mentioned determination unit is specifically used to: when the voltage value is less than a preset threshold, determine that the power-off state is an active power-off state; when the voltage value is zero, determine that the power-off state is a passive power-off state.

[0026] In some embodiments, the sending unit is specifically used to send a power failure fault signal to the oilfield gateway device through the first wired interface of the power failure alarm device.

[0027] The present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal, the terminal executes the power-off alarm method described above.

[0028] The present application provides a computer program product including instructions. When a computer executes the instructions, the computer executes the power-off alarm method described above.

[0029] The present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the power off alarm method described above.

[0030] Specifically, the chip provided in the embodiment of the present application also includes a memory for storing computer programs or instructions. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0032] Figure 1 A structural diagram of a power failure alarm device provided in an embodiment of the present application;

[0033] Figure 2 A structural diagram of a control system provided in an embodiment of the present application;

[0034] Figure 3 A structural diagram of an MCU provided in an embodiment of the present application;

[0035] Figure 4 A method flow chart of a power failure alarm method provided in an embodiment of the present application;

[0036] Figure 5 A system connection diagram of a power manager provided in an embodiment of the present application;

[0037] Figure 6 A schematic diagram of the structure of a power failure alarm device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] In the description of this application, it should be understood that the terms "upper", "lower", "left", "right", "front", "back", "inside", "outside", etc. indicate directions or positional relationships based on the directions or relative positional relationships shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on this application. Unless otherwise specified, the above-mentioned directional description can be flexibly set in the process of actual application under the condition that the relative positional relationship shown in the accompanying drawings is met.

[0040] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0041] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection. It can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0042] In some embodiments, the term "comprises," "comprising," or any other variation thereof is intended to encompass non-exclusive inclusion, such that a process, article, or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, article, or device that includes the element.

[0043] In some embodiments, the words "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0044] In the description of this specification, specific features, structures, materials or characteristics may be combined in an appropriate manner in any one or more embodiments or examples.

[0045] At present, the national electricity demand is constantly increasing. In terms of electricity supply, the power generation has increased, but due to grid scheduling, transmission and distribution losses and other uncontrollable factors, the electricity supply has not fully met the demand and power outages still exist.

[0046] With the popularization of the fourth generation mobile communication technology (4G) and the fifth generation mobile communication technology (5G), in order to improve management efficiency, reduce labor costs, strengthen security monitoring and support large-scale applications.

[0047] In the related technology, an unmanned remote monitoring method is introduced to monitor the operating status of the equipment. However, the subsequent operation and maintenance costs of large-scale remote monitoring are high. When the equipment suddenly goes offline, although the operation and maintenance personnel can remotely determine the offline device, they cannot determine the specific cause. The operation and maintenance personnel still need to go to the equipment site to check the specific fault and handle it, resulting in low efficiency and high processing costs in handling equipment abnormalities.

[0048] For example, if the equipment is offline due to a power outage, there is no need for the operation and maintenance personnel to go to the equipment site to handle it. The equipment will automatically go online after the power grid is restored. However, if the operation and maintenance personnel still go to the site to check and handle it when they cannot know the reason for the offline, it will increase the processing cost.

[0049] In this context, in order to solve the problems of low efficiency and high cost in the existing processing of equipment abnormalities in the related technology, the present application provides a power off alarm device, method, apparatus and storage medium. The implementation method of the embodiment of the present application is described in detail below in conjunction with the drawings in the specification.

[0050] like Figure 1As shown, it is a structural diagram of a power off alarm device provided in an embodiment of the present application. The power off alarm device 100 may include a first wired interface (RS485 interface 102, USB interface 103), a processor (MCU101), a memory 104, a temperature sensor 105, a power manager 106, a backup power supply 107, a power interface 108, an adapter 109 and a second wired interface (RS232 interface 110).

[0051] Among them, the RS485 interface 102 and the USB interface 103 are connected to the MCU101 respectively, the RS232 interface 110 is connected to the MCU101, the memory 104 and the temperature sensor 105 are connected to the MCU101 respectively, the backup power supply 107 is connected to the MCU101 through the power manager 106, the power interface 108 is connected to the oilfield gateway device, and the power off alarm device 100 is connected to the external power supply device (such as the power grid) through the adapter 109.

[0052] Optionally, the type of RS485 interface 102 includes but is not limited to 2-pin 3.5 mm pitch terminal block, and the type of USB interface 103 includes but is not limited to Type-A or Type-C. The memory may be Nand Flash, eMMC, SD card or TF card.

[0053] In some embodiments, the MCU 101 may collect voltage values ​​across the power-off alarm device 100 and determine the power-off status of the oilfield gateway device.

[0054] In some embodiments, the power off alarm device 100 can send data to the oilfield gateway device through the RS485 interface 102 and / or the USB interface 103; for example, when it is monitored that the oilfield gateway device is in a power off state, a power off fault signal can be sent to the oilfield gateway device through the RS485 interface 102 and / or the USB interface 103.

[0055] In some embodiments, the memory 104 is used to provide additional storage capacity for the power outage alarm device 100 ; for example, the software version and application program of the power outage alarm device 100 may be stored in the memory 104 .

[0056] In some embodiments, the temperature sensor 105 can obtain the operating temperature of the power off alarm device 100 and send it to the MCU 101 for monitoring.

[0057] In some embodiments, the power manager 106 is used to control the backup power supply 107 to supply power to the power off alarm device 100 and the oilfield gateway device in a power off state; for example, the oilfield gateway device may be powered through the power interface 108 .

[0058] In some embodiments, the power outage alarm device 100 may be connected to a power grid via an adapter 109 to convert alternating current into direct current to power the power outage alarm device 100 .

[0059] In some embodiments, the power off alarm detection device 100 may receive data for maintaining itself through the RS232 interface 110 ; for example, when the system of the power off alarm detection device 100 needs to be upgraded online, a system upgrade package may be received through the RS232 interface 110 .

[0060] It can be understood that the above components are merely examples of some components of the power outage alarm device 100 , and are not limitations on the specific structure of the power outage alarm device 100 .

[0061] Combination Figure 1 ,like Figure 2 2 is a structural diagram of a control system provided by an embodiment of the present application, and the control system 200 may include an MCU 201, a memory 202, and an external clock 203. The control system 200 may also be referred to as a small system of a power failure alarm device.

[0062] in, Figure 2 The MCU201 in the Figure 1 MCU101 in Figure 2 The memory 202 in Figure 1 The memory 104 in the MCU 201 is connected to the memory 202 and the external clock 203 respectively.

[0063] In some embodiments, MCU 201 may transmit data with memory 202 to synchronize clock signals, address signals, and control signals.

[0064] In some embodiments, the external clock 203 can provide an initial clock source for the control system 200. For example, the clock can be provided for each bus through frequency division and frequency multiplication, and the external clock can be a passive crystal oscillator.

[0065] In this way, by using an external clock, the MCU can obtain a higher operating frequency and improve the processing speed; when the storage capacity is insufficient, an external memory can be used to expand the storage capacity of the power off alarm device to improve the storage capacity of the power off alarm device.

[0066] Combination Figure 1 ,like Figure 3 MCU 300 includes a UART interface 301, a UART interface 302, a USB 2.0 protocol 303, a third wired interface (SPI 304), and a fourth wired interface (IIC interface 305).

[0067] Among them, the UART interface 301 is connected to the RS485 interface 102 through the SP485 transceiver 306, the UART interface 302 is connected to the RS232 interface 110 through the MAX3232 transceiver 308, the USB interface 103 is connected to the MCU300 through the USB2.0 protocol 303, the SPI304 is connected to the memory 104, and the IIC interface 305 is connected to the temperature sensor 105.

[0068] Optionally, the RS232 interface 110 includes but is not limited to a 3-pin 3.5 mm pitch terminal block.

[0069] In some embodiments, MCU300 can send data to the oilfield gateway device through UART interface 301, in sequence through SP485 transceiver 306 and RS485 interface 102; or, based on USB2.0 protocol 303, send data to the oilfield gateway device through USB interface 103; for example, after detecting that the oilfield gateway device is in a power-off state, MCU300 can send a power-off fault signal to the oilfield gateway device through UART interface 301, or based on USB2.0 protocol 303.

[0070] Exemplarily, when transmitting data, the SP485 transceiver may convert the data of the UART interface 301 into data suitable for transmission on the RS485 interface 102 .

[0071] In some embodiments, the UART interface 302 can receive data received by the MAX3232 transceiver 308 from the RS232 interface 110; for example, when the power off alarm device needs to be upgraded online, the MAX3232 transceiver 308 can receive the system upgrade package through the RS232 interface 110, and then the UART interface 302 receives the system upgrade package received by the MAX3232 transceiver 308 to debug and upgrade the maintenance of the power off alarm device.

[0072] For example, when the UART interface 302 communicates with a device connected to the RS232 interface 110, the MAX3232 transceiver 308 is required to convert the transistor-transistor logic (TTL) or complementary metal oxide semiconductor logic (CMOS) of the UART interface 302 into RS232 levels.

[0073] In some embodiments, MCU 300 can be connected to an external memory via SPI 304 to expand storage capacity.

[0074] In some embodiments, the MCU 300 may be connected to the temperature sensor 105 via the IIC interface 305 to receive the operating temperature of the power off alarm device collected by the temperature sensor 105 to monitor the temperature change of the power off alarm device.

[0075] In this way, the oilfield gateway and the power off alarm device can communicate with each other through the RS485 interface 102 and the USB interface 103; the power off alarm device can be debugged, upgraded and maintained through the second wired interface (RS232 interface 307); when the storage capacity is insufficient, the third wired interface (SPI304) can be used to expand the storage capacity; the fourth wired interface (IIC interface 305) is used to connect to the temperature sensor to monitor the temperature changes of the power off alarm device, and to promptly detect abnormal conditions such as overheating of the equipment, thereby preventing failures from occurring.

[0076] Combine the following Figures 1 to 3 , refer to the following Figure 4 The power off alarm method provided in the embodiment of the present application is described.

[0077] Figure 4 The method flow chart of the power off alarm method provided in the embodiment of the present application, the subject executing the method can be a power off alarm device, or it can be various devices / modules in the power off alarm device, such as an integrated circuit or a chip, and the embodiment of the present application does not make specific limitations on this.

[0078] For example, Figure 4 As shown, the power failure alarm method provided in the embodiment of the present application may include the following S401 to S403:

[0079] S401. Obtain voltage values ​​at both ends of a power-off alarm device, and determine a power-off state of an oilfield gateway device based on the voltage value and a preset threshold.

[0080] In some embodiments, the preset threshold value may be a manually set value, which may be flexibly adjusted according to actual scenarios. For example, the preset threshold value may be 9 volts (V).

[0081] In an embodiment of the present application, since under normal operating conditions, the power off alarm device is connected to an external power supply device (such as a power grid) through an adapter, and then supplies power to the oilfield gateway device through a power interface, it is possible to determine whether the oilfield gateway device can be powered normally by obtaining the voltage across the two ends of the power off alarm device, and then determine the power off status of the oilfield gateway device.

[0082] In some embodiments, the Figure 1 The MCU101 in the system collects the level analog signal of the power-off alarm device and converts the level analog signal into a voltage value, and then determines the power-off state of the oilfield gateway device based on the voltage value and a preset threshold.

[0083] Among them, the power-off state includes active power-off state and passive power-off state. The active power-off state means that after the power-off alarm device detects the voltage abnormality, it actively cuts off the power supply of the power grid to the oilfield gateway device; the passive power-off state means that when the power-off alarm device detects that the voltage value is zero, it determines that the power grid has stopped supplying power to the oilfield gateway device.

[0084] In an optional implementation, when the voltage value is less than a preset threshold, the power-off state is determined to be an active power-off state.

[0085] For example, the preset threshold is 9 V. If the obtained voltage value is 6 V, since 6 is less than 9, it indicates that the external power supply device cannot normally supply power to the oilfield gateway device. At this time, the power-off alarm device actively cuts off the power supply to the oilfield gateway device and determines that the power-off state is an active power-off state.

[0086] In another optional implementation, when the voltage value is zero, the power-off state is determined to be a passive power-off state.

[0087] For example, the preset threshold is 9 V. If the acquired voltage value is 0 V, it indicates that the external power supply device is powered off and does not supply power to the oilfield gateway device. At this time, it is determined that the power-off state of the oilfield gateway device is a passive power-off state.

[0088] In this way, the power off alarm device provided in the embodiment of the present application can first convert the level analog signal into a voltage value, and then accurately determine whether the current power off state is an active power off state or a passive power off state by comparing the voltage value with the size of the preset threshold.

[0089] In yet another optional implementation, when the voltage value is greater than or equal to a preset threshold, it is determined that the oilfield gateway device is not powered off.

[0090] For example, the preset threshold is 9 V. If the acquired voltage value is 12 V, and 12 is greater than 9, it indicates that the external power supply device normally supplies power to the oilfield gateway device, and the oilfield gateway device works normally at this time.

[0091] S402: In the case of a power outage, control the backup power supply to supply power to the power outage alarm device and the oilfield gateway device.

[0092] The backup power supply may be a supercapacitor group, which can store energy so that the backup power supply can be switched to the supercapacitor group for power supply in time when the device is powered off.

[0093] In some embodiments, when the oilfield gateway device is not powered off and is powered normally, the power off alarm device is powered by an external power supply and transmits the power to the oilfield gateway device to enable the oilfield gateway device to operate normally.

[0094] For example, Figure 5 As shown, when the power grid is supplying power normally, the power grid provides power to the power off alarm device through the input power supply, converts the AC power into DC power through the DC converter 501, and then charges the backup power supply 503 through the charging manager 502. At this time, MCU504 controls K2 to disconnect from the output power supply; at the same time, MCU504 switches K1 to connect to the output power supply to transmit the power of the input power supply to the oilfield gateway device to power the oilfield gateway device.

[0095] The DC converter 501 steps down the input power supply and charges the backup power supply 503 through the charging manager 502. The charging manager 502 can use the charging management IC to automatically manage the backup power supply 503. When the backup power supply 503 is connected in series, it has active balancing management and can control the threshold of the charging current, which can avoid the situation that when the backup power supply 503 is in the initial stage of charging, the power delivered to the oilfield gateway device cannot support the normal operation of the oilfield gateway device due to high current charging.

[0096] In some embodiments, when it is determined that the oilfield gateway device is in a power-off state, the power manager can be used to control the backup power supply to supply power to the power-off alarm device and the oilfield gateway device.

[0097] For example, in combination Figure 5 When the power failure detector 505 detects that the power grid stops supplying power, or actively cuts off the power supply to the oilfield gateway device, the backup power supply 503 is used to power the power failure alarm device. At the same time, the MCU 504 disconnects K1 from the output power supply and switches K2 to be connected to the output power supply to power the oilfield gateway device.

[0098] The power failure detector 505 transmits the level analog signal of the input power supply to the MCU 504 after voltage division, and the MCU 504 converts the level analog signal into a digital signal (ie, a voltage value).

[0099] S403: Send a power failure fault signal to the oilfield gateway device according to the power failure state, so that the oilfield gateway device reports the fault information.

[0100] As described in S402 above, the power-off state includes an active power-off state and a passive power-off state.

[0101] Among them, different power-off states correspond to different power-off fault signals. For example, the power-off fault signal corresponding to the active power-off state may be a first fault signal, and the first fault signal carries information about the active power-off state; the power-off fault signal corresponding to the passive power-off state may be a second fault signal, and the second fault signal carries information about the passive power-off state.

[0102] In an optional implementation, when it is determined that the power-off state of the oilfield gateway device is an active power-off state, a corresponding power-off fault signal can be first generated according to the active power-off state, and then a power-off fault signal carrying information about the active power-off state is sent to the oilfield gateway device through the first wired interface.

[0103] For example, in combination Figure 1 After determining that the power-off state is an active power-off state, the power-off alarm device can first generate a first fault signal according to the active power-off state, and then send the first fault signal to the oilfield gateway device through the RS485 interface 102 and / or the USB interface 103.

[0104] In another optional implementation, when it is determined that the power-off state of the oilfield gateway device is a passive power-off state, a corresponding power-off fault signal can be first generated based on the passive power-off state, and then a power-off fault signal carrying information about the passive power-off state is sent to the oilfield gateway device through the first wired interface.

[0105] For example, in combination Figure 1 After determining that the power-off state is a passive power-off state, the power-off alarm device can first generate a second fault signal according to the passive power-off state, and then send the second fault signal to the oilfield gateway device through the RS485 interface 102 and the USB interface 103.

[0106] In the power failure alarm method provided in the embodiment of the present application, since the reasons for the power failure of the equipment are various, the operation and maintenance personnel cannot accurately determine the specific cause of the power failure. Therefore, the present application obtains the voltage value at both ends of the power failure alarm device connected to the oilfield gateway device, and combines it with the preset threshold value to determine whether the oilfield gateway device is powered off, so as to control the backup power supply to supply power to the power failure alarm device and the oilfield gateway device in the power failure state. At the same time, since the power failure state includes an active power failure state and a passive power failure state, different power failure fault signals can be sent to the oilfield gateway device according to different power failure states, so that the operation and maintenance personnel can determine whether the power failure cause of the oilfield gateway device is an active power failure or a passive power failure according to different power failure fault signals, without having to go to the equipment site to check, thereby not only improving the efficiency of handling equipment abnormalities, but also reducing processing costs.

[0107] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the power-off alarm device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units of the various examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0108] The embodiment of the present application can divide the power failure alarm device into functional modules or functional units according to the above method. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division. There may be other division methods in actual implementation.

[0109] like Figure 6 , which is a schematic diagram of the structure of a power outage alarm device provided in an embodiment of the present application, the power outage alarm device 600 includes: an acquisition unit 601, a determination unit 602, a control unit 603 and a sending unit 604.

[0110] Among them, the acquisition unit 601 is used to obtain the voltage value at both ends of the power off alarm device; the determination unit 602 is used to determine the power off state of the oilfield gateway device connected to the power off alarm device based on the voltage value obtained by the acquisition unit 601 and the preset threshold, and the power off state includes an active power off state and a passive power off state; the control unit 603 is used to control the backup power supply to supply power to the power off alarm device and the oilfield gateway device when the power is off; the sending unit 604 is used to send a power off fault signal to the oilfield gateway device according to the power off state of the oilfield gateway device connected to the power off alarm device determined by the determination unit 602, so that the oilfield gateway device reports the fault information, and the power off fault signals corresponding to different power off states are different.

[0111] In some embodiments, the determination unit 602 is specifically used to: determine that the power-off state is an active power-off state when the voltage value is less than a preset threshold; and determine that the power-off state is a passive power-off state when the voltage value is zero.

[0112] In some embodiments, the sending unit 604 is specifically configured to send a power failure fault signal to the oilfield gateway device through the first wired interface of the power failure alarm device.

[0113] In the power-off alarm device provided in the embodiment of the present application, there are various reasons for the power-off of the equipment, and the operation and maintenance personnel cannot accurately determine the specific reason for the power-off. Therefore, the present application obtains the voltage value at both ends of the power-off alarm device connected to the oilfield gateway device, and combines it with the preset threshold value to determine whether the oilfield gateway device is powered off, so as to control the backup power supply to supply power to the power-off alarm device and the oilfield gateway device in the power-off state. At the same time, since the power-off state includes an active power-off state and a passive power-off state, different power-off fault signals can be sent to the oilfield gateway device according to different power-off states, so that the operation and maintenance personnel can determine whether the power-off cause of the oilfield gateway device is active power-off or passive power-off according to different power-off fault signals, without having to go to the equipment site to check, thereby not only improving the efficiency of handling equipment abnormalities, but also reducing the processing cost.

[0114] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the power-off alarm method in the above method embodiment.

[0115] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the power-off alarm method in the method flow shown in the above method embodiment.

[0116] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). In some embodiments, computer readable storage media may be any tangible media that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.

[0117] An embodiment of the present invention provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the following Figure 4 The power off alarm method described in .

[0118] Since the computer-readable storage medium and computer program product in the embodiments of the present invention can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present invention will not be described in detail here.

[0119] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A power failure alarm device, It is characterized in that The power failure alarm device comprises: a processor, a power manager and a backup power supply, and the power failure alarm device is connected to the oilfield gateway device; The processor is used to obtain the voltage value at both ends of the power-off alarm device, and determine the power-off state of the oilfield gateway device based on the voltage value and a preset threshold, wherein the power-off state includes an active power-off state and a passive power-off state; The power manager is used to control the backup power supply to supply power to the power failure alarm device and the oilfield gateway device in the case of the power failure state; The processor is further used to send a power failure fault signal to the oilfield gateway device according to the power failure state, so that the oilfield gateway device reports fault information, and different power failure fault signals correspond to different power failure states.

2. The power failure alarm device according to claim 1, It is characterized in that The processor is specifically used for: Collecting a level analog signal, and converting the level analog signal into the voltage value; When the voltage value is less than the preset threshold, the power-off state is determined to be the active power-off state.

3. The power failure alarm device according to claim 2, It is characterized in that The processor is specifically configured to determine that the power-off state is the passive power-off state when the voltage value is zero.

4. The power failure alarm device according to claim 1, It is characterized in that The power failure alarm device also includes a functional interface; The functional interface includes an external interface, and the external interface includes a first wired interface and a second wired interface. The processor is connected to the oilfield gateway device through the first wired interface, and the second wired interface is used to transmit data for maintaining the power off alarm device.

5. The power failure alarm device according to claim 4, It is characterized in that The power failure alarm device further includes a memory and a temperature sensor, and the functional interface further includes an internal interface; The internal interface includes a third wired interface and a fourth wired interface, the processor is connected to the memory via the third wired interface, and the processor is connected to the temperature sensor via the fourth wired interface.

6. The power failure alarm device according to claim 1, It is characterized in that The power outage alarm device further includes a clock source, and the clock source is used to provide a clock signal to the power outage alarm device to synchronize a clock inside the power outage alarm device.

7. A power failure alarm method, It is characterized in that Applied to a power failure alarm device, the method comprises: Obtaining voltage values ​​at both ends of the power-off alarm device, and determining a power-off state of an oilfield gateway device connected to the power-off alarm device based on the voltage value and a preset threshold, wherein the power-off state includes an active power-off state and a passive power-off state; In the case of the power failure state, controlling the backup power supply to supply power to the power failure alarm device and the oilfield gateway device; According to the power-off state, a power-off fault signal is sent to the oilfield gateway device so that the oilfield gateway device reports fault information, and different power-off fault signals correspond to different power-off states.

8. The method according to claim 7, It is characterized in that The step of determining the power-off state of the oilfield gateway device connected to the power-off alarm device based on the voltage value and the preset threshold value includes: When the voltage value is less than the preset threshold, determining that the power-off state is an active power-off state; or, When the voltage value is zero, it is determined that the power-off state is a passive power-off state.

9. The method according to claim 7, It is characterized in that The sending of a power failure signal to the oilfield gateway device comprises: The power failure fault signal is sent to the oilfield gateway device through the first wired interface of the power failure alarm device.

10. A power failure alarm device, It is characterized in that The power failure alarm device comprises: an acquisition unit, a determination unit, a control unit and a sending unit, wherein: The acquisition unit is used to acquire the voltage values ​​at both ends of the power failure alarm device; The determining unit is used to determine the power-off state of the oilfield gateway device connected to the power-off alarm device based on the voltage value and the preset threshold value, wherein the power-off state includes an active power-off state and a passive power-off state; The control unit is used to control the backup power supply to supply power to the power failure alarm device and the oilfield gateway device in the case of the power failure state; The sending unit is used to send a power failure fault signal to the oilfield gateway device according to the power failure state, so that the oilfield gateway device reports fault information, and different power failure states correspond to different power failure fault signals.

11. A computer-readable storage medium having stored therein instructions, It is characterized in that When a computer executes the instruction, the computer executes the power-off alarm method as described in any one of claims 7 to 9 above.

12. A computer program product comprising instructions, It is characterized in that When the instructions are executed on a computer, the computer executes the power-off alarm method as described in any one of claims 7 to 9 above.

Citation Information

Cited By

  • USB port wireless monitoring system based on heartbeat detection

    CN122513311A