Ship maritime communication data acquisition method and device, and storage medium
By setting up multiple data collectors and multiple communication interfaces in the ship, parallel data reception and protocol analysis are realized, and the problems of complex data acquisition and poor compatibility caused by the single interface of traditional ship communication equipment are solved, the efficiency and analysis accuracy of maritime communication data acquisition are improved, and navigation safety is enhanced.
Patent Information
- Application Number
- CN202510178294.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-05-13
AI Technical Summary
Traditional ship communication equipment only arranges a single type of communication interface, resulting in complex collection of maritime communication data, low efficiency, poor compatibility, and affecting navigation safety.
A ship-mounted multi-data collector is set up in the ship, equipped with multiple communication interfaces of different types, and receive maritime communication data from different interfaces in parallel, query the communication protocol type, and extract the communication key parameters of the unified structure, and load it on the management web page for display.
It has achieved comprehensive collection and integration of maritime communication data, improved data collection efficiency and analysis accuracy, enhanced the intelligence and information transparency of ship management, and reduced navigation risks.
Smart Images

Figure CN119996456A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of ship communication technology, and in particular to a method, device and storage medium for collecting ship maritime communication data. Background Art
[0002] With the rapid development of the shipping industry and the advancement of informatization, the operation and safety management of ships are increasingly dependent on various advanced communication technologies and equipment. These devices can collect ship navigation data in real time, such as ship location information, speed, heading, weather conditions, etc., and transmit them to shore-based or other equipment through communication interfaces for analysis and processing.
[0003] At present, traditional ship communication equipment is often only equipped with a single type of communication interface. When connecting with different communication equipment, different interface adapters are required, which increases the complexity of ship maritime communication data collection and affects the efficiency of ship navigation data collection. The communication equipment is equipped with a single type of communication interface, which may lead to poor compatibility of maritime communication data analysis and reduce the accuracy of maritime communication data analysis, thereby affecting the ship's timely analysis of the received maritime communication data and causing ship navigation safety issues. Summary of the invention
[0004] The present invention provides a method, a device and a storage medium for collecting ship maritime communication data, which are used to improve the efficiency of collecting ship maritime communication data and the accuracy of analyzing maritime communication data.
[0005] In a first aspect, an embodiment of the present invention provides a method for collecting maritime communication data of a ship, wherein a ship-borne multi-data collector and a plurality of maritime communication devices are provided in the ship, wherein the ship-borne multi-data collector is provided with a plurality of different types of communication interfaces, and the maritime communication devices are connected to the communication interfaces, and the method is applied to the ship-borne multi-data collector, comprising:
[0006] receiving, from each of the communication interfaces in parallel, target maritime communication data generated by the maritime communication equipment when the ship is running;
[0007] Query the communication protocol type of the maritime communication equipment;
[0008] Extracting key communication parameters of a unified structure and related to the ship operation from the target maritime communication data according to the communication protocol type;
[0009] The key communication parameters are loaded onto the management webpage of the ship for display.
[0010] In a second aspect, an embodiment of the present invention further provides a device for collecting maritime communication data of a ship, wherein a ship-borne multi-data collector and a plurality of maritime communication devices are arranged in the ship, wherein the ship-borne multi-data collector is provided with a plurality of communication interfaces of different types, and the maritime communication device is connected to the communication interface, and the device is applied to the ship-borne multi-data collector, comprising:
[0011] A maritime communication data receiving module, used for receiving target maritime communication data generated by the maritime communication equipment when the ship is running from each of the communication interfaces in parallel;
[0012] A communication protocol type query module, used to query the communication protocol type of the maritime communication equipment;
[0013] A communication key parameter extraction module, used to extract communication key parameters of a unified structure and related to the ship operation from the target maritime communication data according to the communication protocol type;
[0014] The communication key parameter display module is used to load the communication key parameters onto the management webpage of the ship for display.
[0015] In a third aspect, an embodiment of the present invention further provides a computer device, the computer device comprising:
[0016] one or more processors;
[0017] A storage device for storing one or more programs;
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for collecting ship maritime communication data as provided in the first aspect of the present invention.
[0019] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for collecting ship maritime communication data as provided in the first aspect of the present invention.
[0020] In a fifth aspect, an embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the method for collecting ship maritime communication data provided in the first aspect of the present invention is implemented.
[0021] In the embodiment of the present invention, a shipboard multi-data collector and a variety of maritime communication equipment are set in the ship, and the shipboard multi-data collector is provided with a plurality of different types of communication interfaces. The maritime communication equipment is connected to the communication interface, and the target maritime communication data generated by the maritime communication equipment when the ship is running is received from each communication interface in parallel; the communication protocol type of the maritime communication equipment is queried; the communication key parameters of the unified structure and related to the operation of the ship are extracted from the target maritime communication data according to the communication protocol type; and the communication key parameters are loaded to the ship's management webpage for display. By setting the shipboard multi-data collector and a variety of maritime communication equipment, combined with the parallel access of multiple communication interfaces, the comprehensive collection and integration of the maritime communication data generated during the operation of the ship is realized, and the maritime communication data from different communication interfaces are received in parallel, ensuring that the ship system can synchronously process the information of various types of maritime communication equipment, avoiding the risk of delay and omission of maritime communication data, and at the same time improving the efficiency of maritime communication data collection. The communication protocol type of the maritime communication equipment is queried, so that the system can accurately parse various types of maritime communication data according to different protocol methods, improving the compatibility and adaptability of the system and the accuracy of maritime communication data parsing. By extracting the key communication parameters related to ship operation in a unified structure, all maritime communication data has been standardized, which provides a clear and reliable basis for subsequent data analysis and decision-making. The key communication parameters are loaded into the ship management webpage for real-time display, so that the crew and management personnel can understand the ship's operating status intuitively and timely, enhancing the intelligence and information transparency of ship management, improving operational efficiency and reducing potential risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flow chart of a method for collecting ship maritime communication data provided in Embodiment 1 of the present invention;
[0023] Figure 2 A schematic diagram of the structure of a ship data acquisition system provided in Embodiment 1 of the present invention;
[0024] Figure 3 A schematic diagram of the interface of a management page provided in the first embodiment of the present invention;
[0025] Figure 4 A structural block diagram of a device for collecting ship maritime communication data provided in Embodiment 2 of the present invention;
[0026] Figure 5 A schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can cover sequential implementations other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] See also Figure 1 , shows a flow chart of a method for collecting ship maritime communication data provided by Embodiment 1 of the present invention, the method can be executed by a device for collecting ship maritime communication data, the device for collecting ship maritime communication data can be implemented in the form of hardware and / or software, and the device for collecting ship maritime communication data can be configured in a computer device. Figure 1 As shown, the method includes:
[0031] Step 101: Receive target maritime communication data generated by maritime communication equipment when the ship is running from each communication interface in parallel.
[0032] In this embodiment, the ship is usually equipped with a variety of maritime communication equipment, and each maritime communication equipment transmits data through a different communication interface. By receiving the target maritime communication data of these maritime communication equipment in parallel, the real-time information of multiple maritime communication equipment can be obtained at the same time, improving the efficiency and real-time performance of the target maritime communication data collection. This method avoids the delay of single-threaded reception one by one, which helps to improve the monitoring capability and emergency response speed of ship operation.
[0033] Ships usually refer to large ships used for marine operations, such as official ships, commercial ships, container ships, and special ships. A shipboard multi-data collector and a variety of maritime communication equipment are installed in the ship. The shipboard multi-data collector is equipped with multiple different types of communication interfaces, and the maritime communication equipment is connected to the communication interface.
[0034] Communication interface refers to the data transmission channel that connects the device with other systems at the hardware or software level, such as serial data communication interface (such as RS-232), differential line interface (such as RS-485) and network communication interface (such as RJ45), which are commonly used for data communication between devices; and maritime communication equipment refers to the equipment on the ship used to collect and transmit various maritime communication data, such as depth sounder, automatic identification system, engine monitoring system, autopilot, global positioning system, global navigation satellite system, sensor, radar system and radio equipment, etc. These maritime communication equipment are connected to the ship system through these communication interfaces and exchange maritime communication data. Each communication interface is independently equipped with multiple shielding layers; the distance between two adjacent communication interfaces exceeds the preset threshold to reduce the mutual interference of signals between the communication interfaces.
[0035] Specifically, original maritime communication data generated by maritime communication equipment during ship operation are received from various communication interfaces in parallel. These original maritime communication data may come from different communication interfaces (serial data communication interface (RS-232), differential line interface (RS-485) and network communication interface (RJ45), etc.). Due to differences in communication protocols, the original maritime communication data may not be directly adapted to the communication interface, resulting in difficulties in processing and interpreting the original maritime communication data. Whether the communication interface is adapted to the original maritime communication data is detected. If the communication interface is not adapted to the original maritime communication data, the communication protocol used by the original maritime communication data is parsed; the original maritime communication data is converted into candidate maritime communication data in a common format according to the communication protocol to ensure standardized data processing. If the communication interface is compatible with the original maritime communication data, the original maritime communication data is marked as candidate maritime communication data; the candidate maritime communication data is verified; if an error occurs in the verification of the candidate maritime communication data, the candidate maritime communication data is corrected or retransmitted to obtain the target maritime communication data, ensuring that the ship can obtain high-quality, unified format target maritime communication data during operation, providing reliable support for subsequent ship management, monitoring and fault detection.
[0036] For example, different devices on the ship come from different manufacturers, and their communication interfaces and protocol standards are different. For example, some old maritime communication equipment uses customized non-standard interfaces, which are difficult to be compatible with the newly added mainstream communication interfaces. To solve this problem, the system has designed an adaptive interface conversion module, which has built-in multiple common protocol parsing libraries, and can perform real-time analysis and protocol matching on the signals sent by maritime communication equipment. When an incompatible communication interface is detected, the module automatically performs protocol conversion, converts the non-standard data format into a universal format recognizable by the system, and achieves seamless connection. When multiple communication interfaces work at the same time, signals are prone to mutual interference, resulting in data transmission errors or loss. For example, near high-frequency communication interfaces, low-frequency signals may be subject to electromagnetic interference. The transmission line of each communication interface is independently shielded by multi-layer shielding technology to reduce crosstalk between signals, and data from different communication interfaces are received in parallel to ensure the stability and accuracy of initial maritime communication data transmission. The electromagnetic environment in the ship may be affected by engines, radars, radios and other equipment, causing noise and bit errors in the initial maritime communication data transmission. The use of multi-layer shielding technology can reduce external interference and improve the reliability and security of initial maritime communication data. In addition, the use of parallel receiving technology can increase the initial maritime communication data transmission rate, so that multiple maritime communication devices in the ship can upload initial maritime communication data at the same time, thereby improving the real-time and responsiveness of the overall system. In the hardware circuit design, the interface circuit is reasonably laid out to increase the physical distance between different communication interface circuits and reduce the possibility of interference caused by the parallel operation of each communication interface.
[0037] For example, Figure 2 This is a structural diagram of the ship data acquisition system. The maritime communication equipment in the figure includes a water depth detector, an automatic identification system, an engine monitoring system, an autopilot, a global positioning system, a global navigation satellite system, sensors, a radar system and radio equipment. The communication interface includes a serial data communication interface, a differential line interface and a network communication interface. The communication interface contains different communication protocols, and the collected maritime communication data is received from each maritime communication device in parallel. The received maritime communication data is input into the ship-borne multi-data collector for analysis, and the analyzed maritime communication data is displayed in the management page.
[0038] Step 102: Query the communication protocol type of the maritime communication equipment.
[0039] In this embodiment, the communication protocol type of the maritime communication equipment is queried to ensure that the target maritime communication data is correctly extracted and interpreted from the maritime communication equipment. Each type of maritime communication equipment usually uses different communication protocols (such as NMEA0183, NMEA 2000, etc.), which define the structure and transmission rules of the data. If the protocol type is not determined, it may cause errors in parsing the target maritime communication data or fail to correctly identify key information. By querying and identifying the communication protocol type, an accurate basis can be provided for the subsequent target maritime communication data extraction process, so that the key communication parameters related to the operation of the ship can be extracted according to the communication protocol specification, thereby improving the accuracy and reliability of the target maritime communication data processing.
[0040] Step 103: extracting key communication parameters of a unified structure related to ship operation from the target maritime communication data according to the communication protocol type.
[0041] In this embodiment, the target maritime communication data generated by the maritime communication equipment are of various types, and each maritime communication equipment may use different communication protocols. During the operation of the ship, these target maritime communication data are obtained and uniformly extracted and processed, which helps to integrate the target maritime communication data from different sources into a set of structured and standardized parameters. This unified structure extraction makes the various target maritime communication data of the ship operation more consistent, which is convenient for subsequent monitoring, analysis, fault warning and other operations, and improves the safety and efficiency of ship operation.
[0042] In one embodiment of the present invention, step 103 may include the following steps:
[0043] Step 311: If the target maritime communication data is global navigation satellite system data, divide the global navigation satellite system data into a plurality of first fields according to the communication protocol type.
[0044] In this embodiment, the data received by the global navigation satellite system (GNSS) includes multiple first fields, such as the first longitude, the first latitude, the altitude and the ground speed. These first fields are usually important for the navigation and positioning of ships. Since GNSS data may contain multiple data segments, different communication protocols will organize these first fields in different formats. Therefore, the target maritime communication data is divided into different first fields according to the type of communication protocol in order to structure these original target maritime communication data for subsequent processing. The first field includes at least the first longitude, the first latitude, the altitude and the ground speed. By extracting the first fields such as the first longitude, the first latitude, the altitude and the ground speed, the current position, altitude and navigation status of the ship can be accurately obtained.
[0045] Step 312: Use a dynamic verification algorithm to perform a verification operation on the first field.
[0046] In this embodiment, GNSS data may contain errors or noise, especially in complex environments (such as multipath effects, atmospheric delays, etc.). Therefore, the extracted first fields (such as the first longitude, the first latitude, the altitude, etc.) are verified to detect and correct errors therein. The dynamic verification algorithm can analyze the validity and consistency of these first fields to ensure that the data of each first field is within a reasonable range. Improve the accuracy and reliability of the first field. During navigation, the accuracy of position and speed data is usually more important for ship navigation.
[0047] Step 313: If the verification operation is completed, a differential correction algorithm is used to perform a correction operation on the first field.
[0048] In this embodiment, the differential correction algorithm performs a correction operation on the first field to improve the accuracy and reliability of the GNSS data. By comparing with high-precision reference data, the differential correction can eliminate errors caused by satellite signal interference, atmospheric effects and other factors, thereby ensuring more accurate positioning information, improving the reliability of the first field, reducing system errors, and enhancing the stability of the global navigation satellite system, especially in complex environments, ensuring accurate positioning of ships and improving shipping safety.
[0049] Step 314: If the correction operation is completed, the first longitude and the first latitude are converted into geographic information.
[0050] In this embodiment, the position of the ship can be accurately represented by the first longitude and the first latitude after differential correction, and converted into geographic information (such as coordinate points on a map) for intuitive display and understanding. This conversion enables the original digital coordinates to correspond to the position in the actual geographic space, making it convenient for the ship operator to view and operate the current position of the ship on the management webpage. Among them, the geographic information, the corrected altitude and the corrected ground speed are all unified structured and key communication parameters related to the operation of the ship.
[0051] For example, before parsing, maritime communication data usually exists in a raw, mixed format. Although the maritime communication data before parsing contains a lot of information, it is difficult to directly apply it to actual ship operation management due to its original state. Taking the GNSS data received by the satellite antenna as an example, it is often encoded into a continuous string with a specific protocol, and each information field has no obvious distinguishing mark, such as the GGA sentence of the NMEA0183 protocol:
[0052] $GPGGA,121528,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,*47;
[0053] For those who are not familiar with the communication protocol, it is difficult to directly obtain useful information from it. After parsing, these data will be disassembled into a unified structure format, presented in the form of key-value pairs or tables, such as {"time":"121528","latitude":"4807.038N","longitude":"01131.000E","positioning quality indicator":"1","number of satellites":"08","horizontal precision factor":"0.9","altitude":"545.4M","geoid height":"46.9M"}, such data format is clearer and more standardized, which is convenient for subsequent storage, query and processing. The parsed GNSS data will also undergo processes such as magnetic deviation correction, error correction and filtering to obtain accurate heading information, which can be directly applied to scenarios such as ship navigation control, route planning and safety warning, and strongly support the safe and efficient operation of ships.
[0054] Through data processing algorithms, the system can extract key information from various protocol data in real time and properly store the parsed data. GNSS data is mostly transmitted in NMEA0183 or RTCM protocol, covering key elements such as time, location, and speed. During parsing, the system automatically identifies the type of communication protocol, and then breaks down the data into identifiable fields such as longitude, latitude, altitude, and speed according to the communication protocol format. For messages such as GGA and RMC in NMEA format, the system uses a special parsing algorithm to segment the transmission string, perform data verification and format conversion, and after time synchronization, provide accurate location information such as longitude, latitude, and altitude.
[0055] In one embodiment of the present invention, step 103 may include the following steps:
[0056] Step 321: If the target maritime communication data is automatic identification system data, the automatic identification system data is converted into binary data using a pre-made binary format according to the communication protocol type.
[0057] In this embodiment, the transmission of the automatic identification system (AIS) data is usually in binary format. The reason for converting the AIS data into binary format is that binary data is more suitable for efficient storage and transmission, and is easier to perform subsequent parsing operations. For example, when the AIS receives a large amount of maritime communication data from ships, the binary format can compress the amount of data, reduce bandwidth usage, and thus improve transmission efficiency. If not converted, the AIS data may be stored in a text format that is not suitable for fast parsing, affecting the response speed and real-time performance of the system. Therefore, conversion to binary data is a basic step to ensure subsequent efficient parsing and real-time response.
[0058] Step 322: read the start flag of the binary data to determine the message type of the automatic identification system data.
[0059] In this embodiment, in the AIS data, the role of the start flag is equivalent to identifying the data type. After accurately reading the flag, the next data processing method can be determined. For example, there are two different types of messages in the AIS data: dynamic messages (AIVDM) and static messages (AIVDO), and the structures and contents of these two messages are different. AIVDM messages transmit dynamic data (such as ship position, speed, etc.), while AIVDO messages contain auxiliary data (such as static identification information). If the message type is handled incorrectly (such as mishandling the AIVDO message as dynamic data), the ship identification information may change frequently, resulting in data errors. Therefore, correctly parsing the flag and accurately determining the message type can improve data accuracy.
[0060] When parsing AIS data, the system first reads the first 6 bits of the AIS data. These 6 bits are the starting flag bits, of which the first bit is used to distinguish whether it is satellite AIS data. If it is 0, it is AIVDM, and if it is 1, it is AIVDO.
[0061] Step 323: If the message type is a static message, extract at least the ship name as the second field from the automatic identification system data.
[0062] In this embodiment, static messages usually contain fixed identification information of the ship, such as the ship name, International Maritime Organization number (IMO number), ship identification code (MMSI number), etc. These static messages are relatively stable during the life cycle of the ship. In the AIS system, static messages are more important for ship identification and tracking. Assuming that the system mistakenly regards static data as dynamic data for frequent updates, it may cause unnecessary changes in static identification information such as MMSI and IMO, thereby affecting the accuracy of ship management and scheduling. Therefore, when parsing static messages, these fixed information are extracted without considering dynamic factors to ensure the stability of this information.
[0063] Step 324: If the message type is a dynamic message, extract at least the ship position, ship speed and ship heading from the automatic identification system data as the second field.
[0064] In this embodiment, the dynamic message transmits the real-time operating status of the ship, such as the second field such as the position, ship speed, and ship heading. These second fields will change frequently and affect the decision-making and safety management of navigation. If the dynamic data is mistakenly mixed with the static data, it may lead to an incorrect navigation track or inaccurate navigation guidance. Therefore, it is necessary to accurately distinguish dynamic messages from static messages, extract dynamic data, and update the navigation status in time to ensure the safety of ship navigation and real-time monitoring. Avoiding frequent updates of static data mistakenly as dynamic data can improve the stability and prediction accuracy of the system.
[0065] Step 325: Use a random forest algorithm to supplement missing values and correct abnormal values for multiple second fields.
[0066] In this embodiment, AIS data may be missing or have outliers due to equipment failure, signal loss, or transmission problems. For example, the real-time position of the ship may not be obtained in time, resulting in missing data. The use of a random forest algorithm to supplement missing values and correct outliers can be predicted through historical data and dynamic data of similar ships, so that the missing parts can be reasonably estimated. After this processing, the system can restore the complete ship trajectory and avoid decision-making biases caused by incomplete data. If outlier correction is not performed, navigation safety may be affected.
[0067] Step 326: If the missing values are supplemented and the abnormal values are corrected, the plurality of second fields are used as key communication parameters with a unified structure and related to the ship operation.
[0068] In this embodiment, the supplemented and corrected data (i.e., multiple second fields) will be integrated into a unified format of communication key parameters to facilitate further processing and display by the system. The purpose of this step is to ensure that various types of AIS messages (such as dynamic data and static data) can be seamlessly connected on the same platform, improving the availability of the second field and the operating efficiency of the system. If these second fields are not managed in a unified structured manner, conflicts and inconsistencies between different data types may occur, affecting the accuracy of subsequent decisions. Through a unified structure, the system can avoid redundancy and conflict when processing, storing and transmitting data, ensuring accurate synchronization of ship information.
[0069] Exemplarily, the system is updated after receiving AIS data and parsing it. After parsing out accurate MMSI, IMO and other information, it will be compared with the corresponding information stored in the system. If there is a change, the relevant identification information in the system will be updated to ensure the accuracy and real-time nature of the data.
[0070] In one embodiment of the present invention, step 103 may include the following steps:
[0071] Step 331: If the target maritime communication data is compass equipment data, extract a plurality of third fields from the compass equipment data according to the communication protocol type.
[0072] In this embodiment, during the voyage, the ship is often in different geographical locations and environmental conditions, and the magnetic deviation will change accordingly. Therefore, the ship system needs to accurately extract multiple third fields from these compass device data according to different communication protocol types, and the third field at least includes the heading angle and magnetic deviation for subsequent correction and processing. The real-time transmission and analysis capabilities of the compass device data ensure that the extracted compass device data is accurate, thereby laying the foundation for subsequent heading angle correction and filtering.
[0073] For example, through hardware interfaces such as NMEA0183 protocol interface, NMEA2000 protocol interface and RS232 / RS485 serial port, the system can be connected to different types of compass devices such as electronic compass and magnetic compass to obtain compass device data. For the NMEA0183 or NMEA2000 protocol data output by the compass device, the system processes the HDG sentence, HDT sentence, etc. in NMEA according to the corresponding standards, extracts the compass device data, and performs magnetic deviation correction, error correction and filtering to ensure the accuracy of heading information and improve the navigation accuracy, stability and safety of the ship.
[0074] The HDG (Heading, Deviation, and Variation) statement provides the ship's heading, heading deviation, and magnetic declination. It contains the following data:
[0075] Heading: The heading angle of the ship relative to true north, usually a number between 0 and 360 degrees.
[0076] Deviation: Magnetic deviation caused by magnetic objects on the vessel (such as generators, metal structures, etc.). This is the difference between the magnetic heading and the true heading.
[0077] Magnetic declination (Variation): The angular difference between the Earth's magnetic field and true north in a geographic area.
[0078] The HDT (Heading True) sentence provides the vessel's heading relative to true north, without reference to deviation or magnetic declination. The data is accurate true heading information.
[0079] Step 332: Correct the heading angle according to the magnetic deviation to obtain the target heading angle.
[0080] In this embodiment, during the ship navigation process, the heading angle displayed by the compass device data may be affected by the local magnetic field or other environmental factors, resulting in magnetic deviation. The actual heading angle is corrected by applying the magnetic deviation to the heading angle data. The ship's heading control and navigation path planning will judge the ship's direction of travel based on this heading angle. If the magnetic deviation correction is not performed, the ship's navigation may misjudge the heading, causing the route to deviate, and even affect navigation safety. The corrected target heading angle is more accurate, ensuring that the ship can move in the correct direction, especially in complex sea areas or waterways, and can effectively avoid navigation errors and accidents.
[0081] Step 333: Filter the target heading angle to obtain target compass device data.
[0082] In this embodiment, the heading angle may be interfered by various factors in actual application, such as equipment accuracy limitation, environmental noise, dynamic changes, etc. These unstable factors and noise can be removed from the heading data through filtering, making the target heading angle more stable and stable. The filter can help the system obtain smooth heading data in real time, reduce frequent fluctuations, and improve navigation accuracy. For ships in sailing, stable heading data is usually more important for automatic driving, heading control and path planning. If the heading data fluctuates too much, it may cause the system to make misjudgments, thereby affecting the navigation path and safety of the ship. The filtered target compass device data will be able to more accurately reflect the actual operating status of the ship and support various decision-making and control systems during navigation. The target compass device data is a key communication parameter with a unified structure and related to the operation of the ship.
[0083] In one embodiment of the present invention, step 103 may include the following steps:
[0084] Step 341: If the target maritime communication data is GPS data, extract the second longitude, second latitude and timestamp of the GPS data according to the communication protocol type.
[0085] In this embodiment, the ship navigation system usually relies on the global positioning system (GPS) to provide accurate geographic location information. Three parameters, the second longitude, the second latitude and the timestamp, are extracted from the GPS data. These parameters are the basis for ship positioning and can help the system track the position and travel time of the ship in real time. By accurately extracting these parameters, the system can identify the position of the ship at different time points.
[0086] Step 342: Draw a trajectory map of the ship using a plurality of continuous global positioning system data.
[0087] In this embodiment, the track map is a visual representation of the ship's navigation path within a certain period of time, which can help operators clearly understand the ship's navigation route. Drawing a ship's track map through multiple continuous GPS data provides a certain reference value for route optimization, abnormal behavior monitoring, and navigation safety. Through this graphical display, the ship's navigation path is no longer limited to abstract numerical data, but becomes an easy-to-understand graphical form, helping ship managers make decisions and discover possible deviations or other problems in a timely manner.
[0088] Step 343: Calculate the physical distance between the two adjacent GPS data and the heading of the ship based on the second longitude and the second latitude of the two adjacent GPS data.
[0089] In this embodiment, the physical distance and heading between the ships are calculated by the second longitude and the second latitude of two adjacent GPS data. This is useful for actual navigation of the ship because it can accurately reflect the current sailing direction and relative position of the ship. The calculation of the physical distance can help determine the actual driving path of the ship, while the heading ensures that the ship can travel along the predetermined route and avoid deviation or taking the wrong route.
[0090] Step 344: Calculate the navigation speed of the ship based on the physical distance and the timestamps of two adjacent GPS data.
[0091] In this embodiment, the time interval of navigation is calculated by using the time stamp difference between adjacent GPS data, and the navigation speed of the ship is obtained according to the ratio of the physical distance and the time interval obtained in step 343. By accurately calculating the navigation speed, the system can determine whether the ship is traveling at the predetermined speed and adjust the navigation strategy in time to ensure navigation efficiency and safety. Among them, the track map, heading and navigation speed are key communication parameters with a unified structure and related to the operation of the ship.
[0092] In this embodiment, considering that there are dense electronic devices and extremely complex electromagnetic environments in the ship operating environment, the present invention focuses on strengthening electromagnetic shielding measures. Special shielding materials are used, and the shielding structure is carefully designed. The data transmission lines are equipped with multi-layer shielded cables. At the same time, a filter circuit is set at the communication interface to effectively reduce electromagnetic interference and ensure the stability of maritime communication data transmission. The environment in which the ship is located is humid, dusty and vibrates frequently, which affects the hardware equipment. To this end, the hardware design fully takes into account the waterproof and dustproof performance. The shell of the maritime communication equipment adopts a sealing process, and the internal circuit board is treated with moisture-proof, mildew-proof and salt spray-proof treatment. At the same time, the fixing method is optimized by using shock-absorbing pads and anti-seismic brackets to ensure the reliable operation of maritime communication equipment in harsh environments. In terms of the compatibility of maritime communication equipment, the system fully considers the diversity of ship equipment, and the hardware adopts special specification communication interfaces and communication protocols specially customized for the ship environment and equipment communication interface, such as standard marine waterproof aviation plugs, which greatly improves the stability and reliability of the connection. At the same time, the system fully supports common marine communication protocols such as NMEA0183 and NMEA2000 to ensure seamless docking with various types of maritime communication equipment. In response to the actual needs of ship operation and management, the system is also equipped with a fuel consumption monitoring and analysis module that can collect engine data and fuel consumption data in real time, helping ship managers optimize navigation strategies and effectively reduce fuel costs; the equipment monitoring and maintenance module predicts equipment failures in advance and arranges maintenance plans in a timely manner through real-time monitoring and analysis of equipment operation data, significantly improving the reliability and service life of ship equipment.
[0093] Step 104: Load the key communication parameters to the ship's management webpage for display.
[0094] In this embodiment, the extracted key communication parameters are loaded onto the ship's management webpage for display, so that the ship's management personnel can monitor the ship's operating status in real time. It helps the staff to quickly view important data related to the ship's operation, such as navigation information, speed, heading, equipment status, etc., thereby improving decision-making efficiency and response capabilities, and ensuring the safety and stability of the ship's operation. Through the webpage display, managers can intuitively obtain real-time key communication parameters, discover potential problems in a timely manner, and optimize ship management and maintenance work.
[0095] Exemplarily, the page document of the ship's management page is queried; the page document contains hypertext markup (HTML), cascading style sheets (CSS) and scripting language (JavaScript); the page document is optimized; the optimization includes compressing the hypertext markup (HTML), cascading style sheets (CSS) and scripting language (JavaScript), deleting spaces, line breaks and comments, simplifying variable names and function names, and deleting unused codes; if the optimization is completed, the page document is loaded to display the ship's management page; key communication parameters are loaded into the page document to be displayed on the ship's management webpage, providing management personnel with a concise and efficient interface to better monitor and manage the ship's operating status.
[0096] For example, Figure 3 The following is a diagram of the management page interface. Figure 3 Includes top navigation bar: displays "HOME", "SETTINGS", "CONTACT US", supports user switching function; Figure 3 It also includes multiple display modules (such as LOCATION, VBox Eth0 VIEW, VBox Eth1 VIEW, Router, VideoCompress Box, Micro SD, NMEA2000, VERSION, LocalAIS, ReceivedAIS and Ping Setting). These display modules can be set according to the actual needs of collecting maritime communication data, and the key communication parameters are loaded to the ship's management webpage for display. Each module displays some easy-to-understand parameters, which makes it easy for ship management personnel to obtain key operating data, enhance control over the ship's status, and effectively respond to emergencies in complex environments. Figure 3The upper part of the main panel shows real-time GNSS data (first latitude N 22.8338475°, first longitude E 113.5069191°), and the GNSS device is on board ("OnBoard"). Network configuration: VBox device IP (192.168.18.1), router IP (192.168.80.201), subnet mask (255.255.255.0), gateway (192.168.80.1) and MAC address (00:08DCCS / CLC7). Video Compression Box (VideoCompress BOX) IP (192.168.80.196), status "Ready". Storage management: Micro SD card total capacity 31,154,688KB, remaining 31,146,952KB, status "Logging". The lower part of the main panel: Version information: Hardware version "Standard", software version "1.0.1", MCU ID (2CO042000E5133313533333), build time "2024-12-2714:15:52". AIS data stored in the system ("LocalAIS"), AIS data collected from maritime communication equipment ("ReceivedAIS"), Ping test: supports input of target IP (such as video compression box), and detects network connectivity.
[0097] The management webpage of the present invention is a scenario in which webpage management is implemented based on MCU (microcontroller unit). Due to limited storage space, non-volatile memory (Flash) storage is saved and loading speed is improved by compressing hypertext markup language (HTML), cascading style sheets (CSS) and scripting language (JavaScript) files in key communication parameters. By removing spaces, line breaks, comments, simplifying variable names and function names, and removing unused codes, the file size is significantly reduced. In order to improve data management and decision-making efficiency, the system provides an intuitive and easy-to-operate visual user interface. Managers can view the working status of ship communication equipment in real time and quickly adjust and optimize as needed. Through this visual interface, ship managers can easily obtain key operating data, enhance control over the ship's status, and effectively respond to emergencies in complex environments.
[0098] In one embodiment of the present invention, abnormal data may appear in the process of the ship collecting key communication parameters. Correctly analyzing the source and cause of these abnormal data is usually important for timely detection of potential problems. This not only helps to ensure the normal operation of the ship's maritime communication equipment, but also effectively ensures the safety of the ship's navigation. Abnormal data may come from equipment failure, signal interference or environmental factors, etc. Therefore, it is necessary to formulate protective measures for maritime communication equipment. Through real-time monitoring and rapid response, managers can take effective preventive and emergency measures to minimize safety hazards and ensure smooth and safe navigation. If an abnormality occurs in the communication equipment, a fault code will be sent. The system will also parse the content of the fault code, quickly locate the cause of the equipment failure and issue an early warning, providing reliable protection for ship operations. The following steps are for abnormal detection and processing of key communication parameters:
[0099] Step 1041: If the key communication parameter is outside the preset safety range, determine that the key communication parameter is a faulty communication parameter.
[0100] In this embodiment, the collected key communication parameters are monitored in real time and compared with the preset safety range. If the key communication parameters exceed the safety threshold, the system will automatically mark the key communication parameters as faulty communication parameters, prompting potential abnormalities or equipment failures, timely discovering problems and preventing safety hazards.
[0101] Step 1042: extract the fault indicator of the fault communication parameter.
[0102] In this embodiment, the system extracts fault indicators of fault communication parameters, such as fault codes and signal status, by monitoring fault communication parameters. Abnormal or abnormal signals are located from the collected target maritime communication data as a basis for determining whether there is a fault in the maritime communication equipment. The fault code can directly identify a specific fault type, while the signal status reflects the change in the working state of the maritime communication equipment. Through this step, the system can identify potential equipment problems and provide data support for subsequent fault judgment and repair.
[0103] Step 1043: query a preset fault mapping table according to the fault indicator to determine the fault mode represented by the fault communication parameter.
[0104] In this embodiment, the fault mapping table is a data mapping relationship that can correspond fault indicators to specific fault modes (such as equipment damage, communication interruption, sensor error, etc.). Through this step, the system can clearly identify the specific location and nature of the fault, helping maintenance personnel to quickly locate the source of the problem, so as to carry out targeted equipment repair or adjustment. This not only improves response efficiency, but also reduces the risk of ship shutdown or navigation obstruction due to equipment failure.
[0105] Step 1044: extract influencing factors of the failure mode.
[0106] In this embodiment, influencing factors that may affect the failure mode of maritime communication equipment are identified and extracted. The occurrence of failure mode may not only cause information interruption, but also affect the safe navigation of the ship. Only by understanding various potential influencing factors can the risk of failure be better assessed. These influencing factors include but are not limited to the severity of maritime communication equipment failure, the difficulty of maritime communication equipment recovery, and the frequency of maritime communication equipment failure. By extracting these influencing factors, it is ensured that all aspects that may lead to failure mode can be fully considered. Failure mode includes failure type, failure duration, and failure impact range.
[0107] Step 1045: Set weight values for influencing factors according to the hierarchical analysis method.
[0108] In this embodiment, after identifying the influencing factors of the failure mode, these influencing factors are prioritized. Different influencing factors have different degrees of influence on the failure risk, and weights are set for them according to their influence. Use the Analytic Hierarchy Process (AHP) to assign a weight value to each influencing factor based on expert judgment or data analysis. The core idea of the Analytic Hierarchy Process is to decompose complex problems into simpler hierarchical structures, and then obtain a comprehensive and quantitative risk analysis result by evaluating each level. For example, in some cases, the age of the equipment may affect the failure risk more than operating errors, so it may be given a higher weight. The setting of weights can be adjusted according to the specific operating environment of the ship and historical failure data to ensure the accuracy of the evaluation results.
[0109] Step 1046: Sum the products of the influencing factors and the weight values to obtain the risk value.
[0110] In this embodiment, by calculating the product of each influencing factor and summing them, a quantitative risk value is obtained, which reflects the comprehensive risk of possible failure of maritime communication equipment. For example, if a factor has a high weight and its failure probability is high, then this factor will contribute more to the final risk value. If a factor has a small weight or its probability of occurrence is low, then its contribution to the risk value is small. This risk value will provide ship managers with a quantitative failure risk assessment, which can help them judge the overall health of the current communication system.
[0111] Step 1047: Map the risk value to the risk level of the failure mode to the maritime communication equipment.
[0112] In this embodiment, after obtaining the comprehensive risk value, this risk value is mapped to a specific risk level, such as low risk, medium risk and high risk. The complex and abstract risk value is converted into a standard that is easier to understand and operate, so that managers can take appropriate measures according to the risk level. For example, if the risk value is low, it may indicate that the communication equipment is in a relatively safe state, and managers can continue to maintain the existing maintenance plan. If the risk value is high, it means that the equipment has a greater risk of failure, and it may be necessary to strengthen maintenance, add spare equipment or take other emergency measures to ensure the normal operation of the communication system. Through this division of risk levels, ship managers can more intuitively understand the current risk situation and formulate more accurate protection strategies.
[0113] Step 1048: formulate a risk strategy based on the risk level to protect the maritime communication equipment.
[0114] In this embodiment, after evaluating the risk level of the failure mode, the system will formulate a protection strategy based on the evaluation result. The purpose of this step is to reduce or eliminate the risk caused by the failure through effective countermeasures. For example, if the risk level is high, it may be necessary to take emergency repair measures immediately or suspend the use of some maritime communication equipment to ensure the safety of the ship and its equipment. The implementation of the risk strategy can significantly reduce the impact of the failure on navigation safety and ensure the smooth operation of the ship.
[0115] In the embodiment of the present invention, a shipboard multi-data collector and a variety of maritime communication equipment are set in the ship, and the shipboard multi-data collector is provided with a plurality of different types of communication interfaces. The maritime communication equipment is connected to the communication interface, and the target maritime communication data generated by the maritime communication equipment when the ship is running is received from each communication interface in parallel; the communication protocol type of the maritime communication equipment is queried; the communication key parameters of the unified structure and related to the operation of the ship are extracted from the target maritime communication data according to the communication protocol type; and the communication key parameters are loaded to the ship's management webpage for display. By setting the shipboard multi-data collector and a variety of maritime communication equipment, combined with the parallel access of multiple communication interfaces, the comprehensive collection and integration of the maritime communication data generated during the operation of the ship is realized, and the maritime communication data from different communication interfaces are received in parallel, ensuring that the ship system can synchronously process the information of various types of maritime communication equipment, avoiding the risk of delay and omission of maritime communication data, and at the same time improving the efficiency of maritime communication data collection. The communication protocol type of the maritime communication equipment is queried, so that the system can accurately parse various types of maritime communication data according to different protocol methods, improving the compatibility and adaptability of the system and the accuracy of maritime communication data parsing. By extracting the key communication parameters related to ship operation in a unified structure, all maritime communication data has been standardized, which provides a clear and reliable basis for subsequent data analysis and decision-making. The key communication parameters are loaded into the ship management webpage for real-time display, so that the crew and management personnel can understand the ship's operating status intuitively and timely, enhancing the intelligence and information transparency of ship management, improving operational efficiency and reducing potential risks.
[0116] Embodiment 2
[0117] Figure 4 A schematic diagram of the structure of a device for collecting maritime communication data of a ship provided in Embodiment 2 of the present invention, wherein a ship-borne multi-data collector and a plurality of maritime communication devices are arranged in the ship, wherein the ship-borne multi-data collector is provided with a plurality of different types of communication interfaces, wherein the maritime communication devices are connected to the communication interfaces, and the device is applied to the ship-borne multi-data collector, such as Figure 4 As shown, the device comprises:
[0118] The maritime communication data receiving module 401 is used to receive target maritime communication data generated by the maritime communication equipment when the ship is running from each of the communication interfaces in parallel;
[0119] A communication protocol type query module 402 is used to query the communication protocol type of the maritime communication equipment;
[0120] A communication key parameter extraction module 403 is used to extract communication key parameters of a unified structure and related to the ship operation from the target maritime communication data according to the communication protocol type;
[0121] The communication key parameter display module 404 is used to load the communication key parameters to the management webpage of the ship for display.
[0122] In one embodiment of the present invention, the communication interface includes a serial data communication interface, a differential line interface and a network communication interface; the maritime communication equipment includes a water depth detector, an automatic identification system, an engine monitoring system, an autopilot, a global positioning system, a global navigation satellite system, a sensor, a radar system and a radio device; each of the communication interfaces is independently provided with a plurality of shielding layers; the distance between two adjacent communication interfaces exceeds a preset threshold;
[0123] The maritime communication data receiving module 401 includes:
[0124] A raw data receiving module, used for receiving raw maritime communication data generated by the maritime communication equipment when the ship is running from each of the communication interfaces in parallel;
[0125] An adaptation judgment module, used to detect whether the communication interface is compatible with the original maritime communication data;
[0126] a communication protocol parsing module, for parsing the communication protocol used by the original maritime communication data if no;
[0127] a candidate maritime communication data conversion module, configured to convert the original maritime communication data into candidate maritime communication data in a universal format according to the communication protocol;
[0128] a candidate maritime communication data marking module, configured to, if yes, mark the original maritime communication data as candidate maritime communication data;
[0129] A candidate maritime communication data verification module, used to verify the candidate maritime communication data;
[0130] The target maritime communication data acquisition module is used to correct or retransmit the candidate maritime communication data if an error occurs when verifying the candidate maritime communication data, so as to obtain the target maritime communication data.
[0131] In one embodiment of the present invention, the communication key parameter extraction module 403 includes:
[0132] a first field division module, configured to divide the target maritime communication data into a plurality of first fields according to the communication protocol type if the target maritime communication data is global navigation satellite system data; the first fields at least including a first longitude, a first latitude, an altitude and a ground speed;
[0133] A field verification module, used to perform a verification operation on the first field using a dynamic verification algorithm;
[0134] A field correction module, configured to perform a correction operation on the first field using a differential correction algorithm if the verification operation is completed;
[0135] a geographic information acquisition module, configured to convert the first longitude and the first latitude into geographic information if the correction operation is completed;
[0136] The geographic information, the corrected altitude and the corrected ground speed are key communication parameters of a unified structure and are related to the operation of the ship.
[0137] In one embodiment of the present invention, the communication key parameter extraction module 403 includes:
[0138] A binary data conversion module, for converting the automatic identification system data into binary data using a prefabricated binary format according to the communication protocol type if the target maritime communication data is automatic identification system data;
[0139] A message type determination module, used for reading the start flag of the binary data to determine the message type of the automatic identification system data;
[0140] a static message processing module, configured to extract at least the ship name as the second field from the automatic identification system data if the message type is a static message;
[0141] A dynamic message processing module, configured to extract at least the ship position, the ship speed and the ship heading from the automatic identification system data as a second field if the message type is a dynamic message;
[0142] A field processing module, used for supplementing missing values and correcting abnormal values for a plurality of the second fields by using a random forest algorithm;
[0143] The communication key parameter determination module is used to use the plurality of the second fields as communication key parameters of a unified structure and related to the operation of the ship if the missing values are supplemented and the abnormal values are corrected.
[0144] In one embodiment of the present invention, the communication key parameter extraction module 403 includes:
[0145] A third field extraction module, for extracting a plurality of third fields from the compass device data according to the communication protocol type if the target maritime communication data is compass device data; the third fields at least include a heading angle and a magnetic deviation;
[0146] A heading angle correction module, used to correct the heading angle according to the magnetic deviation to obtain a target heading angle;
[0147] The heading angle filtering module is used to filter the target heading angle to obtain target compass equipment data; the target compass equipment data is a communication key parameter with a unified structure and related to the operation of the ship.
[0148] In one embodiment of the present invention, the communication key parameter extraction module 403 includes:
[0149] a parameter extraction module, for extracting the second longitude, the second latitude and the timestamp of the GPS data according to the communication protocol type if the target maritime communication data is GPS data;
[0150] A trajectory map drawing module, used for drawing a trajectory map of the ship through a plurality of continuous GPS data;
[0151] a heading calculation module, used for calculating the physical distance between two adjacent GPS data and the heading of the ship according to the second longitude and the second latitude of the two adjacent GPS data;
[0152] A navigation speed calculation module, used for calculating the navigation speed of the ship according to the physical distance and the timestamps of two adjacent GPS data;
[0153] Among them, the trajectory diagram, the heading and the navigation speed are key communication parameters of a unified structure and are related to the operation of the ship.
[0154] In one embodiment of the present invention, the communication key parameter display module 404 includes:
[0155] A document query module, used for querying the page document of the ship's management page; the page document contains hypertext markup, cascading style sheets and scripting language;
[0156] A document optimization module, used for optimizing the page document; the optimization includes compressing hypertext markup, cascading style sheets and scripting languages, deleting spaces, line breaks and comments, simplifying variable names and function names, and deleting unused codes;
[0157] A document loading module, used for loading the page document to display the management page of the ship if the optimization is completed;
[0158] A parameter display module is used to load the key communication parameters into the page document so as to display them on the management webpage of the ship.
[0159] In one embodiment of the present invention, the device further comprises:
[0160] A fault parameter judgment module, configured to determine that the key communication parameter is a fault communication parameter if the key communication parameter is outside a preset safety range;
[0161] A fault indicator extraction module, used to extract the fault indicator of the fault communication parameter; the fault indicator at least includes a fault code and a signal state;
[0162] A fault mode query module, used to query a preset fault mapping table according to the fault indicator to determine the fault mode represented by the fault communication parameter;
[0163] An influencing factor extraction module is used to extract influencing factors of the failure mode; the failure mode includes the failure type, the failure duration and the failure impact range; the influencing factors include the severity of the maritime communication equipment failure, the difficulty of maritime communication equipment recovery and the frequency of maritime communication equipment failure;
[0164] A weight value setting module, used for setting weight values for the influencing factors according to the hierarchical analysis method;
[0165] A risk value calculation module, used for summing the product between the influencing factors and the weight values to obtain a risk value;
[0166] A risk level mapping module, used for mapping the risk value to the risk level of the failure mode to the maritime communication equipment;
[0167] A risk strategy formulation module, used to formulate a risk strategy according to the risk level to protect the maritime communication equipment;
[0168] The device for collecting ship maritime communication data provided by the embodiment of the present invention can execute the method for collecting ship maritime communication data provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method for collecting ship maritime communication data.
[0169] Embodiment 3
[0170] See also Figure 5, showing a schematic diagram of the structure of a computer device provided by an embodiment of the present invention. The computer device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, blade servers, mainframe computers, and other suitable computers. The computer device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0171] like Figure 5 As shown, the computer device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the computer device 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0172] A number of components in the computer device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the computer device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0173] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the method for collecting ship maritime communication data.
[0174] In some embodiments, the method for collecting ship maritime communication data may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the computer device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for collecting ship maritime communication data described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for collecting ship maritime communication data in any other appropriate manner (e.g., by means of firmware).
[0175] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0176] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0177] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0178] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0179] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0180] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0181] Embodiment 4
[0182] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method for collecting ship maritime communication data provided by any embodiment of the present invention is implemented.
[0183] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0184] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0185] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for collecting ship maritime communication data, characterized in that: The ship is provided with a ship-borne multi-data collector and a plurality of maritime communication devices, the ship-borne multi-data collector is provided with a plurality of communication interfaces of different types, the maritime communication devices are connected to the communication interfaces, and the method is applied to the ship-borne multi-data collector, comprising: receiving, from each of the communication interfaces in parallel, target maritime communication data generated by the maritime communication equipment when the ship is running; Query the communication protocol type of the maritime communication equipment; Extracting key communication parameters of a unified structure and related to the ship operation from the target maritime communication data according to the communication protocol type; The key communication parameters are loaded onto the management webpage of the ship for display.
2. The method according to claim 1, characterized in that The communication interface includes a serial data communication interface, a differential line interface and a network communication interface; the maritime communication equipment includes a water depth detector, an automatic identification system, an engine monitoring system, an autopilot, a global positioning system, a global navigation satellite system, a sensor, a radar system and a radio device; each of the communication interfaces is independently provided with a plurality of shielding layers; the distance between two adjacent communication interfaces exceeds a preset threshold; The step of receiving target maritime communication data generated by the maritime communication equipment when the ship is running from each of the communication interfaces in parallel includes: receiving original maritime communication data generated by the maritime communication equipment when the ship is running from each of the communication interfaces in parallel; Detecting whether the communication interface is compatible with the original maritime communication data; If not, parsing the communication protocol used by the original maritime communication data; converting the original maritime communication data into candidate maritime communication data in a universal format according to the communication protocol; If yes, marking the original maritime communication data as candidate maritime communication data; verifying the candidate maritime communication data; If an error occurs when checking the candidate maritime communication data, the candidate maritime communication data is corrected or retransmitted to obtain the target maritime communication data.
3. The method according to claim 1, characterized in that The extracting of key communication parameters of a unified structure and related to the ship operation from the target maritime communication data according to the communication protocol type includes: If the target maritime communication data is global navigation satellite system data, the global navigation satellite system data is divided into a plurality of first fields according to the communication protocol type; the first field at least includes a first longitude, a first latitude, an altitude and a ground speed; Performing a verification operation on the first field using a dynamic verification algorithm; If the verification operation is completed, performing a correction operation on the first field using a differential correction algorithm; If the correction operation is completed, converting the first longitude and the first latitude into geographic information; The geographic information, the corrected altitude and the corrected ground speed are key communication parameters of a unified structure and are related to the operation of the ship.
4. The method according to claim 1, characterized in that The extracting of key communication parameters of a unified structure and related to the ship operation from the target maritime communication data according to the communication protocol type includes: If the target maritime communication data is automatic identification system data, converting the automatic identification system data into binary data using a prefabricated binary format according to the communication protocol type; Reading the starting flag of the binary data to determine the message type of the automatic identification system data; If the message type is a static message, extracting at least the ship name as the second field from the automatic identification system data; If the message type is a dynamic message, extracting at least the ship position, the ship speed and the ship heading from the automatic identification system data as the second field; Supplement missing values and correct outliers for the plurality of second fields by using a random forest algorithm; If the missing values are supplemented and the abnormal values are corrected, the plurality of the second fields are used as key communication parameters with a unified structure and related to the operation of the ship.
5. The method according to claim 1, characterized in that The extracting of key communication parameters of a unified structure and related to the ship operation from the target maritime communication data according to the communication protocol type includes: If the target maritime communication data is compass equipment data, extracting a plurality of third fields from the compass equipment data according to the communication protocol type; the third fields at least include a heading angle and a magnetic deviation; Correcting the heading angle according to the magnetic deviation to obtain a target heading angle; The target heading angle is filtered to obtain target compass equipment data; the target compass equipment data is a communication key parameter with a unified structure and related to the operation of the ship.
6. The method according to claim 1, characterized in that The extracting of key communication parameters of a unified structure and related to the ship operation from the target maritime communication data according to the communication protocol type includes: If the target maritime communication data is global positioning system data, extracting the second longitude, the second latitude and the timestamp of the global positioning system data according to the communication protocol type; Drawing a track map of the ship through a plurality of continuous GPS data; Calculating the physical distance between two adjacent GPS data and the heading of the ship according to the second longitude and the second latitude of two adjacent GPS data; Calculating the navigation speed of the ship according to the physical distance and the timestamps of two adjacent GPS data; Among them, the trajectory diagram, the heading and the navigation speed are key communication parameters of a unified structure and are related to the operation of the ship.
7. The method according to claim 1, characterized in that The step of loading the key communication parameters onto the management webpage of the ship for display includes: Querying a page document of the ship's management page; the page document contains hypertext markup, cascading style sheets and scripting languages; Optimizing the page document; the optimization includes compressing hypertext markup, cascading style sheets and scripting languages, deleting spaces, line breaks and comments, simplifying variable names and function names, and deleting unused codes; If the optimization is completed, the page document is loaded to display the management page of the ship; The communication key parameters are loaded into the page document so as to be displayed on the management webpage of the ship.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: If the key communication parameter is outside a preset safety range, determining that the key communication parameter is a faulty communication parameter; Extracting a fault indicator of the fault communication parameter; the fault indicator at least includes a fault code and a signal state; According to the fault indicator, a preset fault mapping table is queried to determine the fault mode represented by the fault communication parameter; Extracting the influencing factors of the failure mode; the failure mode includes the failure type, the failure duration and the failure impact range; the influencing factors include the severity of the maritime communication equipment failure, the difficulty of restoring the maritime communication equipment and the failure frequency of the maritime communication equipment; Setting weight values for the influencing factors according to the hierarchical analysis method; Sum the products of the influencing factors and the weight values to obtain a risk value; Mapping the risk value to a risk level of the failure mode to the maritime communication equipment; A risk strategy is formulated according to the risk level to protect the maritime communication equipment.
9. A computer device, characterized in that: The computer device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for collecting ship maritime communication data as described in any one of claims 1-8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for collecting ship maritime communication data as described in any one of claims 1 to 8 is implemented.