Data coding method and device, equipment, medium and product
By building a multi-level data architecture and coding rules, the problem of lack of unified standards in the data collection process of electromechanical equipment is solved, and efficient and accurate data management and intelligent equipment management are achieved.
Patent Information
- Application Number
- CN202510715259.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-16
AI Technical Summary
The lack of unified standards for application layer data of electromechanical equipment makes the data collection process complicated and affects efficiency.
Build a multi-level data architecture for electromechanical equipment, establish a mapping relationship between data sets and levels through hierarchical processing and coding rules, and achieve unified data standards and management.
It realizes the intelligent management of electromechanical equipment data, improves the efficiency and accuracy of data collection, reduces operation and maintenance costs, and supports plug-and-play and flexible expansion of equipment.
Smart Images

Figure CN120653956A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a data encoding method, apparatus, device, medium, and product. Background Art
[0002] Coal mining operations are rapidly transitioning towards automation and information technology. The demand for coal mine electromechanical equipment with communication interfaces, remote data monitoring, and control capabilities is increasing, with applications in production, transportation, power supply, ventilation, and other systems becoming increasingly widespread.
[0003] In related technologies, there is no unified standard for the application layer data opened by electromechanical equipment. Each manufacturer formulates different data standards based on its own characteristics, which results in data collection personnel having to negotiate with different equipment manufacturers multiple times each time they collect data. The data collection process is complicated, which in turn affects data collection efficiency. Summary of the Invention
[0004] In view of the above problems, the present disclosure is proposed. The present disclosure provides a data encoding method, apparatus, device, medium and product.
[0005] According to one aspect of the present disclosure, there is provided a data encoding method, comprising:
[0006] Acquire basic information, device information, and operating status information of the electromechanical device, wherein the basic information is used to indicate general attribute data of the electromechanical device, and the device information is used to indicate attribute data of each accessory in the electromechanical device;
[0007] Constructing a data architecture for the electromechanical device; wherein the data architecture comprises a plurality of multi-level architecture layers, each of the architecture layers corresponding to a data level;
[0008] hierarchically processing the basic information, the device information, and the operating status information to obtain data sets at various levels, and establishing a mapping relationship between the data sets at various levels and the data levels;
[0009] Based on the mapping relationship, the data set in the specified data layer in the data architecture is encoded according to the encoding rules to obtain an encoding result.
[0010] In addition, the data architecture according to one aspect of the present disclosure includes the following data layers: a device object layer, an information grouping layer, a data model layer, and a data attribute layer. The basic information, the device information, and the operating status information are hierarchically processed to obtain data sets at each layer, and further includes:
[0011] Determine the upper-level overall description information of the basic information, the device information, and the operating status information;
[0012] Determine the first level classification information of the basic information, the first level classification information of the device information, and the first level classification information of the operating status information;
[0013] It is determined that the first-level classification information of the basic information belongs to a first data set, the first-level classification information of the device information belongs to a second data set, and the first-level classification information of the operating status information belongs to a third data set.
[0014] In addition, according to one aspect of the present disclosure, establishing a mapping relationship between the data sets at each level and the data levels further includes:
[0015] Establishing a mapping relationship between the upper level overall description information and the device object layer;
[0016] Establishing mapping relationships between the basic information, the device information, and the operating status information and the information grouping layer respectively;
[0017] Establishing mapping relationships between the first-level classification information of the basic information, the first-level classification information of the device information, and the first-level classification information of the operating status information and each sub-model layer in the data model layer;
[0018] Establish mapping relationships between the first data set, the second data set, and the third data set and the data attribute layer respectively.
[0019] In addition, according to one aspect of the present disclosure, the determining of the first-level classification information of the basic information, the first-level classification information of the device information, and the first-level classification information of the operating status information further includes:
[0020] Determining first-level classification information of the basic information based on the device attribute information, network address information, and geographic location information in the basic information;
[0021] Determine first-level classification information of the device information based on the common accessories and proprietary accessories in the device information;
[0022] The first level classification information of the running status information is determined according to the startup status and the running parameters in the running status information.
[0023] In addition, according to one aspect of the present disclosure, encoding the data set in the specified data layer in the data architecture according to the encoding rule to obtain the encoding result further includes:
[0024] The data set in the device object layer, the data set in the data attribute layer, the device instance and the running status information of the device instance are encoded to obtain the encoding result.
[0025] In addition, according to one aspect of the present disclosure, after encoding the data set in the specified data layer in the data architecture according to the encoding rule and obtaining the encoding result, the method further includes:
[0026] In response to a user's data query request, determining a target electromechanical device that the user wants to query, and determining a target data architecture to which the target electromechanical device belongs;
[0027] determining a target data set in a target data hierarchy in the target data architecture;
[0028] The target network address of the target electromechanical device and the encoding result corresponding to the target data set are spliced to obtain a splicing result, and the splicing result is returned to the user.
[0029] In addition, according to one aspect of the present disclosure, the target network address of the target electromechanical device and the encoding result corresponding to the target data set are spliced to obtain a splicing result, further comprising:
[0030] Determine the encoding result of each sub-data in the target data set;
[0031] The encoding result of each sub-data and the target network address are spliced together to obtain the splicing result.
[0032] According to another aspect of the present disclosure, there is provided a data encoding device, comprising:
[0033] an acquisition unit, configured to acquire basic information, device information, and operating status information of an electromechanical device, wherein the basic information is used to indicate general attribute data of the electromechanical device, and the device information is used to indicate attribute data of each accessory in the electromechanical device;
[0034] An architecture construction unit, configured to construct a data architecture for the electromechanical device; wherein the data architecture comprises a plurality of multi-level architecture layers, each of the architecture layers corresponding to a data level;
[0035] a data processing unit, configured to perform hierarchical processing on the basic information, the device information, and the operating status information to obtain data sets at various levels, and to establish a mapping relationship between the data sets at various levels and the data levels;
[0036] The data encoding unit is used to encode the data set in the specified data layer in the data architecture according to the encoding rules to obtain an encoding result.
[0037] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps in the above-mentioned data encoding method are performed.
[0038] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned data encoding method are executed.
[0039] According to yet another aspect of the present disclosure, a computer program product is provided. The computer program product is stored in a storage medium and is executed by at least one processor to implement the steps in the above data encoding method.
[0040] As will be described in detail below, according to the data encoding method, device, equipment, medium and product of the embodiment of the present disclosure. In the embodiment of the present disclosure, a data architecture of the electromechanical equipment can be constructed based on the basic information, equipment information and operating status information of the electromechanical equipment, wherein the data architecture includes multiple multi-level architecture layers, each architecture layer corresponds to a data level, and then the basic information, equipment information and operating status information are hierarchically processed to obtain data sets of each level, and a mapping relationship between the data sets of each level and the data level is established, so that the data sets in the specified data level in the data architecture can be encoded according to the encoding rules to obtain the encoding results. By constructing the data architecture of the electromechanical equipment, it is possible to ensure that different electromechanical equipment and different manufacturers adopt a unified data standard, and through the hierarchical design of the data architecture, intelligent data management is achieved to ensure the efficiency of data collection. Moreover, the data sets in the data architecture can be hierarchically encoded according to the encoding rules, so that the specified data sets can be accurately accessed, thereby improving the efficiency and accuracy of the data processing and data collection process.
[0041] It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the technology as claimed. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The above and other purposes, features, and advantages of the present disclosure will become more apparent through a more detailed description of the embodiments of the present disclosure in conjunction with the accompanying drawings. The accompanying drawings are intended to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and are not intended to limit the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.
[0043] Figure 1 is a flowchart illustrating a data encoding method according to an embodiment of the present disclosure.
[0044] Figure 2 It is a schematic diagram further illustrating the data attributes in the data encoding method of an embodiment of the present disclosure.
[0045] Figure 3 It is a schematic diagram further illustrating the data architecture in the data encoding method of an embodiment of the present disclosure.
[0046] Figure 4 is a block diagram illustrating a data encoding apparatus according to an embodiment of the present disclosure.
[0047] Figure 5 is a hardware block diagram illustrating an electronic device according to an embodiment of the present disclosure.
[0048] Figure 6 is a schematic diagram illustrating a computer program product according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the present disclosure more apparent, the following will describe in detail exemplary embodiments of the present disclosure with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described herein.
[0050] To facilitate understanding of this embodiment, a data encoding method disclosed in this embodiment is first described in detail. The data encoding method provided in this embodiment is generally executed by an electronic device with certain computing capabilities, such as a terminal device, a server, or other processing device. In some possible implementations, this data encoding method can be implemented by a processor invoking computer-readable instructions stored in a memory.
[0051] See also Figure 1 FIG. 1 is a flow chart of a data encoding method provided by an embodiment of the present disclosure, wherein the method includes steps S101 to S104, wherein:
[0052] Step S101: basic information, device information and operating status information of an electromechanical device are acquired, wherein the basic information is used to indicate general attribute data of the electromechanical device, and the device information is used to indicate attribute data of each accessory in the electromechanical device.
[0053] Here, electromechanical equipment may refer to coal mine electromechanical equipment, or electromechanical equipment in other application scenarios. No further examples are given here.
[0054] Here, basic information refers to the basic attributes shared by different electromechanical equipment, that is, the common attribute data of electromechanical equipment, which includes three parts: basic model, network model and location model, which will be described in detail later.
[0055] Equipment information includes real-time and historical operating data of electromechanical equipment, which is used to characterize the attribute data of each component in the electromechanical equipment, including two parts: the equipment common model and the equipment specific model.
[0056] The operating status information is composed of the data sets in the basic information and device information, which can be understood as a kind of attribute set service information, including the uplink switch quantity combination, the downlink switch quantity combination, the uplink analog quantity combination and the downlink analog quantity combination.
[0057] Among them, the switch quantity represents the start and stop status of the electromechanical equipment, usually represented by discrete values 0 or 1; the analog quantity represents the actual operating parameters and historical operating parameters of the electromechanical equipment, usually represented by continuous values.
[0058] Furthermore, operational status information can be flexibly defined based on actual data needs to meet diverse data collection and processing requirements. For example, if the control commands issued have high latency requirements, multiple downlink switch commands can be grouped into a single combined message. Commonly used uplink analog data such as current, voltage, and temperature, which have lower latency requirements, can also be grouped into a single combined message. Independent combined messages can be configured with specialized network service functions to meet specific requirements such as latency and data volume, and can be subscribed and published using a separate combined service identifier.
[0059] Step S102: constructing a data architecture of the electromechanical device; wherein the data architecture comprises a plurality of multi-level architecture layers, and each architecture layer corresponds to a data level.
[0060] Here, one electromechanical device corresponds to one data architecture, one data architecture includes multiple architecture layers, each architecture layer includes multiple levels of data, and each architecture layer corresponds to one data level.
[0061] This data architecture can support the plug-and-play function of electromechanical equipment. New electromechanical equipment can be quickly connected to the data architecture and start working without complex configuration and debugging.
[0062] In the embodiment of the present disclosure, the data platform can construct a data architecture that includes multiple multi-level architectural layers, and each architectural layer corresponds to a data level. This layered design makes the data architecture clearer and easier to manage and maintain, thereby providing an architectural foundation for intelligent management and efficient data collection of electromechanical equipment.
[0063] Step S103: hierarchically processing the basic information, the device information and the operating status information to obtain data sets at various levels, and establishing a mapping relationship between the data sets at various levels and the data levels.
[0064] In the embodiment of the present disclosure, the data platform can perform hierarchical processing on basic information, equipment information and operating status information from the data level to obtain data sets at each level, thereby establishing a mapping relationship between each data set and the corresponding data level, ensuring that each data set has a clear data level and reducing the problem of data confusion.
[0065] In the above implementation, by performing hierarchical processing on the data, the required data sets can be quickly located and accessed, thereby improving data access efficiency. Moreover, hierarchical processing can support flexible expansion of the data architecture. When a new data set needs to be added, it is only necessary to add the new data set in the corresponding data layer without modifying the entire data architecture.
[0066] Step S104: Based on the mapping relationship, the data set in the specified data layer in the data architecture is encoded according to the encoding rules to obtain an encoding result.
[0067] The present disclosure predefines a unified set of encoding rules. To ensure sufficient and usable encoding, the encoding format can use hexadecimal or decimal number sequence encoding. The encoding length can be determined based on the number and complexity of the data set to ensure that each code is unique globally. Moreover, the encoding rules, like the hierarchical processing described above, can also support flexible expansion of the data architecture. The encoding rules will be described in an exemplary manner later.
[0068] In the above-described implementation, by constructing a data architecture for electromechanical equipment, it is possible to ensure that different electromechanical equipment and different manufacturers adopt a unified data standard. The layered design of the data architecture enables intelligent data management and ensures efficient data collection. Furthermore, data sets within the data architecture can be hierarchically encoded according to encoding rules, enabling precise access to specific data sets, thereby improving the efficiency and accuracy of data processing and data collection.
[0069] In an optional embodiment, the data architecture in the above steps includes the following data layers: a device object layer, an information grouping layer, a data model layer, and a data attribute layer; hierarchically processing the basic information, the device information, and the operating status information to obtain data sets at each layer specifically includes the following steps:
[0070] Determine the upper-level overall description information of the basic information, the device information, and the operating status information;
[0071] Determine the first level classification information of the basic information, the first level classification information of the device information, and the first level classification information of the operating status information;
[0072] It is determined that the first-level classification information of the basic information belongs to a first data set, the first-level classification information of the device information belongs to a second data set, and the first-level classification information of the operating status information belongs to a third data set.
[0073] Here, the upper-level overall description information is proprietary data of the electromechanical device itself, used to describe the device category. It may include the device name or other unique data of the electromechanical device. This electromechanical device has independent data processing capabilities. Based on this type of device, a device model can be defined. The upper-level overall description information is globally and uniformly addressed. The upper-level overall description information can be understood as device object information.
[0074] Here, the first-level categorized information refers to the next level of categorized information, including basic information, device information, and operating status information. This refers to the first-level processing result of hierarchically processing basic information, device information, and operating status information. Furthermore, the first, second, and third data sets can be understood as the next level of categorized information within the first level.
[0075] Among them, the first data set includes the basic attribute set, network attribute set and location attribute set; the second data set includes the motor attribute set, inverter attribute set, relay protection attribute set, other common attribute sets, automatic coal mining attribute set and other unique attribute sets, etc.; the third data set includes the operating status data set, etc. The contents of the above data sets can be adjusted as needed according to the type of electromechanical equipment and the application scenario.
[0076] In the embodiment of the present disclosure, based on the original data basic information, device information and operating status information, after hierarchical processing, the upper-level overall description information, the first-level classification information and the data set to which the first-level classification information belongs can be obtained, so that the data can be divided into four levels at the data level; since the constructed data architecture includes four data levels: device object layer, information grouping layer, data model layer and data attribute layer, it is convenient to map the data sets of each level to each data level, so as to form a complete set of data standards based on the actual data.
[0077] In an optional embodiment, the above steps of establishing a mapping relationship between the data sets at each level and the data levels specifically include the following steps:
[0078] Establishing a mapping relationship between the upper level overall description information and the device object layer;
[0079] Establishing mapping relationships between the basic information, the device information, and the operating status information and the information grouping layer respectively;
[0080] Establishing mapping relationships between the first-level classification information of the basic information, the first-level classification information of the device information, and the first-level classification information of the operating status information and each sub-model layer in the data model layer;
[0081] Establish mapping relationships between the first data set, the second data set, and the third data set and the data attribute layer respectively.
[0082] As described above, the data architecture includes four data levels: device object layer, information grouping layer, data model layer, and data attribute layer. For this purpose, the overall description information of the upper level can be mapped to the device object layer; the basic information, device information, and operating status information can be mapped to the information grouping layer respectively; the first-level classification information can be mapped to each sub-model layer in the data model layer; and the first data set, the second data set, and the third data set can be mapped to the data attribute layer respectively.
[0083] Among them, the sub-model can be understood as a database that stores the first-level classification information. For example, the sub-models corresponding to the first-level classification information of the basic information are the basic model, the network model and the location model; the sub-models corresponding to the first-level classification information of the equipment information are the equipment common model and the equipment specific model; the sub-models corresponding to the first-level classification information of the operating status information are the uplink switch quantity combination model, the downlink switch quantity combination model, the uplink analog quantity combination model and the downlink analog quantity combination model.
[0084] Data attributes in the data attribute layer are elements in the model that describe a device's state, value, and so on. Attributes must be unique, possessing a unique attribute code, and belong only to a specific data model. No two attributes in different sub-models can have exactly the same meaning, and attributes can be read and written.
[0085] See also Figure 2 As shown, it is a schematic diagram of data attributes in a data encoding method provided in an embodiment of the present disclosure. The data attributes include attribute identifier, attribute name, attribute type, attribute description, whether it is required, access rights, value range, length, format, precision, unit, validity period and security protection level.
[0086] In the above implementation, a unified mapping relationship between data sets and data hierarchies can ensure that data from different devices can be seamlessly exchanged and shared, thereby improving the compatibility of the data architecture, reducing manual intervention in the data collection and data management process, reducing operation and maintenance costs, and thus realizing hierarchical management of data.
[0087] In an optional embodiment, the above steps of determining the first-level classification information of the basic information, the first-level classification information of the device information, and the first-level classification information of the operating status information specifically include the following steps:
[0088] Determining first-level classification information of the basic information based on the device attribute information, network address information, and geographic location information in the basic information;
[0089] Determine first-level classification information of the device information based on the common accessories and proprietary accessories in the device information;
[0090] The first level classification information of the running status information is determined according to the startup status and the running parameters in the running status information.
[0091] Here, the first-level classification information of basic information includes device attribute information, such as the name, type, model, manufacturer, production date, status, software version and other information of the device; network address information is used to describe the network information used by the device to connect to the Internet, such as IP address or MAC address; geographic location information is used to describe information related to the location of the device, such as the unit to which the device belongs, the unit using the device, the geographical location of the device and other information.
[0092] The first-level classification information of equipment information includes general accessories and proprietary accessories. General accessories refer to accessory units within electromechanical equipment that can be referenced by at least two or more devices, such as motors and inverters. Proprietary accessories refer to accessory units or functional units that are unique to a certain electromechanical equipment and cannot be reused by more than two devices. For example, the unique attributes of coal mining equipment: coal mining machine traction speed, coal mining machine left drum height and other unique attributes.
[0093] The first-level classification information of the operating status information includes the startup status and operating parameters. The startup status can be represented by a discrete switch state, that is, a switch quantity. The operating parameters refer to the operating parameters of the electromechanical equipment during actual operation or historical operation, that is, an analog quantity.
[0094] Correspondingly, device attribute information corresponds to the basic model, network address information corresponds to the network model, geographic location information corresponds to the location model, general accessories correspond to the device public model, proprietary accessories correspond to the device unique model, the startup status corresponds to the uplink switch quantity combination model and the downlink switch quantity combination model, and the operating parameters correspond to the uplink analog quantity combination model and the downlink analog quantity combination model.
[0095] In the above implementation, the division of the first-level classification information can structure complex data to facilitate management and analysis, thereby improving data clarity and access efficiency, and supporting flexible expansion, thereby supporting intelligent management of electromechanical equipment data.
[0096] In an optional embodiment, the above steps encode the data set in the specified data layer in the data architecture according to the encoding rules to obtain the encoding result, which specifically includes the following steps:
[0097] The data set in the device object layer, the data set in the data attribute layer, the device instance and the running status information of the device instance are encoded to obtain the encoding result.
[0098] Here, a device instance refers to the implementation of a model based on a specific device, known as instantiation. During instantiation, properties and methods can be assigned values. For example, if a shearer has six motors with identical properties, the motor property set in the common device model under the shearer device object needs to be instantiated six times, each with an instance code to distinguish similar data from different motors.
[0099] In this regard, the embodiments of the present disclosure can encode the data set in the device object layer, the data set in the data attribute layer, the device instance and the operating status information of the device instance to obtain the device object code, attribute set code, instance code and attribute code.
[0100] Based on the combination of device object code, attribute set code, instance code and attribute code, a new addressing method can be formed, which can be used to read single data, multiple data under the same or different models, all data under a certain instance, and all data under a separate combination of models at one time.
[0101] For example, the encoding method of the data set in the device object layer is shown in Table 1, and the encoding method of the data set in the data attribute layer is shown in Table 2. Taking the coal mining machine motor as an example, the encoding method of the device instance is shown in Table 3. Taking the motor attribute set as an example, the encoding method of the operating status information of the device instance is shown in Table 4.
[0102] Table 1
[0103]
[0104] Table 2
[0105]
[0106] Table 3
[0107]
[0108] Table 4
[0109]
[0110]
[0111] In an optional embodiment, after encoding the data set in the specified data layer in the data architecture according to the encoding rules and obtaining the encoding result, the above steps specifically include the following steps:
[0112] In response to a user's data query request, determining a target electromechanical device that the user wants to query, and determining a target data architecture to which the target electromechanical device belongs;
[0113] determining a target data set in a target data hierarchy in the target data architecture;
[0114] The target network address of the target electromechanical device and the encoding result corresponding to the target data set are spliced to obtain a splicing result, and the splicing result is returned to the user.
[0115] In coal mine applications, all electromechanical equipment is connected to the mine's industrial production ring network. Once connected, it has a relatively fixed IP address, known as the target network address. Therefore, the target network address can be combined with the aforementioned encoding result to allow users to retrieve the target dataset from the server using a client device.
[0116] In the embodiment of the present disclosure, the target electromechanical equipment that the user wants to query can be determined based on the user's data query request, and the data architecture to which the electromechanical equipment belongs can be further determined. Therefore, according to the user's needs, the target data layer where the data to be queried is located can be determined, and the target data set can be determined in the target data layer, and the spliced result can be returned to the user, and the user can directly access the required data through the spliced result.
[0117] Through the above design method, the user's data query request can be responded to efficiently, thereby improving the response speed, and providing a solid foundation for the intelligent management and efficient data collection of electromechanical equipment, which can promote the intelligent development of the coal mining industry.
[0118] In an optional embodiment, the above step of concatenating the target network address of the target electromechanical device and the encoding result corresponding to the target data set to obtain a concatenated result specifically includes the following steps:
[0119] Determine the encoding result of each sub-data in the target data set;
[0120] The encoding result of each sub-data and the target network address are spliced together to obtain the splicing result.
[0121] Specifically, when a single data needs to be obtained, for example, when obtaining the motor current of a coal mining machine crusher, "." is used as the encoding segment separator, and the encoding result should be 0x0001.0x0004.0x0006.0x0001. If the target network address of the coal mining machine is 192.168.10.10, then when the motor current of the coal mining machine crusher needs to be read separately, the splicing result is 192.168.10.10+0x0001.0x0004.0x0006.0x0001.
[0122] When two or more data need to be obtained simultaneously, for example, when obtaining the current of the coal mining machine crusher motor and the temperature of the left cutting motor, the splicing result is:
[0123] 192.168.10.10+0x0001.0x0004.0x0006.0x0001&0x0001.0x0004.0x0001.0x0003. Here, & is used as the attribute connector. In this case, the crusher motor current and left-cut motor temperature are equivalent to sub-data. Similarly, this method can be used to obtain single or multiple data points.
[0124] When you need to obtain all the data of the same attribute set, you can omit the attribute code. For example, when you want to obtain all the data of the left cutting motor of a coal mining machine, the splicing result is: 192.168.10.10+0x0001.0x0004.0x0001. Similarly, you can obtain all the data of more attribute sets.
[0125] Through the above splicing method, you can read a single data, multiple data under the same or different models, all data under a certain instance, and all data under a separate combination of models at once.
[0126] Reference Figure 3 FIG2 is a schematic diagram of a data architecture in a data encoding method provided by an embodiment of the present disclosure. The data architecture includes a device object layer, an information grouping layer, a data model layer, and a data attribute layer.
[0127] The device object layer includes device object information (i.e., the overall description information of the upper level); the information grouping layer includes basic information, device information, and operating status information; the data model layer includes the basic model, network model, and location model corresponding to the basic information, the device common model and device-specific model corresponding to the device information, and the upstream switch quantity combination model, downstream switch quantity combination model, upstream analog quantity combination model, and downstream analog quantity combination model corresponding to the operating status information; the data attribute layer includes the basic attribute set corresponding to the basic model, the network attribute set corresponding to the network model, the location attribute set corresponding to the location model, the motor attribute set, inverter attribute set, relay protection attribute set, and other public attribute sets corresponding to the device common model, the automatic coal mining attribute set and other specific attribute sets corresponding to the device-specific model, and the operating status information attribute set corresponding to the upstream switch quantity combination model, the downstream switch quantity combination model, the upstream analog quantity combination model, and the downstream analog quantity combination model.
[0128] From the above description, it can be seen that the technical solution disclosed in this disclosure has the following advantages:
[0129] (1) Using the constructed unified data architecture to collect data from electromechanical equipment can greatly reduce the time cost of multiple negotiations during data collection, solve the problem of insufficient data collection, and greatly simplify the processes of data collection, data uploading, and data governance, thereby essentially improving data quality and data availability.
[0130] (2) The unified electromechanical equipment data encoding method fundamentally unifies the data source management of electromechanical equipment. Moreover, it greatly improves the interchangeability between devices of the same type, thereby reducing the difficulty of data governance and data entry, greatly reducing manual operation and maintenance investment, and is also conducive to the promotion and application of the latest information and digital technologies.
[0131] Based on the same inventive concept, a data encoding device corresponding to the data encoding method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned data encoding method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0132] Reference Figure 4 FIG. 1 is a schematic diagram of a data encoding device provided by an embodiment of the present disclosure, wherein the device includes: an acquisition unit 40, an architecture construction unit 41, a data processing unit 42, and a data encoding unit 43; wherein:
[0133] an acquisition unit, configured to acquire basic information, device information, and operating status information of an electromechanical device, wherein the basic information is used to indicate general attribute data of the electromechanical device, and the device information is used to indicate attribute data of each accessory in the electromechanical device;
[0134] An architecture construction unit, configured to construct a data architecture for the electromechanical device; wherein the data architecture comprises a plurality of multi-level architecture layers, each of the architecture layers corresponding to a data level;
[0135] a data processing unit, configured to perform hierarchical processing on the basic information, the device information, and the operating status information to obtain data sets at various levels, and to establish a mapping relationship between the data sets at various levels and the data levels;
[0136] The data encoding unit is used to encode the data set in the specified data layer in the data architecture according to the encoding rules to obtain an encoding result.
[0137] In a possible implementation manner, the device is further used for:
[0138] Determine the upper-level overall description information of the basic information, the device information, and the operating status information;
[0139] Determine the first level classification information of the basic information, the first level classification information of the device information, and the first level classification information of the operating status information;
[0140] It is determined that the first-level classification information of the basic information belongs to a first data set, the first-level classification information of the device information belongs to a second data set, and the first-level classification information of the operating status information belongs to a third data set.
[0141] In a possible implementation manner, the device is further used for:
[0142] Establishing a mapping relationship between the upper level overall description information and the device object layer;
[0143] Establishing mapping relationships between the basic information, the device information, and the operating status information and the information grouping layer respectively;
[0144] Establishing mapping relationships between the first-level classification information of the basic information, the first-level classification information of the device information, and the first-level classification information of the operating status information and each sub-model layer in the data model layer;
[0145] Establish mapping relationships between the first data set, the second data set, and the third data set and the data attribute layer respectively.
[0146] In a possible implementation manner, the device is further used for:
[0147] Determining first-level classification information of the basic information based on the device attribute information, network address information, and geographic location information in the basic information;
[0148] Determine first-level classification information of the device information based on the common accessories and proprietary accessories in the device information;
[0149] The first level classification information of the running status information is determined according to the startup status and the running parameters in the running status information.
[0150] In a possible implementation manner, the device is further used for:
[0151] The data set in the device object layer, the data set in the data attribute layer, the device instance and the running status information of the device instance are encoded to obtain the encoding result.
[0152] In a possible implementation manner, the device is further used for:
[0153] In response to a user's data query request, determining a target electromechanical device that the user wants to query, and determining a target data architecture to which the target electromechanical device belongs;
[0154] determining a target data set in a target data hierarchy in the target data architecture;
[0155] The target network address of the target electromechanical device and the encoding result corresponding to the target data set are spliced to obtain a splicing result, and the splicing result is returned to the user.
[0156] In a possible implementation manner, the device is further used for:
[0157] Determine the encoding result of each sub-data in the target data set;
[0158] The encoding result of each sub-data and the target network address are spliced together to obtain the splicing result.
[0159] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference can be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0160] Corresponding to Figure 1 The data encoding method in the present disclosure also provides an electronic device 50, such as Figure 5 FIG. 1 is a schematic diagram of the structure of an electronic device 50 provided in an embodiment of the present disclosure, including:
[0161] Processor 51, memory 52, and bus 53; memory 52 is used to store execution instructions, including internal memory 521 and external memory 522; the internal memory 521 is also called internal memory, which is used to temporarily store operation data in the processor 51 and data exchanged with external memory 522 such as a hard disk. The processor 51 exchanges data with the external memory 522 through the internal memory 521. When the electronic device 50 is running, the processor 51 communicates with the memory 52 via the bus 53, so that the processor 51 executes the following instructions:
[0162] Acquire basic information, device information, and operating status information of the electromechanical device, wherein the basic information is used to indicate general attribute data of the electromechanical device, and the device information is used to indicate attribute data of each accessory in the electromechanical device;
[0163] Constructing a data architecture for the electromechanical device; wherein the data architecture comprises a plurality of multi-level architecture layers, each of the architecture layers corresponding to a data level;
[0164] hierarchically processing the basic information, the device information, and the operating status information to obtain data sets at various levels, and establishing a mapping relationship between the data sets at various levels and the data levels;
[0165] Based on the mapping relationship, the data set in the specified data layer in the data architecture is encoded according to the encoding rules to obtain an encoding result.
[0166] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program executes the steps of the data encoding method described in the above method embodiment. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0167] The present disclosure also provides a computer program product 60, such as Figure 6 As shown, it is a structural diagram of a computer program product 60 provided in an embodiment of the present disclosure. The computer program product 60 carries a computer program 61. The program included in the computer program 61 can be used to execute the steps of the data encoding method described in the above method embodiment. For details, please refer to the above method embodiment and will not be repeated here.
[0168] Above, with reference to the accompanying drawings, the data encoding method, device, equipment, medium and product according to the embodiment of the present disclosure are described. First, the basic information, equipment information and operating status information of the electromechanical equipment are obtained, the basic information is used to indicate the general attribute data of the electromechanical equipment, and the equipment information is used to indicate the attribute data of each accessory in the electromechanical equipment; then, the data architecture of the electromechanical equipment is constructed; wherein the data architecture includes multiple multi-level architecture layers, each of the architecture layers corresponds to a data layer; and the basic information, the equipment information and the operating status information are hierarchically processed to obtain data sets of each layer, and a mapping relationship between the data sets of each layer and the data layer is established; finally, based on the mapping relationship, the data sets in the specified data layer in the data architecture can be encoded according to the encoding rules to obtain the encoding result. By constructing the data architecture of the electromechanical equipment, it can be ensured that different electromechanical equipment and different manufacturers adopt a unified data standard, and through the hierarchical design of the data architecture, intelligent data management can be achieved to ensure the efficiency of data collection. Moreover, the data sets in the data architecture can be hierarchically encoded according to the encoding rules, so that the specified data sets can be accessed accurately, thereby improving the efficiency and accuracy of the data processing and data collection process.
[0169] The basic principles of the present disclosure have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this disclosure are merely illustrative and not restrictive, and should not be construed as necessarily possessed by each embodiment of the present disclosure. Furthermore, the specific details disclosed above are provided for illustrative purposes and to facilitate understanding, rather than as limitations. These details do not limit the present disclosure to necessarily being implemented using these specific details.
[0170] The block diagrams of the devices, devices, equipment, and systems involved in this disclosure are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, or configured in any manner. Words such as "include," "comprise," "have," and the like are open-ended words, meaning "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or" and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0171] Additionally, as used herein, "or" used in a list of items beginning with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.
[0172] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0173] Various changes, substitutions, and modifications may be made to the technology described herein without departing from the teachings defined by the appended claims. Moreover, the scope of the claims of this disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of things, means, methods, and actions described above. Currently existing or later developed processes, machines, manufactures, compositions of things, means, methods, or actions that perform substantially the same function or achieve substantially the same results as the corresponding aspects described herein may be utilized. Accordingly, the appended claims include within their scope such processes, machines, manufactures, compositions of things, means, methods, or actions.
[0174] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0175] The above description has been provided for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. A data encoding method, characterized in that: include: Acquire basic information, device information, and operating status information of the electromechanical device, wherein the basic information is used to indicate general attribute data of the electromechanical device, and the device information is used to indicate attribute data of each accessory in the electromechanical device; Constructing a data architecture for the electromechanical device; wherein the data architecture comprises a plurality of multi-level architecture layers, each of the architecture layers corresponding to a data level; hierarchically processing the basic information, the device information, and the operating status information to obtain data sets at various levels, and establishing a mapping relationship between the data sets at various levels and the data levels; Based on the mapping relationship, the data set in the specified data layer in the data architecture is encoded according to the encoding rules to obtain an encoding result.
2. The method according to claim 1, characterized in that The data architecture includes the following data layers: device object layer, information grouping layer, data model layer, and data attribute layer; The hierarchical processing of the basic information, the device information, and the operating status information to obtain data sets at each level includes: Determine the upper-level overall description information of the basic information, the device information, and the operating status information; Determine the first level classification information of the basic information, the first level classification information of the device information, and the first level classification information of the operating status information; It is determined that the first-level classification information of the basic information belongs to a first data set, the first-level classification information of the device information belongs to a second data set, and the first-level classification information of the operating status information belongs to a third data set.
3. The method according to claim 2, characterized in that The establishing of a mapping relationship between the data sets at each level and the data levels includes: Establishing a mapping relationship between the upper level overall description information and the device object layer; Establishing mapping relationships between the basic information, the device information, and the operating status information and the information grouping layer respectively; Establishing mapping relationships between the first-level classification information of the basic information, the first-level classification information of the device information, and the first-level classification information of the operating status information and each sub-model layer in the data model layer; Establish mapping relationships between the first data set, the second data set, and the third data set and the data attribute layer respectively.
4. The method according to claim 2, characterized in that The determining of the first-level classification information of the basic information, the first-level classification information of the device information, and the first-level classification information of the operating status information includes: Determining first-level classification information of the basic information based on the device attribute information, network address information, and geographic location information in the basic information; Determining first-level classification information of the device information based on the common accessories and proprietary accessories in the device information; The first level classification information of the running status information is determined according to the startup status and the running parameters in the running status information.
5. The method according to claim 2, characterized in that The step of encoding the data set in the specified data layer in the data architecture according to the encoding rules to obtain an encoding result includes: The data set in the device object layer, the data set in the data attribute layer, the device instance and the running state information of the device instance are encoded to obtain the encoding result.
6. The method according to claim 1, wherein After encoding the data set in the specified data layer in the data architecture according to the encoding rules to obtain the encoding result, the method includes: In response to a user's data query request, determining a target electromechanical device that the user wants to query, and determining a target data architecture to which the target electromechanical device belongs; determining a target data set in a target data hierarchy in the target data architecture; The target network address of the target electromechanical device and the encoding result corresponding to the target data set are spliced to obtain a splicing result, and the splicing result is returned to the user.
7. The method according to claim 6, characterized in that The step of splicing the target network address of the target electromechanical device and the encoding result corresponding to the target data set to obtain a splicing result includes: Determine the encoding result of each sub-data in the target data set; The encoding result of each sub-data and the target network address are spliced together to obtain the splicing result.
8. A data encoding device, characterized in that: include: an acquisition unit, configured to acquire basic information, device information, and operating status information of an electromechanical device, wherein the basic information is used to indicate general attribute data of the electromechanical device, and the device information is used to indicate attribute data of each accessory in the electromechanical device; An architecture construction unit, configured to construct a data architecture for the electromechanical device; wherein the data architecture comprises a plurality of multi-level architecture layers, each of the architecture layers corresponding to a data level; a data processing unit, configured to perform hierarchical processing on the basic information, the device information, and the operating status information to obtain data sets at various levels, and to establish a mapping relationship between the data sets at various levels and the data levels; The data encoding unit is used to encode the data set in the specified data layer in the data architecture according to the encoding rules to obtain an encoding result.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the data encoding method according to any one of claims 1 to 7 are performed.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the data encoding method according to any one of claims 1 to 7.
11. A computer program product, characterized in that The computer program product is stored in a storage medium, and the program product is executed by at least one processor to implement the data encoding method according to any one of claims 1 to 7.