Dual-redundancy control device and switching method for ship energy management system
Patent Information
- Application Number
- CN202410977456.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The failure of a single controller in a traditional ship energy management system may cause the entire system to be paralyzed and affect navigation safety. For large ships, the failure of the energy management system will lead to large economic losses, requiring a cost-reliable redundant design.
Design a dual redundant control device, including a main controller, a backup controller, a main timer, a backup timer, a logic control circuit and a dual-port RAM, and monitor the status of the main timer and a backup timer through the logic control circuit, and automatically Switch to the backup controller to ensure that the system switches to the backup system when the main controller fails, and has little impact on data storage and control during the switching process.
Automatic switching in the event of a main controller failure is realized, ensuring the stable operation of the ship system, reducing economic losses, and meeting the requirements for data storage and control.
Smart Images

Figure CN118938639A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ship energy management systems, and in particular to a dual-redundancy control device and a switching method for a ship energy management system. Background Art
[0002] Traditional ship energy management systems typically use a single controller. A controller failure can paralyze the entire system, impacting navigation safety. Therefore, it is necessary to develop a dual-redundant control solution that can automatically detect and switch to a backup system.
[0003] Patent application number 201811423937.4 discloses a ship energy management and monitoring system and method for monitoring and analyzing the energy flow characteristics of ships and submersibles. The system consists of an energy monitoring station, an energy storage device monitoring unit, an intelligent power distribution device, a power plant, an energy storage device, a power generation device, and auxiliary engine energy consumption devices. However, energy management systems are crucial for large ships. Failures in the main control equipment can easily lead to significant economic losses, necessitating a cost-effective and reliable redundant design. Summary of the Invention
[0004] To address the shortcomings of existing technologies, the present invention provides a dual-redundant control device and switching method for a marine energy management system. When both controllers are operating normally, the primary controller defaults to the primary controller and the backup timer to the secondary controller. If the primary controller fails, the backup timer automatically switches to the primary controller through monitoring by the logic control circuit. This automatic switching process minimizes the impact on data storage and control, meeting the requirements for marine system control.
[0005] The technical solution of the present invention is: a dual-redundant control device for a ship energy management system, comprising a main controller, a backup controller, a main timer, a backup timer, a logic control circuit, a dual-port RAM, a main bidirectional tri-state gate, and a backup bidirectional tri-state gate; the main controller is connected to the logic control circuit via the main timer, and the backup controller is connected to the logic control circuit via the backup timer, characterized in that: the main timer output is connected to the backup controller, the backup timer output is connected to the main controller, the logic control circuit is connected to the main bidirectional tri-state gate and the backup bidirectional tri-state gate respectively, the main bidirectional tri-state gate is connected to the main controller and one end of the dual-port RAM respectively, and the backup bidirectional tri-state gate is connected to the backup controller and the other end of the dual-port RAM respectively; the logic of the logic control circuit is: as long as the main timer output is normal, the main bidirectional tri-state gate works normally; when the main timer output is abnormal, the backup timer output is normal, the backup bidirectional tri-state gate works normally, and when the outputs of both the main timer and the backup timer are abnormal, the main bidirectional tri-state gate and the backup bidirectional tri-state gate do not work.
[0006] According to the dual-redundant control device for a ship energy management system as described above, it is characterized in that it also includes an alarm circuit, and when an abnormal signal appears in the main timer, the backup timer, or both, an alarm is generated through the alarm circuit.
[0007] According to the dual redundant control device for a ship energy management system as described above, it is characterized in that it also includes multiple slave acquisition devices, the slave acquisition devices include a slave control module and a slave data acquisition module, and the slave control module and the slave data acquisition module are connected through communication.
[0008] According to the dual-redundant control device for a ship energy management system as described above, the feature is that the data acquisition port of the slave station uses a time-sharing acquisition method for data acquisition, and the time-sharing data acquisition circuit is an AD data acquisition circuit.
[0009] The present invention also discloses a dual redundant control device switching method for a ship energy management system, which is characterized by comprising the following steps:
[0010] Step 1: When the system is started and working normally, the main controller and the backup controller respectively determine whether the other party is working normally by collecting the main timer and the backup timer. If both are normal or only the main controller is normal, the main controller will serve as the main control device. If the main controller is abnormal but the backup controller is normal, the backup controller will serve as the main control device.
[0011] Step 2: Communication time-sharing: The master device first performs initial communication, and the initial communication content is the communication time and communication start time of the slave acquisition device;
[0012] Step 3: Each slave station acquisition device communicates according to the time-sharing requirement. When the master control device sends data, each slave station acquisition device only receives information and does not send it. When one of the slave station acquisition devices sends data, its slave station acquisition device does not receive information, and only the master control device receives data.
[0013] Step 4: If the main controller as the main control device fails, the backup controller is switched to serve as the main controller. If the backup controller serves as the main control device and the main controller recovers to normal, the main controller is automatically restored to serve as the main control device.
[0014] According to the dual redundant control device switching method for a ship energy management system as described above, it is characterized in that: in step three, after determining the data transmission cycle, the slave station acquisition device optimizes the data acquisition time according to the data acquisition amount and the slave station control module and the slave station data acquisition module.
[0015] According to the dual-redundant control device switching method for a ship energy management system as described above, it is characterized in that: the specific process of step four is: when the main control device is the main controller, the backup controller synchronously receives data and performs the same data storage work, but does not perform data processing. Since the backup bidirectional three-state gate does not work, the data in the dual-port RAM is actually read and written by the main controller. When a failure of the main controller is detected, the backup controller communicates; if the main control device is the backup controller, the backup controller believes that there is a main controller receiving signal within the reserved communication time, that is, after the main controller returns to normal, it first acts as a slave station acquisition device to receive signals.
[0016] The beneficial effects of the present invention are: during the automatic switching process, the impact on data storage and control is relatively small, and the requirements for ship system control are met. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a structural schematic diagram of the present invention.
[0018] Figure 2 It is a structural diagram of the present invention connected to the slave station collection device.
[0019] Figure 3 This is a structural diagram of the slave station acquisition device. DETAILED DESCRIPTION
[0020] The technical solution of the present invention is further described below with reference to the accompanying drawings.
[0021] like Figure 1 As shown, a dual-redundant control device for a ship energy management system of the present invention includes a main controller, a backup controller, a main timer, a backup timer, a logic control circuit, a dual-port RAM, a main bidirectional tri-state gate, and a backup bidirectional tri-state gate; the main controller is connected to the logic control circuit through the main timer, the backup controller is connected to the logic control circuit through the backup timer, the main timer output is also connected to the backup controller, the backup timer output is also connected to the main controller, the logic control circuit is respectively connected to the main bidirectional tri-state gate and the backup bidirectional tri-state gate, the main bidirectional tri-state gate is respectively connected to the main controller and one end of the dual-port RAM, and the backup bidirectional tri-state gate is respectively connected to the backup controller and the other end of the dual-port RAM.
[0022] When the dual-redundant control device of the present invention is operating normally, the main controller regularly transmits signals to the main timer, and the main timer regularly outputs signals to the logic control circuit. When the logic control circuit detects the main controller, it controls the main bidirectional tri-state gate to operate normally, that is, data can be input and output in both directions, while controlling the backup controller to operate unidirectionally or be unable to operate. The dual-port RAM can only output data to the backup controller or cannot read or write any data, thereby achieving normal operation of the dual-port RAM and ensuring that only the main controller can write data to the dual-port RAM. During normal operation of the main controller, the main controller collects the backup timer output through the IO data port and identifies whether the backup timer is operating normally based on the timer output. If the backup controller output is frozen or communication is interrupted, the backup timer outputs 0, and the main controller issues an alarm, indicating that the backup controller system has failed. When the present invention operates abnormally, such as the main controller output is frozen or communication is interrupted, the main timer outputs 0, and the backup controller switches to the main controller state by collecting the main timer output signal. At this time, the logic control circuit controls the backup bidirectional tri-state gate to operate normally, that is, data can be input and output in both directions, and the logic control circuit controls the main bidirectional tri-state gate to operate unidirectionally or be unable to operate, thereby achieving automatic switching of the circuit system when the main controller is in an abnormal state.
[0023] When both controllers are operating normally, the device of the present invention defaults to the main controller as the master and the backup timer as the slave. When the main controller fails, the backup timer is regarded as the master through monitoring of the logic control circuit and can be automatically switched.
[0024] The present invention may also include an alarm circuit. When an abnormal signal is detected by the main timer, backup timer, or both, the alarm circuit generates an alarm, prompting personnel to perform maintenance. For example, when the main timer or backup timer outputs a 1, the corresponding component is operating normally, and when the output is 0, the corresponding component is abnormal. The logic control circuit of the present invention is such that as long as the main timer outputs a 1, the main bidirectional tri-state gate operates normally; when the main timer outputs a 0 and the backup timer outputs a 1, the backup bidirectional tri-state gate operates normally. If both are 0, it indicates a serious system failure, requiring that both the main bidirectional tri-state gate and the backup bidirectional tri-state gate be inoperative.
[0025] like Figure 2 and Figure 3As shown, the dual redundant control device for a ship energy management system of the present invention also includes a plurality of slave acquisition devices, the slave acquisition devices including a slave control module and a slave data acquisition module, the slave control module and the slave data acquisition module are connected by communication, such as the slave data acquisition module and the slave control module are connected via an SPI interface or an FSMC interface, the slave data acquisition module and the slave control module are also connected via a plurality of external interrupt data lines, the slave data acquisition module and the slave control module can transmit the data collected by the slave data acquisition module to the slave control module through an interface communication program, and transmit the control data of the slave control module to the slave data acquisition module. The slave data acquisition port of the present invention preferably adopts a time-sharing acquisition method for acquisition, and the time-sharing data acquisition circuit is an AD data acquisition circuit, such as Figure 3 As shown, through the time-sharing calculation collection method, the time-sharing data collection can be synchronously optimized, and the slave station collection device can send the data to the dual redundant control device at one time after the time-sharing collection.
[0026] The present invention also discloses a dual redundant control device switching method for a ship energy management system, comprising the following steps:
[0027] Step 1: When the system starts and works normally, the main controller and the backup controller respectively determine whether the other party is working normally by collecting the main timer and the backup timer. If both are normal or only the main controller is normal, the main controller will serve as the main control device. If the main controller is abnormal and the backup controller is normal, the backup controller will serve as the main control device. If both are abnormal, a serious alarm fault will be issued through the alarm circuit, and the system cannot start normally.
[0028] Step 2: Communication time-sharing: The master device first conducts initial communication. The initial communication content includes the communication time and communication start time of the slave acquisition device. For example, if 10 slave acquisition devices are allocated, the first 100us is the master device communication time, and all slave acquisition devices receive. Subsequently, each slave acquisition device communicates every 50us, and the last 400us is reserved for communication time. Generally speaking, ship data collection and delay time control within 10ms can meet system design requirements. Therefore, the system solution of the present invention can meet the data collection requirements of large ships. The time-sharing collection method can also synchronously optimize the time-sharing data collection. After the data is collected, it can be sent to the master device in one go.
[0029] Step 3: Each slave acquisition device communicates according to time-sharing requirements. When the master control device transmits data, each slave acquisition device only receives the information and does not transmit it. When a slave acquisition device transmits data, its slave acquisition device does not receive the information, and only the master control device receives the data. This allows the system of the present invention to transmit data from each slave acquisition device to the master control device in an orderly manner. After the control information uniformly transmitted by the master control device is parsed by each slave acquisition device, the control information required for its own station is processed. This makes the system of the present invention more suitable for large-scale data acquisition, monitoring, and control systems that do not require particularly high real-time performance, and is particularly suitable for monitoring systems of large cargo ships. Generally speaking, for data acquisition systems with hundreds of points, data transmission can be completed in approximately 1ms. However, for large-scale data transmission, such as the transmission of thousands or tens of thousands of data points, it takes several milliseconds to complete. To enhance the real-time performance of data acquisition and transmission, the slave acquisition device of the present invention, after determining the data transmission cycle, optimizes the data acquisition time based on the data acquisition volume and the slave control module and slave data acquisition module. Generally speaking, collecting data within 0.5ms to 1ms before communication can meet the timeliness requirements of data updates. For example, the slave data acquisition module collects data 0.5ms before outputting data upward, transmits the collected data to the slave control module, and then transmits it to the main control device through the slave control module. This ensures the real-time nature of the collected data and involves all time-sharing systems together, thereby improving the collection efficiency and the real-time nature of the collected data and improving system performance.
[0030] Step 4: If the main controller fails as the main control device, the backup controller will be switched as the main controller. If the backup controller serves as the main control device and the main controller recovers, the main controller will be automatically restored as the main control device. The specific process is as follows:
[0031] When the main control device is the primary controller, the backup controller receives data synchronously and performs the same data storage work, but does not process data. Since the backup bidirectional tri-state gate does not work, the data in the dual-port RAM is actually read and written by the main controller. When a failure of the main controller is detected, the backup controller can immediately communicate. Since their read and write addresses are synchronized, the communication switch has little impact on the system operation.
[0032] If the main control device is a backup controller, the backup controller will assume that there is a main controller receiving signal within the reserved communication time. Even if there is a fault in the main controller, the storage address, field control information, etc. will be sent to the main controller. That is, after the main controller returns to normal, it will first receive signals as a slave acquisition device. For example: the main controller receives the signal sent by the backup controller as a slave communication device within 100us before the reserved communication time until the main controller returns to normal. Then the main controller receives the signal sent by the backup controller within several cycles. After the main controller can receive the signal normally within the timing period, such as the timing period is 10 cycles of receiving normal data, the main controller has determined that it is working normally and can connect and control normally. Finally, the main controller outputs a normal working signal to the main timer. After the backup controller detects that the main timer has restored the signal to normal, the backup controller automatically switches to not perform system control, that is, does not send communication data. In this way, the device of the present invention has less impact on data storage and control during the automatic switching process, meeting the requirements for ship system control.
Claims
1. A dual redundant control device for a ship energy management system, comprising a main controller, a backup controller, a main timer, a backup timer, a logic control circuit, a dual-port RAM, a main bidirectional tri-state gate, and a backup bidirectional tri-state gate; the main controller is connected to the logic control circuit through the main timer, and the backup controller is connected to the logic control circuit through the backup timer, characterized in that: The main timer output is connected to the backup controller, the backup timer output is connected to the main controller, the logic control circuit is respectively connected to the main bidirectional tri-state gate and the backup bidirectional tri-state gate, the main bidirectional tri-state gate is respectively connected to the main controller and one end of the dual-port RAM, and the backup bidirectional tri-state gate is respectively connected to the backup controller and the other end of the dual-port RAM; the logic of the logic control circuit is: as long as the main timer output is normal, the main bidirectional tri-state gate works normally; when the main timer output is abnormal, the backup timer output is normal, the backup bidirectional tri-state gate works normally, and the outputs of both the main timer and the backup timer are abnormal, then the main bidirectional tri-state gate and the backup bidirectional tri-state gate do not work.
2. A dual redundant control device for a ship energy management system according to claim 1, characterized in that: It also includes an alarm circuit, and when an abnormal signal appears in the main timer, the backup timer or both, an alarm is given through the alarm circuit.
3. A dual redundant control device for a ship energy management system according to claim 1, characterized in that: It also includes a plurality of slave station acquisition devices, which include a slave station control module and a slave station data acquisition module, and the slave station control module and the slave station data acquisition module are connected via communication.
4. A dual redundant control device for a ship energy management system according to claim 1, characterized in that: The data acquisition port of the slave station adopts a time-sharing acquisition method for acquisition, and the time-sharing data acquisition circuit is an AD data acquisition circuit.
5. A dual redundant control device switching method for a ship energy management system, using any dual redundant control device of claim 1 to claim 4, characterized in that: The following steps are involved: Step 1: When the system is started and working normally, the main controller and the backup controller respectively determine whether the other party is working normally by collecting the main timer and the backup timer. If both are normal or only the main controller is normal, the main controller serves as the main control device. If the main controller is abnormal but the backup controller is normal, the backup controller serves as the main control device. Step 2: Communication time division: The master device first performs initial communication, and the initial communication content is the communication time and communication start time of the slave station acquisition device; Step 3: Each slave station acquisition device communicates according to the time-sharing requirement. When the master control device sends data, each slave station acquisition device only receives information but does not send it. When one of the slave station acquisition devices sends data, its slave station acquisition device does not receive information, and only the master control device receives data. Step 4: If the main controller as the main control device fails, the backup controller is switched as the main controller. If the backup controller is used as the main control device and the main controller recovers to normal, the main controller is automatically restored as the main control device.
6. A dual redundant control device switching method for a ship energy management system according to claim 5, characterized in that: In step 3, after determining the data transmission cycle, the slave station acquisition device optimizes the data acquisition time according to the data acquisition amount and the slave station control module and the slave station data acquisition module.
7. A dual redundant control device switching method for a ship energy management system according to claim 5, characterized in that: The specific process of step four is: when the main control device is the main controller, the backup controller receives data synchronously and performs the same data storage work, but does not process data. Since the backup bidirectional three-state gate does not work, the data in the dual-port RAM is actually read and written by the main controller. When a failure of the main controller is detected, the backup controller communicates; if the main control device is a backup controller, the backup controller believes that there is a main controller receiving signal within the reserved communication time, that is, after the main controller returns to normal, it first receives signals as a slave acquisition device.
Citation Information
Patent Citations
Layered redundancy automatic monitoring system of field bus type marine engine room
CN102385371A
Arbitration device for double computer redundancy hot backup computer
CN104111881A
Double-redundancy switch value PLC control system reliable fault-tolerant controller realization method
CN105278516A
Method and system for dual-channel synchronization
CN111654361A
Dual-redundancy steering engine channel fault switching system and logic design method
CN112182876A
Cited By
Modularized redundancy control device for ship power supply system
CN118983926A
Ship propulsion control system and method
CN121386341A
A marine propulsion control system and method
CN121386341B
