A method and apparatus for implementing a human-machine interface, and a device and medium
By performing cross-platform processing on the configuration files and library files of the HMI development tool, a cross-platform engine file is generated, which solves the adaptation problem of the HMI development tool when changing operating systems, and achieves efficient compatibility and low-cost development on different operating systems.
Patent Information
- Application Number
- CN202211216099.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2042-09-30
AI Technical Summary
Existing HMI development tools cannot adapt to new operating systems when switching operating systems, and porting them to different operating systems is difficult, resulting in high development costs and low efficiency.
By acquiring the configuration files, resource packages, and library files of the human-machine interface development tool, and combining them with the configuration files and library files of the lower-level target board and multiple operating systems, a cross-platform engine file is generated. The Scons compilation tool is then used to compile executable files on different operating systems, achieving cross-system compatibility of the human-machine interface.
It improves the compatibility of human-computer interface development tools on different operating systems, reduces development costs, and minimizes development time and resource waste.
Smart Images

Figure CN115576549B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of automobile instrument display, in particular to a method and device for implementing human-machine interface, equipment and medium. BACKGROUND
[0002] The human-machine interface of instrument panel is various, and the HMI (Human Machine Interface) development tools are also more and more, such as qt, cgi, kanzi or directly handwritten code for development. But each HMI development tool needs to know the hardware environment in advance, such as which chip and which operating system. For example, Qnx, Android, Linux and other operating systems, for example, using kanzi tool, first need to know the hardware environment, such as the relevant information of the chip, the kanzi tool needs to configure the corresponding configuration items of the chip to adapt to this chip, the relevant information of the operating system used, the kanzi tool needs to configure the relevant configuration items of this operating system. For developers, it is also necessary to know in advance which chip and operating system to use, and then develop a corresponding solution to adapt to this operating system and this hardware platform. Once the operating system is replaced, the HMI development tool cannot adapt to the new operating system, and the transplantation of the HMI development tool on different operating systems is difficult, which wastes time and effort. SUMMARY
[0003] In view of the above-mentioned shortcomings of the prior art, the present application provides a method and device for implementing human-machine interface, equipment and medium, to solve the technical problems that the HMI development tool cannot adapt to the new operating system when the operating system is replaced, and the transplantation of the HMI development tool on different operating systems is difficult.
[0004] The present application provides a method for implementing human-machine interface, the method comprises:
[0005] By developing the interface of the human-machine interface development tool, the configuration file, resource package and library file of the human-machine interface development tool are obtained;
[0006] The library file of the lower computer target board is obtained, and the configuration file and library file of multiple operating systems are obtained;
[0007] The configuration file and library file of the human-machine interface development tool and multiple operating systems are packaged to obtain the engine file of multiple operating systems;
[0008] The engine files of multiple operating systems are fused to obtain the engine file of the human-machine interface development tool;
[0009] Compiling an engine file of the human-computer interface development tool and a library file of the lower machine target board to obtain an executable file executed on different operating systems; and
[0010] Obtaining a human-computer interface according to the resource package of the human-computer interface development tool and the executable file.
[0011] In an embodiment of the present application, interface development of the human-computer interface development tool includes the following steps:
[0012] Obtaining vehicle data to be displayed on the instrument panel;
[0013] Designing an interface according to the vehicle data on a development interface of a host computer of the human-computer interface development tool to obtain graphical interface information.
[0014] In an embodiment of the present application, the method for implementing the human-computer interface further includes the following steps:
[0015] Obtaining image resource information of the human-computer interface development tool;
[0016] Obtaining compiling tool information.
[0017] In an embodiment of the present application, obtaining the human-computer interface further includes the following steps:
[0018] Obtaining a configuration file of the lower machine target board;
[0019] Obtaining interface information of the instrument panel display screen.
[0020] In an embodiment of the present application, obtaining the human-computer interface further includes the following steps:
[0021] Displaying a human-computer interface on the instrument panel display screen according to the configuration file of the lower machine target board, the interface information of the instrument panel display screen and the resource package of the human-computer interface development tool.
[0022] In an embodiment of the present application, the method for obtaining the human-computer interface further includes the following steps:
[0023] Obtaining a configuration file and a library file of the operating system to be replaced and obtaining a resource package of the human-computer interface development tool;
[0024] Replacing the configuration file and the library file of the operating system with the configuration file and the library file in the engine file to obtain a new engine file of the human-computer interface development tool.
[0025] In an embodiment of the present application, the method for obtaining the human-computer interface further includes the following steps:
[0026] Compiling a new engine file of the human-computer interface development tool to obtain the executable file;
[0027] Obtaining a human-computer interface according to the executable file and a resource package of the human-computer interface development tool.
[0028] The application provides a human-computer interface implementation device, which comprises:
[0029] A tool file obtaining module is configured to obtain a configuration file, a resource package and a library file of a human-computer interface development tool by interface development of the human-computer interface development tool.
[0030] A library file obtaining module is configured to obtain a library file of a lower computer target board and obtain configuration files and library files of multiple operating systems.
[0031] A system engine obtaining module is configured to package the human-computer interface development tool and the configuration files and the library files of the multiple operating systems to obtain engine files of the multiple operating systems.
[0032] A tool engine obtaining module is configured to fuse the engine files of the multiple operating systems to obtain an engine file of the human-computer interface development tool.
[0033] An executable file obtaining module is configured to compile the engine file of the human-computer interface development tool and the library file of the lower computer target board to obtain executable files for execution on different operating systems.
[0034] A human-computer interface obtaining module is configured to obtain a human-computer interface according to a resource package of the human-computer interface development tool and the executable files.
[0035] The application provides an electronic device, which comprises one or more processors.
[0036] A storage device is configured to store one or more programs, which, when executed by the one or more processors, enable the electronic device to implement the human-computer interface implementation method.
[0037] The application provides a computer readable storage medium, which stores computer instructions, and the computer instructions, when executed by a processor, implement the human-computer interface implementation method.
[0038] The application provides the man-machine interface implementation method, multiple operation systems correspond to respective engines, and engine files of the man-machine interface development tool fused from engine files of the multiple operation systems are compiled, when the operation system is replaced, only the configuration file of the operation system in the engine of the man-machine interface development tool needs to be changed, and the man-machine interface development tool can run on the operation system, the compatibility of the man-machine interface development tool on different operation systems is greatly improved, and development cost is saved.
[0039] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory and are not restrictive of the application. BRIEF DESCRIPTION OF DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and serve to explain the principles of the application. It is readily apparent to one skilled in the art that the following described embodiments are only exemplary and that other embodiments can be realized based on these drawings without paying creative labor. In the drawings:
[0041] Figure 1 is a schematic diagram of an implementation environment of the man-machine interface implementation method shown in an exemplary embodiment of the application;
[0042] Figure 2 is a flowchart of the man-machine interface implementation method shown in an exemplary embodiment of the application;
[0043] Figure 3 is a flowchart of the host computer development method of the man-machine interface development tool shown in an exemplary embodiment of the application;
[0044] Figure 4 is a flowchart of the man-machine interface implementation method when the operation system needs to be replaced shown in an exemplary embodiment of the application;
[0045] Figure 5 is a block diagram of the man-machine interface implementation device shown in an exemplary embodiment of the application;
[0046] Figure 6 The structure schematic diagram of the computer system of the electronic equipment suitable for realizing the embodiments of the application is shown. DETAILED DESCRIPTION
[0047] The objectives, technical contents and effects of the present application can be easily understood by the description on the present application based on the accompanying drawings and preferred embodiments. The present application can be implemented or applied in other different embodiments, and the details in the description can be modified or changed based on different views and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only used to explain the present application, but not to limit the protection scope of the present application.
[0048] It should be noted that the drawings provided in the following embodiments only schematically illustrate the basic concept of the present application, and only the components related to the present application are shown in the drawings, but not the number, shape and size of the components in actual implementation. The shape, number and proportion of each component in actual implementation can be arbitrarily changed, and the layout pattern of the components can be more complex.
[0049] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details, and in other embodiments, the known structures and devices are shown in the form of block diagrams instead of detailed forms to avoid making the embodiments of the present application difficult to understand.
[0050] First of all, it should be noted that the Kanzi UI Solution (a user interface design method based on the Kanzi tool) is a complete cross-platform UI (User Interface) solution based on OpenGL (OpenGraphics Library) and OpenGL ES (OpenGL ES (OpenGL for Embedded Systems, an open graphics library designed for embedded systems). The Kanzi tool provides a complete development platform for the design, development and deployment of graphical user interfaces on embedded devices.
[0051] In the traditional working mode, the design of UI can only be based on pictures, and the corresponding pictures are cropped and handed over to software engineers, and all the implementation is completed by software engineers. Therefore, the UI designer always considers whether the software engineer can implement certain interface effects when designing, and it is also difficult to see the effect that the designer really wants to design. Moreover, the software engineer is also difficult to understand the intention of the UI designer, and is consumed by a large number of complicated interface layouts, switching and other work and cannot focus on the real function implementation. However, using the Kanzi tool, the UI designer can freely complete his own idea using the Kanzi Studio design software. The UI designer can design all effects, interface switching and part of interface logic in the Kanzi Studio (content creation tool running on a personal computer), and can design and display the UI on a what-you-see-is-what-you-get basis. Finally, the UI designer exports the final UI interface to the kzb resource package and related configuration files for the software engineer to use. And the software engineer uses the Kanzi Engine (Kanzi engine) according to the kzb resource file exported by the UI designer, reads the interface and elements designed by the designer through the path, sets up a listening processing for the click event of the elements, and reads and writes the data that needs to be passed, and writes the code to complete the implementation of the actual function. In this working mode, the designer focuses on design and user experience, and the software engineer only focuses on data and function implementation, and the work of the two reduces the mutual dependence, and the separation of UI design and code implementation is well realized.
[0052] Among them, the development environment host computer Kanzi Studio under the Kanzi development tool has multiple advantages, including fast user interface design, what-you-see-is-what-you-get image rendering interface, seamless docking of 2D / 3D rendering, no need for user coding to build user interface, internal placement of related design scripts and strong compatibility. The Kanzi engine has multiple advantages, including providing a complete UI framework, facilitating UI programmers to develop related interfaces, fast real-time rendering and excellent real-time rendering engine, improving development efficiency, providing cross-platform proximity solution information, providing extensible and applicable C or C++ related API (Application Programming Interface, Application Programming Interface) for users, and facilitating secondary development of users.
[0053] Figure 1 is an implementation environment schematic diagram of the implementation method of the human-computer interface shown in an exemplary embodiment of the present application. As Figure 1As shown, the vehicle transmits vehicle driving information that needs to be displayed on the instrument HMI to the lower computer target board 130. The operating system 120 transmits the configuration file and the library file of the operating system 120 to the human-machine interface development tool 110, and the lower computer target board 130 transmits the library file of the lower computer target board 130 and the driving information of the vehicle to the human-machine interface development tool 110. After receiving the files and driving information transmitted by the operating system 120 and the lower computer target board 130, the human-machine interface development tool 110 runs in the operating system 130 and completes the design of the human-machine interface. When the human-machine interface is designed, it is run and displayed on the liquid crystal display screen of the human-machine interface 150 transmitted by the lower computer target board 130. Among them, the vehicle information storage module 140 of the vehicle can be an independent physical server, but also can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data and artificial intelligence platform, etc. Basic cloud computing services are not limited here. The vehicle transmits data to the lower computer target board 130 through 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), 5G (fifth generation mobile information technology) wireless network operation. The embodiments of the present application also do not limit this, which can be set according to actual needs.
[0054] In some embodiments, when the operating system is replaced, the HMI development tool cannot adapt to the new operating system, and the HMI development tool is difficult to transplant on different operating systems. To solve these problems, the embodiments of the present application respectively propose a human-machine interface implementation method, device, equipment and medium, which will be described in detail below.
[0055] Please refer to Figure 2 , Figure 2 is a flowchart of the implementation method of the human-machine interface shown in an exemplary embodiment of the present application. In some embodiments, the method can be applied to Figure 1 the implementation environment shown, and specifically executed by the human-machine interface development tool 110 in the implementation environment. It should be understood that the method can also be applied to other exemplary implementation environments, and specifically executed by devices in other implementation environments, and the present embodiment does not limit the implementation environment to which the method is applied.
[0056] As Figure 2 shown, in an exemplary embodiment, the human-machine interface implementation method at least includes steps S210 to S260, which are described in detail as follows:
[0057] Step S210, by developing the interface of the human-machine interface development tool, obtaining the configuration file, resource package and library file of the human-machine interface development tool.
[0058] Firstly, it needs to be explained that, for example, when developing a human-computer interface through the Kanzi tool, all effects, interface switching and part of the interface logic that the human-computer interface 150 needs to display can be designed by using the host computer Kanzi Studio in the Kanzi tool to design the UI and display the UI in a what-you-see-is-what-you-get manner. Moreover, the designed UI is independent of the type of operating system and does not involve the hardware environment, so it is not necessary to consider the type of the target board 130, such as a chip, and the type of operating system. After the interface development of the human-computer interface development tool, the human-computer interface development tool generates a kzb file as a resource package and image resource of the designed UI interface and a configuration file and a library file of the human-computer interface development tool. Figure 1
[0059] Step S220, obtaining the library file of the target board, and obtaining the configuration file and the library file of the plurality of operating systems.
[0060] Figure 1 The target board 130, such as a chip, can provide some ready-to-use variables, functions and classes.
[0061] Step S230, packaging the human-computer interface development tool and the configuration file and the library file of the plurality of operating systems to obtain the engine file of the plurality of operating systems.
[0062] For example, when the human-computer interface is developed by using the Kanzi tool, the plurality of operating systems supported include the Qnx operating system, the Linux operating system and the Android system. When developed on each operating system, the engine file corresponding to the operating system is needed to support normal display on the corresponding operating system, and if it is necessary to switch the operating system, the engine file corresponding to the operating system is also generated. When the Kanzi tool is installed, it itself has an engine library supporting the Android system and the Windows system. Each engine file corresponding to each operating system includes the configuration file of the corresponding Kanzi tool, the system API (Application Programming Interface) of the corresponding Kanzi tool, the library file of the corresponding Kanzi tool, the API of the operating system, the library file of the operating system and the configuration file of the operating system.
[0063] Step S240, fusing the engine files of the plurality of operating systems to obtain the engine file of the human-computer interface development tool.
[0064] The engine files of multiple operating systems, such as the Qnx operating system, the Linux operating system and the Android system, are fused into one engine file as the engine of the human-computer interface development tool. In this way, the engine file of the human-computer interface development tool supports multiple operating systems, such as the Qnx operating system, the Linux operating system and the Android system, instead of one engine file supporting one operating system.
[0065] In step S250, the engine file of the human-computer interface development tool and the library file of the lower machine target board are compiled to obtain executable files for execution on different operating systems.
[0066] The compilation is performed by using the Scons compilation tool, which is a set of open source construction systems written in Python language. The SConstruct file and the SConscript file can be used to replace the copied Makefile file written by the project construction tool GNU make. Moreover, the Scons compilation tool is cross-platform, and can be compiled on various operating systems as long as the Scons script is well written. The design goal of the Scons is to make it easier, more reliable and faster for developers to build software. The Scons compilation tool has multiple advantages, including using Python script as a configuration file, built-in support for reliable automatic dependency analysis function, built-in support for a series of programming languages such as c, c++, java and qt, and good cross-platform performance.
[0067] The Scons compilation tool compiles the configuration file in the engine of the human-computer interface development tool and the library file, integrates the running environments of multiple operating systems, such as the running environments of the Qnx operating system, the Linux operating system and the Android system, and compiles the files in the engine corresponding to each operating system in the engine file of the human-computer interface development tool. Finally, executable files for operation on the corresponding operating system are generated. Before calling the executable file corresponding to the operating system, it is necessary to determine the operating system to which the human-computer interface development tool is adapted in advance. The adapted operating system needs to be determined by if define for the configuration file of the human-computer interface development tool and the operating system.
[0068] In step S260, the human-computer interface is obtained according to the resource package of the human-computer interface development tool and the executable file.
[0069] Figure 1The human-machine interface development tool 110 shown is run in different operating systems through executable files corresponding to each operating system, and obtains the configuration file of the lower machine target board 130 and the interface information of the human-machine interface 150. The resource package and image resource of the human-machine interface development tool 110 are called through the lower machine target board 130, and the designed human-machine interface is displayed on the liquid crystal display screen of the human-machine interface 150 through the interface information of the human-machine interface 150. The driving information of the vehicle is transmitted to the human-machine interface development tool 110 through the lower machine target board 130, the image of the human-machine interface is modified according to the driving information, and then the human-machine interface development tool 110 displays the human-machine interface on the liquid crystal display screen of the human-machine interface 150 through the lower machine target board 130.
[0070] Figure 3 is a flowchart of the upper machine development method of the human-machine interface development tool shown in an exemplary embodiment of the present application. As shown in Figure 3 The upper machine development method of the human-machine interface development tool at least includes steps S310 to S320, which are described in detail as follows:
[0071] Step S310, obtaining vehicle-mounted data that needs to be displayed on the instrument panel.
[0072] The vehicle-mounted data of the vehicle that needs to be displayed on the instrument panel Figure 1 The vehicle-mounted data of the vehicle shown includes vehicle driving information such as high beam and low beam, turn signal, odometer, tachometer, oil pressure gauge, fuel gauge, water temperature gauge, and hazard signal.
[0073] Step S320, according to the vehicle-mounted data, interface design is performed on the development interface of the upper machine of the human-machine interface development tool to obtain graphical interface information.
[0074] According to the vehicle driving information that needs to be displayed on the liquid crystal display screen of the instrument panel, the UI designer performs interface design such as layout, rendering, and switching of UE (User Experience, user interface function diagram) on the development interface of the upper machine of the human-machine interface development tool. Finally, the design of the human-machine interface on the upper machine interface of the human-machine interface development tool is completed, and the resource package and image resource of the human-machine interface development tool are generated.
[0075] Figure 4 is a flowchart of the implementation method of the human-machine interface when the operating system needs to be replaced, shown in an exemplary embodiment of the present application. As shown in Figure 4 The implementation method of the human-machine interface when the operating system needs to be replaced at least includes steps S410 to S440, which are described in detail as follows:
[0076] Step S410, obtaining the configuration file and library file of the operating system that needs to be replaced, and obtaining the resource package of the human-machine interface development tool.
[0077] Because the human-machine interface development tool needs to obtain an engine file to support the human-machine interface development tool to display normally on the operating system if the human-machine interface development tool wants to run on the replaced operating system, and the engine includes the configuration file and the library file of the operating system to be replaced.
[0078] In step S420, the configuration file and the library file of the operating system to be replaced are replaced with the configuration file and the library file in the engine file to obtain the new engine file of the human-machine interface development tool.
[0079] If the engine file corresponding to the operating system exists in the engine file of the original human-machine interface development tool, when the human-machine interface development tool replaces the operating system, the configuration file and the library file of the operating system to be replaced are replaced with the configuration file and the library file placed in the engine file of the human-machine interface development tool to obtain the new engine file of the human-machine interface development tool. If the engine file corresponding to the operating system does not exist in the engine of the original human-machine interface development tool, the engine file of the operating system to be replaced is obtained by packing the configuration file and the library file of the human-machine interface development tool and the configuration file and the library file of the operating system to be replaced, and then the engine file of the operating system to be replaced is placed in the engine file of the human-machine interface development tool to obtain the new engine file of the human-machine interface development tool.
[0080] In step S430, the new engine file of the human-machine interface development tool is compiled to obtain an executable file.
[0081] The Scons compilation tool compiles the new engine file of the human-machine interface development tool and the library file of the previous lower machine target board to obtain an executable file that can be executed and displayed on the operating system.
[0082] In step S440, the human-machine interface is obtained according to the executable file and the resource package of the human-machine interface development tool.
[0083] Figure 1 The human-machine interface development tool 110 shown in the figure is displayed and runs on the replaced operating system, and the human-machine interface development tool 110 displays the human-machine interface on the liquid crystal display screen of the human-machine interface 150 through the lower machine target board 130.
[0084] Figure 5 is a block diagram of an implementation device of a human-machine interface shown in an exemplary embodiment of the present application. The device can be applied to Figure 1The implementation environment shown, and specifically configured in the man-machine interface development tool 110. The device can also be applied to other exemplary implementation environment, and specifically configured in other devices, the embodiment does not limit the implementation environment applicable to the device.
[0085] As shown in the implementation of the example of the man-machine interface, the implementation device includes: Figure 5
[0086] The tool file acquisition module 510 is used to acquire the configuration file, resource package and library file of the man-machine interface development tool by developing the interface of the man-machine interface development tool; the library file acquisition module 520 is used to acquire the library file of the lower machine target board, and acquire the configuration file and library file of multiple operating systems; the system engine acquisition module 530 is used to package the man-machine interface development tool and the configuration file and library file of multiple operating systems, and acquire the engine of multiple operating systems; the tool engine acquisition module 540 is used to fuse the engine of multiple operating systems, and acquire the engine of the man-machine interface development tool; the execution file acquisition module 550 is used to compile the engine of the man-machine interface development tool and the library file of the lower machine target board, and acquire the executable file executed on different operating systems; and the man-machine interface acquisition module 560 is used to acquire the man-machine interface according to the resource package of the man-machine interface development tool and the executable file.
[0087] The embodiment of the application further provides an electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device realizes the man-machine interface implementation method provided in each of the above embodiments.
[0088] Figure 6 The structure of the computer system of the electronic device suitable for realizing the embodiment of the application is shown. It should be noted that, Figure 6 The computer system 600 of the electronic device shown is only an example, and should not limit the functions and use range of the embodiment of the application.
[0089] As shown in the implementation of the example of the man-machine interface, the implementation device includes: Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601 that can perform various suitable actions and processes in accordance with programs stored in a read-only memory (ROM) 602 or loaded into a random access memory (RAM) 603 from a storage section 608, such as performing the methods described in the above embodiments. Various programs and data required for the operation of the system are also stored in the RAM 603. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0090] Connected to the I / O interface 605 are an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as necessary. A removable recording medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 610 as necessary, so that a computer program read therefrom is installed into the storage section 608 as necessary.
[0091] In particular, in accordance with embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program comprising computer programs for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 609, and / or installed from the removable recording medium 611. When the computer program is executed by the central processing unit (CPU) 601, various functions defined in the system of the present application are performed.
[0092] It should be noted that the computer-readable medium in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may, for example, be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this application, the computer-readable signal medium can include a data signal propagated in a baseband or as a carrier wave in a propagated data signal, in which the computer-readable computer program is carried. Such a propagated data signal can take many forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit the program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination thereof.
[0093] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present application. In the flowcharts or block diagrams, each block can represent a module, a program segment, or a part of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different orders than those noted in the drawings. For example, two blocks represented in succession can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0094] The units described in the embodiments of the present application can be implemented in the form of software, or can be implemented in the form of hardware, and the described units can also be arranged in a processor. In some cases, the names of the units do not constitute a limitation on the units themselves.
[0095] Another aspect of the present application also provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor of a computer, so that the computer executes the implementation method of the human-machine interface as described above. The computer readable storage medium can be included in the electronic device described in the above embodiments, or can exist separately and not be assembled into the electronic device.
[0096] Another aspect of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the implementation method of the human-machine interface provided in each of the above embodiments.
[0097] The above embodiments only exemplarily illustrate the principles and effects of the present application, and are not used to limit the present application. Any person skilled in the art can modify or change the above embodiments without departing from the spirit and scope of the present application. Therefore, all equivalent modifications or changes completed by any person skilled in the art without departing from the spirit and technical thought of the present application should be covered by the claims of the present application.
Claims
1. A method of implementing a human-machine interface, characterized in that, The method comprises: obtaining the configuration file, resource package and library file of the human-computer interface development tool through interface development of the human-computer interface development tool; obtaining the library file of the lower computer target board and the configuration file and library file of multiple operating systems; packaging the configuration file and library file of the human-computer interface development tool and the configuration file and library file of multiple operating systems to obtain the engine file of the multiple operating systems; fusing the engine files of the multiple operating systems to obtain the engine file of the human-computer interface development tool; compiling the engine file of the human-computer interface development tool and the library file of the lower computer target board to obtain an executable file for execution on different operating systems; and obtaining a human-computer interface according to the resource package of the human-computer interface development tool and the executable file; obtaining the configuration file and library file of the operating system to be replaced and the new resource package of the human-computer interface development tool; if the engine file of the corresponding operating system exists in the original engine file of the human-computer interface development tool, replacing the configuration file and library file in the engine file with the configuration file and library file of the operating system to be replaced to obtain a new engine file of the human-computer interface development tool; compiling the new engine file to obtain a new executable file; and obtaining a human-computer interface according to the new executable file and the new resource package.
2. The method of claim 1, wherein, The interface development of the human-computer interface development tool comprises the following steps: obtaining vehicle-mounted data to be displayed on the instrument panel; designing an interface according to the vehicle-mounted data on the development interface of the upper computer of the human-computer interface development tool to obtain graphical interface information.
3. The method of claim 1, wherein, The implementation method of the human-computer interface further comprises the following steps: obtaining image resource information of the human-computer interface development tool; obtaining compilation tool information.
4. The method of claim 1, wherein, The obtaining of the human-computer interface further comprises the following steps: obtaining the configuration file of the lower computer target board; obtaining interface information of the instrument panel display screen.
5. The method of claim 4, wherein, The obtaining of the human-computer interface further comprises the following steps: displaying a human-computer interface on the instrument panel display screen according to the configuration file of the lower computer target board, the interface information of the instrument panel display screen and the resource package of the human-computer interface development tool.
6. An apparatus for implementing a human-machine interface, characterized in that The device comprises: a tool file obtaining module configured to obtain the configuration file, resource package and library file of the human-computer interface development tool through interface development of the human-computer interface development tool; a library file obtaining module configured to obtain the library file of the lower computer target board and the configuration file and library file of multiple operating systems; a system engine obtaining module configured to package the configuration file and library file of the human-computer interface development tool and the configuration file and library file of multiple operating systems to obtain the engine file of the multiple operating systems; a tool engine obtaining module configured to fuse the engine files of the multiple operating systems to obtain the engine file of the human-computer interface development tool; and a compiling module configured to compile the engine file of the human-computer interface development tool and the library file of the lower computer target board to obtain an executable file for execution on different operating systems. The execution file acquisition module is configured to compile engine files of the human-computer interface development tool and library files of the slave machine target board to obtain executable files for execution on different operating systems. The human-computer interface acquisition module is configured to acquire a human-computer interface according to resource packs of the human-computer interface development tool and the executable files. The configuration files and the library files of the operating system to be replaced are acquired, and new resource packs of the human-computer interface development tool are acquired; if there is an engine file corresponding to the operating system in the original engine file of the human-computer interface development tool, the configuration files and the library files of the operating system to be replaced are replaced with the configuration files and the library files in the engine file to obtain a new engine file of the human-computer interface development tool; the new engine file is compiled to obtain new executable files; and a human-computer interface is acquired according to the new executable files and the new resource packs.
7. An electronic device, comprising: The electronic device includes: one or more processors; a storage device configured to store one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the method for implementing a human-computer interface according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, A computer program is stored thereon, which, when executed by a processor of a computer, causes the computer to implement the method for implementing a human-computer interface according to any one of claims 1 to 5.
Citation Information
Patent Citations
Software development platform for embedded industrial control instrument
CN103077039A
System and method compatible with front-end pages of different engines
CN109117174A