CN113593196A - Power distribution room alarm information subscription method and system - Google Patents

Power distribution room alarm information subscription method and system Download PDF

Info

Publication number
CN113593196A
CN113593196A CN202110815747.2A CN202110815747A CN113593196A CN 113593196 A CN113593196 A CN 113593196A CN 202110815747 A CN202110815747 A CN 202110815747A CN 113593196 A CN113593196 A CN 113593196A
Authority
CN
China
Prior art keywords
message
sending
alarm
information
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110815747.2A
Other languages
Chinese (zh)
Inventor
冯凯滨
朱斌斌
化高峰
陈无难
马世林
余勇
王浩
张玉垒
张卫华
杨晓楠
郝宁飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Original Assignee
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xuji Group Co Ltd, XJ Electric Co Ltd, Xuchang XJ Software Technology Co Ltd filed Critical Xuji Group Co Ltd
Priority to CN202110815747.2A priority Critical patent/CN113593196A/en
Publication of CN113593196A publication Critical patent/CN113593196A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/185Electrical failure alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/01Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium
    • G08B25/08Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium using communication transmission lines
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00001Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by the display of information or by user interaction, e.g. supervisory control and data acquisition systems [SCADA] or graphical user interfaces [GUI]
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00002Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by monitoring
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00006Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
    • H02J13/00022Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment using wireless data transmission
    • H02J13/00024Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment using wireless data transmission by means of mobile telephony
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00032Systems characterised by the controlled or operated power network elements or equipment, the power network elements or equipment not otherwise provided for
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00032Systems characterised by the controlled or operated power network elements or equipment, the power network elements or equipment not otherwise provided for
    • H02J13/00034Systems characterised by the controlled or operated power network elements or equipment, the power network elements or equipment not otherwise provided for the elements or equipment being or involving an electric power substation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02B90/20Smart grids as enabling technology in buildings sector
    • YGENERAL 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS 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
    • Y04S40/00Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them
    • Y04S40/12Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them characterised by data transport means between the monitoring, controlling or managing units and monitored, controlled or operated electrical equipment
    • Y04S40/126Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them characterised by data transport means between the monitoring, controlling or managing units and monitored, controlled or operated electrical equipment using wireless data transmission

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a method and a system for subscribing alarm information of a power distribution room.A user configures subscription information on a message subscription page, wherein the subscription information comprises a receiver, a station house ID, an alarm type, a sending type, sending time, a sending mode and the like; after the subscription is successful, the message processing module receives a kafka message bus alarm subject message; according to the subscription record, the short message cat sends information to the subscriber mobile terminal, and the subscriber receives the alarm information and can process the fault information of the power distribution station house in time. The subscription management platform supports self-defining sending of short messages, the subscribed alarm information supports generation of templated titles and contents, and a user can receive the alarm short message prompt in real time at a mobile phone end, so that the user can arrive at the site at the first time conveniently and get rid of faults.

Description

Power distribution room alarm information subscription method and system
Technical Field
The invention relates to the technical field of comprehensive monitoring of power distribution rooms, in particular to a power distribution room alarm information subscription method and system.
Background
The power distribution rooms of the power supply company have the characteristics of dispersion, multiple changes of geographic environment conditions, wide coverage, numerous users, easiness in influence of user capacity increase and urban construction and the like due to the reasons of more quantity, wider distribution and the like, most power distribution rooms are unattended, and operators on duty monitor the running state of the power distribution rooms in real time through the power distribution room intelligent comprehensive monitoring system. When finding a fault, the operator on duty needs to contact the regional operation maintenance personnel for maintenance by using the telephone to which the operator on duty belongs, the operator on duty is usually more than one person, and the operators on duty are frequently different in daily scheduling, so that the regional operation maintenance personnel need to memorize a plurality of different telephone information, and if the memorization is improper, a larger network communication potential safety hazard exists. And because the information of the operator on duty can not be shared, the fault information can be repeatedly sent, which brings unnecessary trouble to the regional operation maintenance personnel, reduces the working efficiency and is not beneficial to timely troubleshooting.
Disclosure of Invention
The invention aims to provide a method and a system for subscribing alarm information of a power distribution room, which are characterized in that an operation and maintenance person can subscribe the power distribution room, the alarm type and the like in the responsibility range of the operation and maintenance person according to the working time and the duty time of the operation and maintenance person, and when an alarm occurs, the mobile terminal receives an alarm short message prompt in real time, so that the alarm short message prompt can be conveniently sent to the site at the first time and the fault can be eliminated.
In order to achieve the above object, the present invention provides a power distribution room warning information subscription method, which includes:
subscribing user configuration subscription information, including alarm receiver, station house ID, alarm type, sending type and sending time;
receiving an alarm message sent to a message bus;
analyzing the alarm message to obtain the station house ID, the alarm type, the alarm time and the alarm content; screening out subscribing users whose station house ID and alarm type in the subscription information are consistent with those in the alarm information; if the sending type is instant sending, generating alarm information; if the sending type is sending in the appointed time, judging whether the alarm time is in the sending starting and stopping time range, if so, generating alarm information, otherwise, not generating the alarm information;
and adding the generated alarm information into a message sending queue, and sending the alarm information to the alarm receivers screened out the subscription users by the threads.
Further, generating the alarm information includes:
acquiring a corresponding message template according to the alarm type, generating a templated message title and message content by using the message template, and replacing a specific character string identifier in the message template with a corresponding field content in a json character string in the alarm message; and adding the generated message title, the message content and the subscription information alarm receiver into a message queue to be sent.
Further, the sending type also comprises self-defined sending, a subscription user defines a message title, a message content and sending time, and if the sending time is null, the instant sending is represented;
screening out the self-defined short message to be sent, and generating alarm information according to the user defined message title and the message content;
after adding into the message queue to be sent, a message record is inserted into a message record table (msgrecordid), and the subscribed alarm information and the self-defined sending information are recorded.
Further, when the number of the information queues to be sent is not more than 10, all the information sending threads are taken out; when the number of the to-be-sent lists of the message processing threads is more than 10, taking out the front 10 messages of the queues, and taking out the rest messages in the next cycle of the message sending threads in the same way to form a message sending list;
inquiring the information of the subscribed user, checking the mobile phone number, and filtering the incorrect mobile phone number; and for the mobile phone number passing the verification, writing the mobile phone number, the short message title and the short message content into a short message modem model table (sms _ send), and automatically sending the data when the short message modem detects that the data exist.
Further, for the mobile phone numbers which do not conform to the rules of China Mobile, Unicom and telecommunication number codes, updating the status bit (status) in the message record table (msgrecordid) as the failure of sending;
in a message sending thread, a timer is started, the timer acquires the sending state of sending information from a SMM model table (sms _ send) sending record table at regular intervals, and the sending state is written back to a message record table (msgrecordid).
Further, if the counter of one record in the message record table (msgrecordid) reaches 300, the record is deleted from the monitoring list, and a failure flag is sent back to the message record table (msgrecordid), and an alarm subject message is sent to the message bus.
On the other hand, the system for subscribing the alarm information of the power distribution room comprises a message management module, a message processing module and a message sending module;
the message management module is used for configuring subscription information, including an alarm receiver, a station house ID, an alarm type, a sending type and sending time;
the message processing module receives the alarm message sent to the message bus; analyzing the alarm message to obtain the station house ID, the alarm type, the alarm time and the alarm content; screening out subscribing users whose station house ID and alarm type in the subscription information are consistent with those in the alarm information; if the sending type is instant sending, generating alarm information; if the sending type is sending in the appointed time, judging whether the alarm time is in the sending starting and stopping time range, if so, generating alarm information, otherwise, not generating the alarm information; adding the generated alarm information to a message sending queue;
and the message sending module is used for sending the alarm information in the message sending queue to the alarm receivers screened out the subscribing users.
Further, the message processing module, generating the alarm information, includes:
acquiring a corresponding message template according to the alarm type, generating a templated message title and message content by using the message template, and replacing a specific character string identifier in the message template with a corresponding field content in a json character string in the alarm message; and adding the generated message title, the message content and the subscription information alarm receiver into a message queue to be sent.
Further, the sending type also comprises self-defined sending, wherein a message title, a message content and sending time are defined, and if the sending time is null, instant sending is represented;
the message processing module screens out the self-defined short message to be sent and generates alarm information according to the message title and the message content defined by the user;
after adding into the message queue to be sent, a message record is inserted into a message record table (msgrecordid), and the subscribed alarm information and the self-defined sending information are recorded.
Further, when the number of the information queues to be sent is not more than 10, the message sending module takes out all the message sending threads; when the number of the to-be-sent lists of the message processing threads is more than 10, taking out the front 10 messages of the queues, and taking out the rest messages in the next cycle of the message sending threads in the same way to form a message sending list;
inquiring the information of the subscribed user, checking the mobile phone number, and filtering the incorrect mobile phone number; for the mobile phone number passing the verification, writing the mobile phone number, the short message title and the short message content into a short message cat model table (sms _ send); in a message sending thread, a timer is started, the timer acquires the sending state of sending information from a SMM model table (sms _ send) sending record table at regular intervals, and the sending state is written back to a message record table (msgrecordid).
For mobile phone numbers which do not conform to China Mobile, Unicom and telecommunication number code rules, updating status bits (status) in a message record table (msgrecordid) to be failed in sending;
if the counter count of one record in the message record table (msgrecordid) reaches 300, the record is deleted from the monitoring list, a failure flag is sent back to the message record table (msgrecordid), and an alarm subject message is sent to a message bus.
The technical scheme of the invention has the following beneficial technical effects:
the invention provides a method and a system for subscribing warning information of a power distribution room, wherein a user can flexibly subscribe the warning information according to the working time and the duty time of the user and according to the station room administered by the user and the concerned warning type, and the warning information supports templated description and multimedia message pictures. When the alarm happens, the user receives the alarm short message prompt in real time at the mobile terminal, so that the user can conveniently arrive at the site at the first time and get rid of the fault.
Drawings
Fig. 1 is a flowchart of a method for subscribing to alarm information of a power distribution room according to an embodiment of the present invention;
FIG. 2 is a flow chart of processing subscription alert information according to another embodiment of the present invention;
FIG. 3 is a flow chart of a customized SMS process according to another embodiment of the present invention;
fig. 4 is a message sending flow chart according to an embodiment of the present invention;
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
The invention provides a power distribution room alarm information subscription method, which comprises the following procedures:
(1) and the subscribing user manages subscription information on the message subscription page. Specifically, the subscription information may configure an alarm receiver, a station house ID, an alarm type, a sending type, sending time, and a sending mode.
The alarm types comprise alarm types in the power distribution fields of remote signaling deflection, protection outlet, fire alarm and the like.
The sending type comprises instant sending, sending at specified time and custom sending.
The sending time is effective when the sending type is the sending in the appointed time and the self-defined sending.
The sending mode comprises short messages and multimedia messages.
Flexible configuration of short messages and multimedia messages is supported, and a short message text description mode can be selected for general alarm; the serious alarm can select a multimedia message mode, and characters are sent to be matched with an alarm screenshot or a fault photo.
(2) The message processing thread receives the alarm topic message sent by the alarm service on the kafka message bus.
(3) Analyzing the alarm message to obtain the station house ID, the alarm type, the alarm time and the alarm content; screening out subscribing users whose station house ID and alarm type in the subscription information are consistent with those in the alarm information; if the sending type is instant sending, generating alarm information; if the sending type is sending in the appointed time, judging whether the alarm time is in the sending starting and stopping time range, if so, generating alarm information, otherwise, not generating the alarm information;
specifically, the message processing thread is used for receiving all alarm subject messages sent to the kafka message bus by the alarm service and analyzing json format alarm messages, wherein the json format alarm messages comprise station house ID, alarm time, alarm type, alarm content, equipment name, operator and other information;
and screening out alarm subscribers with the station house ID and the alarm type consistent with those in the alarm message according to the station house ID and the alarm type.
With reference to fig. 2, if the transmission type is instant transmission, a piece of information is generated. And if the sending type is sending in the appointed time, judging the alarm time and the sending start-stop time. If the alarm time is within the sending start-stop time range, generating a piece of information; otherwise, if the subscriber does not subscribe the station room and the alarm information of the alarm type at the alarm time, no information is generated.
The sending type also supports self-defined sending, and a user self-defines and edits message titles, content, sending time and the like and sends the message titles, the content, the sending time and the like to a specified user terminal. If the sending time is empty, a piece of information is generated to be sent immediately; if the transmission time is not null, a piece of information is generated by waiting for the transmission time (the judgment is equal according to the time when the minutes are equal, namely, the time of year, month, day and time are equal).
The message processing thread acquires a message template according to the alarm type and generates a templated message title and message content by using the message template; and generating a message queue to be sent, and inserting a message record into the msgrecordid table.
Specifically, the message template is generated according to the alarm types, each alarm type corresponds to one message template in the model library, and the message template can be obtained through the alarm types. And replacing the corresponding field content in the alarm json character string by using the specific character string identification in the message template to generate a templated message title and message content.
(3) And adding the generated alarm information into a message sending queue, and sending the alarm information to the alarm receivers screened out the subscription users by the threads.
Generating a message queue to be sent, and adding a generated message title, message content, a subscription information receiver, alarm information and the like into the message queue to be sent; and inserting a record in the msgrecordid table, wherein the record is used for recording the subscribed alarm information and the custom-sent information.
And the message sending thread acquires a message queue to be sent from the message processing thread, inquires subscriber information and verifies the mobile phone number, writes the message model to be sent into the SMM _ send model table, and the SMM detects that data are automatically sent.
Specifically, the message sending thread acquires a message queue to be sent from the message processing thread, reads a message list to be sent, and takes out a short message to be sent by taking 10 pieces of information at most as a unit. When the number of the information queues to be sent by the message processing threads is not more than 10, all the message sending threads are taken out; when the message processing thread has more than 10 pieces of information in the to-be-sent list, the front 10 pieces of information of the queue are taken out, and the rest information is taken out in the same way in the next cycle of the message sending thread.
With reference to fig. 4, the message sending thread obtains the mobile terminal (mobile phone) number of the subscriber from the user management model, verifies the mobile phone number, updates the status bit of the msgrecordid message record table as a sending failure for the mobile phone number which does not conform to the number rules of china mobile, unicom, telecom, and the like, and does not write the sms cat sms _ send table.
The direct filtering of the incorrect mobile phone number can reduce the load of the short message cat in the peak period; the operator also charges when the short message is failed to be sent, so that unnecessary short message expense can be saved.
And for the mobile phone number passing the verification, writing the receiving number, the short message title and the short message content into an sms _ send table, setting the transmitting state smsState as unsent, and automatically detecting and transmitting by the SMSTC.
With reference to fig. 3, in the message sending thread, a timer is started, and the timer periodically obtains the sending state of the sending information from the sms _ send sending record table of the short message cat by taking 1s as a cycle, and writes back the sending state to the msgrecordid of the message record table.
The timer is used for monitoring the message sending state of the short message cat. The sms _ send table smsState column is used to indicate the message sending status.
For each record written to the sms send table, the messaging thread maintains a counter that looks up the message record send status every monitoring cycle. If the sending state is success or failure, the record counter is cleared, the record is deleted from the monitoring list, and the sending state is written back to the message record msgrecordid. If the counter count for a record reaches 300, indicating that 5 minutes have not been successfully transmitted, the record is removed from the watch list and a msgrecordid transmission failure flag is written back.
The information which is failed to send or is not sent after time out is sent to the kafka message bus, and a special person or a special number can subscribe the information which is failed to send.
The message processing thread and the message sending thread are both single instances.
On the other hand, the system for subscribing the alarm information of the power distribution room comprises a message management module, a message processing module and a message sending module.
And the message management module is used for configuring subscription information, including an alarm receiver, a station house ID, an alarm type, a sending type and sending time.
Further, the sending type also comprises self-defined sending, wherein a message title, a message content and sending time are defined, and if the sending time is null, the instant sending is indicated.
The message processing module receives the alarm message sent to the message bus; analyzing the alarm message to obtain the station house ID, the alarm type, the alarm time and the alarm content; screening out subscribing users whose station house ID and alarm type in the subscription information are consistent with those in the alarm information; if the sending type is instant sending, generating alarm information; if the sending type is sending in the appointed time, judging whether the alarm time is in the sending starting and stopping time range, if so, generating alarm information, otherwise, not generating the alarm information; and adding the generated alarm information to a message sending queue.
Further, the message processing module acquires a corresponding message template according to the alarm type, generates a templated message title and message content by using the message template, and replaces the specific character string identification in the message template with the corresponding field content in the json character string in the alarm message; and adding the generated message title, the message content and the subscription information alarm receiver into a message queue to be sent.
The message processing module screens out the self-defined short message to be sent and generates alarm information according to the message title and the message content defined by the user; after adding into the message queue to be sent, a message record is inserted into a message record table (msgrecordid), and the subscribed alarm information and the self-defined sending information are recorded.
And the message sending module is used for sending the alarm information in the message sending queue to the alarm receivers screened out the subscribing users.
Further, when the number of the information queues to be sent is not more than 10, the message sending module takes out all the message sending threads; and when the number of the to-be-sent lists of the message processing threads is more than 10, taking out the front 10 information of the queues, and taking out the rest information in the next cycle of the message sending threads in the same way to form a message sending list.
Inquiring the information of the subscribed user, checking the mobile phone number, and filtering the incorrect mobile phone number; for the mobile phone number passing the verification, writing the mobile phone number, the short message title and the short message content into a short message cat model table (sms _ send); in a message sending thread, a timer is started, the timer acquires the sending state of sending information from a SMM model table (sms _ send) sending record table at regular intervals, and the sending state is written back to a message record table (msgrecordid).
For mobile phone numbers which do not accord with number rules of China Mobile, Unicom, telecom and the like, updating a status bit (status) in a message record table (msgrecordid) to be a transmission failure;
if the counter count of one record in the message record table (msgrecordid) reaches 300, the record is deleted from the monitoring list, a failure flag is sent back to the message record table (msgrecordid), and an alarm subject message is sent to a message bus.
Examples
In this embodiment, a power distribution room alarm information subscription method includes the following steps:
the user adds a subscription record on the message subscription management page, and the subscription conditions comprise a receiver, a station house ID, an alarm type, a sending type, sending time and a sending mode.
The user can also add self-defined sending information, appoint a receiver, a message title, message content, sending time and the like, and the message is sent instantly when the sending time is not filled.
For the self-defined sending information, the message processing thread judges the sending time, and if the sending time is empty, the message is sent immediately; if the sending time is filled in, the information is sent at the sending time (to the nearest minute). For the alarm subscription class information, a message processing thread receives an alarm message subject on a kafka message bus, and a kafka message body is of a json structure. And screening out subscription records of information to be sent according to the station house ID, the alarm type, the sending time and the like, and generating a templated message title and content according to a message template corresponding to the alarm type. Wherein the definition is as follows: alarm content, alarm level, alarm time, alarm type, confirm person, confirm status, confirm time, data source, deviceid, equipment ID, equipment name, alarm number, object ID, operator, station name, and system subsystem.
The idea of templating is based on string replacement.
In one embodiment, the content of the kafka alarm message is in json format, and the alarm message is exemplified as follows:
Figure BDA0003170078350000091
Figure BDA0003170078350000101
message template example:
{ user }, your good! { alammtime } { equiment } occurred { alamcontent }, the failure level was severe, please confirm!
The templated message content is:
somebody, you good! 2019-06-2217: 31:17.197 # Ampere city, Ampere distribution room/1 # water sensor in Ampere city, if the fault state of the Ampere distribution room/1 # water sensor is serious, please confirm!
{ user } is replaced with the subscriber name, and the remaining { } containing strings are replaced with corresponding fields in the alarm json message string.
And generating a message record by using the templated alarm message or the self-defined sent message, storing the message record in a message record table msgrecordid, and adding the message record to a queue to be sent.
And when detecting that the queue to be sent of the message processing thread is not empty, the message sending thread starts to process the sending information.
And inquiring the mobile phone number of the receiver, checking the mobile phone number, and not sending information when the checking fails.
The mobile phone number is checked by adopting a regular expression, wherein the expression comprises the following steps:
a number 1, followed by a 10-bit number, with 11 bits total, begins with a number 1.
If the specific number section such as mobile, Unicom, telecom, etc. is specified, the expression can be matched more accurately:
^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199)\d{8}$
wherein 13[0-9]) indicates that the first two bits are 13 and the 3 rd bit is 0-9; (14[5,7]) indicates that the first two bits are 14 and the 3 rd bit is 5 or 7; (15[0-3,5-9]) means that the first two bits are 15, and the 3 rd bit is 0-3 or 5-9; (17[0,3,5-8]), which means that the first two bits are 17, and the 3 rd bit is 0,3 or 5-8; (18[0-9]) indicates that the first two bits are 18 and the 3 rd bit is 0-9; 166|198|199 indicates that the first 3 digit number segment is 166, 198 or 199; d {8} represents an arbitrary 8-bit number; ^ denotes start, $ denotes end, | denotes OR.
And (4) checking the passing mobile phone number, inserting a sending record into the SMS _ send table by the message sending thread, and automatically sending the data monitored by the SMS.
And the message sending thread inquires the message sending state in real time and updates the sending state (success, failure) and the sending time to a message record table msgrecordid.
In summary, the present invention relates to a method and a system for subscribing to alarm information of a power distribution room, where a user configures subscription information on a message subscription page, including a receiver, a station house ID, an alarm type, a sending type, sending time, a sending mode, and the like; after the subscription is successful, the message processing module receives a kafka message bus alarm subject message; according to the subscription record, the short message cat sends information to the subscriber mobile terminal, and the subscriber receives the alarm information and can process the fault information of the power distribution station house in time. The subscription management platform supports custom sending of short messages, the subscribed alarm information supports generation of templated titles and contents, and for serious level alarms, the subscription management platform supports sending of multimedia message pictures, so that a user can receive alarm short message prompts in real time at a mobile phone terminal, and can arrive at a scene conveniently at the first time to remove faults.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.

Claims (10)

1. A power distribution room alarm information subscription method is characterized by comprising the following steps:
subscribing user configuration subscription information, including alarm receiver, station house ID, alarm type, sending type and sending time;
receiving an alarm message sent to a message bus;
analyzing the alarm message to obtain the station house ID, the alarm type, the alarm time and the alarm content; screening out subscribing users whose station house ID and alarm type in the subscription information are consistent with those in the alarm information; if the sending type is instant sending, generating alarm information; if the sending type is sending in the appointed time, judging whether the alarm time is in the sending starting and stopping time range, if so, generating alarm information, otherwise, not generating the alarm information;
and adding the generated alarm information into a message sending queue, and sending the alarm information to the alarm receivers screened out the subscription users by the threads.
2. The distribution room alarm information subscription method according to claim 1, wherein generating alarm information comprises:
acquiring a corresponding message template according to the alarm type, generating a templated message title and message content by using the message template, and replacing a specific character string identifier in the message template with a corresponding field content in a json character string in the alarm message; and adding the generated message title, the message content and the subscription information alarm receiver into a message queue to be sent.
3. The distribution room alarm information subscription method according to claim 2,
the sending type also comprises self-defined sending, a user is subscribed to define a message title, message content and sending time, and if the sending time is null, instant sending is indicated;
screening out the self-defined short message to be sent, and generating alarm information according to the user defined message title and the message content;
after adding into the message queue to be sent, a message record is inserted into a message record table (msgrecordid), and the subscribed alarm information and the self-defined sending information are recorded.
4. The distribution room alarm information subscription method according to claim 2,
when the number of the information queues to be sent is not more than 10, all the information sending threads are taken out; when the number of the to-be-sent lists of the message processing threads is more than 10, taking out the front 10 messages of the queues, and taking out the rest messages in the next cycle of the message sending threads in the same way to form a message sending list;
inquiring the information of the subscribed user, checking the mobile phone number, and filtering the incorrect mobile phone number; and for the mobile phone number passing the verification, writing the mobile phone number, the short message title and the short message content into a short message modem model table (sms _ send), and automatically sending the data when the short message modem detects that the data exist.
5. The distribution room alarm information subscription method according to claim 4,
for mobile phone numbers which do not conform to China Mobile, Unicom and telecommunication number code rules, updating status bits (status) in a message record table (msgrecordid) to be failed in sending;
in a message sending thread, a timer is started, the timer acquires the sending state of sending information from a SMM model table (sms _ send) sending record table at regular intervals, and the sending state is written back to a message record table (msgrecordid).
6. Distribution room alarm information subscription method according to claim 5, characterized in that if the counter count of one record in the message record table (msgrecordid) reaches 300, the record is deleted from the watch list and a failure flag is sent back to the message record table (msgrecordid), and an alarm subject message is sent to the message bus.
7. A power distribution room warning information subscription system is characterized by comprising a message management module, a message processing module and a message sending module;
the message management module is used for configuring subscription information, including an alarm receiver, a station house ID, an alarm type, a sending type and sending time;
the message processing module receives the alarm message sent to the message bus; analyzing the alarm message to obtain the station house ID, the alarm type, the alarm time and the alarm content; screening out subscribing users whose station house ID and alarm type in the subscription information are consistent with those in the alarm information; if the sending type is instant sending, generating alarm information; if the sending type is sending in the appointed time, judging whether the alarm time is in the sending starting and stopping time range, if so, generating alarm information, otherwise, not generating the alarm information; adding the generated alarm information to a message sending queue;
and the message sending module is used for sending the alarm information in the message sending queue to the alarm receivers screened out the subscribing users.
8. The system for subscribing to alarm information of a power distribution room according to claim 7, wherein the message processing module generates the alarm information comprises:
acquiring a corresponding message template according to the alarm type, generating a templated message title and message content by using the message template, and replacing a specific character string identifier in the message template with a corresponding field content in a json character string in the alarm message; and adding the generated message title, the message content and the subscription information alarm receiver into a message queue to be sent.
9. The system for subscribing to alarm information of the power distribution room according to claim 8, wherein said transmission types further comprise custom transmission, defining message header, message content, transmission time, and indicating instant transmission if the transmission time is empty;
the message processing module screens out the self-defined short message to be sent and generates alarm information according to the message title and the message content defined by the user;
after adding into the message queue to be sent, a message record is inserted into a message record table (msgrecordid), and the subscribed alarm information and the self-defined sending information are recorded.
10. The system for subscribing to alarm information of a power distribution room according to claim 8, wherein said message sending module takes out all message sending threads when the number of message queues to be sent is not more than 10; when the number of the to-be-sent lists of the message processing threads is more than 10, taking out the front 10 messages of the queues, and taking out the rest messages in the next cycle of the message sending threads in the same way to form a message sending list;
inquiring the information of the subscribed user, checking the mobile phone number, and filtering the incorrect mobile phone number; for the mobile phone number passing the verification, writing the mobile phone number, the short message title and the short message content into a short message cat model table (sms _ send); in a message sending thread, a timer is started, the timer acquires the sending state of sending information from a SMM model table (sms _ send) sending record table at regular intervals, and the sending state is written back to a message record table (msgrecordid).
For mobile phone numbers which do not conform to China Mobile, Unicom and telecommunication number code rules, updating status bits (status) in a message record table (msgrecordid) to be failed in sending;
if the counter count of one record in the message record table (msgrecordid) reaches 300, the record is deleted from the monitoring list, a failure flag is sent back to the message record table (msgrecordid), and an alarm subject message is sent to a message bus.
CN202110815747.2A 2021-07-19 2021-07-19 Power distribution room alarm information subscription method and system Pending CN113593196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110815747.2A CN113593196A (en) 2021-07-19 2021-07-19 Power distribution room alarm information subscription method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110815747.2A CN113593196A (en) 2021-07-19 2021-07-19 Power distribution room alarm information subscription method and system

Publications (1)

Publication Number Publication Date
CN113593196A true CN113593196A (en) 2021-11-02

Family

ID=78248286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110815747.2A Pending CN113593196A (en) 2021-07-19 2021-07-19 Power distribution room alarm information subscription method and system

Country Status (1)

Country Link
CN (1) CN113593196A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114495399A (en) * 2022-04-01 2022-05-13 武汉中科通达高新技术股份有限公司 Processing system, method, computer equipment and medium for national standard camera alarm information
CN115311825A (en) * 2022-07-07 2022-11-08 深圳市大族数控科技股份有限公司 Alarm data pushing method and device for PCB (printed Circuit Board) equipment, computer equipment and storage medium
CN115913885A (en) * 2022-12-21 2023-04-04 中盈优创资讯科技有限公司 Customizable alarm subscription forwarding method and device
CN117149897A (en) * 2023-10-31 2023-12-01 成都交大光芒科技股份有限公司 Big data alarm information hierarchical display system and method based on double-buffer technology
CN115311825B (en) * 2022-07-07 2024-06-07 深圳市大族数控科技股份有限公司 Method and device for pushing alarm data of PCB (printed circuit board) equipment, computer equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080147737A1 (en) * 2006-09-20 2008-06-19 At&T Bls Intellectual Property, Inc. Publish-subscription platforms for alert messages and related methods and computer program products
CN101232394A (en) * 2007-12-29 2008-07-30 中国移动通信集团四川有限公司 System and method for support network management monitoring short message centralized management
CN104270730A (en) * 2014-10-29 2015-01-07 国家电网公司 System and method for improving ability to send text messages and optimizing sending
CN107579854A (en) * 2017-09-20 2018-01-12 郑州云海信息技术有限公司 A kind of cluster alarm method, device, equipment and computer-readable recording medium
CN104639429B (en) * 2015-02-12 2019-06-28 青岛海尔智能家电科技有限公司 A kind of message informing method and device of cloud platform
CN110019025A (en) * 2017-07-20 2019-07-16 中国移动通信集团公司 A kind of stream data processing method and device
CN110166288A (en) * 2019-05-10 2019-08-23 北京市天元网络技术股份有限公司 A kind of alarm biography reporting method and equipment based on Kafka stream process
CN106933862B (en) * 2015-12-30 2020-02-04 北京神州泰岳软件股份有限公司 Method and device for generating mail report
CN107160388B (en) * 2017-04-25 2020-05-15 国网浙江省电力公司 Intelligent inspection robot monitoring system for transformer substation
CN112688796A (en) * 2020-12-11 2021-04-20 贵州电网有限责任公司 Monitoring method for automatic early warning and alarming functions of IT assets

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080147737A1 (en) * 2006-09-20 2008-06-19 At&T Bls Intellectual Property, Inc. Publish-subscription platforms for alert messages and related methods and computer program products
CN101232394A (en) * 2007-12-29 2008-07-30 中国移动通信集团四川有限公司 System and method for support network management monitoring short message centralized management
CN104270730A (en) * 2014-10-29 2015-01-07 国家电网公司 System and method for improving ability to send text messages and optimizing sending
CN104639429B (en) * 2015-02-12 2019-06-28 青岛海尔智能家电科技有限公司 A kind of message informing method and device of cloud platform
CN106933862B (en) * 2015-12-30 2020-02-04 北京神州泰岳软件股份有限公司 Method and device for generating mail report
CN107160388B (en) * 2017-04-25 2020-05-15 国网浙江省电力公司 Intelligent inspection robot monitoring system for transformer substation
CN110019025A (en) * 2017-07-20 2019-07-16 中国移动通信集团公司 A kind of stream data processing method and device
CN107579854A (en) * 2017-09-20 2018-01-12 郑州云海信息技术有限公司 A kind of cluster alarm method, device, equipment and computer-readable recording medium
CN110166288A (en) * 2019-05-10 2019-08-23 北京市天元网络技术股份有限公司 A kind of alarm biography reporting method and equipment based on Kafka stream process
CN112688796A (en) * 2020-12-11 2021-04-20 贵州电网有限责任公司 Monitoring method for automatic early warning and alarming functions of IT assets

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114495399A (en) * 2022-04-01 2022-05-13 武汉中科通达高新技术股份有限公司 Processing system, method, computer equipment and medium for national standard camera alarm information
CN114495399B (en) * 2022-04-01 2022-07-22 武汉中科通达高新技术股份有限公司 Processing system, method, computer equipment and medium for national standard camera alarm information
CN115311825A (en) * 2022-07-07 2022-11-08 深圳市大族数控科技股份有限公司 Alarm data pushing method and device for PCB (printed Circuit Board) equipment, computer equipment and storage medium
CN115311825B (en) * 2022-07-07 2024-06-07 深圳市大族数控科技股份有限公司 Method and device for pushing alarm data of PCB (printed circuit board) equipment, computer equipment and storage medium
CN115913885A (en) * 2022-12-21 2023-04-04 中盈优创资讯科技有限公司 Customizable alarm subscription forwarding method and device
CN117149897A (en) * 2023-10-31 2023-12-01 成都交大光芒科技股份有限公司 Big data alarm information hierarchical display system and method based on double-buffer technology
CN117149897B (en) * 2023-10-31 2024-01-26 成都交大光芒科技股份有限公司 Big data alarm information hierarchical display system and method based on double-buffer technology

Similar Documents

Publication Publication Date Title
CN113593196A (en) Power distribution room alarm information subscription method and system
CN102075987B (en) Method, system and network management monitoring server for obtaining abnormal information of message link
US20090042588A1 (en) Method and installation for transmitting a message with predetermined duration of validity addressed to a subscriber terminal
CN105119950B (en) A kind of Distribution Network Communication method
US20120108212A1 (en) Monitoring System For Mobile Terminal And Monitoring Method Thereof
CN101651850A (en) Method and system for transmitting major notification messages of earthquake and tsunami warning system
CN109669835A (en) MySQL database monitoring method, device, equipment and readable storage medium storing program for executing
CN103166804B (en) Sstm centralized monitoring management system
CN101635894A (en) Monitoring system, monitoring method and information transmission method for junk information
CN101247277A (en) Alarm method and device
CN102196372B (en) Method, device, portable terminal and system for movably monitoring network alarm in real-time
CN107239380A (en) A kind of message queue monitoring method based on zabbix
CN111522672B (en) Method and system for repeated consumption of fusing data
CN101605047A (en) A kind of voice alarm method of supervisory control system
US20040215736A1 (en) Method for notifying a user about the presence of a message stored for him
US8331221B2 (en) Automatic outage alert system
CN102447948B (en) Network television server and message sending method thereof
CN101931918A (en) Device for processing order business according to user status and method
JP3467412B2 (en) Combustion control device monitoring system, remote monitoring device and combustion control device
CN113225699B (en) Message sending system and method based on alarm platform, and medium and equipment of storage method
CN108880903B (en) Data stream monitoring method, system, device and computer readable storage medium
CN111901770A (en) Method and system for detecting call ticket processing efficiency of roaming place server
CN101110898A (en) System and method for receiving multimedia message by digital television
CN108600971B (en) Device and method for monitoring multimedia message receiving result
CN108768595A (en) The monitoring retransmission method and system of the real-time new information of mobile terminal based on Android

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20211102

RJ01 Rejection of invention patent application after publication