Adaptive communication method and device based on gateway, equipment and storage medium

Through the gateway-based adaptive communication method, the problem of single communication protocol in multi-interface cabinet communication of the 3KeyMaster simulation platform is solved, and the multi-protocol support and communication efficiency are improved.

CN119835349AInactive Publication Date: 2025-04-15YANGJIANG NUCLEAR POWER +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510312229.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-17
Publication Date
2025-04-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing semi-physical communication methods, when the 3KeyMaster simulation platform establishes a communication connection with multiple interface cabinets, it usually only supports one communication protocol, resulting in low communication efficiency.

Method used

Adaptive communication method based on gateway is adopted, by obtaining the data source of the original data, querying the preset communication mapping table, determining the corresponding interface cabinet, and encapsulating the data into a standard format packet adapted to the communication protocol of the interface cabinet through the loading protocol adapter, and finally sending it to the interface cabinet through the supported communication channel.

Benefits of technology

Communication between the nuclear power plant simulation platform and multiple interface cabinets that support different communication protocols is realized, avoiding the problem of too single communication methods supported in semi-physical communication and improving communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835349A_ABST
    Figure CN119835349A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of nuclear power station communication systems, in particular to a gateway-based adaptive communication method and device, computer equipment and a storage medium. A corresponding interface cabinet is determined from a communication mapping table through a data source of first original data; the first original data is packaged into a standard format message adaptive to a communication protocol of the interface cabinet through a protocol adapter corresponding to the interface cabinet, and the standard format message is sent to the interface cabinet through a communication channel corresponding to the interface cabinet, so that the interface cabinet analyzes the first original data from the standard format message; and transmitting the first original data to a control cabinet. Therefore, the first original data is packaged into the standard format message adaptive to the communication protocol of the interface cabinet through different protocol adapters, so that the communication between the simulation platform of the nuclear power plant and a plurality of interface cabinets supporting different communication protocols can be realized at the same time; the problem that a communication mode supported in semi-physical communication is relatively single is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of nuclear power plant communication systems, and in particular to a gateway-based self-adaptive communication method, device, computer equipment and storage medium. Background Art

[0002] The 3KeyMaster simulation platform is a platform that can perform full-range simulation of nuclear power plants, thermal power plants, etc. The 3KeyMaster simulation platform, interface cabinet (IO cabinet) and control cabinet usually exchange data through semi-physical communication. For example, the 3KeyMaster simulation platform and the interface cabinet (IO cabinet) usually communicate through ADS via the Beckhoff controller to achieve data transmission between the 3KeyMaster simulation platform and the IO cabinet. After the data is converted by the IO cabinet, it is connected to the control cabinet through hard wiring, thereby achieving semi-physical communication between the 3KeyMaster simulation platform, interface cabinet and control cabinet.

[0003] However, in the above-mentioned semi-physical communication mode, when the 3KeyMaster simulation platform establishes a communication connection with multiple interface cabinets, the 3KeyMaster simulation platform and the multiple interface cabinets usually can only support one communication protocol, such as ADS communication based on the ADS communication protocol, which has certain limitations.

[0004] Therefore, the existing semi-physical communication has the problem of supporting a relatively single communication mode. Summary of the invention

[0005] The embodiments of the present invention provide a gateway-based self-adaptive communication method, apparatus, computer equipment and storage medium to solve the problem of low communication efficiency when a 3KeyMaster simulation platform communicates with multiple IO cabinets supporting multiple communication protocols.

[0006] A gateway-based self-adaptive communication method, the method comprising: Acquire the first original data that the nuclear power plant simulation platform needs to send to the control cabinet; According to the data source of the first original data, query a preset communication mapping table to determine the corresponding interface cabinet; The first original data is encapsulated into a standard format message adapted to the communication protocol of the interface cabinet by loading the protocol adapter corresponding to the interface cabinet; the protocol adapter is encapsulated based on the communication protocol encapsulation algorithm and the communication protocol parsing algorithm; The standard format message is sent to the interface cabinet through a communication channel corresponding to the interface cabinet; the communication channel is established based on a communication address and a communication protocol supported by the interface cabinet; After receiving the standard format message, the interface cabinet parses the standard format message to obtain the first original data, and transmits the first original data to the control cabinet.

[0007] In the above method, optionally, the communication channel is established in the following manner: Based on the cabinet configuration operation of the user on the cabinet configuration interface, a cabinet configuration table is generated, wherein the cabinet configuration table includes the communication address and communication protocol of the interface cabinet selected by the user; The cabinet configuration table is loaded to establish a communication channel between the nuclear power plant simulation platform and each of the interface cabinets based on the communication addresses and communication protocols corresponding to the different interface cabinets.

[0008] In the above method, optionally, the protocol adapter is encapsulated in the following manner: Acquire a communication protocol algorithm supported by each of the interface cabinets, each of the communication protocol algorithms comprising a communication protocol parsing algorithm and a communication protocol encapsulation algorithm; Based on each different communication protocol algorithm, a protocol adapter corresponding to each interface cabinet is encapsulated.

[0009] In the above method, optionally, the communication mapping table is obtained in the following manner: Obtaining the communication addresses of all the interface cabinets connected to the nuclear power plant simulation platform, and the data sources of different types of the first original data in the nuclear power plant simulation platform; The communication mapping table is generated according to the communication address and the data source.

[0010] The above method, optionally, further comprises: Obtaining the communication quality parameters of the communication channel in real time by subscription; determining, according to the communication quality parameter, whether the communication channel is in an abnormal state; If the communication channel is in an abnormal state, the communication quality parameter is recorded in a communication abnormality log, and the communication abnormality log is pushed to the user.

[0011] The above method, optionally, further comprises: Acquire a target format message sent by the interface cabinet through the corresponding communication channel, where the target format message is obtained by encapsulating the second original data transmitted by the control cabinet to the interface cabinet; By loading the protocol adapter corresponding to the interface cabinet, the target format message is parsed to obtain the second original data; Performing format conversion on the second original data through a gateway converter to obtain unified format data commonly used within the nuclear power plant simulation platform; The unified format data is sent to the nuclear power plant simulation platform through the protocol interface of the nuclear power plant simulation platform.

[0012] A gateway-based self-adaptive communication device, the device comprising: A first original data acquisition unit, used to acquire first original data that the nuclear power plant simulation platform needs to send to the control cabinet; An interface cabinet determining unit, configured to query a preset communication mapping table and determine a corresponding interface cabinet according to a data source of the first original data; A message encapsulation unit, used to encapsulate the first original data into a standard format message adapted to the communication protocol of the interface cabinet through a protocol adapter corresponding to the interface cabinet; the protocol adapter encapsulates the data based on a communication protocol encapsulation algorithm and a communication protocol parsing algorithm; A message sending unit, used to send the standard format message to the interface cabinet through a communication channel corresponding to the interface cabinet; the communication channel is established based on a communication address and a communication protocol supported by the interface cabinet; After receiving the standard format message, the interface cabinet parses the standard format message to obtain the first original data, and transmits the first original data to the control cabinet.

[0013] In the above device, optionally, the communication channel is established in the following manner: Based on the cabinet configuration operation of the user on the cabinet configuration interface, a cabinet configuration table is generated, wherein the cabinet configuration table includes the communication address and communication protocol of the interface cabinet selected by the user; The cabinet configuration table is loaded to establish a communication channel between the nuclear power plant simulation platform and each of the interface cabinets based on the communication addresses and communication protocols corresponding to the different interface cabinets.

[0014] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the above-mentioned gateway-based adaptive communication methods when executing the computer program.

[0015] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the gateway-based self-adaptive communication method as described in any one of the above items.

[0016] The above-mentioned gateway-based self-adaptive communication method, device, computer equipment and storage medium determine the corresponding interface cabinet from the communication mapping table through the data source of the first original data, so as to encapsulate the first original data into a standard format message adapted to the communication protocol of the interface cabinet through the protocol adapter corresponding to the interface cabinet, and send the standard format message to the interface cabinet through the communication channel corresponding to the interface cabinet, so that the interface cabinet parses the first original data from the standard format message and transmits the first original data to the control cabinet. It can be seen that the first original data is encapsulated into a standard format message adapted to the communication protocol of the interface cabinet through different protocol adapters in the present invention, which can realize the communication between the nuclear power plant simulation platform and multiple interface cabinets supporting different communication protocols at the same time, avoiding the problem of relatively single communication mode supported in semi-physical communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0018] Figure 1 It is a flow chart for implementing a gateway-based self-adaptive communication method disclosed in an embodiment of the present invention; Figure 2 It is a partial implementation flow chart of a gateway-based self-adaptive communication method disclosed in an embodiment of the present invention; Figure 3 It is a partial implementation flow chart of a gateway-based self-adaptive communication method disclosed in an embodiment of the present invention; Figure 4 It is a partial implementation flow chart of a gateway-based self-adaptive communication method disclosed in an embodiment of the present invention; Figure 5 It is a partial implementation flow chart of a gateway-based self-adaptive communication method disclosed in an embodiment of the present invention; Figure 6 It is a partial implementation flow chart of a gateway-based self-adaptive communication method disclosed in an embodiment of the present invention; Figure 7 It is a structural schematic diagram of a gateway-based self-adaptive communication device disclosed in an embodiment of the present invention; Figure 8 It is a structural schematic diagram of a computer device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0021] It should also be understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0022] As used in the present specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]", depending on the context.

[0023] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0024] References to "one embodiment" or "some embodiments" etc. described in the present specification mean that one or more embodiments of the present invention include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0025] The present invention discloses a gateway-based self-adaptive communication method, device, computer equipment and storage medium, which determines the corresponding interface cabinet from the communication mapping table through the data source of the first original data, so as to encapsulate the first original data into a standard format message adapted to the communication protocol of the interface cabinet through the protocol adapter corresponding to the interface cabinet, and send the standard format message to the interface cabinet through the communication channel corresponding to the interface cabinet, so that the interface cabinet parses the first original data from the standard format message and transmits the first original data to the control cabinet. It can be seen that in the present invention, the first original data is encapsulated into a standard format message adapted to the communication protocol of the interface cabinet through different protocol adapters, which can realize the communication between the nuclear power plant simulation platform and multiple interface cabinets supporting different communication protocols at the same time, avoiding the problem of relatively single communication mode supported in semi-physical communication. The following is an illustration through specific embodiments.

[0026] It should be understood that the nuclear power plant simulation platform and the interface cabinet in this embodiment communicate based on the communication gateway. The first original data that the nuclear power plant simulation platform needs to send to the control cabinet needs to be encapsulated into a standard format message that adapts to the communication protocol of the interface cabinet through the communication gateway, and then the standard format message is sent to the interface cabinet, so that the interface cabinet parses the first original data from the standard format message and transmits the first original data to the control cabinet. In addition, the communication gateway in this embodiment can be integrated into the nuclear power plant simulation platform, or it can be independent of the nuclear power plant simulation platform, but a data connection is established between it and the communication gateway.

[0027] based on Figure 1 In the specific implementation of , a flowchart of an implementation method of a gateway-based adaptive communication method is disclosed. The method is applicable to electronic devices with data processing and data transmission capabilities, such as mobile phones, computers, servers, etc. The method in this embodiment may specifically include the following steps: S101: Acquire the first original data that the nuclear power plant simulation platform needs to send to the control cabinet.

[0028] Specifically, in this embodiment, the first original data is obtained by reading the memory space of the nuclear power plant simulation platform. The nuclear power plant simulation platform in this embodiment includes but is not limited to the 3KeyMaster simulation platform, through which the full range of nuclear power plant scenarios, the full range of thermal power plant scenarios, etc. can be simulated.

[0029] Among them, whether it is a full-range nuclear power plant scenario simulated by the 3KeyMaster simulation platform or a real nuclear power plant, a nuclear power plant will generate a lot of first original data during operation. These first original data comprehensively reflect the operating status of the nuclear power plant, and these first original data need to be sent to the control system cabinet for the control cabinet to perform data storage or data processing. In addition, the nuclear power plant in this embodiment can be a nuclear power plant simulated by the simulation platform, or it can be a real nuclear power plant, which is not specifically limited in this embodiment. In addition, the control cabinet in this embodiment includes but is not limited to one or more of a turbine control cabinet (TCS) or a boiler control cabinet (DCS).

[0030] S102: According to the data source of the first original data, query a preset communication mapping table to determine a corresponding interface cabinet.

[0031] The data source of the first original data may represent the source address, data type or function type of the first original data, wherein the data source includes but is not limited to a nuclear island, a reactor or a steam turbine, etc., the data type includes but is not limited to temperature, humidity, pressure or water level, etc., and the function type refers to the data generated by different function modules in the simulation platform. In this embodiment, the specific basis for dividing the data source is not limited.

[0032] Specifically, in this embodiment, according to the data source of the first original data, the preset communication mapping table can be traversed and queried to determine the interface cabinet corresponding to the first original data in the communication mapping table. The communication mapping table at least includes the data source of the first original data and the channel identifier of the interface cabinet, and the corresponding communication channel is determined according to the channel identifier. The channel identifier can be the communication address corresponding to the interface cabinet, such as an IP address, and the channel identifier can also be manually set, such as TD1, TD2, etc. The specific form of the channel identifier is not limited in this embodiment.

[0033] S103: Loading a protocol adapter corresponding to the interface cabinet to encapsulate the first original data into a standard format message adapted to the communication protocol of the interface cabinet.

[0034] The protocol adapter is encapsulated based on the communication protocol encapsulation algorithm and the communication protocol parsing algorithm. It should be understood that each interface cabinet in this embodiment corresponds to a protocol adapter, or an interface cabinet supporting the same communication protocol corresponds to a protocol adapter.

[0035] Specifically, in this embodiment, the protocol adapter can be loaded through the protocol server. After the protocol adapter is loaded, the first original data is encapsulated into a standard format message of the adapter interface cabinet communication protocol through the protocol adapter.

[0036] S104: Sending the standard format message to the interface cabinet through the communication channel corresponding to the interface cabinet.

[0037] The communication channel is established based on the communication address and communication protocol supported by the interface cabinet.

[0038] Specifically, in this embodiment, a communication channel is established to establish a connection between the communication gateway and different interface cabinets. Different interface cabinets may support different communication protocols, and the communication protocol supported by the interface cabinet may be any one of TCP / IP, IPX / SPX or NetBEUI communication protocols.

[0039] For example, when the interface cabinet supports the TCP / IP communication protocol, the first original data can be encapsulated into a standard format message corresponding to the TCP / IP protocol through the communication channel corresponding to the interface cabinet, and then the standard format message can be sent to the interface cabinet through the communication channel. When the interface cabinet supports the IPX / SPX communication protocol, the first original data can be encapsulated into a standard format message corresponding to the IPX / SPX protocol through the communication channel corresponding to the interface cabinet, and then the standard format message can be sent to the interface cabinet through the communication channel.

[0040] When multiple first original data that need to be sent to the control cabinet by the nuclear power plant simulation platform are obtained at the same time, and the data sources of the first original data are different, the first original data from different data sources can be communicated in parallel based on corresponding different communication channels, which is conducive to improving the communication efficiency of semi-physical communication.

[0041] The interface cabinet and the control cabinet in this embodiment can be connected by hard wiring. Therefore, after sending the standard format message to the interface cabinet, the interface cabinet parses the first original data from the standard format message, and then transmits the first original data to the control cabinet through hard wiring. It should be noted that the first original data parsed by the interface cabinet is a digital signal. Therefore, when the interface cabinet transmits the first original data to the control cabinet through hard wiring, it is necessary to first convert the first original data into an electrical signal, and then transmit the electrical signal to the control cabinet through hard wiring. After receiving the electrical signal, the control cabinet restores the electrical signal to the first original data. In addition, the interface cabinet and the control cabinet in this embodiment can also transmit data wirelessly. The specific data transmission method between the interface cabinet and the control cabinet in this embodiment is not limited.

[0042] In summary, the present invention discloses a gateway-based self-adaptive communication method, which determines the corresponding interface cabinet from the communication mapping table through the data source of the first original data, so as to encapsulate the first original data into a standard format message adapted to the communication protocol of the interface cabinet through the protocol adapter corresponding to the interface cabinet, and send the standard format message to the interface cabinet through the communication channel corresponding to the interface cabinet, so that the interface cabinet parses the first original data from the standard format message and transmits the first original data to the control cabinet. It can be seen that in the present invention, the first original data is encapsulated into a standard format message adapted to the communication protocol of the interface cabinet through different protocol adapters, which can realize the communication between the nuclear power plant simulation platform and multiple interface cabinets supporting different communication protocols at the same time, avoiding the problem of relatively single communication mode supported in semi-physical communication.

[0043] based on Figure 1 In the specific implementation, the communication channel in this embodiment can be established in the following way: Figure 2 As shown: S201: Generate a cabinet configuration table based on the cabinet configuration operation performed by the user on the cabinet configuration interface.

[0044] S202: Load the cabinet configuration table to establish a communication channel between the nuclear power plant simulation platform and each interface cabinet based on the communication addresses and communication protocols corresponding to different interface cabinets.

[0045] The cabinet configuration table includes the communication address and communication protocol of the interface cabinet selected by the user. It can be understood that the interface cabinet selected by the user is the interface cabinet required by the user. For the interface cabinet that is not needed, the user may not select it, or choose to close the interface cabinet that is not needed. Of course, if the user needs to change the interface cabinet to be used, the user only needs to choose to open the corresponding interface cabinet on the cabinet configuration interface, or the user chooses to close the corresponding interface cabinet on the cabinet configuration interface.

[0046] In a specific implementation, the communication protocol and communication address of the interface cabinet selected by the user in this embodiment can be obtained by manually inputting the communication address and communication protocol, or selecting the corresponding communication address and communication protocol from the pre-prepared protocol list and communication address list. In this embodiment, there is no limitation on the method of obtaining the communication protocol and communication address corresponding to the interface cabinet. The communication addresses and communication protocols corresponding to different interface cabinets are loaded respectively, and a communication channel between the nuclear power plant simulation platform and each interface cabinet is established.

[0047] based on Figure 1 In the specific implementation, the communication channel in this embodiment can be established in the following way: Figure 3 As shown: S301: Acquire a communication protocol algorithm supported by each interface cabinet, where each communication protocol algorithm includes a communication protocol parsing algorithm and a communication protocol encapsulation algorithm.

[0048] The communication protocol encapsulation algorithm is used to encapsulate data into data messages, and the communication protocol parsing algorithm is used to parse data from the data messages.

[0049] S302: Based on each different communication protocol algorithm, encapsulate and obtain a protocol adapter corresponding to each interface cabinet.

[0050] The protocol adapter may be an application program with message encapsulation and message parsing capabilities. After being loaded by the protocol server, the protocol adapter may specify to parse the data message, or encapsulate the data into a data message.

[0051] In addition, different interface cabinets can support different communication protocols. Therefore, when the interface cabinet supports different communication protocols, protocol adapters that support different communication protocols can be obtained based on different communication protocol encapsulations, such as a protocol adapter that supports TCP / IP protocol, a protocol adapter that supports IPX / SPX protocol, etc.

[0052] It should be noted that in this embodiment, the corresponding protocol server can be loaded within a period of time before the nuclear power plant simulation platform and the control cabinet need to communicate, such as 1 second, 10 seconds before communication, so that when the first original data is obtained, the first original data is encapsulated through the protocol adapter to obtain standard format data. In this embodiment, the time for establishing the communication channel is not limited.

[0053] In summary, the modular design of the encapsulated protocol adapter in this embodiment is conducive to the use of a unified interface for different protocol adapters, and is conducive to operations such as establishing connections, reading and writing data, etc. In addition, the user can configure the interface cabinet through the cabinet configuration operation on the cabinet configuration interface, which simplifies the switching efficiency between the new and old interface cabinets and can achieve one-click switching of the interface cabinet.

[0054] based on Figure 1 In the specific implementation, the communication mapping table in this embodiment is obtained by the following method: Figure 4 As shown: S401: Obtain the communication addresses of all interface cabinets connected to the nuclear power plant simulation platform, and the data sources of different types of first original data in the nuclear power plant simulation platform.

[0055] S402: Generate a communication mapping table according to the communication address and data source.

[0056] It should be understood that the first original data from different data sources in the nuclear power plant simulation platform may need to be stored in different cabinets in the control cabinet after being sent to the control cabinet, and the interface cabinets connected to different cabinets may be different. Therefore, in order to accurately send the first original data from different data sources of the nuclear power plant simulation platform to different cabinets for storage, it is necessary to establish the data sources of different types of first original data of the nuclear power plant simulation platform, and the communication addresses of all interface cabinets connected to the nuclear power plant simulation platform, and then generate a communication mapping table based on the communication address and data source. Among them, the data source of the first original data in the communication mapping table corresponds one-to-one to the communication address of the interface cabinet.

[0057] In the specific implementation, in this embodiment, the communication addresses of all interface cabinets that have established connections with the nuclear power plant simulation platform and the data sources of different types of first original data in the nuclear power plant simulation platform can be obtained by scanning the memory space of the nuclear power plant simulation platform, and then a communication mapping table can be generated according to the communication addresses and data sources.

[0058] To sum up, by establishing a communication mapping table, this embodiment can quickly determine the communication channel to be used according to the correspondence between the data source of the first original data and the communication address of the interface cabinet, and then send the standard format message converted from the first original data to the interface cabinet through the communication channel, and then transmit the standard format message to the control cabinet through the interface cabinet.

[0059] In one implementation, the method in this embodiment further includes the following steps: Figure 5 As shown: S501: Obtain communication quality parameters of a communication channel in real time by subscription.

[0060] The quality parameters of the communication channel include, but are not limited to, delay parameters and packet loss rate of the communication channel for message format conversion and feedback after message sending.

[0061] S502: Determine whether the communication channel is in an abnormal state according to the communication quality parameter.

[0062] The communication quality parameter is compared with a preset parameter threshold. If the communication quality parameter is greater than the parameter threshold, it is determined that the communication channel is in an abnormal state; if the communication quality parameter is less than or equal to the parameter threshold, it is determined that the communication channel is in a normal state.

[0063] For example, taking the communication quality parameter as the delay parameter as an example, assuming that the delay parameter threshold is 10 seconds, when the delay parameter is greater than 10 seconds, such as when the delay parameter is 22 seconds, or when the delay parameter approaches infinity, it is determined that the communication channel is in an abnormal state; when the delay parameter is less than 10 seconds, such as when the delay parameter is 0.5 seconds, it is determined that the communication channel is in a normal state.

[0064] S503: If the communication channel is in an abnormal state, the communication quality parameter is recorded in a communication abnormality log, and the communication abnormality log is pushed to the user.

[0065] If the communication channel is in an abnormal state, the communication quality parameters are recorded in the communication abnormality log, and the communication abnormality log is pushed to the user; if the communication channel is in a normal state, the communication quality parameters of the communication channel are continuously obtained to continuously monitor the communication quality of the communication channel.

[0066] Specifically, in this embodiment, interfaces such as user management and device management can be provided at the business layer in the communication gateway, thereby realizing functions such as log management and status monitoring. Through the status monitoring function, the communication quality of the communication channel can be continuously monitored, and through the log management function, the communication quality parameters can be recorded in the communication anomaly log, and then the communication anomaly log recording the communication quality parameters can be sent to the user's mobile device, such as a mobile phone.

[0067] To sum up, in this embodiment, the communication status of the communication channel is monitored in real time, and when the communication status of the communication channel is abnormal, the data related to the communication channel status is recorded in the communication abnormality log, and the communication abnormality log is pushed to the user, so that the user can take timely response measures to ensure the communication efficiency of the communication channel.

[0068] In one implementation, the nuclear power plant simulation platform can send data to the control cabinet, and the control cabinet can also send data to the nuclear power plant simulation platform, that is, data can be exchanged between the control cabinet and the nuclear power plant simulation platform. The control cabinet sends data to the nuclear power plant simulation platform, which can be implemented through the following steps: Figure 6 As shown: S601: Acquire a target format message sent by an interface cabinet through a corresponding communication channel.

[0069] The target format message is obtained by encapsulating the second original data transmitted from the control cabinet to the interface cabinet. The control cabinet and the interface cabinet are connected by hard wiring. Therefore, the control cabinet needs to convert the second original data from a digital signal to an electrical signal, and then transmit it to the interface cabinet through hard wiring. The interface cabinet then converts the electrical signal to a digital signal to obtain the second original data transmitted from the control cabinet to the interface cabinet.

[0070] It should be understood that there may be an association relationship between the first original data and the second original data, or there may be no association relationship between the first original data and the second original data.

[0071] When the first original data and the second original data may be associated, the second original data transmitted by the control cabinet to the interface cabinet may be the second original data generated by the control cabinet after the control cabinet analyzes and processes the first original data after receiving the first original data. The control cabinet returns the second original data to the interface cabinet, and the interface cabinet encapsulates the second original data into a target format message. After the interface cabinet sends the target format message to the communication gateway, the nuclear power plant simulation platform can obtain the target format message sent by the interface cabinet through the corresponding communication channel.

[0072] Specifically, the control cabinet in this embodiment can send the second original data to the communication gateway through the corresponding interface cabinet to obtain the second original data that the control cabinet needs to send to the nuclear power plant simulation platform.

[0073] S602: Loading a protocol adapter corresponding to the interface cabinet to parse the target format message to obtain second original data.

[0074] The protocol adapter is encapsulated based on the communication protocol encapsulation algorithm and the communication protocol parsing algorithm. It should be understood that each interface cabinet in this embodiment corresponds to a protocol adapter, or an interface cabinet supporting the same communication protocol corresponds to a protocol adapter.

[0075] Specifically, in this embodiment, the protocol adapter can be loaded through the protocol server. After the protocol adapter is loaded, the first original data is encapsulated into a standard format message of the adapter interface cabinet communication protocol through the protocol adapter.

[0076] S603: Convert the format of the second original data through the gateway converter to obtain unified format data commonly used within the nuclear power plant simulation platform.

[0077] The gateway converter can enable an application with data format conversion, for example, the unified digital format commonly used in the power plant simulation platform is to retain two decimal places, then the number 80 is converted to 80.00 after format conversion, and the number 80.1765 is converted to 80.18 after format conversion. Based on this, the second original data can be converted into a unified format data commonly used in the nuclear power plant simulation platform.

[0078] S504: Sending the unified format data to the nuclear power plant simulation platform through the protocol interface of the nuclear power plant simulation platform.

[0079] Specifically, the communication gateway in this embodiment can communicate with the nuclear power plant simulation platform through a unified protocol interface to transmit data between the communication gateway and the nuclear power plant simulation platform. After the unified format data is sent to the nuclear power plant simulation platform through the protocol interface, the nuclear power plant simulation platform can directly use the unified format data, or, after a simple format conversion, the nuclear power plant simulation platform can directly use it.

[0080] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0081] like Figure 7 As shown, a gateway-based adaptive communication device disclosed in an embodiment of the present invention is applicable to electronic devices with data processing and data transmission capabilities, such as mobile phones, computers, servers, etc. The device in this embodiment may specifically include the following units: The first original data acquisition unit 701 is used to acquire the first original data that the nuclear power plant simulation platform needs to send to the control cabinet; The interface cabinet determining unit 702 is used to query a preset communication mapping table according to the data source of the first original data to determine the corresponding interface cabinet; The message encapsulation unit 703 is used to encapsulate the first original data into a standard format message adapted to the communication protocol of the interface cabinet through the protocol adapter corresponding to the interface cabinet; the protocol adapter encapsulates the message based on the communication protocol encapsulation algorithm and the communication protocol parsing algorithm; The message sending unit 704 is used to send the standard format message to the interface cabinet through the communication channel corresponding to the interface cabinet; the communication channel is established based on the communication address and communication protocol supported by the interface cabinet; After receiving the standard format message, the interface cabinet parses the standard format message to obtain the first original data, and transmits the first original data to the control cabinet.

[0082] A gateway-based self-adaptive communication device determines the corresponding interface cabinet from a communication mapping table through the data source of the first original data, so as to encapsulate the first original data into a standard format message adapted to the communication protocol of the interface cabinet through a protocol adapter corresponding to the interface cabinet, and send the standard format message to the interface cabinet through a communication channel corresponding to the interface cabinet, so that the interface cabinet parses the first original data from the standard format message and transmits the first original data to the control cabinet. It can be seen that the present invention encapsulates the first original data into a standard format message adapted to the communication protocol of the interface cabinet through different protocol adapters, which can realize the communication between the nuclear power plant simulation platform and multiple interface cabinets supporting different communication protocols at the same time, avoiding the problem of a relatively single communication mode supported in semi-physical communication. In one implementation, the communication channel is established as follows: Based on the cabinet configuration operation performed by the user on the cabinet configuration interface, a cabinet configuration table is generated, wherein the cabinet configuration table includes the communication address and communication protocol of the interface cabinet selected by the user; Load the cabinet configuration table to establish a communication channel between the nuclear power plant simulation platform and each interface cabinet based on the communication addresses and communication protocols corresponding to different interface cabinets.

[0083] In one implementation, the protocol adapter is encapsulated in the following manner: Obtaining the communication protocol algorithms supported by each interface cabinet, each communication protocol algorithm including a communication protocol parsing algorithm and a communication protocol encapsulation algorithm; Based on each different communication protocol algorithm, a protocol adapter corresponding to each interface cabinet is encapsulated.

[0084] In one implementation, the communication mapping table is obtained by: Obtain the communication addresses of all interface cabinets connected to the nuclear power plant simulation platform, as well as the data sources of different types of first original data in the nuclear power plant simulation platform; Generate a communication mapping table based on the communication address and data source.

[0085] In one implementation, the device in this embodiment further includes a log pushing unit, which is used to: Obtain the communication quality parameters of the communication channel in real time through subscription; According to the communication quality parameters, determine whether the communication channel is in an abnormal state; If the communication channel is in an abnormal state, the communication quality parameters are recorded in the communication abnormality log, and the communication abnormality log is pushed to the user.

[0086] In one implementation, the device in this embodiment further includes a second message acquisition unit, and the second message acquisition unit is used to: Acquire a target format message sent by the interface cabinet through a corresponding communication channel, where the target format message is obtained by encapsulating the second original data transmitted from the control cabinet to the interface cabinet; By loading the protocol adapter corresponding to the interface cabinet, the target format message is parsed to obtain the second original data; The second original data is converted into a format by a gateway converter to obtain data in a unified format commonly used within the nuclear power plant simulation platform; The unified format data is sent to the nuclear power plant simulation platform through the protocol interface of the nuclear power plant simulation platform.

[0087] For the specific limitations of the gateway-based self-adaptive communication device, please refer to the above-mentioned limitations on the gateway-based self-adaptive communication method, which will not be repeated here. Each module in the above-mentioned gateway-based self-adaptive communication device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0088] In one implementation, the present application embodiment discloses a computer device, which may be a server, and its internal structure diagram may be as shown in FIG. Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a gateway-based self-adaptive communication method is implemented.

[0089] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: Acquire the first original data that the nuclear power plant simulation platform needs to send to the control cabinet; According to the data source of the first original data, query a preset communication mapping table to determine a corresponding interface cabinet; The first original data is encapsulated into a standard format message adapted to the communication protocol of the interface cabinet by loading the protocol adapter corresponding to the interface cabinet; the protocol adapter encapsulates the data based on the communication protocol encapsulation algorithm and the communication protocol parsing algorithm; The standard format message is sent to the interface cabinet through the communication channel corresponding to the interface cabinet; the communication channel is established based on the communication address and communication protocol supported by the interface cabinet; After receiving the standard format message, the interface cabinet parses the standard format message to obtain the first original data, and transmits the first original data to the control cabinet.

[0090] In one implementation, an embodiment of the present application discloses a computer-readable storage medium, and when instructions in the computer-readable storage medium are executed by a processor in a computer device, the computer device is enabled to perform the steps of any embodiment of a gateway-based adaptive communication method disclosed in the present invention. The computer-readable storage medium may be non-volatile or volatile.

[0091] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: Acquire the first original data that the nuclear power plant simulation platform needs to send to the control cabinet; According to the data source of the first original data, query a preset communication mapping table to determine a corresponding interface cabinet; The first original data is encapsulated into a standard format message adapted to the communication protocol of the interface cabinet by loading the protocol adapter corresponding to the interface cabinet; the protocol adapter encapsulates the data based on the communication protocol encapsulation algorithm and the communication protocol parsing algorithm; The standard format message is sent to the interface cabinet through the communication channel corresponding to the interface cabinet; the communication channel is established based on the communication address and communication protocol supported by the interface cabinet; After receiving the standard format message, the interface cabinet parses the standard format message to obtain the first original data, and transmits the first original data to the control cabinet.

[0092] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0093] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0094] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A gateway-based adaptive communication method, characterized in that: The method comprises: Acquire the first original data that the nuclear power plant simulation platform needs to send to the control cabinet; According to the data source of the first original data, query a preset communication mapping table to determine the corresponding interface cabinet; The first original data is encapsulated into a standard format message adapted to the communication protocol of the interface cabinet by loading the protocol adapter corresponding to the interface cabinet; the protocol adapter is encapsulated based on the communication protocol encapsulation algorithm and the communication protocol parsing algorithm; The standard format message is sent to the interface cabinet through a communication channel corresponding to the interface cabinet; the communication channel is established based on a communication address and a communication protocol supported by the interface cabinet; After receiving the standard format message, the interface cabinet parses the standard format message to obtain the first original data, and transmits the first original data to the control cabinet.

2. The gateway-based adaptive communication method according to claim 1, characterized in that: The communication channel is established in the following manner: Based on the cabinet configuration operation of the user on the cabinet configuration interface, a cabinet configuration table is generated, wherein the cabinet configuration table includes the communication address and communication protocol of the interface cabinet selected by the user; The cabinet configuration table is loaded to establish a communication channel between the nuclear power plant simulation platform and each of the interface cabinets based on the communication addresses and communication protocols corresponding to the different interface cabinets.

3. The gateway-based adaptive communication method according to claim 1, characterized in that: The protocol adapter is encapsulated in the following way: Acquire a communication protocol algorithm supported by each of the interface cabinets, each of the communication protocol algorithms comprising a communication protocol parsing algorithm and a communication protocol encapsulation algorithm; Based on each different communication protocol algorithm, a protocol adapter corresponding to each interface cabinet is encapsulated.

4. The gateway-based adaptive communication method according to claim 1, characterized in that: The communication mapping table is obtained in the following manner: Acquire the communication addresses of all the interface cabinets connected to the nuclear power plant simulation platform, and the data sources of different types of the first original data in the nuclear power plant simulation platform; The communication mapping table is generated according to the communication address and the data source.

5. The gateway-based adaptive communication method according to claim 1, characterized in that: The method further comprises: Obtaining the communication quality parameters of the communication channel in real time by subscription; determining, according to the communication quality parameter, whether the communication channel is in an abnormal state; If the communication channel is in an abnormal state, the communication quality parameter is recorded in a communication abnormality log, and the communication abnormality log is pushed to the user.

6. The gateway-based adaptive communication method according to claim 1, characterized in that: The method further comprises: Acquire a target format message sent by the interface cabinet through the corresponding communication channel, where the target format message is obtained by encapsulating the second original data transmitted from the control cabinet to the interface cabinet; By loading the protocol adapter corresponding to the interface cabinet, the target format message is parsed to obtain the second original data; Performing format conversion on the second original data through a gateway converter to obtain unified format data commonly used within the nuclear power plant simulation platform; The unified format data is sent to the nuclear power plant simulation platform through the protocol interface of the nuclear power plant simulation platform.

7. A gateway-based self-adaptive communication device, characterized in that: The device comprises: A first original data acquisition unit, used to acquire first original data that the nuclear power plant simulation platform needs to send to the control cabinet; An interface cabinet determining unit, configured to query a preset communication mapping table and determine a corresponding interface cabinet according to a data source of the first original data; A message encapsulation unit, used to encapsulate the first original data into a standard format message adapted to the communication protocol of the interface cabinet through a protocol adapter corresponding to the interface cabinet; the protocol adapter encapsulates the data based on a communication protocol encapsulation algorithm and a communication protocol parsing algorithm; A message sending unit, used to send the standard format message to the interface cabinet through a communication channel corresponding to the interface cabinet; the communication channel is established based on a communication address and a communication protocol supported by the interface cabinet; After receiving the standard format message, the interface cabinet parses the standard format message to obtain the first original data, and transmits the first original data to the control cabinet.

8. The gateway-based adaptive communication device according to claim 7, characterized in that: The communication channel is established in the following manner: Based on the cabinet configuration operation of the user on the cabinet configuration interface, a cabinet configuration table is generated, wherein the cabinet configuration table includes the communication address and communication protocol of the interface cabinet selected by the user; The cabinet configuration table is loaded to establish a communication channel between the nuclear power plant simulation platform and each of the interface cabinets based on the communication addresses and communication protocols corresponding to the different interface cabinets.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the gateway-based adaptive communication method according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the gateway-based adaptive communication method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Multidisciplinary simulation data classification method, equipment and storage medium

    CN112328544A

  • Multi-protocol adaptation method and device and readable storage medium

    CN112866294A

  • Internet of Things data processing method based on multi-protocol real-time communication

    CN114006928A

  • Virtual-real combination heterogeneous communication network convergence system based on OPNET and application

    CN115277450A

  • Data transmission method and device

    CN119586116A