Communication method and device for data acquisition upper computer and process equipment, equipment and medium

By receiving and analyzing the equipment information and interactive data of the process equipment, determining the analysis protocol and building a parameter list, the problem of repeated acquisition and data synchronization in communication between the digital acquisition computer and the process equipment is solved, and efficient and economical data acquisition and process are achieved. Optimization of equipment.

CN119449922APending Publication Date: 2025-02-14AECC HUNAN AVIATION POWERPLANT RES INST

Patent Information

Application Number
CN202411554524.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The existing communication methods between digital acquisition computers and process equipment have problems such as repeated parameter acquisition, wasted measurement channels, susceptible to system matching problems, reduced communication rate when parameters are multi-parameters and inability to guarantee data synchronization.

Method used

By receiving the equipment information and interactive data sent by multiple process equipment, the analysis protocol between the process equipment and the digital acquisition computer is determined, parameter information is matched, parameter list is constructed and sent to the process equipment, and centralized collection and accurate analysis of data is realized.

Benefits of technology

It avoids repeated acquisition, improves the efficiency and economicality of data acquisition, ensures data availability and accuracy, realizes data feedback and interaction, and helps optimize and adjust process equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449922A_ABST
    Figure CN119449922A_ABST
Patent Text Reader

Abstract

The invention relates to the field of equipment process control, and discloses a communication method and device for a data acquisition upper computer and process equipment, equipment and a medium, the method is applied to the data acquisition upper computer, and the method comprises the following steps: receiving equipment information and interaction data sent by a plurality of pieces of process equipment through preset communication connection; determining an analysis protocol between the process equipment and the data acquisition upper computer based on the equipment information, and processing the interaction data according to the analysis protocol to obtain analyzed interaction data; obtaining pre-configured parameter information in the data acquisition upper computer, and matching the analyzed interaction data with the parameter information to obtain target parameter information; and constructing a parameter list by using the target parameter information, and sending the parameter list to the process equipment. According to the invention, the problems of measurement channel waste caused by repeated acquisition, easy interference by system matching problem, low communication rate when parameters are many and incapability of guaranteeing data synchronism in parameter acquisition of the vehicle platform process equipment are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of equipment process control, and in particular to a communication method, device, equipment and medium between a data acquisition host computer and process equipment. Background Art

[0002] In aircraft engine testing, the auxiliary process equipment and electrical control of the platform usually adopt modular design ideas. Among them, the main measured parameters such as temperature, pressure, flow, torque, etc. are not only important parameters of engine test performance, but also key indicators of safety monitoring. Therefore, these parameters need to be sent to the platform data acquisition system for synchronous recording and display while participating in the control.

[0003] However, the existing communication method between the digital acquisition host computer and the process equipment has the problem of repeated parameter collection, wasting measurement channels, and is not economical. The signal is divided into two and is prone to interference due to the matching problem of the two systems. The use of the vehicle electrical control to send together is only suitable for a small number of parameters. When there are more parameters, the communication rate will be reduced and the data synchronization cannot be guaranteed. After a data forwarding from the slave station to the host, it is easy to have a total node failure, resulting in all parameters cannot be collected normally. As a slave station, it is generally necessary to have a unified brand. When encountering PLCs of different brands, the problem cannot be solved through the slave station. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a communication method, device, equipment and medium between a digital acquisition host computer and process equipment to solve the problems of repeated acquisition and waste of measurement channels in parameter acquisition of platform process equipment, susceptibility to interference from system matching problems, reduced communication rate when there are many parameters, and inability to guarantee data synchronization.

[0005] In a first aspect, an embodiment of the present invention provides a communication method between a data acquisition host computer and a process device, which is applied to the data acquisition host computer, and the method includes:

[0006] Receive equipment information and interaction data sent by multiple process equipment through preset communication connections;

[0007] Determine a parsing protocol between the process equipment and the data acquisition host computer based on the equipment information, and process the interaction data according to the parsing protocol to obtain parsed interaction data;

[0008] Acquire parameter information pre-configured in the data acquisition host computer, and match the parsed interaction data with the parameter information to obtain target parameter information;

[0009] A parameter list is constructed using the target parameter information, and the parameter list is sent to the process equipment.

[0010] Furthermore, before obtaining the parameter information pre-configured in the data acquisition host computer, the method further includes:

[0011] Detecting the triggering state of a preset virtual button on the data acquisition host computer;

[0012] If the trigger state is on, the communication configuration interface is displayed to the data acquisition host computer;

[0013] Acquire multiple communication addresses input by the user through the communication configuration interface and communication parameters corresponding to each of the communication addresses;

[0014] The communication address and the corresponding communication parameters are associated and stored in the data acquisition host computer as parameter information.

[0015] Further, the determining of the parsing protocol between the process equipment and the data acquisition host computer based on the equipment information includes:

[0016] According to the equipment information, matching is performed in a preset parsing protocol library to determine an initial parsing protocol corresponding to the process equipment;

[0017] Performing a parsing operation on the interactive data sent by the process equipment using the initial parsing protocol, and monitoring the parsing status of the interactive data during the execution process;

[0018] If there is abnormal data in the parsing state, stop the current parsing operation and obtain the abnormal type of the abnormal data;

[0019] A target resolution protocol is queried from the preset resolution protocol library according to the exception type.

[0020] Further, matching the parsed interaction data with the parameter information to obtain target parameter information includes:

[0021] Obtaining data identifiers in the parsed interaction data;

[0022] Traversing the parameter names associated with the parameter information, and comparing the data identifier with the plurality of parameter names to obtain candidate parameter information matching the data identifier;

[0023] The first data type of the candidate parameter information is compared with the second data type of the interaction data. If the first data type is consistent with the second data type, the candidate parameter information is used as the target parameter information.

[0024] Furthermore, the method further comprises:

[0025] When constructing the parameter list, monitoring the actual sampling rate of the target parameter information;

[0026] The actual sampling rate is compared with the preset sampling rate. If the actual sampling rate is consistent with the preset sampling rate, the parameter list is constructed according to the setting order of the target parameter information. Alternatively, if the actual sampling rate is inconsistent with the preset sampling rate, abnormal data generated when parsing the interaction data is obtained, and a reminder operation is performed based on the abnormal data.

[0027] Furthermore, before receiving the equipment information and interaction data sent by the plurality of process equipment, the method further includes:

[0028] Identify the communication methods and equipment types of multiple process equipment;

[0029] Verifying the communication mode and device type of each of the process devices to obtain verification results;

[0030] If the verification result is successful, a preset communication connection is established between the process equipment and the data acquisition host computer; or, if the verification result is failed, the communication method and the device type are re-identified until the verification is successful or the preset number of times is reached, the identification operation is stopped, and a reminder operation is performed.

[0031] In a second aspect, an embodiment of the present invention provides a communication method between a data acquisition host computer and a process device, which is applied to the process device, and the method includes:

[0032] Detecting the operating parameters of the current process equipment;

[0033] Determining whether the operating parameters meet a preset sending condition, and if so, encapsulating the operating parameters in a preset format to obtain interaction data;

[0034] The interactive data and the equipment information of the process equipment are sent to the data acquisition host computer through the communication connection between the process equipment and the data acquisition host computer.

[0035] In a third aspect, an embodiment of the present invention provides a communication device between a data acquisition host computer and a process device, which is applied to the data acquisition host computer, and the device includes:

[0036] A receiving module, used for receiving device information and interaction data sent by multiple process devices through a preset communication connection;

[0037] A determination module, used to determine the parsing protocol between the process equipment and the data acquisition host computer based on the equipment information, and process the interaction data according to the parsing protocol to obtain the parsed interaction data;

[0038] An acquisition module is used to acquire parameter information pre-configured in the data acquisition host computer, and match the parsed interaction data with the parameter information to obtain target parameter information;

[0039] A construction module is used to construct a parameter list using the target parameter information and send the parameter list to the process equipment.

[0040] In a fourth aspect, an embodiment of the present invention provides a communication device between a data acquisition host computer and a process device, which is applied to the process device, and the device includes:

[0041] A detection module, used to detect the operating parameters of the current process equipment;

[0042] A judging module, used to judge whether the operating parameters meet the preset sending conditions, and if the preset sending conditions are met, encapsulate the operating parameters according to a preset format to obtain interactive data;

[0043] The sending module is used to send the interactive data and the equipment information of the process equipment to the data acquisition host computer through the communication connection between the process equipment and the data acquisition host computer.

[0044] In a fifth aspect, an embodiment of the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the method of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0045] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof.

[0046] The method provided in the embodiment of the present application has the following beneficial effects:

[0047] The method provided in the embodiment of the present application realizes the centralized collection of data between the data acquisition host computer and multiple process equipment by receiving equipment information and interactive data, avoiding repeated collection and improving the efficiency and economy of data collection. The parsing protocol is determined according to the equipment information, and the accurate parsing of data of different process equipment is realized to ensure the availability and accuracy of the data. Through parameter information matching, the accurate screening of target parameters is realized, providing an accurate data basis for subsequent data processing and application. Constructing a parameter list and sending it to the process equipment realizes data feedback and interaction, which is helpful for the optimization and adjustment of the process equipment.

[0048] The method provided in the embodiment of the present application detects the trigger state of the virtual button and displays the communication configuration interface, which enables the user to flexibly adjust the communication configuration and enhances the adaptability and customizability of the system. The communication address and parameters entered by the user are obtained and stored to ensure the accuracy and repeatability of the communication configuration. The initial parsing protocol is matched in the preset parsing protocol library to quickly determine the parsing method and improve data processing efficiency. The parsing status is monitored and abnormal data is processed to ensure the accuracy and stability of the parsing. The data identifier is obtained and the parameter name is compared to achieve preliminary screening of candidate parameters and improve the accuracy of target parameter determination. Comparing data types ensures the consistency and reliability of target parameters. Monitoring the actual sampling rate ensures the guarantee of data synchronization and improves data quality. Comparing the sampling rate and processing abnormal data ensures the accuracy and stability of parameter list construction. Identifying and verifying the communication method and device type enables the establishment of a stable and reliable communication connection and improves the security and maintainability of the system.

[0049] The method provided in the embodiment of the present application realizes real-time monitoring of the state of process equipment by detecting operating parameters, providing a basis for data collection and processing. By judging the sending conditions and encapsulating the data, the data is normalized and standardized, which is convenient for communication with the data acquisition host computer. The interactive data is sent to the data acquisition host computer, which realizes the upload of process equipment data and provides support for data processing and analysis of the entire system. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 It is a flow chart of a communication method between a data acquisition host computer and a process device according to an embodiment of the present invention;

[0052] Figure 2 is a schematic diagram of an overview of a communication configuration interface according to an embodiment of the present invention;

[0053] Figure 3 is a schematic diagram of a hardware parameter configuration area according to an embodiment of the present invention;

[0054] Figure 4 is a schematic diagram of an electrical communication setting area according to an embodiment of the present invention;

[0055] Figure 5 is a flow chart of another communication method between a data acquisition host computer and a process device according to an embodiment of the present invention;

[0056] Figure 6 is a structural block diagram of a communication device between a data acquisition host computer and process equipment according to an embodiment of the present invention;

[0057] Figure 7 is a structural block diagram of another communication device between a data acquisition host computer and a process device according to an embodiment of the present invention;

[0058] Figure 8 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0060] According to an embodiment of the present invention, a communication method, apparatus, device and medium between a data acquisition host computer and process equipment are provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0061] In this embodiment, a communication method between a data acquisition host computer and a process device is provided, which is applied to the data acquisition host computer. Figure 1 is a flow chart of a communication method between a data acquisition host computer and a process device according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0062] Step S11, receiving device information and interaction data sent by multiple process devices through a preset communication connection.

[0063] In the embodiment of the present application, during the receiving process, the data acquisition host computer can establish connections with multiple process equipment through a preset communication connection (such as TCP / IP, Profibus DP, OPC, Modbus, etc.), and continuously monitor these connections to receive device information and interactive data. The equipment information may include the brand, model, communication parameters, etc. of the equipment, and the interactive data is various data generated by the process equipment during operation, such as temperature, pressure, flow, torque and other parameters. These data are crucial for performance evaluation and safety monitoring of engine tests.

[0064] In the embodiment of the present application, the following steps A1-A3 are included before receiving the device information and interaction data sent by multiple process devices:

[0065] Step A1, identifying communication modes and device types of multiple process devices.

[0066] Specifically, different process equipment can use different communication methods, such as TCP, ProfibusDP, OPC, Modbus, etc., and the device type will also vary due to different brands and models of PLCs. The data acquisition host computer can identify the communication method and device type of process equipment in a variety of ways. For example, the communication method can be determined by sending a specific detection signal and observing the response of the device. For the identification of the device type, you can refer to the device's identification information, model code, or compare it with a known device database. Use some automatic identification technologies, such as identification based on specific signal characteristics of the device, feature codes of the communication protocol, etc. At the same time, it can also be combined with manually input device information for auxiliary identification to ensure accuracy.

[0067] Step A2: verify the communication mode and equipment type of each process equipment to obtain a verification result.

[0068] Specifically, after identifying the communication mode and device type of the process equipment, verification is required to ensure accuracy. This is because incorrect identification can easily lead to communication connection failure or data parsing errors. The verification process can include sending specific test data to the process equipment, and then checking whether the device's response meets the expected communication mode and device type characteristics. For example, if a device is identified as using TCP communication, a TCP data packet in a specific format can be sent to check whether the device receives and responds correctly. For device type verification, it is possible to further check whether the data format, parameter range, etc. returned by the device are consistent with the known devices of this type.

[0069] Step A3, if the verification result is successful, a preset communication connection is established between the process equipment and the data acquisition host computer, or, if the verification result is failed, the communication method and device type are re-identified until the verification is successful or the preset number of times is reached, the identification operation is stopped, and the reminder operation is performed.

[0070] Specifically, if the verification is successful, it means that the data acquisition host computer has accurately identified the communication method and type of the process equipment, and can establish a preset communication connection to ensure accurate and stable data transmission, and then prepare to receive equipment information and interactive data. If the verification fails, the data acquisition host computer needs to re-identify, and this process is repeated until the verification is successful or reaches a preset number of times. The preset number of times can prevent an infinite loop. If the preset number of times is still unsuccessful, the identification is stopped and a reminder operation is performed, such as sending an alarm message to the operator to prompt him to check the device connection, reconfigure parameters, or perform manual intervention.

[0071] Step S12, determining the parsing protocol between the process equipment and the data acquisition host computer based on the equipment information, and processing the interactive data according to the parsing protocol to obtain the parsed interactive data.

[0072] In the embodiment of the present application, the selection of the parsing protocol is not only based on the device information, but also includes the identification, verification and exception handling of the device communication mode. During the parsing process, the data acquisition host will decode, verify and format the interactive data according to the parsing protocol.

[0073] In the embodiment of the present application, determining the parsing protocol between the process equipment and the data acquisition host computer based on the equipment information includes the following steps B1-B4:

[0074] Step B1, matching in a preset parsing protocol library according to the equipment information, and determining an initial parsing protocol corresponding to the process equipment.

[0075] Specifically, the preset parsing protocol library stores the parsing protocols corresponding to different process equipment, which is established through research and testing of PLCs of different brands and models. Each parsing protocol in the library is designed for specific equipment features to ensure that the equipment interaction data can be correctly parsed. After the data acquisition host computer receives the process equipment information, it searches and matches in the library by comparing the equipment features to find the most suitable initial parsing protocol. For example, when the equipment information shows a specific communication protocol and data type, the data acquisition host computer searches for a matching parsing protocol in the library. This process may involve complex algorithm logic. Once found, it is determined as the initial parsing protocol for interactive data parsing operations.

[0076] Step B2, using the initial parsing protocol to perform a parsing operation on the interactive data sent by the process equipment, and monitoring the parsing status of the interactive data during the execution process.

[0077] Specifically, the interactive data is parsed using the initial parsing protocol, with the goal of converting the original interactive data into a format that can be understood and processed by the upper computer of the data acquisition, and extracting key information according to the protocol rules and format interpretation. For example, if the interactive data is in a specific binary format, the initial parsing protocol specifies how to convert it into parameter values ​​such as temperature, pressure, and flow. When parsing, it must be processed according to the data structure, byte order, data type, etc. in the protocol. At the same time, the parsing status is monitored, including checking whether the parsing result is within the expected data range, whether the format is correct, whether there is any missing data or error, etc. If the parsing status is normal, it means that the initial parsing protocol can correctly parse the interactive data, and subsequent processing can continue; if an abnormality is found, the current parsing operation must be stopped in time and further processed.

[0078] Step B3: If there is abnormal data in the parsing state, stop the current parsing operation and obtain the abnormal type of the abnormal data.

[0079] Specifically, when abnormal data is detected in the parsing state, the data acquisition host computer needs to determine which data is abnormal. Abnormal manifestations include data format errors, values ​​out of range, data missing, etc. For example, temperature parameters out of range or format mismatch are judged as abnormal data. After the abnormality is found, the current parsing operation must be stopped immediately to avoid incorrect decisions and operations in subsequent processing. The data acquisition host computer needs to obtain the abnormal type of abnormal data, which can be determined by analyzing and classifying abnormal data. The abnormal type includes communication protocol mismatch, data format error, equipment failure, etc.

[0080] Step B4, querying the target resolution protocol from the preset resolution protocol library according to the exception type.

[0081] Specifically, after determining the exception type, the data acquisition host computer searches and filters in the preset parsing protocol library according to the exception type. If the exception is a communication protocol mismatch, it is necessary to focus on finding a parsing protocol that can handle the specific communication protocol; if it is a data format error, it is necessary to find a parsing protocol that has processing capabilities for the error format, etc. This process requires traversing the entire library to compare whether the device characteristics and exception handling capabilities of each protocol match the current exception type. Specific query algorithms can also be used to improve efficiency, such as fast matching based on exception type keywords or using classification index positioning. After finding a matching parsing protocol, it is determined as the target parsing protocol, and it is used to re-parse the interactive data to solve the problem that the initial protocol cannot handle correctly. If the target parsing protocol still cannot be resolved, further debugging and processing can be performed or the operator can be notified to intervene.

[0082] Step S13, obtaining parameter information pre-configured in the data acquisition host computer, and matching the parsed interaction data with the parameter information to obtain target parameter information.

[0083] In the embodiment of the present application, the following steps C1-C4 are included before obtaining the parameter information pre-configured in the data acquisition host computer:

[0084] Step C1, detecting the triggering state of a preset virtual button on the data acquisition host computer.

[0085] Specifically, the data acquisition host computer is equipped with virtual buttons, which trigger specific operations when clicked by the user. The system will continuously monitor the clicks of these buttons, allowing users to perform tasks by clicking instructions, such as opening communication configuration. The button designs are diverse, such as "Electrical Communication Settings", "Hardware Parameter Configuration", "Start Acquisition", etc., each corresponding to a different function. When the system detects a button click, it will perform the corresponding operation.

[0086] As an example, Figure 2 As shown in the figure, the communication configuration interface. The interface includes options such as hardware parameter configuration operation, parameter calculation, and electrical communication settings, as well as an exit software button. In addition, the interface is divided into the first area and the second area, and specific numerical information is displayed below.

[0087] Step C2: If the trigger state is on, the communication configuration interface is displayed to the data acquisition host computer.

[0088] Specifically, after the user clicks a virtual button such as "Electrical Communication Settings", the button trigger state is turned on, and the data acquisition host computer immediately displays the communication configuration interface. This interface is used to configure parameters such as the PLC communication address. The design is intuitive and easy to use, and includes controls such as input boxes, drop-down menus, check boxes, and help and prompt information to facilitate users to correctly configure communication parameters.

[0089] As an example, Figure 3 As shown in the figure, the first area of ​​the communication configuration interface is the hardware parameter configuration, which displays the module information table, including the module name, module address, port number or trigger signal, and validity period. For example, the address of module A is 168.254.60.78::260, the port number or trigger signal is I6, and the validity period is 0; the address of module B is 200.200.50.232, the port number is 9000, and the validity period is 0; the address of module C is 100.254.234.262, the port number is 30001, and the validity period is 0; the address of module D is 100.254.234.263, the port number is 30000, and the validity period is 0. This table can help users clearly understand the configuration of each module so as to set accurate communication parameters.

[0090] Step C3, obtaining multiple communication addresses input by the user through the communication configuration interface and the communication parameters corresponding to each communication address.

[0091] Specifically, in the communication configuration interface, users need to enter the communication address and detailed parameters for each PLC device, including custom parameter names, data types selected from 9 predefined data types (such as BOOL1, INT16, UINT16, DINT32, HEX32, REAL32, BIN16, CHAR8, BYTE8), and specify PLC memory types (such as DR, DI, DQ, MR, DR, AI, AQ), of which DR is the most commonly used. Users also need to provide data block numbers and block addresses to accurately locate data. After the configuration is completed, click "Save Settings" to verify the input and save valid parameters, or prompt errors and require re-entry to ensure the accuracy and reliability of the communication configuration.

[0092] As an example, Figure 4As shown in the figure, the second area of ​​the communication configuration interface is the electrical communication settings, which shows that the local IP address is 192.168.1.10, the local station port is 0, the electrical IP is 192.168.0.1, and the electrical station port is 102. It also reminds users to restart the software if they change the IP or port. There is a "Send majority" prompt below. Then a parameter table is displayed, which contains information such as parameters, data types, PLC memory types, data block numbers, and block addresses. For example, the data type of parameter "Ng" is INT16, the PLC memory type is DR, and the data block number is 25; the data type of parameter "TW27" is UINT16, the PLC memory type is IR, the data block number is 2, and the block address is 30. There is also a similar table, in which the parameter is "N", the data type is INT16, and the PLC memory type is ER. Finally, there is a "Save Settings" button, which is convenient for users to save the configuration after the settings are completed. The settings in this area can help users accurately configure the electrical communication parameters and ensure the normal operation of the system.

[0093] Step C4, storing the communication address and the corresponding communication parameters as parameter information in association with the data acquisition host computer.

[0094] Specifically, after the data acquisition host computer obtains the communication configuration, it will associate and store the communication address and parameters so as to quickly find the corresponding parameters of each PLC and ensure correct communication. Information can be stored in memory or database, and the search efficiency can be improved by classified storage or indexing (such as by brand, model, communication protocol) to achieve efficient communication with PLC.

[0095] In the embodiment of the present application, the parsed interaction data is matched with the parameter information to obtain the target parameter information, including the following steps D1-D3:

[0096] Step D1, obtaining the data identifier in the parsed interaction data.

[0097] Specifically, the data acquisition host computer first needs to extract the data identifier from the parsed interactive data. The data identifier is an important part of the interactive data. It is usually used to uniquely identify the data item to facilitate subsequent data matching and processing. The data identifier can be a specific string, number or other form of identifier, and its design should ensure uniqueness in the entire communication system. After the data acquisition host computer parses the interactive data through the parsing protocol, it can accurately extract these data identifiers from it, laying the foundation for subsequent data matching.

[0098] Step D2, traverse the parameter names associated with the parameter information, and compare the data identifier with multiple parameter names to obtain candidate parameter information matching the data identifier.

[0099] Specifically, the data acquisition host computer will traverse all parameter names in the pre-configured parameter information. These parameter names are the parameters that need to be paid attention to and processed when communicating with process equipment, and they have a corresponding relationship with the data identifiers in the interactive data. The data acquisition host computer will compare the data identifiers and parameter names one by one to find matches. When one or more parameter names are found to completely match the data identifiers, the data acquisition host computer will use these matching parameter information as candidate parameter information and enter the next step of screening.

[0100] Step D3, comparing the first data type of the candidate parameter information with the second data type of the interaction data, and if the first data type is consistent with the second data type, taking the candidate parameter information as the target parameter information.

[0101] Specifically, the data acquisition host computer will further verify the correctness of the candidate parameter information. It will compare the data type (first data type) in the candidate parameter information with the corresponding data type (second data type) in the interaction data. The data type determines the storage method, value range, and processing method of the parameter value. If the data type of the candidate parameter information is exactly the same as the data type of the interaction data, it means that the candidate parameter information is correct, and the data acquisition host computer determines it as the target parameter information. In this way, the matching process of the interaction data and the parameter information is completed, providing an accurate data basis for subsequent data processing and parameter list construction.

[0102] Step S14, constructing a parameter list using the target parameter information, and sending the parameter list to the process equipment.

[0103] In an embodiment of the present application, the data acquisition host computer constructs a structured parameter list based on the matched target parameter information, including all parameters required for interaction with the process equipment. These parameters are sorted according to category, importance or update frequency, and include detailed attributes such as parameter name, data type, data value and timestamp. Subsequently, the data acquisition host computer encodes and packages the parameter list according to the communication protocol and sends it to the process equipment through a preset communication connection. After receiving the process equipment, it parses and processes these parameters as needed to achieve data exchange between the two parties.

[0104] It should be noted that, considering the diversity of process equipment, the construction and sending of parameter lists need to be adjusted according to the equipment and communication protocol in actual operation. For example, different PLCs need to adopt corresponding protocols and data formats, while parameter types and data volumes affect the selection of transmission strategies and optimization algorithms. In addition, the data acquisition host will verify the parameter list before sending, such as calculating verification or comparing preset values, to ensure that the data is correct and complete, and to avoid transmission errors or data loss.

[0105] In an embodiment of the present application, the method also includes: when constructing a parameter list, monitoring the actual sampling rate of the target parameter information; comparing the actual sampling rate with the preset sampling rate, if the actual sampling rate is consistent with the preset sampling rate, constructing the parameter list according to the setting order of the target parameter information, or, if the actual sampling rate is inconsistent with the preset sampling rate, obtaining abnormal data generated when parsing the interaction data, and performing a reminder operation based on the abnormal data.

[0106] In an embodiment of the present application, when constructing a parameter list, the data acquisition host computer attaches importance to the accuracy and completeness of the parameter information and the sampling rate meets the preset. The sampling rate is the number of signal acquisitions per unit time, which is extremely critical for high-precision, high-real-time applications such as engine testing. In the initial stage, the data acquisition host computer monitors the actual sampling rate of each parameter, records the number of samplings by analyzing the timestamp or tool, and calculates it. Subsequently, it is compared with the preset sampling rate, and if it is consistent, the parameters are added to the list (including parameter name, data type, data value, and timestamp, etc.) in the set order. If the actual sampling rate does not match the preset sampling rate, it indicates that the acquisition is abnormal. The data acquisition host computer will obtain abnormal data and execute reminders, such as displaying an error on the interface or sending an alarm, and record the abnormality for subsequent processing. This process ensures that the parameter list is both accurate and meets the expected sampling rate, providing reliable data support for engine testing.

[0107] In this embodiment, a communication method between a data acquisition host computer and a process device is provided, which is applied to the process device. Figure 5 FIG. 1 is a flow chart of another communication method between a data acquisition host computer and a process device according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:

[0108] Step S21, detecting the operating parameters of the current process equipment.

[0109] In the embodiments of the present application, the process equipment detects its operating status and parameters in real time or at preset time intervals. These operating parameters may include but are not limited to temperature, pressure, flow, torque, etc., which are essential for evaluating the performance and safety of engine tests. The process equipment captures these parameters through built-in sensors or monitoring devices to ensure the accuracy and real-time nature of the data.

[0110] Step S22, determining whether the operating parameters meet the preset sending conditions, if the preset sending conditions are met, encapsulating the operating parameters according to a preset format to obtain interactive data.

[0111] In an embodiment of the present application, the process equipment will determine whether the current operating parameters meet the sending conditions according to preset logic or rules. These conditions can be based on parameter thresholds, rates of change, time intervals, etc. For example, when the temperature exceeds a preset threshold, or when the pressure changes significantly within a certain period of time, the process equipment will send these data. If the operating parameters meet the sending conditions, the process equipment will encapsulate these parameters in the format agreed with the data acquisition host computer. The encapsulation process includes steps such as formatting, packaging, and adding checksums to ensure the integrity and accuracy of the data during transmission. The encapsulated data is called interactive data.

[0112] Step S23, sending the interactive data and the equipment information of the process equipment to the data acquisition host computer through the communication connection between the process equipment and the data acquisition host computer.

[0113] In the embodiment of the present application, the process equipment must first establish stable communication with the data acquisition host computer, and TCP / IP, Profibus DP, OPC, Modbus and other protocols can be used. After the connection, the device will send packaged data, including device information (such as brand, model, serial number) and operating status parameters to the host computer. This helps the host computer to identify the device and process data, realize effective communication and data exchange between the process equipment and the host computer, and support precise control and safety monitoring of engine tests.

[0114] In this embodiment, a communication device between a data acquisition host computer and a process device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0115] This embodiment provides a communication device between a data acquisition host computer and a process device, which is applied to a data acquisition host computer, such as Figure 6 As shown, including:

[0116] A receiving module 61, used to receive device information and interaction data sent by multiple process devices through a preset communication connection;

[0117] The determination module 62 is used to determine the parsing protocol between the process equipment and the data acquisition host computer based on the equipment information, and process the interaction data according to the parsing protocol to obtain the parsed interaction data;

[0118] The acquisition module 63 is used to acquire the parameter information pre-configured in the data acquisition host computer, and match the parsed interaction data with the parameter information to obtain the target parameter information;

[0119] The construction module 64 is used to construct a parameter list using the target parameter information and send the parameter list to the process equipment.

[0120] In an optional embodiment of the present application, the device also includes: an input module, used to detect the trigger state of a preset virtual button on the digital acquisition host computer; if the trigger state is on, the communication configuration interface is displayed to the digital acquisition host computer; multiple communication addresses entered by the user through the communication configuration interface and the communication parameters corresponding to each communication address are obtained; the communication address and the corresponding communication parameters are associated as parameter information and stored in the digital acquisition host computer.

[0121] In an optional embodiment of the present application, a determination module 62 is used to match in a preset parsing protocol library according to the equipment information to determine an initial parsing protocol corresponding to the process equipment; use the initial parsing protocol to perform a parsing operation on the interactive data sent by the process equipment, and monitor the parsing status of the interactive data during the execution process; if there is abnormal data in the parsing status, stop the current parsing operation and obtain the abnormal type of the abnormal data; query the target parsing protocol from the preset parsing protocol library according to the abnormal type.

[0122] In an optional embodiment of the present application, a determination module 62 is used to obtain a data identifier in the parsed interaction data; traverse the parameter names associated with the parameter information, and compare the data identifier with multiple parameter names to obtain candidate parameter information that matches the data identifier; compare a first data type of the candidate parameter information with a second data type of the interaction data, and if the first data type is consistent with the second data type, use the candidate parameter information as the target parameter information.

[0123] In an optional embodiment of the present application, the device also includes: a monitoring module, which is used to monitor the actual sampling rate of the target parameter information when constructing the parameter list; compare the actual sampling rate with the preset sampling rate, and if the actual sampling rate is consistent with the preset sampling rate, construct the parameter list according to the setting order of the target parameter information; or, if the actual sampling rate is inconsistent with the preset sampling rate, obtain abnormal data generated when parsing the interactive data, and perform a reminder operation based on the abnormal data.

[0124] In an optional embodiment of the present application, the device also includes: an identification module, used to identify the communication mode and equipment type of multiple process equipment; verify the communication mode and equipment type of each process equipment to obtain a verification result; if the verification result is a successful verification, establish a preset communication connection between the process equipment and the digital acquisition host computer, or, if the verification result is a failed verification, re-identify the communication mode and equipment type until the verification is successful or reaches a preset number of times, stop the identification operation, and perform a reminder operation.

[0125] This embodiment provides another communication device between a data acquisition host computer and a process device, which is applied to a process device, such as Figure 7 As shown, including:

[0126] The detection module 71 is used to detect the operating parameters of the current process equipment;

[0127] The judging module 72 is used to judge whether the operation parameters meet the preset sending conditions. If the preset sending conditions are met, the operation parameters are packaged according to a preset format to obtain interactive data;

[0128] The sending module 73 is used to send the interactive data and the equipment information of the process equipment to the data acquisition host computer through the communication connection between the process equipment and the data acquisition host computer.

[0129] See also Figure 8 , Figure 8 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 8 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).

[0130] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0131] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0132] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0133] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0134] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0135] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0136] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A communication method between a data acquisition host computer and a process device, applied to a data acquisition host computer, characterized in that: The method comprises: Receive equipment information and interaction data sent by multiple process equipment through preset communication connections; Determine a parsing protocol between the process equipment and the data acquisition host computer based on the equipment information, and process the interaction data according to the parsing protocol to obtain parsed interaction data; Acquire parameter information pre-configured in the data acquisition host computer, and match the parsed interaction data with the parameter information to obtain target parameter information; A parameter list is constructed using the target parameter information, and the parameter list is sent to the process equipment.

2. The method according to claim 1, characterized in that Before obtaining the parameter information pre-configured in the data acquisition host computer, the method further includes: Detecting the triggering state of a preset virtual button on the data acquisition host computer; If the trigger state is on, the communication configuration interface is displayed to the data acquisition host computer; Acquire multiple communication addresses input by the user through the communication configuration interface and communication parameters corresponding to each of the communication addresses; The communication address and the corresponding communication parameters are associated and stored in the data acquisition host computer as parameter information.

3. The method according to claim 1, characterized in that The determining of the parsing protocol between the process equipment and the data acquisition host computer based on the equipment information includes: According to the equipment information, matching is performed in a preset parsing protocol library to determine an initial parsing protocol corresponding to the process equipment; Performing a parsing operation on the interactive data sent by the process equipment using the initial parsing protocol, and monitoring the parsing status of the interactive data during the execution process; If there is abnormal data in the parsing state, stop the current parsing operation and obtain the abnormal type of the abnormal data; A target resolution protocol is queried from the preset resolution protocol library according to the exception type.

4. The method according to claim 1, characterized in that: The step of matching the parsed interaction data with the parameter information to obtain target parameter information includes: Obtaining data identifiers in the parsed interaction data; Traversing the parameter names associated with the parameter information, and comparing the data identifier with the plurality of parameter names to obtain candidate parameter information matching the data identifier; The first data type of the candidate parameter information is compared with the second data type of the interaction data. If the first data type is consistent with the second data type, the candidate parameter information is used as the target parameter information.

5. The method according to claim 1, characterized in that The method further comprises: When constructing the parameter list, monitoring the actual sampling rate of the target parameter information; The actual sampling rate is compared with the preset sampling rate. If the actual sampling rate is consistent with the preset sampling rate, the parameter list is constructed according to the setting order of the target parameter information. Alternatively, if the actual sampling rate is inconsistent with the preset sampling rate, abnormal data generated when parsing the interactive data is obtained, and a reminder operation is performed based on the abnormal data.

6. The method according to claim 1, characterized in that Before receiving the equipment information and interaction data sent by the plurality of process equipment, the method further includes: Identify the communication methods and equipment types of multiple process equipment; Verifying the communication mode and device type of each of the process devices to obtain verification results; If the verification result is successful, a preset communication connection is established between the process equipment and the data acquisition host computer; or, if the verification result is failed, the communication method and the device type are re-identified until the verification is successful or the preset number of times is reached, the identification operation is stopped, and a reminder operation is performed.

7. A communication method between a data acquisition host computer and a process device, applied to the process device, characterized in that: The method comprises: Detecting the operating parameters of the current process equipment; Determining whether the operating parameters meet a preset sending condition, and if so, encapsulating the operating parameters in a preset format to obtain interaction data; The interactive data and the equipment information of the process equipment are sent to the data acquisition host computer through the communication connection between the process equipment and the data acquisition host computer.

8. A communication device between a data acquisition host computer and process equipment, applied to a data acquisition host computer, characterized in that: The device comprises: A receiving module, used for receiving device information and interaction data sent by multiple process devices through a preset communication connection; A determination module, used to determine the parsing protocol between the process equipment and the data acquisition host computer based on the equipment information, and process the interaction data according to the parsing protocol to obtain the parsed interaction data; An acquisition module is used to acquire parameter information pre-configured in the data acquisition host computer, and match the parsed interaction data with the parameter information to obtain target parameter information; A construction module is used to construct a parameter list using the target parameter information and send the parameter list to the process equipment.

9. A communication device between a data acquisition host computer and a process device, applied to the process device, characterized in that: The device comprises: A detection module, used to detect the operating parameters of the current process equipment; A judging module, used to judge whether the operating parameters meet the preset sending conditions, and if the preset sending conditions are met, encapsulate the operating parameters according to a preset format to obtain interactive data; The sending module is used to send the interactive data and the equipment information of the process equipment to the data acquisition host computer through the communication connection between the process equipment and the data acquisition host computer.

10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions.

Citation Information

Patent Citations

  • Transmission method of process data, apparatus thereof and system thereof

    CN102468907A

  • Method for controlling process parameters, production execution system and device interface system

    CN108693846A

  • Data acquisition method, device and equipment based on industrial internet and medium

    CN116319857A

  • Industrial equipment data acquisition method and system

    CN117471950A

  • Control method and product of integrated PLC (Programmable Logic Controller) supporting multiple interfaces and multiple communication protocols

    CN118746956A

Cited By

  • Chemical fiber packaging line PLC and upper computer information interaction method and chemical fiber packaging line

    CN121143177A

  • Chemical fiber packaging line PLC and host computer information interaction method and chemical fiber packaging line

    CN121143177B