Restart method, device and electronic device for communication module of power distribution terminal

By analyzing the communication messages and performing restart processing according to the status, the problem of being unable to resume communication after the power distribution terminal is offline is solved, and the reliability and efficiency of the power distribution terminal are improved.

CN118573550BActive Publication Date: 2024-10-29MAOMING POWER SUPPLY BUREAU GUANGDONG POWER GRID CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411013483.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-29
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

Distribution terminals are frequently disconnected due to network congestion, wireless signal shielding, electromagnetic interference and other problems, resulting in the inability to communicate with the main distribution station. Existing technology makes it difficult to quickly restore communication, reducing power distribution efficiency.

Method used

The working status of the power distribution terminal communication module is determined by analyzing communication messages. If it is in an abnormal status, the fault information is stored and the module is restarted. If it is in a normal status, it is restarted regularly to prevent failures and realize automatic communication recovery.

Benefits of technology

It improves the communication reliability between the power distribution terminal and the power distribution main station, reduces the probability of disconnection, and improves the power distribution efficiency of the power grid.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573550B_ABST
    Figure CN118573550B_ABST
Patent Text Reader

Abstract

The present application discloses a restart method, device and electronic device for a communication module of a distribution terminal, and relates to the technical field of electric power distribution. The method comprises: determining the working state of a communication module in the distribution terminal according to a communication message of the distribution terminal, wherein the communication module is a wireless communication module or a wired communication module; when the working state of the communication module is in a first state, restarting the communication module at intervals of a preset restart duration; when the working state of the communication module is in a second state, storing the communication message in a preset database, and restarting the communication module through a preset switch. The present application solves the technical problem of low distribution efficiency caused by the inability of the distribution terminal to communicate with the distribution master station after the distribution terminal is disconnected in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electric power distribution, and in particular to a method, device and electronic device for restarting a communication module of a distribution terminal. Background Art

[0002] In the field of electric power distribution technology, distribution terminals may frequently go offline due to problems such as network congestion (avalanche), wireless signal shielding, and electromagnetic interference. After going offline, the distribution terminals cannot connect to and communicate with the distribution master station. In the prior art, when operation and maintenance personnel manually repair the distribution terminal after it goes offline, they cannot obtain the fault message information when the distribution terminal goes offline, which will cause the manual troubleshooting method to be slow and time-consuming, thereby reducing the efficiency of restoring communication between the distribution terminal and the distribution master station, and further causing the technical problem of low distribution efficiency in the prior art.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The present application provides a method, device and electronic device for restarting a communication module of a distribution terminal, so as to at least solve the technical problem of low distribution efficiency caused by the inability of the distribution terminal to communicate with the distribution master station after being disconnected in the prior art.

[0005] According to one aspect of the present application, a method for restarting a communication module of a distribution terminal is provided, comprising: determining a working state of the communication module in the distribution terminal based on a communication message of the distribution terminal, wherein the distribution terminal is at least used to distribute electric energy of the power system to power-consuming equipment, and the communication module is a wireless communication module or a wired communication module; when the working state of the communication module is in a first state, restarting the communication module at intervals of a preset restart duration, wherein the first state is used to characterize that a message length of the communication message is less than or equal to a preset length and a heartbeat response duration of the communication message is less than or equal to a preset response duration; when the working state of the communication module is in a second state, storing the communication message in a preset database, and restarting the communication module through a preset switch, wherein the first state is used to characterize that a message length of the communication message is greater than a preset length, and / or that a heartbeat response duration of the communication message is greater than the preset response duration.

[0006] Optionally, in the process of determining the working status of the communication module in the distribution terminal based on the communication message of the distribution terminal, the restart method of the communication module of the distribution terminal also includes: detecting the module type of the communication module; when the communication module is a wireless communication module, transmitting the communication message to the wireless communication module through the first preset interface, and transmitting the communication message to the processing module through the first preset interface, wherein the first preset interface is an RS232 interface, and the processing module is at least used to detect the message length and heartbeat response duration of the communication message; when the communication module is a wired communication module, transmitting the communication message to the wired communication module through the second preset interface, and transmitting the communication message to the processing module through the second preset interface, wherein the second preset interface is an Ethernet interface; determining the working status of the communication module through the detection result of the processing module.

[0007] Optionally, in the process of restarting the communication module at every preset restart time interval, the restart method of the communication module of the distribution terminal also includes: determining the preset restart time according to the timing gear selected by the target user, wherein the timing gear is used to determine the restart frequency of the communication module; generating a trigger signal of the timer according to the preset restart time, wherein the trigger signal of the timer is used to determine the moment when the relay cuts off the power supply to the communication module and the relay restores the power supply to the communication module; restarting the communication module through the relay based on the trigger signal.

[0008] Optionally, in the process of restarting the communication module through a preset switch, the restart method of the communication module of the distribution terminal also includes: disconnecting the connection between the relay and the communication module through the preset switch at a first moment, and restoring the connection between the relay and the communication module through the preset switch at a second moment, wherein the preset switch is between the relay and the communication module, the first moment is the moment for determining that the working state of the communication module is the second state, and the time length between the first moment and the second moment is equal to the preset restart time length.

[0009] Optionally, after detecting the module type of the communication module, the restarting method of the distribution terminal communication module also includes: when the communication module is a wireless communication module, setting a bypass capacitor for the first preset interface, wherein the bypass capacitor is used to filter surge interference information generated by the circuit during the communication message transmission process.

[0010] Optionally, after detecting the module type of the communication module, the restarting method of the communication module of the distribution terminal further includes: when the communication module is a wired communication module, setting a transformer for the second preset interface, wherein the transformer is used to adjust the voltage in the circuit.

[0011] Optionally, after storing the communication message in a preset database, the restarting method of the communication module of the distribution terminal also includes: determining the fault type of the communication module based on the communication message stored in the preset database; generating prompt information based on the fault type, and transmitting the prompt information to the display screen of the visualization device corresponding to the target user.

[0012] According to another aspect of the present application, a restart device for a communication module of a distribution terminal is provided, comprising: a first determination unit, used to determine the working state of the communication module in the distribution terminal based on the communication message of the distribution terminal, wherein the distribution terminal is at least used to distribute the electric energy of the power system to the power-consuming equipment, and the communication module is a wireless communication module or a wired communication module; a first restart unit, used to restart the communication module at intervals of a preset restart duration when the working state of the communication module is in a first state, wherein the first state is used to characterize that the message length of the communication message is less than or equal to the preset length and the heartbeat response duration of the communication message is less than or equal to the preset response duration; a second restart unit, used to store the communication message in a preset database when the working state of the communication module is in a second state, and restart the communication module through a preset switch, wherein the first state is used to characterize that the message length of the communication message is greater than the preset length, and / or that the heartbeat response duration of the communication message is greater than the preset response duration.

[0013] According to another aspect of the present application, a computer program product is provided, in which a computer program is stored, wherein when the computer program is running, the computer program product is controlled to execute any one of the above-mentioned methods for restarting the communication module of the power distribution terminal.

[0014] According to another aspect of the present application, an electronic device is also provided, wherein the electronic device includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned restart methods for the communication module of the distribution terminal.

[0015] In the present application, the working state of the communication module in the distribution terminal is first determined based on the communication message of the distribution terminal, wherein the distribution terminal is at least used to distribute the electric energy of the power system to the power-consuming equipment, and the communication module is a wireless communication module or a wired communication module. Thereafter, when the working state of the communication module is in the first state, the communication module is restarted at every preset restart time interval, wherein the first state is used to characterize that the message length of the communication message is less than or equal to the preset length and the heartbeat response duration of the communication message is less than or equal to the preset response duration. In addition, when the working state of the communication module is in the second state, the communication message is stored in a preset database, and the communication module is restarted through a preset switch, wherein the first state is used to characterize that the message length of the communication message is greater than the preset length, and / or that the heartbeat response duration of the communication message is greater than the preset response duration.

[0016] It can be seen from the above content that the technical solution of the present application first analyzes the communication message of the distribution terminal to obtain the working status of the communication module in the distribution terminal. When it is determined that the communication module in the distribution terminal is in an abnormal state (i.e., the second state), the present application immediately restarts the communication module after storing the communication message containing the fault information, thereby achieving the purpose of restoring the communication between the distribution terminal and the distribution master station. In addition, when it is determined that the communication module in the distribution terminal is in a normal state (i.e., the first state), the communication module is periodically restarted at intervals of a preset restart time, thereby reducing the probability of the distribution terminal being disconnected due to a communication module failure by periodically restarting the communication module, thereby improving the reliability of the distribution terminal during operation, and thereby improving the distribution efficiency of the power grid.

[0017] It can be seen that the present application provides a method for restarting the communication module of a distribution terminal, that is, by automatically restarting the communication module in the distribution terminal, the purpose of restoring the communication between the distribution terminal and the distribution master station is achieved, thereby achieving the technical effect of reducing the probability of the distribution terminal being disconnected due to a communication module failure, and further solving the technical problem of low distribution efficiency caused by the inability of the distribution terminal to communicate with the distribution master station after being disconnected in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 is a flowchart of an optional restart method of a power distribution terminal communication module according to an embodiment of the present application;

[0020] Figure 2It is a flowchart of an optional method for processing a communication message according to a communication module type according to an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of an optional timed restart module according to an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of an optional preset switch according to an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of an optional restarting device of a power distribution terminal communication module according to an embodiment of the present application;

[0024] Figure 6 is a schematic diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] It should also be noted that the relevant information (including the target user's login information and relevant information of system resources) and data (including but not limited to data for display and analysis) involved in this application are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set up between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0028] In addition, the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant information and data involved in this application comply with the relevant laws, regulations and standards of the relevant regions, and necessary confidentiality measures have been taken and do not violate public order and good morals. In addition, this application provides corresponding operation entrances for users to choose to agree to authorization or refuse authorization. If the user chooses to refuse authorization, he / she will enter the corresponding expert decision-making process.

[0029] According to an embodiment of the present application, an embodiment of a method for restarting a communication module of a distribution terminal 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 a 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.

[0030] The present application provides a restart system of a power distribution terminal communication module (referred to as the restart system) for executing the restart method of the power distribution terminal communication module in the present application. Figure 1 is a flowchart of an optional restart method of a power distribution terminal communication module according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0031] Step S101, determining the working state of the communication module in the power distribution terminal according to the communication message of the power distribution terminal.

[0032] In step S101, the power distribution terminal is at least used to distribute the electric energy of the power system to the power-consuming equipment, and the communication module is a wireless communication module or a wired communication module.

[0033] Optionally, the functions of the power distribution terminal also include:

[0034] (1) Power control and protection: The distribution terminal integrates power metering, protection switches, circuit breakers and other equipment. The distribution terminal can also control and protect the power grid. The distribution terminal can achieve reasonable distribution of power and ensure the safe operation of each circuit. For example, it can cut off the circuit in the event of a short circuit or overload to avoid damage to electrical equipment or threats to personal safety.

[0035] (2) Electricity metering and monitoring: Distribution terminals usually include electricity metering devices for monitoring and measuring the electricity consumed by users. Some distribution terminals also have remote monitoring and data transmission capabilities, which can realize remote meter reading and real-time monitoring of the electricity usage of electrical equipment.

[0036] (3) Improvement of power quality: The distribution terminal can reduce low harmonics in the power grid and improve the power factor through equipment such as filters and voltage stabilizers, ensuring stable operation of electrical equipment.

[0037] (4) Fault isolation and recovery: When a power grid fault occurs, the distribution terminal can identify the fault area and isolate the fault area according to preset measures, thereby reducing the impact of the fault area on the entire power grid.

[0038] Step S102: when the working state of the communication module is in the first state, restart the communication module at intervals of a preset restart time.

[0039] In step S102, the first state is used to indicate that the message length of the communication message is less than or equal to a preset length and the heartbeat response duration of the communication message is less than or equal to a preset response duration.

[0040] Optionally, the first state represents that the working state of the communication module is in a normal state, and at this time the communication module can realize bidirectional transmission of communication messages between the power distribution point and the power distribution master station.

[0041] Optionally, when the working state of the communication module is in a normal state, the restart system performs a timed restart on the communication module of the power distribution equipment as follows:

[0042] (1) Solve cache and status problems: Restarting the communication module regularly can clear the temporary cache data in the communication module, thereby preventing the cache data from reducing the operating efficiency of the communication module.

[0043] (2) Improve equipment stability: Scheduled restarts can help reduce equipment downtime caused by communication module failures or errors. By regularly restarting the communication module, potential communication failures can be prevented and the overall reliability and stability of the equipment can be improved.

[0044] (3) Optimizing the utilization of network resources: The long-term operation of the communication module will occupy the network resources of the power distribution equipment for a long time. By restarting the communication module on a regular basis, the network resources occupied by the communication module for a long time can be released, thereby preventing the communication module from occupying network resources for a long time and causing the operation of other modules to be hindered.

[0045] Step S103, when the working state of the communication module is in the second state, the communication message is stored in a preset database, and the communication module is restarted through a preset switch.

[0046] In step S103, the first state is used to indicate that the message length of the communication message is greater than a preset length, and / or the heartbeat response duration of the communication message is greater than a preset response duration.

[0047] Optionally, the first state represents that the working state of the communication module is in an abnormal state, at which time the power distribution point and the power distribution master station cannot communicate normally, and the power distribution terminal is offline.

[0048] Optionally, when the working state of the communication module is in an abnormal state, the restart system can make the communication module lose power for 10 seconds by controlling the closing of a preset switch, thereby achieving the purpose of restarting the communication module after the power supply of the communication module is restored. By restarting the communication module, the communication between the distribution terminal and the distribution master station can be restored, thereby improving the distribution efficiency of the power grid.

[0049] It can be seen from the above content that the technical solution of the present application first analyzes the communication message of the distribution terminal to obtain the working status of the communication module in the distribution terminal. When it is determined that the communication module in the distribution terminal is in an abnormal state (i.e., the second state), the present application immediately restarts the communication module after storing the communication message containing the fault information, thereby achieving the purpose of restoring the communication between the distribution terminal and the distribution master station. In addition, when it is determined that the communication module in the distribution terminal is in a normal state (i.e., the first state), the communication module is periodically restarted at intervals of a preset restart time, thereby reducing the probability of the distribution terminal being disconnected due to a communication module failure by periodically restarting the communication module, thereby improving the reliability of the distribution terminal during operation, and thereby improving the distribution efficiency of the power grid.

[0050] It can be seen that the present application provides a method for restarting the communication module of a distribution terminal, that is, by automatically restarting the communication module in the distribution terminal, the purpose of restoring the communication between the distribution terminal and the distribution master station is achieved, thereby achieving the technical effect of reducing the probability of the distribution terminal being disconnected due to a communication module failure, and further solving the technical problem of low distribution efficiency caused by the inability of the distribution terminal to communicate with the distribution master station after being disconnected in the prior art.

[0051] In an optional embodiment, Figure 2 is a flowchart of an optional method for processing communication messages according to the type of communication module according to an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:

[0052] Step S201, detecting the module type of the communication module.

[0053] Step S202: when the communication module is a wireless communication module, the communication message is transmitted to the wireless communication module through the first preset interface, and the communication message is transmitted to the processing module through the first preset interface.

[0054] In step S202, the first preset interface is an RS232 interface, and the processing module is at least used to detect the message length and heartbeat response duration of the communication message.

[0055] Step S203: when the communication module is a wired communication module, the communication message is transmitted to the wired communication module through the second preset interface, and the communication message is transmitted to the processing module through the second preset interface.

[0056] In step S203, the second preset interface is an Ethernet interface.

[0057] Step S204: determining the working state of the communication module by means of the detection result of the processing module.

[0058] Optionally, the wireless communication module is a GPRS wireless communication module, and the wired communication module is a fiber-optic Ethernet wired communication module. The distribution terminal in the present application can achieve wireless communication with the power distribution master station through the GPRS wireless communication module, and can also achieve wireless communication with the power distribution master station through the fiber-optic Ethernet wired communication module, thereby improving the reliability of the communication message delivery process through two different communication methods.

[0059] Optionally, GPRS (General Packet Radio Service) is a wireless communication technology based on 2G network, which transmits data through wireless signals. GPRS network has wide coverage. Compared with fiber-optic Ethernet, GPRS has a lower transmission rate, usually between tens of kbps and hundreds of kbps, which is suitable for small data transmission and low bandwidth requirements. Therefore, GPRS wireless communication module is suitable for the communication needs of remote or mobile devices.

[0060] Optionally, the fiber-optic Ethernet wired communication module transmits data through optical fiber and can provide data transmission rates ranging from hundreds of Mbps to several Gbps. The data transmission rate of the fiber-optic Ethernet wired communication module is higher than that of the GPRS wireless communication module. In addition, optical fiber transmission is not subject to electromagnetic interference, the communication quality is stable, and the data transmission security is relatively high. The fiber-optic Ethernet wired communication module is suitable for application scenarios with high data security requirements and large amounts of data to be transmitted, for example, large-capacity data transmission scenarios such as medical imaging and high-definition video surveillance.

[0061] In an optional embodiment, when the working state of the communication module is in the first state, the restart system first determines a preset restart duration based on the timing gear selected by the target user, wherein the timing gear is used to determine the restart frequency of the communication module. Afterwards, the restart system generates a trigger signal of the timer according to the preset restart duration, wherein the trigger signal of the timer is used to determine the moment when the relay cuts off the power supply to the communication module and the relay restores the power supply to the communication module. Then, the restart system restarts the communication module through the relay based on the trigger signal.

[0062] Optionally, Figure 3 is a schematic diagram of an optional timed restart module according to an embodiment of the present application, such as Figure 3 As shown, the timing restart module (i.e. Figure 3 The communication module timed self-restart device in the power distribution terminal can be installed in the power distribution terminal. The timed restart module is between the power management module and the communication module. The timed restart module acts as a relay device to control the power supply to the communication module.

[0063] exist Figure 3 In the embodiment, the timed restart module includes a power input submodule, a power output submodule and a timer, wherein the power input submodule is connected to the power management module of the power distribution terminal, and the power output submodule is connected to the communication module. The timer is installed between the power input submodule and the power output submodule as a relay device between the power input submodule and the power output submodule, and the timer corresponds to four timing gears from 1 to 4. The restart system can set different preset restart durations for different timing gears through the jumper cap in the timer, for example: the preset restart duration corresponding to gear 1 is 4h, the preset restart duration corresponding to gear 2 is 8h, the preset restart duration corresponding to gear 3 is 12h, and the preset restart duration corresponding to gear 4 is 24h.

[0064] In an optional embodiment, in the process of restarting the communication module through a preset switch, the restart system first disconnects the connection between the relay and the communication module through the preset switch at a first moment, and then the restart system restores the connection between the relay and the communication module through the preset switch at a second moment, wherein the preset switch is between the relay and the communication module, the first moment is the moment when the working state of the communication module is determined to be the second state, and the duration between the first moment and the second moment is equal to the preset restart duration.

[0065] Optionally, Figure 4 is a schematic diagram of an optional preset switch according to an embodiment of the present application, such as Figure 4 As shown in the figure: Q2 and Q3 are installed between the relay and the wireless communication module. Q2 is the main power switch. The voltage range supported by Q2 is 9V to 36V. Therefore, Q2 is compatible with various power supply requirements of distribution automation terminals. In addition, the level signal of the MCU (Microcontroller Unit) processing sub-module in the restart system is 3.3V. According to the VGS (Gate Source Voltage Characteristics, VGS is used to describe the relationship between the output current and the gate-source voltage of the field effect tube, and is one of the indicators for evaluating the performance of the field effect tube) characteristics of Q2, it cannot be driven directly. Therefore, the restart system additionally sets Q3 as the driving switch of Q2.

[0066] In an optional embodiment, when the communication module is a wireless communication module, the restart system sets a bypass capacitor for the first preset interface, wherein the bypass capacitor is used to filter surge interference information generated by the circuit during the communication message transmission process.

[0067] Optionally, a timed restart module corresponding to the wireless communication module is installed inside the power distribution terminal, and obtains the communication message sent by the main control unit of the power distribution terminal to the power distribution master station (or the communication message sent by the power distribution master station to the main control unit of the power distribution terminal) through the RS232 interface. After that, on the one hand, the communication message is transparently transmitted to the wireless communication module through the UART-DMA high-speed channel, and on the other hand, part of the intercepted communication message is sent to the MCU processing sub-module through the UART-DMA high-speed channel for abnormal monitoring and judgment. Among them, the UART-DMA high-speed channel is a channel that uses DMA (direct memory access) technology to accelerate the data transmission efficiency of UART (universal asynchronous receiver and transmitter). When the MCU processing sub-module detects a communication abnormality (that is, the working state of the wireless communication module is in the second state), the MCU processing sub-module controls the power output to power off for 10 seconds and then restores power, thereby restarting the wireless communication module.

[0068] Optionally, the RS232 communication signal (i.e., the signal generated by the communication message through the RS232 interface) is transmitted to the RS232 IC input end of the restart system. At this time, if there is electromagnetic interference or surge signal in the circuit, the bypass capacitor can absorb the electromagnetic interference and surge signal, thereby protecting the RS232 interface. In addition, the MCU processing submodule performs DMA fast processing on the content of the communication message transmitted through the RS232 interface, so as to determine whether there is any abnormality in the content of the received communication message, and store the abnormal message, so as to facilitate subsequent users to analyze the abnormal message with communication failure, thereby determining the cause of the communication failure.

[0069] In an optional embodiment, when the communication module is a wired communication module, the restart system sets a transformer for the second preset interface, wherein the transformer is used to adjust the voltage in the circuit.

[0070] Optionally, a timed restart module corresponding to the wired communication module is installed inside the power distribution terminal, and obtains the communication message sent by the main control unit of the power distribution terminal to the power distribution master station (or the communication message sent by the power distribution master station to the main control unit of the power distribution terminal) through the Ethernet interface. After that, on the one hand, the communication message is transparently transmitted to the wired communication module through the Ethernet DMA high-speed channel, and on the other hand, part of the intercepted communication message is sent to the MCU processing sub-module through the Ethernet DMA high-speed channel for abnormal monitoring and judgment. When the MCU processing sub-module detects a communication abnormality (that is, the working state of the wired communication module is in the second state), the MCU processing sub-module controls the power output to power off for 10 seconds and then restores power, thereby restarting the wired communication module.

[0071] Optionally, the above-mentioned transformer can be set as a network transformer, which is connected to the Ethernet PHY (Physical Layer Integrated Circuit) of the restart system, and the Ethernet PHY is interconnected with the remote control interface of the MCU processing sub-module. After that, the MCU processing sub-module determines whether there is any abnormality in the content of the communication message transmitted by the Ethernet interface, and stores the abnormal message, so as to facilitate subsequent users to analyze the abnormal message with communication failure, thereby determining the cause of the communication failure.

[0072] In an optional embodiment, after storing the communication message in a preset database, the restart system first determines the fault type of the communication module based on the communication message stored in the preset database. Then, the restart system generates prompt information based on the fault type and transmits the prompt information to the display screen of the visualization device corresponding to the target user.

[0073] Optionally, the present application can determine the fault type of the communication module by analyzing the communication message including the communication module fault information, thereby improving the efficiency of subsequent operation and maintenance personnel of the distribution terminal in repairing the faulty distribution terminal.

[0074] It can be seen from the above content that the technical solution of the present application first analyzes the communication message of the distribution terminal to obtain the working status of the communication module in the distribution terminal. When it is determined that the communication module in the distribution terminal is in an abnormal state (i.e., the second state), the present application immediately restarts the communication module after storing the communication message containing the fault information, thereby achieving the purpose of restoring the communication between the distribution terminal and the distribution master station. In addition, when it is determined that the communication module in the distribution terminal is in a normal state (i.e., the first state), the communication module is periodically restarted at intervals of a preset restart time, thereby reducing the probability of the distribution terminal being disconnected due to a communication module failure by periodically restarting the communication module, thereby improving the reliability of the distribution terminal during operation, and thereby improving the distribution efficiency of the power grid.

[0075] It can be seen that the present application provides a method for restarting the communication module of a distribution terminal, that is, by automatically restarting the communication module in the distribution terminal, the purpose of restoring the communication between the distribution terminal and the distribution master station is achieved, thereby achieving the technical effect of reducing the probability of the distribution terminal being disconnected due to a communication module failure, and further solving the technical problem of low distribution efficiency caused by the inability of the distribution terminal to communicate with the distribution master station after being disconnected in the prior art.

[0076] According to another aspect of the embodiment of the present application, a restart device of a communication module of a power distribution terminal (referred to as restart device) is also provided. Figure 5 is a schematic diagram of an optional restart device of a power distribution terminal communication module according to an embodiment of the present application, such as Figure 5 As shown, the restarting device of the power distribution terminal communication module includes: a first determining unit 501 , a first restarting unit 502 and a second restarting unit 503 .

[0077] Optionally, a first determination unit is used to determine the working state of a communication module in a distribution terminal based on a communication message of the distribution terminal, wherein the distribution terminal is at least used to distribute electric energy of the power system to power-consuming equipment, and the communication module is a wireless communication module or a wired communication module; a first restart unit is used to restart the communication module at intervals of a preset restart time when the working state of the communication module is in a first state, wherein the first state is used to characterize that the message length of the communication message is less than or equal to a preset length and the heartbeat response duration of the communication message is less than or equal to a preset response duration; a second restart unit is used to store the communication message in a preset database and restart the communication module through a preset switch when the working state of the communication module is in a second state, wherein the first state is used to characterize that the message length of the communication message is greater than a preset length, and / or that the heartbeat response duration of the communication message is greater than the preset response duration.

[0078] In an optional embodiment, the first determination unit includes: a detection subunit, a first transmission subunit, a second transmission subunit and a first determination subunit.

[0079] Optionally, a detection subunit is used to detect the module type of the communication module; a first transmission subunit is used to transmit the communication message to the wireless communication module through the first preset interface when the communication module is a wireless communication module, and transmit the communication message to the processing module through the first preset interface, wherein the first preset interface is an RS232 interface, and the processing module is at least used to detect the message length and heartbeat response duration of the communication message; a second transmission subunit is used to transmit the communication message to the wired communication module through the second preset interface when the communication module is a wired communication module, and transmit the communication message to the processing module through the second preset interface, wherein the second preset interface is an Ethernet interface; a first determination subunit is used to determine the working status of the communication module through the detection result of the processing module.

[0080] In an optional embodiment, the first restarting unit includes: a second determining subunit, a first generating subunit and a first restarting subunit.

[0081] Optionally, the second determination subunit is used to determine a preset restart duration based on the timing gear selected by the target user, wherein the timing gear is used to determine the restart frequency of the communication module; the first generation subunit is used to generate a trigger signal of the timer based on the preset restart duration, wherein the trigger signal of the timer is used to determine the moment when the relay cuts off the power supply to the communication module and the relay restores the power supply to the communication module; the first restart subunit is used to restart the communication module through the relay based on the trigger signal.

[0082] In an optional embodiment, the second restart unit includes: a disconnection subunit and a recovery subunit.

[0083] Optionally, a disconnecting subunit is used to disconnect the connection between the relay and the communication module through a preset switch at a first moment, and a restoring subunit is used to restore the connection between the relay and the communication module through a preset switch at a second moment, wherein the preset switch is between the relay and the communication module, the first moment is the moment when the working state of the communication module is determined to be the second state, and the duration between the first moment and the second moment is equal to the preset restart duration.

[0084] In an optional embodiment, the first determining unit further includes: a first setting subunit.

[0085] Optionally, the first setting subunit is used to set a bypass capacitor for the first preset interface when the communication module is a wireless communication module, wherein the bypass capacitor is used to filter surge interference information generated by the circuit during the communication message transmission process.

[0086] In an optional embodiment, the first determining unit further includes: a second setting subunit.

[0087] Optionally, the second setting subunit is used to set a transformer for the second preset interface when the communication module is a wired communication module, wherein the transformer is used to adjust the voltage in the circuit.

[0088] In an optional embodiment, the restarting device of the power distribution terminal communication module further includes: a second determining unit and a generating unit.

[0089] Optionally, the second determination unit is used to determine the fault type of the communication module based on the communication message stored in the preset database; the generation unit is used to generate prompt information based on the fault type and transmit the prompt information to the display screen of the visualization device corresponding to the target user.

[0090] From the above content, it can be seen that the technical solution of the restart device first analyzes the communication message of the distribution terminal to obtain the working status of the communication module in the distribution terminal. When it is determined that the communication module in the distribution terminal is in an abnormal state (i.e., the second state), the restart device immediately restarts the communication module after storing the communication message containing the fault information, thereby achieving the purpose of restoring the communication between the distribution terminal and the distribution master station. In addition, when it is determined that the communication module in the distribution terminal is in a normal state (i.e., the first state), the communication module is periodically restarted at intervals of a preset restart time, thereby reducing the probability of the distribution terminal being disconnected due to a communication module failure by periodically restarting the communication module, thereby improving the reliability of the distribution terminal during operation, and thereby improving the distribution efficiency of the power grid.

[0091] It can be seen that the restarting device provides a method for restarting the communication module of the distribution terminal, that is, by automatically restarting the communication module in the distribution terminal, the purpose of restoring the communication between the distribution terminal and the distribution master station is achieved, thereby achieving the technical effect of reducing the probability of the distribution terminal being disconnected due to communication module failure, and thus solving the technical problem of low distribution efficiency caused by the inability of the distribution terminal to communicate with the distribution master station after being disconnected in the prior art.

[0092] According to another aspect of an embodiment of the present application, a computer program product is further provided, the computer program product comprising a stored computer program, wherein when the computer program is running, the computer program product is controlled to execute any one of the above-mentioned methods for restarting the communication module of a distribution terminal.

[0093] According to another aspect of an embodiment of the present application, an electronic device is also provided, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any of the above-mentioned methods for restarting the communication module of the distribution terminal by executing the executable instructions.

[0094] Optionally, Figure 6 is a schematic diagram of an optional electronic device according to an embodiment of the present application, such as Figure 6 As shown, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, any one of the above-mentioned methods for restarting the communication module of the distribution terminal is implemented.

[0095] Optionally, the processor can implement the following steps when executing the program: determine the working state of the communication module in the distribution terminal based on the communication message of the distribution terminal, wherein the distribution terminal is at least used to distribute the electric energy of the power system to the power-consuming equipment, and the communication module is a wireless communication module or a wired communication module; when the working state of the communication module is in the first state, restart the communication module at every preset restart time interval, wherein the first state is used to characterize that the message length of the communication message is less than or equal to the preset length and the heartbeat response duration of the communication message is less than or equal to the preset response duration; when the working state of the communication module is in the second state, store the communication message in a preset database, and restart the communication module through a preset switch, wherein the first state is used to characterize that the message length of the communication message is greater than the preset length, and / or that the heartbeat response duration of the communication message is greater than the preset response duration.

[0096] Optionally, the processor can implement the following steps when executing the program: detecting the module type of the communication module; when the communication module is a wireless communication module, transmitting the communication message to the wireless communication module through a first preset interface, and transmitting the communication message to the processing module through the first preset interface, wherein the first preset interface is an RS232 interface, and the processing module is at least used to detect the message length and heartbeat response duration of the communication message; when the communication module is a wired communication module, transmitting the communication message to the wired communication module through a second preset interface, and transmitting the communication message to the processing module through a second preset interface, wherein the second preset interface is an Ethernet interface; determining the working status of the communication module through the detection result of the processing module.

[0097] Optionally, the processor can implement the following steps when executing the program: determine a preset restart duration based on the timing gear selected by the target user, wherein the timing gear is used to determine the restart frequency of the communication module; generate a trigger signal of the timer based on the preset restart duration, wherein the trigger signal of the timer is used to determine the moment when the relay cuts off the power supply to the communication module and the relay restores the power supply to the communication module; restart the communication module through the relay based on the trigger signal.

[0098] Optionally, the processor can implement the following steps when executing the program: disconnect the connection between the relay and the communication module through a preset switch at a first moment, and restore the connection between the relay and the communication module through a preset switch at a second moment, wherein the preset switch is between the relay and the communication module, the first moment is the moment when the working state of the communication module is determined to be the second state, and the duration between the first moment and the second moment is equal to the preset restart duration.

[0099] Optionally, the processor can implement the following steps when executing the program: when the communication module is a wireless communication module, a bypass capacitor is set for the first preset interface, wherein the bypass capacitor is used to filter surge interference information generated by the circuit during the communication message transmission process.

[0100] Optionally, the processor can implement the following steps when executing the program: when the communication module is a wired communication module, a transformer is provided for the second preset interface, wherein the transformer is used to adjust the voltage in the circuit.

[0101] Optionally, when the processor executes the program, the following steps can be implemented: determining the fault type of the communication module based on the communication message stored in the preset database; generating prompt information based on the fault type, and transmitting the prompt information to the display screen of the visualization device corresponding to the target user.

[0102] The above-mentioned embodiments or examples disclosed in the present application are not exhaustive, but are only illustrative of some embodiments or examples, and are not intended to be specific limitations on the scope of protection disclosed in the present application. In the absence of contradiction, each step in a certain embodiment or example in the present application can be implemented as an independent example, and the steps can be combined arbitrarily. For example, the scheme after removing some steps in a certain embodiment or example can also be implemented as an independent example, and the order of the steps in a certain embodiment or example can be arbitrarily exchanged. In addition, the optional methods or optional examples in a certain embodiment or example can be combined arbitrarily; in addition, the various embodiments or examples can be combined arbitrarily, for example, some or all steps of different embodiments or examples can be combined arbitrarily, and a certain embodiment or example can be combined arbitrarily with the optional methods or optional examples of other embodiments or examples.

[0103] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0104] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0107] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0108] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0109] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0110] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0111] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for restarting a communication module of a power distribution terminal, characterized in that: include: Determining the working state of a communication module in the power distribution terminal according to a communication message of the power distribution terminal, wherein the power distribution terminal is at least used to distribute electric energy of the power system to electric devices, and the communication module is a wireless communication module or a wired communication module; When the working state of the communication module is in the first state, restarting the communication module at intervals of a preset restart duration, wherein the first state is used to characterize that the message length of the communication message is less than or equal to the preset length and the heartbeat response duration of the communication message is less than or equal to the preset response duration; When the working state of the communication module is in the second state, the communication message is stored in a preset database, and the communication module is restarted through a preset switch, wherein the second state is used to characterize that the message length of the communication message is greater than a preset length, and / or that the heartbeat response duration of the communication message is greater than a preset response duration; Wherein, determining the working state of the communication module in the power distribution terminal according to the communication message of the power distribution terminal includes: detecting the module type of the communication module; when the communication module is the wireless communication module, setting a bypass capacitor for the first preset interface, transmitting the communication message to the wireless communication module through the first preset interface, and transmitting the communication message to the processing module through the first preset interface, wherein the first preset interface is an RS232 interface, and the processing module is at least used to detect the message length and heartbeat response duration of the communication message, and the bypass capacitor is used to filter the surge interference information generated by the circuit during the transmission of the communication message; when the communication module is the wired communication module, setting a transformer for the second preset interface, transmitting the communication message to the wired communication module through the second preset interface, and transmitting the communication message to the processing module through the second preset interface, wherein the second preset interface is an Ethernet interface, and the transformer is used to adjust the voltage in the circuit; determining the working state of the communication module according to the detection result of the processing module.

2. The restart method of the power distribution terminal communication module according to claim 1, characterized in that: Restarting the communication module at intervals of a preset restart time includes: Determine the preset restart duration according to the timing gear selected by the target user, wherein the timing gear is used to determine the restart frequency of the communication module; Generate a trigger signal of a timer according to the preset restart duration, wherein the trigger signal of the timer is used to determine the moment when the relay cuts off the power supply of the communication module and when the relay restores the power supply of the communication module; The communication module is restarted by the relay based on a trigger signal.

3. The restart method of the power distribution terminal communication module according to claim 1, characterized in that: In the process of restarting the communication module through a preset switch, the restarting method of the communication module of the power distribution terminal further includes: At a first moment, the connection between the relay and the communication module is disconnected by a preset switch, and at a second moment, the connection between the relay and the communication module is restored by a preset switch, wherein the preset switch is between the relay and the communication module, the first moment is the moment when the working state of the communication module is determined to be the second state, and the time length between the first moment and the second moment is equal to the preset restart time length.

4. The restart method of the power distribution terminal communication module according to claim 1, characterized in that: After storing the communication message in a preset database, the restarting method of the communication module of the power distribution terminal further includes: Determining the fault type of the communication module according to the communication message stored in the preset database; Prompt information is generated according to the fault type, and the prompt information is transmitted to a display screen of a visualization device corresponding to a target user.

5. A restart device for a power distribution terminal communication module, characterized in that: include: A first determining unit, configured to determine a working state of a communication module in the power distribution terminal according to a communication message of the power distribution terminal, wherein the power distribution terminal is at least used to distribute electric energy of the power system to electric devices, and the communication module is a wireless communication module or a wired communication module; A first restart unit, configured to restart the communication module at intervals of a preset restart duration when the working state of the communication module is in a first state, wherein the first state is used to characterize that the message length of the communication message is less than or equal to the preset length and the heartbeat response duration of the communication message is less than or equal to the preset response duration; A second restart unit, used for storing the communication message in a preset database and restarting the communication module through a preset switch when the working state of the communication module is in a second state, wherein the second state is used to characterize that the message length of the communication message is greater than a preset length, and / or that the heartbeat response duration of the communication message is greater than a preset response duration; Wherein, the first determination unit includes: a detection subunit, used to detect the module type of the communication module; a first setting subunit, used to set a bypass capacitor for a first preset interface when the communication module is the wireless communication module, wherein the bypass capacitor is used to filter surge interference information generated by the circuit during the transmission of the communication message; a first transmission subunit, used to transmit the communication message to the wireless communication module through the first preset interface when the communication module is the wireless communication module, and transmit the communication message to the processing module through the first preset interface, wherein the first preset interface is an RS232 interface, and the processing module to The first subunit is used to detect the message length and heartbeat response duration of the communication message; the second setting subunit is used to set a transformer for the second preset interface when the communication module is the wired communication module, wherein the transformer is used to adjust the voltage in the circuit; the second transmission subunit is used to transmit the communication message to the wired communication module through the second preset interface when the communication module is the wired communication module, and transmit the communication message to the processing module through the second preset interface, wherein the second preset interface is an Ethernet interface; the first determination subunit is used to determine the working status of the communication module through the detection result of the processing module.

6. A computer program product, characterized in that The computer program product comprises a computer program, wherein when the computer program is executed, the computer program product is controlled to execute the restarting method of the power distribution terminal communication module according to any one of claims 1 to 4.

7. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the restart method of the distribution terminal communication module described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Distribution network automation terminal and system with automatic power-off restart function

    CN114244697A

  • Power distribution automation terminal communication module crash automatic restart device

    CN115378414A