Gateway communication failure switching method, system and storage medium
By receiving the analog signal sent by the main control device and calculating the target change rate to judge the gateway failure, the problem of interference-free switching in the prior art is solved, ensuring stable control of the equipment during the failure period, and improving the operating reliability and emergency response capabilities of the nuclear power unit.
Patent Information
- Application Number
- CN202411828045.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-12-12
AI Technical Summary
The prior art cannot realize interference-free switching between the master control device and the slave control device in the event of a gateway failure, resulting in the slave control device losing control instructions, which may cause the risk of equipment being out of control or unstable operation.
By receiving the analog signal sent by the main control device and calculating the target change rate within the preset time period, we will judge whether the gateway communication is malfunctioning. When the target change rate is less than the preset threshold, a gateway communication failure is determined, and the control signal stored in the target buffer is assigned to the target device to ensure that the device remains in the control state during the failure.
In the event of a gateway communication failure, the disturbance-free switching between the master control device and the slave control device is achieved, ensuring that the target device can maintain a stable control state during the failure, avoiding control failure caused by communication interruption, and ensuring the continuous operation and safety performance of the nuclear power unit.
Smart Images

Figure CN119299289B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of nuclear power unit instrumentation and control, and in particular to a gateway communication fault switching method, system and storage medium. Background Art
[0002] In the operation of nuclear power units, data communication plays a vital role, especially the data exchange between distributed control systems (DCS) of different manufacturers. These control systems usually include master control devices and slave control devices, where the master control device is responsible for the overall control logic and communicates data with the slave control device through the gateway. The slave control device performs specific control operations according to the instructions sent by the master control device and feeds back the execution status to the master control device, forming a closed-loop control system.
[0003] However, when a communication failure occurs in the gateway, the data transmission between the master control device and the slave control device will be interrupted immediately, causing the slave control device to lose control instructions, which may lead to the risk of equipment loss of control or unstable operation. This risk is unacceptable, especially in application environments with high safety and stability such as nuclear power units.
[0004] In the prior art, it is usually based on the switch value to determine whether the gateway is faulty. For example, when the switch value is 1, it means that the gateway is normal, and when it is 0, it means that the gateway is faulty. However, this method cannot achieve non-disruptive switching between the master control device and the slave control device. When the gateway fails, the device controlled by the slave control device may not be controlled. Therefore, how to achieve non-disruptive switching between control devices when the gateway fails is an urgent problem to be solved. Summary of the invention
[0005] The embodiments of the present invention provide a gateway communication fault switching method, system and storage medium to solve the technical problem that the prior art cannot achieve disturbance-free switching between control devices when a gateway fails.
[0006] In a first aspect, a gateway communication failure switching method is provided, the method comprising:
[0007] Receiving an analog signal sent by a main control device within a first preset time period, wherein the analog signal is a trigonometric function having a positive slope and / or a negative slope;
[0008] In a second preset time period, calculating a target change rate of the analog signal, and determining whether the target change rate is less than a preset threshold;
[0009] When the target change rate is less than the preset threshold, it is determined that a gateway communication failure occurs between the slave control device and the master control device;
[0010] After determining that the gateway communication fails, assigning the control signal stored in the target buffer to the target device, so that the target device maintains the control state during the gateway communication failure, the target device includes one or more devices controlled by the slave control device;
[0011] The first preset time period is the total time period for sending analog signals, the second preset time period is the time period for determining whether gateway communication is faulty based on the analog signals, and the second preset time period is smaller than the first preset time period.
[0012] Optionally, calculating the target change rate of the analog signal includes:
[0013] Performing derivative calculation on the analog signal to obtain a first rate of change;
[0014] The target change rate is obtained based on the absolute value of the first change rate.
[0015] Optionally, performing derivative calculation on the analog signal to obtain a first rate of change includes:
[0016] Converting the analog signal into discrete time series data, and preprocessing the discrete time series data to obtain target discrete time series data;
[0017] The target discrete time series data is calculated according to a preset differential formula to obtain the first rate of change, wherein the preset differential formula includes one of the following:
[0018] First difference formula: ;
[0019] Second difference formula: ;
[0020] The third difference formula: ;
[0021] in, is the first rate of change at the nth discrete time point, is the time interval between adjacent discrete time points in discrete time series data, is the analog signal value at the nth discrete time point.
[0022] Optionally, obtaining the target change rate based on the absolute value of the first change rate includes:
[0023] Performing statistical analysis on the absolute values of all the first change rates within the first preset time period to obtain an analysis result, wherein the analysis result includes a minimum value, an average value and / or a standard deviation;
[0024] Based on the analysis results and preset rules, a target change rate is obtained.
[0025] Optionally, the target device includes a reactor system, a power supply device, a monitoring system or a cooling system, and after determining that the gateway communication fails, assigning the control signal stored in the target buffer to the target device includes:
[0026] If the target device is the reactor system, obtaining the first control signal in the target buffer and assigning it to the reactor system;
[0027] If the target device is the power supply device, acquiring the second control signal in the target buffer and assigning it to the power supply device;
[0028] If the target device is the monitoring system, obtaining the third control signal in the target buffer and assigning it to the monitoring system;
[0029] If the target device is the cooling system, the fourth control signal in the target buffer is acquired and assigned to the cooling system.
[0030] Optionally, when the target change rate is less than a preset threshold, after determining that a gateway communication failure occurs between the slave control device and the master control device, the method further comprises:
[0031] Acquire fault information of the gateway communication fault, the fault information including fault type, fault time, impact range, ID of the slave control device and ID of the master control device;
[0032] Generate warning information according to the fault information, wherein the warning information includes a warning level;
[0033] Based on the fault information and the warning level, obtaining corresponding target personnel, wherein the target personnel include maintenance personnel who handle the gateway communication fault;
[0034] The fault information is sent to the target person via a preset fault notification method so that the target person can handle the fault. The preset fault notification method includes email, text message, phone call and / or instant message.
[0035] Optionally, the sending of the fault information to the target person in a preset fault notification manner so that the target person handles the fault includes:
[0036] Receiving the fault handling record uploaded by the target personnel in response to the fault information;
[0037] Based on the fault handling record, a fault report is automatically generated using a preset fault analysis template, wherein the fault report at least includes a detailed description of the fault, an analysis of the impact on the operation of the nuclear power unit, and preliminary suggestions for response measures;
[0038] Extract key information from the fault report, and generate a visualization chart based on the key information, the visualization chart including a fault occurrence timeline, a fault impact range chart, a fault handling flow chart, and a preliminary response measure effect prediction chart;
[0039] The visual chart is sent to a control center so that the control center displays the visual chart.
[0040] In a second aspect, a gateway communication fault switching system is provided, the gateway communication fault switching system comprising a nuclear power unit, the nuclear power unit comprising a master control device, a slave control device and a target device, wherein the master control device is connected to the slave control device via a gateway, and the slave control device is connected to the target device via a gateway;
[0041] The slave control device is used to receive an analog signal sent by the master control device within a first preset time period, wherein the analog signal is a trigonometric function with a positive slope and / or a negative slope;
[0042] The slave control device is further used to calculate the target change rate of the analog signal in a second preset time period, and determine whether the target change rate is less than a preset threshold; when the target change rate is less than the preset threshold, determine that a gateway communication failure occurs between the slave control device and the master control device; after determining that the gateway communication failure occurs, assign the control signal stored in the target buffer to the target device, so that the target device maintains a control state during the gateway communication failure, and the target device includes one or more devices controlled by the slave control device;
[0043] The first preset time period is the total time period for sending analog signals, the second preset time period is the time period for determining whether gateway communication is faulty based on the analog signals, and the second preset time period is smaller than the first preset time period.
[0044] Optionally, the nuclear power unit includes a plurality of the slave control devices;
[0045] When there are at least two of the slave control devices, and it is determined that the target change rate is less than the preset threshold, it is determined that the master control device is faulty;
[0046] After determining that the master control device fails, all the slave control devices assign the control signals in the corresponding target buffers to the corresponding target devices, so that the corresponding target devices maintain the control state during the failure of the master control device;
[0047] After the master control device returns to normal, the communication between the master control device and the plurality of slave control devices is reestablished.
[0048] In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the gateway communication failure switching method described in the first aspect is implemented.
[0049] In a solution provided by an embodiment of the present invention, by receiving an analog signal continuously sent by a main control device according to a preset time period (i.e., a first preset time period), and calculating a target change rate according to the received analog signal within a second preset time period, it is possible to quickly identify whether a gateway communication failure occurs based on the target change rate and a preset threshold value. Compared with traditional switch quantity judgment, it is possible to identify a gateway communication failure earlier and more accurately, and after confirming the failure, it is possible to switch to an autonomous control mode without disturbance using a control signal pre-stored in a target buffer, thereby ensuring that one or more controlled target devices can maintain a stable control state during the gateway communication failure, avoiding control failure caused by communication interruption, ensuring continuous operation and safety performance of the nuclear power unit, and effectively solving the problem that the prior art cannot achieve a disturbance-free switch from a main control device to a slave control device when a gateway fails, thereby improving the operating reliability and emergency response capability of the nuclear power unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] 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.
[0051] Figure 1 is a schematic diagram of a nuclear power unit in one embodiment of the present invention;
[0052] Figure 2 is another schematic diagram of a nuclear power plant unit in one embodiment of the present invention;
[0053] Figure 3 is a flow chart of a gateway communication failure switching method in one embodiment of the present invention;
[0054] Figure 4 is another flow chart of a gateway communication failure switching method in one embodiment of the present invention;
[0055] Figure 5 is another flow chart of a gateway communication failure switching method in one embodiment of the present invention;
[0056] Figure 6 is another flow chart of a gateway communication failure switching method in one embodiment of the present invention;
[0057] Figure 7 is another flow chart of a gateway communication failure switching method in one embodiment of the present invention;
[0058] Figure 8 is another flow chart of a gateway communication failure switching method in one embodiment of the present invention;
[0059] Fig. 9 It is a schematic diagram of a gateway communication failure switching system in one embodiment of the present invention. DETAILED DESCRIPTION
[0060] 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.
[0061] In a first aspect, an embodiment of the present invention provides a gateway communication failure switching method, which can be applied as follows: Figure 1 In the nuclear power plant 1000 shown, the nuclear power plant 1000 includes a master control device 1001, a slave control device 1002 and a target device 1003. Specifically, the gateway communication failure switching method can be applied to the slave control device. The master control device and the slave control device include but are not limited to a host computer, a personal computer and a laptop computer.
[0062] In one embodiment, if Figure 2 and Figure 3 As shown, a gateway communication failure switching method is provided, and the method is applied in Figure 1 The slave control device in the example is used as an example to illustrate, including the following steps:
[0063] S10. Receive an analog signal sent by a main control device within a first preset time period, wherein the analog signal is a trigonometric function with a positive slope and / or a negative slope.
[0064] In some embodiments, in normal operation, the slave control device can monitor the state of the communication link in real time by receiving an analog signal sent by the master control device at a predetermined frequency, wherein the analog signal has a trigonometric function characteristic with a positive slope and / or a negative slope.
[0065] As an example, the master control device may continuously send an analog signal to the slave control device at a frequency of 1 Hz in a first preset time period. For example, the master control device may send an analog signal to the slave control device in a manner of linearly increasing along a positive slope within 1 minute, or may send an analog signal to the slave control device in a manner of linearly decreasing along a negative slope, or may first send an analog signal to the slave control device in a manner of linearly increasing along a positive slope and then linearly decreasing along a negative slope. Specifically, within 1 minute, the analog signal may start from 1 and linearly increase to 5 along a positive slope; or the analog signal may start from 5 and linearly decrease to 1 along a negative slope; or the analog signal may first start from 1 and linearly increase to 5 along a positive slope, and then decrease from 5 back to 1. These are examples only and do not constitute limitations.
[0066] It should be noted that the master control device of the present invention can also send control signals to the slave control device in multiple cycles within the first preset time period. For example, in each cycle, the analog signal will start from 1 and rise linearly to 5 along the positive slope; or, in each cycle, the analog signal will start from 5 and fall linearly to 1 along the negative slope; or, in each cycle, the analog signal will first start from 1, rise linearly to 5 along the positive slope, and then fall back to 1 from 5, which is not limited here.
[0067] S20, calculating a target change rate of the analog signal in a second preset time period, and determining whether the target change rate is less than a preset threshold;
[0068] S30: When the target change rate is less than the preset threshold, it is determined that a gateway communication failure occurs between the slave control device and the master control device.
[0069] In some embodiments, after receiving the analog signal sent by the master control device, the slave control device processes the received analog signal within a second preset time period, for example, calculating the target change rate of the analog signal, that is, the derivative of the analog signal, wherein the second preset time period is much smaller than the first preset time period.
[0070] After obtaining the target change rate, further, determine whether the target change rate is less than a preset threshold. In some embodiments, the slave control device will compare the calculated target change rate with the preset threshold to determine whether there is a gateway communication failure. For example, the calculated target change rate is 0.95, and the preset threshold is 0.5, indicating that the gateway between the master control device and the slave control device has not failed, but if the calculated target change rate is 0, it indicates that the gateway between the master control device and the slave control device has failed. This process ensures that when a gateway communication failure occurs, the fault can be detected quickly and accurately to maintain the stability and reliability of the nuclear power unit.
[0071] The preset threshold is determined based on the dynamic characteristics and communication requirements between the master control device and the slave control device, and is used to distinguish whether the gateway fails. As an example, the calibration process of the preset threshold includes the following specific steps:
[0072] Normal simulation communication is performed between the master control device and the slave control device to obtain the rate of change data of the normal state.
[0073] Abnormal simulation communication is performed between the master control device and the slave control device to obtain abnormal state change rate data.
[0074] The rate of change data of the normal state and the rate of change data of the abnormal state are statistically analyzed to obtain statistical results, wherein the statistical results include minimum values, average values and / or standard deviations of the rate of change of the normal state and the abnormal state.
[0075] Based on the statistical analysis results, a preset threshold is determined.
[0076] It should be noted that the preset threshold value can be set to the mean value of the change rate under normal conditions minus a certain safety factor, or the minimum value of the change rate under abnormal conditions.
[0077] In some embodiments, by simulating the normal and abnormal communication scenarios between the master control device and the slave control device, the change rate data of the normal state and the abnormal state are obtained, and statistical analysis is performed on these data to extract key statistics such as the mean value, minimum value and standard deviation to fully grasp the data distribution characteristics. Based on the above analysis, the preset threshold can be set to a conservative lower bound of the average value of the change rate under normal conditions (such as the mean minus two times the standard deviation as a safety factor) to ensure that the fault is not misjudged under slight fluctuations. Another strategy is to directly use the lowest change rate value under abnormal conditions as the preset threshold to ensure that any changes below this level can be quickly identified as gateway failures. For example, if the normal average value is 2.5 and the standard deviation is 1, the preset threshold can be set to 0.5 (mean-2*standard deviation), or directly set to 0.5 (abnormal minimum value) according to the abnormal data. It should be understood that the above is only an example and does not constitute a limitation of the present invention.
[0078] S40. After determining that the gateway communication fails, assign the control signal stored in the target buffer to the target device, so that the target device maintains a control state during the gateway communication failure, and the target device includes one or more devices.
[0079] In some embodiments, after the slave control device has detected a gateway communication failure, that is, the target change rate is less than a preset threshold, the slave control device will automatically start a fault handling program and assign the control signal synchronized by the master control device in the target buffer (such as a dedicated area configured in the memory) to the target device, that is, the latest control signal received from the slave control device during normal communication is assigned to the target device. The design of the target buffer allows the control signal to be temporarily held before the failure occurs, ensuring the normal operation of the target device during the failure. For example, if the target device is a cooling system in a nuclear power unit, during the communication failure, the slave control device will continue to control the operation of the cooling system according to the predetermined control signal to ensure the normal cooling function of the nuclear power unit.
[0080] For another example, the slave control device controls a cooling pump in a nuclear power unit, and the working state of the cooling pump is adjusted by the master control device through a control signal. Under normal circumstances, the slave control device tracks the control signal sent by the master control device and directly instructs the start or stop of the pump. If at a certain moment the slave control device detects that the target change rate of the analog signal is less than the preset threshold, it is determined that the gateway communication between the slave control device and the master control device is faulty.
[0081] In this case, the slave control device extracts the latest control signal from the target buffer. Assuming that the latest signal in the buffer indicates that the pump continues to operate, this signal will be assigned to the pump controller. Even if the gateway communication failure persists, the pump will continue to work according to the control signal in the buffer, thereby maintaining the normal operation of the nuclear power unit's cooling system and ensuring that the target device can continue to operate stably during the gateway communication failure.
[0082] It should be noted that the control signal in the target buffer will be iteratively updated at certain time intervals, for example, once every third preset time period, to ensure that the control state of the target device can be effectively maintained when a gateway communication failure occurs. Specifically, the control signal can be iteratively updated in the target buffer at intervals of 2 minutes. Such a setting can ensure that after a failure occurs, the latest control signal can be quickly extracted from the control device to maintain the normal operation of the target device. It should be understood that the control signal can also be iteratively updated in the target buffer at intervals of 1 minute, 3 minutes, 4 minutes, and 5 minutes, which is not limited here.
[0083] In one embodiment, the first preset time period is the total time period for sending analog signals, the second preset time period is the time period for determining whether gateway communication is faulty based on the analog signals, and the second preset time period is smaller than the first preset time period.
[0084] As an example, the first preset time period refers to the total time period for the master control device to send analog signals to the slave control device, and the second preset time period is a time period used to determine whether a gateway communication failure occurs based on the analog signal, and the second preset time period is much smaller than the first preset time period to ensure that the slave control device can determine whether the gateway communication fails as soon as possible after receiving the analog signal value, so as to take necessary fault handling measures in time, which helps to improve the sensitivity and response speed of fault detection and reduce potential risks caused by communication delays or failures.
[0085] For example, if the first preset time period is 1 minute, the second preset time period may be set to 2 seconds. The slave control device performs processing within 2 seconds (second preset time period) after receiving the continuously sent analog signal value. The processing process includes derivative calculation and target change rate judgment. If within these 2 seconds, the calculated target change rate is less than the preset threshold, the slave control device will determine that the gateway communication with the main control device has failed, and take corresponding fault handling measures, thereby improving the safety and reliability of the nuclear power unit.
[0086] In summary, in a solution provided by an embodiment of the present invention, by receiving the analog signal continuously sent by the main control device according to a preset time period (i.e., the first preset time period), and calculating the target change rate according to the received analog signal within the second preset time period, it is possible to quickly identify whether the gateway communication is faulty based on the size of the target change rate and the preset threshold value. Compared with the traditional switch quantity judgment, the gateway communication failure can be identified earlier and more accurately, and after confirming the failure, the control signal pre-stored in the target buffer can be used to switch to the autonomous control mode without disturbance, ensuring that one or more controlled target devices can still maintain a stable control state during the gateway communication failure, avoiding control failure caused by communication interruption, ensuring the continuous operation and safety performance of the nuclear power unit, and effectively solving the problem that the prior art cannot achieve disturbance-free switching from the main control device to the slave control device when the gateway fails, thereby improving the operating reliability and emergency response capability of the nuclear power unit.
[0087] In one embodiment, if Figure 4 As shown, step S20, that is, calculating the target change rate of the analog signal, includes the following steps:
[0088] S21, performing derivative calculation on the analog signal to obtain a first rate of change;
[0089] S22. Obtain the target change rate based on the absolute value of the first change rate.
[0090] In some embodiments, the derivative of the received analog signal is calculated in order to obtain the rate at which the analog signal changes over time, that is, the first rate of change, and the derivative can characterize the trend and speed of the analog signal changing over time. Further, the target rate of change is determined based on the absolute value of the calculated first rate of change. The absolute value is taken here to eliminate the directionality of the rate of change and only focus on the speed of change. That is, no matter whether the signal rises or falls, as long as the speed of change is the same, their target rates of change are considered to be consistent. For example, when the rate of change of the signal is +0.5 or -0.5, the target rate of change will be calculated as 0.5. This process ensures that the magnitude of the rate of change can be effectively measured regardless of whether the signal increases or decreases, and can more intuitively reflect the severity of the signal change, providing a basis for subsequent decision-making.
[0091] In one embodiment, if Figure 5 As shown, in step S21, that is, performing derivative calculation on the analog signal to obtain the first rate of change, the following steps are included:
[0092] S211, converting the analog signal into discrete time series data, and preprocessing the discrete time series data to obtain target discrete time series data;
[0093] S212. Calculate the target discrete time series data according to a preset differential formula to obtain the first change rate, wherein the preset differential formula includes one of the following:
[0094] First difference formula: ;
[0095] Second difference formula: ;
[0096] The third difference formula: ;
[0097] In some implementations, the analog signal is converted into discrete time series data by sampling. For example, assuming that the analog signal The sampling points in the first preset time period are , the corresponding analog signal values are The sampling time interval is known, and the sampled data is further preprocessed to obtain the target discrete time series data to ensure the accuracy of the data. Preprocessing includes filtering, interpolation, etc. to ensure the target discrete time series data accuracy and consistency.
[0098] Further, according to a preset differential formula, the target discrete time series data is calculated to obtain a first rate of change. Specifically, the preset differential formula is used to calculate the rate of change between adjacent data points in the discrete time series data to estimate the derivative of the analog signal. The specific preset differential formula includes one of the following:
[0099] The first difference formula is: ;
[0100] in, is the first rate of change at the nth discrete time point, is the time interval between adjacent discrete time points in discrete time series data, and They are the analog signal values at the n+1th and n-1th discrete time points respectively.
[0101] The second difference formula is: ;
[0102] in, is the first rate of change at the nth discrete time point, is the time interval between adjacent discrete time points in discrete time series data, and They are the analog signal values at the n+1th and nth discrete time points respectively.
[0103] The third difference formula is: ;
[0104] in, is the first rate of change at the nth discrete time point, is the time interval between adjacent discrete time points in discrete time series data, and They are the analog signal values at the nth and n-1th discrete time points respectively.
[0105] For example, The time intervals are 2, 2.5 and 3 respectively. is 1s.
[0106] According to the first difference formula, we can calculate: ;
[0107] According to the second difference formula, we can calculate: ;
[0108] ;
[0109] According to the third difference formula, we can calculate: ;
[0110] ;
[0111] Through the above calculation steps, the derivative of the analog signal can be accurately obtained, and then the first rate of change can be obtained, providing necessary data support for subsequent steps.
[0112] It should be noted that if the analog signal is more complex, it can also be calculated using the fourth difference formula, the specific formula is:
[0113] ;
[0114] in, is the first rate of change at the nth discrete time point, is the time interval between adjacent discrete time points in discrete time series data, , and The analog signal values at the n+2th, n+1th and nth discrete time points are respectively. The present invention does not make any specific limitation.
[0115] It should be understood that the derivative is close to the theoretical rate of change of the analog signal, so the equality in the above derivative calculation can be regarded as approximately equality.
[0116] In one embodiment, if Figure 6 As shown, in step S22, that is, obtaining the target change rate based on the absolute value of the first change rate, includes the following steps:
[0117] S221, performing statistical analysis on the absolute values of all the first change rates within the first preset time period to obtain an analysis result, wherein the analysis result includes a minimum value, an average value and / or a standard deviation;
[0118] S222: Based on the analysis result and preset rules, obtain a target change rate.
[0119] In some embodiments, the master control device can send multiple cycles of analog signals to the slave control device based on the sliding window technology within a first preset time period to obtain multiple first change rates. Further, statistical analysis is performed based on the absolute values of the multiple first change rates obtained within the first preset time period to obtain analysis results of the change rates within the first preset time period. For example, for each time window, the minimum value, average value and standard deviation of the absolute value of the first change rate in each time window are calculated to obtain analysis results within each time window, wherein the analysis results include the minimum value, average value and / or standard deviation, and then the target change rate is determined based on the obtained analysis results and predetermined rules, which are not limited here.
[0120] As an embodiment, it is assumed that the slave control device of the nuclear power unit is used to control the liquid flow in the cooling system, and the master control device sends a control signal to the slave control device through the gateway to control the cooling system. Within a first preset time period (for example, 1 minute), the slave control device receives and records the analog signal sent by the master control device every 6 seconds as a cycle, and calculates the change rate of the analog signal in each cycle. Next, the absolute value of the first change rate of each cycle is statistically analyzed to obtain the analysis result, and then the target change rate is obtained according to the preset rules and the analysis result.
[0121] It should be understood that in this example, the slave control device will determine whether the target change rate is lower than a preset threshold in each cycle, and then determine whether the communication between the master control device and the slave control device is faulty.
[0122] In one embodiment, in step S222, obtaining the target change rate based on the analysis result and the preset rule includes the following steps:
[0123] S2221. If the preset rule is that the minimum value represents the target change rate, taking the minimum value as the target change rate;
[0124] S2222. If the preset rule is that the average value represents the target change rate, then the average value is taken as the target change rate;
[0125] S2223. If the preset rule is that the standard deviation represents the target change rate, then the standard deviation is taken as the target change rate.
[0126] In one embodiment, if the minimum value of the analog signal change is of concern, the minimum value is selected as the target change rate; if the overall level of the analog signal change needs to be reflected, the average value is taken as the target change rate; and if the discreteness or stability of the analog signal change needs to be evaluated, the standard deviation is taken as the target change rate. The specific value can be pre-set as needed and is not limited here.
[0127] Exemplarily, in a first preset time period (e.g., within 1 minute), the slave control device receives multiple cycles (e.g., data is sent once every 6 seconds, for a total of 10 cycles) of analog signals sent from the master control device. For each cycle of the analog signal received, first calculate its derivative, that is, the rate of change of the analog signal (first rate of change), and then take the absolute value to eliminate the directionality. Then, perform statistical analysis on the absolute values of the first rate of change of these 10 cycles to obtain analysis results, wherein the analysis results include: minimum value, average value and / or standard deviation.
[0128] Further, based on the above analysis results, the target change rate is determined according to a pre-set rule. Through this process, the slave control device can monitor and analyze the changes of the received analog signal in real time, and then can determine in real time whether the gateway fails.
[0129] In one embodiment, that is, in step S40, the target device includes a reactor system, a power supply device, a monitoring system or a cooling system, that is, after determining that the gateway communication failure occurs, assigning the control signal stored in the target buffer to the target device includes the following steps:
[0130] S41, if the target device is the reactor system, obtaining the first control signal in the target buffer and assigning it to the reactor system;
[0131] S42: if the target device is the power supply device, obtaining the second control signal in the target buffer and assigning it to the power supply device;
[0132] S43: If the target device is the monitoring system, obtain the third control signal in the target buffer and assign it to the monitoring system;
[0133] S44: If the target device is the cooling system, obtain the fourth control signal in the target buffer and assign it to the cooling system.
[0134] In some embodiments, after determining that the gateway communication failure has occurred, the control device reads the control signal of the target device controlled in the target buffer and assigns it to the target device. Specifically, if the target device is a reactor system, the first control signal stored in the target buffer is obtained, and the first control signal includes a key parameter adjustment instruction for the operation of the reactor, and then the signal is assigned to the reactor system to ensure its safe and stable operation. Similarly, for the power supply equipment, the second control signal is obtained to ensure the continuity and stability of the power supply; for the monitoring system, the third control signal is obtained to maintain comprehensive monitoring and data recording of all aspects of the nuclear power unit; for the cooling system, the fourth control signal is obtained to maintain continued control of the cooling system, avoid overheating risks, and ensure the safety of the nuclear power unit. This series of rapid and accurate response measures ensures the safe and efficient operation of the nuclear power unit in a complex and changing environment.
[0135] It should be understood that when the target device controlled by the control device includes multiple devices, the control signals corresponding to the multiple target devices in the target buffer are read and assigned to the corresponding target devices so that the multiple target devices maintain the control state during the gateway communication failure.
[0136] In one embodiment, if Figure 7 As shown, that is, in step S30, when the target change rate is less than a preset threshold, it is determined that the gateway communication failure between the slave control device and the master control device occurs, and then the following steps are included:
[0137] S50. Obtain fault information of the gateway communication fault, where the fault information includes fault type, fault time, impact range, ID of the slave control device, and ID of the master control device.
[0138] In some embodiments, after determining that the gateway communication failure between the slave control device and the master control device occurs, the slave control device will first obtain the fault information of the gateway communication failure. The fault information includes the fault type, the time of the fault, the scope of impact, the ID of the slave control device, and the ID of the master control device. For example, the fault type is "gateway communication failure", the fault time is recorded as "September 14, 2024 14:30", and the scope of impact is that the master control device "MC-001" loses control of the device controlled by the slave control device "SC-005".
[0139] S60: Generate warning information according to the fault information, where the warning information includes a warning level.
[0140] In some embodiments, based on the acquired fault information, warning information is generated from the control device, and a corresponding warning level is determined. The warning level is determined according to the severity of the fault and the impact on the nuclear power unit. For example, if the gateway communication failure is caused by the failure of the main control device, the warning level is set to "emergency".
[0141] S70. Based on the fault information and the warning level, obtain corresponding target personnel, where the target personnel include maintenance personnel who handle the gateway communication fault.
[0142] In some embodiments, the control device can determine the target personnel to be notified based on the fault information and the warning level, wherein the target personnel may include multiple personnel, including maintenance personnel and / or technical support personnel responsible for handling the gateway communication failure. For example, in the case of an "emergency" level warning, senior maintenance engineers and network experts are designated as target personnel to quickly respond to and solve the problem. The information of the target personnel is pre-stored in the cloud database, and the contact information of the target personnel will be extracted from the cloud database after a fault occurs to ensure that the fault information can be conveyed to the relevant personnel in the shortest time.
[0143] S80. Send the fault information to the target person via a preset fault notification method, so that the target person can handle the fault. The preset fault notification method includes email, text message, phone call and / or instant message.
[0144] In some embodiments, the preset notification method may include email, text message, phone call and / or instant message. For example, a detailed fault report including the fault type, occurrence time, impact range, etc. is first sent by email from the control device, and text message and phone notifications are sent at the same time to ensure that relevant personnel can be contacted in a timely manner in an emergency. In addition, notifications sent through instant messaging services can provide real-time communication and updates, further improving the response speed to ensure timely processing and restoration of normal operation of the nuclear power unit.
[0145] In one embodiment, the predetermined level includes a first level, a second level and a third level, that is, in step S70, that is, based on the fault information and the warning level, obtaining the corresponding target personnel includes the following steps:
[0146] If the warning level is the first level, acquiring a first target person based on the fault information and the first level;
[0147] If the warning level is the second level, acquiring a second target person based on the fault information and the second level;
[0148] If the warning level is the third level, a third target person is acquired based on the fault information and the third level.
[0149] In some embodiments, in the face of different warning levels, a hierarchical response strategy is adopted. When the warning level reaches the first level, the first target personnel are accurately located and notified according to the current fault information and the warning level. The first target personnel are technical backbones with preliminary processing capabilities. If the warning is upgraded to the second level, the second target personnel are selected and notified based on more detailed fault information and the requirements of this level. The first target personnel are personnel with higher professional level and decision-making power. When the warning reaches the most urgent third level, the second target personnel are selected and notified. The first target personnel are the core management team or expert consultants to cope with the most complex challenges and ensure that the problems are solved in a timely and effective manner.
[0150] In one embodiment, if Figure 8 As shown, after step S80, that is, after sending the fault information to the target person in a preset fault notification manner so that the target person handles the fault, the following steps are included:
[0151] S90: Receive a fault handling record uploaded by the target person in response to the fault information.
[0152] In some embodiments, after receiving the fault notification, the target personnel will investigate and handle the fault and upload the fault handling record to the slave control device. The fault handling record includes the fault diagnosis results, repair measures taken, problems encountered during the solution, and other relevant information.
[0153] S100, based on the fault handling record, using a preset fault analysis template, automatically generate a fault report, the fault report at least including a specific description of the fault, an analysis of the impact on the operation of the nuclear power unit, and preliminary suggestions for response measures.
[0154] In some embodiments, based on the fault handling record, the control device automatically generates a fault report by calling a preset fault analysis template through an automation tool, and the fault report includes a detailed description of the fault, an analysis of the impact on the operation of the nuclear power unit, and preliminary countermeasures. Specifically, the fault report may include a detailed description of the cause of the fault, the specific impact on the nuclear power unit system (such as data loss, operation delay, etc.), and handling suggestions for similar faults, such as optimizing gateway communication settings, increasing system redundancy, etc.
[0155] S110, extracting key information from the fault report, and generating a visualization chart based on the key information, wherein the visualization chart includes a fault occurrence timeline, a fault impact range chart, a fault handling flow chart, and a preliminary response measure effect prediction chart.
[0156] In some implementations, key information in the fault report is extracted from the control device, and a visualization chart is generated based on the key information. The visualization chart may include the following:
[0157] Fault occurrence timeline: displays the start time of the fault, important time nodes in the handling process, and the time when the fault is resolved.
[0158] Fault impact scope diagram: shows the scope of impact of the fault on various parts of the nuclear power unit, such as affected equipment, system modules or operating procedures.
[0159] Fault handling flowchart: describes the entire process from fault occurrence to repair, including the handling measures and results of each step.
[0160] Preliminary countermeasure effect prediction diagram: shows the response strategies and possible effects of similar failures in the future.
[0161] S120: Send the visualization chart to a control center, so that the control center displays the visualization chart.
[0162] In some embodiments, the generated visualization charts are sent to the control center so that the control center can display these charts. The operators or management of the control center will be able to intuitively understand the details of the fault, the handling process, and future improvement measures through these charts. These charts not only help decision makers quickly understand the fault handling situation, but also provide important reference data for subsequent fault analysis and system optimization.
[0163] In summary, by receiving the fault handling records uploaded by the target personnel for the fault information; based on the fault handling records, using the preset fault analysis template, automatically generating a fault report, and by extracting the key information in the fault report, and generating a visual chart based on the key information; further, sending the visual chart to the control center so that the control center can display the visual chart, ensuring that the control center can effectively monitor and manage the fault handling process, and take necessary measures to improve the stability and reliability of the nuclear power unit.
[0164] 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.
[0165] In a second aspect, an embodiment of the present invention provides a gateway communication failure switching system, such as Fig. 9 As shown, the gateway communication fault switching system includes a nuclear power unit 1000, and the nuclear power unit 1000 includes a master control device 1001, a slave control device 1002 and a target device 1003, wherein the master control device and the slave control device are connected via a gateway, and the slave control device and the target device are connected via a gateway;
[0166] The slave control device is used to receive an analog signal sent by the master control device within a first preset time period, wherein the analog signal is a trigonometric function with a positive slope and / or a negative slope;
[0167] The slave control device is further used to calculate the target change rate of the analog signal in a second preset time period, and determine whether the target change rate is less than a preset threshold; when the target change rate is less than the preset threshold, determine that a gateway communication failure occurs between the slave control device and the master control device; after determining that the gateway communication failure occurs, assign the control signal stored in the target buffer to the target device, so that the target device maintains a control state during the gateway communication failure, and the target device includes one or more devices controlled by the slave control device;
[0168] The first preset time period is the total time period for sending analog signals, the second preset time period is the time period for determining whether gateway communication is faulty based on the analog signals, and the second preset time period is smaller than the first preset time period.
[0169] The definition of this part can refer to the discussion of the embodiment of steps S10-S40 in the gateway communication failure switching method described in the first aspect above. In order to avoid repetition, it will not be repeated here.
[0170] In one embodiment, the nuclear power plant unit comprises a plurality of the slave control devices;
[0171] When there are at least two of the slave control devices, and it is determined that the target change rate is less than the preset threshold, it is determined that the master control device is faulty;
[0172] After determining that the master control device fails, all the slave control devices assign the control signals in the corresponding target buffers to the corresponding target devices, so that the corresponding target devices maintain the control state during the failure of the master control device;
[0173] After the master control device returns to normal, the communication between the master control device and the plurality of slave control devices is reestablished.
[0174] In this embodiment, the nuclear power unit includes multiple slave control devices, each of which communicates with the master control device to jointly manage the operation of the nuclear power unit. When at least two slave control devices (for example, A, B, and C) simultaneously report that their calculated target change rate is lower than a preset threshold, the master control device is considered to have failed. This is because multiple slave control devices have failed to detect normal signal changes, which means that there is a problem with the master control device, or the communication between the master control device and multiple slave control devices has been interrupted. After confirming the failure of the master control device, all slave control devices (A, B, and C) will perform the following operations:
[0175] Each slave control device assigns the control signal in its target buffer to the corresponding target device. For example, slave control device A assigns the control signal stored in the target buffer to target device X, slave control device B assigns it to target device Y, and slave control device C assigns it to target device Z, to ensure that during the failure of the master control device, the target device can still maintain the necessary control state to prevent the nuclear power unit from experiencing control failure or operation interruption. When the master control device returns to normal, the communication connection between the master control device and each slave control device will be re-established to ensure that the control signal and data transmission process return to normal. In this way, the nuclear power unit can effectively maintain the normal and stable operation of other equipment in the nuclear power unit when the master control device fails, ensuring the normal operation and safety of the entire nuclear power unit.
[0176] In one embodiment, calculating the target change rate of the analog signal includes:
[0177] Performing derivative calculation on the analog signal to obtain a first rate of change;
[0178] The target change rate is obtained based on the absolute value of the first change rate.
[0179] The definition of this part can refer to the discussion of the embodiment of steps S21-S22 in the gateway communication failure switching method described in the first aspect above. In order to avoid repetition, it will not be repeated here.
[0180] In one embodiment, performing derivative calculation on the analog signal to obtain the first rate of change includes:
[0181] Converting the analog signal into discrete time series data, and preprocessing the discrete time series data to obtain target discrete time series data;
[0182] The target discrete time series data is calculated according to a preset differential formula to obtain the first rate of change, wherein the preset differential formula includes one of the following:
[0183] First difference formula: ;
[0184] Second difference formula: ;
[0185] The third difference formula: ;
[0186] in, is the first rate of change at the nth discrete time point, is the time interval between adjacent discrete time points in discrete time series data, is the analog signal value at the nth discrete time point.
[0187] The definition of this part can refer to the discussion of the embodiment of steps S211-S212 in the gateway communication failure switching method described in the first aspect above. In order to avoid repetition, it will not be repeated here.
[0188] In one embodiment, obtaining the target change rate based on the absolute value of the first change rate includes:
[0189] Performing statistical analysis on the absolute values of all the first change rates within the first preset time period to obtain an analysis result, wherein the analysis result includes a minimum value, an average value and / or a standard deviation;
[0190] Based on the analysis results and preset rules, a target change rate is obtained.
[0191] The definition of this part can refer to the discussion of the embodiment of steps S221-S222 in the gateway communication failure switching method described in the first aspect above. In order to avoid repetition, it will not be repeated here.
[0192] In one embodiment, the target device includes a reactor system, a power supply device, a monitoring system or a cooling system, and after determining that the gateway communication fails, assigning the control signal stored in the target buffer to the target device includes:
[0193] If the target device is the reactor system, obtaining the first control signal in the target buffer and assigning it to the reactor system;
[0194] If the target device is the power supply device, acquiring the second control signal in the target buffer and assigning it to the power supply device;
[0195] If the target device is the monitoring system, obtaining the third control signal in the target buffer and assigning it to the monitoring system;
[0196] If the target device is the cooling system, the fourth control signal in the target buffer is acquired and assigned to the cooling system.
[0197] The definition of this part can refer to the discussion of the embodiment of steps S41-S44 in the gateway communication failure switching method described in the first aspect above. In order to avoid repetition, it will not be repeated here.
[0198] In one embodiment, when the target change rate is less than a preset threshold, it is determined that a gateway communication failure occurs between the slave control device and the master control device, and the method further comprises:
[0199] Acquire fault information of the gateway communication fault, the fault information including fault type, fault time, impact range, ID of the slave control device and ID of the master control device;
[0200] Generate warning information according to the fault information, wherein the warning information includes a warning level;
[0201] Based on the fault information and the warning level, obtaining corresponding target personnel, wherein the target personnel include maintenance personnel who handle the gateway communication fault;
[0202] The fault information is sent to the target person via a preset fault notification method so that the target person can handle the fault. The preset fault notification method includes email, text message, phone call and / or instant message.
[0203] The definition of this part can refer to the discussion of the embodiment of steps S50-S80 in the gateway communication failure switching method described in the first aspect above. In order to avoid repetition, it will not be repeated here.
[0204] In one embodiment, the sending of the fault information to the target person in a preset fault notification manner so that the target person handles the fault includes:
[0205] Receiving the fault handling record uploaded by the target personnel in response to the fault information;
[0206] Based on the fault handling record, a fault report is automatically generated using a preset fault analysis template, wherein the fault report at least includes a detailed description of the fault, an analysis of the impact on the operation of the nuclear power unit, and preliminary suggestions for response measures;
[0207] Extract key information from the fault report, and generate a visualization chart based on the key information, the visualization chart including a fault occurrence timeline, a fault impact range chart, a fault handling flow chart, and a preliminary response measure effect prediction chart;
[0208] The visual chart is sent to a control center so that the control center displays the visual chart.
[0209] The definition of this part can refer to the discussion of the embodiment of steps S90-S120 in the gateway communication failure switching method described in the first aspect above. In order to avoid repetition, it will not be repeated here.
[0210] In summary, the specific limitations on the gateway communication failure switching system can refer to the limitations on the gateway communication failure switching method mentioned above, and in order to avoid repetition, they will not be repeated here.
[0211] In a third aspect, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented:
[0212] Receiving an analog signal sent by a main control device within a first preset time period, wherein the analog signal is a trigonometric function having a positive slope and / or a negative slope;
[0213] In a second preset time period, calculating a target change rate of the analog signal, and determining whether the target change rate is less than a preset threshold;
[0214] When the target change rate is less than the preset threshold, it is determined that a gateway communication failure occurs between the slave control device and the master control device;
[0215] After determining that the gateway communication fails, assigning the control signal stored in the target buffer to the target device, so that the target device maintains the control state during the gateway communication failure, the target device includes one or more devices controlled by the slave control device;
[0216] The first preset time period is the total time period for sending analog signals, the second preset time period is the time period for determining whether gateway communication is faulty based on the analog signals, and the second preset time period is smaller than the first preset time period.
[0217] 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.
[0218] 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.
[0219] 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 communication failure switching method, characterized in that: Applied to a slave control device, the method comprises: Receiving an analog signal sent by a main control device within a first preset time period, wherein the analog signal is a trigonometric function having a positive slope and / or a negative slope; In a second preset time period, calculating a target change rate of the analog signal, and determining whether the target change rate is less than a preset threshold; When the target change rate is less than the preset threshold, it is determined that a gateway communication failure occurs between the slave control device and the master control device; After determining that the gateway communication failure occurs, assigning the control signal stored in the target buffer to the target device, so that the target device maintains a control state during the gateway communication failure, the target device includes one or more devices controlled by the slave control device, wherein the control signal in the target buffer is iteratively updated at a preset time interval; The first preset time period is the total time period for sending analog signals, the second preset time period is the time period for determining whether the gateway communication is faulty according to the analog signals, and the second preset time period is shorter than the first preset time period; Wherein, calculating the target change rate of the analog signal includes: Performing derivative calculation on the analog signal to obtain a first rate of change; Obtaining the target change rate based on the absolute value of the first change rate; The preset threshold is determined in the following way: Performing normal simulated communication between the master control device and the slave control device to obtain normal state change rate data; Performing abnormal simulation communication between the master control device and the slave control device to obtain abnormal state change rate data; Performing statistical analysis on the change rate data of the normal state and the change rate data of the abnormal state to obtain statistical results, wherein the statistical results include minimum values, average values and / or standard deviations of the change rates of the normal state and the abnormal state; Based on the statistical result, the preset threshold is determined.
2. The gateway communication failure switching method according to claim 1, characterized in that: The step of performing derivative calculation on the analog signal to obtain a first rate of change includes: Converting the analog signal into discrete time series data, and preprocessing the discrete time series data to obtain target discrete time series data; The target discrete time series data is calculated according to a preset differential formula to obtain the first rate of change, wherein the preset differential formula includes one of the following: First difference formula: ; Second difference formula: ; The third difference formula: ; in, is the time interval between adjacent discrete time points in discrete time series data, is the analog signal value at the nth discrete time point.
3. The gateway communication failure switching method according to claim 1 or 2, characterized in that: The step of obtaining the target change rate based on the absolute value of the first change rate includes: Performing statistical analysis on the absolute values of all the first change rates within the first preset time period to obtain an analysis result, wherein the analysis result includes a minimum value, an average value and / or a standard deviation; Based on the analysis results and preset rules, a target change rate is obtained.
4. The gateway communication failure switching method according to claim 1, characterized in that: The target device includes a reactor system, a power supply device, a monitoring system or a cooling system. After determining that the gateway communication fails, assigning the control signal stored in the target buffer to the target device includes: If the target device is the reactor system, obtaining the first control signal in the target buffer and assigning it to the reactor system; If the target device is the power supply device, acquiring the second control signal in the target buffer and assigning it to the power supply device; If the target device is the monitoring system, obtaining the third control signal in the target buffer and assigning it to the monitoring system; If the target device is the cooling system, the fourth control signal in the target buffer is acquired and assigned to the cooling system.
5. The gateway communication failure switching method according to claim 1, characterized in that: When the target change rate is less than a preset threshold, it is determined that the gateway communication between the slave control device and the master control device fails, comprising: Acquire fault information of the gateway communication fault, the fault information including fault type, fault time, impact range, ID of the slave control device and ID of the master control device; Generate warning information according to the fault information, wherein the warning information includes a warning level; Based on the fault information and the warning level, obtaining corresponding target personnel, wherein the target personnel include maintenance personnel who handle the gateway communication fault; The fault information is sent to the target person via a preset fault notification method so that the target person can handle the fault. The preset fault notification method includes email, text message, phone call and / or instant message.
6. The gateway communication failure switching method according to claim 5, characterized in that: The method of sending the fault information to the target person through a preset fault notification method so that the target person can handle the fault includes: Receiving the fault handling record uploaded by the target personnel in response to the fault information; Based on the fault handling record, a fault report is automatically generated using a preset fault analysis template, wherein the fault report at least includes a detailed description of the fault, an analysis of the impact on the operation of the nuclear power unit, and preliminary suggestions for response measures; Extract key information from the fault report, and generate a visualization chart based on the key information, the visualization chart including a fault occurrence timeline, a fault impact range chart, a fault handling flow chart, and a preliminary response measure effect prediction chart; The visual chart is sent to a control center so that the control center displays the visual chart.
7. A gateway communication failure switching system, characterized in that: The gateway communication fault switching system comprises a nuclear power unit, the nuclear power unit comprises a master control device, a slave control device and a target device, wherein the master control device is connected to the slave control device via a gateway, and the slave control device is connected to the target device via a gateway; The slave control device is used to receive an analog signal sent by the master control device within a first preset time period, wherein the analog signal is a trigonometric function with a positive slope and / or a negative slope; The slave control device is further used to calculate the target change rate of the analog signal in a second preset time period, and determine whether the target change rate is less than a preset threshold; when the target change rate is less than the preset threshold, determine that a gateway communication failure occurs between the slave control device and the master control device; after determining that the gateway communication failure occurs, assign the control signal stored in the target buffer to the target device, so that the target device maintains a control state during the gateway communication failure, wherein the target device includes one or more devices controlled by the slave control device, wherein the control signal in the target buffer is iteratively updated at a preset time interval; The first preset time period is the total time period for sending analog signals, the second preset time period is the time period for determining whether the gateway communication is faulty according to the analog signals, and the second preset time period is shorter than the first preset time period; Wherein, calculating the target change rate of the analog signal includes: Performing derivative calculation on the analog signal to obtain a first rate of change; Obtaining the target change rate based on the absolute value of the first change rate; The preset threshold is determined in the following way: Performing normal simulated communication between the master control device and the slave control device to obtain normal state change rate data; Performing abnormal simulation communication between the master control device and the slave control device to obtain abnormal state change rate data; Performing statistical analysis on the change rate data of the normal state and the change rate data of the abnormal state to obtain statistical results, wherein the statistical results include minimum values, average values and / or standard deviations of the change rates of the normal state and the abnormal state; Based on the statistical result, the preset threshold is determined.
8. The gateway communication failure switching system according to claim 7, characterized in that: The nuclear power unit comprises a plurality of slave control devices; When there are at least two of the slave control devices, and it is determined that the target change rate is less than the preset threshold, it is determined that the master control device is faulty; After determining that the master control device fails, all the slave control devices assign the control signals in the corresponding target buffers to the corresponding target devices, so that the corresponding target devices maintain the control state during the failure of the master control device; After the master control device returns to normal, the communication between the master control device and the plurality of slave control devices is reestablished.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the gateway communication failure switching method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Fault detection method of sensor, fault detection device, processor and vehicle
CN115360389A
Fan system control method based on gateway equipment and fan system
CN117738930A