Communication management machine, method for communication between communication management machine and service master station, and computer device

By implementing the network card switching mechanism in the communication management machine, the problem of poor communication stability between the communication management machine and the main station is solved, and the high reliability of the communication link is ensured.

CN119788501APending Publication Date: 2025-04-08XUCHANG XJ SOFTWARE TECHNOLOGIES LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411831482.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In the prior art, the communication stability between the communication management machine and the main station is poor, and communication interruption is easily caused by network card failure or other problems.

Method used

In the communication management machine, one network card communicates with multiple service master stations at the same time. When the communication links of the network card are all faulty, switch to other network cards to ensure that the communication link between the communication management machine and the service master station remains stable at all times.

Benefits of technology

Through the network card switching mechanism, the problem of poor communication stability between the communication management machine and the main station is solved, ensuring high reliability of the communication link.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788501A_ABST
    Figure CN119788501A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of electric power communication, and particularly relates to a communication management machine, a communication method of the communication management machine and a service master station and a computer device. The method comprises the following steps: in the process that one network card of a communication management machine communicates with at least two service master stations, when the states of communication links between the communication management machine and all the service master stations communicating with the communication management machine are all faults, switching the current network card to one of the other network cards, and communicating with all service master stations through the switched network card. According to the invention, the communication links between the communication management machine and the master stations are reset, the network card of the communication management machine is communicated with a plurality of service master stations at the same time, when the communication links between the network card and the service master stations all fail, the network card fails, and at the moment, the communication links between the network card and the service master stations fail. And other network cards of the communication management machine are switched to establish communication links with the service master stations again. According to the invention, the problem of poor communication stability between the communication management machine and the master station in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electric power communication, and in particular relates to a communication management machine and a method for communicating with a service master station and a computer device. Background Art

[0002] In the power system, there are often multiple power communication protocols to achieve communication and data exchange between power equipment. In this environment where multiple communication protocols coexist, the conversion between different protocols can be achieved through the communication management machine.

[0003] The IP of the communication management machine and the main station IP are usually not in the same network segment. Usually, routing information is added in the management machine to route IP1 to IP3 and IP2 to IP4. Static routing forwarding is used to enable the two network cards of the communication management machine to communicate with the two service main stations respectively. The two main stations can be either two redundant main stations or two completely different service main stations, such as Figure 1 As shown. In this communication mode, if a network card of the communication management machine is damaged, the network cable is loose, or other faults occur, the communication of the corresponding link will be interrupted. At this time, the communication master station corresponding to the faulty link will not be able to communicate with the communication management machine, and only one service master station can communicate with the communication management machine normally. Therefore, there is a problem of poor communication stability between the communication management machine and the master station in the prior art. Summary of the invention

[0004] The purpose of the present invention is to provide a communication management machine and a method and computer device for communicating with a service main station, so as to solve the problem of poor communication stability between the communication management machine and the main station in the prior art.

[0005] To solve the above technical problems, the present invention provides a technical solution for a method for a communication management machine to communicate with a business master station: a method for a communication management machine to communicate with a business master station, the method comprising: in the process of one of the network cards of the communication management machine communicating with at least two business master stations, when the states of the communication links between the communication management machine and all the business master stations communicating with it are all faulty, the current network card is switched to one of the remaining network cards, so that the communication management machine communicates with all the business master stations through the switched network card.

[0006] The beneficial effect of the above technical solution is that the technical solution of the method for communication between a communication management machine and a service master station of the present invention belongs to an improved invention. The present invention resets the communication link between the communication management machine and the master station, and communicates with multiple service master stations at the same time through a network card of the communication management machine. When the communication links between the network card and these service master stations are all faulty, it means that the network card has failed. At this time, it is sufficient to switch to other network cards of the communication management machine to re-establish communication links with these service master stations. The present invention solves the problem of poor communication stability between the communication management machine and the master station in the prior art.

[0007] Furthermore, the current network card is switched to one of the remaining network cards in the following manner: the routing information of each network card is re-set one by one in the communication management machine, and the last network card for which the routing information is set is used as the switched network card; Or only the routing information of one of the remaining network cards is reset, and the network card is used as the switched network card.

[0008] Furthermore, the state of the communication link is obtained by periodic detection.

[0009] The present invention also provides a technical solution for a computer device: a computer device, comprising a processor, wherein the processor is used to execute a computer program to implement the steps of the method for communication between a communication management machine and a service master station as described above.

[0010] The present invention also provides a technical solution for a communication management machine: a communication management machine, comprising at least two network cards for communicating with a service master station, and further comprising: The service link detection module is used to detect the status of the communication link between the communication management machine and all the service master stations communicating with it during the process of one of the network cards communicating with at least two service master stations; Network card switching module: used to switch the current network card to one of the remaining network cards when the communication link status between the communication management machine and all the business main stations communicating with it is faulty, and communicate with all the business main stations through the switched network card.

[0011] The beneficial effect of the above technical solution is that the technical solution of a communication management machine of the present invention belongs to an improved invention. The present invention resets the communication link between the communication management machine and the main station, and communicates with multiple service main stations at the same time through a network card of the communication management machine. When the communication links between the network card and these service main stations are all faulty, it means that the network card has failed. At this time, it is sufficient to switch to other network cards of the communication management machine to re-establish communication links with these service main stations. The present invention solves the problem of poor communication stability between the communication management machine and the main station in the prior art.

[0012] Furthermore, the network card switching module switches the current network card to one of the remaining network cards by resetting the routing information of each network card one by one in the communication management machine, and taking the last network card for which the routing information is set as the switched network card; Or only the routing information of one of the remaining network cards is reset, and the network card is used as the switched network card.

[0013] Furthermore, the state of the communication link is obtained by periodic detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a schematic diagram of the topological connection between the communication management machine and the service master station in the prior art; Figure 2 A schematic diagram of the topological connection between the communication management machine and the service master station in the communication management machine example of the present invention; Figure 3 It is a schematic diagram of the composition of the communication management machine in the embodiment of the communication management machine of the present invention. DETAILED DESCRIPTION

[0015] The present invention resets the communication link between the communication management machine and the main station, and communicates with multiple service main stations simultaneously through a network card of the communication management machine. When the communication links between the network card and these service main stations all fail, it indicates that the network card fails. At this time, other network cards of the communication management machine can be switched to re-establish communication links with these service main stations. The present invention solves the problem of poor communication stability between the communication management machine and the main station in the prior art.

[0016] Communication management machine embodiment: This embodiment is described by taking two network cards and two service master stations as an example. Figure 3 As shown, it includes a data processing module, a data transfer module, a service link detection module and a routing switching module (ie, a network card switching module).

[0017] Among them, the data processing module includes a data access module and a business logic processing module. The data access module collects data information of the communication management machine to the downstream access device; the business logic processing module processes the data, the business logic processing module processes the parsed commands, and the data processing module converts the parsed commands into messages and sends them to the corresponding devices.

[0018] The data transfer module forwards the data to the service master station, and at the same time, the data transfer module receives and parses the control commands from the service master station.

[0019] The data transfer module and the data processing module are both basic modules of the communication management machine and will not be introduced in detail here.

[0020] The service link detection module periodically detects the service link status between the data transfer module of the management machine and the service master station. When it is detected that the status of the communication link between the communication management machine and all the service master stations communicating with it is faulty, the fault information is sent to the routing switching module.

[0021] After receiving the fault information from the service link detection module, the routing switching module re-sets the routing information of each network card one by one in the communication management machine, and the last network card with routing information set is the switched network card. The communication management machine communicates with all service master stations through the switched network card.

[0022] This is because in practice it is found that if two network cards are routed to the same IP, the Linux operating system will use the last network card with routing information set to communicate with the main station.

[0023] In other implementations, only the routing information of the network card that is to communicate with the service master station may be set, and no routing information is set for other network cards.

[0024] The above modules of the communication management machine cooperate with each other to realize the method of communication between the communication management machine and the service master station as described below.

[0025] A method for communication between a communication management machine and a service master station, such as Figure 2 As shown, on the physical link, the two network cards of the communication management machine are connected to the two service master stations at the same time, but during communication, only one of the network cards communicates with both master stations. By monitoring the communication status between the communication management machine and the two service master stations, when it is detected that the service links between the communication management machine and the two service master stations are interrupted, switch to another network card to communicate with the service master station again. The specific steps are as follows: (1) Configure two identical export programs inside the communication management machine, bind them to the two network cards of the communication management machine respectively, and specify the target network IP as the IP of the two service master stations; (2) Set the routing information of the two network cards in the communication management machine operating system, first route IP1 to IP3 and IP4, then route IP2 to IP3 and IP4. At this time, the communication management machine only uses the routing information of the last network card set, that is, it communicates with the two service master stations only through the ETH2 network card; (3) Periodically monitor the communication link status between the communication management machine and the two service master stations; (4) If it is monitored that the communication link status between the communication management machine and the two service master stations is faulty, the routing information of the two network cards of the communication management machine is reset, first routing IP2 to IP3 and IP4, and then routing IP1 to IP3 and IP4, so that the communication management machine can communicate with the service master station through the ETH1 network card. In this way, the switch from the ETH2 network card to the ETH1 network card is completed.

[0026] In other implementations, the number of network cards may not be limited to two network cards, such as three network cards, four network cards, etc. When the number of network cards is more than three, when switching the network card, it may be randomly switched to one of the remaining network cards, or the next network card may be switched according to a pre-set network card sequence, or other switching methods are used, which are not limited in the present invention.

[0027] In other implementations, the number of service master stations may not be limited to two, but may also be three, four, or five.

[0028] In other implementations, the network card may be switched without using the method described in (4) above, and other dynamic routing switching methods in the prior art may be used.

[0029] Embodiment of the method for communication between the communication management machine and the service master station: A method for a communication management machine to communicate with a service master station, the method comprising: during the process of one of the network cards of the communication management machine communicating with at least two service master stations; when the states of the communication links between the communication management machine and all the service master stations communicating with it are all faulty, the current network card is switched to one of the remaining network cards, and the switched network card is used to communicate with all the service master stations. The specific method for the communication management machine to communicate with the service master station has been introduced in sufficient detail in the above communication management machine, and will not be repeated here.

[0030] Computer device embodiment: A computer device includes a processor, the processor is used to execute a computer program to implement the steps of the method for communication between the communication management machine and the service master station as described above. The specific method for communication between the communication management machine and the service master station has been introduced in detail in the above communication management machine, and will not be repeated here.

[0031] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments without creative work, or replace some of the technical features therein with equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for communication between a communication management machine and a service master station, characterized in that: The method includes: during the process of one of the network cards of the communication management machine communicating with at least two business main stations, when the status of the communication links between the communication management machine and all the business main stations communicating with it are all faulty, the current network card is switched to one of the remaining network cards, so that the communication management machine communicates with all the business main stations through the switched network card.

2. The method for communication between a communication management machine and a service master station according to claim 1, characterized in that: The method of switching the current network card to one of the remaining network cards is: resetting the routing information of each network card one by one in the communication management machine, and taking the last network card with the routing information set as the switched network card; Or only the routing information of one of the remaining network cards is reset, and the network card is used as the switched network card.

3. The method for communication between a communication management machine and a service master station according to claim 1 or 2, characterized in that: The state of the communication link is obtained by periodic detection.

4. A computer device comprising a processor, characterized in that: The processor is used to execute a computer program to implement the steps of the method for communication between a communication management machine and a service master station as described in any one of claims 1 to 3.

5. A communication management machine, comprising at least two network cards for communicating with a service master station, characterized in that: Also includes: The service link detection module is used to detect the status of the communication link between the communication management machine and all the service master stations communicating with it during the process of one of the network cards communicating with at least two service master stations; Network card switching module: used to switch the current network card to one of the remaining network cards when the communication link status between the communication management machine and all the business main stations communicating with it is faulty, and communicate with all the business main stations through the switched network card.

6. The communication management machine according to claim 5, characterized in that: The network card switching module switches the current network card to one of the remaining network cards in the following manner: resetting the routing information of each network card one by one in the communication management machine, and taking the last network card with routing information set as the switched network card; Or only the routing information of one of the remaining network cards is reset, and the network card is used as the switched network card.

7. The communication management machine according to claim 5 or 6, characterized in that: The state of the communication link is obtained by periodic detection.