Interface generation method and device for engineering machinery, engineering machinery and storage medium

By detecting the communication connection and layout update signals in the host computer, the lower computer configuration information is obtained to generate and update the interface, which solves the problems of low interface generation efficiency and poor synchronization in the existing technology, and realizes an efficient and synchronous interface generation process.

CN118733030APending Publication Date: 2024-10-01HUNAN ZOOMLION CONCRETE MASCH STATION EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410737055.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the host computer interface generation efficiency is low, the interface configuration information needs to be updated frequently, and the interface cannot be synchronized when multiple host computers are connected to the same slave computer.

Method used

Obtain the mechanical component configuration information of the lower computer by detecting the communication connection signal, generate the initial interface, update the interface when the layout update signal is detected, and synchronize the interfaces of each host computer based on the updated configuration information of the associated lower computer.

Benefits of technology

There is no need to configure data on the host computer, and the adaptive generation and synchronous update of the host computer interface are realized, improving the efficiency and consistency of interface generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733030A_ABST
    Figure CN118733030A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an interface generation method and device for engineering machinery, the engineering machinery and a storage medium, and belongs to the technical field of industrial control, and the method comprises the following steps: when a communication connection signal is detected, obtaining mechanical part configuration information stored in an associated lower computer, the associated lower computer comprises a lower computer in communication connection with the upper computer; according to the mechanical part configuration information, element layout configuration information is obtained; determining component layout information of the target component based on the element layout configuration information and interface zooming data of the display equipment; rendering the target component based on the component layout information to generate an initial interface; and when a layout updating signal is detected, updating the initial interface based on the updated mechanical part configuration information in the associated lower computer to obtain a target interface. According to the method, data configuration does not need to be carried out on the upper computer, and the interface of each upper computer is automatically kept synchronous, so that the interface generation efficiency of the upper computer is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial control, and in particular to an interface generation method and device for engineering machinery, engineering machinery and a storage medium. Background Art

[0002] With the continuous development of science and technology, the host computer plays a very important role in the field of modern industrial automation. After the host computer and the slave computer establish a communication connection, the control and monitoring of the slave computer is realized according to the interface displayed by the host computer, thereby improving production efficiency.

[0003] The inventors of the present application discovered during the process of implementing the present invention that a layout configuration file (including a plurality of interface configuration information corresponding to each slave computer) is currently generated in advance for the display screen size of each host computer and the device elements of all slave computers, and the layout configuration file is stored in each host computer. When the host computer is connected to a slave computer, the interface configuration information corresponding to the currently connected slave computer is extracted from the layout configuration file, and the host computer interface is generated according to the interface configuration information.

[0004] Since the interface configuration information is generated based on the display screen size of the upper computer, if the display screen of the upper computer is replaced, the interface configuration information corresponding to each lower computer needs to be re-stored. In addition, when multiple upper computers are connected to the same lower computer, if the user adjusts the interface element information (for example, element position, element size, etc.) in the interface of one of the upper computers, since each upper computer generates the upper computer interface based on its own stored interface configuration information, the interfaces of other upper computers cannot keep pace with it. It can be seen that the current upper computer interface generation efficiency is low. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a method and device for generating an interface of an engineering machine, an engineering machine and a storage medium, so as to alleviate the current technical problem of low efficiency of generating an interface of a host computer.

[0006] In order to achieve the above-mentioned purpose, one aspect of an embodiment of the present invention provides an interface generation method for an engineering machine, the engineering machine comprising a host computer associated with a display device, the interface generation method comprising:

[0007] When a communication connection signal is detected, obtaining mechanical component configuration information stored in an associated lower computer, wherein the associated lower computer includes a lower computer that establishes a communication connection with the upper computer;

[0008] Obtaining element layout configuration information according to the mechanical component configuration information;

[0009] Determining component layout information of a target component based on the element layout configuration information and the interface scaling data of the display device;

[0010] Rendering the target component based on the component layout information to generate an initial interface;

[0011] When a layout update signal is detected, the initial interface is updated based on the updated mechanical component configuration information in the associated lower computer to obtain a target interface.

[0012] Optionally, when the communication connection signal is detected, the step of acquiring the mechanical component configuration information stored in the associated lower computer includes:

[0013] When a communication connection signal is detected, determining an associated lower computer that establishes a communication connection with the upper computer;

[0014] The mechanical component configuration information is read from the associated lower computer.

[0015] Optionally, the step of obtaining element layout configuration information according to the mechanical component configuration information includes:

[0016] The mechanical component configuration information is parsed to obtain element layout configuration information, wherein the element layout configuration information includes at least one of element configuration type, element configuration position, element configuration size, element configuration content and element configuration style information.

[0017] Optionally, the step of determining component layout information of the target component based on the element layout configuration information and the interface scaling data of the display device includes:

[0018] Based on the element configuration type, generating a target component;

[0019] The component layout information of the target component is determined according to the element configuration position, the element configuration size and the interface scaling data of the display device.

[0020] Optionally, the step of determining the component layout information of the target component according to the element configuration position, the element configuration size and the interface scaling data of the display device includes:

[0021] Determining interface scaling data of the display device according to a preset element scaling ratio and interface size information of the display device;

[0022] Determining a component layout position of the target component according to the element configuration position and the interface scaling data;

[0023] The component layout size of the target component is determined according to the element configuration size and the interface scaling data, and the component layout information includes the component layout position and the component layout size.

[0024] Optionally, the step of determining interface scaling data of the display device according to a preset element scaling ratio and interface size information of the display device includes:

[0025] The preset element scaling ratio, the initial interface size information and the current interface size information of the display device are calculated to obtain the interface scaling data of the display device, wherein the interface size information includes the initial interface size information and the current interface size information.

[0026] Optionally, the step of rendering the target component based on the component layout information to generate an initial interface includes:

[0027] The target component is rendered according to the component layout position, the component layout size, the element configuration content and the element configuration style information to generate an initial interface.

[0028] In another aspect, the present invention provides an interface generation device for engineering machinery, the interface generation device comprising:

[0029] A lower computer, used to store mechanical component configuration information; and

[0030] The host computer is configured to execute the interface generation method for engineering machinery described in any one of the above items of the present application.

[0031] In addition, another aspect of the present invention provides an engineering machinery, comprising an interface generating device for an engineering machinery as described in any one of the above items of the present application.

[0032] In addition, another aspect of the present invention provides a machine-readable storage medium, on which instructions are stored, and when the instructions are executed by a processor, the processor implements the interface generation method for engineering machinery described in any one of the above items of the present application.

[0033] Through the above technical scheme, the initial interface is adaptively generated based on the mechanical component configuration information stored in the associated lower computer and the current interface scaling data of the display device. The interface generation process does not require data configuration of the upper computer. In addition, when multiple upper computers are connected to the same lower computer, if the user adjusts the interface element information in the interface of one of the upper computers, it will trigger a layout update signal, so that the other upper computers update the initial interface based on the updated mechanical component configuration information in the associated lower computer, so that the interfaces of each upper computer remain synchronized, thereby effectively improving the efficiency of upper computer interface generation.

[0034] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0036] Figure 1 It is a flow chart of an interface generation method for engineering machinery provided in an embodiment of the present invention.

[0037] Figure 2a It is a full-screen schematic diagram of the initial interface provided by an embodiment of the present invention.

[0038] Figure 2b It is a small screen schematic diagram of the initial interface provided by an embodiment of the present invention.

[0039] Figure 3 It is a structural schematic diagram of an interface generating device for engineering machinery provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0041] One aspect of an embodiment of the present invention provides an interface generation method for an engineering machine, wherein the engineering machine includes a host computer associated with a display device. Figure 1 As shown, Figure 1 : is a flow chart of a method for generating an interface for engineering machinery provided by an embodiment of the present invention. The specific flow chart may be as follows:

[0042] S101. When a communication connection signal is detected, obtain mechanical component configuration information stored in an associated lower computer, wherein the associated lower computer includes a lower computer that establishes a communication connection with an upper computer.

[0043] The communication connection signal is a signal indicating that the upper computer has successfully established a communication connection with the associated lower computer.

[0044] In the field of mixing station control, the upper computer, lower computer and mixing station equipment are the core of the mixing station control system. Among them, the upper computer is responsible for controlling and scheduling the lower computer and mixing station equipment, and receiving and analyzing the data of the mixing station equipment; the lower computer is the control center of the mixing station equipment, responsible for receiving the instructions of the upper computer and controlling the operation of the mixing station equipment; the mixing station equipment includes various sensors, actuators and mechanical devices, etc., which are used to achieve tasks such as mixing and transportation of concrete.

[0045] Specifically, in an embodiment of the present invention, the configuration information of the mechanical components controlled by each lower computer is pre-stored (i.e., the mechanical component configuration information). The configuration information represents the various working attributes of the mechanical components, such as: material name, material quantity, feeding status, number of feeding channels, task queue information, etc. When the upper computer establishes a communication connection with the lower computer, a communication connection signal is triggered. The upper computer determines the associated lower computer with which the communication connection is established based on the communication connection signal, and reads the mechanical component configuration information from the associated lower computer.

[0046] S102. Obtain element layout configuration information according to the mechanical component configuration information.

[0047] The element layout configuration information represents the interface layout information of the elements corresponding to various working attributes of the mechanical components.

[0048] Specifically, in an embodiment of the present invention, the element layout configuration information is parsed to obtain the element layout configuration information. Optionally, the element layout configuration information includes at least one of the element configuration type (for example, button, radio button, check box, form, selector, etc.), element configuration position, element configuration size, element configuration content and element configuration style information.

[0049] In the prior art, a layout configuration file (including multiple interface configuration information corresponding to each slave computer) is usually generated based on the display screen size of the host computer and the device elements of all slave computers, and the layout configuration file is stored in each host computer. When the host computer is connected to a slave computer, the interface configuration information corresponding to the currently connected slave computer is extracted from the layout configuration file, and the host computer interface is generated according to the interface configuration information. Since multiple interface configuration information needs to be stored in each host computer, serious data redundancy is caused. In addition, if the host computer fails and needs to be replaced, in order to ensure that the host computer interface can be generated normally later, the interface configuration information corresponding to all slave computers needs to be reconfigured in the replaced host computer; in addition, since the interface configuration information is generated based on the display screen size of the host computer, if the display screen of the host computer fails and is replaced, the interface configuration information previously stored in the host computer will be invalid. In order to ensure that the host computer interface can be generated normally later, the layout configuration file needs to be updated and stored based on the replaced display screen and the device elements of all slave computers, making the data configuration process extremely cumbersome and complicated.

[0050] To avoid the above situation, in an embodiment of the present invention, the element layout configuration information can be obtained by parsing the mechanical component configuration information stored in the associated lower computer. Since the generation of the element layout configuration information does not depend on the screen size of the display device of the upper computer, and there is no need to perform data configuration on the upper computer, replacing the display device screen of the upper computer / the upper computer associated with the upper computer will not have any impact on the subsequent upper computer interface generation process, thereby effectively avoiding the problem of cumbersome data configuration in the prior art.

[0051] S103. Determine component layout information of the target component based on the element layout configuration information and the interface scaling data of the display device.

[0052] The interface scaling data is a parameter used to adjust the image position ratio and size ratio.

[0053] Specifically, in an embodiment of the present invention, a target component is first generated based on the element configuration type. For example, if the element configuration type is a button, a button is generated according to the element configuration type and the button is used as the target component. Next, the component layout information of the target component is determined according to the element configuration position, element configuration size and interface scaling data of the display device.

[0054] Optionally, the process of determining the above-mentioned component layout information may specifically include: first, determining the interface scaling data of the display device according to the preset element scaling ratio and the interface size information of the display device, then determining the component layout position of the target component according to the element configuration position and the interface scaling data, and then determining the component layout size of the target component according to the element configuration size and the interface scaling data, and using the component layout position and the component layout size as the component layout information. Among them, the preset element scaling ratio is the system interface element scaling ratio, and the interface size information includes the initial interface size information (including the default interface width and height when the display device leaves the factory) and the current interface size information (i.e., the interface width and height of the interface currently displayed by the display device). The preset element scaling ratio, the initial interface size information of the display device, and the current interface size information can be calculated to obtain the interface scaling factor of the display device, and the interface scaling factor is the above-mentioned interface scaling data.

[0055] For example, the element configuration position represents that the coordinates of the center point of the target component in the interface are (105, 300), and the element configuration size represents that the width of the target component is 2 cm and the length is 3 cm. By calculating the element configuration position and the interface scaling factor, the coordinates of the center point of the target component in the current interface are (35, 100), and the element configuration size and the interface scaling factor are calculated that the width of the target component in the current interface is 1 cm and the length is 2 cm.

[0056] S104. Render the target component based on the component layout information to generate an initial interface.

[0057] Specifically, in actual application, the position and size of each target component in the current interface can be determined according to the component layout position and component layout size corresponding to each target component. In order to facilitate subsequent users to intuitively call the functions of each component through the upper computer interface, optionally, in an embodiment of the present invention, all target components are filled according to the element configuration content and element configuration style information to form a target control, and the position and size of each target control in the current interface are adjusted according to the component layout position and component layout size to generate an initial interface.

[0058] For example, the element configuration content and element configuration style information corresponding to "feeding" are filled into the target component representing the feeding control function to form a feeding control button, and the element configuration content and element configuration style information corresponding to "task management" are filled into the target component representing the task management function to form a task management information text box, and the position and size of the feeding control button and the task management text box in the current interface are adjusted according to the component layout position and component layout size to generate an initial interface.

[0059] In addition, since the component layout position and component layout size are determined based on the interface scaling data, and the interface scaling data is determined based on the current interface size information of the display device, that is, the display position and display size of the target control in the initial interface are affected by the current interface size information, so that the initial interface can adapt to the size of the current interface. In actual application, the same host computer can be connected to multiple slave computers at the same time to generate multiple initial interfaces. Users can adjust the current interface size of the display device (for example, full-screen interface or small-screen interface) according to actual needs, so that the host computer interfaces corresponding to multiple slave computers can be switched and displayed on the display device of the same host computer. For example Figure 2a and Figure 2b As shown, Figure 2a A full-screen schematic diagram of an initial interface provided by an embodiment of the present invention, Figure 2b A schematic diagram of a small screen of an initial interface provided by an embodiment of the present invention.

[0060] S105. When a layout update signal is detected, the initial interface is updated based on the updated mechanical component configuration information in the associated lower computer to obtain a target interface.

[0061] Among them, in the prior art, when multiple host computers are connected to the same slave computer, if the user adjusts the layout of the interface elements (for example, element position, element size, etc.) in the interface of one of the host computers, since each host computer generates the host computer interface based on its own stored interface configuration information, the interfaces of other host computers cannot keep pace with it, resulting in the inability to synchronize the production line configuration.

[0062] In an embodiment of the present invention, when multiple host computers are connected to the same slave computer, if the user adjusts the layout of the target control in the interface of one of the host computers, a layout update signal will be automatically triggered, and the element layout configuration information will be updated according to the current component layout information of each target component in the initial interface, and the corresponding mechanical component configuration information will be updated, so that the updated mechanical component configuration information will be sent to the associated slave computer for storage. When the user triggers the interface refresh action, other host computers detect the layout update signal. If the layout update signal is detected, the updated mechanical component configuration information stored in the associated slave computer is re-read, and the component layout information of each target component is re-determined according to the updated mechanical component configuration information, so as to adjust the display position and size of each target control according to the component layout information, and obtain the target interface, so that the interfaces of each host computer remain synchronized, thereby ensuring the synchronization of the production line configuration.

[0063] The interface generation method for engineering machinery provided by the present invention adaptively generates an initial interface based on mechanical component configuration information stored in an associated lower computer and the current interface scaling data of a display device. The interface generation process does not require data configuration of the upper computer. In addition, when multiple upper computers are connected to the same lower computer, if the user adjusts the interface element information in the interface of one of the upper computers, the other upper computers automatically update the initial interface based on the updated mechanical component configuration information in the associated lower computers, so that the interfaces of the upper computers remain synchronized, thereby effectively improving the efficiency of upper computer interface generation.

[0064] In addition, another aspect of the present invention provides an interface generation device for engineering machinery, see Figure 3 , Figure 3 The interface generation device for engineering machinery provided by the embodiment of the present invention is specifically described, including: a lower computer 10 and an upper computer 20, the upper computer 20 is associated with a display device, wherein:

[0065] (1) Lower computer 10

[0066] The lower computer 10 is used to store the mechanical component configuration information.

[0067] (2) Host computer 20

[0068] The upper computer 20 is used to obtain the mechanical component configuration information stored in the associated lower computer when a communication connection signal is detected, wherein the associated lower computer includes a lower computer that establishes a communication connection with the upper computer.

[0069] The host computer 20 is also used for:

[0070] According to the mechanical component configuration information, the element layout configuration information is obtained.

[0071] Specifically, the host computer 20 is also used for:

[0072] Based on the element layout configuration information and the interface scaling data of the display device, component layout information of the target component is determined.

[0073] Furthermore, the host computer 20 is also used for:

[0074] Render the target component based on the component layout information to generate the initial interface.

[0075] The host computer 20 is also used for:

[0076] When a layout update signal is detected, the initial interface is updated based on the updated mechanical component configuration information in the associated lower computer to obtain a target interface.

[0077] The interface generation device for engineering machinery provided by the present invention adaptively generates an initial interface based on the mechanical component configuration information stored in the associated lower computer and the current interface scaling data of the display device. The interface generation process does not require data configuration of the upper computer. In addition, when multiple upper computers are connected to the same lower computer, if the user adjusts the interface element information in the interface of one of the upper computers, the other upper computers automatically update the initial interface based on the updated mechanical component configuration information in the associated lower computer, so that the interfaces of each upper computer remain synchronized, thereby effectively improving the efficiency of upper computer interface generation.

[0078] In addition, an embodiment of the present invention further provides an engineering machine, comprising the above-mentioned interface generation device for engineering machine. The interface generation device for engineering machine comprises a processor and a memory, and the functions that can be realized by the above-mentioned lower computer and upper computer are stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions. The processor includes a kernel, and the kernel retrieves the corresponding program unit from the memory. One or more kernels can be set, and the efficiency of the upper computer interface generation can be improved by adjusting the kernel parameters.

[0079] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0080] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the interface generation method for engineering machinery is implemented.

[0081] An embodiment of the present invention provides a processor, the processor is used to run a program, wherein the program executes the interface generation method for engineering machinery when it is run. Optionally, the processor is set in a host computer.

[0082] The embodiment of the present invention provides a device, the device includes a processor, a memory and a program stored in the memory and can be run on the processor, and the processor implements the following steps when executing the program: when a communication connection signal is detected, the mechanical component configuration information stored in the associated lower computer is obtained, wherein the associated lower computer includes a lower computer that establishes a communication connection with the upper computer; according to the mechanical component configuration information, the element layout configuration information is obtained; based on the element layout configuration information and the interface scaling data of the display device, the component layout information of the target component is determined; based on the component layout information, the target component is rendered to generate an initial interface; when a layout update signal is detected, the initial interface is updated based on the updated mechanical component configuration information in the associated lower computer to obtain the target interface. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.

[0083] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: when a communication connection signal is detected, obtaining mechanical component configuration information stored in an associated lower computer, wherein the associated lower computer includes a lower computer that establishes a communication connection with an upper computer; obtaining element layout configuration information based on the mechanical component configuration information; determining component layout information of a target component based on the element layout configuration information and interface scaling data of a display device; rendering the target component based on the component layout information to generate an initial interface; and when a layout update signal is detected, updating the initial interface based on the updated mechanical component configuration information in the associated lower computer to obtain a target interface.

[0084] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0085] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0086] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0087] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0088] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0089] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0090] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0091] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0092] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for generating an interface for engineering machinery, characterized in that: The engineering machinery includes a host computer associated with a display device, and the interface generation method includes: When a communication connection signal is detected, obtaining mechanical component configuration information stored in an associated lower computer, wherein the associated lower computer includes a lower computer that establishes a communication connection with the upper computer; Obtaining element layout configuration information according to the mechanical component configuration information; Determining component layout information of a target component based on the element layout configuration information and the interface scaling data of the display device; Rendering the target component based on the component layout information to generate an initial interface; When a layout update signal is detected, the initial interface is updated based on the updated mechanical component configuration information in the associated lower computer to obtain a target interface.

2. The interface generation method for engineering machinery according to claim 1, characterized in that: The step of acquiring the mechanical component configuration information stored in the associated lower computer when the communication connection signal is detected includes: When a communication connection signal is detected, determining an associated lower computer that establishes a communication connection with the upper computer; The mechanical component configuration information is read from the associated lower computer.

3. The interface generation method for engineering machinery according to claim 2, characterized in that: The step of obtaining element layout configuration information according to the mechanical component configuration information comprises: The mechanical component configuration information is parsed to obtain element layout configuration information, wherein the element layout configuration information includes at least one of element configuration type, element configuration position, element configuration size, element configuration content and element configuration style information.

4. The interface generation method for engineering machinery according to claim 3, characterized in that: The step of determining the component layout information of the target component based on the element layout configuration information and the interface scaling data of the display device comprises: Based on the element configuration type, generating a target component; The component layout information of the target component is determined according to the element configuration position, the element configuration size and the interface scaling data of the display device.

5. The interface generation method for engineering machinery according to claim 4, characterized in that: The step of determining the component layout information of the target component according to the element configuration position, the element configuration size and the interface scaling data of the display device comprises: Determining interface scaling data of the display device according to a preset element scaling ratio and interface size information of the display device; Determining a component layout position of the target component according to the element configuration position and the interface scaling data; The component layout size of the target component is determined according to the element configuration size and the interface scaling data, and the component layout information includes the component layout position and the component layout size.

6. The interface generation method for engineering machinery according to claim 5, characterized in that: The step of determining the interface scaling data of the display device according to the preset element scaling ratio and the interface size information of the display device comprises: The preset element scaling ratio, the initial interface size information and the current interface size information of the display device are calculated to obtain the interface scaling data of the display device, wherein the interface size information includes the initial interface size information and the current interface size information.

7. The interface generation method for engineering machinery according to claim 6, characterized in that: The step of rendering the target component based on the component layout information to generate an initial interface includes: The target component is rendered according to the component layout position, the component layout size, the element configuration content and the element configuration style information to generate an initial interface.

8. An interface generation device for engineering machinery, characterized in that: The interface generating device comprises: A lower computer, used to store mechanical component configuration information; and The host computer is configured to execute the interface generation method for engineering machinery according to any one of claims 1 to 7.

9. An engineering machine, characterized in that: It comprises an interface generating device for engineering machinery according to claim 8.

10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions, and when the instructions are executed by a processor, the processor implements the interface generation method for engineering machinery according to any one of claims 1 to 7.