Search

CN-122024419-A - Alarm method and device for ship system, ship system and storage medium

CN122024419ACN 122024419 ACN122024419 ACN 122024419ACN-122024419-A

Abstract

The application discloses an alarming method and device of a ship system, the ship system and a storage medium, belonging to the technical field of comprehensive automation of ships, wherein the method comprises the steps of obtaining multi-source data of the ship system; the method comprises the steps of loading preset alarm rules, evaluating initial alarm states of multi-source data according to the preset alarm rules, carrying out delay judgment on the preset alarm rules corresponding to the data meeting alarm conditions to trigger an alarm, carrying out return difference value verification on the data meeting alarm disappearance conditions, updating current alarm states of the multi-source data, updating real-time records and historical records, configuring and loading an external functional module of a ship system, and sending alarm change information and latest state information to the external functional module after the current alarm states are updated. The application improves the reliability of the ship system alarm through unified alarm triggering rules, multi-level verification, supporting the safety analysis of complex mathematical operations, dynamic state management and flexible alarm change reminding functions.

Inventors

  • LU MINGZHOU
  • SHEN RUIQI
  • GUO WEI
  • NIE DAGAN
  • GAO WEN
  • LI XINGDA

Assignees

  • 中国船舶集团有限公司第七一一研究所

Dates

Publication Date
20260512
Application Date
20260108

Claims (15)

  1. 1. A method of warning a marine system, comprising: acquiring multi-source data of the ship system, wherein the multi-source data are raw data of ship equipment acquired from a plurality of data sources; Loading a preset alarm rule, and evaluating an initial alarm state of the multi-source data according to the preset alarm rule, wherein the initial alarm state comprises the condition of meeting an alarm condition and the condition of meeting the alarm disappearance; Performing delay judgment on the preset alarm rule corresponding to the data meeting the alarm condition to trigger an alarm; Performing return difference verification on the data meeting the alarm disappearance condition; Updating the current alarm state of the multi-source data, and updating the real-time record and the history record, wherein the current alarm state comprises new alarm generation, alarm reproduction and alarm disappearance; and configuring and loading an external functional module of the ship system, and sending alarm change information and latest state information to the external functional module after the current alarm state is updated.
  2. 2. The method of claim 1, wherein the shipping system includes a rule base, wherein loading the preset alert rules evaluates an initial alert state of the multi-source data according to the preset alert rules, comprising: reading the preset alarm rules from the rule base, and carrying out safety analysis on the preset alarm rules to obtain target alarm rules; And evaluating whether the multi-source data meets an alarm condition according to the target alarm rule so as to determine an initial alarm state of the multi-source data.
  3. 3. The method according to claim 2, wherein the target alarm rule comprises a data identifier, a mathematical expression, a delay time, a return difference value and an alarm level corresponding to the ship equipment; the performing the security analysis on the preset alarm rule includes: And analyzing the preset alarm rule by adopting a preset mathematical expression analysis algorithm, and setting a verification rule.
  4. 4. A method according to claim 3, wherein setting the check rule comprises: In the lexical analysis stage, checking characters in the mathematical expression and filtering illegal characters; Defining a callable function as a preset mathematical operation function; an upper limit of the length of the mathematical expression is set.
  5. 5. The method of claim 1, wherein the ship system comprises a buffer module, wherein the performing delay judgment on the preset alarm rule corresponding to the data meeting the alarm condition to trigger an alarm comprises: Under the condition that the delay time of the preset alarm rule is zero, marking the corresponding data meeting the alarm condition as a trigger state; and checking the existence state of the preset alarm rule in the cache module under the condition that the delay time of the preset alarm rule is longer than zero so as to trigger an alarm.
  6. 6. The method of claim 5, wherein checking the existence of the preset alert rule in the cache module to trigger an alert comprises: under the condition that the preset alarm rule does not exist in the cache module, acquiring a current time stamp, and storing the current time stamp and the delay time of the preset alarm rule as current cache values into the cache module; and marking the corresponding data meeting the alarm condition as a trigger state under the condition that the preset alarm rule exists in the cache module and the current time stamp is larger than or equal to the current cache value.
  7. 7. A method according to claim 3, wherein said performing a return difference check on said data satisfying an alarm disappearing condition comprises: calculating the sum of a data value and a return difference value for the data meeting the alarm disappearance condition; And substituting the sum of the data value and the return difference value into the mathematical expression again to reevaluate the initial alarm state of the data meeting the alarm disappearance condition according to the preset alarm rule.
  8. 8. The method of claim 7, further comprising, after re-substituting the sum of the data value and the return difference value into the mathematical expression to re-evaluate the initial alarm state of the data satisfying the alarm disappearance condition according to the preset alarm rule: determining that the alarm disappears under the condition that the alarm condition is not met after re-evaluation; In the event that the alarm condition is met after re-evaluation, the current alarm state is maintained.
  9. 9. The method of claim 1, wherein the new alarm is generated by inserting a real-time record into a real-time record table for the preset alarm rule which meets the alarm condition for the first time and synchronously generating a history record; The alarm reappears as to the unanswered alarm, update the creation time and the data value, and return to the original alarm triggering state; And the alarm vanishing is that corresponding treatment measures are executed according to the alarm rule type under the condition that the initial alarm state meets the alarm vanishing condition.
  10. 10. The method of claim 9, wherein the alarm rule types include a display type alarm, a process type alarm, and an importance alarm, and wherein the performing the corresponding process measure according to the alarm rule type comprises: deleting the real-time record for the display type alarm; for the processing type alarm, updating the end time, keeping records, and deleting real-time records under the condition that the processing is completed; for the important alarms, the end time is updated and the record is kept, and the real-time record is deleted in case the process is completed and the device is reset.
  11. 11. The method of claim 1, wherein said sending alarm change information and latest state information to the external function module after the current alarm state is updated comprises: the core components of the publish-subscriber mode comprise an event bus, an event queue, a distributor, a registry and an external function module interface; And after the current alarm state is updated, alarm change information and latest state information are sent to the external functional module according to the publish-subscriber mode.
  12. 12. The method of claim 11, wherein said sending alarm change information and latest state information to the external function module according to the publish-subscriber mode after the current alarm state is updated comprises: the external functional module is registered to the registration center through a standardized interface; Under the condition that the ship system is started, the registry reads a list of the external function modules from a configuration file, loads the external function modules through a container mechanism and initializes the external function modules; Triggering an alarm state updating event after the current alarm state is updated, and storing the event into the event queue through the event bus; maintaining a mapping relation between the external function module and the alarm type through the registry; And periodically scanning the event queue through the distributor, matching a subscription module according to the alarm type in the event, and pushing event information through the interface of the external functional module.
  13. 13. An alarm device for a marine system, comprising: The system comprises an acquisition module, a data processing module and a data processing module, wherein the acquisition module is used for acquiring multi-source data of the ship system, wherein the multi-source data are raw data of ship equipment acquired from a plurality of data sources; The loading module is used for loading a preset alarm rule; The evaluation module is used for evaluating the initial alarm state of the multi-source data according to the preset alarm rule, wherein the initial alarm state comprises the condition meeting the alarm condition and the condition meeting the alarm disappearance; the judging module is used for carrying out delay judgment on the preset alarm rule corresponding to the data meeting the alarm condition so as to trigger an alarm; The verification module is used for performing return difference verification on the data meeting the alarm disappearance condition; The system comprises an updating module, a data processing module and a data processing module, wherein the updating module is used for updating the current alarm state of the multi-source data and updating the real-time record and the history record, and the current alarm state comprises new alarm generation, alarm reproduction and alarm disappearance; the configuration and loading module is used for configuring and loading an external functional module of the ship system; And the sending module is used for sending the alarm change information and the latest state information to the external functional module after the current alarm state is updated.
  14. 14. A ship system, characterized in that, an alarm device comprising a marine system as claimed in claim 13.
  15. 15. A computer readable storage medium, having stored thereon a computer program, the computer program being loaded by a processor to perform the steps of the method according to any of claims 1-12.

Description

Alarm method and device for ship system, ship system and storage medium Technical Field The application relates to the technical field of comprehensive automation of ships, in particular to an alarm method and device of a ship system, the ship system and a storage medium. Background In the process of comprehensive automation of ships, many different types of equipment, such as power system equipment, navigation equipment, communication equipment and the like, are mounted on the ships. The data acquisition sources of the equipment are wide, and the equipment comprises an automatic ship identification system (Automatic Identification System, AIS) based on a message queue telemetry transmission (Message Queuing Telemetry Transport, MQTT) protocol, can transmit information such as ship position, heading and the like, and is used for high-speed data distribution service (Data Distribution Service, DDS) in the ship, so that data interaction between complex equipment systems such as power and navigation systems is realized. However, the data formats of different data sources vary greatly, and lack of uniform standards makes it difficult to integrate and utilize the data. The current ship equipment alarm has the problems of incompatible data format, simple check logic, lack of delay and return difference adjusting mechanism and the like, thereby leading to unreliable alarm. Disclosure of Invention A method, apparatus, system and storage medium for alarming a ship system are provided to improve reliability of alarming a ship system. In a first aspect, a method for alarming a marine system is provided, comprising: acquiring multi-source data of a ship system, wherein the multi-source data is original data of ship equipment acquired from a plurality of data sources; loading a preset alarm rule, and evaluating an initial alarm state of the multi-source data according to the preset alarm rule, wherein the initial alarm state comprises the condition of meeting the alarm condition and the condition of meeting the alarm disappearance; delay judgment is carried out on a preset alarm rule corresponding to the data meeting the alarm condition so as to trigger an alarm; performing return difference verification on the data meeting the alarm disappearance condition; Updating the current alarm state of the multi-source data, and updating the real-time record and the history record, wherein the current alarm state comprises new alarm generation, alarm reproduction and alarm disappearance; and configuring and loading an external functional module of the ship system, and after the current alarm state is updated, sending alarm change information and latest state information to the external functional module. In some embodiments, the marine system includes a rule base, loading preset alarm rules, and evaluating an initial alarm state of the multi-source data according to the preset alarm rules, including: Reading a preset alarm rule from a rule base, and carrying out safety analysis on the preset alarm rule to obtain a target alarm rule; And evaluating whether the multi-source data meets the alarm condition according to the target alarm rule so as to determine the initial alarm state of the multi-source data. In some embodiments, the target alert rule includes a data identifier, a mathematical expression, a delay time, a return difference value, and an alert level corresponding to the marine equipment; Carrying out safety analysis on a preset alarm rule, including: And analyzing a preset alarm rule by adopting a preset mathematical expression analysis algorithm, and setting a verification rule. In some embodiments, setting the verification rules includes, in a lexical analysis stage, checking characters in the mathematical expression and filtering out illegal characters; Defining a callable function as a preset mathematical operation function; an upper limit of the length of the mathematical expression is set. In some embodiments, the ship system comprises a buffer module, and the delay judgment is carried out on the preset alarm rule corresponding to the data meeting the alarm condition so as to trigger the alarm, and the method comprises the following steps: under the condition that the delay time of a preset alarm rule is zero, marking the corresponding data meeting the alarm condition as a triggering state; And under the condition that the delay time of the preset alarm rule is longer than zero, checking the existence state of the preset alarm rule in the cache module to trigger an alarm. In some embodiments, checking the existence state of the preset alarm rule in the cache module to trigger an alarm includes: under the condition that a preset alarm rule does not exist in the cache module, acquiring a current time stamp, and storing the current time stamp and the delay time of the preset alarm rule as current cache values into the cache module; and under the condition that a preset alarm rule exists in the cache module and the c