CN115776687A - Electric power telecontrol terminal bus communication load balancing algorithm, equipment and storage medium - Google Patents

Electric power telecontrol terminal bus communication load balancing algorithm, equipment and storage medium Download PDF

Info

Publication number
CN115776687A
CN115776687A CN202211463795.0A CN202211463795A CN115776687A CN 115776687 A CN115776687 A CN 115776687A CN 202211463795 A CN202211463795 A CN 202211463795A CN 115776687 A CN115776687 A CN 115776687A
Authority
CN
China
Prior art keywords
rtu
polling
bus
communication
chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211463795.0A
Other languages
Chinese (zh)
Inventor
陈奇志
程勇
邓如彬
李胜
陈瑞森
杨昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Jiaoda Guangmang Technology Co ltd
Original Assignee
Chengdu Jiaoda Guangmang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Jiaoda Guangmang Technology Co ltd filed Critical Chengdu Jiaoda Guangmang Technology Co ltd
Priority to CN202211463795.0A priority Critical patent/CN115776687A/en
Publication of CN115776687A publication Critical patent/CN115776687A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to the technical field of wireless communication, in particular to a power telecontrol terminal bus communication load balancing algorithm, equipment and a storage medium, wherein the method comprises the following steps: constructing a polling chain, wherein the polling chain connects a plurality of buses with each RTU of the RTU chain at the same time; inquiring the RTU chain through the polling chain, taking the inquired first RTU as the RTU1, judging the states of the RTU1 and a plurality of buses connected with the RTU1, and inquiring the state of the next RTU and the plurality of buses connected with the next RTU based on the judgment result until the inquiry of the states of each RTU of the RTU chain and the plurality of buses connected with the RTU chain is finished; and judging whether the communication of the polling chain is normal or not, if not, switching the RTU with abnormal communication of the current bus to another bus to continue to maintain the communication based on the query result, and finishing the stable communication between the RTU and the bus.

Description

Electric power telecontrol terminal bus communication load balancing algorithm, equipment and storage medium
Technical Field
The invention relates to the technical field of wireless communication, in particular to an algorithm, equipment and a storage medium for balancing communication load of a power telecontrol terminal bus.
Background
At present, field bus redundant communication generally adopts a communication manager to receive and transmit data with one RTU (remote terminal unit) at a time, communication is established with a second RTU after one RTU communication is completed, when one RTU in charge of a certain bus fails, the bus tries to reestablish communication due to communication failure when polling the RTU each time, the next RTU is polled until a plurality of communication failures, when all the RTUs on the bus cannot communicate, a redundancy mechanism is triggered, and the other bus takes over communication of all the RTUs on the bus. Because the field bus needs to load a plurality of RTUs during communication work, once one of the RTUs is abnormal, the field bus needs to carry out multiple failure reconnection on the RTU, and the communication efficiency and stability of the whole bus are easily influenced. Based on the above, an algorithm, a device and a storage medium for balancing the communication load of the power telecontrol terminal bus are designed for solving the problems.
Disclosure of Invention
The invention aims to provide a bus communication load balancing algorithm, equipment and a storage medium of an electric power telecontrol terminal, which can be quickly switched to other buses when an RTU (remote terminal unit) of one bus is abnormal and can be distributed to other buses through load balancing when the load of the bus is too high, so that the problem of influencing the communication efficiency and stability of the whole bus is solved.
The embodiment of the invention is realized by the following technical scheme:
the power telecontrol terminal bus communication load balancing algorithm comprises the following steps:
constructing a polling chain;
inquiring the RTU chain through the polling chain, taking the inquired first RTU as the RTU1, judging the states of the RTU1 and a plurality of buses connected with the RTU1, and inquiring the state of the next RTU and the plurality of buses connected with the next RTU based on the judgment result until the inquiry of the states of each RTU of the RTU chain and the plurality of buses connected with the RTU chain is finished;
and judging whether the communication of the polling chain is normal or not, if not, switching the RTU with abnormal communication of the current bus to another bus to continue to maintain the communication, and finishing the stable communication between the RTU and the bus.
Optionally, it is determined whether the communication of the polling chain is normal, and if not, the method specifically includes: polling the RTU chain through the polling chain, judging whether the state of the bus connected with the RTU at present is abnormal or not based on the polling result, if not, polling again, judging whether the state of the other bus connected with the RTU is abnormal or not, and if not, polling again for judging until the state of the set bus connected with the RTU is abnormal.
Optionally, the polling specifically includes multiple polling, where the number of polling times specifically corresponds to the number of bus bars, the first round of polling is used to perform marking on a bus currently connected to an RTU in an abnormal state until the multiple polling is completed, and a query result is formed by combining marking results of the multiple polling.
Optionally, if the bus state of the polling chain is determined to be normal, the determining process is as follows:
and judging whether the bus state of the polling chain is normal or not, if so, returning to the RTU1 to inquire again until the bus state of the polling chain is judged to be abnormal.
Optionally, the method further includes distributing the bus with the communication load exceeding the set value to other buses through load balancing, so that the communication loads of the buses are balanced with each other.
Optionally, the polling chain is specifically composed of a communication manager, an RTU chain, and a plurality of buses.
Optionally, the RTU chain includes N RTUs, divided into RTU1, RTU2, \ 8230and RTUN, the communication manager being interconnected with the N RTUs by a plurality of buses.
Optionally, the number of the buses is set to be n, the buses are divided into bus1, bus2, \8230andbusn, and the communication manager is in communication connection with RTU1, RTU2, \8230andRTUN through bus 1; the bus2 is simultaneously in communication connection with RTU1, RTU2, \ 8230and RTUN; 8230; and simultaneously communicating with RTU1, RTU2, \ 8230and RTUN through the busn.
An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the power telecontrol terminal bus communication load balancing algorithm as described in any one of the above when the computer program is executed.
A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the power telecontrol terminal bus communication load balancing algorithm as described in any one of the above.
The technical scheme of the embodiment of the invention at least has the following advantages and beneficial effects:
in the embodiment, on one hand, a load balancing algorithm of a polling chain can realize that two redundant buses can be quickly switched to another bus to continue to keep communication with an RTU when the RTU for communication of the other side is abnormal; on the other hand, when a certain bus is in charge of overweight, the loads on the two buses can be quickly and uniformly distributed again so as to ensure the efficiency and the reliability of bus communication.
Drawings
Fig. 1 is a schematic overall flow chart of a bus communication load balancing algorithm of an electric power telecontrol terminal according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a polling chain principle for normal communication according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a polling chain principle of communication exception according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Referring to fig. 1, fig. 1 is a schematic overall flow chart of a bus communication load balancing algorithm of an electric power telecontrol terminal according to an embodiment of the present invention.
The power telecontrol terminal bus communication load balancing algorithm comprises the following steps:
constructing a polling chain;
inquiring the RTU chain through the polling chain, taking the inquired first RTU as the RTU1, judging the states of the RTU1 and a plurality of buses connected with the RTU1, and inquiring the state of the next RTU and the plurality of buses connected with the next RTU based on the judgment result until the inquiry of the states of each RTU of the RTU chain and the plurality of buses connected with the RTU chain is finished;
and judging whether the communication of the polling chain is normal or not, if not, switching the RTU with abnormal communication of the current bus to another bus to continuously maintain the communication, and finishing the stable communication between the RTU and the bus.
In the implementation process, the polling chain is specifically composed of a communication manager, an RTU chain and a plurality of buses. The RTU chain is set to comprise N RTUs which are divided into RTU1, RTU2, \8230andRTUN, and the communication management machine is connected with the N RTUs through a plurality of buses. Setting the number of buses (namely data buses) as n, dividing the buses into bus1, bus2, \ 8230and busn, and simultaneously connecting the communication management machine with RTU1, RTU2, \ 8230and RTUN through bus 1; the communication management machine is in communication connection with RTU1, RTU2, \8230andRTUN through bus 2; 8230; the communication management machine is in communication connection with RTU1, RTU2, \ 8230and RTUN through the busn.
In the implementation process, if the bus state of the polling chain is determined to be normal, the determination process is as follows:
and judging whether the bus state of the polling chain is normal or not, if so, returning to the RTU1 to inquire again until the bus state of the polling chain is judged to be abnormal.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a principle of a normal polling chain of communication according to an embodiment of the present invention.
In one embodiment, each bus is simultaneously connected with each RTU, the communication manager is respectively in communication connection with the corresponding data bus through a communication protocol, the first polling object RTU is used as RTU1, under the condition that the communication is normal based on a polling chain, the current bus connected with the RTU1 is judged not to be in an abnormal state, at the moment, whether the states of other buses connected with the RTU1 are normal or not is judged, the embodiment exemplifies two buses, and when the state that the RTU1 is connected to the current bus is normal, the RTU1 returns to the RTU1 for re-inquiring; when the states of two buses connected with the RTU1 are abnormal, returning to the RTU1 for inquiring again; when the RTU1 is connected to the current bus in an abnormal state and the other bus in a normal state, the RTU1 is not returned, the next RTU is continuously searched until the RTU1 is polled to the RTUN, the RTU1 is inserted into the next object of the RTUN for polling again, and the redundant two buses can be quickly switched to the other bus to keep communicating with the RTU continuously when the RTU for communication is abnormal.
Referring to fig. 3, fig. 3 is a schematic diagram of a polling chain principle of communication abnormality according to an embodiment of the present invention.
In one embodiment, the determining whether the communication of the polling chain is normal or not, and if not, specifically: polling the RTU chain through a polling chain, judging whether the state of a bus connected with the RTU at present is abnormal or not based on a polling result, if not, polling again, judging whether the state of the other bus connected with the RTU is abnormal or not, and if not, polling again for judgment until the state of a set bus connected with the RTU is abnormal.
In the implementation process, the polling specifically includes multiple polling, where the number of polling times specifically corresponds to the number of bus bars, the first polling is used to perform marking on a bus to which the RTU in an abnormal state is currently connected, and until the multiple polling is completed, a query result is formed by combining marking results of the multiple polling.
In one embodiment, this embodiment provides a specific implementation manner of the first round of polling, the number of RTUs is set to be 4, and is divided into RTU1, RTU2, RTU3, and RTU4, the number of buses is set to be 2, and the communication protocol bus of the communication manager and the bus is used as a bus name, and is divided into bus1 and bus2, based on which the first round of polling includes the following steps: 1) Polling the bus1 or the bus2 to obtain the RTU1, and marking the state of the RTU1 as abnormal when an overtime error occurs after communication; 2) bus1 or bus2 polls to get RTU2. And when a timeout error occurs after the bus1 communication, marking the state of the RTU2 as abnormal. The marking of the bus2 to the RTU2 is still normal; 3) bus1 or bus2 gets RTU3 by polling. bus1 marks RTU3 as normal. When an overtime error occurs after bus2 communication, the state of RTU3 is marked as abnormal; 4) bus1 or bus2 polls to RTU4, and the flags of bus1 and bus2 to RTU4 are normal. And entering second round polling after the first round polling is finished, wherein the second round polling comprises the following steps: 6) Polling the bus1 or the bus2 to the RTU1, and returning to the RTU1 if the states of the two buses corresponding to the RTU1 equipment are abnormal; 7) When the bus1 or the bus2 polls the RTU2, if the RTU2 is abnormal corresponding to the bus1 and normal corresponding to the bus2, returning to the bus2, and continuously polling the subsequent RTU by the bus 1; 8) And (3) polling the RTU3 by the bus1 or the bus2, and finding that the RTU3 is normal corresponding to the bus1 and abnormal corresponding to the bus2. Returning to the bus1, and continuing to poll the following RTU by the bus 2; 9) And polling RTU4 by bus1 or bus2, and returning to bus1 or bus2 when finding that RTU4 corresponds to normal bus1 and bus2.
In one embodiment, the method further comprises distributing the buses with the communication loads exceeding the set value to other buses through load balancing so that the communication loads of the buses are balanced with each other.
In the implementation process, on one hand, the load balancing algorithm of the polling chain can enable two redundant buses to be quickly switched to another bus to continue to maintain communication with the RTU when the RTU communicating with the other side is abnormal; on the other hand, when a certain bus is in charge of overweight, the loads on the two buses can be quickly and uniformly distributed again so as to ensure the efficiency and reliability of bus communication.
An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the power telecontrol terminal bus communication load balancing algorithm as described in any one of the above when the computer program is executed.
In the above implementation process, an electronic device: a processor, a memory. The electronic device may also include one or more of a multimedia component, an input/output (I/O) interface, and a communication component.
The processor is used for controlling the whole operation of the power telecontrol terminal bus communication load balancing algorithm so as to complete all or part of functions in the power telecontrol terminal bus communication load balancing algorithm. The memory is used to store various types of data to support the operation of the power telecontrol terminal bus communication load balancing algorithm, which may include, for example, instructions for any application or method operating on the power telecontrol terminal bus communication load balancing algorithm, as well as application related data such as contact data, transceived messages, pictures, audio, video, and so forth. The Memory may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as static Random Access Memory (Stat ic Random Access Memory, SRAM for short), electrically erasable programmable Read-only Memory (e.g., EEPROM for short), erasable programmable Read-only Memory (e.g., EPROM for short), programmable Read-only Memory (PROM for short), read-only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in a memory or transmitted through a communication component. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface provides an interface between the processor and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication assembly is used for carrying out wired or wireless communication between the power telecontrol terminal bus communication load balancing algorithm and other equipment. Wireless communication, such as Wi-Fi, bluetooth, near field communication (Near Fi e l dCommun i cat i on, NFC for short), 2G, 3G, or 4G, or a combination of one or more of them, so the corresponding communication component may include: wi-Fi module, bluetooth module, NFC module.
In addition, the power telecontrol terminal bus communication load balancing algorithm may be implemented by one or more application Specific integrated circuits (ASI C), digital Signal Processors (DSP), digital Signal Processing Devices (DSPD), programmable Logic Devices (PLD), field Programmable Gate Arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components, and is configured to perform the steps of the power telecontrol terminal bus communication load balancing algorithm.
A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the power telecontrol terminal bus communication load balancing algorithm as described in any one of the above.
In the implementation process, the embodiment further provides a computer-readable storage medium including program instructions, and the program instructions, when executed by a processor, implement the steps of the power telecontrol terminal bus communication load balancing algorithm. For example, the computer readable storage medium may be the above-mentioned memory comprising program instructions executable by a processor of the power telemechanical terminal bus communication load balancing algorithm to perform the above-mentioned power telemechanical terminal bus communication load balancing algorithm.
The readable storage medium may be a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
The present invention has been described in terms of the preferred embodiment, and it is not intended to be limited to the embodiment. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. The power telecontrol terminal bus communication load balancing algorithm is characterized by comprising the following steps:
constructing a polling chain;
inquiring the RTU chain through a polling chain, taking the inquired first RTU as the RTU1, judging the states of the RTU1 and a plurality of buses connected with the RTU1, and inquiring the states of the next RTU and the plurality of buses connected with the next RTU based on the judgment result until the inquiry of the states of each RTU of the RTU chain and the plurality of buses connected with the RTU is finished;
and judging whether the communication of the polling chain is normal or not, if not, switching the RTU with abnormal communication of the current bus to another bus to continuously maintain the communication, and finishing the stable communication between the RTU and the bus.
2. The electric power telecontrol terminal bus communication load balancing algorithm according to claim 1, characterized in that whether the communication of the polling chain is normal is judged, and if not, the method specifically comprises: polling the RTU chain through the polling chain, judging whether the state of the bus connected with the RTU at present is abnormal or not based on the polling result, if not, polling again, judging whether the state of the other bus connected with the RTU is abnormal or not, and if not, polling again for judging until the state of the set bus connected with the RTU is abnormal.
3. The power telecontrol terminal bus communication load balancing algorithm according to claim 2, characterized in that the polling specifically comprises multiple polling, wherein the number of polling specifically corresponds to the number of bus bars, the first round of polling is used for marking the bus to which the RTU in an abnormal state is currently connected, and until the multiple polling is completed, the query result is formed by combining the marking results of the multiple polling.
4. The power telecontrol terminal bus communication load balancing algorithm according to claim 1, wherein if the bus state of the polling chain is determined to be normal, the determining process is as follows:
and judging whether the bus state of the polling chain is normal or not, if so, returning to the RTU1 to inquire again until the bus state of the polling chain is judged to be abnormal.
5. The electric telecontrol terminal bus communication load balancing algorithm according to claim 1, further comprising distributing a bus with a communication load exceeding a set value to other buses through load balancing based on the query result, so that the communication loads of the respective buses are balanced with each other.
6. The electric telecontrol terminal bus communication load balancing algorithm according to any one of claims 1-5, characterized in that the polling chain is specifically composed of a communication manager, an RTU chain and a plurality of buses.
7. The power telecontrol terminal bus communication load balancing algorithm of claim 6, wherein the RTU chain is set to include N RTUs, which are divided into RTU1, RTU2, \8230andRTUN, and the communication manager is connected with the N RTUs through a plurality of buses.
8. The electric telecontrol terminal bus communication load balancing algorithm according to claim 7, wherein the number of the set buses is n, and the set buses are divided into bus1, bus2, \8230andbusn, and the communication manager is in communication connection with RTU1, RTU2, \8230andRTUN through bus 1; the bus2 is simultaneously in communication connection with RTU1, RTU2, \ 8230and RTUN; 8230; and the system is in communication connection with RTU1, RTU2, \8230andRTUN through the busn at the same time.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the power telecontrol terminal bus communication load balancing algorithm according to any of claims 1-8 when executing said computer program.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, implements the steps of the power telecontrol terminal bus communication load balancing algorithm according to any of the claims 1-8.
CN202211463795.0A 2022-11-22 2022-11-22 Electric power telecontrol terminal bus communication load balancing algorithm, equipment and storage medium Pending CN115776687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211463795.0A CN115776687A (en) 2022-11-22 2022-11-22 Electric power telecontrol terminal bus communication load balancing algorithm, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211463795.0A CN115776687A (en) 2022-11-22 2022-11-22 Electric power telecontrol terminal bus communication load balancing algorithm, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115776687A true CN115776687A (en) 2023-03-10

Family

ID=85389645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211463795.0A Pending CN115776687A (en) 2022-11-22 2022-11-22 Electric power telecontrol terminal bus communication load balancing algorithm, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115776687A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116841241A (en) * 2023-09-01 2023-10-03 浙江国利信安科技有限公司 Industrial control system, control method, and computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116841241A (en) * 2023-09-01 2023-10-03 浙江国利信安科技有限公司 Industrial control system, control method, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN110967969B (en) High availability industrial automation system and method for transmitting information by the same
CN109547875B (en) FC switching network arbitrary port access design method
CN115776687A (en) Electric power telecontrol terminal bus communication load balancing algorithm, equipment and storage medium
CN111246406A (en) Short message sending method, system, storage medium and terminal equipment
CN112630557A (en) Equipment state detection method, device, equipment and medium
CN116471165A (en) Mechanism for identifying the cause of a link outage
CN111062066B (en) Method for preventing data loss of solid state disk and data storage system
CN113645048B (en) Network card switching method and device and field programmable gate array FPGA
CN104168145B (en) A kind of system and method that radio upgrade is carried out to wireless communication unit
CN111277440B (en) Network device
CN112068963A (en) Distributed scheduling system of embedded system
CN116319670A (en) Method and system for automatically switching multi-domain name IP in charging and battery-changing cabinet
CN114189471B (en) Cross-equipment link aggregation group active-standby configuration method, system, terminal and storage medium
JP2017069863A (en) Communication system, communication method, and program
CN114567524A (en) Communication system and method based on dynamic gateway
CN100394384C (en) Method and system for on-line updating of network
CN113434604A (en) Time sequence database synchronization method, system, equipment and storage medium
CN112187937A (en) Method and device for removing pairing, terminal equipment and storage medium
CN111064609A (en) Master-slave switching method and device of message system, electronic equipment and storage medium
CN104050199A (en) Data transmission method and electronic equipment
KR100274848B1 (en) Network management method for network management system
CN111064608A (en) Master-slave switching method and device of message system, electronic equipment and storage medium
EP4311075A1 (en) Uninterruptable power supply information communication system
CN109961261A (en) A kind of collaborative management method and system of the unified cooperation office of intelligence
CN116203855B (en) Method, device, equipment and storage medium for controlling bin space of battery-changing cabinet

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination