Configuration layout method, system and device and storage medium
By obtaining device combinations from the device tree and generating the initial configuration canvas, and dynamically generating the configuration layout with user editing instructions, the problems of low development efficiency and high cost in industrial automation software development are solved, and efficient and flexible configuration layout generation is achieved.
Patent Information
- Application Number
- CN202510097920.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-06-10
AI Technical Summary
In the field of industrial automation, the layout and development of software interfaces is difficult to meet users' personalized needs, resulting in low development efficiency and high cost.
By obtaining device combinations from the device tree, the corresponding configuration initial canvas is generated, and the configuration layout is dynamically generated according to the user's editing instructions to adapt to complex device combination scenarios.
It improves the efficiency and flexibility of configuration layout generation, reduces development costs, and meets users' customized needs.
Smart Images

Figure CN120122944A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software development, and more particularly to a configuration layout method, system, device, and storage medium. Background Art
[0002] In the field of modern industrial automation, the layout development of software interfaces should adapt to the personalized needs of users. When developers convert these personalized needs into specific development tasks, they will face problems such as insufficient accuracy and low development efficiency. At the same time, due to the need for frequent customization and adjustment, the development cost also increases. Therefore, how to improve development efficiency and reduce costs while meeting the customized needs of users has become an urgent problem in industrial automation software development. Summary of the Invention
[0003] The main objective of the present invention is to provide a configuration layout method, system, device, and storage medium, which generate a configuration layout that meets specific requirements according to the type of operating device and the user's editing instructions. In fields such as industrial automation and monitoring systems, there are various types of operating devices, such as sensors, controllers, and actuators. By obtaining a device combination from the device tree, a corresponding initial configuration canvas can be generated for different types of device combinations (for example, a device combination consisting of multiple sensors and a controller). This can provide a basic framework for subsequent editing operations, enabling the configuration layout to adapt to various complex device combination scenarios.
[0004] To achieve the above objective, the embodiments of the present application provide the following technical solutions:
[0005] According to the first aspect of the embodiments of the present application, a configuration layout method is provided, and the method includes:
[0006] In response to a configuration layout instruction of an operating device, determine an initial configuration canvas according to the type of the operating device, where the configuration layout instruction includes obtaining a device combination composed of multiple devices or data points from a device tree;
[0007] According to the editing instruction of the user detected on the initial configuration canvas, obtain the target task corresponding to the editing instruction and / or the editing operations of several target objects;
[0008] Generate a configuration layout according to the target task and / or the editing operations of several target objects.
[0009] Optionally, the step of obtaining the target task corresponding to the editing instruction and / or the editing operations of several target objects according to the editing instruction of the user detected on the initial configuration canvas includes:
[0010] Identify the target task and / or the editing operations of a number of target objects based on the natural language input by the user in the configuration item area of the initial configuration canvas; and / or,
[0011] Identify the target task and / or the editing operations of a number of target objects based on the voice input by the user in the configuration item area of the initial configuration canvas; and / or,
[0012] Obtain a number of target objects corresponding to the drag operation according to the drag operation of at least one component in the component list dragged by the user on the initial configuration canvas; the component list includes components, component suites, and / or data points with common data point information that are matched in real time in the device tree according to the target objects already laid out on the initial configuration canvas.
[0013] Optionally, generating a configuration layout according to the target task and / or the editing operations of a number of target objects includes:
[0014] Determine the corresponding configuration layout according to the target task; and / or,
[0015] Determine the display hierarchy and / or connection relationship of the number of target objects according to the editing operations of the number of target objects; generate a configuration layout based on the display hierarchy and / or connection relationship of the number of target objects, and the target objects include one or more of components, component suites, and data points.
[0016] Optionally, the determining the corresponding configuration layout according to the target task includes:
[0017] Query whether there is a relevant historical task in the device tree according to the target task;
[0018] According to the existence of a relevant historical task, obtain the execution logic of the historical task and execute it; the execution logic represents the editing operations on a number of target objects;
[0019] According to the non-existence of a relevant historical task, generate an execution logic according to the target task and execute it; save the generated execution logic and the corresponding target task information to the device tree.
[0020] Optionally, after generating the configuration layout based on the display hierarchy and / or connection relationship corresponding to the number of target objects, the method includes:
[0021] Save the configuration layout to the device tree with the configuration layout identifier as the name, so as to call the configuration layout through the configuration layout identifier.
[0022] Optionally, the generating the configuration layout based on the display hierarchy and / or connection relationship of the number of target objects includes:
[0023] Several target objects are displayed on the canvas of the initial configuration canvas;
[0024] Adjust the configuration layout of several target objects according to the display hierarchy and / or connection relationship corresponding to the several target objects.
[0025] Optionally, after several target objects are displayed on the canvas of the initial configuration canvas, the method further includes:
[0026] Query the historical layout of the several target objects in the device tree and display it;
[0027] According to the detected historical layout selected by the user, display the historical layout of the several target objects on the canvas of the initial configuration canvas for the user to adjust.
[0028] Optionally, after several target objects are displayed on the canvas of the initial configuration canvas, the method further includes:
[0029] Create a custom configuration interface associated with each target object;
[0030] According to the configuration deployment of the target object corresponding to the detected user in any custom configuration interface, obtain the configuration information of the configuration of the target object corresponding;
[0031] Adjust the corresponding configuration of the corresponding target object in the configuration layout based on the configuration information.
[0032] Optionally, before the method according to the detected user's editing instruction on the initial configuration canvas, the method further includes:
[0033] In response to the configuration layout instruction, retrieve a preset component template and display it on the initial configuration canvas; the preset component template includes a type template and a blank template;
[0034] According to the user's selection of the type template, integrate the corresponding preset type components on the initial configuration canvas;
[0035] According to the user's selection of the blank template, display a blank interface on the initial configuration canvas.
[0036] According to the second aspect of the embodiments of the present application, a configuration layout system is provided, and the system includes:
[0037] A canvas generation module, configured to respond to a configuration layout instruction of an operating device, and determine an initial configuration canvas according to the type of the operating device; wherein, the configuration layout instruction includes obtaining a device combination composed of multiple devices or data points from a device tree;
[0038] An instruction parsing module, configured to obtain a target task and / or editing operations of several target objects corresponding to the editing instruction according to the monitored editing instruction of the user on the initial configuration canvas;
[0039] A layout module, configured to generate a configuration layout according to the target task and / or the editing operations of several target objects.
[0040] According to a third aspect of the embodiments of the present application, there is provided an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor runs the computer program, it is configured to implement the method described in the first aspect above.
[0041] According to a fourth aspect of the embodiments of the present application, there is provided a computer-readable storage medium, on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement the method described in the first aspect above.
[0042] In summary, the embodiments of the present application provide a configuration layout method, system, device, and storage medium. By responding to a configuration layout instruction of an operating device, an initial configuration canvas is determined according to the type of the operating device, where the configuration layout instruction includes obtaining a device combination composed of multiple devices or data points from a device tree; obtaining a target task and / or editing operations of several target objects corresponding to the editing instruction according to the monitored editing instruction of the user on the initial configuration canvas; generating a configuration layout according to the target task and / or the editing operations of several target objects. A configuration layout that meets specific requirements is generated according to the type of the operating device and the editing instruction of the user. In the fields of industrial automation, monitoring systems, etc., there are various types of operating devices, such as sensors, controllers, actuators, etc. By obtaining a device combination from a device tree, a corresponding initial configuration canvas can be generated for different types of device combinations. This can provide a basic framework for subsequent editing operations, enabling the configuration layout to adapt to various complex device combination scenarios. Description of the Drawings
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the structures shown in these drawings.
[0044] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the content disclosed in the specification for those skilled in this technology to understand and read, and are not used to limit the conditions for the implementation of the present invention. Therefore, they do not have substantial technical significance. Any modification of the structure, change in the proportional relationship, or adjustment of the size, without affecting the effects that the present invention can produce and the purposes that can be achieved, should still fall within the scope covered by the technical content disclosed in the present invention.
[0045] Figure 1 It is a flowchart of a configuration layout method provided by an embodiment of the present application;
[0046] Figure 2 It is a configuration flowchart provided by an embodiment of the present application;
[0047] Figure 3 It is a structure diagram of a configuration tool provided by an embodiment of the present application;
[0048] Figure 4 It is a structure diagram of a configuration layout system provided by an embodiment of the present application;
[0049] Figure 5 It shows a structure diagram of an electronic device provided by an embodiment of the present application;
[0050] Figure 6 It shows a diagram of a computer-readable storage medium provided by an embodiment of the present application.
[0051] The realization of the object of the present invention, functional features, and advantages will be further described in conjunction with the embodiments with reference to the accompanying drawings. Specific Embodiments
[0052] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
[0053] It should be noted that all directional indications (such as up, down, left, right, front, back...) in the embodiments of the present invention are only used to explain the relative positional relationship and movement conditions between components in a specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indications will also change accordingly.
[0054] In addition, in the present invention, descriptions such as "first", "second", etc. are for descriptive purposes only, and should not be construed as indicating or implying their relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first", "second" may explicitly or implicitly include at least one of such features. In the description of the present invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise specifically defined.
[0055] In the present invention, unless otherwise clearly specified and limited, terms such as "connection", "fixation", etc. shall be understood in a broad sense. For example, "fixation" may be a fixed connection, a detachable connection, or integrated; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and may be the communication inside two components or the interaction relationship between two components, unless otherwise clearly limited. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0056] In addition, the technical solutions between various embodiments of the present invention can be combined with each other, but it must be based on the ability of those of ordinary skill in the art to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the protection scope required by the present invention.
[0057] First, the technical terms related to the embodiments of the present application are introduced.
[0058] In configuration software, a component refers to an independent and reusable interface element used to build a user interface. These elements can be buttons, charts, indicators, sliders, etc., which are used to display data, perform operations, or interact with users. Components usually have specific functions and appearances, can be dragged onto the configuration canvas, and configured and laid out as needed.
[0059] A component kit refers to a collection of components with commonalities or specific functions. These kits are usually designed for specific application scenarios or industry requirements, and contain a series of pre-configured components, which can speed up the development process and ensure consistency. For example, a component kit for a manufacturing execution system MES may include components for production monitoring, quality control, and resource management.
[0060] A data point refers to a specific value used to represent a physical quantity or state in an industrial control system. They are the basic data units in the monitoring and control process. Data points can be sensor readings, device operating states, process parameters, etc. In configuration software, data points are usually associated with interface components for real-time display and control of these parameters.
[0061] The device tree is a data structure used to describe the hardware configuration in industrial automation and control systems. The main function of the device tree is to separate the information of hardware devices from the kernel, enabling the kernel to automatically configure the system according to the description of the device tree during runtime. This separation makes the kernel code more concise and portable, while also improving the flexibility of hardware configuration and the portability of the system.
[0062] In the current field of industrial automation, the optimization of configuration tools is the key to improving efficiency and flexibility. Traditional configuration layout generation may require users to manually perform a large number of configurations and settings, which is a cumbersome process and prone to errors.
[0063] Figure 1 The following shows a configuration layout method provided by an embodiment of the present application. The method includes:
[0064] Step 101: In response to a configuration layout instruction of an operating device, determine a configuration initial canvas according to the type of the operating device, where the configuration layout instruction includes obtaining a device combination composed of multiple devices or data points from the device tree;
[0065] Step 102: According to the editing instruction detected from the user on the configuration initial canvas, obtain the target task corresponding to the editing instruction and / or the editing operations of several target objects;
[0066] Step 103: Generate a configuration layout according to the target task and / or the editing operations of several target objects.
[0067] By automatically determining the initial configuration canvas and generating the configuration layout according to the user's editing instructions, the generation process of the configuration layout is simplified. The user does not need to build the entire configuration layout from scratch. Instead, they only need to perform necessary editing operations based on the initial canvas, which greatly reduces the difficulty and workload of generating the configuration layout and improves work efficiency. In order to generate a configuration layout that meets specific requirements based on the type of operating device and the user's editing instructions. In the fields of industrial automation, monitoring systems, etc., there are a wide variety of operating devices, such as sensors, controllers, actuators, etc. By obtaining the device combination from the device tree, it is possible to generate the corresponding initial configuration canvas for different types of device combinations (for example, a device combination consisting of multiple sensors and one controller). This can provide a basic framework for subsequent editing operations, enabling the configuration layout to adapt to various complex device combination scenarios. By monitoring the user's editing instructions on the initial configuration canvas and obtaining the editing operations of the corresponding target tasks and target objects, a highly customized configuration layout can be achieved. Different users may have different requirements for the configuration layout. For example, some users may want to highlight certain key data points, while others may want to make special settings for the display method of the device. This way of generating the configuration layout based on the user's editing instructions allows users to make personalized adjustments to the configuration layout according to their actual needs, thereby improving the practicality and pertinence of the configuration layout.
[0068] In step 101, the initial configuration canvas is determined according to the type of the operating device and can be dynamically adjusted according to the user's editing instructions, so that the configuration layout can better adapt to various different application scenarios. For example, in a complex industrial production line, the layout and connection method of the devices may change with the adjustment of the production process. This solution can quickly generate a new configuration layout according to the new device combination and the user's editing requirements, ensuring that the monitoring system or the automation control system can accurately reflect the status and operation of the on-site devices.
[0069] In a possible implementation manner, in step 102, the obtaining of the editing operations of the target tasks and / or several target objects corresponding to the editing instructions according to the monitored user's editing instructions on the initial configuration canvas includes:
[0070] Identify the target task and / or the editing operations of several target objects based on the natural language input by the user in the configuration item area of the initial configuration canvas; and / or, identify the target task and / or the editing operations of several target objects according to the voice input by the user in the configuration item area of the initial configuration canvas; and / or, obtain several target objects corresponding to the drag operation according to the drag operation of at least one component in the component list of the initial configuration canvas by the user; the component list includes components, component suites, and / or data points with common data point information that are real-time matched in the device tree according to the target objects already laid out on the initial configuration canvas. The editing operations include creation, copying, and pasting.
[0071] The embodiments of the present application aim to improve the interactivity and intelligence level of the configuration tool through various input methods (natural language, voice, drag operation). By identifying and processing these input information, the system can more accurately understand the user's intention and generate or adjust the configuration layout accordingly. Such a design enables users to interact with the system in a more natural and intuitive way, thereby enhancing the user experience and configuration efficiency. Specifically, it includes but is not limited to the following ways: Natural language input: The engineer inputs the text: "Add a temperature sensor and a humidity sensor on the interface and place them on the left side of the control panel." The system automatically adds these two sensor components on the initial configuration canvas through text recognition and places them at the specified position. Voice input: The engineer says: "Place the temperature sensor above the humidity sensor." The system recognizes this instruction through voice and adjusts the display levels of the two sensors accordingly. Drag operation: The engineer finds an "alarm button" component in the drag component list and drags it to a specific position on the canvas. The system monitors this operation and obtains this newly added target object.
[0072] Components in the component list that are real-time matched in the device tree according to the target objects already laid out on the initial configuration canvas and have common data point information, etc., enable the system to dynamically provide appropriate component selections according to different device combinations and user requirements. For example, in an industrial production monitoring system, when the user has laid out multiple temperature sensors on the canvas, the component list will automatically match and display components related to temperature, such as temperature curve graphs, temperature alarm indicator lights, etc. This real-time matching mechanism enhances the adaptability of the system to different scenarios and user requirements, makes the configuration layout editing more flexible, and can better meet various complex application requirements.
[0073] In a possible implementation manner, before step 102, according to the editing instruction of the user on the initial configuration canvas, the method further includes:
[0074] In response to the configuration layout instruction, retrieve the preset component templates and display them on the initial configuration canvas; the preset component templates include type templates and blank templates; according to the user's selection of the type template, integrate the corresponding preset type components on the initial configuration canvas; according to the user's selection of the blank template, display a blank interface on the initial configuration canvas.
[0075] Users can choose preset component templates or blank templates, which provides flexibility for different design requirements. By monitoring the user's editing operations on the initial configuration canvas, the system can automatically obtain the display hierarchy and connection relationships of the target objects, and then generate a configuration layout. The automated generation of the configuration layout reduces the time for users to manually adjust the component hierarchy and connection relationships, thus accelerating the overall speed of configuration. Suppose a user needs to configure a configuration interface for a factory monitoring system. The user starts the configuration tool, and the system displays the preset component templates, including templates of different types of monitoring devices and a blank template. The user selects a type template that includes common monitoring devices, and the system immediately displays these preset components on the initial configuration canvas. Edit these preset components on the initial configuration canvas, such as moving their positions, resizing them, or connecting them to different data points. While the user is performing these operations, the system monitors and obtains the display hierarchy and connection relationships of these components.
[0076] In a possible implementation manner, in step 102, generating a configuration layout according to the target task and / or the editing operations of several target objects includes:
[0077] Determine the corresponding configuration layout according to the target task; and / or, according to the editing operations of the several target objects, determine the display hierarchy and / or connection relationships of the several target objects; generate a configuration layout based on the display hierarchy and / or connection relationships of the several target objects, where the target objects include one or more of components, component suites, and data points.
[0078] Precisely generate a configuration layout according to the target task and the editing operations of the target objects. By clarifying the configuration layout corresponding to the target task, it can ensure that the generated layout meets the expected functions of the user. For example, if the target task is to create a dashboard for displaying the operating status of a device, the system will generate a configuration layout that includes the corresponding meter components and data display areas. At the same time, determining the display hierarchy and connection relationships according to the editing operations of the target objects can further refine the structure of the layout, enabling each component, component suite, and data point to be reasonably displayed and interconnected in the layout.
[0079] By determining the display hierarchy and connection relationships of target objects, the visualization effect of the configuration layout is optimized. In a complex configuration system, multiple components and data points need to be presented in a clear and intuitive manner. For example, in the configuration layout of a factory automation monitoring system, by reasonably setting the display hierarchy, important device status information (such as the operating status of key production lines) can be placed in a more prominent position, while auxiliary information (such as environmental temperature and humidity) can be placed in a relatively secondary position. At the same time, clear connection relationships enable users to immediately see the data flow and control relationships between devices, such as how sensor data is transmitted to the controller and how the controller controls the actuator, thereby improving the readability and comprehensibility of the entire configuration layout.
[0080] Since the configuration layout is dynamically generated based on the editing operations of the target task and target objects, when maintenance or expansion of the layout is required, the user only needs to modify the corresponding editing operations of the target task or target objects. For example, if it is necessary to add the monitoring of water energy consumption to the existing configuration layout of an energy management system, the user only needs to add relevant water meter data acquisition components and adjust the display hierarchy and connection relationships. This layout generation method based on clear rules and operations makes the maintenance and expansion of the configuration layout simpler and clearer, reduces the system maintenance cost, and improves the system scalability.
[0081] In a possible implementation manner, in step 102, determining the corresponding configuration layout according to the target task includes:
[0082] Querying in the device tree whether there is a relevant historical task according to the target task; if there is a relevant historical task, obtaining and executing the execution logic of the historical task; the execution logic represents the editing operations on several target objects; if there is no relevant historical task, generating and executing an execution logic according to the target task; and saving the generated execution logic and the corresponding target task information to the device tree.
[0083] By querying the historical tasks in the device tree, the efficiency and accuracy of configuration layout generation are improved. When there is a relevant historical task, directly obtain and execute its execution logic, which can avoid repetitive logic design and configuration work. For example, if a specific configuration layout has been generated for a certain type of device combination (such as a motor and a frequency converter combination) before, when encountering a similar target task again, the existing execution logic can be directly utilized to quickly generate the corresponding configuration layout, reducing the time and possible errors of designing the layout from scratch. For the case where there is no relevant historical task, a new execution logic is generated and executed according to the target task, and at the same time, the generated execution logic and the corresponding target task information are saved to the device tree. This can not only meet the current configuration layout requirements but also accumulate the new layout logic and task information in the device tree.
[0084] In a possible implementation, after generating the configuration layout based on the display levels and / or connection relationships corresponding to the several target objects, the method includes:
[0085] Save the configuration layout to the device tree with the configuration layout identifier as the name, so as to call the configuration layout through the configuration layout identifier.
[0086] The user saves the edited layout, saves the layout to the device tree with the configuration layout identifier as the name for subsequent calls. When needed in the future, this configuration layout can be quickly called and reused by inputting the layout identifier without starting from scratch. By considering the historical layout of the target objects, the system can provide layout suggestions that are more in line with user habits. Allowing the user to save the configuration layout to the device tree and be able to call the layout through the layout identifier improves the reusability of the layout and facilitates the user's multiple uses.
[0087] In a possible implementation, the generating the configuration layout based on the display levels and / or connection relationships of the several target objects includes:
[0088] Display several target objects on the canvas of the initial configuration canvas; adjust the configuration layout of the several target objects according to the display levels and / or connection relationships corresponding to the several target objects.
[0089] By displaying the target objects and adjusting the configuration layout according to their display levels and connection relationships, the user can intuitively see the layout effect and optimize it. After displaying the target objects on the initial configuration canvas, the user can adjust the display levels and connection relationships of the objects according to actual needs and visual effects. For example, in the configuration interface of an industrial control system, the user may want to place important control buttons in a more prominent position (adjust the display level), or clarify the data flow between sensors and actuators (adjust the connection relationship), so as to achieve visual adjustment and optimization of the configuration layout.
[0090] In a possible implementation, after displaying several target objects on the canvas of the initial configuration canvas, the method further includes:
[0091] Query the historical layout of the several target objects in the device tree and display it; according to the detected historical layout selected by the user, display the historical layout of the several target objects on the canvas of the initial configuration canvas for the user to adjust.
[0092] By querying and displaying the historical layout of the target object in the device tree, it provides a reference for the user. The user can quickly select a suitable historical layout as a basis for adjustment according to previous experience and layout effects. For example, on a production line with high repetition, the configuration layout of the equipment may be similar. The user can utilize the historical layout to avoid starting from scratch, saving time and improving the efficiency of layout design. At the same time, this also enables the user to innovate and improve on the existing basis rather than starting completely from scratch.
[0093] In a possible implementation manner, after several target objects are displayed on the canvas of the initial configuration canvas, the method further includes:
[0094] Create a custom configuration interface associated with each target object; deploy the corresponding configuration of the target object according to the monitoring of the user's configuration in any custom configuration interface, and obtain the configuration information of the corresponding configuration of the target object; adjust the corresponding configuration of the corresponding target object in the configuration layout based on the configuration information.
[0095] Create a custom configuration interface associated with each target object, allowing the user to perform detailed personalized configuration on the target object. For example, for a temperature sensor component, the user can set parameters such as data refresh frequency, alarm threshold, and display style in the custom configuration interface. By monitoring the user's configuration operations and obtaining the configuration information, and adjusting the configuration of the corresponding target object in real time in the configuration layout, it can meet the specific needs of the user for different target objects and make the configuration layout more suitable for the actual application scenario.
[0096] Figure 2 Shows the configuration flowchart. This process is applied to the gallery management area and the configuration editing page. The gallery management area includes an equipment gallery and a basic gallery. The equipment gallery is displayed and configured according to the equipment type, allowing the user to manage and display the equipment in the gallery according to different types of equipment. The user can use the automatic import function to quickly add commonly used equipment and data points to the equipment gallery, providing materials for creating equipment groups and templates.
[0097] The configuration editing page includes a component list, a canvas, and a configuration item area. The component list includes a device tree, general components, and a gallery. Users can select the required components from here to construct device groups and templates. The components in the device tree are automatically imported from the device gallery. Those in the gallery are imported from the basic gallery. The canvas includes data points, devices, device groups, control panels, text, and pictures, etc., which are used for laying out and displaying the configured components. On the editing page, users can use the device tree in the component list and the components in the gallery to construct device groups and then perform layout and configuration on the canvas. The configuration item area includes layout, data source, font configuration, etc. The configuration items are used to customize the configuration of each component and then display it on the canvas. Users can perform unified configuration on the device group, such as setting the data source, adjusting the layout, etc., to ensure the consistency and reusability of the device group.
[0098] The embodiment of this application introduces the concept of configuration template design. Users can quickly generate new device configuration diagrams based on existing successful cases or standard layouts, ensuring the consistency and standardization of configuration design and shortening the design cycle. On the initialization creation and template selection interface, users can select an existing template as the basis for a new project. The template center provides templates based on successful cases or standard layouts, and users can quickly generate new device configuration diagrams. By using configuration templates, users can ensure that the newly designed configuration diagrams are consistent with other projects or enterprise standards.
[0099] By implementing the pre-graphic configuration of device types, users can directly drag and drop devices or data points from the device tree to the configuration canvas in batches, simplifying the device placement steps and improving the efficiency of large-scale device layout. The concept of device combination is introduced, allowing users to integrate the layouts of devices of the same or similar types and their data points into a device group that can be copied and pasted, enabling quick cloning and adjustment, reducing repetitive labor, and enhancing flexibility. On the canvas of the configuration editing page, users can create a device group by selecting devices of the same or similar types and their data point layouts. Users can perform unified configuration on the devices within the device group, such as font configuration, data source configuration, etc., and these configurations will be applied to all devices within the device group. Using the batch drag-and-drop function provided by the configuration editing page, users can quickly move and position the device group as a whole on the canvas. After the device group is created, users can copy and paste it to other positions on the canvas or copy it to other projects to achieve quick cloning.
[0100] Figure 3 The structure diagram of the configuration tool is shown. These modules and sub-pages constitute the main interface and functions of the configuration tool, allowing users to effectively manage and use configuration data, gallery resources, and templates. Through these tools, users can create, configure, and edit the monitoring interface of an industrial automation system.
[0101] The module includes a configuration data center, a library center, and a template center. The configuration data center is used to store and manage configuration data. The library center includes a basic library and a device library, which are used for storing graphics and components. The template center is used to store and manage predefined templates.
[0102] The sub - pages include a configuration list, a library list, and a template list. The configuration list includes a viewing page and a configuration page; on the viewing page, a list of configurations is shown, and users can view existing configurations; on the configuration page, users can configure or edit the detailed settings of the configurations. The library list includes a basic library and a device library; the basic library provides basic graphics and components; the device library is used for device - related graphics and components. The template list includes a viewing page and a configuration page; on the viewing page, a list of templates is shown, and users can view existing templates; on the configuration page, users can configure or edit the detailed settings of the templates.
[0103] The components include a viewing component and an editing component; users can view available components, and they can also edit the selected components to meet specific configuration requirements. The viewing and editing interface of the configuration system adopts a modular design, allowing it to be easily embedded into any project through component - based integration at the code level. When personalized customization or function expansion of the display effect driven by configuration is required, developers can directly integrate the required configuration functions in the form of components. Such a design greatly improves the freedom of custom development, ensures that the application can maintain a unified visual style while meeting specific business logic requirements, and promotes the efficient development and iteration of the project.
[0104] Based on the above - mentioned configuration logic and structure diagram, the configuration layout method provided by the embodiments of this application specifically includes the following stages:
[0105] The first stage: Initial creation and template selection.
[0106] When a user starts a new configuration design, they will first see a pop - up window asking them to fill in the name of the configuration. The user can choose whether to use a preset template. If they choose "yes", the system will display the templates in the "template center" database for the user to select. The user can pick and load a template into the working environment. If they choose "no", they will directly enter the custom creation process. When opening the configuration addition pop - up window, after the user fills in the configuration name, they need to choose whether to use a template. After the user confirms "yes", the interface displays the "template center" database, and the user can pick and load the selected template into the working environment; if they choose "no", they will directly jump to the custom creation process.
[0107] The second stage: Device type management and configuration guidance.
[0108] In the scenario of creating a new configuration diagram, the system will automatically perform statistical analysis of device types. When the system detects multiple devices of the same type, it will prompt the user to access the "Gallery Center - Device Gallery" for display configuration preset. If the user selects a template, the system will automatically integrate the preset device information to simplify the configuration process.
[0109] Phase 3: Intelligent Configuration Assistance.
[0110] On the configuration page, users can express their configuration requirements through voice input, such as "Generate a monitoring diagram of computer room equipment". Users are also allowed to input text to express their configuration needs. For example, users can simply say: "Generate a monitoring diagram of computer room equipment", "Replace device A with device B", "Modify the settings of device B to high-power mode", etc. The system can quickly respond to these instructions and perform corresponding operations. Users can also perform configuration dragging through the device tree on the left to arrange the devices on the canvas.
[0111] Phase 4: Data Saving and Template Publishing.
[0112] Users save the edited layout, and save the layout to the database with the configuration layout identifier as the name for subsequent calls. When needed in the future, this configuration layout can be quickly called and reused by entering the layout identifier, without having to configure from scratch. By considering the historical layout of the target object, the system can provide layout suggestions that are more in line with user habits. Allowing users to save the configuration layout to the database and be able to call the layout through the layout identifier improves the reusability of the layout and facilitates multiple uses by users.
[0113] For cross-platform application display, the system designs a standardized configuration viewing component. Front-end developers can accurately present the configuration diagram within a third-party application by integrating this component and specifying the target configuration ID. In addition, for application scenarios that require comprehensive integration of configuration editing and management functions, we recommend adopting the micro-frontend architecture approach. Through micro-frontend technology, the entire set of configuration function modules can be flexibly embedded into the target application framework, not only maintaining the independence and decoupling of each functional component, but also greatly enhancing the scalability and maintenance convenience of the system, providing a highly flexible and unified configuration solution for application development.
[0114] When building a configuration environment that includes a large number of similar devices, an efficient method of batch selection and centralized configuration is provided to improve the efficiency of large-scale device settings. Through batch selection and centralized configuration, the need for individual configuration of each device is reduced. When the configuration application needs to be integrated with an external system, a flexible integration solution is provided to ensure the availability and display consistency of the configuration content in different application environments even without adopting a micro-frontend integration strategy. Even without adopting a micro-frontend integration strategy, through iframe nesting technology, the integration of the configuration interface with the external system can be achieved, enhancing the system's integration capabilities.
[0115] Suppose a factory needs to configure a configuration interface for its production line monitoring system that includes a large number of similar sensors, and this interface needs to be integrated into the existing production management system. The factory engineer selects all the sensor devices in the configuration environment, and the system displays the configuration options for all the selected devices through the centralized configuration panel on the right. The engineer uniformly sets the data acquisition frequency and alarm threshold for all the sensors in the centralized configuration panel, and the system automatically applies these settings to all the selected sensors. In this way, the engineer does not need to configure each sensor individually, greatly improving the configuration efficiency.
[0116] Since the factory's production management system does not support the micro-frontend integration strategy, the development team uses iframe nesting technology to embed the configuration interface into the production management system, designs a page structure that hosts the configuration interface, and ensures that the display effect of this page in the production management system is consistent with that in the configuration environment. By embedding an iframe in the production management system, the engineer can directly access and monitor the real-time data of the production line in the system without switching to other systems or interfaces.
[0117] Through these implementation methods, the factory can efficiently configure and manage a large number of sensors on the production line and seamlessly integrate the monitoring system into the existing production management system, thus improving the efficiency and convenience of production monitoring.
[0118] In summary, the embodiments of the present application provide a configuration layout method. By responding to the configuration layout instruction of an operating device, a configuration initial canvas is determined according to the type of the operating device, where the configuration layout instruction includes obtaining a device combination composed of multiple devices or data points from a device tree; according to the editing instruction of the user monitored on the configuration initial canvas, obtaining the target task corresponding to the editing instruction and / or the editing operations of several target objects; generating a configuration layout according to the target task and / or the editing operations of several target objects, and generating a configuration layout that meets specific requirements according to the type of the operating device and the editing instruction of the user. In the fields of industrial automation, monitoring systems, etc., there are various types of operating devices, such as sensors, controllers, actuators, etc. By obtaining a device combination from the device tree, a corresponding configuration initial canvas can be generated for different types of device combinations. This can provide a basic framework for subsequent editing operations, enabling the configuration layout to adapt to various complex device combination scenarios.
[0119] Based on the same technical concept, the embodiments of the present application also provide a configuration layout system, as Figure 4 shown. The system includes:
[0120] A canvas generation module 401, configured to respond to a configuration layout instruction of an operating device and determine a configuration initial canvas according to the type of the operating device; where the configuration layout instruction includes obtaining a device combination composed of multiple devices or data points from a device tree;
[0121] An instruction parsing module 402, configured to obtain the target task corresponding to the editing instruction and / or the editing operations of several target objects according to the editing instruction of the user monitored on the configuration initial canvas;
[0122] A layout module 403, configured to generate a configuration layout according to the target task and / or the editing operations of several target objects.
[0123] The embodiments of the present application also provide an electronic device corresponding to the method provided in the foregoing embodiments. Please refer to Figure 5 , which shows a diagram of an electronic device provided in some embodiments of the present application. The electronic device 20 may include: a processor 200, a memory 201, a bus 202, and a communication interface 203. The processor 200, the communication interface 203, and the memory 201 are connected through the bus 202; a computer program that can run on the processor 200 is stored in the memory 201, and when the processor 200 runs the computer program, it executes the method provided in any of the foregoing embodiments of the present application.
[0124] Among them, the memory 201 may include high-speed random access memory (RAM), and may also include non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is implemented through at least one physical port (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used.
[0125] The bus 202 can be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. Among them, the memory 201 is used to store a program. After receiving an execution instruction, the processor 200 executes the program. Any implementation manner of the method disclosed in any implementation manner of the foregoing embodiments of the present application can be applied to the processor 200 or implemented by the processor 200.
[0126] The processor 200 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 200 or by instructions in software form. The above-mentioned processor 200 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. This storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and combines its hardware to complete the steps of the above method.
[0127] The electronic device provided by the embodiments of the present application and the method provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by it.
[0128] The embodiments of the present application also provide a computer-readable storage medium corresponding to the method provided by the foregoing embodiments. Please refer to Figure 6, which shows that the computer-readable storage medium is an optical disc 30, on which a computer program (i.e., program product) is stored. When the computer program is run by a processor, it will execute the methods provided in any of the foregoing embodiments.
[0129] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory, or other optical and magnetic storage media, which will not be elaborated here one by one.
[0130] The computer-readable storage medium provided in the above embodiments of the present application and the method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run, or implemented by the application programs stored therein.
[0131] It should be noted that the above embodiments are illustrative of the present application rather than restrictive of the present application, and those skilled in the art can design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in the claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present application can be implemented by means of hardware including several different elements and by means of a properly programmed computer. In the unit claims listing several devices, several of these devices may be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not denote any order. These words can be interpreted as names.
[0132] The above is only the preferred specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
[0133] The above is only the preferred embodiment of the present invention, and it does not limit the patent scope of the present invention. Any equivalent structural transformation made by using the specification and drawings of the present invention under the concept of the present invention, or any direct / indirect application in other related technical fields, is included in the patent protection scope of the present invention.
Claims
1. A configuration layout method, characterized in that: The method comprises: In response to a configuration layout instruction of an operating device, determining a configuration initial canvas according to a type of the operating device, wherein the configuration layout instruction includes obtaining a device combination consisting of a plurality of devices or data points from a device tree; According to the monitored editing instructions of the user on the configuration initial canvas, obtaining the editing operations of the target task and / or several target objects corresponding to the editing instructions; A configuration layout is generated according to the editing operations of the target task and / or several target objects.
2. The method according to claim 1, characterized in that The step of acquiring the target task and / or the editing operation of the target objects corresponding to the editing instruction according to the monitoring of the editing instruction of the user on the initial configuration canvas includes: Identifying the editing operations of the target task and / or several target objects according to the natural language input by the user in the configuration item area of the configuration initial canvas; and / or, Recognize the editing operation of the target task and / or several target objects according to the voice input by the user in the configuration item area of the configuration initial canvas; and / or, Based on monitoring the user's dragging operation of at least one component in the component list on the configuration initial canvas, a number of target objects corresponding to the dragging operation are obtained; the component list includes components, component kits and / or data points with common data point information that are matched in real time in the device tree according to the target objects that have been laid out on the configuration initial canvas.
3. The method according to claim 1, characterized in that Generating a configuration layout according to the target task and / or the editing operation of the target objects includes: Determine the corresponding configuration layout according to the target task; and / or, According to the editing operations of the target objects, the display hierarchy and / or connection relationship of the target objects are determined; based on the display hierarchy and / or connection relationship of the target objects, a configuration layout is generated, wherein the target objects include one or more of components, component kits and data points.
4. The method according to claim 3, characterized in that Determining the corresponding configuration layout according to the target task includes: According to the target task, query whether there is a related historical task in the device tree; According to the existence of relevant historical tasks, the execution logic of the historical tasks is obtained and executed; the execution logic represents the editing operation on several target objects; According to the absence of relevant historical tasks, an execution logic is generated and executed according to the target task; and the generated execution logic and corresponding target task information are saved to the device tree.
5. The method according to claim 3, characterized in that After generating the configuration layout based on the display levels and / or connection relationships corresponding to the plurality of target objects, the method includes: The configuration layout is saved in a device tree with the configuration layout identifier as a name, so as to call the configuration layout through the configuration layout identifier.
6. The method according to claim 3, characterized in that The generating of the configuration layout based on the display levels and / or connection relationships of the plurality of target objects includes: Displaying a plurality of target objects on the canvas of the configuration initial canvas; The configuration layout of the target objects is adjusted according to the display levels and / or connection relationships corresponding to the target objects.
7. The method according to claim 6, characterized in that After the canvas of the configuration initial canvas displays a plurality of target objects, the method further includes: Querying and displaying the historical layouts of the target objects in the device tree; According to the historical layout detected by the user, the historical layout of the plurality of target objects is displayed on the canvas of the configuration initial canvas for adjustment by the user.
8. The method according to claim 6, characterized in that After the canvas of the configuration initial canvas displays a plurality of target objects, the method further includes: Create a custom configuration interface associated with each target object; According to monitoring that a user deploys a configuration corresponding to a target object in any custom configuration interface, configuration information of the configuration corresponding to the target object is obtained; In the configuration layout, the corresponding configuration of the corresponding target object is adjusted based on the configuration information.
9. The method according to claim 1, characterized in that Before the step of monitoring the editing instruction of the user on the configuration initial canvas, the method further comprises: In response to the configuration layout instruction, a preset component template is retrieved and displayed on the configuration initial canvas; the preset component template includes a type template and a blank template; Integrate corresponding preset type components on the configuration initial canvas according to the type template selected by the user; According to the user selecting the blank template, a blank interface is displayed on the configuration initial canvas.
10. A configuration layout system, characterized in that: The system comprises: A canvas generation module, configured to respond to a configuration layout instruction of an operating device and determine a configuration initial canvas according to the type of the operating device; wherein the configuration layout instruction includes obtaining a device combination consisting of a plurality of devices or data points from a device tree; An instruction parsing module, used for acquiring the editing operations of the target task and / or several target objects corresponding to the editing instruction according to the editing instruction of the user on the configuration initial canvas monitored; The layout module is used to generate a configuration layout according to the editing operations of the target task and / or several target objects.
11. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and the computer-readable instructions can be executed by a processor to implement the method according to any one of claims 1-9.