A method and device for generating a graphical editing control interface
The graphical editing control interface generation method and device solves the problems of low scalability and reusability of existing central control system software, realizes efficient control system construction and adjustment, reduces costs and improves system performance and development efficiency.
Patent Information
- Application Number
- CN202411713801.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2044-11-27
AI Technical Summary
Existing central control system software solutions rely heavily on customized development, resulting in low scalability and software reusability. Users are unable to adjust the software to adapt to changes in scenarios, which is costly and not economical or convenient enough.
A method and device for generating a graphically edited control interface are provided. The method receives an initial control instruction code and assigns an action value according to the control protocol of the target device, integrating the code into a control instruction table. In response to the graphical editing signal, a blank software framework is constructed and adjusted, and the control instruction table is associated with the components in the software framework to compile the result into a control engineering file.
It improves the scalability and operation and maintenance efficiency of the central control system, reduces the delay in system response speed, improves the system's control performance and development efficiency, and realizes cross-platform control engineering file transmission.
Smart Images

Figure CN119645381B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of graphical editing control, and in particular to a method and device for generating a graphical editing control interface. Background Art
[0002] With the continuous advancement of technology, the current market demand for centralized, systematic control of various third-party devices is increasing. Traditional control systems typically use a centralized control approach based on customized platforms. This approach involves customizing and integrating multiple independent system devices into a single set of central control software through a service platform, using individual protocols. Control solutions are then customized based on customer needs, meeting user needs for integrated control of independent systems.
[0003] However, current central control solutions rely heavily on customized development. They require determining UI solutions, scenario-based business requirements, and more based on customer needs. They also need to determine in advance the types and even quantities of devices that need to be connected, and then perform protocol connection with the system-integrated controlled device types one by one. As a result, the resulting software products are fixed, highly customized, and limited. Furthermore, because the actual changes in central control scenario solutions and the addition, deletion, and modification of system equipment groups are continuous, each system adjustment, or even fine-tuning of the UI, often requires a significant investment of manpower and material resources for complex system configuration or rewriting. Therefore, the scalability and software reusability of existing central control system software solutions are very low, leading to increased costs associated with upgrading the central control system or changing equipment solutions.
[0004] Therefore, the existing central control solution makes it impossible for users to adjust and modify the software according to the ever-changing scenario requirements and equipment updates and upgrades. It is heavily dependent on the intervention of developers. As a result, the existing central control system is not economical and convenient enough and cannot be flexibly expanded. Summary of the Invention
[0005] The present invention provides a method and device for generating a graphically edited control interface, so as to achieve the technical effect of improving the scalability and operation and maintenance efficiency of a central control system, while reducing the delay in the system response speed and improving the control performance of the system.
[0006] In order to solve the above technical problems, an embodiment of the present invention provides a method for generating a graphical editing control interface, comprising the following steps:
[0007] receiving an initial control instruction code, assigning an action value to the initial control instruction code according to a control protocol of a target device, and integrating the assigned control instruction codes into a control instruction table;
[0008] In response to a graphical editing signal, receiving a graphical editing instruction and constructing a blank software framework, parsing and adjusting the blank software framework according to the graphical editing instruction to obtain a control software framework, associating the control instruction table with components in the control software framework, and compiling the control instruction table into a corresponding control engineering file according to a preset proprietary protocol;
[0009] In response to the control interface calling instruction, the corresponding control engineering file is sent to the corresponding target client according to the control interface calling instruction, so that the target client parses the control engineering file and obtains and displays the corresponding control software interface.
[0010] The control interface generation method provided by the present invention, after receiving the initial control instruction code input by the user, will first assign an action to the initial control instruction code according to the control protocol of different third-party devices, i.e., the target device, that is, determine the instruction action that can be achieved by the instruction code, and assign the determined instruction action to the corresponding control instruction code, and then integrate all the assigned control instruction codes into a control instruction table and store it in the system, providing a data basis for the subsequent generation of control engineering files.
[0011] After generating the control instruction table, the system will also respond to a graphical editing signal triggered by the user, receive the graphical editing instructions accompanying the signal, and simultaneously construct a blank software framework for executing the graphical editing instructions. The system then adjusts the blank software framework according to the graphical editing instructions, executing the graphical editing instructions within the software framework so that the execution results corresponding to the editing instructions are reflected within the framework, thereby constructing the corresponding control software framework. After the software framework is constructed, the control instructions in the control instruction table are associated with the components within the software framework, allowing the user to trigger the corresponding control instructions by triggering the components. The associated custom software interface is then compiled using a proprietary protocol, generating an XML engineering data file, the control engineering file, for subsequent user interface restoration, display, and call-up on client platforms such as Windows, iOS, Android, and the Web. This approach supports user-level custom editing settings and generates control engineering files, eliminating the limitations of existing customized development methods, improving the flexibility, convenience, and rapid scalability of control system construction and adjustment, while also reducing the economic cost of control system construction. At the same time, by compiling the associated and bound software interface data into a control engineering file through a private protocol, it can be ensured that all types of clients can interpret and process the file through the corresponding private protocol, thereby realizing cross-platform transmission of the control engineering file, that is, "one compilation, multi-terminal use".
[0012] After generating the control engineering file, the system will also respond to the control interface call instruction triggered by the user from the client, determine the control engineering file to be called based on the instruction, and feed the determined engineering file back to the corresponding client, thereby realizing the call and display of the control system interface. The user can then control the controlled devices controlled by the control system through the called interface. By triggering the various components on the control system in the control engineering file and sending the control instruction code corresponding to the component to the system, the system can then find the control protocol data corresponding to the instruction code in the stored control instruction table, as well as the transmission object and interface method corresponding to the control protocol data, and distribute the protocol data converted from the instruction code according to the corresponding different interface methods. However, if the client directly sends control protocol data to the system to control third-party controlled devices, the control protocol data of the devices is relatively long. Therefore, in complex scenarios, if a large number of device groups are enabled to be controlled at the same time according to the preset plan and a large amount of control protocol data needs to be sent, the instantaneous data volume generated is large. However, by transmitting control instruction codes to realize the transmission of control data, that is, using instruction codes as transmission middleware, the response speed delay and system operation lag problems in large data volumes and low bandwidth situations are avoided, thereby improving system response efficiency and operation execution efficiency.
[0013] As a preferred example, the receiving of the initial control instruction code and the performing of action assignment on the initial control instruction code according to the control protocol of the target device specifically include:
[0014] Parsing the initial control instruction code to obtain the device control requirements and corresponding device interface form of the target device corresponding to each instruction code, and obtaining the corresponding control protocol according to the device interface form;
[0015] By using the control protocol data in the control protocol, each instruction code in the initial control instruction code is assigned a control action value to obtain the assigned control instruction code.
[0016] In order to subsequently determine the corresponding operating instructions to be executed by each component of the system, the control interface generation method provided by the present invention, when receiving the initial control instruction code input by the user, will first determine the control protocol corresponding to each interface form of the device interface form in the initial control instruction code, that is, match the control protocol of the corresponding device through the interface form of the target device, that is, the controlled device, and assign an action to each instruction code in the initial control instruction code through the protocol data corresponding to the control protocol obtained by matching, that is, assign a control action to each instruction code, so that each instruction code corresponds to a certain control action, thereby realizing the control action assignment of the instruction code, and then converting the instruction code into a control instruction code, providing a data basis for the subsequent generation of control engineering files.
[0017] As a preferred example, the parsing and adjusting the blank software framework according to the graphical editing instruction specifically includes:
[0018] Parsing the graphical editing instructions to obtain corresponding control component instructions, beautification component instructions, quick typesetting instructions and page jump logic instructions;
[0019] The blank components in the blank software framework are respectively adjusted according to the control component instructions, the beautification component instructions, the quick typesetting mode instructions and the page jump logic instructions, and the adjusted control software framework is output.
[0020] After generating the control instruction table, the system will generate the control software framework based on the graphical editing instructions triggered by the user. First, the system will parse the graphical editing instructions input by the user, and then obtain the corresponding control component instructions, beautification component instructions, quick typesetting method instructions, and page jump logic instructions. That is, by parsing the graphical editing instructions input by the user, various editing instructions for editing and adjusting the blank software framework can be obtained. After executing these various instructions in the blank software framework, that is, adjusting the components, typesetting, and page connection methods within the blank software framework according to the execution results of these various instructions, the control software framework can be obtained.
[0021] As a preferred example, the control component instructions include: button touch form instructions, slide bar touch form instructions, video frame touch form instructions and web page frame touch form instructions.
[0022] As a preferred example, the beautification component instructions include: frame setting instructions, picture setting instructions, line setting instructions, text setting instructions and background setting instructions.
[0023] As a preferred example, the quick typesetting mode instructions include: layer adjustment instructions, alignment instructions, array instructions, scale adjustment instructions, clone and copy instructions, and coordinate fine-tuning instructions.
[0024] As a preferred example, associating the control instruction table with the components in the control software framework according to the control interface and compiling them into corresponding control engineering files according to a preset private protocol specifically includes:
[0025] In response to the selection association instruction, a corresponding association selector is constructed, and the selection association instruction is parsed by the association selector to obtain a plurality of association binding relationships;
[0026] According to the several association and binding relationships, the instruction codes in the control instruction table and the control components in the control software framework are screened, matched and associated and bound, so that the instruction codes are associated and bound one-to-one with the corresponding control components, and the associated and bound data are compiled and processed according to the private protocol to obtain the control engineering file.
[0027] To determine the association relationship between each instruction in the control instruction table and each component in the control software framework, it is necessary to build an association selector in the control software framework and trigger the selector to execute the selection association instruction input by the user, that is, trigger the association selector to enter the selection interface, and perform one-to-one pairing association according to the graphical component and control instruction code corresponding to each instruction in the selection association instruction, so as to realize the selection association between the control instruction table and each component in the control software framework and obtain the corresponding control engineering file.
[0028] By binding the graphical components and the control instruction code, and performing software engineering compilation on the two after the binding is completed, and then compiling to form the corresponding central control engineering file, namely the control engineering file, when the user triggers the control, the control system will send the corresponding control instruction code to the system in response to the trigger operation.
[0029] As a preferred example, the step of sending the corresponding control engineering file to the corresponding target client according to the control interface calling instruction includes:
[0030] Parsing the control interface call instruction to obtain the identity authentication information and control file requirement information of the target client, performing identity authentication on the identity authentication information, and obtaining a verification result;
[0031] When the verification result is that the identity authentication information is verified successfully, the corresponding control engineering file is retrieved according to the control file requirement information and sent to the target client, and the control instruction code fed back by the target client is executed.
[0032] When a user sends a control interface access command through the client, the system first authenticates the authentication information in the access command. This means determining the identity of the client user and the permissions associated with that user. Only authenticated users can access the corresponding control project files. By performing both authentication and permission verification on received commands, the system prevents theft of control information and ensures data security and operational stability for each device controlled by the system, preventing the controlled devices from being manipulated by abnormal control data.
[0033] After confirming that the identity of the user corresponding to the client has been verified, the system will retrieve the corresponding project file and send it to the corresponding client according to the needs of the client. Users of various platform clients, including Windows, IOS, Android and WEB, can interpret the data of the received project file through the same private protocol, and obtain the control interface generated in the system for each controlled device, realizing one-time compilation and multi-terminal use of the control system, saving a lot of development costs, and also improving the development efficiency of the control system.
[0034] As a preferred example, the executing the control instruction code fed back by the target client includes:
[0035] According to the control instruction code, corresponding control protocol data is obtained by querying the corresponding control instruction table, and the control protocol data is sent to the corresponding target device according to the device interface form in the control instruction code, so that the target device executes the control protocol data and feeds back corresponding execution response data;
[0036] The execution response data is received, and the execution response data is sent to the target client according to the control instruction data, so that the target client displays the execution response data according to the control instruction data.
[0037] When the system receives a control command code transmitted by the client, it will determine the corresponding controlled device based on the device interface type corresponding to the command code, and send the control protocol data corresponding to the command code to the corresponding target device, so that the corresponding target controlled device executes the control protocol data, thereby enabling the user to control the controlled device by sending the command code through the client, reducing the delay in system response speed and improving the system's operating performance. In addition, the user only needs to send an operation instruction through a simple command code, and the system can extract the control protocol data through the command code to execute the corresponding control operation. This means that the system can send a large number of combined control commands at the same time, and the system can ensure its command response speed while receiving a large number of control instructions, effectively improving the system's command response execution efficiency.
[0038] Accordingly, an embodiment of the present invention further provides a graphical editing control interface generation device, the control interface generation device comprising a control instruction generation module, a control file generation module and a control interface transmission module; wherein:
[0039] The control instruction generation module is used to receive an initial control instruction code, assign an action value to the initial control instruction code according to the control protocol of the target device, and integrate the assigned control instruction code into a control instruction table;
[0040] The control file generation module is configured to respond to a graphical editing signal, receive a graphical editing instruction, and construct a blank software framework; parse and adjust the blank software framework according to the graphical editing instruction to obtain a control software framework; associate the control instruction table with components in the control software framework; and compile the control instruction table into a corresponding control engineering file according to a preset proprietary protocol;
[0041] The control interface transmission module is used to respond to the control interface call instruction and send the corresponding control engineering file to the corresponding target client according to the control interface call instruction, so that the target client can parse the control engineering file and obtain and display the corresponding control software interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 : A flow chart of an embodiment of a method for generating a graphical editing control interface provided by the present invention;
[0043] Figure 2 : A structural diagram of an embodiment of the graphical editing control interface generation device provided by the present invention. DETAILED DESCRIPTION
[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0045] Example 1
[0046] Please refer to Figure 1 , which is a flow chart of an embodiment of the method for generating a graphical editing control interface provided by the present invention, including steps 101 to 103, each of which is specifically as follows:
[0047] Step 101: receiving an initial control instruction code, assigning an action value to the initial control instruction code according to a control protocol of a target device, and integrating the assigned control instruction code into a control instruction table.
[0048] The control interface generation method provided by the embodiment of the present invention, after receiving the initial control instruction code input by the user, will first assign an action to the initial control instruction code according to the control protocol of different third-party devices, i.e., the target device, that is, determine the instruction action that can be achieved by the instruction code, and assign the determined instruction action to the corresponding control instruction code, and then integrate all the assigned control instruction codes into a control instruction table and store it in the system, providing a data basis for the subsequent generation of control engineering files.
[0049] Specifically, the receiving of the initial control instruction code in this embodiment and the performing of action assignment on the initial control instruction code according to the control protocol of the target device specifically include:
[0050] Parsing the initial control instruction code to obtain the device control requirements and corresponding device interface form of the target device corresponding to each instruction code, and obtaining the corresponding control protocol according to the device interface form;
[0051] By using the control protocol data in the control protocol, each instruction code in the initial control instruction code is assigned a control action value to obtain the assigned control instruction code.
[0052] In order to subsequently determine the corresponding operating instructions to be executed by each component of the system, the control interface generation method provided by the present invention, when receiving the initial control instruction code input by the user, will first determine the control protocol corresponding to each interface form of the device interface form in the initial control instruction code, that is, match the control protocol of the corresponding device through the interface form of the target device, that is, the controlled device, and assign an action to each instruction code in the initial control instruction code through the protocol data corresponding to the control protocol obtained by matching, that is, assign a control action to each instruction code, so that each instruction code corresponds to a certain control action, thereby realizing the control action assignment of the instruction code, and then converting the instruction code into a control instruction code, providing a data basis for the subsequent generation of control engineering files.
[0053] Regarding the above method, as another example of this embodiment, the system first generates a control instruction code. After generating the instruction code, it associates the instruction code with the target controlled device. Based on the determined controlled device (i.e., a third-party device) and the device's interface type (i.e., I / O port type), the system determines the control protocol corresponding to the instruction code and the corresponding control protocol data. After determining the control protocol data, the system assigns a control action to the instruction code based on the control protocol data and specifies the action name.
[0054] Therefore, each assigned instruction code contains information including the instruction code's I / O interface format, control protocol data, target controlled device, and control action name. For each type of third-party controlled device group requiring centralized control, a corresponding instruction code table is generated using this method. Once the instruction code table is edited, the table is submitted to the system server as an XML file for storage, resulting in a control instruction table corresponding to each controlled device.
[0055] Step 102: In response to a graphical editing signal, receive a graphical editing instruction and construct a blank software framework, parse and adjust the blank software framework according to the graphical editing instruction, obtain a control software framework, associate the control instruction table with the components in the control software framework, and compile it into a corresponding control engineering file according to a preset private protocol.
[0056] After generating the control instruction table, the system will also respond to a graphical editing signal triggered by the user, receive the graphical editing instructions accompanying the signal, and simultaneously construct a blank software framework for executing the graphical editing instructions. The system then adjusts the blank software framework according to the graphical editing instructions, executing the graphical editing instructions within the software framework so that the execution results corresponding to the editing instructions are reflected within the framework, thereby constructing the corresponding control software framework. After the software framework is constructed, the control instructions in the control instruction table are associated with the components within the software framework, allowing the user to trigger the corresponding control instructions by triggering the components. The associated custom software interface is then compiled using a proprietary protocol and an XML engineering data file is generated for subsequent user interface restoration, display, and invocation on client platforms such as Windows, iOS, Android, and the Web. This approach supports user-level custom editing settings and generates control engineering files, eliminating the limitations of existing customized development methods, improving the flexibility, convenience, and rapid scalability of control system construction and adjustment, while also reducing the economic cost of control system construction. At the same time, by compiling the associated and bound software interface data into a control engineering file through a private protocol, it can be ensured that all types of clients can interpret and process the file through the corresponding private protocol, thereby realizing cross-platform transmission of the control engineering file, that is, "one compilation, multi-terminal use".
[0057] Specifically, the parsing and adjusting the blank software framework according to the graphical editing instruction in this embodiment specifically includes:
[0058] Parsing the graphical editing instructions to obtain corresponding control component instructions, beautification component instructions, quick typesetting instructions and page jump logic instructions;
[0059] The blank components in the blank software framework are respectively adjusted according to the control component instructions, the beautification component instructions, the quick typesetting mode instructions and the page jump logic instructions, and the adjusted control software framework is output.
[0060] After generating the control instruction table, the system will generate the control software framework based on the graphical editing instructions triggered by the user. First, the system will parse the graphical editing instructions input by the user, and then obtain the corresponding control component instructions, beautification component instructions, quick typesetting method instructions, and page jump logic instructions. That is, by parsing the graphical editing instructions input by the user, various editing instructions for editing and adjusting the blank software framework can be obtained. After executing these various instructions in the blank software framework, that is, adjusting the components, typesetting, and page connection methods within the blank software framework according to the execution results of these various instructions, the control software framework can be obtained.
[0061] Furthermore, the control component instructions described in this embodiment include: button touch form instructions, slider touch form instructions, video frame touch form instructions and web page frame touch form instructions, wherein the button touch form instructions include multi-form button forms, such as: switch button, touch button, self-locking button and text button; the beautification component instructions include: border setting instructions, picture setting instructions, line setting instructions, text setting instructions and background setting instructions; the quick typesetting method instructions include: layer adjustment instructions, alignment instructions, array mode instructions, proportion adjustment instructions, clone copy instructions and coordinate fine-tuning instructions.
[0062] With respect to the above-mentioned method for generating a control software framework, this embodiment also provides another example. In this example, the system, in the form of graphic editing software, creates a blank canvas to provide users with various modular forms of graphical control components (including buttons of different touch forms, sliders, video frames, and web page frames, etc.), UI beautification components (including borders, pictures, lines, text, and background settings, etc.), various quick typesetting methods (including various forms of alignment, array methods, proportional adjustment, cloning and copying, coordinate fine-tuning, and layer adjustment, etc.), and settings for jump logic between various pages, etc. Through the graphic editing software provided by the system and the various components provided by the blank canvas, users can drag and control the layout of graphic elements, set graphic styles, and page jump relationships, etc., through a WYSIWYG graphic typesetting editing method, thereby building a control software framework with multi-level page jumps, i.e., the control software framework described in this embodiment.
[0063] Furthermore, in this embodiment, associating the control instruction table with the components in the control software framework according to the control interface and compiling them into corresponding control engineering files according to a preset private protocol specifically includes:
[0064] In response to the selection association instruction, a corresponding association selector is constructed, and the selection association instruction is parsed by the association selector to obtain a plurality of association binding relationships;
[0065] According to the several association and binding relationships, the instruction codes in the control instruction table and the control components in the control software framework are screened, matched and associated and bound, so that the instruction codes are associated and bound one-to-one with the corresponding control components, and the associated and bound data are compiled and processed according to the private protocol to obtain the control engineering file.
[0066] To determine the association relationship between each instruction in the control instruction table and each component in the control software framework, it is necessary to build an association selector in the control software framework and trigger the selector to execute the selection association instruction input by the user, that is, trigger the association selector to enter the selection interface, and perform one-to-one pairing association according to the graphical component and control instruction code corresponding to each instruction in the selection association instruction, so as to realize the selection association between the control instruction table and each component in the control software framework and obtain the corresponding control engineering file.
[0067] By binding the graphical components and the control instruction code, and performing software engineering compilation on the two after the binding is completed, and then compiling to form the corresponding central control engineering file, namely the control engineering file, when the user triggers the control, the control system will send the corresponding control instruction code to the system in response to the trigger operation.
[0068] In addition to the above-mentioned selection association method, this embodiment also provides another example. In this example, while the graphical interface is being edited and designed or after the interface layout design is completed, the system connects to the server to obtain the control instruction table generated and provided in step 101, reads and generates a selector in the graphical interface editing software, and then selects the graphical control components one by one, enters the selection interface, and simply selects the binding instruction code according to the action name annotation of each instruction code to complete the binding of the control instruction to the control. After the control is bound, the user subsequently triggers the control in the control software interface, that is, when the graphical control component responds to the control action, the instruction code can be sent to the system.
[0069] After completing the UI interface design and instruction code binding, the system will compile the currently edited and designed software project into an XML central control project file according to a private protocol through the project compilation module integrated in the interface editing software, that is, the control project file described in this embodiment. After the compilation is completed, the XML file and all the custom UI interface element resources used in the project will be uploaded to the system's central control server for storage, waiting for subsequent user client calls.
[0070] Step 103: In response to the control interface calling instruction, the corresponding control engineering file is sent to the corresponding target client according to the control interface calling instruction, so that the target client parses the control engineering file and obtains and displays the corresponding control software interface.
[0071] After generating the control engineering file, the system will also respond to the control interface call instruction triggered by the user from the client, determine the control engineering file to be called based on the instruction, and feed the determined engineering file back to the corresponding client, thereby realizing the call and display of the control system interface. The user can then control the controlled devices controlled by the control system through the called interface. By triggering the various components on the control system in the control engineering file and sending the control instruction code corresponding to the component to the system, the system can then find the control protocol data corresponding to the instruction code in the stored control instruction table, as well as the transmission object and interface method corresponding to the control protocol data, and distribute the protocol data converted from the instruction code according to the corresponding different interface methods. However, if the client directly sends control protocol data to the system to control third-party controlled devices, the control protocol data of the devices is relatively long. Therefore, in complex scenarios, if a large number of device groups are enabled to be controlled at the same time according to the preset plan and a large amount of control protocol data needs to be sent, the instantaneous data volume generated is large. However, by transmitting control instruction codes to realize the transmission of control data, that is, using instruction codes as transmission middleware, the response speed delay and system operation lag problems in large data volumes and low bandwidth situations are avoided, thereby improving system response efficiency and operation execution efficiency.
[0072] Specifically, the step of sending the corresponding control engineering file to the corresponding target client according to the control interface calling instruction in this embodiment includes:
[0073] Parsing the control interface call instruction to obtain the identity authentication information and control file requirement information of the target client, performing identity authentication on the identity authentication information, and obtaining a verification result;
[0074] When the verification result is that the identity authentication information is verified successfully, the corresponding control engineering file is retrieved according to the control file requirement information and sent to the target client, and the control instruction code fed back by the target client is executed.
[0075] When a user sends a control interface access command through the client, the system first authenticates the authentication information in the access command. This means determining the identity of the client user and the permissions associated with that user. Only authenticated users can access the corresponding control project files. By performing both authentication and permission verification on received commands, the system prevents theft of control information and ensures data security and operational stability for each device controlled by the system, preventing the controlled devices from being manipulated by abnormal control data.
[0076] After confirming that the identity of the user corresponding to the client has been verified, the system will retrieve the corresponding project file and send it to the corresponding client according to the needs of the client. Users of various platform clients, including Windows, IOS, Android and WEB, can interpret the data of the received project file through the same private protocol, and obtain the control interface generated in the system for each controlled device, realizing one-time compilation and multi-terminal use of the control system, saving a lot of development costs, and also improving the development efficiency of the control system.
[0077] Furthermore, in this embodiment, executing the control instruction code fed back by the target client includes:
[0078] According to the control instruction code, corresponding control protocol data is obtained by querying the corresponding control instruction table, and the control protocol data is sent to the corresponding target device according to the device interface form in the control instruction code, so that the target device executes the control protocol data and feeds back corresponding execution response data;
[0079] The execution response data is received, and the execution response data is sent to the target client according to the control instruction data, so that the target client displays the execution response data according to the control instruction data.
[0080] When the system receives a control command code transmitted by the client, it will determine the corresponding controlled device based on the device interface type corresponding to the command code, and send the control protocol data corresponding to the command code to the corresponding target device, so that the corresponding target controlled device executes the control protocol data, thereby enabling the user to control the controlled device by sending the command code through the client, reducing the delay in system response speed and improving the system's operating performance. In addition, the user only needs to send an operation instruction through a simple command code, and the system can extract the control protocol data through the command code to execute the corresponding control operation. This means that the system can send a large number of combined control commands at the same time, and the system can ensure its command response speed while receiving a large number of control instructions, effectively improving the system's command response execution efficiency.
[0081] Regarding the control system transmission method between the above-mentioned client and system server, this embodiment also provides another example. In this example, the original state of the distributed control system of the user client is a blank software without any interface information, but the network communication between the client and the system server has been opened up.
[0082] Therefore, if users need to access the central control system to control the controlled devices, they need to first connect to the login server and then obtain the interface engineering XML file and resource files uploaded to the server in the above steps. That is, after the system server determines the resource files and interface files required by the user, it will transmit them to the client through the already established network communication. When the client receives the corresponding files, it will automatically parse the XML engineering file and, based on the relationship between the components and resource files described in the engineering file, completely restore and display the designed software interface and page hierarchy. Therefore, Windows, IOS, Android, and WEB platforms only need to make a universal blank client according to the agreed private engineering parsing protocol to achieve a one-time compilation of the custom project, which can support the use of clients on multiple platforms, greatly saving development costs and time.
[0083] Through the above method, the client obtains a complete sub-controller software, which is displayed on the client application interface. At this point, when the user triggers any control on the control interface, such as button A, the command code 1 associated with button A is sent to the system's central control server according to a proprietary communication protocol. Upon receiving command code 1, the central control server locates the control protocol data corresponding to that command code in a locally stored command table. Based on the I / O port type and device object corresponding to that command code, the central control server sends the control data to the target controlled device, thereby enabling operational control of the third-party device.
[0084] Because this embodiment uses instruction codes as middleware to transmit control instructions, when a single piece of protocol data from a target control device is long, such as infrared or serial port data, that is, when such data needs to simultaneously control hundreds or thousands of different devices through a single control action, the longer the control data to be transmitted, the more likely it is that the control response speed will be significantly delayed due to network conditions, thus seriously affecting the effectiveness of the central control system. In contrast, this embodiment transmits control instructions through short instruction codes. After receiving the instruction codes, the system server can filter and process the instruction table and distribute it to the processing terminals of each I / O device, further improving the transmission efficiency of the control protocol data.
[0085] The client provided in this embodiment is a multi-platform client, including multiple platforms such as Windows, IOS, Android and WEB.
[0086] In summary, the control interface generation method provided by this embodiment has the following advantages:
[0087] At the development level, once the initial version of the software, i.e., the control engineering file described in this embodiment, is completed, if a third-party device that already supports the docking method is subsequently added, the central control software system does not need to be modified, and the user only needs to customize and adjust the engineering interface. If there is a need to dock with a new third-party device that does not use a conventional protocol, only the central control server needs to be locally developed and docked with the third-party device, and no modifications are required to the graphical editing instructions or the client software of each different platform. In other words, the interface of the central control system provided by this embodiment and the control data have been well separated. Therefore, this embodiment saves a lot of software development and indirectly saves money and time costs for software development.
[0088] At the customer usage level, even if there are clients of multiple platforms, the interface generation method system provided by this embodiment does not require any other workload or consume other development and customization costs, because each platform client is actually a blank software framework with no content loaded, but has agreed on the same interface engineering parsing private protocol, so the same compiled engineering file is obtained, and the same software control interface is interpreted and restored, realizing one-time editing and design, and simultaneous use on multiple terminals.
[0089] In order to better illustrate the working principle and step flow of the method and device for generating a graphical editing control interface of the present invention, reference may be made to, but not limited to, the relevant records above.
[0090] Accordingly, see Figure 2 , Figure 2 This is a structural diagram of an embodiment of the graphical editing control interface generation device provided by the present invention. Figure 2 As shown, the control interface generating device includes a control instruction generating module 201, a control file generating module 202 and a control interface transmitting module 203; wherein:
[0091] The control instruction generation module 201 is used to receive an initial control instruction code, assign an action value to the initial control instruction code according to a control protocol of a target device, and integrate the assigned control instruction code into a control instruction table.
[0092] Furthermore, the control instruction generation module 201 receives the initial control instruction code and assigns an action value to the initial control instruction code according to the control protocol of the target device, specifically including:
[0093] Parsing the initial control instruction code to obtain the device control requirements and corresponding device interface form of the target device corresponding to each instruction code, and obtaining the corresponding control protocol according to the device interface form;
[0094] By using the control protocol data in the control protocol, each instruction code in the initial control instruction code is assigned a control action value to obtain the assigned control instruction code.
[0095] The control file generation module 202 is used to respond to the graphical editing signal, receive the graphical editing instructions and construct a blank software framework, parse and adjust the blank software framework according to the graphical editing instructions, obtain the control software framework, and associate the control instruction table with the components in the control software framework, and compile it into a corresponding control engineering file according to a preset private protocol.
[0096] Furthermore, the control file generation module 202 parses and adjusts the blank software framework according to the graphical editing instructions, specifically including:
[0097] Parsing the graphical editing instructions to obtain corresponding control component instructions, beautification component instructions, quick typesetting instructions and page jump logic instructions;
[0098] The blank components in the blank software framework are respectively adjusted according to the control component instructions, the beautification component instructions, the quick typesetting mode instructions and the page jump logic instructions, and the adjusted control software framework is output.
[0099] Furthermore, the control component instructions of the control file generation module 202 include: button touch form instructions, slide bar touch form instructions, video frame touch form instructions and web page frame touch form instructions.
[0100] Furthermore, the beautification component instructions of the control file generation module 202 include: frame setting instructions, picture setting instructions, line setting instructions, text setting instructions and background setting instructions.
[0101] Furthermore, the quick typesetting instructions of the control file generation module 202 include: layer adjustment instructions, alignment instructions, array instructions, scale adjustment instructions, clone and copy instructions, and coordinate fine-tuning instructions.
[0102] Furthermore, the control file generation module 202 associates the control instruction table with the components in the control software framework according to the control interface and compiles them into corresponding control engineering files according to a preset private protocol, specifically including:
[0103] In response to the selection association instruction, a corresponding association selector is constructed, and the selection association instruction is parsed by the association selector to obtain a plurality of association binding relationships;
[0104] According to the several association and binding relationships, the instruction codes in the control instruction table and the control components in the control software framework are screened, matched and associated and bound, so that the instruction codes are associated and bound one-to-one with the corresponding control components, and the associated and bound data are compiled and processed according to the private protocol to obtain the control engineering file.
[0105] The control interface transmission module 203 is used to respond to the control interface call instruction and send the corresponding control engineering file to the corresponding target client according to the control interface call instruction, so that the target client can parse the control engineering file and obtain and display the corresponding control software interface.
[0106] Furthermore, the control interface transmission module 203 sends the corresponding control engineering file to the corresponding target client according to the control interface call instruction, including:
[0107] Parsing the control interface call instruction to obtain the identity authentication information and control file requirement information of the target client, performing identity authentication on the identity authentication information, and obtaining a verification result;
[0108] When the verification result is that the identity authentication information is verified successfully, the corresponding control engineering file is retrieved according to the control file requirement information and sent to the target client, and the control instruction code fed back by the target client is executed.
[0109] Furthermore, the control interface transmission module 203 executes the control instruction code fed back by the target client, including:
[0110] According to the control instruction code, corresponding control protocol data is obtained by querying the corresponding control instruction table, and according to the device interface form and device object in the control instruction code, the control protocol data is sent to the corresponding target device, so that the target device executes the control protocol data and feeds back corresponding execution response data;
[0111] The execution response data is received, and the execution response data is sent to the target client according to the control instruction data, so that the target client displays the execution response data according to the control instruction data.
[0112] In summary, the embodiments of the present invention provide a method and device for generating a graphically edited control interface, which assigns an action to the received initial control instruction code through the control protocol of the target device, integrates the assigned instruction codes to obtain a control instruction table; receives a graphical editing instruction according to the responsive graphical editing signal, constructs a blank software framework, adjusts the blank software framework according to the graphical editing instruction, obtains a control software framework, and associates the control instruction table and the control software framework to compile into a control engineering file; sends the control engineering file to the corresponding target client according to the responsive control interface call instruction, so that the client obtains the control software interface according to the engineering file. The graphical editing instruction supports user-level custom editing and setting of the control engineering file, thereby improving the flexibility, convenience, and rapid scalability of control system construction and adjustment; and uses the instruction code as a transmission middleware to improve the system response efficiency and operation execution efficiency.
[0113] The specific embodiments described above further illustrate the objectives, technical solutions, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A method for generating a graphical editing control interface, characterized in that: The following steps are involved: receiving an initial control instruction code, assigning an action value to the initial control instruction code according to a control protocol of a target device, and integrating the assigned control instruction codes into a control instruction table; In response to a graphical editing signal, receiving a graphical editing instruction and constructing a blank software framework, parsing and adjusting the blank software framework according to the graphical editing instruction to obtain a control software framework, associating the control instruction table with components in the control software framework, and compiling the control instruction table into a corresponding control engineering file according to a preset proprietary protocol; In response to the control interface call instruction, the corresponding control engineering file is sent to the corresponding target client according to the control interface call instruction, so that the target client parses the control engineering file, obtains and displays the corresponding control software interface; The step of calling the control interface instruction and sending the corresponding control engineering file to the corresponding target client includes: Parsing the control interface call instruction to obtain the identity authentication information and control file requirement information of the target client, performing identity authentication on the identity authentication information, and obtaining a verification result; When the verification result is that the identity authentication information is verified to be passed, the corresponding control engineering file is retrieved according to the control file requirement information and sent to the target client, and the control instruction code fed back by the target client is executed; The executing the control instruction code fed back by the target client includes: According to the control instruction code, corresponding control protocol data is obtained by querying the corresponding control instruction table, and the control protocol data is sent to the corresponding target device according to the device interface form in the control instruction code, so that the target device executes the control protocol data and feeds back corresponding execution response data; receiving the execution response data, and sending the execution response data to the target client according to the control instruction data, so that the target client displays the execution response data according to the control instruction data; The initial control instruction code is input by the user.
2. A method for generating a graphical editing control interface according to claim 1, characterized in that: The receiving of the initial control instruction code and performing action assignment on the initial control instruction code according to the control protocol of the target device specifically includes: Parsing the initial control instruction code to obtain the device control requirements and corresponding device interface form of the target device corresponding to each instruction code, and obtaining the corresponding control protocol according to the device interface form; By using the control protocol data in the control protocol, each instruction code in the initial control instruction code is assigned a control action value to obtain the assigned control instruction code.
3. The method for generating a graphical editing control interface according to claim 1, wherein: The parsing and adjusting the blank software framework according to the graphical editing instruction specifically includes: Parsing the graphical editing instructions to obtain corresponding control component instructions, beautification component instructions, quick typesetting instructions and page jump logic instructions; The blank components in the blank software framework are respectively adjusted according to the control component instructions, the beautification component instructions, the quick typesetting mode instructions and the page jump logic instructions, and the adjusted control software framework is output.
4. A method for generating a graphical editing control interface according to claim 3, characterized in that: The control component instructions include: button touch form instructions, slide bar touch form instructions, video frame touch form instructions and web page frame touch form instructions.
5. The method for generating a graphical editing control interface according to claim 3, wherein: The beautification component instructions include: frame setting instructions, picture setting instructions, line setting instructions, text setting instructions and background setting instructions.
6. A method for generating a graphical editing control interface according to claim 5, characterized in that: The quick typesetting mode instructions include: layer adjustment instructions, alignment instructions, array mode instructions, proportion adjustment instructions, clone copy instructions and coordinate fine-tuning instructions.
7. A method for generating a graphical editing control interface according to claim 6, characterized in that: According to the control interface, the control instruction table is associated with the components in the control software framework, and compiled into a corresponding control engineering file according to a preset private protocol, specifically including: In response to the selection association instruction, a corresponding association selector is constructed, and the selection association instruction is parsed by the association selector to obtain a plurality of association binding relationships; According to the several association and binding relationships, the instruction codes in the control instruction table and the control components in the control software framework are screened, matched and associated and bound, so that the instruction codes are associated and bound one-to-one with the corresponding control components, and the associated and bound data are compiled and processed according to the private protocol to obtain the control engineering file.
8. A graphical editing control interface generation device, characterized in that: The control interface generation device includes a control instruction generation module, a control file generation module and a control interface transmission module; wherein: The control instruction generation module is used to receive an initial control instruction code, assign an action value to the initial control instruction code according to the control protocol of the target device, and integrate the assigned control instruction code into a control instruction table; The control file generation module is configured to respond to a graphical editing signal, receive a graphical editing instruction, and construct a blank software framework; parse and adjust the blank software framework according to the graphical editing instruction to obtain a control software framework; associate the control instruction table with components in the control software framework; and compile the control instruction table into a corresponding control engineering file according to a preset proprietary protocol; The control interface transmission module is used to respond to the control interface call instruction and send the corresponding control engineering file to the corresponding target client according to the control interface call instruction, so that the target client parses the control engineering file and obtains and displays the corresponding control software interface; The step of calling the control interface instruction and sending the corresponding control engineering file to the corresponding target client includes: Parsing the control interface call instruction to obtain the identity authentication information and control file requirement information of the target client, performing identity authentication on the identity authentication information, and obtaining a verification result; When the verification result is that the identity authentication information is verified to be passed, the corresponding control engineering file is retrieved according to the control file requirement information and sent to the target client, and the control instruction code fed back by the target client is executed; The executing the control instruction code fed back by the target client includes: According to the control instruction code, corresponding control protocol data is obtained by querying the corresponding control instruction table, and the control protocol data is sent to the corresponding target device according to the device interface form in the control instruction code, so that the target device executes the control protocol data and feeds back corresponding execution response data; receiving the execution response data, and sending the execution response data to the target client according to the control instruction data, so that the target client displays the execution response data according to the control instruction data; The initial control instruction code is input by the user.
Citation Information
Patent Citations
Software interface configuration method and device, terminal equipment, system and storage medium
CN116185536A
Visual access method, device and system of equipment, equipment and medium
CN117319198A