Measuring point data collecting and processing method, device and system and storage medium

By configuring protocol templates and processing data parsing, the problem of data acquisition under heterogeneous communication protocols of multiple devices in the marine field has been solved, realizing efficient and flexible data acquisition and transfer, and meeting the needs of ship engine room monitoring and energy efficiency management.

CN121771307APending Publication Date: 2026-03-31THE 711TH RES INST OF CHINA STATE SHIPBUILDING CORP
View PDF 0 Cites 1 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-14
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In the existing technology, the data acquisition and processing methods in the shipbuilding field are difficult to efficiently and flexibly collect data generated by ship equipment with different communication protocols, and cannot meet the core requirements of real-time acquisition and efficient flow of multi-source data in scenarios such as ship engine room monitoring, navigation data recording, and energy efficiency management.

Method used

By configuring the protocol template based on the target communication protocol, the protocol configuration field and the measurement point configuration field are obtained, a protocol template is generated, and measurement point data is collected and parsed based on the protocol configuration file, so as to realize unified access and data parsing of different communication protocols.

Benefits of technology

It enables efficient and flexible acquisition of data from ship measurement devices using different communication protocols, meeting the real-time acquisition and efficient transfer requirements of multi-source data in scenarios such as ship engine room monitoring, navigation data recording, and energy efficiency management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121771307A_ABST
    Figure CN121771307A_ABST
Patent Text Reader

Abstract

The invention discloses a measuring point data collecting and processing method, device and system and a storage medium, and the method comprises the steps: obtaining a protocol configuration field and a measuring point configuration field based on a protocol template configuration operation for a target communication protocol; the protocol configuration field is used for indicating a communication parameter of a target communication protocol, and the measuring point configuration field is used for indicating a measuring point data acquisition processing parameter; generating a protocol template of the target communication protocol based on the protocol configuration field and the measuring point configuration field; obtaining a target protocol configuration file obtained based on the protocol template of the target communication protocol; the target protocol configuration file comprises field configuration content corresponding to a protocol configuration field and field configuration content corresponding to a measurement point configuration field; and performing measurement point data acquisition based on the target protocol configuration file, and performing data analysis processing on the acquired target measurement point data. According to the invention, the data generated by the ship measuring point equipment of different communication protocols can be efficiently and flexibly acquired.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data acquisition and processing technology, specifically to a method, apparatus, system, and storage medium for acquiring and processing measurement point data. Background Technology

[0002] With the rapid development of the Internet of Things (IoT), the Industrial Internet, and smart ships, data has become a core asset driving business decisions, optimizing operational efficiency, enabling predictive maintenance, and improving user experience. For large ships and industrial systems, data sources are extremely diverse, encompassing various sensors, smart devices, PLCs, SCADA systems, edge gateways, and cloud services. Different devices, manufacturers, and industries employ different communication protocols, which differ significantly in communication parameters, protocol fields, data formats, transmission cycles, and communication mechanisms. This results in a complex maritime industry characterized by the coexistence of heterogeneous communication protocols across multiple devices, fragmented data acquisition and processing, and complex operation and maintenance. However, current data acquisition and processing methods for the maritime sector struggle to efficiently and flexibly collect data from shipboard equipment using different communication protocols, thus failing to meet the core requirements of real-time acquisition and efficient flow of multi-source data in scenarios such as ship engine room monitoring, navigation data recording, and energy efficiency management. Summary of the Invention

[0003] To address the problems of the prior art, embodiments of this application provide a method, apparatus, system, and storage medium for acquiring and processing measurement point data. The specific technical solution is as follows.

[0004] On the one hand, a method for acquiring and processing measurement point data is provided, the method comprising: Based on the protocol template configuration operation for the target communication protocol, the protocol configuration field and the measurement point configuration field are obtained; the protocol configuration field is used to indicate the communication parameters of the target communication protocol, and the measurement point configuration field is used to indicate the measurement point data acquisition and processing parameters. Based on the protocol configuration field and the measurement point configuration field, a protocol template for the target communication protocol is generated; Obtain a target protocol configuration file based on the protocol template of the target communication protocol; the target protocol configuration file includes the field configuration content corresponding to the protocol configuration field and the field configuration content corresponding to the measurement point configuration field; Measurement point data is collected based on the target protocol configuration file, and the collected target measurement point data is parsed and processed.

[0005] In some implementations, the step of obtaining the protocol configuration field and the measurement point configuration field based on the protocol template configuration operation for the target communication protocol includes: In response to the protocol template configuration command, a protocol template configuration interface is displayed; the protocol template configuration interface includes a first field configuration item and a second field configuration item; the first field configuration item is used to indicate the configuration of the communication parameter field, and the second field configuration item is used to indicate the configuration of the measurement point data acquisition and processing field corresponding to the communication parameter field; Based on the configuration operation of the first field configuration item, obtain the protocol configuration field of the target communication protocol; Based on the configuration operation of the second field configuration item, the measurement point configuration field is obtained.

[0006] In some implementations, the data acquisition based on the target protocol configuration file includes: Obtain the basic measurement point data structure; Based on the basic measurement point data structure and the field configuration content corresponding to the measurement point configuration field in the target protocol configuration file, a measurement point data acquisition structure is generated. Measurement point data is collected based on the measurement point data acquisition structure and the field configuration content corresponding to the protocol configuration field in the target protocol configuration file.

[0007] In some implementations, the communication parameters include byte order and data type, and the measurement point data acquisition and processing parameters include raw data parsing rules, dead zone threshold, and validity verification rules; the data parsing processing of the acquired target measurement point data includes: Based on the original data parsing rules indicated by the measurement point configuration field in the target protocol configuration file, the target measurement point data is parsed. Based on the byte order and data type indicated by the protocol configuration field in the target protocol configuration file, the data parsing result is decoded, and the decoded result is numerically converted; Dead zone filtering is performed based on the dead zone threshold indicated by the measurement point configuration field in the target protocol configuration file. If the result of the dead zone filtering indicates that the data is valid, the result of the numerical conversion is validated based on the validity verification rules indicated by the measurement point configuration field in the target protocol configuration file.

[0008] In some implementations, the dead-zone filtering based on the dead-zone threshold indicated by the measurement point configuration field in the target protocol configuration file includes: Determine the difference between the result of the numerical conversion and the previous valid stored value; If the difference is less than the dead zone threshold, the data is marked as invalid and skipped from storage. If the difference is greater than or equal to the dead zone threshold, the data is determined to be valid.

[0009] In some implementations, the validity verification of the numerical conversion result based on the validity verification rules indicated by the measurement point configuration field in the target protocol configuration file includes: Verify whether the result of the numerical conversion is within the preset range and whether it meets the preset format requirements; the legality verification rules indicated by the measurement point configuration field in the target protocol configuration file include the preset range and the preset format requirements; If the result of the verification indicates that it is not within the preset range and / or does not meet the preset format requirements, it is determined to be an abnormal value, marked as an illegal data type, and the reason is recorded. If the result of the verification indicates that the data is within the preset range and meets the preset format requirements, then it is determined to be a valid data type.

[0010] In some implementations, after the data is determined to be legitimate, the method further includes: Reporting data is generated based on the reporting interface field in the basic measurement point data structure and the numerical conversion results corresponding to the legal data types.

[0011] In some embodiments, before acquiring the basic measurement point data structure, the method further includes: Obtain a measurement point table; the measurement point table includes fixed field information and dynamic field information, the fixed field information indicates the basic information of the measurement point, and the dynamic field information indicates the measurement point data acquisition and processing parameters; The basic measurement point data structure is generated based on the fixed field information in the measurement point table.

[0012] On the other hand, a measuring point data acquisition and processing device is provided, the device comprising: The field configuration module is used to obtain the protocol configuration field and the measurement point configuration field based on the protocol template configuration operation for the target communication protocol; the protocol configuration field is used to indicate the communication parameters of the target communication protocol, and the measurement point configuration field is used to indicate the measurement point data acquisition and processing parameters. The protocol template generation module is used to generate a protocol template for the target communication protocol based on the protocol configuration field and the measurement point configuration field. The configuration file acquisition module is used to acquire the target protocol configuration file obtained based on the protocol template of the target communication protocol; the target protocol configuration file includes the field configuration content corresponding to the protocol configuration field and the field configuration content corresponding to the measurement point configuration field; The measurement point data acquisition and processing module is used to acquire measurement point data based on the target protocol configuration file and to perform data parsing and processing on the acquired target measurement point data.

[0013] In some implementations, the field configuration module is specifically used to: display a protocol template configuration interface in response to a protocol template configuration instruction; the protocol template configuration interface includes a first field configuration item and a second field configuration item; the first field configuration item is used to indicate the configuration of communication parameter fields, and the second field configuration item is used to indicate the configuration of measurement point data acquisition and processing fields corresponding to the communication parameter fields; obtain the protocol configuration fields of the target communication protocol based on the configuration operation of the first field configuration item; and obtain the measurement point configuration fields based on the configuration operation of the second field configuration item.

[0014] In some implementations, the measurement point data acquisition and processing module, when acquiring measurement point data based on the target protocol configuration file, is specifically used to: obtain a basic measurement point data structure; generate a measurement point data acquisition structure based on the basic measurement point data structure and the field configuration content corresponding to the measurement point configuration field in the target protocol configuration file; and acquire measurement point data based on the measurement point data acquisition structure and the field configuration content corresponding to the protocol configuration field in the target protocol configuration file.

[0015] In some implementations, the communication parameters include byte order and data type, and the measurement point data acquisition and processing parameters include raw data parsing rules, dead zone threshold, and validity verification rules. The measurement point data acquisition and processing module, when performing data parsing processing on the acquired target measurement point data, specifically performs the following: parsing the target measurement point data based on the raw data parsing rules indicated by the measurement point configuration field in the target protocol configuration file; decoding the data parsing result based on the byte order and data type indicated by the protocol configuration field in the target protocol configuration file, and performing numerical conversion on the decoded result; performing dead zone filtering based on the dead zone threshold indicated by the measurement point configuration field in the target protocol configuration file; and, if the dead zone filtering result indicates valid data, performing validity verification on the numerical conversion result based on the validity verification rules indicated by the measurement point configuration field in the target protocol configuration file.

[0016] In some implementations, the dead-zone filtering based on the dead-zone threshold indicated by the measurement point configuration field in the target protocol configuration file includes: determining the difference between the result of the numerical conversion and the previous valid stored value; if the difference is less than the dead-zone threshold, marking it as invalid data and skipping storage; if the difference is greater than or equal to the dead-zone threshold, determining it as valid data.

[0017] In some implementations, the validity verification of the numerical conversion result based on the validity verification rules indicated by the measurement point configuration field in the target protocol configuration file includes: verifying whether the numerical conversion result is within a preset range and whether it conforms to preset format requirements; the validity verification rules indicated by the measurement point configuration field in the target protocol configuration file include the preset range and the preset format requirements; if the verification result indicates that it is not within the preset range and / or does not conform to the preset format requirements, it is determined to be an abnormal value, marked as an illegal data type, and the reason is recorded; if the verification result indicates that it is within the preset range and conforms to the preset format requirements, it is determined to be a legal data type.

[0018] In some embodiments, the apparatus further includes: The data reporting module is used to generate reporting data based on the reporting interface fields in the basic measurement point data structure and the numerical conversion results corresponding to the legal data types.

[0019] In some embodiments, the apparatus further includes: The measurement point table acquisition module is used to acquire the measurement point table; the measurement point table includes fixed field information and dynamic field information, the fixed field information indicates the basic information of the measurement point, and the dynamic field information indicates the measurement point data acquisition and processing parameters; The basic measurement point data structure generation module is used to generate the basic measurement point data structure based on the fixed field information in the measurement point table.

[0020] On the other hand, an electronic device is provided, including a processor and a memory, wherein the memory stores at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the measurement point data acquisition and processing method of any of the above aspects.

[0021] On the other hand, a distributed data acquisition and processing system for ships is provided, including multiple ship measuring point devices arranged in a distributed manner and the aforementioned electronic equipment, wherein the electronic equipment is connected and communicates with the multiple ship measuring point devices respectively.

[0022] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction or at least one program is stored in the computer-readable storage medium, wherein the at least one instruction or the at least one program is loaded and executed by a processor to implement the measurement point data acquisition and processing method of any of the above aspects.

[0023] On the other hand, a computer program product is provided, including a computer program that, when executed by a processor, implements the measurement point data acquisition and processing method of any of the above aspects.

[0024] This application embodiment is based on a protocol template configuration operation for a target communication protocol. It obtains protocol configuration fields and measurement point configuration fields, where the protocol configuration fields indicate the communication parameters of the target communication protocol, and the measurement point configuration fields indicate the measurement point data acquisition and processing parameters. A protocol template for the target communication protocol is generated based on these fields, and a target protocol configuration file is obtained from the template. This target protocol configuration file includes the field configuration content corresponding to the protocol configuration fields and the field configuration content corresponding to the measurement point configuration fields. Measurement point data is acquired based on this target protocol configuration file, and the acquired target measurement point data is parsed and processed. This enables efficient and flexible acquisition of data generated by ship measurement point devices with different communication protocols, meeting the core requirements for real-time acquisition and efficient flow of multi-source data in scenarios such as ship engine room monitoring, navigation data recording, and energy efficiency management. Attached Figure Description

[0025] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 This is a flowchart illustrating the measurement point data acquisition and processing method provided in some embodiments of this application; Figure 2 This is a schematic diagram of the protocol template configuration interface provided in some embodiments of this application; Figure 3 This is a partial schematic diagram of the protocol template library provided in some embodiments of this application; Figure 4 This is a schematic diagram of the structure of the measurement point data acquisition and processing device provided in some embodiments of this application; Figure 5 These are schematic diagrams of the structure of electronic devices provided in some embodiments of this application. Detailed Implementation

[0027] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0029] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0030] "A and / or B" includes the following three combinations: A only, B only, and a combination of A and B.

[0031] The use of “based on” in this application implies openness and inclusivity, because processes, steps, calculations or other actions “based on” one or more of the stated conditions or values ​​may in practice be based on additional conditions or values ​​beyond those stated.

[0032] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.

[0033] In the field of shipbuilding, data acquisition and processing methods are often siloed systems developed for specific protocols or application scenarios. Adding a new protocol or type of equipment usually requires developing or deeply modifying the acquisition program from scratch, resulting in long development cycles, high costs, poor reusability, and difficulty in unified management and understanding of data from different sources, creating data silos and hindering cross-system and cross-departmental data fusion and comprehensive analysis. Therefore, data acquisition and processing methods in scenarios where multiple devices on ships coexist with heterogeneous communication protocols are difficult to efficiently and flexibly acquire data generated by ship equipment with different communication protocols, thus failing to meet the core requirements of real-time acquisition and efficient flow of multi-source data in scenarios such as ship engine room monitoring, navigation data recording, and energy efficiency management.

[0034] In view of this, embodiments of this application provide a method for acquiring and processing measurement point data. This method obtains protocol configuration fields and measurement point configuration fields based on a protocol template configuration operation for a target communication protocol. The protocol configuration fields indicate the communication parameters of the target communication protocol, and the measurement point configuration fields indicate the measurement point data acquisition and processing parameters. A protocol template for the target communication protocol is generated based on these fields, and a target protocol configuration file is obtained based on this template. This target protocol configuration file includes the field configuration content corresponding to the protocol configuration fields and the field configuration content corresponding to the measurement point configuration fields. Measurement point data is acquired based on this target protocol configuration file, and the acquired target measurement point data is parsed and processed. This achieves efficient and flexible acquisition of data generated by ship measurement point equipment using different communication protocols, meeting the core requirements for real-time acquisition and efficient flow of multi-source data in scenarios such as ship engine room monitoring, navigation data recording, and energy efficiency management. The technical solution of this application embodiment is described in detail below.

[0035] Please see Figure 1 The diagram illustrates a flowchart of a measurement point data acquisition and processing method provided in this application. This method can be applied to electronic devices, which may be terminals and / or servers. It should be noted that this specification provides the operational steps of the method described in the embodiments or flowcharts, but based on conventional or non-inventive labor, more or fewer operational steps may be included. The order of steps listed in the embodiments is merely one possible execution order among many steps and does not represent the only execution order. In actual system or product execution, the method can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment) as shown in the embodiments or accompanying drawings. Specifically, as shown... Figure 1 As shown, the method may include: S101, based on the protocol template configuration operation for the target communication protocol, obtain the protocol configuration field and the measurement point configuration field.

[0036] The protocol configuration field is used to indicate the communication parameters of the target communication protocol, and the measurement point configuration field is used to indicate the measurement point data acquisition and processing parameters.

[0037] Understandably, protocol configuration fields and measurement point configuration fields can both include one or more fields. The specific number of fields for each can be configured according to actual needs. Specifically, protocol configuration fields can be characteristic fields inherent to the target communication protocol, such as communication method fields and connection parameter fields.

[0038] The target communication protocol can be a standard communication protocol or a non-standard custom communication protocol. For example, the target communication protocol can include, but is not limited to, various non-standard custom communication protocols such as Modbus, NMEA0183, OPC, and IEC 104.

[0039] S103, Based on the protocol configuration field and the measurement point configuration field, generate the protocol template of the target communication protocol.

[0040] It should be noted that the protocol template of the target communication protocol includes the above-mentioned protocol configuration field and measurement point configuration field, but the content of each field is empty.

[0041] For example, when obtaining the protocol configuration field and the measurement point configuration field based on the protocol template configuration operation for the target communication protocol, it may include: In response to a protocol template configuration command, a protocol template configuration interface is displayed; the protocol template configuration interface includes a first field configuration item and a second field configuration item; the first field configuration item is used to indicate the configuration of communication parameter fields, and the second field configuration item is used to indicate the configuration of measurement point data acquisition and processing fields corresponding to the communication parameter fields; based on the configuration operation of the first field configuration item, the protocol configuration fields of the target communication protocol are obtained; based on the configuration operation of the second field configuration item, the measurement point configuration fields are obtained.

[0042] Specifically, when it is necessary to construct a protocol template for a target communication protocol, a protocol template configuration operation can be initiated on the electronic device. The electronic device then receives the protocol template configuration instruction and, in response to the instruction, displays the protocol template configuration interface. The protocol template configuration interface includes a configurable first field configuration item and a second field configuration item. The first field configuration item is used to indicate the configuration of communication parameter fields, and the second field configuration item is used to indicate the configuration of measurement point data acquisition and processing fields corresponding to the aforementioned communication parameter fields.

[0043] Understandably, the protocol template configuration interface may also include other preset general parameter fields. These general parameter fields are used to set the general parameters of the target communication protocol, such as protocol type and version, protocol name, general device connection parameters, etc. Then, the first field configuration item can be used to configure some characteristic parameter fields of the target communication protocol itself, such as communication method field, connection parameter field, etc.

[0044] like Figure 2 The diagram shows the protocol template configuration interface. The "Key-Value Configuration Items" and "Table Configuration Items" are the first field configuration items, the "Measurement Point Configuration Items" are the second field configuration items, and the rest are other preset general parameter fields that can be configured with general parameters of the target communication protocol. It is understandable that both the first and second field configuration items can be expanded based on actual configuration requirements.

[0045] Figure 3 The diagram shown is a partial schematic of the protocol template library provided in this application embodiment, which includes multiple protocol templates based on the communication protocols obtained in the aforementioned steps S101 and S103. It can be understood that the target communication protocol can be... Figure 3 Any communication protocol shown.

[0046] S105, obtain the target protocol configuration file obtained based on the protocol template of the target communication protocol. The target protocol configuration file includes the field configuration content corresponding to the protocol configuration field and the field configuration content corresponding to the measurement point configuration field.

[0047] Specifically, the target protocol configuration file can be obtained by entering the corresponding field configuration content in the protocol template of the target communication protocol (including the protocol configuration field and the measurement point configuration field). The field configuration content corresponding to the protocol configuration field and the field configuration content corresponding to the measurement point configuration field can be configured based on the actual measurement point situation.

[0048] S107, collect measurement point data based on the target protocol configuration file, and perform data parsing processing on the collected target measurement point data.

[0049] Specifically, the measurement point data acquisition service can be deployed based on the target protocol configuration file, and then it can connect and communicate with the measurement point equipment of each ship to collect measurement point data, and perform data parsing and processing on the collected target test data.

[0050] In some implementations, step S107 above may include, when performing measurement point data acquisition based on the target protocol configuration file: obtaining a basic measurement point data structure; generating a measurement point data acquisition structure based on the basic measurement point data structure and the field configuration content corresponding to the measurement point configuration field in the target protocol configuration file; and performing measurement point data acquisition based on the measurement point data acquisition structure and the field configuration content corresponding to the protocol configuration field in the target protocol configuration file.

[0051] The basic measurement point data structure is used to define the general field information of the measurement points. Table 1 below shows an example of the basic measurement point data structure: Table 1

[0052] Based on this, in some embodiments, the method may further include: acquiring a measurement point table, the measurement point table including fixed field information and dynamic field information, the fixed field information indicating basic information of the measurement point, and the dynamic field information indicating the measurement point data acquisition and processing parameters; and generating the basic measurement point data structure based on the fixed field information in the measurement point table. It is understood that the fixed field information may be a globally unique measurement point identifier, data type, etc.; the dynamic fields corresponding to different communication protocol types may be different. For example, Table 2 below shows examples of dynamic fields corresponding to the buoy protocol, Table 3 shows examples of dynamic fields corresponding to the modbus protocol, and Table 4 shows examples of dynamic fields corresponding to the Snap7 protocol. Table 2

[0053] Table 3

[0054] Table 4

[0055] Therefore, the above implementation method can achieve the collection and storage of general information for different communication protocols by reusing the basic measurement point data structure.

[0056] In some implementations, the communication parameters may include byte order and data type, and the measurement point data acquisition and processing parameters may include raw data parsing rules, dead zone thresholds, and validity verification rules. Therefore, step S107, when parsing and processing the acquired target measurement point data, may include: parsing the target measurement point data based on the raw data parsing rules indicated by the measurement point configuration field in the target protocol configuration file; decoding the parsed data result based on the byte order and data type indicated by the protocol configuration field in the target protocol configuration file; performing numerical conversion on the decoded result; performing dead zone filtering based on the dead zone threshold indicated by the measurement point configuration field in the target protocol configuration file; and, if the dead zone filtering result indicates valid data, performing validity verification on the numerical conversion result based on the validity verification rules indicated by the measurement point configuration field in the target protocol configuration file, thereby achieving the parsing and processing of the target measurement point data. It is understood that the measurement point data acquisition and processing parameters may also include other dynamically defined parameters that can be customized according to different protocols, such as acquisition frequency and data preprocessing procedures. Numerical conversion can be implemented using scaling factors and offsets.

[0057] In some implementations, dead-zone filtering based on the dead-zone threshold indicated by the measurement point configuration field in the target protocol configuration file may include: determining the difference between the result of the numerical conversion and the previously valid stored value; if the difference is less than the dead-zone threshold indicated by the measurement point configuration field in the target protocol configuration file, marking it as invalid data and skipping its storage; if the difference is greater than or equal to the dead-zone threshold, determining it as valid data. This enables flexible filtering of stored data and improves the reliability of stored data.

[0058] In some implementations, validating the numerical conversion result based on the validity rules indicated by the measurement point configuration field in the target protocol configuration file may include: verifying whether the numerical conversion result is within a preset range and whether it conforms to preset format requirements; wherein, the validity rules indicated by the measurement point configuration field in the target protocol configuration file include the preset range and the preset format requirements; if the verification result indicates that it is not within the preset range and / or does not conform to the preset format requirements, it is determined to be an anomaly, marked as an illegal data type, and the reason is recorded; if the verification result indicates that it is within the preset range and conforms to the preset format requirements, it is determined to be a legal data type. This achieves flexible and effective validity verification of the target measurement point data. It is understood that legal data types can be stored in the general fields SigVal, SigSta, and Datetime.

[0059] In some implementations, after determining that the data type is valid, the method may further include: generating reporting data based on the reporting interface field in the above-mentioned basic measurement point data structure and the result of the numerical conversion corresponding to the above-mentioned valid data type.

[0060] Specifically, the reporting interface fields can be defined in the basic measurement point data structure. For example, the reporting interface fields can be the fields shown in Table 5 below: Table 5

[0061] The technical solutions described in this application can efficiently and flexibly achieve unified access for devices using different communication protocols (such as Modbus, OPC UA, IEC 104, etc.) in the marine field, standardize data processing, and ensure reliable data relay. This solves the high-cost problem of "one device, one adapter" in traditional solutions and meets the core requirements of real-time acquisition and efficient transfer of multi-source data in scenarios such as ship engine room monitoring, navigation data recording, and energy efficiency management. By defining and maintaining the mapping relationship of associated fields between different communication protocols, it ensures that even if the underlying protocols are different, the upper-layer application can access and manage measurement points from different data sources through a unified logical identifier (such as device_id, tag_name), thereby decoupling the protocol template from the actual entered information. Through the standardization and dynamic mapping of the protocol template, "plug and play" of multi-protocol devices is achieved, reducing the protocol adaptation complexity from O(n) to O(1) (where n is the number of protocol types).

[0062] Corresponding to the measurement point data acquisition and processing methods provided in the above embodiments, this application also provides a measurement point data acquisition and processing device. Since the measurement point data acquisition and processing device provided in this application corresponds to the measurement point data acquisition and processing methods provided in the above embodiments, the implementation methods of the aforementioned measurement point data acquisition and processing methods are also applicable to the measurement point data acquisition and processing device provided in this embodiment, and will not be described in detail in this embodiment.

[0063] Please see Figure 4 The diagram shows a structural schematic of a measurement point data acquisition and processing device provided in an embodiment of this application. This device has the function of implementing the measurement point data acquisition and processing method described in the above-described method embodiments. This function can be implemented by hardware or by hardware executing corresponding software. Figure 4 As shown, the measuring point data acquisition and processing device 400 may include: The field configuration module 410 is used to obtain a protocol configuration field and a measurement point configuration field based on a protocol template configuration operation for a target communication protocol; the protocol configuration field is used to indicate the communication parameters of the target communication protocol, and the measurement point configuration field is used to indicate the measurement point data acquisition and processing parameters. The protocol template generation module 420 is used to generate a protocol template for the target communication protocol based on the protocol configuration field and the measurement point configuration field. The configuration file acquisition module 430 is used to acquire a target protocol configuration file obtained based on the protocol template of the target communication protocol; the target protocol configuration file includes the field configuration content corresponding to the protocol configuration field and the field configuration content corresponding to the measurement point configuration field; The measurement point data acquisition and processing module 440 is used to acquire measurement point data based on the target protocol configuration file and to perform data parsing processing on the acquired target measurement point data.

[0064] In some embodiments, the field configuration module 410 is specifically used to: display a protocol template configuration interface in response to a protocol template configuration instruction; the protocol template configuration interface includes a first field configuration item and a second field configuration item; the first field configuration item is used to indicate the configuration of communication parameter fields, and the second field configuration item is used to indicate the configuration of measurement point data acquisition and processing fields corresponding to the communication parameter fields; obtain the protocol configuration fields of the target communication protocol based on the configuration operation of the first field configuration item; and obtain the measurement point configuration fields based on the configuration operation of the second field configuration item.

[0065] In some implementations, the measurement point data acquisition and processing module 440, when acquiring measurement point data based on the target protocol configuration file, is specifically used for: obtaining a basic measurement point data structure; generating a measurement point data acquisition structure based on the basic measurement point data structure and the field configuration content corresponding to the measurement point configuration field in the target protocol configuration file; and acquiring measurement point data based on the measurement point data acquisition structure and the field configuration content corresponding to the protocol configuration field in the target protocol configuration file.

[0066] In some implementations, the communication parameters include byte order and data type, and the measurement point data acquisition and processing parameters include raw data parsing rules, dead zone threshold, and validity verification rules. The measurement point data acquisition and processing module 440, when performing data parsing processing on the acquired target measurement point data, specifically performs the following: parsing the target measurement point data based on the raw data parsing rules indicated by the measurement point configuration field in the target protocol configuration file; decoding the data parsing result based on the byte order and data type indicated by the protocol configuration field in the target protocol configuration file; performing numerical conversion on the decoded result; performing dead zone filtering based on the dead zone threshold indicated by the measurement point configuration field in the target protocol configuration file; and, if the dead zone filtering result indicates valid data, performing validity verification on the numerical conversion result based on the validity verification rules indicated by the measurement point configuration field in the target protocol configuration file.

[0067] In some implementations, the dead-zone filtering based on the dead-zone threshold indicated by the measurement point configuration field in the target protocol configuration file includes: determining the difference between the result of the numerical conversion and the previous valid stored value; if the difference is less than the dead-zone threshold, marking it as invalid data and skipping storage; if the difference is greater than or equal to the dead-zone threshold, determining it as valid data.

[0068] In some implementations, the validity verification of the numerical conversion result based on the validity verification rules indicated by the measurement point configuration field in the target protocol configuration file includes: verifying whether the numerical conversion result is within a preset range and whether it conforms to preset format requirements; the validity verification rules indicated by the measurement point configuration field in the target protocol configuration file include the preset range and the preset format requirements; if the verification result indicates that it is not within the preset range and / or does not conform to the preset format requirements, it is determined to be an abnormal value, marked as an illegal data type, and the reason is recorded; if the verification result indicates that it is within the preset range and conforms to the preset format requirements, it is determined to be a legal data type.

[0069] In some embodiments, the device 400 further includes: The data reporting module is used to generate reporting data based on the reporting interface fields in the basic measurement point data structure and the numerical conversion results corresponding to the legal data types.

[0070] In some embodiments, the device 400 further includes: The measurement point table acquisition module is used to acquire the measurement point table; the measurement point table includes fixed field information and dynamic field information, the fixed field information indicates the basic information of the measurement point, and the dynamic field information indicates the measurement point data acquisition and processing parameters; The basic measurement point data structure generation module is used to generate the basic measurement point data structure based on the fixed field information in the measurement point table.

[0071] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0072] This application also provides an electronic device, which includes a processor and a memory. The memory stores at least one instruction or at least one program, which is loaded and executed by the processor to implement any of the measurement point data acquisition and processing methods provided in the above method embodiments.

[0073] Figure 5 This is a schematic diagram of the structure of an electronic device that performs a measurement point data acquisition and processing method according to an embodiment of this application. The electronic device can participate in or include the measurement point data acquisition and processing device provided in the embodiment of this application. Figure 5 As shown, the electronic device 50 may include one or more (shown as 502a, 502b, ..., 502n) processors 502 (processors 502 may include, but are not limited to, microprocessors such as MCUs or programmable logic devices such as FPGAs), a memory 504 for storing data, and a transmission device 506 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports in the I / O interface), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 5 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device described above. For example, electronic device 50 may also include... Figure 5 The more or fewer components shown, or having the same Figure 5 The different configurations shown.

[0074] It should be noted that the aforementioned one or more processors 502 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be wholly or partially integrated into any other element within the electronic device 50 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0075] The memory 504 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the method described in the embodiments of this application. The processor 502 executes various functional applications and data processing by running the software programs and modules stored in the memory 504, thereby implementing one of the above-mentioned methods. The memory 504 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 504 may further include memory remotely located relative to the processor 502, and these remote memories can be connected to the electronic device 50 via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0076] The transmission device 506 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the electronic device 50. In one example, the transmission device 506 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In one embodiment, the transmission device 506 may be a Radio Frequency (RF) module for wireless communication with the Internet.

[0077] The display can be, for example, a touchscreen liquid crystal display (LCD) that allows a user to interact with the user interface of the electronic device 50 (or mobile device).

[0078] This application also provides a distributed data acquisition and processing system for ships, including multiple distributed ship measurement point devices and the aforementioned electronic device 50. The electronic device 50 is connected and communicates with the multiple ship measurement point devices respectively. The multiple ship measurement point devices can use different communication protocols, such as various non-standard custom communication protocols such as Modbus, NMEA0183, OPC, IEC 104, etc.

[0079] The embodiments of this application also provide a computer-readable storage medium, which can be disposed in an electronic device to store at least one instruction or at least one program related to implementing a measurement point data acquisition and processing method. The at least one instruction or the at least one program is loaded and executed by the processor to implement any of the measurement point data acquisition and processing methods provided in the above-described method embodiments.

[0080] Embodiments of this application also provide a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform any of the measurement point data acquisition and processing methods provided in the above-described method embodiments.

[0081] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0082] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0083] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0084] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

Claims

1. A method for measuring point data acquisition and processing, characterized in that, The method comprises: Based on the protocol template configuration operation for the target communication protocol, the protocol configuration field and the measurement point configuration field are obtained; the protocol configuration field is used to indicate the communication parameters of the target communication protocol, and the measurement point configuration field is used to indicate the measurement point data acquisition and processing parameters; Based on the protocol configuration field and the measurement point configuration field, the protocol template of the target communication protocol is generated; The target protocol configuration file obtained based on the protocol template of the target communication protocol is obtained; the target protocol configuration file comprises the field configuration content corresponding to the protocol configuration field and the field configuration content corresponding to the measurement point configuration field; Based on the target protocol configuration file, the measurement point data is acquired, and the acquired target measurement point data is processed by data analysis.

2. The method of claim 1, wherein, The method comprises: In response to a protocol template configuration instruction, a protocol template configuration interface is displayed; the protocol template configuration interface comprises a first field configuration item and a second field configuration item; the first field configuration item is used to indicate the configuration of a communication parameter field, and the second field configuration item is used to indicate the configuration of a measurement point data acquisition and processing field corresponding to the communication parameter field; Based on the configuration operation of the first field configuration item, the protocol configuration field of the target communication protocol is obtained; Based on the configuration operation of the second field configuration item, the measurement point configuration field is obtained.

3. The method of claim 1, wherein, The method comprises: A basic measurement point data structure is obtained; Based on the basic measurement point data structure and the field configuration content corresponding to the measurement point configuration field in the target protocol configuration file, a measurement point data acquisition structure is generated; Based on the measurement point data acquisition structure and the field configuration content corresponding to the protocol configuration field in the target protocol configuration file, the measurement point data is acquired.

4. The method of claim 3, wherein, The communication parameters comprise byte sequence and data type, and the measurement point data acquisition and processing parameters comprise original data analysis rules, dead zone threshold and legality verification rules; the method comprises: Based on the original data analysis rules indicated by the measurement point configuration field in the target protocol configuration file, the target measurement point data is analyzed; Based on the byte sequence and data type indicated by the protocol configuration field in the target protocol configuration file, the result of the data analysis is decoded, and the decoded result is converted into a numerical value; Based on the dead zone threshold indicated by the measurement point configuration field in the target protocol configuration file, dead zone filtering is performed; In the case where the result of the dead zone filtering indicates valid data, the legality of the converted result is verified based on the legality verification rules indicated by the measurement point configuration field in the target protocol configuration file.

5. The method of claim 4, wherein, The method comprises: The difference between the converted result and the last valid stored value is determined; In the case where the difference is less than the dead zone threshold, invalid data is marked and storage is skipped; In a case where the difference is greater than or equal to the dead zone threshold, it is determined that the data is valid.

6. The method of claim 5, wherein, The legality verification of the result of the value conversion based on the legality verification rule indicated by the measurement point configuration field in the target protocol configuration file comprises: verifying whether the result of the value conversion is within a preset range and meets a preset format requirement; the legality verification rule indicated by the measurement point configuration field in the target protocol configuration file comprises the preset range and the preset format requirement; if the result of the verification indicates that the result is not within the preset range and / or does not meet the preset format requirement, it is determined that the result is an abnormal value, and the result is marked as an illegal data type and a reason is recorded; if the result of the verification indicates that the result is within the preset range and meets the preset format requirement, it is determined that the result is a legal data type.

7. The method of claim 6, wherein, After the result is determined to be a legal data type, the method further comprises: generating reporting data based on the reporting interface field in the basic measurement point data structure and the result of the value conversion corresponding to the legal data type.

8. The method of claim 3, wherein, Before the basic measurement point data structure is obtained, the method further comprises: obtaining a measurement point table; the measurement point table comprises fixed field information and dynamic field information, the fixed field information indicating basic information of a measurement point, and the dynamic field information indicating the measurement point data acquisition and processing parameter; generating the basic measurement point data structure based on the fixed field information in the measurement point table.

9. A survey point data acquisition processing apparatus characterized by comprising: The device comprises: a field configuration module configured to obtain a protocol configuration field and a measurement point configuration field based on a protocol template configuration operation for a target communication protocol; the protocol configuration field is used to indicate a communication parameter of the target communication protocol, and the measurement point configuration field is used to indicate a measurement point data acquisition and processing parameter; a protocol template generation module configured to generate a protocol template of the target communication protocol based on the protocol configuration field and the measurement point configuration field; a configuration file obtaining module configured to obtain a target protocol configuration file obtained based on the protocol template of the target communication protocol; the target protocol configuration file comprises field configuration content corresponding to the protocol configuration field and field configuration content corresponding to the measurement point configuration field; a measurement point data acquisition and processing module configured to perform measurement point data acquisition based on the target protocol configuration file and perform data analysis and processing on the acquired target measurement point data.

10. An electronic device, comprising: comprises a processor and a memory, the memory stores at least one instruction or at least one program, the at least one instruction or the at least one program is loaded and executed by the processor to implement the measurement point data acquisition and processing method in any one of claims 1-8.

11. A distributed data acquisition and processing system for a marine vessel, characterized by comprises: a plurality of ship measurement point devices distributedly arranged and an electronic device as claimed in claim 10, the electronic device is respectively connected in communication with the plurality of ship measurement point devices.

12. A computer-readable storage medium, characterized in that, The computer readable storage medium stores at least one instruction or at least one program, the at least one instruction or the at least one program is loaded and executed by the processor to implement the measurement point data acquisition and processing method in any one of claims 1-8.

13. A computer program product, characterised in that, The computer program is executed by a processor to implement the measuring point data acquisition processing method in any one of claims 1-8.

Citation Information

Cited By

  • Electric power data acquisition method, readable storage medium and device

    CN122120366A