Interface generation method and device and computer readable storage medium
By establishing a unified instrument interface framework and material database, the problem that instrument program interfaces in the existing technology cannot adapt to different models is solved, efficient and low-cost interface generation is achieved, and OTA updates are supported.
Patent Information
- Application Number
- CN202510008073.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-04-08
AI Technical Summary
In the prior art, the interface of the instrument program cannot adapt to different models of engineering machinery, resulting in low development efficiency and high cost.
By establishing a unified instrument interface framework and material database, the interface materials are obtained from the material databases of multiple functional areas according to the model of the target engineering machinery, and an instrument interface suitable for different models is generated.
It realizes decoupling between instrument interface generation and model configuration, improves development efficiency, reduces development costs, and supports OTA update of instrument programs.
Smart Images

Figure CN119781647A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an interface generation method, an interface generation device, a computer-readable storage medium, and a computer program product. Background Art
[0002] The instrumentation of construction machinery is an important part of construction machinery, and undertakes functions such as status monitoring, parameter setting, fault reminder, and remote operation of the entire machine. According to the functional requirements of the engine system, hydraulic system, electrical system, etc. for different types of construction machinery, it is necessary to develop matching special instrumentation programs to achieve different customized display requirements.
[0003] In related technologies, in order to meet the needs of accurately displaying status information, function settings, etc., the interfaces of instrument programs are customized and developed for fixed model configurations. Summary of the invention
[0004] The inventors of the present disclosure have discovered that the above-mentioned related technologies have the following problems: the interface of the instrument program cannot adapt to different types of engineering machinery, resulting in low development efficiency and high cost.
[0005] In view of this, the present disclosure proposes an interface generation technology solution that can improve development efficiency and reduce development costs.
[0006] According to some embodiments of the present disclosure, an interface generation method is provided, including: according to multiple functional areas of an instrument interface framework and a model of a target engineering machinery, obtaining interface materials corresponding to each functional area from a material database corresponding to each functional area of the multiple functional areas, each functional area and the corresponding material database correspond to the same instrument function type; generating an instrument interface of the target engineering machinery according to the instrument interface framework and the interface materials.
[0007] In some embodiments, multiple instrument function types corresponding to multiple functional areas are predetermined based on the content that multiple engineering machines need to display in the instrument interface, and the material database is pre-established based on the instrument function type corresponding to each of the multiple functional areas.
[0008] In some embodiments, the material database includes an icon database and a text database, and the icon database includes control icons with interactive functions and element icons without interactive functions.
[0009] In some embodiments, generating an instrument interface of a target engineering machinery based on an instrument interface framework and interface materials includes: determining a data structure of the interface material corresponding to each functional area based on the layout information of each functional area in the instrument interface framework, the data structure including multiple items of functional area information, location information, call path information, and name information to which the corresponding interface material belongs; generating an instrument interface of the target engineering machinery based on the data structure.
[0010] In some embodiments, generating an instrument interface of a target engineering machinery according to a data structure includes: using an instrument program to receive and parse a configuration file including a data structure; and configuring corresponding interface materials at corresponding positions of an instrument interface frame according to the parsed data structure.
[0011] In some embodiments, the configuration file is generated and sent by the host computer virtual tool, and using the instrument program to receive and parse the configuration file including the data structure includes: receiving and parsing the configuration file through the HMI (Human Machine Interface) interface of the instrument program, and the HMI interface has a one-to-one mapping relationship with the host computer virtual tool.
[0012] In some embodiments, the configuration file stores multiple items of the functional area information, location information, call path information, and name information in the form of key-value pairs.
[0013] In some embodiments, each functional area includes sub-areas, and generating the instrument interface of the target engineering machinery according to the instrument interface framework and the interface material includes: configuring the interface material in the sub-areas to generate the instrument interface of the target engineering machinery.
[0014] In some embodiments, the instrument function type includes at least one of a status display class, an alarm display class, a video display class, an instrument display class, and a button class.
[0015] In some embodiments, the instrument interface frame is a main interface display frame, a menu display frame, an information display frame, a parameter setting frame, or a switch setting frame.
[0016] According to other embodiments of the present disclosure, there is provided an interface generating device, comprising: an acquiring unit, for acquiring, according to the multiple functional areas of the instrument interface framework and the model of the target engineering machinery, the interface material corresponding to each functional area from a material database corresponding to each functional area of the multiple functional areas, wherein each functional area and the material database corresponding to each functional area correspond to the same instrument function type; and a generating unit, for generating the instrument interface of the target engineering machinery according to the instrument interface framework and the interface material.
[0017] In some embodiments, multiple instrument function types corresponding to multiple functional areas are predetermined based on the content that multiple engineering machines need to display in the instrument interface, and the material database is pre-established based on the instrument function type corresponding to each of the multiple functional areas.
[0018] In some embodiments, the material database includes an icon database and a text database, and the icon database includes control icons with interactive functions and element icons without interactive functions.
[0019] In some embodiments, the generation unit determines the data structure of the interface material corresponding to each functional area based on the layout information of each functional area in the instrument interface framework, and the data structure includes multiple items of functional area information, location information, call path information, and name information to which the corresponding interface material belongs; based on the data structure, the instrument interface of the target engineering machinery is generated.
[0020] In some embodiments, the generation unit receives and parses a configuration file including a data structure using an instrument program; and configures corresponding interface materials at corresponding positions of the instrument interface framework according to the parsed data structure.
[0021] In some embodiments, the generation unit receives and parses the configuration file through the HMI interface of the instrument program, and the HMI interface has a one-to-one mapping relationship with the host computer virtual tool.
[0022] In some embodiments, the configuration file stores multiple items of the functional area information, location information, call path information, and name information in the form of key-value pairs.
[0023] In some embodiments, each functional area includes a sub-area, and the generation unit configures the interface material in the sub-area to generate an instrument interface of the target engineering machinery.
[0024] In some embodiments, the instrument function type includes at least one of a status display class, an alarm display class, a video display class, an instrument display class, and a button class.
[0025] In some embodiments, the instrument interface frame is a main interface display frame, a menu display frame, an information display frame, a parameter setting frame, or a switch setting frame.
[0026] According to some further embodiments of the present disclosure, there is provided an interface generating device, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the interface generating method in any one of the above embodiments based on instructions stored in the memory device.
[0027] According to some further embodiments of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the interface generation method in any of the above embodiments is implemented.
[0028] According to some further embodiments of the present disclosure, a computer program product is provided, comprising instructions, which, when executed by a processor, enable the processor to execute the interface generation method according to any one of the above embodiments.
[0029] In the above embodiment, based on the unified instrument interface framework, interface materials are obtained from the corresponding material database according to the current model to generate the instrument interface. In this way, the instrument interface generation is decoupled from the fixed model, so that the instrument interface generation can adapt to different models, thereby improving development efficiency and reducing development costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0031] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0032] Figure 1 A flowchart showing some embodiments of the interface generation method disclosed herein;
[0033] Figure 2a~2c Schematic diagrams showing some embodiments of the interface generation method disclosed herein;
[0034] Figure 3a~3b Flowcharts showing other embodiments of the interface generation method disclosed herein;
[0035] Figure 4 A flowchart showing some embodiments of the interface generation device of the present disclosure;
[0036] Figure 5 A block diagram showing some other embodiments of the interface generating device disclosed in the present invention;
[0037] Figure 6 A block diagram showing some further embodiments of the interface generating device of the present disclosure. DETAILED DESCRIPTION
[0038] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0039] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0040] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0041] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0042] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0043] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0044] As mentioned above, in the process of initial customized instrument interface development for fixed models, the host manufacturer needs to provide a complete function list, and the instrument supporting manufacturer completes the development of the corresponding instrument program; in the subsequent production process, if the whole machine adjusts the engine model, hydraulic component model, electrical system function or adds new customer demand functions, it is necessary to provide a new function list to pass it to the instrument supporting manufacturer for full program redevelopment. For example, each status icon, alarm icon, function menu type and display text quantity, etc., all need to be restructured, that is, the model configuration needs to correspond to the instrument program one by one.
[0045] In addition, it is difficult for different models to use the same instrument program interface, otherwise technical problems such as icons not being displayed properly, menu content not being displayed correctly, and missing functions will occur.
[0046] Since construction machinery has many configuration models and instrument program versions, the above customized development needs to be processed frequently and the workload is large. This form of instrument interface deeply bound to model configuration cannot be reused for other models; if new functions are adjusted or developed, all relevant parameters of the entire software need to be rewritten and configured, resulting in poor flexibility and autonomy in interface development; moreover, construction machinery instruments use the technology of packaged overall upgrade, which has technical problems such as large upgrade packages, slow upgrade speed, and easy errors, making it difficult to achieve OTA (Over-the-Air).
[0047] In response to the above technical problems, the present disclosure proposes an interface generation technology solution to establish a unified classified material database for the instrument interface used by the platform model; uniformly configure the structure of the instrument interface to form a reusable interface framework. You can also use the host computer virtual tool to complete the simulation of customized interface development and output a configuration file containing data structure information; use the instrument program to receive and parse the configuration file through the HMI interface, and based on the predefined one-to-one mapping relationship, configure the configured icons and texts to the corresponding positions in the interface framework to achieve the generation of the instrument interface. In this way, the decoupling of the instrument interface generation and the model configuration can be achieved; the reconstruction of the framework and functions of the instrument interface can be quickly completed through the configuration file; and the program OTA update can be achieved through the remote download of the configuration file.
[0048] For example, the technical solution of the present disclosure can be implemented through the following embodiments.
[0049] Figure 1 A flow chart showing some embodiments of the interface generation method of the present disclosure.
[0050] like Figure 1 As shown, in step 110, based on the multiple functional areas of the instrument interface framework and the model of the target engineering machinery, the interface material corresponding to each functional area is obtained from the material database corresponding to each functional area in the multiple functional areas, and each functional area and the corresponding material database correspond to the same instrument function type.
[0051] In some embodiments, the multiple instrument function types corresponding to the multiple functional areas are predetermined according to the contents that the multiple engineering machines need to display in the instrument interface. For example, the instrument interface frame is a main interface display frame, a menu display frame, an information display frame, a parameter setting frame or a switch setting frame.
[0052] For example, based on the various models of the current platform, the content that needs to be displayed on various instrument interfaces can be determined, such as icons (such as elements, controls, etc.), text and other materials; these contents are classified, and the classification results are standardized to determine the various instrument function types; the instrument function type can include at least one of the status display class, alarm display class, video display class, instrument display class, and button class.
[0053] For example, based on the above classification results, a structured instrument interface display framework applicable to various models is generated; the display framework may include location information, display size information and other related information of materials belonging to various instrument function types.
[0054] In this way, by predetermining the instrument function types that need to be displayed in the instrument interface of various models, an instrument interface display framework suitable for various models is generated. This display framework covers the positioning requirements of display materials in the instrument interface of various models, realizes the decoupling of instrument programs and models, and enables the generation of instrument interfaces to adapt to different models, thereby improving development efficiency and reducing development costs.
[0055] In some embodiments, the material database is pre-established according to the instrument function type corresponding to each of the multiple functional areas. For example, the material database includes an icon database and a text database, and the icon database includes control icons with interactive functions and element icons without interactive functions.
[0056] For example, the content that needs to be displayed on various instrument interfaces can be determined based on the various models of the current platform; these contents can be classified and the classification results can be standardized to determine the various instrument function types; for each instrument function type, a corresponding material database can be established.
[0057] In this way, by predetermining the instrument function types that need to be displayed in the instrument interface of various models, a material database of instrument interfaces suitable for various models is generated for direct call in the process of generating instrument interfaces. This material database covers icons, texts, etc. displayed in the instrument interface of various models, realizes the decoupling of instrument programs and models, and enables the generation of instrument interfaces to adapt to different models, thereby improving development efficiency and reducing development costs.
[0058] In step 120, an instrument interface of the target engineering machinery is generated according to the instrument interface framework and interface materials.
[0059] In some embodiments, each functional area includes sub-areas, and the interface materials are arranged in the sub-areas to generate the instrument interface of the target engineering machinery. Figure 2a~2c In the implementation example, an instrument interface is generated.
[0060] Figure 2a~2c Schematic diagrams showing some embodiments of the interface generation method of the present disclosure.
[0061] like Figure 2aAs shown, the layout of the interface template can be determined according to the model of the target engineering machinery. For example, the instrument interface can be structured and partitioned to determine multiple functional areas: the first area, the second area, the third area, and the fourth area; according to the content to be displayed, the instrument function type corresponding to each functional area is determined: the first area corresponds to the status display class, the second area corresponds to the alarm display class, the third area corresponds to the video display class, the fourth area corresponds to the instrument display class, and the fifth area corresponds to the button class. The functional area can also include multiple sub-areas to determine the display position of the material within the functional area. If the first area, the second area, and the fifth area all include multiple sub-areas ( Figure 2a The smaller rectangular boxes that include each functional area in the diagram).
[0062] like Figure 2b As shown, when generating the main interface of the instrument interface, the upper computer virtual tool selects the icon corresponding to the actual configuration requirement from the icon database matching the instrument display class corresponding to the first zone according to the actual configuration requirements of the model; and configures the selected icon in the sub-area of the first zone. For example, the "working hours" icon is configured in the first sub-area of the first zone, the "Bluetooth" icon is configured in the fifth sub-area of the first zone, and the "gear position" icon is configured in the tenth sub-area of the first zone; the second zone and the fifth zone are also configured in a similar manner, which will not be repeated here.
[0063] like Figure 2c As shown, when generating a menu display interface of an instrument interface, the text corresponding to the actual menu function requirements (such as menu 1 to menu 6) can be selected from the text database matching the instrument display class corresponding to each functional area of the interface framework according to the actual menu function requirements; the selected text is configured in the corresponding functional area in the interface framework. For example, for other display interfaces, such as information display interface, parameter setting interface, switch setting interface, etc., similar methods as described above can also be used to configure the selected icons and texts in the specified positions in the corresponding interface framework, which will not be repeated here.
[0064] In this way, by predetermining the types of instrument functions that need to be displayed in the instrument interface of various models, an instrument interface display framework and material database suitable for various models are generated; based on the interface framework and material database, the decoupling of the instrument program and the model is achieved, so that the generation of the instrument interface can adapt to different models, thereby improving development efficiency and reducing development costs.
[0065] The following describes, through some embodiments, a process in which the host computer virtual tool outputs a configuration file to the instrument program after completing the above-mentioned instrument interface display configuration.
[0066] In some embodiments, a data structure of the interface material corresponding to each functional area is determined based on the layout information of each functional area in the instrument interface framework; the data structure includes multiple items of functional area information, location information, call path information, and name information to which the corresponding interface material belongs; and based on the data structure, an instrument interface of the target engineering machinery is generated.
[0067] For example, the host computer virtual tool can be used to develop a simulation interface for different machine configurations according to the requirements of its function list. The simulation interface development can include: selecting icons, texts, etc. from the material database corresponding to the instrument function type included in the function list; determining the position of the selected icons, texts, etc. in the interface framework; configuring the display and hiding of each functional interface in the interface framework, etc.
[0068] For example, using the host computer virtual tool, an ICO (Icon File Format) data structure is generated for each icon. The ICO data structure can be used <key> / <value>The storage form of (key-value pairs) includes the name information of the functional area to which the icon belongs, the location information of the icon (such as the location serial number), the icon name information, the calling path and other related information.
[0069] For example, using a host computer virtual tool, a TEXT data structure is generated for each text; the TEXT data structure may include the name of the functional area to which the text belongs, the location information of the text (such as the location serial number), the text name information, the calling path and other related information.
[0070] In some embodiments, the instrument program receives and parses a configuration file including a data structure; and according to the parsed data structure, the corresponding interface material is configured in the corresponding position of the instrument interface frame. For example, the configuration file uses a key-value pair to store multiple items of the function area information, location information, call path information, and name information.
[0071] For example, the configuration file is generated and sent by the host computer virtual tool, and the configuration file is received and parsed through the HMI interface of the instrument program. The HMI interface and the host computer virtual tool have a one-to-one mapping relationship.
[0072] For example, the host computer virtual tool can send the generated data structure to the instrument program through the configuration file; the instrument program dynamically generates the GUI (Graphical User Interface) program display status by quickly calling the configuration module parameters, and configures the configured icons, texts and other materials to the corresponding positions of the display frame.
[0073] In this way, the architecture and functions of the instrument interface under different models and configurations can be reorganized to complete the personalized display of the instrument interface. Thus, the information and functions related to the model can be accurately displayed, and the generation efficiency of the instrument interface can be improved.
[0074] In some embodiments, the structure of the instrument program may include three layers, a separate storage area is opened for the configurable interface, and the top-level application is open to the interface developer to implement the logical functions of the instrument interface. For example, the instrument program includes three layers, from top to bottom: HMI interface layer, business logic layer and core data layer.
[0075] For example, the HMI interface layer is used to receive configuration files, parse out information such as the model of the target engineering equipment (such as a vehicle), the name and location of the functional area in the interface template, and the displayed content; the parsing results are input into the function interface of the modification interface to complete the modification of the front-end interface and present it to the instrument program for display.
[0076] For example, the business logic layer may include: the business logic of the instrument itself, such as language, brightness, clock, etc.; the business logic customized by the product platform, such as parameter setting and calibration, working mode switching selection, fault alarm prompt, operation information viewing, etc.
[0077] The core data layer mainly includes: bus data processing mechanism, bus device heartbeat judgment mechanism, database storage and reading mechanism, EPROM (Erasable Programmable Read-Only Memory) data area management mechanism, etc.
[0078] In this way, configuration files, material resources (such as icons, etc.), and core functions can be stripped to achieve a minimized point-to-point upgrade of the instrument interface. In addition, the file size used to generate the instrument interface can be reduced, and the instrument program on the device can be transmitted through mobile storage devices (such as USB flash drives, etc.) and wireless communications, thereby improving the efficiency of interface generation. A special storage area can also be opened to store and access configuration files, thereby ensuring that the configuration files are safe and reliable.
[0079] Figure 3a~3b Flowcharts showing other embodiments of the interface generating method of the present disclosure.
[0080] like Figure 3a As shown, in step 310a, the contents to be displayed on various instrument interfaces are determined according to various models of the current platform; these contents are classified and the classification results are standardized to determine various instrument function types; for each instrument function type, a corresponding material database can be established.
[0081] In step 320a, based on the above classification results, a structured instrument interface display frame applicable to various models is generated; the display frame may include location information, display size information and other related information of materials belonging to various instrument function types. For example, the instrument interface frame is a main interface display frame, a menu display frame, an information display frame, a parameter setting frame or a switch setting frame.
[0082] In step 330a, the host computer virtual tool is used to develop a simulation interface for different machine configurations according to the requirements of their function lists, and to configure the display and hiding of each functional interface in the interface framework.
[0083] In step 340a, a host computer virtual tool is used to generate an ICO data structure for each icon. The ICO data structure can be <key> / <value>The storage form includes the name information of the functional area to which the icon belongs, the location information of the icon (such as the location number), the icon name information, the calling path and other related information. Using the host computer virtual tool, a TEXT data structure is generated for each text; the TEXT data structure may include the name of the functional area to which the text belongs, the location information of the text (such as the location number), the text name information, the calling path and other related information. The host computer virtual tool can send the generated data structure to the instrument program through the configuration file; the instrument program dynamically generates the GUI program display status through the quick call of the configuration module parameters, and configures the configured icons, texts and other materials to the corresponding positions of the display frame.
[0084] In this way, the architecture and functions of the instrument interface under different models and configurations can be reorganized to complete the personalized display of the instrument interface. Thus, the information and functions related to the model can be accurately displayed, and the generation efficiency of the instrument interface can be improved.
[0085] In step 350a, the configuration file is received and parsed through the HMI interface of the instrument program to obtain the ICO data structure and the TEXT data structure; by parsing the ICO data structure and the TEXT data structure, the interface material is configured in the corresponding functional area to generate the instrument interface of the target engineering machinery.
[0086] For example, the configuration file contains the data structure of the selected icons, texts and other materials; the configuration file is imported into the instrument program and parsed through the HMI interface. The HMI interface is mapped one-to-one with the host computer virtual tool, so that the configuration file can be transmitted to the instrument program on the device through mobile storage devices, wireless communications, etc., thereby improving the efficiency of interface generation. For example, the configuration file can be parsed through the file parsing technology based on QSettings to obtain <key> / <value>The data in storage form can be temporarily saved in the corresponding customized configuration module.
[0087] like Figure 3b As shown, the method for parsing the configuration file may include steps 310b-380b.
[0088] In step 310b, the instrument program is initialized after the instrument is powered on.
[0089] In step 320b, it is determined whether the configuration file has been parsed, that is, whether there is a newly transmitted configuration file. If not, step 330b is executed; if yes, step 380b is executed, no parsing is performed, and the stored instrument interface is directly displayed.
[0090] In step 330b, in response to the configuration file being loaded for the first time and not parsed, the configuration file may be parsed to obtain the current vehicle model information (i.e., the model of the target engineering machinery); different types of materials such as icons and texts may be parsed separately. For example, the functions that the instrument interface needs to provide, the layout of the instrument frame, and other information may be determined based on the current vehicle model.
[0091] In step 340b, the ICO data structure is parsed.
[0092] In step 350b, the TEXT data structure is parsed. There is no execution order for step 340b and step 350b, and they can be processed serially or in parallel.
[0093] In step 360b, according to the parsing result of the ICO data structure, the display icon attributes on the corresponding storage area (ie, the functional area) are matched and modified; according to the parsing result of the TEXT data structure, the display text attributes on the corresponding functional area are matched and modified.
[0094] In step 370b, the parameter configuration corresponding to the modified display icon attributes and display text attributes is stored; the parameter configuration is input into the function interface for interface modification to complete the modification of the front-end user interface so as to configure the configured icons and texts to the corresponding positions of the interface framework.
[0095] In step 380b, the instrument interface corresponding to the configuration file is displayed. In this way, a personalized instrument interface of the current engineering machinery can be generated, and the information and functions related to the machine model can be accurately displayed.
[0096] In the above embodiment, based on the classification results of various materials in the instrument interface, an interface framework suitable for various instruments is generated in advance, so as to realize the decoupling of instrument interface generation and machine type, thereby improving the interface generation efficiency and reducing the generation cost; the interface materials and model-related information corresponding to the selected target engineering machinery are encapsulated as a data structure to generate a configuration file, so as to quickly complete the instrument interface architecture, function reconstruction and personalized display through the configuration file, thereby improving the practicality, flexibility and autonomy of the interface generation method; a one-to-one mapping between the configuration file and the instrument HMI interface is established, so as to realize the remote download of the configuration file and the OTA update of the instrument program, thereby improving the interface generation efficiency; the configuration file adopts <key value>Different types of configuration data blocks are stored in the form of , and configuration files, material resources, and core functions are stripped to achieve minimized point-to-point upgrades of the instrument interface, thereby improving the efficiency of interface generation.
[0097] Figure 4 The flowcharts show some embodiments of the interface generating device of the present disclosure.
[0098] like Figure 4 As shown, the interface generating device 4 includes: an acquiring unit 41, which is used to acquire the interface material corresponding to each functional area from the material database corresponding to each functional area in the multiple functional areas of the instrument interface framework and the model of the target engineering machinery, and each functional area and the material database corresponding to each functional area correspond to the same instrument function type; a generating unit 42, which is used to generate the instrument interface of the target engineering machinery according to the instrument interface framework and the interface material.
[0099] In some embodiments, multiple instrument function types corresponding to multiple functional areas are predetermined based on the content that multiple engineering machines need to display in the instrument interface, and the material database is pre-established based on the instrument function type corresponding to each of the multiple functional areas.
[0100] In some embodiments, the material database includes an icon database and a text database, and the icon database includes control icons with interactive functions and element icons without interactive functions.
[0101] In some embodiments, the generation unit 42 determines the data structure of the interface material corresponding to each functional area based on the layout information of each functional area in the instrument interface framework, and the data structure includes multiple items of functional area information, location information, call path information, and name information to which the corresponding interface material belongs. Based on the data structure, the instrument interface of the target engineering machinery is generated.
[0102] In some embodiments, the generating unit 42 receives and parses a configuration file including a data structure using an instrument program; and configures corresponding interface materials at corresponding positions of the instrument interface framework according to the parsed data structure.
[0103] In some embodiments, the generation unit 42 receives and parses the configuration file through the HMI interface of the instrument program, and the HMI interface has a one-to-one mapping relationship with the host computer virtual tool.
[0104] In some embodiments, the configuration file stores multiple items of the functional area information, location information, call path information, and name information in the form of key-value pairs.
[0105] In some embodiments, each functional area includes a sub-area, and the generation unit configures the interface material in the sub-area to generate an instrument interface of the target engineering machinery.
[0106] In some embodiments, the instrument function type includes at least one of a status display class, an alarm display class, a video display class, an instrument display class, and a button class.
[0107] In some embodiments, the instrument interface frame is a main interface display frame, a menu display frame, an information display frame, a parameter setting frame, or a switch setting frame.
[0108] Figure 5 Block diagrams showing other embodiments of the interface generating device of the present disclosure.
[0109] like Figure 5 As shown, the interface generating device 5 of this embodiment includes: a memory 51 and a processor 52 coupled to the memory 51 , and the processor 52 is configured to execute the interface generating method in any one of the embodiments of the present disclosure based on the instructions stored in the memory 51 .
[0110] The memory 51 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, a database, and other programs.
[0111] Figure 6 A block diagram showing some further embodiments of the interface generating device of the present disclosure.
[0112] like Figure 6 As shown, the interface generating device 6 of this embodiment includes: a memory 610 and a processor 620 coupled to the memory 610 , and the processor 620 is configured to execute the interface generating method in any one of the aforementioned embodiments based on the instructions stored in the memory 610 .
[0113] The memory 610 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.
[0114] The interface generation device 6 may also include an input / output interface 630, a network interface 640, a storage interface 650, etc. These interfaces 630, 640, 650, the memory 610, and the processor 620 may be connected, for example, via a bus 660. The input / output interface 630 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, a touch screen, a microphone, and a speaker. The network interface 640 provides a connection interface for various networked devices. The storage interface 650 provides a connection interface for external storage devices such as an SD card and a USB flash drive.
[0115] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0116] So far, the interface generation method, interface generation device, computer-readable storage medium and computer program product according to the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed herein.
[0117] The method and system of the present disclosure may be implemented in many ways. For example, the method and system of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0118] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.< / key> < / value> < / key> < / value> < / key> < / value> < / key>
Claims
1. A method for generating an interface, comprising: According to the multiple functional areas of the instrument interface framework and the model of the target engineering machinery, the interface material corresponding to each functional area is obtained from the material database corresponding to each functional area of the multiple functional areas, and each functional area and the corresponding material database correspond to the same instrument function type; An instrument interface of the target engineering machinery is generated according to the instrument interface framework and the interface material.
2. The interface generation method according to claim 1, wherein: The multiple instrument function types corresponding to the multiple functional areas are predetermined according to the contents that need to be displayed in the instrument interface of multiple engineering machines, and the material database is pre-established according to the instrument function type corresponding to each of the multiple functional areas.
3. The interface generation method according to claim 1, wherein: The material database includes an icon database and a text database, and the icon database includes control icons with interactive functions and element icons without interactive functions.
4. The interface generation method according to claim 1, wherein: Generating the instrument interface of the target engineering machinery according to the instrument interface framework and the interface material comprises: Determine, according to the layout information of each functional area in the instrument interface framework, a data structure of the interface material corresponding to each functional area, wherein the data structure includes multiple items of functional area information, location information, call path information, and name information to which the corresponding interface material belongs; An instrument interface of the target engineering machinery is generated according to the data structure.
5. The interface generation method according to claim 4, wherein: Generating the instrument interface of the target engineering machinery according to the data structure includes: Receiving and parsing a configuration file including the data structure using an instrumentation program; According to the parsed data structure, the corresponding interface material is configured at a corresponding position of the instrument interface framework.
6. The interface generation method according to claim 5, wherein: The configuration file is generated and sent by the host computer virtual tool. The receiving and parsing of the configuration file including the data structure by using the instrument program includes: The configuration file is received and parsed through the human-machine interface HMI interface of the instrument program, and the HMI interface has a one-to-one mapping relationship with the host computer virtual tool.
7. The interface generation method according to claim 5, wherein: The configuration file stores multiple items of the functional area information, location information, calling path information, and name information in the form of key-value pairs.
8. The interface generation method according to any one of claims 1 to 7, wherein: Each of the functional areas includes sub-areas, Generating the instrument interface of the target engineering machinery according to the instrument interface framework and the interface material comprises: The interface material is arranged in the sub-area to generate an instrument interface of the target engineering machinery.
9. The interface generation method according to any one of claims 1 to 7, wherein: The instrument function type includes at least one of a status display type, an alarm display type, a video display type, an instrument display type, and a button type.
10. The interface generation method according to any one of claims 1 to 7, wherein: The instrument interface frame is a main interface display frame, a menu display frame, an information display frame, a parameter setting frame or a switch setting frame.
11. An interface generation device, comprising: an acquisition unit, configured to acquire, according to multiple functional areas of the instrument interface framework and a model of a target engineering machinery, an interface material corresponding to each functional area from a material database corresponding to each functional area of the multiple functional areas, wherein each functional area and the material database corresponding to each functional area correspond to the same instrument function type; A generating unit is used to generate an instrument interface of the target engineering machinery according to the instrument interface framework and the interface material.
12. An interface generation device, comprising: Memory; and A processor coupled to the memory, wherein the processor is configured to execute the interface generation method according to any one of claims 1 to 10 based on instructions stored in the memory.
13. A computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the interface generation method described in any one of claims 1 to 10.
14. A computer program product, comprising instructions, which, when executed by a processor, enable the processor to execute the interface generation method according to any one of claims 1 to 10.