CN110677302B - Communication control method, device and system - Google Patents
Communication control method, device and system Download PDFInfo
- Publication number
- CN110677302B CN110677302B CN201910957483.7A CN201910957483A CN110677302B CN 110677302 B CN110677302 B CN 110677302B CN 201910957483 A CN201910957483 A CN 201910957483A CN 110677302 B CN110677302 B CN 110677302B
- Authority
- CN
- China
- Prior art keywords
- station
- master station
- master
- target
- communication link
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a communication control method, a device and a system, comprising the following steps: establishing a communication link between each master station and a target slave station and a communication link between any two master stations; determining one main master station from at least two master stations, and taking the rest as standby master stations; activating a communication link between the master station and the target slave station to enable the master station to perform information interaction with the target slave station; under the condition that a communication link between the main master station and the target slave station fails, the main master station is controlled to send a main connection switching instruction to the target standby master station; and after receiving the main connection switching instruction, the target standby master station controls the communication link between the target standby master station and the target slave station to be activated, and takes the target standby master station as a new main master station to perform information interaction with the target slave station. Under the condition that a communication link between the master station and the target slave station fails, the target slave station performs data interaction through the new master station, and the reliability of communication between the master station and the slave station is improved.
Description
Technical Field
The present invention relates to the field of industrial control technologies, and in particular, to a communication control method, device, and system.
Background
In the industrial control process, it is generally required to implement industrial control by combining a master station with a slave station, the master station communicates with a field device through the slave station, the master station is generally integrated with a central processing unit function, the slave station is generally not provided with the function, the slave station is generally used as a bridge for communicating between the master station and the field device, one master station is generally connected with a plurality of slave stations, and the plurality of slave stations transmit communication data received from the field device to the master station for analysis and processing.
However, when a communication link between the master station and the slave station fails, communication data in the slave station cannot be transmitted to the master station for analysis and processing, which leads to a large-area communication failure.
Disclosure of Invention
In view of the above, the present invention provides a communication control method, apparatus and system, so as to improve the reliability of communication between a master station and a slave station.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a communication control method applied to a communication control system, the communication control system comprising at least: a communication controller, at least two primary stations and at least one secondary station, the method comprising:
establishing a communication link between each master station and a target slave station;
establishing a communication link between any two master stations;
determining one main master station from at least two master stations, and taking the rest master stations as standby master stations;
activating a communication link between the master station and the target slave station, so that information interaction is carried out between the master station and the target slave station;
under the condition that a communication link between the main master station and the target slave stations fails, the main master station is controlled to send a main connection switching instruction to one of the target standby master stations;
and after the target standby master station receives the master connection switching instruction, controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station.
Preferably, the process of determining one primary master station from at least two master stations, and the rest master stations as standby master stations includes:
determining a primary station for establishing a communication link between a first secondary station and a target secondary station as a primary station, and taking the rest primary stations as standby primary stations;
and/or;
and determining the master station with the highest priority from at least two master stations, determining the master station with the highest priority as the main master station, and taking the rest master stations as standby master stations.
Preferably, the process of controlling the master station to send the master connection switching instruction to one of the standby master stations if the communication link between the master station and the target slave stations fails includes:
under the condition that a communication link between a main master station and a target slave station fails, determining a standby master station with the highest priority in the standby master stations, and taking the standby master station as the target standby master station;
and controlling the main master station to send a main connection switching instruction to the target standby master station.
Preferably, after the target standby master station receives the master connection switching instruction, the process of controlling the target standby master station to activate a communication link with the target slave station, using the target standby master station as a new master station, and performing information interaction with the target slave station includes:
after receiving a main connection switching instruction, a target standby master station controls the target standby master station to modify own master station identification into a main master station identification, and modifies own communication link priority identification into a communication link priority identification corresponding to the main master station;
the standby master station of the control target sends an instruction for activating a communication link to the slave station of the target;
and after the target standby master station receives the response of the target slave station replying to the approval activation, controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station.
Preferably, the establishing a communication link between each primary station and the target secondary station comprises:
a transmission control protocol, TCP, communication link is established between each primary station and the target secondary station.
Preferably, the establishing a communication link between any two primary stations includes:
a universal asynchronous receiver transmitter UART communication link is established between any two master stations.
A communication control apparatus applied to a communication control system including at least: a communications controller, at least two primary stations and at least one secondary station, the apparatus comprising:
a first communication link establishment unit for establishing a communication link between each master station and a target slave station;
a second communication link establishing unit for establishing a communication link between any two master stations;
the master station distinguishing unit is used for determining one main master station from at least two master stations, and the rest master stations are used as standby master stations;
the first communication link activating unit is used for activating a communication link between the master station and the target slave station so as to enable information interaction between the master station and the target slave station;
a master connection switching instruction sending unit, configured to control, when a communication link between a master station and a target slave station fails, the master station to send a master connection switching instruction to one of target standby master stations in the standby master stations;
and the second communication link activating unit is used for controlling the target standby master station to activate a communication link with the target slave station after the target standby master station receives the master connection switching instruction, and using the target standby master station as a new master station to perform information interaction with the target slave station.
The master station distinguishing unit includes:
a first master station area subunit, configured to determine a first master station that establishes a communication link with a target slave station as a master station, and use the remaining master stations as standby master stations;
and/or;
and the second master station area sub-unit is used for determining the master station with the highest priority from at least two master stations, determining the master station with the highest priority as the master station, and taking the rest master stations as the standby master stations.
The second communication link activation unit includes:
the device comprises an identification modification unit, a master station identification generation unit and a communication link priority identification unit, wherein the identification modification unit is used for controlling a target standby master station to modify own master station identification into a master station identification after receiving a master connection switching instruction, and modifying own communication link priority identification into a communication link priority identification corresponding to the master station;
an instruction sending control unit for controlling the target standby master station to send an instruction for activating a communication link to the target slave station;
and the second communication link activation subunit is used for controlling the target standby master station to activate the communication link between the target standby master station and the target slave station after the target standby master station receives the response of the target slave station replying to the approval activation, and using the target standby master station as a new master station to perform information interaction with the target slave station.
A communication control system, the communication control system comprising at least: a communication controller, at least two master stations and at least one slave station;
the communication controller is used for:
establishing a communication link between each master station and a target slave station;
establishing a communication link between any two master stations;
determining one main master station from at least two master stations, and taking the rest master stations as standby master stations;
activating a communication link between the master station and the target slave station, so that information interaction is carried out between the master station and the target slave station;
under the condition that a communication link between the main master station and the target slave stations fails, the main master station is controlled to send a main connection switching instruction to one of the target standby master stations;
and after the target standby master station receives the master connection switching instruction, controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station.
As can be seen from the above technical solution, compared with the prior art, the present invention provides a communication control method, device and system, where the method is applied to a communication control system, and the communication control system at least includes: a communication controller, at least two primary stations and at least one secondary station, the method comprising: establishing a communication link between each master station and a target slave station; establishing a communication link between any two master stations; determining one main master station from at least two master stations, and taking the rest master stations as standby master stations; activating a communication link between the master station and the target slave station, so that information interaction is carried out between the master station and the target slave station; under the condition that a communication link between the main master station and the target slave stations fails, the main master station is controlled to send a main connection switching instruction to one of the target standby master stations; and after the target standby master station receives the master connection switching instruction, controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station. Because the method comprises at least two master stations, a target slave station and at least two master stations can be established to establish a communication link, so that under the condition that the communication link between the master station and the target slave stations fails, the master station is controlled to send a master connection switching instruction to one of the target standby master stations; and controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station. The target slave station can also perform data interaction through the new master station under the condition that the communication link between the master station and the target slave station fails, so that the reliability of communication between the master station and the slave station is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an embodiment of a communication control method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an embodiment of another communication control method according to the embodiment of the present invention;
fig. 3 is a block diagram of a communication control device according to an embodiment of the present invention.
Detailed Description
The technical solutions of 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 apparent that the described embodiments are only one embodiment of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Because a master station is usually connected with a plurality of target slave stations at present, but one target slave station can only be correspondingly connected with one master station, under the condition that a communication link between the master station and the target slave station fails, communication data in the target slave station cannot be transmitted to the master station for analysis and processing, so that a large-area communication failure can be caused, and based on the analysis and processing, how to improve the reliability of communication between the master station and the target slave station becomes a technical problem to be solved at present.
Based on the above problems, the embodiments of the present invention provide a communication control method, which is applied to a communication control system, the communication control system at least including: a communication controller, at least two primary stations and at least one secondary station, the method comprising: establishing a communication link between each master station and a target slave station; establishing a communication link between any two master stations; determining one main master station from at least two master stations, and taking the rest master stations as standby master stations; activating a communication link between the master station and the target slave station, so that information interaction is carried out between the master station and the target slave station; under the condition that a communication link between the main master station and the target slave stations fails, the main master station is controlled to send a main connection switching instruction to one of the target standby master stations; and after the target standby master station receives the master connection switching instruction, controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station. Because the method comprises at least two master stations, a target slave station and at least two master stations can be established to establish a communication link, so that under the condition that the communication link between the master station and the target slave stations fails, the master station is controlled to send a master connection switching instruction to one of the target standby master stations; and controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station. The target slave station can also perform data interaction through the new master station under the condition that the communication link between the master station and the target slave station fails, so that the reliability of communication between the master station and the slave station is improved.
As shown in fig. 1, a flow chart of one embodiment of a communication control method of the present application is shown, where the communication control method is applied to a communication control system, and the communication control system includes at least: in the communication control system disclosed in the embodiment of the present invention, one slave station may be correspondingly connected to at least two master stations, and one master station may be correspondingly connected to at least one slave station, referring to fig. 1, the communication control method specifically includes the following steps:
s100, establishing a communication link between each master station and a target slave station;
it should be noted that, in the embodiment of the present invention, the target slave station may specifically include a certain slave station, and may further include a plurality of slave stations, where each master station may establish a communication link with at least one slave station in the plurality of slave stations, and the embodiment of the present invention is not limited specifically.
It should be noted that, in order to ensure the communication rate, in the embodiment of the present invention, a TCP (Transmission Control Protocol ) communication link between each master station and the target slave station is established. Of course, in the embodiment of the present invention, other forms of communication links may be established between the master station and the target slave station, where all other forms of communication links belong to the protection scope of the embodiment of the present invention, and the embodiment of the present invention is not limited specifically.
S110, establishing a communication link between any two master stations;
it should be noted that, in the embodiment of the present invention, after establishing a communication link between any two master stations, any two master stations may perform communication between any two master stations, and in order to ensure communication stability and avoid a situation of connection interruption, the present application may establish a UART (Universal Asynchronous Receiver/transceiver) communication link between any two master stations. Of course, in the embodiment of the present invention, other forms of communication links may be established between any two master stations, where all other forms of communication links belong to the protection scope of the embodiment of the present invention, and the embodiment of the present invention is not limited specifically.
S120, determining one main master station from at least two master stations, wherein the rest master stations are used as standby master stations;
it should be noted that, in the embodiment of the present invention, since a communication link is established between any two master stations, the standby master station may send some communication information to the main master station for data verification, and if the result of the main master station verifying that the communication information sent by the standby master station is inconsistent with the communication information stored by the main master station, the communication information stored by the main master station is used as the reference.
Optionally, the communication information sent by the standby master station at least includes: the communication configuration, the link status, the real-time data, etc. may further include other types of communication information, and embodiments of the present invention are not limited in detail.
The communication connection between the master station and the slave station is a master connection, the connection between the backup master station and the slave station is a backup connection, the slave station is preferentially connected to the master station, and when the communication connection between the slave station and the master station fails, the slave station switches the connection to the communication link to communicate with the backup master station.
The embodiment of the invention provides the following two specific modes of determining one main master station from at least two master stations and taking the rest master stations as standby master stations:
a: determining a primary station for establishing a communication link between a first secondary station and a target secondary station as a primary station, and taking the rest primary stations as standby primary stations;
in the process that a plurality of master stations sequentially establish communication links with a target slave station, the master station which establishes the communication link with the target slave station is determined to be the master station, and the rest master stations are taken as standby master stations.
B: and determining the master station with the highest priority from at least two master stations, determining the master station with the highest priority as the main master station, and taking the rest master stations as standby master stations.
It should be noted that, the highest priority may refer to the highest connection priority of the master station, the highest performance priority of the master station, and the like, and the embodiment of the present invention is not limited in particular.
It should be noted that, the above two specific ways of determining one primary master station from at least two master stations, and using the remaining master stations as standby master stations may be adopted simultaneously or may be adopted separately, and the embodiment of the present invention is not limited specifically.
Of course, other manners may be adopted in the embodiment of the present invention to determine one primary master station from at least two master stations, and the remaining master stations are used as standby master stations.
Optionally, in the embodiment of the present invention, the number of standby master stations is not specifically limited, for example: there may be up to three, but also other numbers.
It should be noted that, in the embodiment of the present invention, priority is also provided between the standby master stations, and the priority of the standby master stations may be determined according to the sequence in which the standby master stations establish communication links with the slave stations, and the priority of the standby master stations may also be determined according to other performances of the standby master stations.
S130, activating a communication link between a master station and a target slave station, so that information interaction is carried out between the master station and the target slave station;
in the embodiment of the invention, the link activation request information can be sent to the target slave station through the master station, and after the target slave station returns the response information agreeing to the link activation request information, the communication link between the master station and the target slave station is activated, and the information interaction is carried out between the master station and the target slave station. The master station may send a control command to the target slave station, and the target slave station may send real-time data to the master station in addition to responding to the control command sent by the master station.
S140, under the condition that a communication link between the main master station and the target slave stations fails, controlling the main master station to send a main connection switching instruction to one of the target standby master stations;
in the case of an interruption or failure of the communication link between the primary master station and the target slave stations, the primary master station may be controlled to send a primary connection switching instruction to one of the target backup master stations.
Optionally, in the embodiment of the present invention, the target standby master station may be the standby master station with the highest priority in the standby master stations, and in the case that a communication link between the master station and the target slave station fails, the standby master station with the highest priority in the standby master stations is determined and is used as the target standby master station; and controlling the main master station to send a main connection switching instruction to the target standby master station.
And S150, after the target standby master station receives the master connection switching instruction, controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station.
After the target standby master station receives the master connection switching instruction, the target standby master station is controlled to send communication link activation request information to the target slave station, and after the target standby master station receives the consent response information sent by the target slave station under the condition that the target slave station is judged to be in a communication disconnection state with the master station, the target standby master station successfully activates a communication link between the target standby master station and the target slave station, and at the moment, the target standby master station is used as a new master station to perform information interaction with the target slave station.
In the embodiment of the invention, although the slave station establishes a communication link with each master station, the slave station can only send real-time data to the master station after the communication link between the master station and the target slave station is activated and execute the data command sent by the master station, and the slave station only sends real-time data to the master station and executes the data command sent by the master station because the communication link between the standby master station and the target slave station is not activated, and the slave station only replies an ACK response to the rest standby master stations so as to reduce the data quantity transmitted on the network.
Because the embodiment of the invention comprises at least two master stations, the target slave station and the at least two master stations can establish a communication link, so that under the condition that the communication link between the master station and the target slave station fails, the master station is controlled to send a master connection switching instruction to one of the target standby master stations; and controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station. The target slave station can also perform data interaction through the new master station under the condition that the communication link between the master station and the target slave station fails, so that the reliability of communication between the master station and the slave station is improved.
As shown in fig. 2, there is shown a schematic flow chart of another communication control method provided in the present application, where the communication control method is applied to a communication control system, and the communication control system at least includes: in the communication control system disclosed in the embodiment of the present invention, one slave station may be correspondingly connected to at least two master stations, and one master station may be correspondingly connected to at least one slave station, referring to fig. 2, the communication control method specifically includes the following steps:
s200, establishing a communication link between each master station and a target slave station;
s210, establishing a communication link between any two master stations;
s220, determining one main master station from at least two master stations, wherein the rest master stations are used as standby master stations;
s230, activating a communication link between the master station and the target slave station, so that information interaction is carried out between the master station and the target slave station;
s240, under the condition that a communication link between the main master station and the target slave stations fails, controlling the main master station to send a main connection switching instruction to one of the target standby master stations;
it should be noted that, in this embodiment, the steps S200 to S240 are the same as the steps S100 to S140 in the above embodiment, and specific contents may be correspondingly referred to each other, which is not repeated in this embodiment.
S250, after a target standby master station receives a master connection switching instruction, controlling the target standby master station to modify own master station identification into a master station identification, and modifying own communication link priority identification into a communication link priority identification corresponding to the master station;
it should be noted that, in the embodiment of the present invention, two identification bits are stored in the master station, where one identification bit is used to indicate whether the master station is a primary master station or a backup master station, and 0 and 1 may be used to indicate that the master station is a primary master station, for example, 0 indicates that the master station is a primary master station, 1 indicates that the master station is a backup master station, or 1 indicates that the master station is a primary master station, and 0 indicates that the master station is a backup master station.
The other identification bit is used for indicating the priority of the communication link of the master station, the priority of the communication link of the master station is 0, the priority of the communication link of the standby master station can be divided according to the priority of the standby master station, for example, 1-3, and the priority of the communication link of each standby master station cannot be the same.
S260, controlling the target standby master station to send an instruction for activating a communication link to the target slave station;
and S270, after receiving the response of the target standby master station replying to the approval activation, controlling the target standby master station to activate a communication link between the target standby master station and the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station.
And after the target standby master station receives the response of the target slave station replying to the approval activation, controlling the target standby master station to activate a communication link between the target standby master station and the target slave station, and converting the role of the target standby master station into a new master station so as to perform information interaction with the target slave station.
Optionally, if the target standby master station sends an instruction for activating the communication link to the target slave station under the condition that the communication link between the master station and the target slave station fails, the target standby master station receives a response returned by the target slave station for deactivation, and at this time, the target standby master station cannot be converted into a new master station.
According to the embodiment of the invention, after the target standby master station receives the main connection switching instruction, the target standby master station is controlled to modify the master station identifier of the target standby master station into the main master station identifier, and the communication link priority identifier of the target standby master station is modified into the communication link priority identifier corresponding to the main master station; the standby master station of the control target sends an instruction for activating a communication link to the slave station of the target; and after the target standby master station receives the response of the target slave station replying to the approval activation, controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station. Thus, under the condition that a communication link between the main master station and the target slave stations fails, the main master station is controlled to send a main connection switching instruction to one of the target standby master stations; and controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station. The target slave station can also perform data interaction through the new master station under the condition that the communication link between the master station and the target slave station fails, so that the reliability of communication between the master station and the slave station is improved.
Corresponding to a communication control method of the application, the application also provides a communication control device. As shown in fig. 3, which shows a schematic view of a composition structure of a communication control device of the present application, the communication control device is applied to a communication control system, and the communication control system includes at least: a communications controller, at least two primary stations and at least one secondary station, the apparatus comprising:
a first communication link establishment unit 100 for establishing a communication link between each master station and a target slave station;
a second communication link establishment unit 110 for establishing a communication link between any two master stations;
a master station distinguishing unit 120, configured to determine one master station from at least two master stations, and the remaining master stations serve as standby master stations;
a first communication link activating unit 130, configured to activate a communication link between the master station and the target slave station, so that information interaction is performed between the master station and the target slave station;
a primary connection switching instruction sending unit 140, configured to control, in a case where a communication link between the primary master station and the target slave stations fails, the primary master station to send a primary connection switching instruction to one of the target backup master stations;
and the second communication link activating unit 150 is configured to control the target standby master station to activate a communication link with the target slave station after the target standby master station receives the master connection switching instruction, and perform information interaction with the target slave station by using the target standby master station as a new master station.
The master station distinguishing unit includes:
a first master station area subunit, configured to determine a first master station that establishes a communication link with a target slave station as a master station, and use the remaining master stations as standby master stations;
and/or;
and the second master station area sub-unit is used for determining the master station with the highest priority from at least two master stations, determining the master station with the highest priority as the master station, and taking the rest master stations as the standby master stations.
The main connection switching instruction transmitting unit includes:
the target standby master station determining unit is used for determining the standby master station with the highest priority in the standby master stations and taking the standby master station as the target standby master station under the condition that a communication link between the main master station and the target slave station fails;
and the main connection switching instruction sending subunit is used for controlling the main master station to send the main connection switching instruction to the target standby master station.
The second communication link activation unit includes:
the device comprises an identification modification unit, a master station identification generation unit and a communication link priority identification unit, wherein the identification modification unit is used for controlling a target standby master station to modify own master station identification into a master station identification after receiving a master connection switching instruction, and modifying own communication link priority identification into a communication link priority identification corresponding to the master station;
an instruction sending control unit for controlling the target standby master station to send an instruction for activating a communication link to the target slave station;
and the second communication link activation subunit is used for controlling the target standby master station to activate the communication link between the target standby master station and the target slave station after the target standby master station receives the response of the target slave station replying to the approval activation, and using the target standby master station as a new master station to perform information interaction with the target slave station.
The first communication link establishment unit is specifically configured to: a transmission control protocol, TCP, communication link is established between each primary station and the target secondary station.
The second communication link establishment unit is specifically configured to: a universal asynchronous receiver transmitter UART communication link is established between any two master stations.
Optionally, corresponding to a communication control method of the present application, the present application further provides a communication control system. The communication control system includes at least: a communication controller, at least two master stations and at least one slave station;
the communication controller is used for:
establishing a communication link between each master station and a target slave station;
establishing a communication link between any two master stations;
determining one main master station from at least two master stations, and taking the rest master stations as standby master stations;
activating a communication link between the master station and the target slave station, so that information interaction is carried out between the master station and the target slave station;
under the condition that a communication link between the main master station and the target slave stations fails, the main master station is controlled to send a main connection switching instruction to one of the target standby master stations;
and after the target standby master station receives the master connection switching instruction, controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station.
To sum up:
the invention provides a communication control method, a device and a system, wherein the method is applied to a communication control system, and the communication control system at least comprises the following steps: a communication controller, at least two primary stations and at least one secondary station, the method comprising: establishing a communication link between each master station and a target slave station; establishing a communication link between any two master stations; determining one main master station from at least two master stations, and taking the rest master stations as standby master stations; activating a communication link between the master station and the target slave station, so that information interaction is carried out between the master station and the target slave station; under the condition that a communication link between the main master station and the target slave stations fails, the main master station is controlled to send a main connection switching instruction to one of the target standby master stations; and after the target standby master station receives the master connection switching instruction, controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station. Because the method comprises at least two master stations, a target slave station and at least two master stations can be established to establish a communication link, so that under the condition that the communication link between the master station and the target slave stations fails, the master station is controlled to send a master connection switching instruction to one of the target standby master stations; and controlling the target standby master station to activate a communication link with the target slave station, and using the target standby master station as a new master station to perform information interaction with the target slave station. The target slave station can also perform data interaction through the new master station under the condition that the communication link between the master station and the target slave station fails, so that the reliability of communication between the master station and the slave station is improved.
In the present specification, each embodiment is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, so that the same similarity between the embodiments is enough to refer to each other. For the device disclosed in the embodiment, since the device corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (6)
1. A communication control method, wherein the communication control method is applied to a communication control system, the communication control system comprising at least: a communication controller, at least two primary stations and at least one secondary station, the method comprising:
establishing a Transmission Control Protocol (TCP) communication link between each master station and a target slave station;
establishing a Universal Asynchronous Receiver Transmitter (UART) communication link between any two master stations;
determining one main master station from at least two master stations, and taking the rest master stations as standby master stations; the standby master station sends communication information to the main master station for data verification, and if the main master station verifies that the communication information sent by the standby master station is inconsistent with the communication information stored by the main master station, the communication information stored by the main master station is used as the reference; the communication information comprises communication configuration, link state or real-time data;
activating a communication link between the master station and the target slave station, so that information interaction is carried out between the master station and the target slave station;
under the condition that a communication link between the main master station and the target slave stations fails, the main master station is controlled to send a main connection switching instruction to one of the target standby master stations;
after receiving a main connection switching instruction, a target standby master station controls the target standby master station to modify own master station identification into a main master station identification, and modifies own communication link priority identification into a communication link priority identification corresponding to the main master station;
the standby master station of the control target sends an instruction for activating a communication link to the slave station of the target;
after receiving a response of the target standby master station replying to the target slave station and agreeing to activate, the target standby master station controls a communication link between the target standby master station and the target slave station to activate, and takes the target standby master station as a new master station to perform information interaction with the target slave station;
if the target standby master station sends an instruction for activating the communication link to the target slave station under the condition that the communication link between the master station and the target slave station does not fail, the target standby master station receives a response of deactivation returned by the target slave station, and the target standby master station cannot be converted into a new master station.
2. The method of claim 1, wherein the step of determining one primary master station from the at least two master stations, the remaining master stations acting as backup master stations comprises:
determining a primary station for establishing a communication link between a first secondary station and a target secondary station as a primary station, and taking the rest primary stations as standby primary stations;
and/or;
and determining the master station with the highest priority from at least two master stations, determining the master station with the highest priority as the main master station, and taking the rest master stations as standby master stations.
3. The method of claim 1, wherein the controlling the primary master station to send the primary connection switch command to one of the target backup master stations in the event of a failure of the communication link between the primary master station and the target slave stations comprises:
under the condition that a communication link between a main master station and a target slave station fails, determining a standby master station with the highest priority in the standby master stations, and taking the standby master station as the target standby master station;
and controlling the main master station to send a main connection switching instruction to the target standby master station.
4. A communication control apparatus, the communication control apparatus being applied to a communication control system including at least: a communications controller, at least two primary stations and at least one secondary station, the apparatus comprising:
a first communication link establishing unit for establishing a transmission control protocol, TCP, communication link between each primary station and the target secondary station;
the second communication link establishing unit is used for establishing a universal asynchronous receiver transmitter UART communication link between any two master stations;
the master station distinguishing unit is used for determining one main master station from at least two master stations, and the rest master stations are used as standby master stations; the standby master station sends communication information to the main master station for data verification, and if the main master station verifies that the communication information sent by the standby master station is inconsistent with the communication information stored by the main master station, the communication information stored by the main master station is used as the reference; the communication information comprises communication configuration, link state or real-time data;
the first communication link activating unit is used for activating a communication link between the master station and the target slave station so as to enable information interaction between the master station and the target slave station;
a master connection switching instruction sending unit, configured to control, when a communication link between a master station and a target slave station fails, the master station to send a master connection switching instruction to one of target standby master stations in the standby master stations;
the device comprises an identification modification unit, a master station identification generation unit and a communication link priority identification unit, wherein the identification modification unit is used for controlling a target standby master station to modify own master station identification into a master station identification after receiving a master connection switching instruction, and modifying own communication link priority identification into a communication link priority identification corresponding to the master station;
an instruction sending control unit for controlling the target standby master station to send an instruction for activating a communication link to the target slave station;
the second communication link activating subunit is used for controlling the target standby master station to activate a communication link with the target slave station after the target standby master station receives the response of the target slave station replying to the approval activation, and using the target standby master station as a new master station to perform information interaction with the target slave station;
if the target standby master station sends an instruction for activating the communication link to the target slave station under the condition that the communication link between the master station and the target slave station does not fail, the target standby master station receives a response of deactivation returned by the target slave station, and the target standby master station cannot be converted into a new master station.
5. The apparatus of claim 4, wherein the master station distinguishing unit comprises:
a first master station area subunit, configured to determine a first master station that establishes a communication link with a target slave station as a master station, and use the remaining master stations as standby master stations;
and/or;
and the second master station area sub-unit is used for determining the master station with the highest priority from at least two master stations, determining the master station with the highest priority as the master station, and taking the rest master stations as the standby master stations.
6. A communication control system, the communication control system comprising at least: a communication controller, at least two master stations and at least one slave station;
the communication controller is used for:
establishing a Transmission Control Protocol (TCP) communication link between each master station and a target slave station;
establishing a Universal Asynchronous Receiver Transmitter (UART) communication link between any two master stations;
determining one main master station from at least two master stations, and taking the rest master stations as standby master stations; the standby master station sends communication information to the main master station for data verification, and if the main master station verifies that the communication information sent by the standby master station is inconsistent with the communication information stored by the main master station, the communication information stored by the main master station is used as the reference; the communication information comprises communication configuration, link state or real-time data; activating a communication link between the master station and the target slave station, so that information interaction is carried out between the master station and the target slave station;
under the condition that a communication link between the main master station and the target slave stations fails, the main master station is controlled to send a main connection switching instruction to one of the target standby master stations;
after receiving a main connection switching instruction, a target standby master station controls the target standby master station to modify own master station identification into a main master station identification, and modifies own communication link priority identification into a communication link priority identification corresponding to the main master station;
the standby master station of the control target sends an instruction for activating a communication link to the slave station of the target;
after receiving a response of the target standby master station replying to the target slave station and agreeing to activate, the target standby master station controls a communication link between the target standby master station and the target slave station to activate, and takes the target standby master station as a new master station to perform information interaction with the target slave station; if the target standby master station sends an instruction for activating the communication link to the target slave station under the condition that the communication link between the master station and the target slave station does not fail, the target standby master station receives a response of deactivation returned by the target slave station, and the target standby master station cannot be converted into a new master station.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910957483.7A CN110677302B (en) | 2019-10-09 | 2019-10-09 | Communication control method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910957483.7A CN110677302B (en) | 2019-10-09 | 2019-10-09 | Communication control method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110677302A CN110677302A (en) | 2020-01-10 |
CN110677302B true CN110677302B (en) | 2023-04-25 |
Family
ID=69081277
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910957483.7A Active CN110677302B (en) | 2019-10-09 | 2019-10-09 | Communication control method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110677302B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112565039B (en) * | 2020-12-11 | 2022-12-30 | 杭州和利时自动化有限公司 | Communication network architecture |
CN115022156B (en) * | 2022-07-22 | 2024-02-02 | 烽火通信科技股份有限公司 | Network management method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1893684A (en) * | 2005-07-08 | 2007-01-10 | 华为技术有限公司 | Method for realizing control and bearing of double-attachment in separated network |
CN101119187A (en) * | 2007-09-06 | 2008-02-06 | 上海可鲁系统软件有限公司 | Master-salve equipment switch control method |
CN102710402A (en) * | 2012-05-25 | 2012-10-03 | 王可中 | Method for forming hot standby redundant main station |
CN203466841U (en) * | 2013-08-25 | 2014-03-05 | 国家电网公司 | Automatic switching device for monitoring of data network link |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296065B (en) * | 2008-06-19 | 2012-10-03 | 浙江中控技术股份有限公司 | Method and system for improving reliability of redundancy main station |
CN106817239B (en) * | 2015-11-30 | 2020-01-31 | 华为软件技术有限公司 | site switching method, related device and system |
CN109347679A (en) * | 2018-11-06 | 2019-02-15 | 深圳市风云实业有限公司 | Dual master control plate hot standby switch method, apparatus, access gateway and safety network system |
-
2019
- 2019-10-09 CN CN201910957483.7A patent/CN110677302B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1893684A (en) * | 2005-07-08 | 2007-01-10 | 华为技术有限公司 | Method for realizing control and bearing of double-attachment in separated network |
CN101119187A (en) * | 2007-09-06 | 2008-02-06 | 上海可鲁系统软件有限公司 | Master-salve equipment switch control method |
CN102710402A (en) * | 2012-05-25 | 2012-10-03 | 王可中 | Method for forming hot standby redundant main station |
CN203466841U (en) * | 2013-08-25 | 2014-03-05 | 国家电网公司 | Automatic switching device for monitoring of data network link |
Also Published As
Publication number | Publication date |
---|---|
CN110677302A (en) | 2020-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11696207B2 (en) | Data transmission method, electronic device, and computer readable storage medium | |
CN108833122A (en) | Awakening method, device and the storage medium of vehicle-carrying communication controller | |
CN110677302B (en) | Communication control method, device and system | |
CN103501506A (en) | Terminal self-adaptive data transmission system and method for Internet of Vehicles service | |
US20030045277A1 (en) | Automated service configuration of mobile radio station devices | |
CN107547619B (en) | Timer parameter negotiation method and device | |
CN107343325A (en) | A kind of data transmission method, device and terminal | |
EP3958645A1 (en) | Data radio bearer control method, device, and system for multi-connection system | |
CN101170795A (en) | A method, system and device for controlling user equipment to switch between cells | |
US20090106401A1 (en) | System and method for Intra Network Internet Protocol (IP) address modification by dual controller | |
JP2008503116A (en) | Data transmission method between devices in a network | |
CN109768850B (en) | Vehicle-mounted communication method and system | |
EP3876560A1 (en) | Navigation control method and relevant product | |
CN112865990B (en) | File upgrading method, system and device | |
US8503333B2 (en) | Reestablishment of an interface between nodes in a network using a backoff time | |
CN104811938A (en) | Method and system for increasing mobile network resource utilization rate | |
CN114500237B (en) | Communication method and system | |
CN113448744B (en) | Application program selection method and device | |
CN106162598B (en) | A kind of user equipment is to the communication means and device under network relay scene | |
US20170116063A1 (en) | Communications state estimation device, communications state estimation method, and storage medium that stores communications state estimation program | |
JPH0473178B2 (en) | ||
CN108307542B (en) | Method and device for realizing reconnection of Bluetooth peripheral equipment by intelligent television during Bluetooth adapter replacement | |
JP4509187B2 (en) | COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND TRANSMISSION PATH CONTROL METHOD THEREOF | |
CN116781608B (en) | Data transmission system, method, electronic device and readable storage medium | |
KR20110033385A (en) | Method for test protocol of wibro access system, and system therefor |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |