Disclosure of Invention
The invention aims to provide a method and a system for removing duplicate in real-time power failure active reporting of high-speed power line carrier communication.
In order to achieve the above object, a first aspect of the present invention provides a method for active reporting and deduplication in real-time power outage for high-speed power line carrier communication, where the method includes:
s1: configuring a deduplication parameter, and determining a deduplication period of a power failure event;
s2: analyzing the event message to obtain event information;
s3: judging power failure events or power restoration events according to the power failure event duplicate removal period and the event information, and collecting single reported power failure events, filtering the repeatedly reported power failure events or clearing the power restoration power failure events;
s4: reporting the collected power failure events to the concentrator at regular time;
s5: and erasing the reported power failure event.
Optionally, the step S1: configuring a deduplication parameter and determining a blackout event deduplication period, wherein the deduplication parameter comprises the following steps:
s101: establishing a first static memory area in the CCO for recording the power failure event time of the ammeter module, initializing a memory and initializing the power failure event time; the first static memory area comprises a plurality of memory areas which correspond to the ammeter modules one to one;
s102: establishing a second static memory area in the CCO for recording a power failure bitmap list of the ammeter module and initializing the power failure bitmap list;
s103: determining the power failure deduplication period T according to the earliest time and the latest time of the CCO reporting the power failure event to the concentratorDe-weighting,TDe-weighting=TBroadcasting stage of power failure ammeter module+TIntermediate node aggregating unicast+TConcentrator local poolingWherein, TBroadcasting stage of power failure ammeter moduleThe method comprises the following steps that an HPLC communication module arranged in an ammeter module with power failure repeatedly broadcasts for a duration time; t isIntermediate node aggregating unicastThe collection time of unicast power failure events collected by an HPLC communication module of the uninterrupted power meter is set; t isConcentrator local poolingThe collection time of the CCO collection electricity meter power failure event is shown.
A concentrator local communication unit (CCO) allocates a static memory for each ammeter module, records the time of a power failure event, and accurately processes power failure information of each station to remove duplication; through the time sequence analysis of the reporting process of the power failure events of the ammeter module, the power failure duplication elimination period is determined, the duplication elimination time index is quantized, and the reliability of power failure information is improved.
Optionally, the step S2: analyzing the event message to obtain event information, comprising:
s201: analyzing the event message, and acquiring the message event type, the node bitmap of the event and the initial TEI of the event ammeter module;
s202: calculating the electricity meter module TEI with power failure according to the node bitmap of the occurrence event and the initial TEI of the occurrence event electricity meter module:
TEI=IndexByte*8+IndexBit+STEI,
wherein, IndexByte is the byte sequence number of the node bitmap of the event in the message, IndexBit is the bit sequence number of the node bitmap of the event in the message, the value range is 0-7, STEIThe initial TEI of the electricity meter module is the occurrence of an event. The message adopts a node bitmap and only carries the bitmap corresponding to the relevant ammeter module with the power failure event in the network, so that the total length of the message is reduced, and the analysis time is saved.
Optionally, the step S3: judging the power failure event and the power restoration event according to the power failure event duplicate removal cycle and the event information, and collecting the single reported power failure event, filtering the repeatedly reported power failure event or clearing the power restoration power failure event, wherein the method comprises the following steps:
s301: inquiring about electricity meter module power failure event time T according to the electricity meter module TEIPower cut;
S302: determining whether the message is a power failure event according to the message event type, if so, executing a step S303; if not, determining that the message is a power restoration event, and executing the step S305;
s303: obtaining the CCO current time TCurrent time;
S304: recording T according to the power failure event time of the ammeter modulePower cutAnd CCO Current time TCurrent timeJudging whether the power failure event of the ammeter is reported repeatedly:
if T Power cut0 or TPower cut+TDe-weighting≤TCurrent timeIf so, determining that the power failure event of the ammeter is not reported repeatedly, collecting the power failure event, and updating a power failure bitmap list and power failure event time;
if TPower cutNot equal to 0 or TPower cut+TDe-weighting>TCurrent timeIf so, determining that the power failure event of the ammeter is repeatedly reported, and filtering the repeatedly reported power failure event;
s305: zero clearing power failure event time T corresponding to electric meter module TEIPower cutThe deduplication cycle terminates. By repeatedly reporting and judging in the power failure information collecting process, the false reporting and re-reporting rate of the power failure event is reduced, and meanwhile, by utilizing the characteristic that the power failure event and the power recovery event are matched in pairs, when the power recovery event message is received, the corresponding power failure event time is eliminated, the power failure event is stopped to be deduplicated, the power failure event is received again, the missed reporting rate of the power failure event is reduced, and the false reporting rate of the power failure event lasting for a short time is reduced。
Optionally, the updating the power outage bitmap list and the power outage event time includes:
configuring a power failure bitmap list according to a power failure electricity meter module TEI:
IndexByte1=(TEI-1)/8,
IndexBit 1=(TEI-1)%8,
the method comprises the steps that IndexByte1 is a byte index in a power failure bitmap list, IndexBit1 is a bit index in the power failure bitmap list, the position of an electric meter module TEI in the power failure bitmap list is determined according to IndexByte1 and IndexBit1, and the bit in the power failure bitmap is 1;
obtaining the CCO current time TCurrent timeUpdating the blackout event time T of the ammeter modulePower cut,TPower cut=TCurrent time。
Optionally, the step S4: regularly reporting the collected power failure event to a concentrator, comprising:
s401: judging whether the convergence timer is started or not, and if not, starting the convergence timer;
s402: reporting, by the CCO, the aggregated blackout event to the concentrator in response to a trigger message sent from an aggregation timer, the aggregation timer sending the trigger message at the end of a timing period. The power failure event is reported actively at regular time, the power failure event is guaranteed to be fed back to the main station in time, technical support is provided for timely rush repair of power supply operation and maintenance personnel, power supply reliability is improved, and fault loss is reduced.
Optionally, the step S5: erasing the reported power outage event, including:
s501: judging whether the power failure information erasing timer is started or not, and if not, starting the power failure information erasing timer;
s502: acquiring the current time T of the CCO in response to the trigger message of the self-power-off information erasing timerCurrent timeTraversing the power failure event time to obtain all TPower cutSatisfy TPower cut+TDe-weighting≤TCurrent timeThe ammeter module erases the power failure event time of the ammeter module, and is closed and stopped after the erasing is finishedAnd the power failure information erasing timer sends the trigger message when the timing period is ended. And polling and clearing the reported power failure event information meeting the duplicate removal condition by adopting a periodic trigger timer until the reported power failure event information is completely cleared, thereby realizing the dynamic duplicate removal of the power failure event information of the ammeter module.
The second aspect of the present invention provides a system for actively reporting duplicate information in real-time power failure in high-speed power line carrier communication, where the system includes:
the de-duplication parameter configuration unit is used for configuring de-duplication parameters and determining a de-duplication period of the power failure event;
the message analysis unit is used for analyzing the event message and acquiring event information;
the duplicate removal processing unit is used for judging power failure events or power restoration events according to the power failure event duplicate removal cycle and the event information, collecting single reported power failure events, filtering the repeatedly reported power failure events or clearing the power restoration events; and
and the power failure event reporting unit is used for reporting the collected power failure events to the concentrator at regular time and erasing the reported power failure events.
Optionally, the duplication removal parameter configuring unit includes:
the first static memory area establishing module is used for establishing a first static memory area in the CCO to record the power failure event time of the ammeter module, initializing the memory and initializing the power failure event time; the first static memory area comprises a plurality of memory areas which correspond to the ammeter modules one to one;
the second static memory area establishing module is used for establishing a second static memory area in the CCO to record a power failure bitmap list of the ammeter module and initializing the power failure bitmap list;
a power failure event deduplication period determining module, configured to determine a power failure deduplication period T according to the earliest time and the latest time of the power failure event reported by the CCO to the concentratorDe-weighting,TDe-weighting=TBroadcasting stage of power failure ammeter module+TIntermediate node aggregating unicast+TConcentrator local pooling。
A concentrator local communication unit (CCO) allocates static memory for each electric meter module through a duplicate parameter configuration unit, records power failure event time, and accurately processes power failure information of each station to remove duplicates; through the time sequence analysis of the reporting process of the power failure events of the ammeter module, the power failure duplication elimination period is determined, the duplication elimination time index is quantized, and the reliability of power failure information is improved.
Optionally, the packet parsing unit includes:
the message analysis module is used for analyzing the event message and acquiring the message event type, the node bitmap of the event and the initial TEI of the event ammeter module; and
the electricity meter module TEI calculation module for power failure calculation is used for calculating the electricity meter module TEI for power failure according to the node bitmap of the occurrence event and the initial TEI of the occurrence event electricity meter module:
TEI=IndexByte*8+IndexBit+STEI。
optionally, the deduplication processing unit includes:
a power failure event time query module for querying power failure event time T of the electric meter module according to the TEI of the electric meter modulePower cut;
A power failure event duplicate removal module for recording T according to the power failure event time of the ammeter modulePower cutAnd CCO Current time TCurrent timeJudging whether the power failure events of the ammeter are reported repeatedly, collecting the single reported power failure events, and updating a power failure bitmap list and power failure event time;
a power failure event clearing module for clearing the power failure event time T corresponding to the recovered electric meter module TEIPower cut. By repeatedly reporting and judging in the power failure information collecting process, the false reporting and re-reporting rate of the power failure events is reduced, and meanwhile, by utilizing the characteristic that the power failure events and the power recovery events are matched in pairs, when the power recovery event messages are received, the corresponding power failure event time is eliminated, the power failure event deduplication is stopped, the power failure events are received again, the missed reporting rate of the power failure events is reduced, and meanwhile, the false reporting of the power failure events lasting for a short time is reduced.
Optionally, the power outage event reporting unit includes:
the timer module is used for collecting timing and erasing timing of power failure information;
the power failure event reporting module is used for reporting the collected power failure event to the concentrator when receiving the collected timer message; and
a power outage event time erasing module for erasing all T when receiving the power outage information erasing timer messagePower cutSatisfy TPower cut+TDe-weighting≤TCurrent timeThe power outage event time of the meter module. And polling and clearing the reported power failure event information meeting the duplicate removal condition by adopting a periodic trigger timer until the reported power failure event information is completely cleared, thereby realizing the dynamic duplicate removal of the power failure event information of the ammeter module.
In another aspect, the present invention provides a machine-readable storage medium having stored thereon instructions for causing a machine to execute the method for active reporting deduplication in real-time power outage for high-speed power carrier communication.
Through the technical scheme, the power failure duplicate removal period is determined through the time sequence analysis of the reporting flow of the power failure events of the ammeter module, duplicate removal processing is carried out in the duplicate removal period, the power failure false alarm rate and the power failure missing rate are reduced, the active reporting accuracy of the power failure events is improved, and meanwhile the reported information quantity of the local communication unit of the concentrator is effectively reduced.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a flowchart of a real-time power failure active reporting deduplication method for high-speed power line carrier communication according to an embodiment of the present invention. As shown in fig. 1, the method includes:
s1: configuring a deduplication parameter, and determining a deduplication period of a power failure event;
s2: analyzing the event message to obtain event information;
s3: judging power failure events and power restoration events according to the power failure event duplicate removal period and the event information, collecting single reported power failure events, filtering the repeatedly reported power failure events or clearing the power restoration events;
s4: reporting the collected power failure events to a concentrator at regular time;
s5: and erasing the reported power failure event.
Optionally, the step S1: configuring a deduplication parameter and determining a blackout event deduplication period, wherein the deduplication parameter comprises the following steps:
s101: establishing a first static memory area in the CCO for recording the power failure event time of the ammeter module, initializing the memory, and initializing the power failure event time, wherein the value is 0; the first static memory area comprises a plurality of memory areas corresponding to the ammeter modules one to one. For example: the high-speed power line carrier communication network supports 1024 stations to the maximum, a CCO applies for a static memory to record the power failure event time of an HPLC station module, and the memory size is distributed as follows:
Mtotal length of=MStation blackout event time*CNumber of stationsWherein M isStation blackout event timeIs 4 bytes, C Number of stations1024, the static memory for recording the power failure event record of the electricity meter module is 4 KB.
S102: and establishing a second static memory area in the CCO for recording a power failure bitmap list of the ammeter module, and initializing the power failure bitmap list, wherein the value is 0. In a high-speed power line carrier communication network, after each station is accessed to the network, a terminal number (TEI) is distributed by a CCO (central control unit), in a power failure bitmap list, the memory serial number of each bit corresponds to the TEI, and if an electricity meter module reports a power failure event, the memory serial number corresponds to a bit position 1. If the high-speed power line carrier communication network supports 1024 stations at most, the TEI value is 1-1024. Applying for a static memory in a CCO (content-centric organization) to record a power failure event of an HPLC (high performance liquid chromatography) communication station module, wherein the memory size is distributed as follows:
Mtotal length of power cut bitmap list=MaxTEI/CNumber of bits per byteIn which C isNumber of bits per byte=8,Max TEI1024, so the power outage bitmap list memory is 128 bytes; the corresponding relationship between the power outage bitmap list and the TEI is shown in fig. 2, where TEI is IndexByte x 8+ IndexBit +1, where IndexByte is a byte number of the power outage bitmap list and has a value range of 0-127, and IndexBit is a bit number of the power outage bitmap list and has a value range of 0-7.
S103: determining the power failure deduplication period T according to the earliest time and the latest time of the CCO reporting the power failure event to the concentratorDe-weighting,TDe-weighting=TBroadcasting stage of power failure ammeter module+TIntermediate node aggregating unicast+TConcentrator local poolingWherein, TBroadcasting stage of power failure ammeter moduleThe method comprises the following steps that an HPLC communication module arranged in an ammeter module with power failure repeatedly broadcasts for a duration time; t isIntermediate node aggregating unicastThe collection time of unicast power failure events collected by an HPLC communication module of the uninterrupted power meter is set; t isConcentrator local poolingThe collection time of the CCO collection electricity meter power failure event is shown. As shown in FIG. 3, the power failure event of the electric meter HPLC module is repeatedly broadcast and transmitted for a plurality of times in a short time within the power supply time of the backup power supply by the HPLC communication module built in the electric meter module with power failure, and the duration is TBroadcasting stage of power failure ammeter moduleThe HPLC communication module of the middle uninterrupted power meter can collect unicast outage events, and the collection time is TIntermediate node aggregating unicastCCO collects and reports the power failure event of the electric meter to the concentrator, and the collection time is TConcentrator local poolingThus, it can be determined that the deduplication period is TDe-weighting=TBroadcasting stage of power failure ammeter module+TIntermediate node aggregating unicast+TConcentrator local poolingIt can be guaranteed that no repeated blackout events exist outside the cycle.
A concentrator local communication unit (CCO) allocates a static memory for each ammeter module, records the time of a power failure event, and accurately processes power failure information of each station to remove duplication; through the time sequence analysis of the reporting process of the power failure events of the ammeter module, the power failure duplication elimination period is determined, the duplication elimination time index is quantized, and the reliability of power failure information is improved.
Optionally, the step S2: analyzing the event message to obtain event information, comprising:
s201: analyzing the event message, and acquiring the message event type, the node bitmap of the event and the initial TEI of the event ammeter module; the event information carried in the message data field is shown in table 1, the message with the event type value of 1 is a power failure event message, and if the bit corresponding to the point bitmap is 1, the corresponding ammeter module has power failure.
TABLE 1
S202: calculating the electricity meter module TEI with power failure according to the node bitmap of the occurrence event and the initial TEI of the occurrence event electricity meter module:
TEI=IndexByte*8+IndexBit+STEI,
wherein, IndexByte is the byte sequence number of the node bitmap of the event in the message, IndexBit is the bit sequence number of the node bitmap of the event in the message, the value range is 0-7, STEIThe initial TEI of the electricity meter module is the occurrence of an event. The message adopts a node bitmap and only carries the bitmap corresponding to the relevant ammeter module with the power failure event in the network, so that the total length of the message is reduced, and the analysis time is saved.
Optionally, the step S3: according to the power failure event duplicate removal cycle and the event information, judging power failure events and power restoration events, collecting single reported power failure events, filtering the repeatedly reported power failure events or clearing the power restoration events, and the method comprises the following steps:
s301: inquiring about electricity meter module power failure event time T according to the electricity meter module TEIPower cutElectric meter module TEI and electric meter module power failure event time TPower cutThe corresponding relation is shown in FIG. 4; the power failure module information carried by each power failure message directly sets a power failure bitmap list and power failure event time T through TEIPower cutWaiting for information, not traversing all modules to search corresponding power failure bitmap and power failure event time TPower cutAnd the like. Realizing power failure message bitmap, power failure bitmap list and power failure event time T through static memoryPower cutAnd the direct mapping of the data solves the problem of large analysis workload caused by more station information carried by the power failure message and more power failure messages in a short time, reduces the time for traversing and inquiring the information, and improves the program operation efficiency.
S302: determining whether the message is a power failure event according to the message event type, if so, executing a step S303; if not, determining that the message is a power restoration event, and executing the step S305;
s303: obtaining the CCO current time TCurrent time;
S304: recording T according to the power failure event time of the ammeter modulePower cutAnd CCO Current time TCurrent timeJudging whether the power failure event of the ammeter is reported repeatedly:
if T Power cut0 or TPower cut+TDe-weighting≤TCurrent timeIf so, determining that the power failure event of the electric meter is not reported repeatedly, collecting the power failure event, and updating a power failure bitmap list and the power failure event time:
configuring a power failure bitmap list according to a power failure electricity meter module TEI:
IndexByte1=(TEI-1)/8,
IndexBit1=(TEI-1)%8,
wherein, IndexByte1 is a byte index in the power failure bitmap list, and IndexBit1 is a bit index in the power failure bitmap list; and determining the position of the electric meter module TEI in the power failure bitmap list according to IndexByte1 and IndexBit1, wherein if the electric meter module has power failure, the bit position in the power failure bitmap is 1.
Obtaining the CCO current time TCurrent timeUpdating the blackout event time T of the ammeter modulePower cut,TPower cut=TCurrent time. In the present invention TPower cutIndicating when the CCO receives a power outage event.
If TPower cutNot equal to 0 or TPower cut+TDe-weighting>TCurrent timeAnd determining that the power failure event of the electric meter is repeatedly reported, and filtering the repeatedly reported power failure event. Wherein T isCurrent time、TPower cutAnd counting by using a CCO local clock by taking seconds as a unit, wherein the value range is 0x 0-0 xFFFF.
S305: after the electric energy meter recovers power supply, the HPLC communication station module built in the electric energy meter detects power restoration, and after the HPLC communication station module accesses the network, the power restoration event is actively reported. The power restoration event message is reported by a unicast, the message style is shown in table 1, the message with the event type value of 2 is the power restoration event message, and if the bit corresponding to the point bitmap is 1, the power restoration occurs in the corresponding ammeter module. The site initiated TEI of the occurrence event is the module TEI of the occurrence of power restoration. After the CCO receives the power restoration message, resetting the power failure event time T corresponding to the TEI of the ammeter modulePower cutTermination of the deduplication period, TPower cutResetting to 0, and ending the power failure deduplication period. By repeatedly reporting and judging in the power failure information collection process, the power failure event is reducedThe false alarm rate is increased, and meanwhile, by utilizing the characteristic that power failure events and power restoration events are matched in pairs, when the power restoration event message is received, the corresponding power failure event time is cleared, the power failure event is stopped to be removed from the duplicate, the power failure event is received again, the false alarm rate of the power failure event is reduced, and the false alarm of the power failure event lasting for a short time is reduced.
Optionally, the step S4: regularly reporting the collected power failure event to a concentrator, comprising:
s401: judging whether the convergence timer is started or not, if not, starting the convergence timer, wherein the period of the convergence timer is TPooling;
S402: reporting, by the CCO, the aggregated blackout event to the concentrator in response to a trigger message sent from an aggregation timer, the aggregation timer sending the trigger message at the end of a timing period. The timer message structure is shown in table 2. The power failure event is reported actively at regular time, the power failure event is guaranteed to be fed back to the main station in time, technical support is provided for timely rush repair of power supply operation and maintenance personnel, power supply reliability is improved, and fault loss is reduced.
Optionally, the step S5: erasing the reported power outage event, including:
s501: judging whether the power failure information erasing timer is started or not, if not, starting the power failure information erasing timer, wherein the period is TDe-weighting;
S502: acquiring the current time T of the CCO in response to the trigger message of the self-power-off information erasing timerCurrent timeTraversing the power failure event time to obtain all TPower cutSatisfy TPower cut+TDe-weighting≤TCurrent timeThe electricity meter module, erasing the power failure event time of said electricity meter module, i.e. TPower cutAnd when the power failure information erasing timer is finished, closing the power failure information erasing timer, and sending the trigger message by the power failure information erasing timer when the timing period is finished. The power outage event may be re-received at this point. And polling and clearing the reported power failure event information meeting the duplicate removal condition by adopting a periodic trigger timer until the reported power failure event information is completely cleared, thereby realizing the dynamic duplicate removal of the power failure event information of the ammeter module.
The gather timer and the erase timer are implemented by the same timer, and the timer message structure is shown in table 2.
TABLE 2
Fig. 5 is a block diagram of a real-time power outage active reporting deduplication system for high-speed power line carrier communication according to an embodiment of the present invention. As shown in fig. 5, the system includes:
the de-duplication parameter configuration unit is used for configuring de-duplication parameters and determining a de-duplication period of the power failure event;
the message analysis unit is used for analyzing the event message and acquiring event information;
the duplicate removal processing unit is used for judging power failure events or power restoration events according to the power failure event duplicate removal cycle and the event information, collecting single reported power failure events, filtering the repeatedly reported power failure events or clearing the power restoration events; and
and the power failure event reporting unit is used for reporting the collected power failure events to the concentrator at regular time and erasing the reported power failure events.
Optionally, the duplication removal parameter configuring unit includes:
the first static memory area establishing module is used for establishing a first static memory area in the CCO for recording the power failure event time of the ammeter module, initializing the memory and initializing the power failure event time; the first static memory area comprises a plurality of memory areas which correspond to the ammeter modules one to one;
the second static memory area establishing module is used for establishing a second static memory area in the CCO to record a power failure bitmap list of the ammeter module and initialize the power failure bitmap list;
a power failure event deduplication period determining module, configured to determine a power failure deduplication period T according to the earliest time and the latest time of the power failure event reported by the CCO to the concentratorDe-weighting,TDe-weighting=TBroadcasting stage of power failure ammeter module+TIntermediate node aggregating unicast+TConcentrator local pooling。
A concentrator local communication unit (CCO) allocates static memory for each electric meter module through a duplicate parameter configuration unit, records power failure event time, and accurately processes power failure information of each station to remove duplicates; through the time sequence analysis of the reporting process of the power failure events of the ammeter module, the power failure duplication elimination period is determined, the duplication elimination time index is quantized, and the reliability of power failure information is improved.
Optionally, the packet parsing unit includes:
the message analysis module is used for analyzing the event message and acquiring the message event type, the node bitmap of the event and the initial TEI of the event ammeter module; and
the electricity meter module TEI calculation module is used for calculating the electricity meter module TEI with power failure according to the node bitmap with the event and the initial TEI of the electricity meter module with the event:
TEI=IndexByte*8+IndexBit+STEI。
optionally, the deduplication processing unit includes:
a power failure event time query module for querying power failure event time T of the electric meter module according to the TEI of the electric meter modulePower cut;
A power failure event duplicate removal module for recording T according to the power failure event time of the ammeter modulePower cutAnd CCO Current time TCurrent timeJudging whether the power failure events of the ammeter are reported repeatedly, collecting the single reported power failure events, and updating a power failure bitmap list and power failure event time;
a power failure event clearing module for clearing the power failure event time T corresponding to the recovered electric meter module TEIPower cut. By repeatedly reporting and judging in the power failure information collecting process, the false reporting and re-reporting rate of the power failure events is reduced, and meanwhile, by utilizing the characteristic that the power failure events and the power recovery events are matched in pairs, when the power recovery event messages are received, the corresponding power failure event time is eliminated, the power failure event deduplication is stopped, the power failure events are received again, the missed reporting rate of the power failure events is reduced, and meanwhile, the false reporting of the power failure events lasting for a short time is reduced.
Optionally, the power outage event reporting unit includes:
the timer module is used for collecting timing and erasing timing of power failure information;
the power failure event reporting module is used for reporting the collected power failure event to the concentrator when receiving the collected timer message; and
a power outage event time erasing module for erasing all T when receiving the power outage information erasing timer messagePower cutSatisfy TPower cut+TDe-weighting≤TCurrent timeThe power outage event time of the meter module. And polling and clearing the reported power failure event information meeting the duplicate removal condition by adopting a periodic trigger timer until the reported power failure event information is completely cleared, thereby realizing the dynamic duplicate removal of the power failure event information of the ammeter module.
The deduplication method of the present invention is further described below with reference to the deduplication flowchart shown in fig. 6. Starting the deduplication, firstly judging whether the event type is a power restoration event, if so, resetting the power failure event of the static memory area, and ending the process; if the power failure event is not the power restoration event, judging whether the power failure event is a power failure event, and if the power failure event is not the power failure event, ending the process; if the power failure event happens, judging whether the report is repeated, if so, filtering the message, and ending the process; if the power failure event information is not reported repeatedly, collecting the power failure event information, and recording the power failure event time; meanwhile, judging whether the convergence timer is started or not, and if not, starting the convergence timer; if the power failure information is started, judging whether the convergence timer is triggered or not until the convergence timer is triggered, and reporting the power failure information to the concentrator; judging whether the erasing timer is started or not, and if not, starting the erasing timer; if the power failure information is started, judging whether an erasing timer is triggered or not until the erasing timer is triggered, and erasing the reported power failure information after the deduplication time; and judging whether the power failure information is completely erased, if so, closing the erasing timer, and if not, waiting for the triggering of the erasing timer again until the power failure event information is completely erased.
According to the method, the power failure duplicate removal period is determined through the time sequence analysis of the reporting flow of the power failure events of the ammeter module, duplicate removal processing is carried out in the duplicate removal period, the power failure false reporting rate and the power failure missing reporting rate are reduced, the active reporting accuracy of the power failure events is improved, and meanwhile the reported information quantity of the local communication unit of the concentrator is effectively reduced.
The embodiment of the invention also provides a machine-readable storage medium, wherein the machine-readable storage medium is stored with instructions, and the instructions are used for enabling a machine to execute the method for actively reporting and removing the duplicate in the real-time power failure of the high-speed power carrier communication.
Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be implemented by a program, which is stored in a storage medium and includes several instructions to enable a single chip, a chip, or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the embodiments of the present invention have been described in detail with reference to the accompanying drawings, the embodiments of the present invention are not limited to the details of the above embodiments, and various simple modifications can be made to the technical solution of the embodiments of the present invention within the technical idea of the embodiments of the present invention, and the simple modifications are within the scope of the embodiments of the present invention. It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, the embodiments of the present invention will not be described separately for the various possible combinations.
In addition, any combination of the various embodiments of the present invention is also possible, and the same should be considered as disclosed in the embodiments of the present invention as long as it does not depart from the spirit of the embodiments of the present invention.