Graphical editing control interface generation method and device

Through the control interface generation method of graphical editing, the problem of low scalability and reusability of the central control system is solved, more efficient system operation and maintenance and control performance is achieved, cost is reduced, and cross-platform transmission is supported.

CN119645381AActive Publication Date: 2025-03-18广州市迪士普音响科技有限公司
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411713801.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-18
Estimated Expiration
2044-11-27

AI Technical Summary

Technical Problem

The existing central control system software solutions have low scalability and software reusability, which makes it impossible for users to flexibly adjust the software to adapt to scenario changes and device updates, and rely heavily on developers' intervention, which increases costs and complexity.

Method used

Through the graphically edited control interface generation method, the initial control instruction code is received and the action assignment is assigned according to the control protocol of the target device, and integrated into a control instruction table; in response to the graphically edited signal, a blank software framework is built and adjusted according to the editing instructions, the control instruction table and the software framework are associated, and the control instruction file is compiled into a control project file; the control project file is sent to the client to display and call the control software interface.

Benefits of technology

It improves the scalability and operation and maintenance efficiency of the central control system, reduces the delay in the system response speed, improves the system's control performance, reduces the economic cost of the control system construction, and supports cross-platform transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645381A_ABST
    Figure CN119645381A_ABST
Patent Text Reader

Abstract

The invention discloses a graphical editing control interface generation method and device, and the method comprises the steps: carrying out the motion assignment of a received initial control instruction code through a control protocol of target equipment, and integrating the instruction codes after assignment to obtain a control instruction list; a graphical editing instruction is received according to the responded graphical editing signal, a blank software framework is constructed, the blank software framework is adjusted according to the graphical editing instruction, a control software framework is obtained, and the control instruction list and the control software framework are associated and compiled into a control engineering file; and sending the control project file to the corresponding target client according to the responded control interface calling instruction, so that the client obtains a control software interface according to the project file. A graphical editing instruction supports a user level to customize, edit and set a control project file, so that the flexibility, convenience and rapid expansibility of construction and adjustment of the control system are improved; and the instruction code is used as transmission middleware, so that the system reaction efficiency and the operation execution efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

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 development of science and technology, the current market has an increasing demand for centralized and systematic control of various third-party devices. Traditional control systems usually adopt a centralized control method based on customized platforms, that is, according to the large-scale multi-system and multi-device situation, customized development integrates multiple independent system devices into a set of central control software through the service platform protocol by protocol, and customizes the control plan according to customer needs, which can meet the user's needs to integrate various independent systems together for control.

[0003] However, the current central control solutions rely heavily on customized development. It is necessary to determine the UI solution, scenario business requirements, etc. according to customer needs, and determine in advance the type and even quantity of devices that need to be connected, and then connect the protocols with the system integrated controlled device types one by one. Therefore, the generated software products are fixed, highly customized and limited. In addition, since the changes in the scenario solutions of the central control in actual use and the addition, deletion, and modification of the system equipment group are continuous, each system adjustment and even fine-tuning of the interface UI often requires a lot of manpower and material resources to configure the system in a complex manner or rewrite the code. Therefore, the scalability and software reusability of the existing central control system software solutions are very low, which leads to increased costs for upgrading the central control system or changing the equipment solution.

[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, and 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 code into a control instruction table;

[0008] In response to the graphical editing signal, receiving the graphical editing instruction and constructing a blank software framework, parsing and adjusting the blank software framework according to the graphical editing instruction, obtaining a control software framework, associating the control instruction table with the components in the control software framework, and compiling into a corresponding control engineering file according to a preset private 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] After receiving the initial control instruction code input by the user, the control interface generation method provided by the present invention 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 the graphical editing signal triggered by the user, receive the graphical editing instruction attached to the signal, and synchronously build a blank software framework for executing the graphical editing instruction, and then adjust the blank software framework according to the graphical editing instruction, that is, execute the graphical editing instruction in the software framework, so that the execution result corresponding to the editing instruction is reflected in the framework, so as to build the corresponding control software framework. After completing the software framework construction, the control instructions in the control instruction table are associated with the components in the software framework, so that the user can trigger the corresponding control instruction through the trigger component, and the associated custom software interface is compiled with the private protocol engineering, and an XML engineering data file, namely the control engineering file, is generated for the user's subsequent interface restoration display and call of the client of each platform such as Windows, IOS, Android, WEB, etc. The above method supports user-level custom editing settings and generates control engineering files, abandons the limitations of the original customized development method, improves the flexibility, convenience and rapid scalability of control system construction and adjustment, and also reduces 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, "compile once, use on multiple terminals".

[0012] After the control engineering file is generated, 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 according to the instruction, and feed back the determined engineering file to the corresponding client, so as to realize the call and display of the control system interface, and the user can realize the control operation of the controlled device controlled by the control system through the called interface. By triggering various components on the control system in the control engineering file, the control instruction code corresponding to the component is sent to the system, and the system can find the control protocol data corresponding to the instruction code in the stored control instruction table according to the control instruction code, 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. If the client directly sends control protocol data to the system to control the third-party controlled device, the control protocol data of the device 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 the instruction code as the transmission middleware, the response speed delay and system operation lag problems under large data volume and low bandwidth situations are avoided, thereby improving the system response efficiency and operation execution efficiency.

[0013] As a preferred example, the receiving of the initial control instruction code and assigning an action value to the initial control instruction code according to the control protocol of the target device specifically includes:

[0014] Parsing the initial control instruction code, obtaining the device control requirements and corresponding device interface forms 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, and the assigned control instruction code is obtained.

[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 by matching and retrieving the protocol data corresponding to the control protocol, 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] According to the control component instruction, the beautification component instruction, the quick typesetting method instruction and the page jump logic instruction, the blank components in the blank software framework are adjusted, and the adjusted control software framework is output.

[0020] After the control instruction table is generated, the system will generate a control software framework according to 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 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 the above instructions in the blank software framework, that is, adjusting the components, typesetting and page connection methods in the blank software framework according to the execution results of the above 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 mode instructions, proportion adjustment instructions, clone copy instructions and coordinate fine-tuning instructions.

[0024] As a preferred example, the control instruction table is associated with the components in the control software framework according to the control interface, and is compiled into a corresponding control engineering file according to a preset private protocol, specifically including:

[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 associated 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 execute the selection association instruction input by the user by triggering the selector, that is, triggering the association selector to enter the selection interface, and pairing the graphical component and control instruction code corresponding to each instruction in the selection association instruction one by one 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 codes, 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, obtaining 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 receiving a control interface call command sent by the user through the client, the system will first authenticate the identity of the authentication information in the call command, that is, determine the identity of the corresponding user of the client, and the permissions corresponding to the user identity. Only authenticated users can call the corresponding control engineering files. By authenticating and verifying the received instructions, the problem of abnormal control information theft is avoided, and at the same time, the data security and equipment operation stability of the controlled devices controlled by the system are ensured, and abnormal control data is prevented from regulating the controlled devices.

[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 received project files through the same private protocol to 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 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, the corresponding control protocol data is obtained by querying in 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 the control instruction code transmitted by the client, it will determine the corresponding controlled device according to the device interface type corresponding to the instruction code, and send the control protocol data corresponding to the instruction 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 instruction code through the client, reducing the delay in the system response speed and improving the system's operating performance. In addition, the user only sends the operation instruction through a simple instruction code, and the system can extract the control protocol data through the instruction code to perform the corresponding control operation, which means that the system can send a large number of combined control commands at the same time, and the system can ensure its instruction response speed while receiving a large number of control instructions, effectively improving the system's instruction response execution efficiency.

[0038] Correspondingly, an embodiment of the present invention further provides a graphically edited 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 the initial control instruction code, assign action values ​​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 used to respond to the graphical editing signal, receive the graphical editing instruction and construct a blank software framework, parse and adjust the blank software framework according to the graphical editing instruction, obtain the control software framework, associate the control instruction table with the components in the control software framework, and compile into a corresponding control engineering file according to a preset private 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 parses the control engineering file and obtains and displays 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 schematic diagram of an embodiment of a graphical editing control interface generating device provided by the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] Embodiment 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] After receiving the initial control instruction code input by the user, the control interface generation method provided by the embodiment of the present invention 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 implemented 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, obtaining the device control requirements and corresponding device interface forms 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, and the assigned control instruction code is obtained.

[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 by matching and retrieving the protocol data corresponding to the control protocol, 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] With respect to the above method, as another example of this embodiment, the system will first generate a control instruction code, and after generating the instruction code, associate the instruction code with the target controlled device, and determine the control protocol corresponding to the instruction code and the control protocol data of the corresponding control protocol according to the determined controlled device, i.e., the third-party device, and the interface form of the device, i.e., the I / O port form. After determining the control protocol data, the system assigns a control action to the instruction code according to the control protocol data, and indicates the action name.

[0054] Therefore, the information contained in each instruction code after the assignment includes: the I / O interface form of the instruction code, the control protocol data, the target controlled device and the name of the control action. For various third-party controlled device groups that need to be centrally controlled, the corresponding instruction code table is formed in the above manner. After the instruction code table is edited, the table is submitted to the system server for storage in the form of an XML file, and the control instruction table corresponding to each controlled device can be obtained.

[0055] Step 102: In response to the graphical editing signal, receive the graphical editing instruction and construct a blank software framework, parse and adjust the blank software framework according to the graphical editing instruction, obtain the 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 the graphical editing signal triggered by the user, receive the graphical editing instruction attached to the signal, and synchronously build a blank software framework for executing the graphical editing instruction, and then adjust the blank software framework according to the graphical editing instruction, that is, execute the graphical editing instruction in the software framework so that the execution result corresponding to the editing instruction is reflected in the framework, thereby building the corresponding control software framework. After completing the software framework construction, the control instructions in the control instruction table are associated with the components in the software framework, so that the user can trigger the corresponding control instruction through the trigger component, and the associated custom software interface is compiled with the private protocol engineering, and an XML engineering data file is generated for the user's subsequent interface restoration display and call of the client of each platform such as Windows, IOS, Android, WEB, etc. The above method supports user-level custom editing settings and generates control engineering files, abandons the limitations of the original customized development method, improves the flexibility, convenience and rapid scalability of control system construction and adjustment, and also reduces 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, "compile once, use on multiple terminals".

[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] According to the control component instruction, the beautification component instruction, the quick typesetting method instruction and the page jump logic instruction, the blank components in the blank software framework are adjusted, and the adjusted control software framework is output.

[0060] After the control instruction table is generated, the system will generate a control software framework according to 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 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 the above instructions in the blank software framework, that is, adjusting the components, typesetting and page connection methods in the blank software framework according to the execution results of the above 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 method for generating the control software framework described above, this embodiment also provides another example. In this example, the system provides users with various modularized graphical control components (including buttons, sliders, video frames, web page frames, etc. in different touch forms), UI beautification components (including borders, pictures, lines, texts, and background settings, etc.), various quick layout methods (including various forms of alignment, array, proportion adjustment, clone copy, coordinate fine-tuning, and layer adjustment, etc.), and jump logic settings between various pages, etc., in the form of graphic editing software provided by the system and various components provided by the blank drawing board. Through the graphic editing software provided by the system and various components provided by the blank drawing board, users can drag and control the layout of graphic elements, set graphic styles, and page jump relationships, etc., through the WYSIWYG graphic layout editing method, and build a control software framework with multi-level page jumps, i.e., the control software framework described in this embodiment.

[0063] Furthermore, in this embodiment, the control instruction table is associated with the components in the control software framework according to the control interface, and is compiled into a corresponding control engineering file according to a preset private protocol, specifically including:

[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 associated 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 execute the selection association instruction input by the user by triggering the selector, that is, triggering the association selector to enter the selection interface, and pairing the graphical component and control instruction code corresponding to each instruction in the selection association instruction one by one 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 codes, 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 system is editing and designing the graphical interface or after the interface layout design is completed, the system will connect to the server to obtain the control instruction table generated and provided in step 101, read and generate a selector in the graphical interface editing software, and then select the graphic control components one by one, enter the selection interface, and simply select the binding instruction code according to the action name annotation of each instruction code, so as to complete the binding of the control instruction of the control. After completing the binding of the control, the user subsequently triggers the control in the control software interface, that is, when the graphic 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 are 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 the control engineering file is generated, 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 according to the instruction, and feed back the determined engineering file to the corresponding client, so as to realize the call and display of the control system interface, and the user can realize the control operation of the controlled device controlled by the control system through the called interface. By triggering various components on the control system in the control engineering file, the control instruction code corresponding to the component is sent to the system, and the system can find the control protocol data corresponding to the instruction code in the stored control instruction table according to the control instruction code, 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. If the client directly sends control protocol data to the system to control the third-party controlled device, the control protocol data of the device 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 the instruction code as the transmission middleware, the response speed delay and system operation lag problems under large data volume and low bandwidth situations are avoided, thereby improving the 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, obtaining 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 receiving a control interface call command sent by the user through the client, the system will first authenticate the identity of the authentication information in the call command, that is, determine the identity of the corresponding user of the client, and the permissions corresponding to the user identity. Only authenticated users can call the corresponding control engineering files. By authenticating and verifying the received instructions, the problem of abnormal control information theft is avoided, and at the same time, the data security and equipment operation stability of the controlled devices controlled by the system are ensured, and abnormal control data is prevented from regulating the controlled devices.

[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 received project files through the same private protocol to 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 improving the development efficiency of the control system.

[0077] Furthermore, the execution of the control instruction code fed back by the target client in this embodiment includes:

[0078] According to the control instruction code, the corresponding control protocol data is obtained by querying in 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 the control instruction code transmitted by the client, it will determine the corresponding controlled device according to the device interface type corresponding to the instruction code, and send the control protocol data corresponding to the instruction 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 instruction code through the client, reducing the delay in the system response speed and improving the system's operating performance. In addition, the user only sends the operation instruction through a simple instruction code, and the system can extract the control protocol data through the instruction code to perform the corresponding control operation, which means that the system can send a large number of combined control commands at the same time, and the system can ensure its instruction response speed while receiving a large number of control instructions, effectively improving the system's instruction response execution efficiency.

[0081] With respect to the control system transmission method between the above-mentioned client and the 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 and realized.

[0082] Therefore, if the user needs to access the central control system to control the controlled device, he needs to connect to the login server first, and then obtain the interface engineering XML file and resource file uploaded to the server in the above steps. That is, after the system server determines the resource file and interface file required by the user, it will transmit it to the client through the network communication that has been opened. When the client receives the corresponding file, the client will automatically parse the XML engineering file, and combine the relationship between the components and resource files described in the engineering file, etc., to completely restore and display the designed software interface and page hierarchy relationship. Therefore, Windows, IOS, Android, and WEB platforms only need to make a general blank client according to the agreed private engineering parsing protocol, which can realize the one-time compilation of the custom engineering and support the use of clients on multiple platforms, greatly saving development costs and time.

[0083] Through the above method, the client can obtain a complete sub-control terminal software, that is, the complete sub-control terminal will be displayed on the client application interface. At this time, when the user triggers any control on the control interface, such as button A, the instruction code 1 bound to button A will be sent to the system's central control server according to the private communication protocol. After receiving the instruction code 1, the central control server will find the control protocol data corresponding to the instruction code in the locally stored instruction table, and send the control data to the target controlled device according to the I / O port form and device object corresponding to the instruction code recorded in the instruction table, thereby realizing the operation control of the third-party device.

[0084] Since the present embodiment uses instruction codes as middleware to transmit control instructions, when a single piece of protocol data of the target control device is long, such as infrared or serial port data, that is, when such data needs to control hundreds or thousands of different devices at the same time through one control action, the longer the control data to be transmitted, the more likely it is that the response speed of the control will be greatly delayed due to network conditions, thus seriously affecting the use effect of the central control system. However, the present embodiment transmits control instructions through short instruction codes. After receiving the instruction codes, the system server can distribute the screening process of the instruction table to each I / O device processing terminal, 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 in this embodiment has the following advantages:

[0087] At the development level, when 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 added later, the central control software system does not need any modification, and the user only needs to customize and adjust the engineering interface. If there is a need to dock with a third-party device with a new non-conventional protocol, it is only necessary to locally develop and dock with the central control server, and there is no need to make any modifications to the graphical editing instructions and the client software of each different platform. That is, the interface of the central control system provided by this embodiment and the control data have been well separated. Therefore, this embodiment saves the development of some software and indirectly saves the money and time cost of software development;

[0088] As for customer usage, even if there are clients of various platforms, the interface generation method system provided by this embodiment does not need to perform 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 to display, thus realizing one-time editing and design, and simultaneous use of multiple terminals.

[0089] In order to better illustrate the working principle and step flow of a graphical editing control interface generation method and device of the present invention, it is possible but not limited to refer to the relevant records above.

[0090] Accordingly, see Figure 2 , Figure 2 This is a schematic diagram of the structure 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 to the initial control instruction code according to the control protocol of the target device, specifically including:

[0093] Parsing the initial control instruction code, obtaining the device control requirements and corresponding device interface forms 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, and the assigned control instruction code is obtained.

[0095] The control file generation module 202 is used to respond to the graphical editing signal, receive the graphical editing instructions and build 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 instruction, 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] According to the control component instruction, the beautification component instruction, the quick typesetting method instruction and the page jump logic instruction, the blank components in the blank software framework are adjusted, 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: a frame setting instruction, a picture setting instruction, a line setting instruction, a text setting instruction and a background setting instruction.

[0101] Furthermore, the quick typesetting instructions of the control file generation module 202 include: layer adjustment instructions, alignment instructions, array instructions, proportion adjustment instructions, clone 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 associated 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 parses the control engineering file and obtains and displays 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, obtaining 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, the corresponding control protocol data is obtained by querying in 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 embodiment of the present invention provides a method and device for generating a graphically edited control interface, which performs action assignment on the received initial control instruction code through the control protocol of the target device, integrates the assigned instruction code to obtain a control instruction table; receives a graphical editing instruction according to the responsive graphical editing signal, and 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, which improves the flexibility, convenience and rapid scalability of control system construction and adjustment; uses the instruction code as the transmission middleware to improve the system response efficiency and operation execution efficiency.

[0113] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

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 code into a control instruction table; In response to the graphical editing signal, receiving the graphical editing instruction and constructing a blank software framework, parsing and adjusting the blank software framework according to the graphical editing instruction, obtaining a control software framework, associating the control instruction table with the components in the control software framework, and compiling into a corresponding control engineering file according to a preset private protocol; 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.

2. A method for generating a graphical editing control interface as claimed in claim 1, characterized in that: The receiving of the initial control instruction code and assigning an action value to the initial control instruction code according to a control protocol of the target device specifically includes: Parsing the initial control instruction code, obtaining the device control requirements and corresponding device interface forms 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, and the assigned control instruction code is obtained.

3. A method for generating a graphical editing control interface as claimed in claim 1, characterized in that: 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; According to the control component instruction, the beautification component instruction, the quick typesetting method instruction and the page jump logic instruction, the blank components in the blank software framework are adjusted, and the adjusted control software framework is output.

4. A method for generating a graphical editing control interface as claimed in claim 1, 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. A method for generating a graphical editing control interface as claimed in claim 1, characterized in that: 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 as claimed in 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 as claimed in claim 6, characterized in that: The step of 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: 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 associated 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 method for generating a graphical editing control interface as claimed in claim 1, characterized in that: The step of calling the control interface command and sending the corresponding control engineering file to the corresponding target client includes: Parsing the control interface call instruction, obtaining 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 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.

9. A method for generating a graphical editing control interface as claimed in claim 8, characterized in that: The executing the control instruction code fed back by the target client includes: According to the control instruction code, the corresponding control protocol data is obtained by querying in 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; 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.

10. 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 the initial control instruction code, assign action values ​​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 used to respond to the graphical editing signal, receive the graphical editing instruction and construct a blank software framework, parse and adjust the blank software framework according to the graphical editing instruction, obtain the control software framework, associate the control instruction table with the components in the control software framework, and compile into a corresponding control engineering file according to a preset private 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.

Citation Information

Patent Citations

  • Processing method and apparatus of user interface

    CN105094769A

  • Automatic control device and method capable of being graphically edited, sample analyzer and medium

    CN115525273A

  • Smart home management method, device and equipment and storage medium

    CN115981170A

  • Intelligent hardware unified control method and system

    CN116009958A

  • Software interface configuration method and device, terminal equipment, system and storage medium

    CN116185536A