WO2013131239A1 - Method for power-off alarm and power gateway - Google Patents
Method for power-off alarm and power gateway Download PDFInfo
- Publication number
- WO2013131239A1 WO2013131239A1 PCT/CN2012/071969 CN2012071969W WO2013131239A1 WO 2013131239 A1 WO2013131239 A1 WO 2013131239A1 CN 2012071969 W CN2012071969 W CN 2012071969W WO 2013131239 A1 WO2013131239 A1 WO 2013131239A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- power
- duration
- power gateway
- gateway
- server
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J9/00—Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
- H02J9/04—Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B70/00—Technologies for an efficient end-user side electric power management and consumption
- Y02B70/30—Systems integrating technologies related to power network operation and communication or information technologies for improving the carbon footprint of the management of residential or tertiary loads, i.e. smart grids as climate change mitigation technology in the buildings sector, including also the last stages of power distribution and the control, monitoring or operating management systems at local level
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S20/00—Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
- Y04S20/20—End-user application control systems
Definitions
- Embodiments of the present invention relate to the field of power, and in particular, to a method for powering down and a power gateway.
- the power gateway uses a battery, such as a lithium sulfite acid battery, as a backup power source of the power gateway, when the power gateway is powered off or an abnormal cause such as a natural disaster or a power grid maintenance causes the power supply external power supply to be interrupted.
- the power gateway will switch to the backup power supply and shut down the power gateway after data storage and alarm messages are sent to the server.
- the existing power gateway sends an alarm message to the server after the external power supply is abnormally interrupted.
- the power gateway is turned off after several consecutive alarm messages are sent. However, several alarm messages sent before the power gateway is turned off may not be delivered to the server. Make sure the server is aware of anomalies on the power gateway.
- the embodiment of the invention provides a power failure alarm method and a power gateway, which are used to solve the problem that the power gateway cannot ensure that the server is aware of the abnormal situation when the power gateway is abnormally powered off.
- Embodiments of the present invention provide a method for power failure alarm, including:
- the power gateway When the power gateway is powered off, the power gateway sends an alarm message to the server;
- the power gateway is timed according to a duration
- the power gateway does not receive the alarm response message sent by the server within the duration, returning to the power gateway to send an alarm message to the server.
- the embodiment of the invention further provides a power gateway, including:
- a processor configured to: when the power gateway is powered off, instruct the first communicator to send an alarm message to the server, and time to count according to a duration; and to determine that the first communicator does not receive within the duration Sending an alarm response message to the server, instructing the first communicator to send an alarm message to the server, and timing according to a duration;
- the first communicator is configured to send an alarm message to the server.
- the power failure alarm method and the power gateway provided by the embodiments of the present invention have the following beneficial effects:
- the power gateway sends an alarm message to the server, and performs timing according to a time period, if the power gateway is within the random time period If the alarm response message sent by the server is not received, the step of executing the foregoing power gateway to send an alarm message to the server is returned, so that the power gateway sends the alarm message again when the alarm response message is not received within the duration, so as to avoid sending the message several times in succession.
- the situation that the alarm message cannot be delivered to the server improves the success rate of the alarm message transmission.
- FIG. 1 is a schematic flow chart of a method for power failure alarm according to an embodiment of the present invention
- FIG. 2 is another schematic flowchart of a method for powering off an alarm according to an embodiment of the present invention
- FIG. 3 is a schematic structural diagram of a power gateway according to an embodiment of the present invention.
- FIG. 4 is another schematic structural diagram of a power gateway according to an embodiment of the present invention.
- the current terminal equipment monitoring system mainly includes a server, a power gateway and a plurality of terminal devices.
- the server and the power gateway generally perform wireless data transmission through a wireless network, such as a third-generation mobile communication (3rd-generation, 3G) network, and a general packet radio service (GPRS) network;
- the terminal device generally performs wireless data transmission through a local home office network or a home area network (HAN), for example, a power line carrier communication (PLC) or a radio frequency (RF) network.
- HAN home area network
- PLC power line carrier communication
- RF radio frequency
- the embodiment of the invention provides a power failure alarm method and a power gateway, which are used for sending an alarm message to the server after the power gateway is abnormally interrupted, which can effectively improve the success rate of the alarm message transmission.
- an embodiment of a method for powering off an alarm includes: 101.
- a power gateway When a power gateway is powered off, and an alternate power supply is enabled, an alarm message is sent to the server.
- the power gateway When the power gateway is powered off and the backup power supply is enabled, the power gateway will send an alarm message to the server, where the server refers to the management and control of the power network on the operator side. Server.
- the power gateway after the power gateway is powered off, the power gateway will use the backup power source for power supply, and in order to prevent data loss, the power gateway will also save the data being processed and the data buffered in the buffer. .
- the power failure alarm is described in the case that the power gateway is powered off and powered by the backup power source.
- the power gateway performs timing according to a duration
- the power gateway will count for a period of time after transmitting the alarm message.
- step 101 If the power gateway does not receive the alarm response message sent by the server within the duration, return to step 101.
- the power gateway if the power gateway does not receive the alarm response message sent by the server within the duration, it returns to the content in step 101, that is, sends an alarm message to the server.
- the power gateway when the power gateway is powered off and the standby power supply is enabled, the power gateway sends an alarm message to the server for timing according to a duration. If the power gateway does not receive the alarm response sent by the server within the duration. The message returns to the step of executing the above-mentioned power gateway to send an alarm message to the server, so that when the alarm response message is not received within the duration, the power gateway sends the alarm message again, avoiding continuously sending the alarm message several times and failing to reach the server. The situation improves the success rate of sending alarm messages.
- FIG. 2 is an embodiment of a method for powering off an alarm according to an embodiment of the present invention, including:
- the power gateway When the power gateway is powered off and the backup power supply is enabled, sending an alarm message to the server. In the embodiment of the present invention, when the power gateway is powered off and the backup power supply is enabled, the power gateway sends an alarm message to the server.
- the power gateway when the power gateway is powered off, the power gateway will be powered by the backup power source, and in order to avoid data loss, the power gateway will also save the data being processed and the data buffered in the buffer to In the data memory, in addition, in order to reduce the consumption of power, the power gateway will also turn off the second communicator and other units not related to transmitting the alarm message, or set the second communicator and other units unrelated to the transmission of the alarm message to the sleep mode. And in order to ensure that the power gateway can send an alarm message, the power gateway will also detect whether the network is connected, if the network is disconnected, the power network Off will establish a network connection.
- the power gateway performs timing according to a duration
- the duration may be a preset duration, or may be a random duration generated by the power gateway, and the power gateway may time the duration according to a duration: the power gateway acquires the preset duration, according to the preset The duration is timed, or the power gateway generates a random duration, which is timed according to the random duration.
- the power gateway may preset the maximum value of the generated random duration.
- the maximum value of the randomly generated random duration may be 10 minutes.
- the working state of the power gateway set in the duration is a sleep mode
- the power gateway also sets the working state in the duration to the sleep mode, saves power, and prolongs the use time of the standby power.
- the power gateway sets the current working state to the working mode, and returns to step 201; if the power gateway does not receive within the time limit To the alarm response message sent by the server, at the end of the duration, the power gateway will set the current working state to the working mode, and return to step 201 to send an alarm message to the server.
- the power gateway If the power gateway receives the alarm message sent by the server within the duration, the power gateway is turned off at the end of the current duration; or, within the duration, when the power gateway receives the alarm response message sent by the server, the power gateway is turned off. .
- the power gateway may be closed at the end of the current duration, or, within the duration, when the power gateway receives the alarm sent by the server.
- the power gateway is turned off, wherein the alarm response message can be Acknowledge information.
- the first communicator in the power gateway still has the function of receiving an alarm response message fed back by the server.
- the power gateway when the power gateway is powered off and powered by the backup power source, the power gateway will The server sends an alarm message and counts according to a time period. If the power gateway does not receive the alarm response message sent by the server within the time limit, it returns to perform the step of sending the alarm message to the server by the power gateway, if the power gateway is within the duration After receiving the alarm response message sent by the server, it is closed, and by setting the duration between the sent alarm messages, it can effectively avoid the situation that the alarm message is continuously sent and cannot be delivered to the server, thereby improving the success rate of sending the alarm message. After counting for a period of time, the power gateway will also set the working state within the duration to the sleep mode, which can effectively reduce the power consumption and extend the standby power usage time.
- an embodiment of a configuration diagram of a power gateway in an embodiment of the present invention includes: a processor 301, configured to: when the power gateway is powered off, and is powered by the backup power source, instruct the first communicator to send an alarm message to the server. And counting for a period of time; and for determining that the first communicator does not receive the alarm response message sent by the server within the duration, instructing the first communicator to send an alarm message to the server, and timing alarm according to a duration Response message
- the first communicator 302 is configured to send an alarm message to the server.
- the processor 301 in the power gateway instructs the first communicator 302 to send an alarm message to the server, and the processor 301 counts the time according to a duration.
- the processor 301 determines that the first communicator 302 does not receive the alarm response message sent by the server, and instructs the first communicator 302 to send an alarm message to the server, and continues to count for a period of time, so that the first communicator
- the alarm message can be sent again after the end of the duration, effectively avoiding the situation that the alarm message is continuously sent and cannot be delivered to the server, and the success rate of the alarm message transmission is improved.
- FIG. 4 is an embodiment of a structure diagram of a power gateway according to an embodiment of the present invention, including:
- the processor 301 and the first communicator 302 are similar to those described in the embodiment shown in FIG. 3, and details are not described herein again.
- the processor 301 performs timing according to a duration, which may be:
- the 301 obtains the preset duration, performs timing according to the preset duration, or the processor 301 generates a random duration, and performs timing according to the random duration. By using the random duration, the large-scale power failure of the power network can be effectively avoided.
- the power gateway sends the alarm message to the network congestion caused by the alarm message, which can effectively improve the success rate of the alarm message transmission.
- the processor 301 will enter after being used for timing for a period of time.
- the sleep mode and enters the operational mode before instructing the first communicator 302 to send an alert message to the server.
- the first communicator 302 is further configured to receive an alarm response message sent by the server, specifically: when the first communicator 302 receives the alarm response message, the first communicator 302 triggers the processor 301 to enter.
- the processor 301 In the working mode, after confirming that the alarm response message is received, the processor 301 will turn off the power gateway, or, within the duration, if the first communicator 302 receives the alarm response message, the processor 301 enters the work at the end of the current duration. Mode, after confirming that an alarm response message has been received, the power gateway will be turned off.
- the first communicator 302 is configured to implement long-distance radio frequency communication between the power gateway and the server, and the specific communication method may be General Packet Radio Service (GPRS). Communication methods, Long Term Evolution (LTE) communication methods, global mobile communication systems (GSM, global system for mobile communications), and the like.
- GPRS General Packet Radio Service
- LTE Long Term Evolution
- GSM global mobile communication systems
- the power gateway further includes a second communicator 401, configured to implement short-range radio frequency communication of the power gateway, and the specific communication manner may be a communication method such as Zigbee, and in the embodiment of the present invention, when the power gateway is powered off, the processor The 301 will send a sleep command or a close command to the second communicator 401, or control the switch control pin or the power supply enable control signal through a general purpose input output (GPIO) to turn off the second communicator 401.
- GPIO general purpose input output
- the power gateway may further include:
- the power failure detector 402 is configured to detect whether the power gateway is powered off, and notify the processor of the detection result.
- the backup power source 403 is configured to provide power when the power gateway is powered off;
- the power switching management circuit 404 is configured to perform circuit switching when the power gateway is powered off, and use the standby power source to supply power;
- a data storage 405, configured to store data processed by the processor and data buffered in the buffer when the power gateway is powered off;
- the AC/DC conversion circuit 406 is configured to convert the voltage of the input power gateway into a DC voltage.
- the backup power source 403 may be a lithium thionyl chloride battery or a Farad-class super capacitor group; the processor 301 may include an advanced precision instruction set processor (ARM, Advanced RISC Machines). Can also include digital signal processing (DSP, Digital Singal Processing) processor.
- ARM Advanced precision instruction set processor
- DSP Digital Singal Processing
- the power gateway under normal circumstances, the power gateway is powered by an external power source, and the AC/DC conversion circuit 406 in the power gateway converts the external voltage of the input power gateway into a DC voltage to supply power to the power gateway, and the power failure detector 402 detects the output voltage of the AC/DC conversion circuit 406 in real time, and sends the detection result to the processor 301.
- the processor 301 determines based on the detection result, and if the processor 301 determines that the power gateway is powered off, it will send The switching command is sent to the power switching management circuit 404.
- the power switching management circuit 404 performs circuit switching, and the power supply circuit is switched to the standby power source 403 by hardware automatic switching or software control switching, and the standby power source 403 is used to provide a current for the power gateway to continuously operate.
- the processor 301 saves the data currently being processed and the data buffered in the buffer to the data memory, and closes the second communicator 401 by sending a close command. Other units that are not related to sending an alarm message, or send a sleep command to put it in sleep mode to save power.
- the processor 301 will also determine whether the current network handles the connection status, if the current network is disconnected. The processor 301 will establish a network connection, and then the processor 301 instructs the first communicator 302 to send an alarm message to the server, and the processor 301 counts for a period of time and enters a sleep mode, wherein the duration may be preset.
- the duration may also be a generated random duration. If the first communicator 302 receives the alarm response message sent by the server within the duration, after the current duration ends, the processor 301 enters the working mode, and the processor 301 confirms the An alarm response message received by a communicator 302 is turned off Force gateway, or within the duration, after the first communicator 302 receives the alarm response message sent by the server, the first communicator 302 triggers the processor 301 to enter the working mode, and the processor 301 confirms that the alarm response message has been received, and then closes If the first communicator 302 does not receive the alarm response message sent by the server within the time limit, the processor 301 enters the working mode at the end of the duration, and then indicates the first after confirming that the alarm response message is not received.
- the communicator 302 sends an alarm message to the server, so that in the case that the alarm response message is not received, the processor 301 sends an alarm message at intervals of one time, which can effectively avoid the situation that the alarm message is continuously sent and cannot be sent to the server, and the alarm is improved.
- the success rate of the message sent can effectively reduce the power consumption and extend the standby power consumption time by turning off or sleeping the second communicator and other units unrelated to sending the alarm message, and setting the working state in the duration to the sleep mode.
- the first communicator and the processor described in the embodiments of the present invention may be separately used.
- the chip or the unit is implemented, and may be a chip or a unit that is integrated together, and may also be a different processing module in the main chip, which is not limited by the present invention.
- the medium can be a read only memory, a magnetic disk or a compact disk or the like.
Landscapes
- Business, Economics & Management (AREA)
- Emergency Management (AREA)
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiments provide a method for power-off alarm and an power gateway, the method for power-off alarm comprising: when the power gateway is power off and a standby electric power is started to supply, the power gateway sends alarm information to a server; the power gateway times with an duration; if the power gateway does not receive alarm response information sent by the server in the duration, it returns to the step that the power gateway sends alarm information to the server, hence the power gateway sends alarm information again in the condition that alarm response information is not received in the duration, and it prevents the situation that the alarm information is continually sent for several times but can not reach the server, and it raises the success rate of sending alarm information.
Description
一种断电报警的方法及电力网关 技术领域 Method for power failure alarm and power gateway
本发明实施例涉及电力领域, 尤其涉及一种断电 "¾警的方法及电力网关。 Embodiments of the present invention relate to the field of power, and in particular, to a method for powering down and a power gateway.
背景技术 随着传感技术、 自动控制技术和通信技术在电力领域的迅速发展, 无线数 据业务在无线抄表等电力网关上得到了广泛的应用,无线抄表有着减少用户干 预的过程、 减少大量抄表人员等运营成本上的优势, 但随之而来的问题是, 当 发生电网断电、 自然灾害、 电网大面积检修等异常原因情况下, 如何保证服务 器对异常工作状态的电力网关的监控和控制是无线抄表领域面临的重要问题。 在现有技术中, 电力网关使用电池, 例如锂亚石克酰氯电池, 作为电力网关 的备用电源, 当电力网关断电或自然灾害、 电网检修等异常原因造成电力网关 外部供电中断的情况发生时, 电力网关将切换到备用电源供电, 并在进行了数 据保存及向服务器发送报警消息后关闭电力网关。 现有的电力网关外部供电异常中断后向服务器发送报警消息的方式是:连 续发送数次报警消息后电力网关关闭, 然而, 电力网关关闭前发送的数次报警 消息可能全部无法送达服务器, 无法确保服务器获知电力网关上的异常情况。 BACKGROUND With the rapid development of sensing technology, automatic control technology and communication technology in the power field, wireless data services have been widely used in power gateways such as wireless meter reading, and wireless meter reading has a process of reducing user intervention and reducing a large amount of The advantage of operating costs such as meter reading personnel, but the problem that comes with it is how to ensure the monitoring of the power gateway of the abnormal working state when the grid is out of power, natural disasters, and large-scale maintenance of the power grid. And control is an important issue in the field of wireless meter reading. In the prior art, the power gateway uses a battery, such as a lithium sulfite acid battery, as a backup power source of the power gateway, when the power gateway is powered off or an abnormal cause such as a natural disaster or a power grid maintenance causes the power supply external power supply to be interrupted. The power gateway will switch to the backup power supply and shut down the power gateway after data storage and alarm messages are sent to the server. The existing power gateway sends an alarm message to the server after the external power supply is abnormally interrupted. The power gateway is turned off after several consecutive alarm messages are sent. However, several alarm messages sent before the power gateway is turned off may not be delivered to the server. Make sure the server is aware of anomalies on the power gateway.
发明内容 Summary of the invention
本发明实施例提供了一种断电报警的方法及电力网关,用于解决电力网关 在异常断电时, 无法确保服务器获知其异常情况的问题。 The embodiment of the invention provides a power failure alarm method and a power gateway, which are used to solve the problem that the power gateway cannot ensure that the server is aware of the abnormal situation when the power gateway is abnormally powered off.
本发明实施例提供了一种断电报警的方法, 包括: Embodiments of the present invention provide a method for power failure alarm, including:
当电力网关断电时, 所述电力网关向服务器发送报警消息; When the power gateway is powered off, the power gateway sends an alarm message to the server;
所述电力网关按一个时长进行计时; The power gateway is timed according to a duration;
若在所述时长内, 所述电力网关未接收到所述服务器发送的报警响应消 息, 则返回所述电力网关向服务器发送报警消息的步骤。 If the power gateway does not receive the alarm response message sent by the server within the duration, returning to the power gateway to send an alarm message to the server.
本发明实施例还提供了一种电力网关, 包括: The embodiment of the invention further provides a power gateway, including:
处理器,用于当电力网关断电时,指示第一通信器向服务器发送报警消息, 并按一个时长进行计时; 及用于若在所述时长内,确定所述第一通信器未接收
到所述服务器发送的报警响应消息,则指示所述第一通信器向服务器发送报警 消息, 并按一个时长进行计时; a processor, configured to: when the power gateway is powered off, instruct the first communicator to send an alarm message to the server, and time to count according to a duration; and to determine that the first communicator does not receive within the duration Sending an alarm response message to the server, instructing the first communicator to send an alarm message to the server, and timing according to a duration;
第一通信器, 用于向服务器发送报警消息。 The first communicator is configured to send an alarm message to the server.
本发明实施例提供的断电报警的方法及电力网关具有以下有益效果: 当电力网关断电时, 电力网关将向服务器发送报警消息, 并按一个时长进 行计时, 若电力网关在该随机时长内未接收到服务器发送的报警响应消息, 则 返回执行上述电力网关向服务器发送报警消息的步骤,使得在时长内没有接收 到报警响应消息的情况下, 电力网关再次发送报警消息,避免连续发送数次报 警消息而无法送达服务器的情形, 提高了报警消息发送的成功率。 The power failure alarm method and the power gateway provided by the embodiments of the present invention have the following beneficial effects: When the power gateway is powered off, the power gateway sends an alarm message to the server, and performs timing according to a time period, if the power gateway is within the random time period If the alarm response message sent by the server is not received, the step of executing the foregoing power gateway to send an alarm message to the server is returned, so that the power gateway sends the alarm message again when the alarm response message is not received within the duration, so as to avoid sending the message several times in succession. The situation that the alarm message cannot be delivered to the server improves the success rate of the alarm message transmission.
附图说明 DRAWINGS
图 1为本发明实施例中一种断电报警的方法的一个流程示意图; 1 is a schematic flow chart of a method for power failure alarm according to an embodiment of the present invention;
图 2为本发明实施例中一断电报警的方法的另一流程示意图; 2 is another schematic flowchart of a method for powering off an alarm according to an embodiment of the present invention;
图 3为本发明实施例中一种电力网关的结构示意图; 3 is a schematic structural diagram of a power gateway according to an embodiment of the present invention;
图 4为本发明实施例中一种电力网关的另一结构示意图。 FIG. 4 is another schematic structural diagram of a power gateway according to an embodiment of the present invention.
具体实施方式 detailed description
目前的终端设备监测系统主要包括服务器、 电力网关和多块终端设备。其 中, 服务器和电力网关一般通过无线网络, 例如第三代移动通信 ( 3rd-Generation, 3G ) 网络、 通用分组无线月良务技术(General Packet Radio Service, GPRS ) 网络, 进行无线数据传输; 电力网关和终端设备一般通过本 地家庭局 i或网 ( Home area network, HAN ), 例: ¾口电力载波通信( Power Line Carrier Communication, PLC )、 射频 ( Radio Frequency, RF ) 网给, 进行无线 数据传输。 需要说明的是, 本发明实施例中电力网关的第一通信器, 用于与服 务器进行无线数据传输; 电力网关的第二通信器, 用于与终端设备进行无线数 据传输。 The current terminal equipment monitoring system mainly includes a server, a power gateway and a plurality of terminal devices. The server and the power gateway generally perform wireless data transmission through a wireless network, such as a third-generation mobile communication (3rd-generation, 3G) network, and a general packet radio service (GPRS) network; And the terminal device generally performs wireless data transmission through a local home office network or a home area network (HAN), for example, a power line carrier communication (PLC) or a radio frequency (RF) network. It should be noted that, in the embodiment of the present invention, the first communicator of the power gateway is configured to perform wireless data transmission with the server; and the second communicator of the power gateway is configured to perform wireless data transmission with the terminal device.
本发明实施例提供了一种断电报警的方法及电力网关,用于在电力网关供 电异常中断后,向服务器发送报警消息,能够有效提高报警消息发送的成功率。 The embodiment of the invention provides a power failure alarm method and a power gateway, which are used for sending an alarm message to the server after the power gateway is abnormally interrupted, which can effectively improve the success rate of the alarm message transmission.
参阅图 1 , 为本发明实施例中一种断电报警的方法的实施例, 包括: 101、 当电力网关断电, 启用备用电源供电时, 向服务器发送报警消息; 在本发明实施例中, 当电力网关断电, 启用备用电源供电时, 电力网关将 向服务器发送报警消息, 其中,服务器是指运营商侧的对电力网进行管理和控
制的服务器。 Referring to FIG. 1 , an embodiment of a method for powering off an alarm according to an embodiment of the present invention includes: 101. When a power gateway is powered off, and an alternate power supply is enabled, an alarm message is sent to the server. In the embodiment of the present invention, When the power gateway is powered off and the backup power supply is enabled, the power gateway will send an alarm message to the server, where the server refers to the management and control of the power network on the operator side. Server.
需要说明的是, 在本发明实施例中, 当电力网关断电后, 电力网关将使用 备用电源进行供电,且为了防止数据丟失, 电力网关还将保存正在处理的数据 及緩沖区中緩存的数据。 It should be noted that, in the embodiment of the present invention, after the power gateway is powered off, the power gateway will use the backup power source for power supply, and in order to prevent data loss, the power gateway will also save the data being processed and the data buffered in the buffer. .
需要说明的是,在本发明实施例中, 均是以电力网关断电且由备用电源供 电的情况下, 描述断电报警的方法的。 It should be noted that, in the embodiment of the present invention, the power failure alarm is described in the case that the power gateway is powered off and powered by the backup power source.
102、 电力网关按一个时长进行计时; 102. The power gateway performs timing according to a duration;
在本发明实施例中, 电力网关在发送报警消息之后将按一个时长进行计 时。 In an embodiment of the invention, the power gateway will count for a period of time after transmitting the alarm message.
103、 若在时长内, 电力网关未接收到服务器发送的报警响应消息, 则返 回执行步骤 101。 103. If the power gateway does not receive the alarm response message sent by the server within the duration, return to step 101.
在本发明实施例中, 若在时长内, 电力网关未接收到服务器发送的报警响 应消息, 则返回执行步骤 101中的内容, 即向服务器发送报警消息。 In the embodiment of the present invention, if the power gateway does not receive the alarm response message sent by the server within the duration, it returns to the content in step 101, that is, sends an alarm message to the server.
在本发明实施例中, 当电力网关断电, 启用备用电源供电时, 电力网关将 向服务器发送报警消息, 按一个时长进行计时, 若在该时长内, 电力网关未接 收到服务器发送的报警响应消息,则返回执行上述的电力网关向服务器发送报 警消息的步骤,使得在时长内没有接收到报警响应消息的情况下, 电力网关再 次发送报警消息,避免连续发送数次报警消息而无法送达服务器的情形,提高 了报警消息发送的成功率。 In the embodiment of the present invention, when the power gateway is powered off and the standby power supply is enabled, the power gateway sends an alarm message to the server for timing according to a duration. If the power gateway does not receive the alarm response sent by the server within the duration. The message returns to the step of executing the above-mentioned power gateway to send an alarm message to the server, so that when the alarm response message is not received within the duration, the power gateway sends the alarm message again, avoiding continuously sending the alarm message several times and failing to reach the server. The situation improves the success rate of sending alarm messages.
为了更好的理解本发明实施例中的技术, 请参阅图 2, 为本发明实施例中 一种断电报警的方法的实施例, 包括: For a better understanding of the technology in the embodiments of the present invention, refer to FIG. 2, which is an embodiment of a method for powering off an alarm according to an embodiment of the present invention, including:
201、 当电力网关断电, 启用备用电源供电时, 向服务器发送报警消息; 在本发明实施例中, 当电力网关断电, 启用备用电源供电时, 电力网关将 向服务器发送报警消息。 201. When the power gateway is powered off and the backup power supply is enabled, sending an alarm message to the server. In the embodiment of the present invention, when the power gateway is powered off and the backup power supply is enabled, the power gateway sends an alarm message to the server.
需要说明的是, 在本发明实施例中, 当电力网关断电时, 电力网关将由备 用电源进行供电,且为了避免数据丟失, 电力网关还将保存正在处理的数据及 緩沖区中緩存的数据至数据存储器中, 此外, 为了降低电量的消耗, 电力网关 还将关闭第二通信器及其他与发送 警消息无关的单元,或者将第二通信器及 其他与发送报警消息无关的单元设置为休眠模式,且为了保证电力网关能够发 送报警消息, 电力网关还将检测网络是否连接, 若网络处于断开状态, 电力网
关将建立网络连接。 It should be noted that, in the embodiment of the present invention, when the power gateway is powered off, the power gateway will be powered by the backup power source, and in order to avoid data loss, the power gateway will also save the data being processed and the data buffered in the buffer to In the data memory, in addition, in order to reduce the consumption of power, the power gateway will also turn off the second communicator and other units not related to transmitting the alarm message, or set the second communicator and other units unrelated to the transmission of the alarm message to the sleep mode. And in order to ensure that the power gateway can send an alarm message, the power gateway will also detect whether the network is connected, if the network is disconnected, the power network Off will establish a network connection.
202、 电力网关按一个时长进行计时; 202. The power gateway performs timing according to a duration;
在本发明实施例中, 时长可以是预置的时长,也可以是电力网关生成的随 机时长, 则电力网关按一个时长进行计时具体可以是: 电力网关获取预置的时 长, 按该预置的时长进行计时, 或者电力网关生成一个随机时长, 按该随机时 长进行计时。 In the embodiment of the present invention, the duration may be a preset duration, or may be a random duration generated by the power gateway, and the power gateway may time the duration according to a duration: the power gateway acquires the preset duration, according to the preset The duration is timed, or the power gateway generates a random duration, which is timed according to the random duration.
在本发明实施例中,通过生成一个随机时长进行计, 可以有效的避免在电 力网大规模断电的情况下, 电力网关同时发送报警消息造成的网络堵塞的问 题, 能够有效的提高报警消息发送的成功率。 In the embodiment of the present invention, by generating a random duration, it is possible to effectively avoid the problem of network congestion caused by the power gateway simultaneously transmitting the alarm message in the case of large-scale power failure of the power network, and can effectively improve the alarm message transmission. Success rate.
需要说明的是, 在本发明实施例中, 为了避免生成的随机时长过长, 电力 网关可以预先设置生成的随机时长的最大值, 例如, 可预置生成的随机时长的 最大值为 10分钟。 It should be noted that, in the embodiment of the present invention, in order to prevent the generated random duration from being too long, the power gateway may preset the maximum value of the generated random duration. For example, the maximum value of the randomly generated random duration may be 10 minutes.
203、 电力网关设置在时长内的工作状态为休眠模式; 203. The working state of the power gateway set in the duration is a sleep mode;
在本发明实施中, 电力网关还将设置在时长内的工作状态为休眠模式, 节 约电能, 延长备用电源的使用时间。 In the implementation of the present invention, the power gateway also sets the working state in the duration to the sleep mode, saves power, and prolongs the use time of the standby power.
204、 若在时长内, 电力网关未接收到服务器发送的报警响应消息, 则在 时长结束时, 电力网关设置当前的工作状态为工作模式, 返回执行步骤 201 ; 若在时长内, 电力网关未接收到服务器发送的报警响应消息, 则在时长结 束时, 电力网关将设置当前的工作状态为工作模式, 并返回执行步骤 201 , 即 向服务器发送报警消息。 204. If the power gateway does not receive the alarm response message sent by the server within the time limit, at the end of the duration, the power gateway sets the current working state to the working mode, and returns to step 201; if the power gateway does not receive within the time limit To the alarm response message sent by the server, at the end of the duration, the power gateway will set the current working state to the working mode, and return to step 201 to send an alarm message to the server.
205、 若在时长内, 电力网关接收到服务器发送的报警消息, 则在当前时 长结束时, 电力网关关闭; 或者, 在时长内, 当电力网关接收到服务器发送的 报警响应消息时, 电力网关关闭。 205. If the power gateway receives the alarm message sent by the server within the duration, the power gateway is turned off at the end of the current duration; or, within the duration, when the power gateway receives the alarm response message sent by the server, the power gateway is turned off. .
在本发明实施例中, 若在时长内, 电力网关接收到服务器发送的报警响应 消息, 则可在当前时长结束时, 电力网关关闭, 或者, 在时长内, 当电力网关 接收到服务器发送的报警响应消息时, 电力网关关闭, 其中, 报警响应消息可 以是 Acknowledge信息。 In the embodiment of the present invention, if the power gateway receives the alarm response message sent by the server within the duration, the power gateway may be closed at the end of the current duration, or, within the duration, when the power gateway receives the alarm sent by the server. When the message is responded, the power gateway is turned off, wherein the alarm response message can be Acknowledge information.
需要说明的是, 当电力网关的工作状态处于休眠模式时, 电力网关中的第 一通信器仍然具有接收服务器反馈的报警响应消息的功能。 It should be noted that when the working state of the power gateway is in the sleep mode, the first communicator in the power gateway still has the function of receiving an alarm response message fed back by the server.
在本发明实施例中, 当电力网关断电, 由备用电源供电时, 电力网关将向
服务器发送报警消息, 并按一个时长进行计时, 若电力网关在该时长内未收到 服务器发送的报警响应消息,则返回执行上述电力网关向服务器发送报警消息 的步骤, 若电力网关在该时长内接收到服务器发送的报警响应消息, 则关闭, 通过在发送的报警消息之间设置时长,能够有效的避免连续发送报警消息而无 法送达服务器的情形, 提高了报警消息发送的成功率, 此外, 在按一个时长计 时之后, 电力网关还将设置在时长内的工作状态为休眠模式, 能够有效的降低 电能的消耗, 延长备用电源的使用时间。 In the embodiment of the present invention, when the power gateway is powered off and powered by the backup power source, the power gateway will The server sends an alarm message and counts according to a time period. If the power gateway does not receive the alarm response message sent by the server within the time limit, it returns to perform the step of sending the alarm message to the server by the power gateway, if the power gateway is within the duration After receiving the alarm response message sent by the server, it is closed, and by setting the duration between the sent alarm messages, it can effectively avoid the situation that the alarm message is continuously sent and cannot be delivered to the server, thereby improving the success rate of sending the alarm message. After counting for a period of time, the power gateway will also set the working state within the duration to the sleep mode, which can effectively reduce the power consumption and extend the standby power usage time.
参阅图 3 , 为本发明实施例中的电力网关的结构图的实施例, 包括: 处理器 301 , 用于当电力网关断电, 由备用电源供电时, 指示第一通信器 向服务器发送报警消息, 并按一个时长进行计时; 及用于若在时长内, 确定第 一通信器未接收到服务器发送的报警响应消息,则指示第一通信器向服务器发 送报警消息, 并按一个时长进行计时报警响应消息; Referring to FIG. 3, an embodiment of a configuration diagram of a power gateway in an embodiment of the present invention includes: a processor 301, configured to: when the power gateway is powered off, and is powered by the backup power source, instruct the first communicator to send an alarm message to the server. And counting for a period of time; and for determining that the first communicator does not receive the alarm response message sent by the server within the duration, instructing the first communicator to send an alarm message to the server, and timing alarm according to a duration Response message
第一通信器 302, 用于向服务器发送报警消息。 The first communicator 302 is configured to send an alarm message to the server.
在本发明实施例中, 当电力网关断电, 由备用电源供电时, 电力网关中的 处理器 301指示第一通信器 302将向服务器发送报警消息,处理器 301按一个 时长进行计时, 若在该时长内, 处理器 301确定第一通信器 302未接收到服务 器发送的报警响应消息, 则指示第一通信器 302向服务器发送报警消息, 并继 续按一个时长进行计时,使得在第一通信器 302未接收到报警响应消息的情形 下, 能够在时长结束后再次发送报警消息,有效的避免连续发送报警消息而无 法送达服务器的情形, 提高了报警消息发送的成功率。 In the embodiment of the present invention, when the power gateway is powered off and powered by the backup power source, the processor 301 in the power gateway instructs the first communicator 302 to send an alarm message to the server, and the processor 301 counts the time according to a duration. During the duration, the processor 301 determines that the first communicator 302 does not receive the alarm response message sent by the server, and instructs the first communicator 302 to send an alarm message to the server, and continues to count for a period of time, so that the first communicator When the 302 does not receive the alarm response message, the alarm message can be sent again after the end of the duration, effectively avoiding the situation that the alarm message is continuously sent and cannot be delivered to the server, and the success rate of the alarm message transmission is improved.
为了更好的理解本发明实施例中的电力网关, 请参阅图 4, 为本发明实施 例中电力网关的结构图的实施例, 包括: For a better understanding of the power gateway in the embodiment of the present invention, refer to FIG. 4, which is an embodiment of a structure diagram of a power gateway according to an embodiment of the present invention, including:
如图 3所示的处理器 301及第一通信器 302, 且与图 3所示实施例中描述 的内容相似, 此处不再赘述。 The processor 301 and the first communicator 302 are similar to those described in the embodiment shown in FIG. 3, and details are not described herein again.
在本发明实施例中, 处理器 301按一个时长进行计时具体可以是: 处理器 In the embodiment of the present invention, the processor 301 performs timing according to a duration, which may be:
301获取预置的时长, 按该预置的时长进行计时, 或者处理器 301生成一个随 机时长, 按该随机时长进行计时, 通过使用随机时长, 可以有效的避免在电力 网大规模断电的情况下, 电力网关同时发送报警消息造成的网络堵塞的问题, 能够有效的提高了报警消息发送的成功率。 The 301 obtains the preset duration, performs timing according to the preset duration, or the processor 301 generates a random duration, and performs timing according to the random duration. By using the random duration, the large-scale power failure of the power network can be effectively avoided. The power gateway sends the alarm message to the network congestion caused by the alarm message, which can effectively improve the success rate of the alarm message transmission.
在本发明实施例中, 处理器 301在还用于按一个时长进行计时后,将进入
休眠模式,及在指示第一通信器 302向服务器发送报警消息之前, 进入工作模 式。 In the embodiment of the present invention, the processor 301 will enter after being used for timing for a period of time. The sleep mode, and enters the operational mode before instructing the first communicator 302 to send an alert message to the server.
在本发明实施例中,第一通信器 302还用于接收服务器发送的报警响应消 息, 具体的包括: 当第一通信器 302接收到报警响应消息时, 第一通信器 302 触发处理器 301进入工作模式, 处理器 301在确认接收到报警响应消息之后, 将关闭电力网关, 或者, 在时长内, 若第一通信器 302接收到报警响应消息, 则在当前时长结束时, 处理器 301进入工作模式,确认已接收到报警响应消息 之后, 将关闭电力网关。 In the embodiment of the present invention, the first communicator 302 is further configured to receive an alarm response message sent by the server, specifically: when the first communicator 302 receives the alarm response message, the first communicator 302 triggers the processor 301 to enter. In the working mode, after confirming that the alarm response message is received, the processor 301 will turn off the power gateway, or, within the duration, if the first communicator 302 receives the alarm response message, the processor 301 enters the work at the end of the current duration. Mode, after confirming that an alarm response message has been received, the power gateway will be turned off.
需要说明的是, 本发明实施例中, 第一通信器 302用于实现电力网关与服 务器的远距离无线射频通信, 其具体的通信方式可以是通用分组无线服务技 术( GPRS , General Packet Radio Service )通信方式、长期演进( LTE, Long Term Evolution ) 通信方式、 全球移动通信系统 (GSM , global system for mobile communications )通信方式等等。 It should be noted that, in the embodiment of the present invention, the first communicator 302 is configured to implement long-distance radio frequency communication between the power gateway and the server, and the specific communication method may be General Packet Radio Service (GPRS). Communication methods, Long Term Evolution (LTE) communication methods, global mobile communication systems (GSM, global system for mobile communications), and the like.
电力网关还包括第二通信器 401 , 用于实现电力网关的近距离无线射频通 信, 具体的通信方式可以是 Zigbee等通信方式, 且在本发明实施例中, 当电 力网关断电时, 处理器 301将发送休眠命令或关闭命令给第二通信器 401 , 或 者通过通用输入输出 (GPIO, General Purpose Input Output )控制开关机控制 管脚或者供电电源使能控制信号, 关闭第二通信器 401。 The power gateway further includes a second communicator 401, configured to implement short-range radio frequency communication of the power gateway, and the specific communication manner may be a communication method such as Zigbee, and in the embodiment of the present invention, when the power gateway is powered off, the processor The 301 will send a sleep command or a close command to the second communicator 401, or control the switch control pin or the power supply enable control signal through a general purpose input output (GPIO) to turn off the second communicator 401.
在本发明实施例中, 电力网关还可以包括: In the embodiment of the present invention, the power gateway may further include:
断电检测器 402, 用于检测电力网关是否断电, 并将检测结果通知处理器 The power failure detector 402 is configured to detect whether the power gateway is powered off, and notify the processor of the detection result.
301 ; 301 ;
备用电源 403 , 用于在电力网关断电时, 提供电能; The backup power source 403 is configured to provide power when the power gateway is powered off;
供电切换管理电路 404, 用于在电力网关断电时, 进行电路切换, 利用备 用电源进行供电; The power switching management circuit 404 is configured to perform circuit switching when the power gateway is powered off, and use the standby power source to supply power;
数据存储器 405 , 用于在电力网关断电时, 存储处理器正在处理的数据及 緩存在緩沖区中的数据; a data storage 405, configured to store data processed by the processor and data buffered in the buffer when the power gateway is powered off;
交直流转换电路 406, 用于将输入电力网关的电压转换为直流电压。 The AC/DC conversion circuit 406 is configured to convert the voltage of the input power gateway into a DC voltage.
需要说明的是,在本发明实施例中,备用电源 403可以是锂亚硫酰氯电池 或者是法拉级超级电容组;处理器 301可以包含高级精筒指令集处理器( ARM, Advanced RISC Machines ), 还可以包含数字信号处理(DSP, Digital Singal
Processing )处理器。 It should be noted that, in the embodiment of the present invention, the backup power source 403 may be a lithium thionyl chloride battery or a Farad-class super capacitor group; the processor 301 may include an advanced precision instruction set processor (ARM, Advanced RISC Machines). Can also include digital signal processing (DSP, Digital Singal Processing) processor.
在本发明实施例中, 在正常情况下, 电力网关由外部电源进行供电, 电力 网关中的交直流转换电路 406将输入电力网关的外部电压转换为直流电压,为 电力网关供电,断电检测器 402实时地对交直流转换电路 406的输出电压进行 检测, 并将检测结果发送给处理器 301 , 处理器 301将根据该检测结果进行判 断, 若处理器 301确定该电力网关断电, 则将发送切换命令给供电切换管理电 路 404, 供电切换管理电路 404将进行电路切换, 通过硬件自动切换或者软件 控制开关切换, 实现供电电路切换到备用电源 403 , 利用备用电源 403提供电 力网关持续工作的电流。 In the embodiment of the present invention, under normal circumstances, the power gateway is powered by an external power source, and the AC/DC conversion circuit 406 in the power gateway converts the external voltage of the input power gateway into a DC voltage to supply power to the power gateway, and the power failure detector 402 detects the output voltage of the AC/DC conversion circuit 406 in real time, and sends the detection result to the processor 301. The processor 301 determines based on the detection result, and if the processor 301 determines that the power gateway is powered off, it will send The switching command is sent to the power switching management circuit 404. The power switching management circuit 404 performs circuit switching, and the power supply circuit is switched to the standby power source 403 by hardware automatic switching or software control switching, and the standby power source 403 is used to provide a current for the power gateway to continuously operate.
在本发明实施例中, 电力网关由备用电源 403供电后,处理器 301将当前 正在处理的数据及緩沖区中緩存的数据保存至数据存储器中,并将发送关闭命 令关闭第二通信器 401 及其他与发送报警消息无关的单元, 或者发送休眠命 令, 使其处于休眠模式, 以节约电能, 为了确保能够发送报警消息, 处理器 301还将判断当前的网络是否处理连接状态, 若当前网络断开, 则处理器 301 将建立网络连接,接着, 处理器 301指示第一通信器 302向服务器发送报警消 息, 处理器 301按一个时长进行计时, 并进入休眠模式, 其中, 该时长可以是 预置的时长也可以是生成的随机时长, 若在该时长内, 第一通信器 302接收到 服务器发送的报警响应消息, 则在当前时长结束后, 处理器 301进入工作模式 后,处理器 301将确认第一通信器 302收到的报警响应消息,并关闭电力网关, 或者在时长内, 当第一通信器 302接收到服务器发送的报警响应消息之后, 第 一通信器 302触发处理器 301进入工作模式,处理器 301确认已接收到报警响 应消息之后, 关闭电力网关; 若在该时长内, 第一通信器 302未接收到服务器 发送的报警响应消息, 处理器 301在时长结束时, 进入工作模式, 在确认未接 收到报警响应消息之后,再指示第一通信器 302向服务器发送报警消息,使得 在未接收到报警响应消息的情况下, 处理器 301间隔一个时长发送报警消息, 能够有效的避免连续发送报警消息而无法送达服务器的情形,提高了报警消息 发送的成功率。 同时, 处理器 301通过关闭或休眠第二通信器和其他与发送报 警消息无关的单元,及将时长内的工作状态设置为休眠模式, 能够有效的降低 电能的消耗, 延长备用电源的使用时间。 In the embodiment of the present invention, after the power gateway is powered by the backup power source 403, the processor 301 saves the data currently being processed and the data buffered in the buffer to the data memory, and closes the second communicator 401 by sending a close command. Other units that are not related to sending an alarm message, or send a sleep command to put it in sleep mode to save power. To ensure that an alarm message can be sent, the processor 301 will also determine whether the current network handles the connection status, if the current network is disconnected. The processor 301 will establish a network connection, and then the processor 301 instructs the first communicator 302 to send an alarm message to the server, and the processor 301 counts for a period of time and enters a sleep mode, wherein the duration may be preset. The duration may also be a generated random duration. If the first communicator 302 receives the alarm response message sent by the server within the duration, after the current duration ends, the processor 301 enters the working mode, and the processor 301 confirms the An alarm response message received by a communicator 302 is turned off Force gateway, or within the duration, after the first communicator 302 receives the alarm response message sent by the server, the first communicator 302 triggers the processor 301 to enter the working mode, and the processor 301 confirms that the alarm response message has been received, and then closes If the first communicator 302 does not receive the alarm response message sent by the server within the time limit, the processor 301 enters the working mode at the end of the duration, and then indicates the first after confirming that the alarm response message is not received. The communicator 302 sends an alarm message to the server, so that in the case that the alarm response message is not received, the processor 301 sends an alarm message at intervals of one time, which can effectively avoid the situation that the alarm message is continuously sent and cannot be sent to the server, and the alarm is improved. The success rate of the message sent. At the same time, the processor 301 can effectively reduce the power consumption and extend the standby power consumption time by turning off or sleeping the second communicator and other units unrelated to sending the alarm message, and setting the working state in the duration to the sleep mode.
需要说明的是,本发明实施例中所述的第一通信器和处理器可以采用单独
的芯片、 单元来实现, 也可以是集成到一起的芯片、 单元, 还可以是主芯片中 不同的处理模块, 本发明对此不作限制。 It should be noted that the first communicator and the processor described in the embodiments of the present invention may be separately used. The chip or the unit is implemented, and may be a chip or a unit that is integrated together, and may also be a different processing module in the main chip, which is not limited by the present invention.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可 读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。 A person skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, the above mentioned storage. The medium can be a read only memory, a magnetic disk or a compact disk or the like.
以上对本发明所提供的一种断电报警的方法及电力网关, 进行了详细介 绍, 对于本领域的一般技术人员, 依据本发明实施例的思想, 在具体实施方式 及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解为对本发明 的限制。
The method for powering off the alarm and the power gateway provided by the present invention are described in detail above. For those skilled in the art, according to the idea of the embodiment of the present invention, the specific implementation manner and the application range may be changed. In the above, the contents of the specification are not to be construed as limiting the invention.
Claims
1、 一种断电报警的方法, 其特征在于, 包括: A method for power failure alarm, characterized in that it comprises:
当电力网关断电, 启用备用电源供电时, 所述电力网关向服务器发送报警 消息; When the power gateway is powered off, when the backup power supply is enabled, the power gateway sends an alarm message to the server;
所述电力网关按一个时长进行计时; The power gateway is timed according to a duration;
若在所述时长内, 所述电力网关未接收到所述服务器发送的报警响应消 息, 则返回所述电力网关向服务器发送报警消息的步骤。 If the power gateway does not receive the alarm response message sent by the server within the duration, returning to the power gateway to send an alarm message to the server.
2、 根据权利要求 1所述的方法, 其特征在于, 所述电力网关按一个时长 进行计时包括: 2. The method according to claim 1, wherein the power gateway performs timing according to a duration:
所述电力网关获取预置的时长, 按所述预置的时长进行计时; The power gateway acquires a preset duration, and performs timing according to the preset duration;
或者, Or,
所述电力网关生成一个随机时长, 按所述随机时长进行计时。 The power gateway generates a random duration and counts according to the random duration.
3、根据权利要求 1或 2所述的方法, 其特征在于, 所述电力网关按一个 时长进行计时之后还包括: The method according to claim 1 or 2, wherein the power gateway further comprises:
所述电力网关设置在所述时长内的工作状态为休眠模式; Setting the working state of the power gateway within the duration to a sleep mode;
则所述返回所述向服务器发送报警消息的步骤之前还包括: Then, before the step of returning the sending of the alarm message to the server, the method further includes:
在所述时长结束时, 所述电力网关设置当前的工作状态为工作模式。 At the end of the duration, the power gateway sets the current working state to the operating mode.
4、 根据权利要求 1至 3任意一项所述的方法, 其特征在于, 所述电力网 关包括第二通信器, 用于实现与电力网关连接的终端设备的无线射频通信; 所述电力网关向服务器发送报警消息之前还包括: The method according to any one of claims 1 to 3, wherein the power gateway comprises a second communicator for implementing radio frequency communication of a terminal device connected to the power gateway; Before the server sends an alarm message, it also includes:
所述电力网关关闭所述第二通信器; The power gateway turns off the second communicator;
或者, Or,
所述电力网关设置第二通信器的工作状态为休眠模式。 The power gateway sets the working state of the second communicator to a sleep mode.
5、 根据权利要求 3或 4所述的方法, 其特征在于, 所述方法还包括: 若在所述时长内, 所述电力网关接收到所述服务器发送的报警响应消息, 则保持休眠模式, 在所述时长结束时, 所述电力网关关机; The method according to claim 3 or 4, wherein the method further comprises: if the power gateway receives the alarm response message sent by the server within the duration, maintaining the sleep mode, At the end of the duration, the power gateway is shut down;
或者, Or,
若在所述时长内,当所述电力网关接收到所述服务器发送的报警响应消息 时, 所述电力网关关机。 If the power gateway receives the alarm response message sent by the server within the duration, the power gateway is shut down.
6、 一种电力网关, 其特征在于, 包括: 处理器, 用于当电力网关断电, 由备用电源供电时, 指示第一通信器向服 务器发送报警消息, 并按一个时长进行计时; 及用于若在所述时长内, 确定所 述第一通信器未接收到所述服务器发送的报警响应消息,则指示所述第一通信 器向服务器发送报警消息, 并按一个时长进行计时; 6. A power gateway, comprising: a processor, configured to: when the power gateway is powered off, is powered by the backup power source, instruct the first communicator to send an alarm message to the server, and timed according to a duration; and, if the power is within the duration, determine the first The communicator does not receive the alarm response message sent by the server, and instructs the first communicator to send an alarm message to the server, and time counts according to a duration;
第一通信器, 用于向服务器发送报警消息。 The first communicator is configured to send an alarm message to the server.
7、 根据权利要求 6所述的方法, 其特征在于, 所述处理器按一个时长进 行计时包括: 7. The method according to claim 6, wherein the timing of the processor by a duration comprises:
所述处理器获取预置的时长, 按所述预置的时长进行计时; The processor acquires a preset duration, and performs timing according to the preset duration;
或者, Or,
所述处理器生成一个随机时长, 按所述随机时长进行计时。 The processor generates a random duration and counts according to the random duration.
8、 根据权利要求 6或 7所述的电力网关, 其特征在于, 所述处理器在按 所述时长进行计时后, 进入休眠模式; 在指示所述第一通信器向服务器发送报 警消息之前, 进入工作模式。 The power gateway according to claim 6 or 7, wherein the processor enters a sleep mode after timing according to the duration; before instructing the first communicator to send an alarm message to the server, Enter the work mode.
9、 根据权利要求 6至 8任意一项所述的电力网关, 其特征在于, 所述第 一通信器还用于接收所述服务器发送的报警响应消息。 The power gateway according to any one of claims 6 to 8, wherein the first communicator is further configured to receive an alarm response message sent by the server.
10、 根据权利要求 9所述的电力网关, 其特征在于, 10. The power gateway of claim 9 wherein:
在所述时长内, 当所述第一通信器接收到所述 警响应消息时, 所述第一 通信器触发所述处理器进入工作模式,所述处理器在确认接收到所述报警响应 消息之后, 关闭所述电力网关; 或者, 在所述时长内, 若所述第一通信器接收 到所述报警响应消息, 则在当前时长结束时, 处理器进入工作模式, 在确认已 接收到所述报警响应消息后, 关闭所述电力网关。 Within the duration, when the first communicator receives the alert response message, the first communicator triggers the processor to enter an operational mode, and the processor acknowledges receipt of the alert response message Afterwards, the power gateway is turned off; or, if the first communicator receives the alarm response message within the duration, the processor enters the working mode at the end of the current duration, and confirms that the received message is received. After the alarm response message is described, the power gateway is turned off.
11、 根据权利要求 6至 10任意一项所述的电力网关, 其特征在于, 所述 电力网关还包括: 第二通信器, 用于实现与电力网关连接的终端设备的无线射 频通信; The power gateway according to any one of claims 6 to 10, wherein the power gateway further comprises: a second communicator, configured to implement wireless radio frequency communication of the terminal device connected to the power gateway;
当所述电力网关断电时,所述处理器将发送休眠命令或关闭命令给第二通 信器; 或者, 当所述电力网关断电时, 所述处理器通过通用输入输出 GPIO控 制开关机控制管脚或者供电电源使能控制信号, 关闭第二通信器。 When the power gateway is powered off, the processor will send a sleep command or a close command to the second communicator; or, when the power gateway is powered off, the processor controls the switch through a general-purpose input and output GPIO control The pin or power supply enables the control signal to turn off the second communicator.
12、 根据权利要求 6至 11任意一项所述的电力网关, 其特征在于, 所述 电力网关还包括: 断电检测器, 用于检测电力网关是否断电, 并将检测结果通 知所述处理器; 备用电源, 用于在所述电力网关断电时, 向所述处理器和所述第一通信器 提供电能; The power gateway according to any one of claims 6 to 11, wherein the power gateway further comprises: a power failure detector, configured to detect whether the power gateway is powered off, and notify the processing result of the detection result Device a backup power source, configured to provide power to the processor and the first communicator when the power gateway is powered off;
供电切换管理电路, 用于在所述电力网关断电时, 进行电路切换, 利用所 述备用电源进行供电; a power switching management circuit, configured to perform circuit switching when the power gateway is powered off, and supply power by using the standby power source;
数据存储器, 用于在所述电力网关断电时,存储所述处理器正在处理的数 据及緩存在緩沖区中的数据; a data storage, configured to store data processed by the processor and data buffered in a buffer when the power gateway is powered off;
交直流转换电路, 用于将电网输入电力网关的电压转换为直流电压。 An AC/DC conversion circuit for converting a voltage input from a power grid into a DC voltage.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2012/071969 WO2013131239A1 (en) | 2012-03-06 | 2012-03-06 | Method for power-off alarm and power gateway |
CN201280000170.9A CN102742118B (en) | 2012-03-06 | 2012-03-06 | Method for power-off alarm and electrical gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2012/071969 WO2013131239A1 (en) | 2012-03-06 | 2012-03-06 | Method for power-off alarm and power gateway |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013131239A1 true WO2013131239A1 (en) | 2013-09-12 |
Family
ID=46995180
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/071969 WO2013131239A1 (en) | 2012-03-06 | 2012-03-06 | Method for power-off alarm and power gateway |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102742118B (en) |
WO (1) | WO2013131239A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170078450A1 (en) * | 2015-09-10 | 2017-03-16 | Emc Corporation | Remote power management |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013131239A1 (en) * | 2012-03-06 | 2013-09-12 | 华为终端有限公司 | Method for power-off alarm and power gateway |
CN103051502A (en) * | 2012-12-07 | 2013-04-17 | 广东电网公司佛山供电局 | System and method of self-organized networking and flexible accessing of intelligent power equipment in electricity utilization community |
CN104486262B (en) * | 2014-11-25 | 2017-09-26 | 盛科网络(苏州)有限公司 | Dying Gasp control method and device are realized based on exchanger chip |
CN109103051A (en) * | 2018-09-07 | 2018-12-28 | 青岛凯腾电子有限公司 | A kind of AC contactor controller and control method |
CN109802871B (en) * | 2019-03-04 | 2020-07-10 | 佛山大鱼智能家居科技有限公司 | Control method of intelligent security system |
CN110398263A (en) * | 2019-07-16 | 2019-11-01 | 武汉鑫诚欣科技有限公司 | A kind of synthetical collection instrument and acquisition method improving measuring accuracy |
CN114140978A (en) * | 2020-09-03 | 2022-03-04 | 深圳绿米联创科技有限公司 | Collaborative alarm method, device and system, multi-protocol gateway and medium |
CN112687084A (en) * | 2020-12-18 | 2021-04-20 | 广东南牧机械设备有限公司 | Power-off alarm system and power-off alarm device |
CN112834020B (en) * | 2020-12-31 | 2022-10-14 | 重庆国际复合材料股份有限公司 | Low-power-consumption data acquisition system and method for tray |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6594768B1 (en) * | 1999-08-04 | 2003-07-15 | Fujitsu Limited | Collective line termination apparatus and line termination network |
CN1913689A (en) * | 2005-08-10 | 2007-02-14 | 中兴通讯股份有限公司 | Method of implementing alarm for power-off of base station |
CN102742118A (en) * | 2012-03-06 | 2012-10-17 | 华为终端有限公司 | Method for power-off alarm and electrical gateway |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS58106601A (en) * | 1981-12-18 | 1983-06-25 | Tatsumoto Akihiro | Power failure processing system in grain dryer |
JP4737980B2 (en) * | 2004-12-07 | 2011-08-03 | 株式会社東芝 | Telephone system and main device of the telephone system |
CN201163725Y (en) * | 2008-03-04 | 2008-12-10 | 上海纳杰电气成套有限公司 | Main and standby power self-switching device |
-
2012
- 2012-03-06 WO PCT/CN2012/071969 patent/WO2013131239A1/en active Application Filing
- 2012-03-06 CN CN201280000170.9A patent/CN102742118B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6594768B1 (en) * | 1999-08-04 | 2003-07-15 | Fujitsu Limited | Collective line termination apparatus and line termination network |
CN1913689A (en) * | 2005-08-10 | 2007-02-14 | 中兴通讯股份有限公司 | Method of implementing alarm for power-off of base station |
CN102742118A (en) * | 2012-03-06 | 2012-10-17 | 华为终端有限公司 | Method for power-off alarm and electrical gateway |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170078450A1 (en) * | 2015-09-10 | 2017-03-16 | Emc Corporation | Remote power management |
US10805428B2 (en) * | 2015-09-10 | 2020-10-13 | EMC IP Holding Company LLC | Remote power management |
Also Published As
Publication number | Publication date |
---|---|
CN102742118B (en) | 2015-07-22 |
CN102742118A (en) | 2012-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013131239A1 (en) | Method for power-off alarm and power gateway | |
CN107590987A (en) | A kind of long-distance meter-reading system based on low-power consumption Internet of Things | |
US9154312B2 (en) | Power save proxy in communication networks | |
EP2996367B1 (en) | Device, method, and system for starting mobile hotspot | |
US8970394B2 (en) | Aggregated real-time power outages/restoration reporting (RTPOR) in a secure mesh network | |
CN110381251A (en) | The control method of web camera, apparatus and system | |
JP2017530570A (en) | RF energy harvesting by network nodes | |
TWI678676B (en) | Communication device, metering system and power outage notification method | |
WO2010066132A1 (en) | Power line communication device and method for controlling power line communication device | |
CN106550438B (en) | Method and system for limiting regular awakening and mobile device | |
CN207441006U (en) | A kind of long-distance meter-reading system based on low-power consumption Internet of Things | |
US20200084129A1 (en) | Method and apparatus for reporting power down events in a network node without a backup energy storage device | |
CN103118387B (en) | A kind of thin AP redundancy connection control method of active-standby mode | |
JP2011135749A (en) | Power supply apparatus, power reception device and information notification method | |
WO2023280041A1 (en) | Active-standby switching processing method and system, and electronic apparatus and storage medium | |
CN104185196A (en) | Wireless controller disaster recovery method and system thereof | |
WO2013131236A1 (en) | Power supply circuit and electrical device | |
WO2015154615A1 (en) | Wireless access point terminal and method for saving electricity intelligently thereof | |
US9049043B2 (en) | Method and device for reducing the electrical consumption of an ethernet interface | |
US8598742B2 (en) | Server and method for detecting work state of power transformers | |
CN105722019A (en) | Accumulated water detection alarm system and detection method thereof | |
CN103064387B (en) | To system and method, the intelligent power socket of intelligent power socket implementing monitoring | |
CN106063336A (en) | Transmission system including first and second bridge devices | |
CN205081807U (en) | Intelligence home gateway based on zigbee and GPRS | |
WO2014127544A1 (en) | Method and apparatus for controlling power supply of network device, and network device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 201280000170.9 Country of ref document: CN |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12870406 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12870406 Country of ref document: EP Kind code of ref document: A1 |