Power failure reporting method and device based on dual-mode communication and computer equipment
Comparing and integrating power outage event frames through dual-mode communication methods (carrier and Bluetooth) solves the channel congestion problem caused by simultaneous reporting of multiple devices in the low-voltage distribution station system, and improves communication efficiency and reliability.
Patent Information
- Application Number
- CN202411282889.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the low-voltage distribution station power collection system, multiple devices report power outage events at the same time, causing channel congestion. Repeated reporting occupies channel resources and affects communication reliability.
Adopting a dual-mode communication method, it reports power outage events simultaneously through carrier and Bluetooth, compares local and external power outage event frames, discards consistent frames, integrates inconsistent frames, and sends them at different preset delays to reduce channel load and duplicate information. .
It effectively avoids channel congestion, improves communication reliability and efficiency, reduces the data volume of power outage event frames, and ensures accurate dissemination of information.
Smart Images

Figure CN118803989A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power transmission, and in particular to a power outage reporting method, device and computer equipment based on dual-mode communication. Background Art
[0002] In the low-voltage distribution substation power consumption collection system or other power distribution and utilization systems, when a power outage occurs, multiple devices in the system, such as electricity meters, will detect the power outage and report it. However, if multiple devices report the power outage, they may report it repeatedly. At the same time, the repeatedly reported events will also occupy channel resources, resulting in channel congestion. Summary of the invention
[0003] In view of this, the present invention provides a power outage reporting method, apparatus and computer equipment based on dual-mode communication to solve the problem of channel congestion caused by multiple devices reporting power outage events.
[0004] In the first aspect, the present invention provides a power outage reporting method based on dual-mode communication, the method comprising: receiving external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected, and sending them using different preset delay times from different slave nodes; comparing the external power outage event frames with local power outage event frames generated when a power outage event is detected locally, discarding consistent frames between the external power outage event frames and the local power outage event frames, integrating inconsistent frames, and generating an integrated power outage event frame; and sending the integrated power outage event frame using carrier and Bluetooth.
[0005] The power outage reporting method based on dual-mode communication provided by the embodiment of the present invention uses carrier and Bluetooth to report power outage events, avoiding the problem of poor reliability when only carrier reporting is used; at the same time, when reporting, the external power outage event frame consistent with the local power outage event frame is discarded, and the external power outage event frame inconsistent with the local power outage event frame is integrated with the local power outage event frame to generate an integrated power outage event frame for reporting, thereby avoiding duplicate information occupying channel resources and solving the problem of channel congestion caused by multiple devices reporting power outage events. At the same time, using different preset delay times for sending can reduce the load of the carrier channel and the Bluetooth broadcast channel, further avoiding the occurrence of channel congestion.
[0006] In an optional embodiment, the external power outage event frame and / or the local power outage event frame includes multiple bytes, and each binary bit in each byte indicates whether a slave node detects a power outage event. When any slave node detects a power outage event, the corresponding binary bit is 1, and when any slave node does not detect a power outage event, the corresponding binary bit is 0.
[0007] In this embodiment, by setting the data frame format of the local power outage event frame and the external power outage event frame, each binary bit in each byte is used to represent whether a slave node has detected a power outage event, so that a single-frame power outage event frame can transmit information on whether multiple devices have detected a power outage event, thereby reducing the data volume of the power outage event frame and reducing the channel load.
[0008] In an optional embodiment, consistent frames in the external power outage event frame and the local power outage event frame are discarded, and inconsistent frames are integrated to generate an integrated power outage event frame, including: when the binary bits included in each byte in the external power outage event frame and the local power outage event frame are the same, the external power outage event frame and the local power outage event frame are consistent, the external power outage event frame is discarded, and an integrated power outage event frame is generated based on the local power outage event frame; when the binary bits included in each byte in the external power outage event frame and the local power outage event frame are not exactly the same, the external power outage event frame and the local power outage event frame are inconsistent, the different binary bits of the external power outage event frame and the local power outage event frame are adjusted to 1, and the same binary bits remain unchanged, to obtain an integrated power outage event frame of preset bytes.
[0009] In this embodiment, when the local power outage event frame and the external power outage event frame are inconsistent, the different binary bits of the external power outage event frame and the local power outage event frame are adjusted to 1, and the same binary bits remain unchanged to obtain an integrated power outage event frame, thereby reducing the data volume of the integrated power outage event frame.
[0010] In an optional implementation, the integrated power outage event frame is sent using a carrier and Bluetooth, including: determining whether the number of times the integrated power outage event frame is sent reaches a preset number; when the preset number is reached, stopping sending; when the preset number is not reached, continuing sending until the preset number is reached.
[0011] In this embodiment, by setting the preset number of times, the loss of integrated power outage event frames caused by too few transmission times can be reduced, and the integrated power outage event frames can be prevented from flooding the channel, occupying channel resources, and affecting the propagation of integrated power outage event frames from other slave nodes.
[0012] In an optional embodiment, if the local power outage event frame has been sent a first preset number of times before the integrated power outage event frame is generated, and the integrated power outage event frame is generated based on the local power outage event frame, then the number of times the integrated power outage event frame is sent is a second preset number, and the sum of the second preset number and the first preset number is the preset number; if the local power outage event frame has been sent a first preset number of times before the integrated power outage event frame is generated, and the integrated power outage event frame is generated based on the integration of the external power outage event frame and the local power outage event frame, then the number of times the integrated power outage event frame is sent is the preset number.
[0013] In this embodiment, when determining the number of times the integrated power outage event frame is sent, the number of times the local power outage event frame is sent before generating the integrated power outage event frame is first determined, and then the generation method of the integrated power outage event frame is further determined, so that the power outage event frame can be sent a preset number of times.
[0014] In an optional embodiment, the preset delay time is generated in the following manner: a first delay is generated based on the carrier network level and the total carrier network level where the slave node is located; a second delay is generated based on the characteristic information of the slave node; and a preset delay time of the slave node is generated based on the first delay and the second delay.
[0015] In this embodiment, a first delay is generated according to the network level of the slave node and the total level of the carrier network; a second delay of the slave node is generated according to the characteristic information of the slave node, and a preset delay time is determined according to the first delay and the second delay. Thus, the delay time is generated by comprehensively considering the level information and the characteristic information, which can further avoid congestion at the same level and the integrated transmission of information between different levels, thereby improving transmission efficiency.
[0016] In an optional embodiment, external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected are received, including: when being on the same line as other slave nodes, external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected; when not being on the same line as other slave nodes, external power outage event frames sent by other slave nodes using Bluetooth when a power outage event is detected; determining whether being in the same substation as other slave nodes, and discarding the external power outage event frames when not being in the same substation.
[0017] In this embodiment, the power outage event frame sent via Bluetooth can be transmitted not only on the same line, but also between different lines, thereby realizing the cross-relay routing transmission of the power outage event.
[0018] In the second aspect, the present invention provides a power outage reporting device based on dual-mode communication, the device comprising: a receiving module, used to receive external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected, and different slave nodes use different preset delay times to send; an integration module, used to compare the external power outage event frames with the local power outage event frames generated when the power outage event is detected locally, discard the consistent frames between the external power outage event frames and the local power outage event frames, integrate the inconsistent frames, and generate an integrated power outage event frame; a sending module, used to send the integrated power outage event frame using carrier and Bluetooth.
[0019] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the power outage reporting method based on dual-mode communication of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0020] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the power outage reporting method based on dual-mode communication of the above-mentioned first aspect or any corresponding embodiment thereof.
[0021] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the power outage reporting method based on dual-mode communication of the above-mentioned first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 is a flow chart of a power outage reporting method based on dual-mode communication according to an embodiment of the present invention; Figure 2 is a schematic diagram of communication between an energy controller and an electric energy meter through HPLC according to an embodiment of the present invention; Figure 3 is a schematic diagram of the structure of an energy controller and an electric energy meter according to an embodiment of the present invention; Figure 4 is a schematic diagram of a reporting method when a line fault occurs according to an embodiment of the present invention; Figure 5 is a flowchart of another power outage reporting method based on dual-mode communication according to an embodiment of the present invention; Figure 6 Schematic diagram of HPLC and Bluetooth reporting according to an embodiment of the present invention; Figure 7 is a schematic diagram of receiving a carrier power outage signal and a Bluetooth power outage broadcast frame from a node according to an embodiment of the present invention; Figure 8 is a structural block diagram of a power outage reporting device based on dual-mode communication according to an embodiment of the present invention; Fig. 9 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0025] According to an embodiment of the present invention, an embodiment of a power outage reporting method based on dual-mode communication is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0026] In this embodiment, a power outage reporting method based on dual-mode communication is provided, which can be used for electronic devices such as computers, mobile phones, tablet computers, etc. Figure 1 is a flow chart of a power outage reporting method based on dual-mode communication according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps: Step S101, receiving an external power outage event frame sent by other slave nodes using carrier and Bluetooth when a power outage event is detected, and sending the frame using a different preset delay time from other slave nodes.
[0027] Specifically, in the power distribution system, such as the low-voltage distribution substation power collection system, it usually includes the main station, energy controller (it can also be a collector terminal, concentrator, etc. with a CCO (central coordinator) communication unit, as long as it can communicate with the power meter) and power meters and other equipment. Among them, CCO can act as the main node role in the communication network, responsible for completing functions such as network control and network maintenance management, and its corresponding device entity is the local communication unit of the collection terminal.
[0028] The energy controller communicates with the energy meter through a high-speed power line carrier (HPLC). HPLC communication is to couple the carrier signal between the live wire and the neutral wire of the power line for transmission. However, this coupling method has problems. When the power line itself is accidentally damaged and disconnected, the power line carrier will not be able to communicate and the power outage event cannot be quickly located. And when the line air switch is disconnected, although the signal can be transmitted across the circuit breaker due to the spatial coupling of the internal magnetic induction mechanism of the air switch and the carrier signal, the signal will be severely attenuated and the communication will be unstable. In addition, when the line impedance is very small, the success rate of power line communication is very low. Therefore, when a fault such as line disconnection occurs, the energy meter may not be able to report the power outage event to the energy controller through the power carrier.
[0029] like Figure 2 As shown, the system includes three live wires L1, L2 and L3 and one neutral wire N, wherein the electric energy meters A0, A1 and An with carrier function are arranged between the live wires L1 and N, and communicate with the energy controller through the power carrier between the live wires L1 and N; the electric energy meters B0, B1 and Bn with carrier function are arranged between the live wires L2 and N, and communicate with the energy controller through the power carrier between the live wires L2 and N; the electric energy meters C0, C1 and Cn with carrier function are arranged between the live wires L3 and N, and communicate with the energy controller through the power carrier between the live wires L3 and N. However, when a line fault occurs, such as the L1 line is disconnected due to a fault, the electric energy meters A0, A1 and An cannot communicate with the energy controller, and cannot report the power outage event to the energy controller.
[0030] Therefore, this embodiment uses an electric energy meter with carrier and Bluetooth functions. When the electric energy meter detects a power outage event, it can not only report the power outage event through the carrier, but also broadcast the power outage event through Bluetooth broadcast. Specifically, Figure 3 As shown, in this type of electric energy meter, its communication module is a communication module integrating HPLC and Bluetooth functions, and a supercapacitor is provided on the communication module as a backup power supply. The energy controller also includes a Bluetooth function module and a supercapacitor, and the Bluetooth function module is arranged on the main board of the energy controller. The energy controller also has an HPLC carrier module, and the HPLC carrier module communicates with the main control board of the energy controller through a USB interface.
[0031] Among them, after multiple electric energy meters and energy controllers in the substation are networked, Figure 4 As shown in the figure, if the power line between A0 and A1 in the L1 line is disconnected, A1 and its back-end electric energy meter lose power, and the carrier management chip of the communication module on the electric energy meter (such as Figure 3As shown in the figure, the carrier management chip, Bluetooth and super capacitor are connected by UART) to detect the power outage event (due to the existence of super capacitor, the communication module can continue to work for a period of time after power failure). Figure 4 As shown, when a certain electric energy meter detects a power outage event, the HPLC and Bluetooth functions in the communication module transmit the generated power outage event frame to the surrounding area. The paths of the carrier and Bluetooth transmission of the power outage event frame may be different. For example, the carrier transmission will be transmitted along the line where the electric energy meter is located, while the Bluetooth broadcast is not limited by the line transmission. It should be noted that Figure 4 Only part of the Bluetooth transmission path is given (the dotted line in the figure).
[0032] Specifically, when a line fails, multiple electric energy meters may lose power, that is, multiple electric energy meters will detect a power outage event. When each electric energy meter detects a power outage event, it will generate a power outage event frame and transmit it to the surrounding area via carrier and Bluetooth. In this embodiment, the electric energy meter that detects a power outage event and generates a power outage event frame is used as a slave node. When a slave node detects a power outage event, it will generate a power outage event frame and transmit it to the surrounding area via carrier and Bluetooth. Therefore, for a certain slave node, it may also receive a power outage event frame sent by other slave nodes via carrier and Bluetooth when they detect a power outage event.
[0033] It should be noted that, for a slave node that detects a power outage event, the power outage event frame it outputs is a local power outage event frame, and for a slave node that receives outputs from other slave nodes, the power outage event frame it receives is an external power outage event frame, that is, an externally input power outage event frame. In addition, it should be noted that the external power outage event frame can be sent by other slave nodes after detecting a local power outage event, or it can be a power outage event frame received by other slave nodes that is directly forwarded, that is, at this time, the other slave nodes have not detected a local power outage event, but have only received a power outage event frame and can directly forward it.
[0034] In addition, in order to avoid the problem of multiple slave nodes sending power outage event frames at the same time when detecting a power outage event, causing channel congestion, different slave nodes can use different preset delay times to send power outage event frames. For example, if three slave nodes detect a power outage event at the same time, the first slave node can send a power outage event frame immediately, the second slave node can send it with a delay of 5ms, and the third slave node can send it with a delay of 10ms.
[0035] Step S102, compare the external power outage event frame with the local power outage event frame generated when the power outage event is detected locally, discard the consistent frames in the external power outage event frame and the local power outage event frame, integrate the inconsistent frames, and generate an integrated power outage event frame. Specifically, in order to reduce the load of the channel and avoid channel congestion, after receiving the external power outage event frame, the slave node compares it with the local power outage event frame to determine whether the two are consistent. If the two are consistent, the external power outage event frame can be discarded to reduce the occupation of channel resources by duplicate information, and then the inconsistent external power outage event frame and the local power outage event frame are integrated to generate an integrated power outage event frame.
[0036] Step S103, the integrated power outage event frame is sent using a carrier and Bluetooth. Specifically, after the slave node generates the integrated power outage event frame, it can use a carrier and Bluetooth to transmit the integrated power outage event frame to the surrounding, for example, to other slave nodes, which are then transmitted again by other slave nodes. Thus, the integrated power outage event frame is reported to the energy controller through layer-by-layer transmission. After receiving the power outage event frame, the energy controller transmits the corresponding power outage event to the master station through the public network communication network, generates an emergency repair order, arranges emergency repair tasks, and thus completes the final report.
[0037] The power outage reporting method based on dual-mode communication provided by the embodiment of the present invention uses carrier and Bluetooth to report power outage events, avoiding the problem of poor reliability when only carrier reporting is used; at the same time, when reporting, the external power outage event frame consistent with the local power outage event frame is discarded, and the external power outage event frame inconsistent with the local power outage event frame is integrated with the local power outage event frame to generate an integrated power outage event frame for reporting, thereby avoiding duplicate information occupying channel resources and solving the problem of channel congestion caused by multiple devices reporting power outage events. At the same time, using different preset delay times for sending can reduce the load of the carrier channel and the Bluetooth broadcast channel, further avoiding the occurrence of channel congestion.
[0038] In this embodiment, a power outage reporting method based on dual-mode communication is provided, and the process includes the following steps: Step S201, receiving an external power outage event frame sent by other slave nodes using carrier and Bluetooth when a power outage event is detected, and sending the frame using a different preset delay time from other slave nodes. Step S202 , comparing the external power outage event frame with the local power outage event frame generated when a power outage event is detected locally, discarding consistent frames between the external power outage event frame and the local power outage event frame, integrating inconsistent frames, and generating an integrated power outage event frame.
[0039] Specifically, the external power outage event frame and / or the local power outage event frame includes multiple bytes, and each binary bit in each byte indicates whether a slave node detects a power outage event. When any slave node detects a power outage event, the corresponding binary bit is 1, and when any slave node does not detect a power outage event, the corresponding binary bit is 0.
[0040] When a Bluetooth broadcast power outage event frame is used, the broadcast frame format of the Bluetooth broadcast is as shown in Table 1 below: Table 1 Broadcast frame format
[0041] For the power outage event frame in Table 1, its format is as shown in Table 2 below: Table 2 Power outage event frame format
[0042] Specifically, for the Bluetooth channel, a broadcast channel is up to 37 bytes long, 6 bytes of which are used as the MAC address of the Bluetooth device, and the remaining 31 bytes can be used as effective load bytes. These 31 bytes are divided into several broadcast data bodies (AD Structure), and each structure is divided into three parts, namely, length (Length), type (AD Type), and content (AD Data), where the length occupies one byte, the type occupies one byte, and the content occupies several bytes. Length = the number of bytes of the type + the number of bytes occupied by the content = 1 + N. As shown in Table 1 and Table 2 above, the data broadcast when the Bluetooth broadcast power outage event is used in this embodiment includes three broadcast data bodies AD Structure1, AD Structure2 and AD Structure3. Among them, the power outage event frame related to the power outage event is set in the content of AD Structure3, that is, after the power outage event is detected, the power outage event frame can be adjusted. As shown in Table 2, this embodiment uses a Bit-map composed of 15 bytes to represent the power outage event. According to the binary principle, each byte is composed of 8 binary bits. This embodiment uses one binary bit to represent whether a slave node detects a power outage event. Therefore, 15 bytes can represent whether 120 (15×8=120) slave nodes detect a power outage event. That is, a single-frame broadcast frame can transmit the power outage events of 120 slave nodes. When it is necessary to transmit power outage events of more than 120 slave nodes, they can be sent in groups in sequence.
[0043] In order to distinguish and confirm whether each slave node has detected a power outage, the correspondence between each slave node and 120 binary bits can be predetermined. For example, a terminal endpoint identifier (TEI) can be used to represent each slave node. TEI is a unique identifier used to identify each terminal device (such as an electric energy meter) in the power carrier communication system. Through TEI, the system can accurately identify and distinguish different terminal devices to ensure the accuracy and reliability of communication. TEI is usually a combination of numbers or letters. Each terminal device is assigned a unique TEI to distinguish it from other devices. The effective setting of TEI can help system management and scheduling, and improve communication efficiency and performance.
[0044] In this embodiment, TEI0-TEI119 represent 120 slave nodes, and Bit0-Bit119 represent 120 binary bits. The corresponding relationship between the two can be shown in the following Table 3: Table 3
[0045] In addition, when a binary bit is used to indicate whether a slave node has detected a power outage event, the binary bit can be 0 or 1. That is, when any slave node detects a power outage event, the corresponding binary bit is 1, and when any slave node does not detect a power outage event, the corresponding binary bit is 0. For example, if the slave node represented by TEI10 detects a power outage event, the corresponding binary bit Bit10 is 1.
[0046] According to the above content, when Bluetooth is used to broadcast power outage events, due to the limitations of the Bluetooth broadcast format, only a certain number of slave node power outage events can be transmitted each time. When the number is large, it needs to be sent in batches. When the power outage event frame is transmitted using a carrier wave, it is not subject to the limit on the number. That is, the power outage event frame transmitted using a carrier wave is not limited to 15 bytes and can include more bytes, thereby transmitting more power outage events detected by the slave nodes. In addition, when using a carrier wave to transmit a power outage event frame, a binary bit of 0 or 1 can also be used to indicate whether the corresponding slave node has detected a power outage event.
[0047] Specifically, the above step S202 includes: Step S2021, when the binary bits included in each byte in the external power outage event frame and the local power outage event frame are the same, the external power outage event frame and the local power outage event frame are consistent, the external power outage event frame is discarded, and an integrated power outage event frame is generated based on the local power outage event frame.
[0048] Specifically, in this embodiment, binary bits are used to indicate whether a power outage event is detected from a node. Therefore, when comparing power outage event frames, it can be determined whether all binary bits of the two power outage event frames are exactly the same. If they are exactly the same, it means that the local power outage event frame and the external power outage event frame are consistent, and the external power outage event frame is discarded. The local power outage event frame can be directly used as the integrated power outage event frame.
[0049] Step S2022, when the binary bits included in each byte in the external power outage event frame and the local power outage event frame are not exactly the same, the external power outage event frame and the local power outage event frame are inconsistent, and the different binary bits of the external power outage event frame and the local power outage event frame are adjusted to 1, and the same binary bits remain unchanged, to obtain an integrated power outage event frame of preset bytes.
[0050] Specifically, when all the binary bits in the local power outage event frame and the external power outage event frame are not exactly the same, first determine the different binary bits between the two. For example, if the eighth binary bits of the two are different, the eighth binary bit of the local power outage event frame is 0, and the eighth binary bit of the external power outage event frame is 1, then adjust the eighth binary bit to 1, and the remaining identical binary bits remain unchanged. In this way, the integrated power outage event frame is obtained by combining the adjusted binary bits and the unchanged binary bits in the original order.
[0051] Step S203: sending the integrated power outage event frame via carrier and Bluetooth.
[0052] Specifically, the above step S203 includes: Step S2031, determining whether the number of times the integrated power outage event frame is sent reaches a preset number.
[0053] Step S2032, when the preset number of times is reached, stop sending.
[0054] Step S2033, when the preset number of times has not been reached, continue sending until the preset number of times has been reached.
[0055] Specifically, when sending the integrated power outage event frame, this embodiment limits the number of times the slave node sends the integrated power outage event frame to a preset number of times. For example, the preset number of times can be set to 10 times, which can be set specifically according to actual conditions. By setting the preset number of times, the loss of the integrated power outage event frame caused by too few transmissions can be reduced, and the integrated power outage event frame can be prevented from flooding the channel, occupying channel resources, and affecting the propagation of the integrated power outage event frame of other slave nodes.
[0056] In addition, since the integrated power outage event frame generated when the external power outage event frame is consistent with or inconsistent with the local power outage event frame is different, it is necessary to further determine whether the sending reaches the preset number of times based on the different generation methods.
[0057] Among them, if the local power outage event frame has been sent a first preset number of times before the integrated power outage event frame is generated, and the integrated power outage event frame is generated based on the local power outage event frame, then the integrated power outage event frame is sent a second preset number of times, and the sum of the second preset number of times and the first preset number of times is the preset number; specifically, if the preset number of times is 10 times, the external power outage event frame is consistent with the local power outage event frame, that is, the integrated power outage event frame is generated directly based on the local power outage event frame, and the local power outage event frame has been sent 5 times before the integrated power outage event frame is sent, then the integrated power outage event frame only needs to be sent 5 times.
[0058] If the local power outage event frame has been sent a first preset number of times before the integrated power outage event frame is generated, and the integrated power outage event frame is generated based on the integration of the external power outage event frame and the local power outage event frame, then the integrated power outage event frame is sent a preset number of times. Specifically, if the preset number is 10 times, the external power outage event frame is inconsistent with the local power outage event frame, that is, the integrated power outage event frame is generated by integrating the local power outage event frame and the external power outage event frame, and the local power outage event frame has been sent 5 times before the integrated power outage event frame is broadcast, then the preset number of times from the node needs to be cleared, that is, the integrated power outage event frame needs to be sent 10 times again.
[0059] In this embodiment, a power outage reporting method based on dual-mode communication is provided, and the method comprises the following steps: Step S301, receiving an external power outage event frame sent by other slave nodes using carrier and Bluetooth when a power outage event is detected, and sending the frame using a different preset delay time from other slave nodes.
[0060] Specifically, the preset delay time is generated in the following manner: Step S3041, generating a first delay according to the carrier network level where the slave node is located and the total carrier network level.
[0061] Step S3042: Generate a second delay of the slave node according to the characteristic information of the slave node.
[0062] Step S3043: Generate a preset delay time of the slave node according to the first delay and the second delay.
[0063] In this embodiment, in order to reduce the load of the carrier channel and the Bluetooth broadcast channel and avoid channel congestion, a delay time is generated for the slave node, and the report is made according to the delay time. For the slave nodes in the carrier network, there is a network hierarchy due to the routing mechanism. The information of the highest-level device needs to be transmitted upward layer by layer before it can be passed to the CCO. Therefore, the high-level devices are sent first, and the low-level devices are sent later. The information of the high-level device can be received once before the low-level device is sent, and then the high-level device information is integrated into the low-level device information to reduce the number of information transmission times, so the first delay can be generated based on the hierarchical information. At the same time, the characteristic information of the slave node, such as the table number, is the information that can uniquely characterize the slave node, so the second delay can be generated based on the characteristic information.
[0064] Specifically, the first delay = (total level of the carrier network − level of the slave node) × a.
[0065] Second delay = last two digits of table number × b.
[0066] Preset delay time = first delay + second delay.
[0067] Where a represents the level coefficient, b represents the table number coefficient, and a>99 × b.
[0068] For example, in an HPLC network with a total network level of 5 layers, there are 4 devices A1 (table number: 0101), A2 (table number: 0102), B1 (table number: 0201), and B2 (table number: 0202).
[0069] A1 and A2 are located at layer 5, and B1 and B2 are located at layer 4. Assume that the layer coefficient in this system is 100ms and the table number coefficient is 1ms.
[0070] When power outages occur at levels 4 and 5 at the same time, all four devices will detect the power outage at the same time. Then the four devices will start to calculate the preset delay (peak shifting) time using the following formula: A1: time = (5 - 5) × 100 + (1 × 10) = 1ms.
[0071] A2: time = (5 - 5) × 100 + (2 × 10) = 2ms.
[0072] B1: time = (5 - 4) × 100 + (1 × 10) = 101ms.
[0073] B2: time = (5 - 4) × 100 + (2 × 10) = 102ms.
[0074] In addition, it should be noted that since different slave nodes will have different delay times, after a slave node detects a local power outage event and generates a local power outage event frame, it may not be able to simultaneously receive external power outage event frames sent by other slave nodes. Therefore, after generating the local power outage event frame, it can first be broadcast based on a preset number of times. After receiving the external power outage event frame, it can be determined based on the integrated power outage event frame whether to clear the preset number of times and send the integrated power outage event frame.
[0075] Specifically, the above step S301 includes: Step S3011, when being in the same line with other slave nodes, receiving external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected.
[0076] Step S3012, when the slave nodes are not in the same line as other slave nodes, receiving external power outage event frames sent by other slave nodes using Bluetooth when a power outage event is detected.
[0077] Step S3013, determine whether the slave node is in the same area as other slave nodes. If they are not in the same area, discard the external power outage event frame.
[0078] Specifically, since the communication module in the slave node integrates HPLC and Bluetooth functions, when a power outage event is detected, a power outage event frame can be sent through the carrier and Bluetooth at the same time. However, the carrier signal can only be transmitted on the line where the slave node is located, so the slave node can only receive the power outage event frames sent by other slave nodes on the same line through the carrier (when the line is not faulty). The power outage event frames sent through Bluetooth are not restricted by the line, that is, a slave node can receive external power outage event frames sent by other slave nodes on the same line through Bluetooth, and can also receive external power outage event frames sent by other slave nodes that do not belong to the same line through Bluetooth. For example, a slave node located on the L1 line can receive external power outage event frames from slave nodes located on the L2 line through Bluetooth, thereby realizing cross-relay routing transmission. However, Bluetooth transmission is limited by distance, that is, a slave node can only receive external power outage event frames sent by other slave nodes within a preset distance range.
[0079] In addition, after receiving the external power outage event frame sent by other slave nodes, the slave node first determines whether it belongs to the same substation as other slave nodes, that is, the slave node detects whether the NID (Network Identifier) of the other slave nodes is consistent, where in the power carrier communication system, NID is used to identify a specific physical network to help distinguish different networks or subnetworks. Each network or subnetwork will be assigned a unique NID to ensure the accuracy and security of communication. Through the setting of NID, the power carrier communication system can be effectively managed and scheduled to improve the reliability and stability of communication. In this embodiment, there will be one physical network in one substation, so the NID can also be used as the substation ID. Specifically, when it is determined that it does not belong to one substation, the received external power outage event frame is discarded, and there is no need to determine whether the local power outage event frame and the external power outage event frame are consistent; when it is determined that it belongs to one substation, it is determined whether the local power outage event frame and the external power outage event frame are consistent.
[0080] Step S302, compare the external power outage event frame with the local power outage event frame generated when the power outage event is detected locally, discard the consistent frames between the external power outage event frame and the local power outage event frame, integrate the inconsistent frames, and generate an integrated power outage event frame; see Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0081] Step S303: Send the integrated power outage event frame using carrier wave and Bluetooth. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0082] As a specific application example of the embodiment of the present invention, Figure 5 As shown, the power outage reporting method based on dual-mode communication can be implemented based on the following process: 1) When a line fault occurs, such as L1 line disconnection, A1 and its back-end energy meter (i.e. A1 slave node and other slave nodes on L1) lose power, and the carrier management chip of the communication module on the energy meter detects the power outage. (Due to the presence of supercapacitors, the communication module can continue to work for a period of time).
[0083] 2) After the communication module of the energy meter detects a power outage, it will stagger the reporting of the power outage event through HPLC and Bluetooth broadcast. For example, A1, A2, and An detect a power outage event at the same time, and then broadcast the generated power outage event frame at a staggered time based on their own hierarchical information and feature information (such as meter number).
[0084] 3) While A1 (A2, An) is sending power outage event frames to the outside, it will also scan the power outage event frames broadcast by HPLC and surrounding Bluetooth. When receiving power outage event frames sent by other slave nodes, it will determine whether the received power outage event frame is consistent with the power outage event frame detected locally. If they are consistent, the received power outage event frame will be discarded and will not be sent repeatedly. If not, the received power outage event frame and the local power outage event frame will be integrated to form a new power outage event frame and sent to the outside. At the same time, during the sending process, it will determine whether the number of times the power outage event frame is sent exceeds the threshold, that is, the preset number of times. If it exceeds, the broadcast will be stopped.
[0085] 4) Since nodes B1, B2, and Bn are not on the L1 line, they cannot receive power outage events on HPLC, but they can receive power outage events broadcast by Bluetooth from nodes on the L1 line. After a node on L2 receives a power outage report event from other nodes on the L1 line, it will determine whether the power outage event has been relayed and broadcasted. If it has not been broadcasted, the power outage event will be broadcasted on the L2 line through HPLC and Bluetooth. In this way, the power outage event will be transferred from the L1 line to the L2 line. HPLC cross-relay routing transmission is realized.
[0086] 5) In the same way, power outage events will also be transmitted on the L3 line.
[0087] 6) There is also a Bluetooth module on the energy controller, so the energy controller can obtain power outage event information in the substation through HPLC and Bluetooth broadcast.
[0088] 7) The final power outage event is transmitted by the energy controller to the main station through the public network communication network, which generates a repair order, arranges the repair task, and ends the reporting process.
[0089] Among them, the methods of reporting power outage events through HPLC and Bluetooth are as follows: Figure 6 As shown in the figure, STA (station) represents a slave node, which can be an electric energy meter in this embodiment. PCO (proxy coordinator) represents a station that relays data between the central coordinator and the station or between stations, referred to as a proxy. In this embodiment, it can be a station that performs HPLC relay forwarding or an electric energy meter. When HPLC is used to report a power outage event, its reporting path is as follows: Figure 6 As shown by the solid line in the middle, there is a fault in the line between the devices with TEI=2 and TEI=3, so the power outage event cannot be reported to the CCO only through HPLC. Figure 6 The numbers in the figure represent the binary bits of the power outage event frame, 1 represents that the corresponding device detects a power outage event, 0 represents that no power outage event is detected, and the dotted line represents the Bluetooth reporting path. Figure 6The devices with TEI=1, TEI=3 and TEI=5 detect a power outage event. First, TEI=5 generates a local power outage event frame 100000, and the first bit 1 indicates that TEI=5 detects a power outage event. When the power outage event frame is sent to TEI=4, since TEI=4 does not detect a power outage event, the power outage event frame remains unchanged at 100000. When the power outage event frame is sent to TEI=3, since TEI=3 detects a power outage event, the third bit of the power outage event frame becomes 1, that is, the power outage event frame becomes 101000. When the power outage event frame is sent to TEI=2, since TEI=2 does not detect a power outage event, the power outage event frame remains unchanged at 101000. When the power outage event frame is sent to TEI=1, since TEI=1 detects a power outage event, the fifth bit of the power outage event frame becomes 1, that is, the power outage event frame becomes 101010. Finally, the power outage event frame 101010 is sent to TEI=0.
[0090] In addition, for a slave node in the line, such as slave node A1, the power outage event it receives is as follows: Figure 7 As shown. The figure stipulates that node A1 can receive information sent by all other nodes. When a power outage occurs in A2, data is sent to the outside through carrier and Bluetooth. Since B1, B2, C1, C2 and A2 are not on the same line, the carrier signal can only be transmitted from A2 to A1. Bluetooth broadcasting is not restricted by power lines, so after B2 receives the power outage event frame F2, it broadcasts F2. Similarly, B1, C1, and C2 also send F2 after receiving F2, so F2 is flooded out. In the end, A1 will receive F2 information sent by nodes such as A2, B1, B2, C1, and C2.
[0091] In this embodiment, a power outage reporting device based on dual-mode communication is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0092] This embodiment provides a power outage reporting device based on dual-mode communication, such as Figure 8 As shown, including: A receiving module 81 is used to receive external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected, and different from other slave nodes using different preset delay times for sending; An integration module 82 is used to compare the external power outage event frame with the local power outage event frame generated when the power outage event is detected locally, discard the consistent frames between the external power outage event frame and the local power outage event frame, integrate the inconsistent frames, and generate an integrated power outage event frame; The sending module 83 is used to send the integrated power outage event frame by using carrier and Bluetooth.
[0093] In an optional embodiment, the external power outage event frame and / or the local power outage event frame includes multiple bytes, and each binary bit in each byte indicates whether a slave node detects a power outage event. When any slave node detects a power outage event, the corresponding binary bit is 1, and when any slave node does not detect a power outage event, the corresponding binary bit is 0.
[0094] In an optional embodiment, the integration module is specifically used to: when the binary bits included in each byte of the external power outage event frame and the local power outage event frame are the same, the external power outage event frame and the local power outage event frame are consistent, the external power outage event frame is discarded, and an integrated power outage event frame is generated based on the local power outage event frame; when the binary bits included in each byte of the external power outage event frame and the local power outage event frame are not exactly the same, the external power outage event frame and the local power outage event frame are inconsistent, the different binary bits of the external power outage event frame and the local power outage event frame are adjusted to 1, and the same binary bits remain unchanged, to obtain an integrated power outage event frame of preset bytes.
[0095] In an optional implementation, the sending module is specifically used to: determine whether the number of times the integrated power outage event frame is sent reaches a preset number; when the preset number is reached, stop sending; when the preset number is not reached, continue sending until the preset number is reached.
[0096] In an optional embodiment, if the local power outage event frame has been sent a first preset number of times before the integrated power outage event frame is generated, and the integrated power outage event frame is generated based on the local power outage event frame, then the integrated power outage event frame is sent a second preset number of times, and the sum of the second preset number of times and the first preset number of times is the preset number; if the local power outage event frame has been sent a first preset number of times before the integrated power outage event frame is generated, and the integrated power outage event frame is generated based on the integration of the external power outage event frame and the local power outage event frame, then the integrated power outage event frame is sent a preset number of times.
[0097] In an optional embodiment, the preset delay time is generated in the following manner: a first delay is generated based on the carrier network level and the total carrier network level where the slave node is located; a second delay is generated based on the characteristic information of the slave node; and a preset delay time of the slave node is generated based on the first delay and the second delay.
[0098] In an optional embodiment, the receiving module is specifically used to receive external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected, including: when being on the same line with other slave nodes, receiving external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected; when not being on the same line with other slave nodes, receiving external power outage event frames sent by other slave nodes using Bluetooth when a power outage event is detected; determining whether being in the same substation as other slave nodes, and discarding the external power outage event frame when not being in the same substation.
[0099] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.
[0100] The embodiment of the present invention also provides a computer device having the above Figure 8 A power outage reporting device based on dual-mode communication is shown.
[0101] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig. 9 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig. 9 A processor 10 is taken as an example.
[0102] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0103] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0104] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0105] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0106] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0107] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0108] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0109] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A power outage reporting method based on dual-mode communication, It is characterized in that The method comprises: Receive external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected, and send them with different preset delay times from other slave nodes; Compare the external power outage event frame with a local power outage event frame generated when a power outage event is detected locally, discard consistent frames between the external power outage event frame and the local power outage event frame, integrate inconsistent frames, and generate an integrated power outage event frame; The integrated power outage event frame is sent using a carrier wave and Bluetooth.
2. The method according to claim 1, It is characterized in that The external power outage event frame and / or the local power outage event frame includes multiple bytes, and each binary bit in each byte indicates whether a slave node detects a power outage event. When any slave node detects a power outage event, the corresponding binary bit is 1, and when any slave node does not detect a power outage event, the corresponding binary bit is 0.
3. The method according to claim 2, It is characterized in that The method includes discarding consistent frames in the external power outage event frame and the local power outage event frame, integrating inconsistent frames, and generating an integrated power outage event frame, including: When the binary bits included in each byte of the external power outage event frame and the local power outage event frame are the same, the external power outage event frame and the local power outage event frame are consistent, the external power outage event frame is discarded, and an integrated power outage event frame is generated based on the local power outage event frame; When the binary bits included in each byte of the external power outage event frame and the local power outage event frame are not exactly the same, the external power outage event frame and the local power outage event frame are inconsistent, and the different binary bits of the external power outage event frame and the local power outage event frame are adjusted to 1, and the same binary bits remain unchanged, to obtain an integrated power outage event frame of preset bytes.
4. The method according to claim 3, It is characterized in that The integrated power outage event frame is sent using a carrier wave and Bluetooth, including: Determining whether the number of times the integrated power outage event frame is sent reaches a preset number; When the preset number of times is reached, stop sending; When the preset number of times has not been reached, continue sending until the preset number of times has been reached.
5. The method according to claim 4, Features: If the local power outage event frame has been sent a first preset number of times before the integrated power outage event frame is generated, and the integrated power outage event frame is generated based on the local power outage event frame, then the number of times the integrated power outage event frame is sent is a second preset number of times, and the sum of the second preset number of times and the first preset number of times is the preset number; If the local power outage event frame has been sent a first preset number of times before the integrated power outage event frame is generated, and the integrated power outage event frame is generated based on the integration of the external power outage event frame and the local power outage event frame, the integrated power outage event frame is sent a preset number of times.
6. The method according to claim 1, It is characterized in that The preset delay time is generated in the following manner: generating a first delay according to the carrier network level at which the slave node is located and the total carrier network level; generating a second delay of the slave node according to the characteristic information of the slave node; A preset delay time of the slave node is generated according to the first delay and the second delay.
7. The method according to claim 1, It is characterized in that Receive external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected, including: When in the same line with other slave nodes, it receives external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected; When not in the same line with other slave nodes, receiving external power outage event frames sent by other slave nodes using Bluetooth when a power outage event is detected; Determine whether the slave nodes are in the same area as other slave nodes. If they are not in the same area, discard the external power outage event frame.
8. A power outage reporting device based on dual-mode communication, It is characterized in that The device comprises: A receiving module, used to receive external power outage event frames sent by other slave nodes using carrier and Bluetooth when a power outage event is detected, and sent using different preset delay times from other slave nodes; An integration module, used for comparing the external power outage event frame with a local power outage event frame generated when a power outage event is detected locally, discarding consistent frames between the external power outage event frame and the local power outage event frame, and integrating inconsistent frames to generate an integrated power outage event frame; The sending module is used to send the integrated power outage event frame by using carrier and Bluetooth.
9. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the power outage reporting method based on dual-mode communication described in any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the power outage reporting method based on dual-mode communication according to any one of claims 1 to 7.
Citation Information
Patent Citations
Power failure real-time reporting method and system
CN111031491A
Power failure event reporting test system and method
CN111064279A
Power failure reporting method, system and device
CN115967176A
Power failure reporting method and system for RS485 electric energy meter
CN116773904A
An access device and a management system and method thereof
WO2007041967A1
