Data Acquisition Method and Gateway Based on EIP Object Model

By using a data acquisition method based on the EIP object model, generating EIP objects and utilizing a mapping table, the problem of inconsistent data representation of mine equipment was solved, the unification of equipment parameters and the simplification of data parsing were achieved, and the reliability of parsing was improved.

CN116095120BActive Publication Date: 2026-03-06CHINA COAL RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310118279.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-03
Publication Date
2026-03-06
Estimated Expiration
2043-02-03

AI Technical Summary

Technical Problem

The variety of types and manufacturers of mining equipment leads to inconsistent ways of representing operational data, making the process of parsing operational data by upper-level services complex.

Method used

A data acquisition method based on the EIP object model is adopted. By receiving device data, EIP objects are generated, and a mapping table is used to determine the correspondence between status values ​​and attributes, thereby achieving a unified data standard and reducing the complexity of data parsing.

Benefits of technology

It improves the reusability of equipment parameters and the reliability of data parsing, avoids the need to adjust the parsing method for different devices, and simplifies the data parsing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116095120B_ABST
    Figure CN116095120B_ABST
Patent Text Reader

Abstract

This application proposes a data acquisition method and gateway based on an EIP object model. The method includes: receiving first operational data sent by a device, including device type, device identifier, and first state data; determining a first EIP class corresponding to the device type according to a first preset mapping relationship; when it is determined that there is no first EIP object associated with the device identifier, generating a first EIP object associated with the device identifier according to the first EIP class; querying a second preset mapping relationship table to determine the mapping relationship between each state value in the first state data and each attribute in the first EIP object; and determining the attribute value of each attribute according to each state value in the first state data and the mapping relationship between each state value and each attribute in the first EIP object. Converting operational data into a unified EIP class format improves the reusability of device parameters, enabling upper-layer services to parse operational data based on unified device parameters, reducing the complexity of data parsing, and improving the reliability of data parsing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of coal mining technology, and in particular to a data acquisition method and gateway based on the EIP object model. Background Technology

[0002] After receiving operational data from the devices, the data acquisition gateway directly forwards the data to the upper-layer service. The upper-layer service needs to parse the operational data according to the device type to determine the various status values ​​within it. However, due to the large variety and quantity of mining equipment, and the inconsistent representation of operational data by different manufacturers and models, the process of parsing operational data by the upper-layer service is complex. Summary of the Invention

[0003] This application proposes a data acquisition method and gateway based on the EIP object model. The specific solution is as follows:

[0004] One embodiment of this application provides a data acquisition method based on the EIP object model, including:

[0005] The receiving device sends first operating data, which includes device type, device identifier, and first status data;

[0006] Based on the first preset mapping relationship, a first EIP class corresponding to the device type is determined, wherein the EIP class is used to describe the attribute information of devices of the same type;

[0007] If it is determined that there is no first EIP object associated with the device identifier, a first EIP object associated with the device identifier is generated according to the first EIP class;

[0008] Query the second preset mapping table to determine the mapping relationship between each state value in the first state data and each attribute in the first EIP object. The second preset mapping table includes the correspondence between state values ​​and attributes.

[0009] Based on each state value in the first state data and the mapping relationship between each state value and each attribute in the first EIP object, the attribute value of each attribute in the first EIP object is determined.

[0010] In one possible implementation of one aspect of this application, the following further includes:

[0011] Send a communication connection request to the device to establish a communication connection with the device;

[0012] In response to the failure to receive the first operating data sent by the device within a first preset time interval, a network anomaly indication is generated to indicate a communication connection anomaly.

[0013] In one possible implementation of one aspect of this application, the following further includes:

[0014] The device receives second operating data sent by the device at a second preset time interval, wherein the second operating data includes a device identifier and second status data.

[0015] If it is determined that a first EIP object associated with a device identifier exists, the attribute value of the attribute is updated using the status value corresponding to each attribute in the first EIP object in the second status data, so as to obtain the updated second EIP object.

[0016] In one possible implementation of one aspect of this application, the following further includes:

[0017] Send the second EIP object to the data manager.

[0018] In one possible implementation of one aspect of this application, the following further includes:

[0019] Each time the first EIP object is updated, it is associated with and stored with the updated second EIP object.

[0020] In response to not receiving a receipt confirmation message from the data manager within a third preset time interval, stop sending the second EIP object to the data manager;

[0021] Save the second time when the second EIP object is stopped from being sent to the data manager;

[0022] Send a request to restore the communication connection to the data manager;

[0023] In response to receiving a feedback message from the data manager indicating the restoration of the communication connection, the second EIP object associated with the first time after the second time is sent to the data manager.

[0024] In one possible implementation of one aspect of this application, the following further includes:

[0025] Based on the attribute values ​​of the preset attributes in the first EIP object, determine whether the device is operating abnormally;

[0026] If an abnormality is detected in the equipment, a control command is sent to the equipment, which instructs the equipment to stop operating.

[0027] Another embodiment of this application provides a data acquisition gateway based on the EIP object model, including:

[0028] The receiving module is used to receive the first operating data sent by the device, wherein the operating data includes the device type, device identifier, and first status data;

[0029] The determining module is used to determine the first EIP class corresponding to the device type according to the first preset mapping relationship, wherein the EIP class is used to describe the attribute information of the same type of device;

[0030] The generation module is used to generate a first EIP object associated with a device identifier based on the first EIP class if it is determined that there is no first EIP object associated with a device identifier.

[0031] The aforementioned determining module is used to query a second preset mapping relationship table to determine the mapping relationship between each state value in the first state data and each attribute in the first EIP object, wherein the second preset mapping relationship table includes the correspondence between state values ​​and attributes;

[0032] The aforementioned determining module is used to determine the attribute value of each attribute in the first EIP object based on each state value in the first state data and the mapping relationship between each state value and each attribute in the first EIP object.

[0033] In another possible implementation of this application, the following is also included:

[0034] The connection module is used to send a communication connection request to the device in order to establish a communication connection with the device;

[0035] The aforementioned generation module is used to generate a network anomaly indication in response to the failure to receive the first operating data sent by the device within a first preset time interval, so as to indicate a communication connection anomaly.

[0036] In another possible implementation of this application, the receiving module is further configured to:

[0037] The device receives second operating data sent by the device at a second preset time interval, wherein the second operating data includes a device identifier and second status data.

[0038] The aforementioned gateways also include:

[0039] The update module is used to update the attribute value of an attribute by using the status value corresponding to each attribute in the first EIP object in the second status data when it is determined that a first EIP object associated with a device identifier exists, so as to obtain the updated second EIP object.

[0040] In another possible implementation of this application, the following is also included:

[0041] The sending module is used to send the second EIP object to the data manager.

[0042] In another possible implementation of this application, the following is also included:

[0043] The storage module is used to associate and store the first time of each update of the first EIP object with the updated second EIP object;

[0044] The processing module is used to stop sending the second EIP object to the data manager in response to not receiving a receipt confirmation message from the data manager within a third preset time interval;

[0045] The aforementioned storage module is used to save the second time when sending the second EIP object to the data manager is stopped;

[0046] The aforementioned sending module is used to send a request to restore the communication connection to the data manager; in response to receiving the feedback message of restoring the communication connection sent by the data manager, it sends the second EIP object associated with the first time after the second time to the data manager.

[0047] In another possible implementation of this application, the determining module is further configured to:

[0048] Based on the attribute values ​​of the preset attributes in the first EIP object, determine whether the device is operating abnormally;

[0049] The aforementioned sending module is used to send control commands to the device when it is determined that the device is malfunctioning, wherein the control commands are used to instruct the device to stop operating.

[0050] Another embodiment of this application provides a computer device, including a processor and a memory;

[0051] The processor reads executable program code stored in memory to run a program corresponding to the executable program code, so as to implement the method as described in the above embodiments.

[0052] Another embodiment of this application provides a computer-readable storage medium having a computer program stored thereon, characterized in that the program, when executed by a processor, implements the method as described in the above embodiments.

[0053] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0054] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:

[0055] Figure 1 A flowchart illustrating a data acquisition method based on the EIP object model provided in this application embodiment;

[0056] Figure 2A flowchart illustrating a data acquisition method based on the EIP object model provided in this application embodiment;

[0057] Figure 3 A flowchart illustrating a data acquisition method based on the EIP object model provided in this application embodiment;

[0058] Figure 4 A flowchart illustrating a data acquisition method based on the EIP object model provided in this application embodiment;

[0059] Figure 5 This is a schematic diagram of the structure of a data acquisition gateway based on the EIP object model provided in an embodiment of this application. Detailed Implementation

[0060] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0061] The data acquisition method based on the EIP object model of this application is described below with reference to the accompanying drawings.

[0062] Figure 1 This is a flowchart illustrating a data acquisition method based on the EIP object model provided in an embodiment of this application.

[0063] The data acquisition method based on the EIP object model in this application embodiment is executed by the data acquisition gateway based on the EIP object model (hereinafter referred to as the acquisition gateway) provided in this application embodiment, so as to realize the acquisition of equipment operation data with unified data standards and improve the reusability of equipment parameters.

[0064] like Figure 1 As shown, this data acquisition method based on the EIP object model includes:

[0065] Step 101: Receive the first operating data sent by the device, wherein the operating data includes the device type, device identifier, and first status data.

[0066] The device identifier can be any information that uniquely identifies a device, and the status data can include various status values ​​of the device, such as current value, voltage value, etc.

[0067] In this application, the device can acquire its own status values ​​through sensors or other monitoring devices installed in each component, generate first status data according to a preset data representation method, and send the device type, device identifier, device model, and first status data to the acquisition gateway using a preset communication protocol.

[0068] Furthermore, different device models may express status data differently. For example, in the status data sent by a model 1 device, the first status value is the current value and the second status value is the voltage value, while in the status data sent by a model 2 device, the first status value is the voltage value and the second status value is the current value. Alternatively, the parameters used to identify each status value may differ. For instance, a model 1 device uses a capital "I" to indicate that the following status value is current, while a model 2 device uses a lowercase "i" to indicate that the following status value is current.

[0069] Step 102: Determine the first EIP class corresponding to the device type according to the first preset mapping relationship, wherein the EIP class is used to describe the attribute information of the same type of device.

[0070] After receiving the operational data sent by the device, the data acquisition gateway directly forwards the data to the upper-layer service. The upper-layer service needs to parse the operational data according to the device type to determine the various status values ​​in the data. However, due to the large variety and quantity of mining equipment, and the inconsistent representation of operational data by different manufacturers and models, the process of parsing operational data by the upper-layer service is complex.

[0071] In this application, to address this issue, each type of equipment in the mine's human-machine-environment-management system can be abstracted into an EIP (Enterprise Information Portal) class, and a unique EIP class identifier can be assigned to it. Thus, using the EIP class as a unified data standard, the parameter syntax, semantics, and control descriptions for all equipment in the mine are standardized, improving the reusability of equipment parameters. This allows upper-layer services to parse operational data based on unified equipment parameters, avoiding the need to adjust parsing methods for different equipment, reducing the complexity of data parsing, and ultimately improving the reliability of data parsing.

[0072] The EIP class can contain various device attributes, each describing a state data point of the device's operation, such as current or voltage. Each attribute can contain basic descriptive fields such as a unique ID (Identity Document), name, implementation, access attribute, attribute description, and data type. Based on their characteristics, each attribute can be categorized into four basic types: control, status, monitored value, and virtual value.

[0073] In this application, a first preset mapping relationship can be queried according to the device type to determine the first EIP class corresponding to the device type. The mapping relationship includes the association between each device type and the EIP class.

[0074] Step 103: If it is determined that there is no first EIP object associated with the device identifier, generate a first EIP object associated with the device identifier according to the first EIP class.

[0075] In this application, EIP objects and their corresponding device identifiers can be associated and stored in the system. Thus, the system can determine whether a first EIP object associated with the device identifier exists by querying. If no first EIP object associated with the device identifier exists, a first EIP object can be created based on the first EIP class, thereby representing the equipment in the mine in an object-oriented manner and improving the reusability of equipment parameters.

[0076] Step 104: Query the second preset mapping relationship table to determine the mapping relationship between each state value in the first state data and each attribute in the first EIP object. The second preset mapping relationship table includes the correspondence between state values ​​and attributes.

[0077] In this application, since the parameter expression methods or composition forms of the status data sent by different device models may differ, a preset device information table can be queried based on the device identifier to determine the device model associated with the device identifier. Then, based on the device model, a second preset mapping relationship table is queried to determine the mapping relationship between each status value in the first status data sent by the device and each attribute in the first EIP object.

[0078] Step 105: Determine the attribute value of each attribute in the first EIP object based on each state value in the first state data and the mapping relationship between each state value and each attribute in the first EIP object.

[0079] In this application, each state value in the first state data can be determined as the attribute value of the corresponding attribute in the first EIP object.

[0080] Optionally, the device can be determined to be malfunctioning based on the attribute values ​​of preset attributes in the first EIP object. If the device is determined to be malfunctioning, a control command can be sent to the device to instruct it to stop operating, so as to avoid accidents caused by the device malfunction.

[0081] In this application, after receiving first operating data from the receiving device, including device type, device identifier, and first status data, a first EIP class for describing the attribute information of the same type of device can be determined according to a first preset mapping relationship. Then, if no first EIP object associated with the device identifier exists, a first EIP object associated with the device identifier can be generated according to the first EIP class. A second preset mapping relationship table is then queried to determine the mapping relationship between each status value in the first status data and each attribute in the first EIP object. Finally, based on each status value in the first status data and the mapping relationship between each status value and each attribute in the first EIP object, the attribute value of each attribute in the first EIP object can be determined. Thus, by creating corresponding EIP objects for each device based on each EIP class and determining the attribute values ​​of each attribute in the EIP object based on the device's status data, the equipment in the mine can be represented in an object-oriented manner. This improves the reusability of device parameters, allowing upper-layer services to parse operating data based on unified device parameters. This avoids adjusting the parsing method for different devices, reduces the complexity of data parsing, and ultimately improves the reliability of data parsing.

[0082] Figure 2 This is a flowchart illustrating a data acquisition method based on the EIP object model provided in an embodiment of this application.

[0083] like Figure 2 As shown, this data acquisition method based on the EIP object model includes:

[0084] Step 201: Send a communication connection request to the device to establish a communication connection with the device.

[0085] In this application, the data acquisition gateway can send a communication connection request to the device to establish a communication connection with the device, thereby receiving the operating data sent by the device.

[0086] Step 202: Receive the first operating data sent by the device, wherein the operating data includes device type, device identifier, device model, and first status data.

[0087] Step 203: Determine the first EIP class corresponding to the device type according to the first preset mapping relationship, wherein the EIP class is used to describe the attribute information of the same type of device.

[0088] Step 204: If it is determined that there is no first EIP object associated with the device identifier, generate a first EIP object associated with the device identifier according to the first EIP class.

[0089] Step 205: Query the second preset mapping relationship table to determine the mapping relationship between each state value in the first state data and each attribute in the first EIP object. The second preset mapping relationship table includes the correspondence between state values ​​and attributes.

[0090] Step 206: Determine the attribute value of each attribute in the first EIP object based on each state value in the first state data and the mapping relationship between each state value and each attribute in the first EIP object.

[0091] The specific implementation process of steps 202-206 in this application can be found in the detailed description of any embodiment of this application, and will not be repeated here.

[0092] Step 207: In response to the failure to receive the first operating data sent by the device within the first preset time interval, a network abnormality indication is generated to indicate a communication connection abnormality.

[0093] In this application, if the first operational data sent by the device is not received within a first preset time interval, it indicates that the communication connection between the acquisition gateway and the device has failed to be established or has been abnormally interrupted. At this time, a network anomaly indication can be generated to indicate that the communication connection between the acquisition gateway and the device is abnormal.

[0094] In this application, EIP objects corresponding to each device are created based on each EIP class, and the attribute values ​​of each attribute in the EIP object are determined according to the status data of the device. This realizes the representation of the equipment in the mine in an object-oriented manner, improves the reusability of equipment parameters, and enables the upper-layer service to parse the running data based on unified equipment parameters. This avoids adjusting the corresponding parsing method for different devices, reduces the complexity of data parsing, and thus improves the reliability of data parsing.

[0095] Figure 3 This is a flowchart illustrating a data acquisition method based on the EIP object model provided in an embodiment of this application.

[0096] like Figure 3 As shown, this data acquisition method based on the EIP object model includes:

[0097] Step 301: Receive the first operating data sent by the device, wherein the operating data includes device type, device identifier, device model, and first status data.

[0098] Step 302: Determine the first EIP class corresponding to the device type according to the first preset mapping relationship, wherein the EIP class is used to describe the attribute information of the same type of device.

[0099] Step 303: If it is determined that there is no first EIP object associated with the device identifier, generate a first EIP object associated with the device identifier according to the first EIP class.

[0100] Step 304: Query the second preset mapping relationship table to determine the mapping relationship between each state value in the first state data and each attribute in the first EIP object. The second preset mapping relationship table includes the correspondence between state values ​​and attributes.

[0101] Step 305: Determine the attribute value of each attribute in the first EIP object based on each state value in the first state data and the mapping relationship between each state value and each attribute in the first EIP object.

[0102] The specific implementation process of steps 301-305 in this application can be found in the detailed description of any embodiment of this application, and will not be repeated here.

[0103] Step 306: Receive second operating data sent by the device at a second preset time interval, wherein the second operating data includes device identifier and second status data.

[0104] In this application, the data acquisition gateway can also acquire the second operating data of the device in real time at a second preset time interval.

[0105] Step 307: If it is determined that a first EIP object associated with a device identifier exists, update the attribute value of the attribute using the status value corresponding to each attribute in the first EIP object in the second status data to obtain the updated second EIP object.

[0106] In this application, the system can determine the first EIP object associated with the device identifier through querying. Then, the attribute values ​​can be updated using the status values ​​in the second status data corresponding to each attribute in the first EIP object.

[0107] It should be noted that since the second state data and the first state data are sent by the same device, the mapping relationship between each state value in the second state data and each attribute in the first EIP object can be the same as the mapping relationship between each state value in the first state data and each attribute in the first EIP object.

[0108] Optionally, the acquisition gateway can send the second EIP object to the data manager each time it obtains an updated second EIP object. This allows upper-layer services to retrieve device operating data from the data manager as needed.

[0109] In this application, EIP objects corresponding to each device are created based on each EIP class, and the attribute values ​​of each attribute in the EIP object are determined according to the status data of the device. This realizes the representation of the equipment in the mine in an object-oriented manner, improves the reusability of equipment parameters, and enables the upper-layer service to parse the running data based on unified equipment parameters. This avoids adjusting the corresponding parsing method for different devices, reduces the complexity of data parsing, and thus improves the reliability of data parsing.

[0110] Figure 4 This is a flowchart illustrating a data acquisition method based on the EIP object model provided in an embodiment of this application.

[0111] like Figure 4 As shown, this data acquisition method based on the EIP object model includes:

[0112] Step 401: Receive the first operating data sent by the device, wherein the operating data includes device type, device identifier, device model, and first status data.

[0113] Step 402: Determine the first EIP class corresponding to the device type according to the first preset mapping relationship, wherein the EIP class is used to describe the attribute information of the same type of device.

[0114] Step 403: If it is determined that there is no first EIP object associated with the device identifier, generate a first EIP object associated with the device identifier according to the first EIP class.

[0115] Step 404: Query the second preset mapping relationship table to determine the mapping relationship between each state value in the first state data and each attribute in the first EIP object. The second preset mapping relationship table includes the correspondence between state values ​​and attributes.

[0116] Step 405: Determine the attribute value of each attribute in the first EIP object based on each state value in the first state data and the mapping relationship between each state value and each attribute in the first EIP object.

[0117] Step 406: Receive second operating data sent by the device at a second preset time interval, wherein the second operating data includes device identifier and second status data.

[0118] Step 407: If it is determined that a first EIP object associated with a device identifier exists, update the attribute value of the attribute using the status value corresponding to each attribute in the first EIP object in the second status data to obtain the updated second EIP object.

[0119] The specific implementation process of steps 401-407 in this application can be found in the detailed description of any embodiment of this application, and will not be repeated here.

[0120] Step 408: Associate and store the first time of each update of the first EIP object with the updated second EIP object.

[0121] In this application, each time the first EIP object is updated, the first time of updating the first EIP object can be associated with the updated second EIP object for storage, so as to avoid the loss of the device's historical operating data and facilitate the tracking of the device's historical operating data.

[0122] Step 409: In response to not receiving a receipt confirmation message from the data manager within the third preset time interval, stop sending the second EIP object to the data manager.

[0123] In this application, after receiving data from the acquisition gateway, the data manager can send a reception confirmation message to the acquisition gateway to indicate successful reception. If no reception confirmation message is received from the data manager within a third preset time interval, it indicates an abnormal communication connection between the acquisition gateway and the data manager, and the sending of the second EIP object to the data manager can be stopped.

[0124] Step 410, save the second time when the second EIP object is stopped from being sent to the data manager.

[0125] In this application, when the sending of the second EIP object to the data manager is stopped, the second time when the sending of the second EIP object to the data manager is stopped can be saved so as to determine the second EIP object that was not sent to the data manager in time based on the second time.

[0126] Step 411: Send a request to the data manager to restore the communication connection.

[0127] In this application, a request to restore the communication connection can be automatically sent to the data manager to restore the communication connection between the acquisition gateway and the data manager, thereby improving the reliability of the system.

[0128] Step 412: In response to receiving the feedback message from the data manager indicating the restoration of the communication connection, the second EIP object associated with the first time after the second time is sent to the data manager.

[0129] In this application, receiving a feedback message from the data manager indicating the restoration of communication connection signifies that the communication connection between the acquisition gateway and the data manager has been restored. A comparison can be made between the second time and the first time to identify any second EIP objects acquired after the second time but not promptly sent to the data manager, and then these second EIP objects will be sent to the data manager.

[0130] In this application, EIP objects corresponding to each device are created based on each EIP class, and the attribute values ​​of each attribute in the EIP object are determined according to the status data of the device. This realizes the representation of the equipment in the mine in an object-oriented manner, improves the reusability of equipment parameters, and enables the upper-layer service to parse the running data based on unified equipment parameters. This avoids adjusting the corresponding parsing method for different devices, reduces the complexity of data parsing, and thus improves the reliability of data parsing.

[0131] To implement the above embodiments, this application also proposes a data acquisition gateway based on the EIP object model. Figure 5 This is a schematic diagram of the structure of a data acquisition gateway based on the EIP object model provided in an embodiment of this application.

[0132] like Figure 5 As shown, the data acquisition gateway 500 based on the EIP object model includes:

[0133] The receiving module 510 is used to receive the first operating data sent by the device, wherein the operating data includes the device type, device identifier, and first status data;

[0134] The determining module 520 is used to determine the first EIP class corresponding to the device type according to the first preset mapping relationship, wherein the EIP class is used to describe the attribute information of the same type of device;

[0135] The generation module 530 is used to generate a first EIP object associated with a device identifier based on a first EIP class when it is determined that there is no first EIP object associated with a device identifier.

[0136] The aforementioned determining module 520 is used to query a second preset mapping relationship table to determine the mapping relationship between each state value in the first state data and each attribute in the first EIP object, wherein the second preset mapping relationship table includes the correspondence between state values ​​and attributes;

[0137] The aforementioned determining module 520 is used to determine the attribute value of each attribute in the first EIP object based on each state value in the first state data and the mapping relationship between each state value and each attribute in the first EIP object.

[0138] In one possible implementation of this application embodiment, it further includes:

[0139] The connection module is used to send a communication connection request to the device in order to establish a communication connection with the device;

[0140] The aforementioned generation module 530 is used to generate a network abnormality indication in response to the failure to receive the first operating data sent by the device within a first preset time interval, so as to indicate a communication connection abnormality.

[0141] In one possible implementation of this application embodiment, the receiving module 510 is further configured to:

[0142] The device receives second operating data sent by the device at a second preset time interval, wherein the second operating data includes a device identifier and second status data.

[0143] The aforementioned gateways also include:

[0144] The update module is used to update the attribute value of an attribute by using the status value corresponding to each attribute in the first EIP object in the second status data when it is determined that a first EIP object associated with a device identifier exists, so as to obtain the updated second EIP object.

[0145] In one possible implementation of this application embodiment, it further includes:

[0146] The sending module is used to send the second EIP object to the data manager.

[0147] In one possible implementation of this application embodiment, it further includes:

[0148] The storage module is used to associate and store the first time of each update of the first EIP object with the updated second EIP object;

[0149] The processing module is used to stop sending the second EIP object to the data manager in response to not receiving a receipt confirmation message from the data manager within a third preset time interval;

[0150] The aforementioned storage module is used to save the second time when sending the second EIP object to the data manager is stopped;

[0151] The aforementioned sending module is used to send a request to restore the communication connection to the data manager; in response to receiving the feedback message of restoring the communication connection sent by the data manager, it sends the second EIP object associated with the first time after the second time to the data manager.

[0152] In one possible implementation of this application embodiment, the determining module 520 is further configured to:

[0153] Based on the attribute values ​​of the preset attributes in the first EIP object, determine whether the device is operating abnormally;

[0154] The aforementioned sending module is used to send control commands to the device when it is determined that the device is malfunctioning, wherein the control commands are used to instruct the device to stop operating.

[0155] It should be noted that the above explanation of the data acquisition method embodiment based on the EIP object model also applies to the data acquisition gateway based on the EIP object model in this embodiment, so it will not be repeated here.

[0156] In this application, after receiving first operating data from the receiving device, including device type, device identifier, and first status data, a first EIP class for describing the attribute information of the same type of device can be determined according to a first preset mapping relationship. Then, if no first EIP object associated with the device identifier exists, a first EIP object associated with the device identifier can be generated according to the first EIP class. A second preset mapping relationship table is then queried to determine the mapping relationship between each status value in the first status data and each attribute in the first EIP object. Finally, based on each status value in the first status data and the mapping relationship between each status value and each attribute in the first EIP object, the attribute value of each attribute in the first EIP object can be determined. Thus, by creating corresponding EIP objects for each device based on each EIP class and determining the attribute values ​​of each attribute in the EIP object based on the device's status data, the equipment in the mine can be represented in an object-oriented manner. This improves the reusability of device parameters, allowing upper-layer services to parse operating data based on unified device parameters. This avoids adjusting the parsing method for different devices, reduces the complexity of data parsing, and ultimately improves the reliability of data parsing.

[0157] To implement the above embodiments, this application also proposes a computer device, including a processor and a memory;

[0158] The processor reads executable program code stored in memory to run a program corresponding to the executable program code, so as to implement the data acquisition method based on the EIP object model as described in the above embodiments.

[0159] To implement the above embodiments, this application also proposes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the data acquisition method based on the EIP object model as described in the above embodiments.

[0160] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A data acquisition method based on an EIP object model, characterized in that, The method comprises: receiving first running data sent by a device, wherein the running data comprises a device type, a device identifier, and first state data; determining a first EIP class corresponding to the device type according to a first preset mapping relationship, wherein the EIP class is used to describe attribute information of devices of the same type; generating a first EIP object associated with the device identifier according to the first EIP class, in a case where it is determined that there is no first EIP object associated with the device identifier; querying a second preset mapping relationship table to determine a mapping relationship between each state value in the first state data and each attribute in the first EIP object, wherein the second preset mapping relationship table comprises a corresponding relationship between state values and attributes; determining an attribute value of each attribute in the first EIP object according to each state value in the first state data and the mapping relationship between each state value and each attribute in the first EIP object; The method further comprises: receiving second running data sent by the device at a second preset time interval, wherein the second running data comprises the device identifier and second state data; updating an attribute value of each attribute in the first EIP object using a state value corresponding to the attribute in the second state data, to obtain an updated second EIP object, in a case where it is determined that there is a first EIP object associated with the device identifier; sending the second EIP object to a data manager; storing a first time at which the first EIP object is updated each time and the updated second EIP object in association; stopping sending the second EIP object to the data manager in response to not receiving a receiving confirmation message sent by the data manager within a third preset time interval; saving a second time at which the sending of the second EIP object to the data manager is stopped; sending a recovery communication connection request to the data manager; sending the second EIP object associated with the first time after the second time to the data manager in response to receiving a recovery communication connection feedback message sent by the data manager.

2. The method of claim 1, wherein, Further comprising: sending a communication connection request to the device to establish a communication connection with the device; generating a network exception indication to indicate that the communication connection is abnormal in response to not receiving first running data sent by the device within a first preset time interval.

3. The method of any of claims 1-2, wherein, Further comprising: determining whether the device is running abnormally according to an attribute value of a preset attribute in the first EIP object; sending a control instruction to the device in a case where it is determined that the device is running abnormally, wherein the control instruction is used to instruct the device to stop running.

4. A data acquisition gateway based on an EIP object model, characterized in that, The method comprises: a receiving module configured to receive first running data sent by a device, wherein the running data comprises a device type, a device identifier, and first state data; a determining module configured to determine a first EIP class corresponding to the device type according to a first preset mapping relationship, wherein the EIP class is used to describe attribute information of devices of the same type; The generating module is configured to generate, according to the first EIP class, the first EIP object associated with the device identifier in a case where it is determined that the first EIP object associated with the device identifier does not exist; The determining module is configured to query a second preset mapping relationship table to determine a mapping relationship between each state value in the first state data and each attribute in the first EIP object, wherein the second preset mapping relationship table includes a corresponding relationship between a state value and an attribute; The determining module is configured to determine an attribute value of each attribute in the first EIP object according to each state value in the first state data and the mapping relationship between the state value and each attribute in the first EIP object; The receiving module is further configured to receive second running data sent by the device at a second preset time interval, wherein the second running data includes the device identifier and second state data; The data collection gateway further includes: The updating module is configured to update an attribute value of each attribute in the first EIP object by using a state value corresponding to the attribute in the second state data in a case where it is determined that the first EIP object associated with the device identifier exists, to obtain an updated second EIP object; The sending module is configured to send the second EIP object to the data manager; The storage module is configured to store a first time at which the first EIP object is updated each time and the updated second EIP object in association; The processing module is configured to stop sending the second EIP object to the data manager in response to not receiving a receiving confirmation message sent by the data manager within a third preset time interval; The storage module is configured to save a second time at which the sending of the second EIP object to the data manager is stopped; The sending module is configured to send a communication connection resumption request to the data manager; The sending module is further configured to send, to the data manager, the second EIP object associated with the first time after the second time in response to receiving a communication connection resumption feedback message sent by the data manager.

5. The gateway of claim 4, wherein, Further includes: The connection module is configured to send a communication connection request to the device to establish a communication connection with the device; The generating module is configured to generate a network exception indication to indicate that the communication connection is abnormal in response to not receiving first running data sent by the device within a first preset time interval.

6. A computer device, comprising: The processor and the memory; The processor runs a program corresponding to executable program code stored in the memory by reading the executable program code, to implement the method of any one of claims 1-3.

7. A computer readable storage medium having stored thereon a computer program, characterized in that The program is executed by the processor to implement the method of any one of claims 1-3.

Citation Information

Patent Citations

  • Data conversion method, storage medium and system

    CN110764759A

  • Network device information collection and change detection

    US6122639A