Interface configuration method and device, storage medium and electronic equipment
The interface configuration method addresses inefficiencies by initializing interface results for sub-nodes and data points, enhancing configuration efficiency through node and data point creation interfaces.
Patent Information
- Application Number
- CN202411250989.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-27
AI Technical Summary
Existing technologies face low efficiency in configuring system interfaces due to separate handling of data points, leading to inefficient interface configuration processes.
An interface configuration method that initializes interface configuration results for sub-nodes and data points through node and data point creation interfaces, allowing rapid configuration by determining interface results based on the node's configuration.
This method enhances interface configuration efficiency by enabling rapid initialization and configuration of interface results for sub-nodes and data points, improving overall efficiency.
Smart Images

Figure CN119201270A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an interface configuration method, device, storage medium and electronic equipment. Background Art
[0002] At present, with the long-term development of computer technology, computer application software has been integrated into the development of various industries; the requirements for information systems are complex and changeable. The more complex the requirements are, the more types of system interfaces (i.e., device interfaces) may be involved; in order to meet the information construction of enterprises, it is necessary to configure interfaces for all data points involved. However, related technologies usually configure interfaces for different data points separately through scripts, etc., resulting in low interface configuration efficiency. Based on this, there is currently no good solution for how to conveniently configure interfaces to improve interface configuration efficiency. Summary of the invention
[0003] In view of this, the embodiments of the present invention provide an interface configuration method, device, storage medium and electronic device to solve the problems of low interface configuration efficiency in related technologies. That is to say, the embodiments of the present invention can initialize the interface configuration results of sub-nodes and / or data points under the node through the interface configuration of the node, thereby realizing the rapid configuration of the interface configuration results of the data point; based on this, the embodiments of the present invention can conveniently perform interface configuration to effectively improve the interface configuration efficiency.
[0004] According to one aspect of an embodiment of the present invention, there is provided an interface configuration method, the method comprising:
[0005] When a node creation interface display instruction for a target node is detected, a target node creation interface corresponding to the target node is displayed;
[0006] In response to a target creation node operation detected in the target creation node interface, the target node is generated, the interface configuration result of the target node is a device interface in the device interface set, and the interface configuration results of the child nodes and / or data points under a node are initialized to the interface configuration results of the corresponding node;
[0007] When a data point creation interface display instruction for a target data point is detected, a target data point creation interface corresponding to the target data point is displayed;
[0008] In response to a target creation data point operation detected in the target creation data point interface, the target data point is generated, one data point is located in a node, and one root node corresponds to a control system; wherein the interface configuration result of the target data point is determined based on the interface configuration result of the node where the target data point is located, and the root nodes corresponding to the data points under each controlled device in at least one controlled device controlled by a control system are all: the root nodes corresponding to the corresponding control system.
[0009] According to another aspect of an embodiment of the present invention, there is provided an interface configuration device, the device comprising:
[0010] A display unit, configured to display a target node creation interface corresponding to the target node when a node creation interface display instruction for the target node is detected;
[0011] A processing unit, configured to generate the target node in response to a target creation node operation detected in the target creation node interface, wherein the interface configuration result of the target node is a device interface in a device interface set, and the interface configuration results of the child nodes and / or data points under a node are initialized to the interface configuration results of the corresponding node;
[0012] The display unit is further configured to display a target data point creation interface corresponding to the target data point when a data point creation interface display instruction for the target data point is detected;
[0013] The processing unit is also used to generate the target data point in response to a target creation data point operation detected in the target creation data point interface, wherein one data point is located in one node, and one root node corresponds to one control system; wherein the interface configuration result of the target data point is determined based on the interface configuration result of the node where the target data point is located, and the root nodes corresponding to the data points under each controlled device in at least one controlled device controlled by a control system are all: the root nodes corresponding to the corresponding control system.
[0014] According to another aspect of an embodiment of the present invention, an electronic device is provided, which includes a processor and a memory for storing a program, wherein the program includes instructions; when the instructions are executed by the processor, the processor executes the above-mentioned method.
[0015] According to another aspect of an embodiment of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above-mentioned method.
[0016] When a display instruction for creating a node interface for a target node is detected, the embodiment of the present invention can display a target creation node interface corresponding to the target node; and in response to the target creation node operation detected in the target creation node interface, the target node is generated, and the interface configuration result of the target node is a device interface in the device interface set, and the interface configuration result of the sub-nodes and / or data points under a node is initialized to the interface configuration result of the corresponding node. Correspondingly, when a display instruction for creating a data point interface for a target data point is detected, a target creation data point interface corresponding to the target data point can be displayed; and in response to the target creation data point operation detected in the target creation data point interface, the target data point is generated, a data point is located in a node, and a root node corresponds to a control system; wherein the interface configuration result of the target data point is determined based on the interface configuration result of the node where the target data point is located, and the root nodes corresponding to the data points under each controlled device in at least one controlled device controlled by a control system are all: the root node corresponding to the corresponding control system. It can be seen that the embodiment of the present invention can realize the initialization of the interface configuration results of the sub-nodes and / or data points under the node by configuring the interface of the node, thereby realizing the rapid configuration of the interface configuration results of the data point; based on this, the embodiment of the present invention can conveniently perform interface configuration to effectively improve the interface configuration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Further details, features and advantages of the invention are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0018] Figure 1 A schematic flow chart of an interface configuration method according to an exemplary embodiment of the present invention is shown;
[0019] Figure 2a A schematic diagram showing a target creation node interface according to an exemplary embodiment of the present invention is shown;
[0020] Figure 2b A schematic diagram showing a node entering a display area according to an exemplary embodiment of the present invention is shown;
[0021] Figure 3 A schematic diagram of creating a data point interface according to an exemplary embodiment of the present invention is shown;
[0022] Figure 4 A schematic flow chart of another interface configuration method according to an exemplary embodiment of the present invention is shown;
[0023] Figure 5 A schematic diagram of a new interface according to an exemplary embodiment of the present invention is shown;
[0024] Figure 6aA schematic diagram showing a target alarm setting area according to an exemplary embodiment of the present invention;
[0025] Figure 6b A schematic diagram showing another target alarm setting area according to an exemplary embodiment of the present invention;
[0026] Figure 7 A schematic diagram showing a device attribute according to an exemplary embodiment of the present invention;
[0027] Figure 8 A schematic block diagram of an interface configuration device according to an exemplary embodiment of the present invention is shown;
[0028] Fig. 9 A block diagram of an exemplary electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0029] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0030] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0031] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0034] It should be noted that the execution subject of the interface configuration method provided in the embodiment of the present invention may be one or more electronic devices, and the present invention does not limit this; wherein, the electronic device may be a terminal (i.e., a client) or a server, then when the execution subject includes multiple electronic devices, and the multiple electronic devices include at least one terminal and at least one server, the interface configuration method provided in the embodiment of the present invention may be jointly executed by the terminal and the server. Optionally, the embodiment of the present invention may involve an integrated monitoring platform (also referred to as an integrated monitoring device), in which case, the execution subject of the interface configuration method provided in the embodiment of the present invention may be one or more electronic devices in the integrated monitoring platform; further, the integrated monitoring platform may include an edge platform, based on which, the execution subject of the interface configuration method provided in the embodiment of the present invention may be an edge platform, that is, one or more electronic devices constituting the edge platform, and so on.
[0035] The terminals mentioned here may include but are not limited to: smart phones, tablet computers, laptops, desktop computers, smart watches, smart voice interaction devices, smart home appliances, etc. The servers mentioned here may be independent physical servers, or server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, etc.
[0036] See also Figure 1 , an embodiment of the present invention proposes an interface configuration method, which can be executed by the electronic device (terminal or server) mentioned above; or, the interface configuration method can be executed by the terminal and the server together. For the convenience of explanation, the following description will take the electronic device executing the interface configuration method as an example; Figure 1 As shown, the interface configuration method may include the following steps S101-S104:
[0037] S101, when a node creation interface display instruction for a target node is detected, a target node creation interface corresponding to the target node is displayed.
[0038] Optionally, the target node may be any node, which is not limited in the embodiment of the present invention. Optionally, the target node may be a root node or a child node, which is not limited in the embodiment of the present invention.
[0039] In one embodiment, a user (such as an operator) may perform a root node creation operation. In this case, the electronic device may use the root node to be generated as the target node, and in response to the root node creation operation performed by the user, detect a node creation interface display instruction for the target node. At this time, the target node creation interface may be the root node creation interface indicated by the root node creation operation. Optionally, the node configuration interface of the electronic device may include a root node creation button. In this case, the user may perform a click operation (such as a click operation performed through a touch screen or a left-click operation performed through a mouse, etc.) or a long press operation (i.e., an operation in which the pressing duration is greater than a preset pressing duration threshold, such as a long press operation performed through a touch screen or a left-click operation performed through a mouse, etc.) on the root node creation button to implement the root node creation operation, thereby displaying the target node creation interface, such as Figure 2a It should be noted that Figure 2a The target creation node interface is only shown by way of example, and the embodiments of the present invention do not limit this. For example, the target creation node interface may not be displayed in the form of a pop-up window, but may cover the entire interface (i.e., be displayed in full screen mode). For another example, the target creation node interface may also be displayed by clicking on an add data node button, and so on.
[0040] Optionally, the preset pressing duration threshold may be set based on experience or actual needs, which is not limited in the embodiment of the present invention.
[0041] In another embodiment, the user may perform an add data node operation. In this case, the electronic device may use the data node to be generated as the target node, and in response to the add data node operation performed by the user, detect a node creation interface display instruction for the target node. In this case, the target node creation interface may be the add data node interface indicated by the add data node operation. Optionally, the electronic device may display the node entry display area of the node to be entered in response to the node entry operation performed by the user for the node to be entered, such as Figure 2bAs shown; Optionally, the user may perform a click operation or a long press operation on the node to be entered to implement a node entry operation on the node to be entered; Optionally, the node to be entered may be a root node or a child node, so that the child nodes or data points in the node to be entered may be displayed when a node entry operation on the node to be entered is detected. Furthermore, the node entry display area may include an add data node button. In this case, the user may perform a click operation or a long press operation on the add data node button to implement the add data node operation. It should be understood that the data node to be generated is a child node of the node to which the node entry display area belongs. It should be noted that Figure 2b The node entering the display area is only shown by way of example, and the embodiments of the present invention do not limit this; for example, when a node includes at least one child node, the node entering the display area of the corresponding node may include an add data node button but not an add data point button; for another example, when a node includes at least one data point, the node entering the display area of the corresponding node may include each data point in the corresponding node, and the node entering the display area of the corresponding node may include an add data point button but not an add data node button, and so on.
[0042] Optionally, the interface for creating a root node and the interface for adding a data node may be the same or different, and the embodiment of the present invention does not limit this. Exemplarily, the interface for creating a root node may include, but is not limited to: a node name setting area (for setting a node name), a node description setting area (for setting a node description), and a device interface setting area (for setting the interface configuration result of the node), etc.; optionally, the interface for adding a data node may include, but is not limited to, a node name setting area, a node description setting area, and a device interface setting area, or the interface for adding a data node may not include a device interface setting area (at this time, the interface configuration results of all child nodes under a root node may be defaulted to the interface configuration results of the corresponding root node, that is, the electronic device may directly use the interface configuration result of a root node as the interface configuration result of each child node under the corresponding root node), etc.
[0043] Optionally, the node entry display area of a node may include the node display data of each child node in the corresponding node, and the node display data of a child node may include but is not limited to: the interface configuration indication mark of the corresponding child node (which can be used to indicate whether the interface configuration result has been configured), the node description, and the node operation area, etc., which are not limited in the embodiment of the present invention; or, the node entry display area of a node may include the data point display data of each data point in the corresponding node, and the data point display data of a data point may include but is not limited to: the data point interface configuration indication mark, the data point mark, the data point description, and the data point operation area, etc., which are not limited in the embodiment of the present invention. Optionally, the interface configuration indication mark of a node can be a node configured interface mark (which can be used to indicate that the corresponding node has been configured with an interface configuration result) or a node unconfigured interface mark (which can be used to indicate that the corresponding node has not been configured with an interface configuration result), etc.; Optionally, the data point interface configuration indication mark of a data point can be a data point configured interface mark (which can be used to indicate that the corresponding data point has been configured with an interface configuration result) or a data point unconfigured interface mark (which can be used to indicate that the corresponding data point has not been configured with an interface configuration result), etc. Optionally, the node configured interface identifier, the node unconfigured interface identifier, the data point configured interface identifier, and the data point unconfigured interface identifier can all be set according to experience or according to actual needs, and the embodiments of the present invention are not limited to this.
[0044] Optionally, a node operation area or a data point operation area may include an edit button and / or a delete button. For ease of explanation, the node operation area is used as an example for explanation below. Then correspondingly, when the node operation area includes an edit button, the user can perform a node editing operation in the node operation area of the node to be edited, and the electronic device can respond to the node editing operation detected in the node operation area of the node to be edited, and display the editing interface of the node to be edited, thereby responding to the confirmation editing operation detected in the editing interface of the node to be edited (that is, after the user edits the data in the editing interface, the confirmation editing operation is performed on the edited data, so that the electronic device responds to the confirmation editing operation detected in the editing interface of the node to be edited) to update the node to be edited according to the edited data indicated by the confirmation editing operation, such as using the node name in the edited data indicated by the confirmation editing operation to update the node name of the node to be edited, and so on. Correspondingly, when the node operation area includes a delete button, the user can perform a node deletion operation in the node operation area of the node to be deleted (such as a click operation or a long press operation on the delete button, etc.), then the electronic device can respond to the node deletion operation detected in the node operation area of the node to be deleted to delete the node to be deleted, and so on.
[0045] S102, in response to a target creation node operation detected in a target creation node interface, a target node is generated, the interface configuration result of the target node is a device interface in a device interface set, and the interface configuration results of child nodes and / or data points under a node are initialized to the interface configuration results of the corresponding node.
[0046] Among them, a node may include at least one child node or at least one data point; it should be noted that the node and the data point cannot be in the same node. It should be understood that the child nodes under a node may include all child nodes in the corresponding node (i.e., the first-layer child nodes under the corresponding node), all child nodes in each child node of the corresponding node (i.e., the second-layer child nodes under the corresponding node), ..., all leaf nodes under the corresponding node (i.e., the last-layer child nodes under the corresponding node), and so on; optionally, the data points under a node include all data points in each leaf node under the corresponding node. Optionally, the interface configuration results of the child nodes and / or data points under a root node can be initialized to the interface configuration results of the corresponding root node, that is, the electronic device can default the interface configuration results of each child node and / or each data point under a root node to the interface configuration results of the corresponding root node; wherein, an interface configuration result corresponds to a device interface, that is, it can be defaulted that the child nodes and / or data points under a root node are all under the device interface corresponding to the interface configuration result of the corresponding root node.
[0047] Optionally, the user can input target node indication data in the target node creation interface, that is, perform the target node indication data input operation in the target node creation interface to input target node indication data in the target node creation interface, and one node indication data includes at least one of the following: a node name, a node description, and an interface configuration result, etc., that is, the user can set each setting area in the target node creation interface respectively to realize the configuration of the target node indication data, and one node indication data is used to set the corresponding node, that is, the target node can be generated by the target node indication data; further, after configuring the target node indication data (that is, after performing the target node indication data input operation), the user can perform a target node creation operation for the target node indication data in the target node creation interface, so that the electronic device responds to the target node creation operation detected in the target node creation interface, thereby determining the target node indication data indicated by the target node creation operation, that is, determining the interface configuration result indicated by the target node creation operation, etc., to generate a target node based on the target node indication data. Exemplarily, the node name in the target node indication data may be used as the node name of the target node, and the node description in the target node indication data may be used as the node description of the target node; accordingly, the interface configuration result in the target node indication data may be used as the interface configuration result of the target node, or, when the target node indication data does not include the interface configuration result, the node configuration result of the root node or parent node to which the target node belongs may be used as the interface configuration result of the target node, and so on.
[0048] In an embodiment of the present invention, when the target creation node interface includes a device interface setting area, the interface configuration result set in the device interface setting area can be used as the interface configuration result indicated by the target creation node operation, that is, the interface configuration result set in the device interface setting area can be added to the target node indication data, so that the target node indication data can include the interface configuration result. Optionally, the device interface setting area can be a drop-down option area, that is, the user can perform a device interface identification expansion operation (such as a click operation or a long press operation, etc.) on the device interface setting area, so that the electronic device responds to the device interface identification expansion operation and displays the device interface identification of each device interface in the device interface set. In this case, the user can perform a selection operation on the device interface identification of each device interface in the device interface set, so that the electronic device responds to the selection operation and uses the device interface indicated by the selected device interface identification as the interface configuration result input into the device interface setting area. Optionally, the device interface identification of a device interface can be a device name, or a device number, etc., which is not limited in the embodiment of the present invention. Optionally, when the target creation node interface is an add data node interface, and the add data node interface includes a device interface setting area, the electronic device can use the interface configuration results of the corresponding root node or parent node to automatically fill in the device interface setting area in the add data node interface to quickly configure the interface configuration results in the device interface setting area.
[0049] Optionally, the target creation node interface may include a creation button (such as a save button or a node configuration completion button, etc.). In this case, the user may perform a click operation or a long press operation on the creation button to implement the target creation node operation in the target creation node interface, so that the electronic device can detect the target creation node operation in the target creation node interface to respond to the target creation node operation detected in the target creation node interface.
[0050] S103, when a data point creation interface display instruction for a target data point is detected, a target data point creation interface corresponding to the target data point is displayed.
[0051] Optionally, the target data point may be any data point, which is not limited in this embodiment of the present invention.
[0052] In one embodiment, the node entry display area of a node may include an add data point button. In this case, the user may perform a click operation or a long press operation on the add data point button in the node entry display area of any node. Then, the electronic device may use the data point to be generated in any node as the target data point (that is, the target data point can be a data point in any node at this time), and detect the creation of a data point interface display instruction for the target data point.
[0053] In another embodiment, the user can perform a long press operation on any node or right-click any node with a mouse, etc., so that the electronic device detects the node content adding operation performed by the user and displays a node content adding pop-up window of any node. The node content adding pop-up window of a node may include an add data point option and / or an add data node option; based on this, the user can perform a selection operation on the add data point option, so that the electronic device uses the data point to be generated in any node as the target data point, and detects the display instruction of the create data point interface for the target data point.
[0054] S104, in response to a target creation data point operation detected in a target creation data point interface, a target data point is generated, one data point is located in a node, and one root node corresponds to a control system; wherein, the interface configuration result of the target data point is determined based on the interface configuration result of the node where the target data point is located, and the root nodes corresponding to the data points under each controlled device in at least one controlled device controlled by a control system are all: the root nodes corresponding to the corresponding control system.
[0055] Among them, a data point creation interface can be used to configure the data point indication data of the corresponding data point. The data point indication data of a data point (also called data attribute) may include the data point information of the corresponding data point, the data point data type and the data point interface configuration. Optionally, the data point interface configuration can be empty, that is, no further interface configuration adjustment is performed on the corresponding data point, so that the initial interface configuration result of the corresponding data point (i.e., the interface configuration result of the root node or parent node to which the corresponding data point belongs) is used as the final interface configuration result of the corresponding data point. Optionally, a data point creation interface may include but is not limited to: a data point name setting area (which can be used to set the data point name), a data point description setting area (which can be used to set the data point description), a data storage type setting area (which can be used to set the data storage type), whether a data point expression option setting area is required (which can be used to set whether a data point expression is required), a data point data type setting area (which can be used to set the data point data type), an alarm option setting area (which can be used to set whether to configure alarm status data), a conversion expression option setting area (which can be used to set whether to configure a conversion expression) and an interface configuration option setting area (which can be used to set whether to further perform interface configuration, that is, whether to adjust the initial interface configuration result of the corresponding data point), etc., such as Figure 3 As shown; the embodiment of the present invention does not limit this. It should be understood that different data points in the same node have different data point names. It should be noted that, Figure 3The data point creation interface is only shown by way of example, and the embodiments of the present invention do not limit this; for example, the data storage type setting area may also include a drop-down option for selecting the corresponding data storage type; for another example, the data point expression configuration area may also include data point expression examples to guide users to correctly input data point expressions, and so on.
[0056] Optionally, the user can input the target data point indication data in the target data point creation interface, that is, perform the target data point indication data input operation in the target data point creation interface, so as to input the target data point indication data in the target data point creation interface, and one data point indication data includes at least one of the following: a data point name, a data point description, a data storage type, an alarm status data, a data point expression, a conversion expression, and an interface adjustment data, etc., that is, the user can set each setting area in the target data point creation interface respectively to realize the configuration of the target data point indication data, and one data point indication data can be used to set the corresponding data point, that is, the target data point can be generated by the target data point indication data. Further, after configuring the target data point indication data (that is, after performing the target data point indication data input operation), the user can perform the target data point creation operation for the target data point indication data in the target data point creation interface, so that the electronic device responds to the target data point creation operation detected in the target data point creation interface, thereby determining the target data point indication data indicated by the target data point creation operation, such as determining the data point name indicated by the target data point creation operation, etc., so as to generate a target node based on the target data point indication data. Exemplarily, the data point name in the target data point indication data can be used as the data point name of the target data point, the data point description in the target data point indication data can be used as the data point description of the target data point, the data storage type in the target data point indication data can be used as the data storage type of the target data point, or the interface adjustment data in the target data point indication data and the interface configuration result to be adjusted of the target data point can be used to construct the interface configuration result of the target data point, and so on.
[0057] Optionally, the target creation data point interface may include a creation button (such as a save button or a data point configuration completion button, etc.). In this case, the user may perform a click operation or a long press operation on the creation button in the target creation data point interface to implement the target creation data point operation in the target creation data point interface, so that the electronic device can detect the target creation data point operation in the target creation data point interface to respond to the target creation data point operation detected in the target creation data point interface.
[0058] Optionally, a control system can be a single-station control (PLC, Programmable Logic Controller, also known as a programmable logic controller), a distributed control system (DCS, Distributed Control System, also known as a distributed control system), or a device acquisition and monitoring control system (SCADA, Supervisory Control And Data Acquisition), etc.; the embodiment of the present invention is not limited to this. Optionally, a control system may include one or more control devices (such as a control system may include a PCL, etc.), and the embodiment of the present invention is not limited to this. Optionally, a control system can be used to control at least one controlled device (such as fan 1, fan 2, etc.), and the value of the data point under any controlled device can be sent to the electronic device through the control system used to control any controlled device, that is, the control device can collect the value of each data point under the corresponding controlled device and send it to the electronic device; optionally, the control device can also be called a data acquisition device.
[0059] In other embodiments, the electronic device may also include an Excel (a type of spreadsheet software) module. In this case, the data point table to be imported can be uploaded through the Excel module, thereby realizing the creation of each data point, and so on.
[0060] It should be noted that a leaf node in a tree structure (also referred to as a tree data point structure, i.e., a root node can be a root node in a tree data point structure) where a root node is located can correspond to a controlled device, and at least one data point in a leaf node can be at least one data point under the controlled device corresponding to the corresponding leaf node, that is, a leaf node in a tree data point structure can include each data point under the controlled device corresponding to the corresponding leaf node. Among them, the root node corresponding to the data point under each controlled device in at least one controlled device controlled by a control system can refer to the root node to which the corresponding data point belongs.
[0061] When a display instruction for creating a node interface for a target node is detected, the embodiment of the present invention can display a target creation node interface corresponding to the target node; and in response to the target creation node operation detected in the target creation node interface, the target node is generated, and the interface configuration result of the target node is a device interface in the device interface set, and the interface configuration result of the sub-nodes and / or data points under a node is initialized to the interface configuration result of the corresponding node. Correspondingly, when a display instruction for creating a data point interface for a target data point is detected, a target creation data point interface corresponding to the target data point can be displayed; and in response to the target creation data point operation detected in the target creation data point interface, the target data point is generated, a data point is located in a node, and a root node corresponds to a control system; wherein the interface configuration result of the target data point is determined based on the interface configuration result of the node where the target data point is located, and the root nodes corresponding to the data points under each controlled device in at least one controlled device controlled by a control system are all: the root node corresponding to the corresponding control system. It can be seen that the embodiment of the present invention can realize the initialization of the interface configuration results of the sub-nodes and / or data points under the node by configuring the interface of the node, thereby realizing the rapid configuration of the interface configuration results of the data point; based on this, the embodiment of the present invention can conveniently perform interface configuration to effectively improve the interface configuration efficiency.
[0062] Based on the above description, the embodiment of the present invention further proposes a more specific interface configuration method, which can be executed by the electronic device (terminal or server) mentioned above; or, the interface configuration method can be executed by the terminal and the server together. For the convenience of explanation, the following description will be given by taking the electronic device executing the interface configuration method as an example; please refer to Figure 4 , the interface configuration method may include the following steps S401-S406:
[0063] S401, when a new interface display instruction is detected, display a new interface.
[0064] Among them, the new interface interface can be used to create a new device interface; optionally, one device interface can correspond to one control system.
[0065] In an embodiment of the present invention, an electronic device may display a device configuration interface in response to a device configuration (also referred to as a device interface configuration) interface display operation performed by a user; illustratively, a user may perform a click operation or a long press operation on a device configuration button in a function list display area to implement a device configuration interface display operation, etc. Optionally, the device configuration interface may include at least one of the following: a new interface button, a view creation record button, a view restart record button, and a restart button, an edit button, and a delete button for each device interface in a device interface set, etc., which is not limited in the embodiment of the present invention; based on this, the device configuration interface may be used to support at least one of the functions of creating a new device interface, editing a device interface, deleting a device interface, restarting a device interface, viewing a creation record, and viewing a restart record.
[0066] Furthermore, when the device configuration interface includes a new interface button, the user can click or long press the new interface button to implement a new interface display operation, so that the electronic device detects the new interface display instruction.
[0067] S402, in response to an interface creation operation detected in a new interface interface, adding a device interface indicated by the interface creation operation to a device interface set; wherein one device interface includes an interface protocol type corresponding to a control system.
[0068] Optionally, the newly created interface may include but is not limited to: a device number setting area (which can be used to set the device number, that is, it can be used to set the device number of the corresponding control system), an IP (Internet Protocol, a protocol for interconnection between networks, also known as a network protocol) address setting area (which can be used to set the IP address of the corresponding control system, that is, it can be used to set the IP address of each control device in the corresponding control system), a device name setting area (which can be used to set the device name of the corresponding control system), a port setting area (which can be used to set the port of the corresponding control system, that is, it can be used to set the port of each control device in the corresponding control system) and an interface protocol type setting area (which can be used to set the interface protocol type corresponding to the corresponding control system), etc. Figure 5As shown; the embodiment of the present invention does not limit this. Exemplarily, the new interface interface may also include a function code setting area for function code setting, etc. Correspondingly, a device interface may include but is not limited to: a control system's device number, IP address, port, device name, and the interface protocol type corresponding to the corresponding control system, etc., and the embodiment of the present invention does not limit this; Exemplarily, in some embodiments, a device interface may also include length, function code, and data area, etc. Optionally, the interface protocol type corresponding to a control system may be ModbusTCP protocol (an application layer message transmission protocol), IEC104 protocol (an international standard widely used in power, urban rail transit and other industries), EtherNet IP (an industrial application layer protocol for industrial automation applications) or OPC (OLE for Process Control, an industrial standard, including a complete set of interfaces, properties and methods for process control and manufacturing automation systems) and other general protocols (adaptable to a variety of mainstream PLCs), or a custom interface protocol, etc.; the embodiment of the present invention does not limit this. Optionally, Figure 5 The newly created interface is only exemplarily shown, and the embodiment of the present invention does not limit this; for example, the newly created interface can also be displayed in full screen instead of in a pop-up window; for another example, the newly created interface can also include an IP address input prompt and / or a port input prompt, etc. Optionally, the IP address input prompt and the port input prompt can be set according to experience or according to actual needs, and the embodiment of the present invention does not limit this; exemplarily, the IP address input prompt can be: the data format is "IP address|IP address", such as 127.0.0.1|192.168.0.125; correspondingly, the port input prompt can be: the data format is "Port|Port", such as 8080|8081, etc.
[0069] Optionally, the user can enter the newly created interface indication data in the newly created interface interface, that is, perform the newly created interface indication data input operation in the newly created interface interface, so as to enter the newly created interface indication data in the newly created interface interface, and one interface indication data may include at least one of the following: a device number, IP address, port, device name of a control system, and the interface protocol type corresponding to the corresponding control system, that is, the user can set each setting area in the newly created interface interface respectively to realize the setting of the newly created interface indication data, and one interface indication data can be used to set the corresponding device interface, that is, the device interface indicated by the interface creation operation can be generated by the newly created interface indication data; then correspondingly, after entering the newly created interface indication data, the user can perform the interface creation operation for the newly created interface indication data in the newly created interface interface, so that the electronic device responds to the interface creation operation detected in the newly created interface interface, thereby determining the newly created interface indication data indicated by the interface creation operation, so as to generate the device interface indicated by the interface creation operation based on the newly created interface indication data. Exemplarily, the device name in the newly created interface indication data can be used as the device name of the device interface indicated by the interface creation operation, and so on. Optionally, the new interface interface may include a save button and / or a cancel button; based on this, after entering the new interface indication data, the user can click or long press the save button in the new interface interface to implement the above-mentioned interface creation operation.
[0070] Optionally, each device interface in the device interface set may be displayed in the device configuration interface in the form of a list; that is, the electronic device may display each device interface in the device interface set in the device configuration interface in the form of a list, thereby achieving visual management of the device interface set.
[0071] S403, when a node creation interface display instruction for a target node is detected, a target node creation interface corresponding to the target node is displayed.
[0072] S404, in response to a target creation node operation detected in a target creation node interface, a target node is generated, the interface configuration result of the target node is a device interface in a device interface set, and the interface configuration results of child nodes and / or data points under a node are initialized to the interface configuration results of the corresponding node.
[0073] S405, when a data point creation interface display instruction for a target data point is detected, a target data point creation interface corresponding to the target data point is displayed.
[0074] S406, in response to a target creation data point operation detected in a target creation data point interface, generates a target data point, wherein one data point is located in one node, and one root node corresponds to one control system; wherein the interface configuration result of the target data point is determined based on the interface configuration result of the node where the target data point is located, and the root nodes corresponding to the data points under each controlled device in at least one controlled device controlled by a control system are all: the root nodes corresponding to the corresponding control system.
[0075] In the embodiment of the present invention, the target data point can be generated by the target data point indication data indicated by the target creation data point operation, and one data point indication data includes a data storage type of a data point, and one data storage type corresponds to a data point interface configuration format. Optionally, a data storage type can be a display point, a control point, or a calculation point, etc., which is not limited in the embodiment of the present invention; wherein, the display point can be configured with the data point word address in the data point interface configuration (which can be used to indicate the word number of the data point, such as the number of words) and the data point Bit address, the control point can be configured with the data point word address in the data point interface configuration; the calculation point can be configured with the data point expression.
[0076] Based on this, when the electronic device detects the data point interface configuration adjustment area display instruction for the target data point, it can display the target data point interface configuration adjustment area corresponding to the target data point according to the data storage type of the target data point; optionally, when the target data point creation interface or the target data point data point editing interface includes an interface configuration option setting area, the user can select the interface configuration option setting area, so that the electronic device can detect the data point interface configuration adjustment area display instruction for the target data point; for example, Figure 3As shown, assuming that the data storage type of the target data point is a display point, the target data point interface configuration adjustment area may include a data point word address setting area and a data point bit address setting area. Then, accordingly, the electronic device may respond to the target data point interface configuration adjustment operation detected in the target data point interface configuration adjustment area, based on the interface adjustment data indicated by the target data point interface configuration adjustment operation and the interface configuration result of the node where the target data point is located, determine the interface configuration result of the target data point; optionally, the user may input interface adjustment data in the target data point interface configuration area, so that when the electronic device detects a target data point creation operation or a data point editing confirmation operation for the target data point (such as a click operation or a long press operation on a confirmation button in the data point editing interface of the target data point, etc.), the target data point interface configuration adjustment operation may be detected in the target data point interface configuration adjustment area, and the embodiment of the present invention does not limit this. Among them, the data point editing interface of the target data point may be displayed when the user's editing operation on the target data point is detected. Optionally, when determining the interface configuration result of the target data point based on the interface adjustment data indicated by the interface configuration adjustment operation of the target data point and the interface configuration result to be adjusted of the target data point, the interface adjustment data and the interface configuration result to be adjusted of the target data point may be integrated to obtain the interface configuration result of the target data point; or, the interface adjustment data may be used to update the interface configuration result to be adjusted, etc. Optionally, the interface configuration result to be adjusted may be the initial interface configuration result of the target data point (i.e., the node configuration result of the root node or parent node to which the target data point belongs), or may be the interface configuration result of the target data point before the data point edit confirmation operation is performed on the target data point, etc.
[0077] Optionally, when the target data point creation interface or the target data point data point editing interface includes whether a data point expression option setting area is required, the user can select whether a data point expression option setting area is required, so that the electronic device can detect the data point expression configuration area display instruction for the target data point. Based on this, when the electronic device detects the data point expression configuration area display instruction for the target data point, it can display the target data point expression configuration area corresponding to the target data point. A data point expression configuration area supports the configuration of a data point expression. A data point expression configuration area is used to indicate the calculation method of the corresponding data point (such as the value of a data point can be calculated by the average of several values); Optionally, a setting area (such as a target data point expression setting area) can be displayed in the form of a pop-up window, or it can be displayed in the target data point creation interface, and the embodiment of the present invention is not limited to this. Accordingly, the electronic device may generate a data point expression for the target data point in response to a target data point expression configuration operation detected in the target data point expression configuration area, that is, the data point expression indicated by the target data point expression configuration operation may be used as the data point expression for the target data point; illustratively, the user may enter a data point expression in the target data point expression configuration area and click the OK button in the target data point expression configuration area to implement the above-mentioned target data point expression configuration operation, thereby using the data point expression entered in the target data point expression configuration area as the data point expression indicated by the target data point expression configuration operation; optionally, the electronic device may detect a target data point expression configuration operation when detecting a target data point creation operation or a data point edit confirmation operation for the target data point, and so on, which is not limited to the embodiments of the present invention.
[0078] Optionally, the target data point may be generated by the target data point indication data indicated by the target data point creation operation, and one data point indication data includes a data point data type of a data point, and one data point data type corresponds to an alarm setting format. Optionally, a data point data type may be a digital type or a value type, etc., which is not limited in the embodiment of the present invention. Based on this, when the electronic device detects the alarm setting area display instruction for the target data point, it may display the target alarm setting area corresponding to the target data point according to the data point data type of the target data point. Optionally, when the target data point creation interface or the data point editing interface of the target data point includes an alarm option setting area, the user may select the alarm option setting area, so that the electronic device detects the alarm setting area display instruction for the target data point; or, after the user selects the alarm option setting area, the electronic device may display the alarm editing area (which may be displayed according to the data point data type of the target data point, that is, the alarm editing areas corresponding to different data point data types may be different), and the user may click or long press the add alarm button or the edit button in the alarm editing area, so that the electronic device detects the alarm setting area display instruction for the target data point. Then, accordingly, the electronic device can generate the alarm status data of the target data point in response to the target alarm setting operation detected in the target alarm setting area, and the alarm status data of the target data point can be used to perform alarm monitoring on the target data point, and the alarm status data of the target data point can be used to indicate one or more alarm scenarios of the target data; illustratively, when the value of the target data point satisfies a certain alarm scenario indicated by the alarm status data of the target data point, an alarm prompt can be given according to the corresponding alarm scenario. Optionally, the user can enter the alarm status data of the target data point in the target alarm setting area and click the completion button (such as a save button or an OK button, etc.) in the target alarm setting area to implement the above-mentioned target alarm setting operation; optionally, when the electronic device detects the target creation data point operation or the data point editing confirmation operation for the target data point, the target alarm setting operation can be detected in the target alarm setting area, and so on, which is not limited in the embodiment of the present invention. Optionally, the number of target alarm setting operations can be one or more, that is, the number of alarm status data of the target data point can be one or more, which is not limited in the embodiment of the present invention.
[0079] For example, when the data point data type of the target data point is a digital type, the alarm editing area may include an add alarm button and an edit button, etc.; optionally, the target alarm setting area may include but is not limited to an alarm description setting area, an alarm state (i.e., alarm mode) setting area, a start value setting area, an end value setting area, a level setting area, and an alarm setting area, etc. Figure 6aAs shown; wherein, the starting value and the ending value in an alarm status data can be used to describe an alarm value interval. For example, when the whether alarm setting area is set to yes and the value of the target data point falls within the alarm value interval, an alarm can be issued according to the corresponding alarm status and level. For another example, when the data point data type of the target data point is a value type, the alarm editing area may include an edit button. At this time, the target creation data point interface may also include a value description configuration option setting area and when the value description configuration option setting area is selected, the target creation data point interface may also include a value description configuration area; optionally, the target alarm setting area may include but is not limited to an alarm status setting area, an alarm level setting area, and an whether alarm setting area, etc. Figure 6b As shown; For example, the value description configuration area can be used to configure a description of a value such as 1 or 0, and a value can correspond to an alarm status data. For example, when the value is 1 and the alarm information in the corresponding alarm status data is yes, an alarm can be issued according to the corresponding alarm status when the value of the target data is 1, and so on. It should be noted that Figure 6a and Figure 6b All of them exemplarily represent the target alarm setting area, which is not limited in the embodiment of the present invention; for example, the target alarm setting area can also be displayed in full screen instead of in a pop-up window; for another example, the target alarm setting area can also include an alarm status input prompt, etc. Optionally, the alarm status input prompt can be set according to experience or according to actual needs, which is not limited in the embodiment of the present invention.
[0080] Optionally, when the target creation data point interface or the target data point data point editing interface includes a conversion expression option setting area, the user may select the conversion expression option setting area so that the electronic device detects a conversion expression configuration area display instruction for the target data point. Based on this, the electronic device may display the target conversion expression configuration area corresponding to the target data point when detecting a display instruction for the conversion expression configuration area for the target data point. A conversion expression configuration area supports a conversion expression for configuring a data point. The conversion expression of a data point can be used to indicate the data conversion format of the corresponding data point (such as when the data point is electricity consumption, the conversion expression of the data point can be used to indicate the conversion of the acquired meter value into electricity consumption, thereby obtaining the value of the corresponding data point, etc.); optionally, the user may enter the conversion expression of the target data point in the target conversion expression configuration area, and click or long press the completion button (such as a save button or an OK button, etc.) to implement the target conversion expression configuration operation; optionally, the electronic device may detect the target conversion expression configuration operation in the target conversion expression configuration area when detecting a target creation data point operation, and may also detect the target conversion expression configuration operation in the target conversion expression configuration area when detecting a data point edit confirmation operation for the target data point, etc. The embodiments of the present invention are not limited to this. Accordingly, the electronic device may generate a conversion expression for the target data point in response to a target conversion expression configuration operation detected in the target conversion expression configuration area. That is, the conversion expression indicated by the target conversion expression configuration operation may be used as the conversion expression for the target data point.
[0081] Optionally, the user may also perform a device data model configuration operation for the target control system, so that the electronic device responds to the device data model configuration operation for the target control system, generates a device data model for the target control system, and adds the device data model for the target control system to the configured device data model set. Optionally, when performing a device data model configuration operation for the target control system, the user may configure each device node in the device data model of the target control system, so that the nodes in the device data model of the target control system correspond one-to-one with the nodes in the tree structure where the corresponding root node of the target control system is located, then the controlled device corresponding to a leaf node in the device data model of the target control system is the same as the controlled device corresponding to the corresponding leaf node in the tree structure where the corresponding root node of the target control system is located, at this time, the corresponding node can be determined from the corresponding device data model through the device attribute of the controlled device, so as to locate the node in the tree structure where the corresponding root node is located, thereby obtaining the value of the data point in the located node, and so on. Optionally, the embodiment of the present invention may also perform function definition and / or event definition on the controlled device, and the embodiment of the present invention is not limited to this. Optionally, the target control system may be any control system, and the embodiment of the present invention is not limited to this.
[0082] Optionally, child nodes in the device data model can inherit the device attributes of the parent node. Optionally, the device attributes of a controlled device may include, but are not limited to: basic information (such as device code, device description, device model, etc.), associated information (such as the product, control system, region, building, etc.), device data point information (such as current or voltage, etc.), label information (such as device label, device group label, device tree label, etc.), asset information (such as asset status, affiliated unit, production date, installation date, warranty period, usage time, etc.), etc.; the embodiment of the present invention is not limited to this. Exemplarily, the device attributes of a controlled device may be as follows: Figure 7 As shown; it should be noted that Figure 7 The device attributes of a controlled device are merely exemplarily shown, and the embodiments of the present invention do not limit this; for example, the device attributes may also include a device model or usage time, and so on.
[0083] Furthermore, the electronic device may also respond to the device data model binding operation for the target root node, and use the device data model indicated by the device data model binding operation as the bound device data model of the target root node, one device data model corresponds to one control system, and one device data model is used to indicate the device attributes of each controlled device in at least one controlled device controlled by the corresponding control system; wherein the device data model indicated by the device data model binding operation is a configured device data model in the configured device data model set. Optionally, the target root node may be any root node, which is not limited in the embodiment of the present invention. Optionally, the user can perform a long press operation on the target root node so that the electronic device detects the display instruction of the binding device editing menu for the target root node, or the user can perform a right-click operation on the target root node with a mouse so that the electronic device detects the display instruction of the binding device editing menu for the target root node, etc. Based on this, the electronic device can display the binding device editing menu, and the binding device editing menu can include the model identifier (such as model name or model number, etc.) of each configured device data model in the configured device data model set, then the user can perform a selection operation on the binding device editing menu to select a model identifier of a configured device data model from the binding device editing menu, thereby implementing the device data model binding operation for the target root node, etc. Optionally, the user can also perform the device data model binding operation for the target root node on the configuration page, which is not limited in the embodiment of the present invention.
[0084] In summary, it can be seen that after binding the device data model to each root node, the embodiment of the present invention can directly display the real-time information of the corresponding controlled device (which may include the real-time value of each data point under the corresponding controlled device) through device attributes, etc. In other embodiments, the device data model may not be bound to each root node, and the real-time information of the corresponding controlled device can be displayed through node information (such as node name, etc.), etc.; the present invention is not limited to this.
[0085] The embodiment of the present invention can display a new interface interface when a new interface interface display instruction is detected; and in response to the interface creation operation detected in the new interface interface, add the device interface indicated by the interface creation operation to the device interface set; wherein a device interface includes an interface protocol type corresponding to a control system. Then, when a node creation interface display instruction for a target node is detected, a target creation node interface corresponding to the target node can be displayed; and in response to the target creation node operation detected in the target creation node interface, a target node is generated, and the interface configuration result of the target node is a device interface in the device interface set, and the interface configuration results of the subnodes and / or data points under a node are initialized to the interface configuration results of the corresponding node. Furthermore, when a creation data point interface display instruction for a target data point is detected, a target creation data point interface corresponding to the target data point can be displayed; and in response to the target creation data point operation detected in the target creation data point interface, a target data point is generated, one data point is located in one node, and one root node corresponds to one control system; wherein, the interface configuration result of the target data point is determined based on the interface configuration result of the node where the target data point is located, and the root nodes corresponding to the data points under each controlled device in at least one controlled device controlled by a control system are all: the root nodes corresponding to the corresponding control system. It can be seen that the embodiment of the present invention can determine the initialization interface configuration results of all subnodes and all data points under a node through the creation of structured nodes, so as to quickly determine the interface configuration result of each data point. That is to say, the embodiment of the present invention can conveniently perform interface configuration to effectively improve the interface configuration efficiency, that is, effectively improve the interface configuration efficiency of different data points; and, the embodiment of the present invention constructs a visual interface configuration method, which can simplify user operations and make operations more intuitive; in addition, the visual interface configuration method driven by the device data model can be realized through the construction and binding of the device data model, thereby constructing a unified and customizable device data model design and management capability, which can quickly meet the information construction of the enterprise, that is, the embodiment of the present invention can meet the device data model design and management capabilities of the database design paradigm, and can effectively realize the rapid and customized development of the device data model, thereby constructing a data management process, effectively ensuring the standardization of the device data model, and facilitating the sharing of information between different systems.
[0086] Based on the description of the above-mentioned related embodiments of the interface configuration method, the embodiment of the present invention further proposes an interface configuration device, which may be a computer program (including program code) running in an electronic device; Figure 8 As shown, the interface configuration device may include a display unit 801 and a processing unit 802. The interface configuration device may execute Figure 1 or Figure 4The interface configuration method shown, that is, the interface configuration device can run the above-mentioned unit:
[0087] The display unit 801 is used to display a target node creation interface corresponding to the target node when a node creation interface display instruction for the target node is detected;
[0088] A processing unit 802 is configured to generate the target node in response to a target creation node operation detected in the target creation node interface, wherein the interface configuration result of the target node is a device interface in the device interface set, and the interface configuration results of the child nodes and / or data points under a node are initialized to the interface configuration results of the corresponding node;
[0089] The display unit 801 is further configured to display a target data point creation interface corresponding to the target data point when a data point creation interface display instruction for the target data point is detected;
[0090] The processing unit 802 is also used to generate the target data point in response to a target creation data point operation detected in the target creation data point interface, where one data point is located in one node, and one root node corresponds to one control system; wherein the interface configuration result of the target data point is determined based on the interface configuration result of the node where the target data point is located, and the root nodes corresponding to the data points under each controlled device in at least one controlled device controlled by a control system are all: the root nodes corresponding to the corresponding control system.
[0091] In one implementation, the display unit 801 may also be used to:
[0092] When a new interface display instruction is detected, a new interface display is displayed;
[0093] The processing unit 802 may also be used to:
[0094] In response to an interface creation operation detected in the new interface interface, a device interface indicated by the interface creation operation is added to the device interface set; wherein one device interface includes an interface protocol type corresponding to a control system.
[0095] In another embodiment, the target data point is generated by the target data point indication data indicated by the target creation data point operation, one data point indication data includes a data storage type of a data point, and one data storage type corresponds to a data point interface configuration format; the display unit 801 can also be used to:
[0096] When a data point interface configuration adjustment area display instruction for the target data point is detected, displaying a target data point interface configuration adjustment area corresponding to the target data point according to the data storage type of the target data point;
[0097] The processing unit 802 may also be used to:
[0098] In response to a target data point interface configuration adjustment operation detected in the target data point interface configuration adjustment area, an interface configuration result of the target data point is determined based on interface adjustment data indicated by the target data point interface configuration adjustment operation and the interface configuration result to be adjusted of the target data point.
[0099] In another implementation, the display unit 801 may also be used for:
[0100] When a data point expression configuration area display instruction for the target data point is detected, a target data point expression configuration area corresponding to the target data point is displayed, where one data point expression configuration area supports configuring a data point expression for one data point, and a data point expression for one data point is used to indicate a calculation method for the corresponding data point;
[0101] The processing unit 802 may also be used to:
[0102] In response to a target data point expression configuration operation detected in the target data point expression configuration area, a data point expression for the target data point is generated.
[0103] In another embodiment, the target data point is generated by the target data point indication data indicated by the target creation data point operation, one data point indication data includes a data point data type of one data point, and one data point data type corresponds to one alarm setting format; the display unit 801 can also be used to:
[0104] When an alarm setting area display instruction for the target data point is detected, a target alarm setting area corresponding to the target data point is displayed according to the data point data type of the target data point;
[0105] The processing unit 802 may also be used to:
[0106] In response to a target alarm setting operation detected in the target alarm setting area, alarm status data of the target data point is generated, and the alarm status data of the target data point is used to perform alarm monitoring on the target data point.
[0107] In another implementation, the display unit 801 may also be used for:
[0108] When a conversion expression configuration area display instruction for the target data point is detected, a target conversion expression configuration area corresponding to the target data point is displayed, where one conversion expression configuration area supports configuring a conversion expression for one data point, and a conversion expression for one data point is used to indicate a data conversion format of the corresponding data point;
[0109] The processing unit 802 may also be used to:
[0110] In response to a target conversion expression configuration operation detected in the target conversion expression configuration area, a conversion expression for the target data point is generated.
[0111] In another implementation, the processing unit 802 may also be used to:
[0112] In response to a device data model binding operation for a target root node, the device data model indicated by the device data model binding operation is used as a bound device data model of the target root node, one device data model corresponds to one control system, and one device data model is used to indicate device properties of each controlled device in at least one controlled device controlled by the corresponding control system;
[0113] The device data model indicated by the device data model binding operation is a configured device data model in a set of configured device data models.
[0114] According to one embodiment of the present invention, Figure 1 or Figure 4 Each step involved in the method shown can be Figure 8 The interface configuration shown is performed by each unit in the device. For example, Figure 1 The steps S101 and S103 shown in FIG. 1 can be both performed by Figure 8 The display unit 801 shown in FIG. 1 is executed, and steps S102 and S104 can be performed by Figure 8 The processing unit 802 shown in is executed. For example, Figure 4 The steps S401, S403 and S405 shown in FIG. 4 can be performed by Figure 8 The display unit 801 shown in FIG. 8 is executed, and steps S402, S404 and S406 can be performed by Figure 8 The processing unit 802 shown in executes, and so on.
[0115] According to another embodiment of the present invention, Figure 8Each unit in the interface configuration device shown can be separately or completely combined into one or several other units to form, or one (some) of the units can be further divided into multiple smaller units in function to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be realized by multiple units, or the functions of multiple units can be realized by one unit. In other embodiments of the present invention, any interface configuration device can also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0116] According to another embodiment of the present invention, the program can be executed by running a program on a general electronic device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 1 or Figure 4 A computer program (including program code) for each step involved in the corresponding method shown in Figure 8 The interface configuration device shown in and the interface configuration method of the embodiment of the present invention are implemented. The computer program can be recorded on a computer storage medium, for example, and loaded into the above electronic device through the computer storage medium and run therein.
[0117] When a display instruction for creating a node interface for a target node is detected, the embodiment of the present invention can display a target creation node interface corresponding to the target node; and in response to the target creation node operation detected in the target creation node interface, the target node is generated, and the interface configuration result of the target node is a device interface in the device interface set, and the interface configuration result of the sub-nodes and / or data points under a node is initialized to the interface configuration result of the corresponding node. Correspondingly, when a display instruction for creating a data point interface for a target data point is detected, a target creation data point interface corresponding to the target data point can be displayed; and in response to the target creation data point operation detected in the target creation data point interface, the target data point is generated, a data point is located in a node, and a root node corresponds to a control system; wherein the interface configuration result of the target data point is determined based on the interface configuration result of the node where the target data point is located, and the root nodes corresponding to the data points under each controlled device in at least one controlled device controlled by a control system are all: the root node corresponding to the corresponding control system. It can be seen that the embodiment of the present invention can realize the initialization of the interface configuration results of the sub-nodes and / or data points under the node by configuring the interface of the node, thereby realizing the rapid configuration of the interface configuration results of the data point; based on this, the embodiment of the present invention can conveniently perform interface configuration to effectively improve the interface configuration efficiency.
[0118] Based on the description of the above method embodiment and device embodiment, the exemplary embodiment of the present invention further provides an electronic device, including: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to enable the electronic device to perform the method according to the embodiment of the present invention when executed by the at least one processor.
[0119] Exemplary embodiments of the present invention also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present invention.
[0120] An exemplary embodiment of the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform a method according to an embodiment of the present invention.
[0121] refer to Fig. 9 , a block diagram of an electronic device 900 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0122] like Fig. 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0123] A plurality of components in the electronic device 900 are connected to the I / O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 may be any type of device capable of inputting information to the electronic device 900, and the input unit 906 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 907 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 908 may include, but is not limited to, a disk, an optical disk. The communication unit 909 allows the electronic device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0124] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above. For example, in some embodiments, the interface configuration method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. In some embodiments, the computing unit 901 may be configured to perform the interface configuration method in any other appropriate manner (e.g., by means of firmware).
[0125] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0126] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0127] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0128] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0129] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0130] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0131] Furthermore, it should be understood that what is disclosed above is only a preferred embodiment of the present invention, and certainly cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. An interface configuration method, characterized in that: include: When a node creation interface display instruction for a target node is detected, a target node creation interface corresponding to the target node is displayed; In response to a target creation node operation detected in the target creation node interface, the target node is generated, the interface configuration result of the target node is a device interface in the device interface set, and the interface configuration results of the child nodes and / or data points under a node are initialized to the interface configuration results of the corresponding node; When a data point creation interface display instruction for a target data point is detected, a target data point creation interface corresponding to the target data point is displayed; In response to a target creation data point operation detected in the target creation data point interface, the target data point is generated, one data point is located in a node, and one root node corresponds to a control system; wherein the interface configuration result of the target data point is determined based on the interface configuration result of the node where the target data point is located, and the root nodes corresponding to the data points under each controlled device in at least one controlled device controlled by a control system are all: the root nodes corresponding to the corresponding control system.
2. The method according to claim 1, characterized in that The method further comprises: When a new interface interface display instruction is detected, a new interface interface is displayed; In response to an interface creation operation detected in the new interface interface, a device interface indicated by the interface creation operation is added to the device interface set; wherein one device interface includes an interface protocol type corresponding to a control system.
3. The method according to claim 1 or 2, characterized in that: The target data point is generated by the target data point indication data indicated by the target data point creation operation, one data point indication data includes a data storage type of a data point, and one data storage type corresponds to a data point interface configuration format; the method further includes: When a data point interface configuration adjustment area display instruction for the target data point is detected, displaying a target data point interface configuration adjustment area corresponding to the target data point according to the data storage type of the target data point; In response to a target data point interface configuration adjustment operation detected in the target data point interface configuration adjustment area, an interface configuration result of the target data point is determined based on interface adjustment data indicated by the target data point interface configuration adjustment operation and the interface configuration result to be adjusted of the target data point.
4. The method according to claim 1 or 2, characterized in that: The method further comprises: When a data point expression configuration area display instruction for the target data point is detected, a target data point expression configuration area corresponding to the target data point is displayed, where one data point expression configuration area supports configuring a data point expression for one data point, and a data point expression for one data point is used to indicate a calculation method for the corresponding data point; In response to a target data point expression configuration operation detected in the target data point expression configuration area, a data point expression for the target data point is generated.
5. The method according to claim 1 or 2, characterized in that: The target data point is generated by the target data point indication data indicated by the target data point creation operation, one data point indication data includes a data point data type of a data point, and one data point data type corresponds to an alarm setting format; the method further includes: When an alarm setting area display instruction for the target data point is detected, a target alarm setting area corresponding to the target data point is displayed according to the data point data type of the target data point; In response to a target alarm setting operation detected in the target alarm setting area, alarm status data of the target data point is generated, and the alarm status data of the target data point is used to perform alarm monitoring on the target data point.
6. The method according to claim 1 or 2, characterized in that: The method further comprises: When a conversion expression configuration area display instruction for the target data point is detected, a target conversion expression configuration area corresponding to the target data point is displayed, where one conversion expression configuration area supports configuring a conversion expression for one data point, and a conversion expression for one data point is used to indicate a data conversion format of the corresponding data point; In response to a target conversion expression configuration operation detected in the target conversion expression configuration area, a conversion expression for the target data point is generated.
7. The method according to claim 1 or 2, characterized in that: The method further comprises: In response to a device data model binding operation for a target root node, the device data model indicated by the device data model binding operation is used as a bound device data model of the target root node, one device data model corresponds to one control system, and one device data model is used to indicate device properties of each controlled device in at least one controlled device controlled by the corresponding control system; The device data model indicated by the device data model binding operation is a configured device data model in a set of configured device data models.
8. An interface configuration device, characterized in that: The device comprises: A display unit, configured to display a target node creation interface corresponding to the target node when a node creation interface display instruction for the target node is detected; A processing unit, configured to generate the target node in response to a target creation node operation detected in the target creation node interface, wherein the interface configuration result of the target node is a device interface in a device interface set, and the interface configuration results of the child nodes and / or data points under a node are initialized to the interface configuration results of the corresponding node; The display unit is further configured to display a target data point creation interface corresponding to the target data point when a data point creation interface display instruction for the target data point is detected; The processing unit is also used to generate the target data point in response to a target creation data point operation detected in the target creation data point interface, wherein one data point is located in one node, and one root node corresponds to one control system; wherein the interface configuration result of the target data point is determined based on the interface configuration result of the node where the target data point is located, and the root nodes corresponding to the data points under each controlled device in at least one controlled device controlled by a control system are all: the root nodes corresponding to the corresponding control system.
9. An electronic device, characterized in that: include: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-7.
