CN117573258A - Man-machine interaction interface management method and device for vehicle-mounted instrument - Google Patents

Man-machine interaction interface management method and device for vehicle-mounted instrument Download PDF

Info

Publication number
CN117573258A
CN117573258A CN202311572725.3A CN202311572725A CN117573258A CN 117573258 A CN117573258 A CN 117573258A CN 202311572725 A CN202311572725 A CN 202311572725A CN 117573258 A CN117573258 A CN 117573258A
Authority
CN
China
Prior art keywords
interface
human
computer interaction
vehicle
interaction interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311572725.3A
Other languages
Chinese (zh)
Inventor
候磊
徐猛
曹戎格
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Original Assignee
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BDstar Intelligent and Connected Vehicle Technology Co Ltd filed Critical BDstar Intelligent and Connected Vehicle Technology Co Ltd
Priority to CN202311572725.3A priority Critical patent/CN117573258A/en
Publication of CN117573258A publication Critical patent/CN117573258A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention provides a man-machine interaction interface management method and device of a vehicle-mounted instrument, which are based on a plurality of preset components and are configured to be used for a plurality of man-machine interaction interfaces provided by the vehicle-mounted instrument; creating corresponding interface objects for each human-computer interaction interface, and storing the corresponding human-computer interaction interface and corresponding path information thereof through each interface object; creating a basic object based on functions shared by all human-computer interaction interfaces, and storing state information of all human-computer interaction interfaces through the basic object; instantiating each human-computer interaction interface based on the human-computer interaction interfaces and path information stored by each interface object, and storing the instantiation results of all the human-computer interaction interfaces; when the vehicle-mounted instrument provides a human-computer interaction interface, interface state switching of the human-computer interaction interface provided by the vehicle-mounted instrument is performed according to a workflow with a preset stack structure based on the basic object. The invention can improve the interface development efficiency of the vehicle-mounted instrument.

Description

Man-machine interaction interface management method and device for vehicle-mounted instrument
Technical Field
The invention relates to the technical field of man-machine interaction, in particular to a man-machine interaction interface management method and device of a vehicle-mounted instrument.
Background
With the continuous development of automobile technology, vehicle-mounted meters gradually change from traditional mechanical meters to digital and electronic meters. The 3D vehicle-mounted instrument is an innovative vehicle-mounted instrument based on a 3D image display technology, and can present real, vivid and panoramic driving information by using a high-resolution display screen and an advanced graphic processing technology. The conventional mechanical instrument panel has some limitations in displaying driving information, such as inability to display a large amount of information, difficulty in providing flexible interface customization, and the like. And the 3D vehicle-mounted instrument provides better information display and interaction experience by displaying the digitized driving information to the driver in a realistic three-dimensional effect. However, the existing 3D vehicle-mounted instrument has complex interface development, high professional requirements for developers, large amounts of codes need to be modified once the interface display content is adjusted, the workload is large, and the existing 3D vehicle-mounted instrument has limited man-machine interaction capability, so that part of functional requirements of users are difficult to meet.
Disclosure of Invention
Accordingly, an objective of the present invention is to provide a method and apparatus for managing a human-computer interaction interface of a vehicle-mounted instrument, so as to alleviate the above-mentioned problems in the related art.
In a first aspect, an embodiment of the present invention provides a method for managing a human-computer interaction interface of a vehicle-mounted instrument, where the method includes: based on a plurality of preset components, configuring a plurality of human-computer interaction interfaces provided by the vehicle-mounted instrument; each preset component is provided with a corresponding source code, and each human-computer interaction interface is provided with a corresponding interface type and interface state, wherein the interface state comprises display, pause, resume and exit of the human-computer interaction interface; creating corresponding interface objects for each human-computer interaction interface, and storing the corresponding human-computer interaction interface and corresponding path information thereof through each interface object; creating a basic object based on functions shared by all human-computer interaction interfaces, and storing state information of all human-computer interaction interfaces through the basic object; the state information comprises interfaces called when the corresponding man-machine interaction interface displays, pauses, resumes and exits; instantiating each human-computer interaction interface based on the human-computer interaction interfaces and path information stored by each interface object, and storing the instantiation results of all the human-computer interaction interfaces; and when the vehicle-mounted instrument provides a human-computer interaction interface, switching the interface state of the human-computer interaction interface provided by the vehicle-mounted instrument according to a workflow with a preset stack structure based on the basic object.
In a second aspect, an embodiment of the present invention further provides a human-computer interaction interface management device of a vehicle-mounted instrument, where the device includes: the configuration module is used for configuring a plurality of human-computer interaction interfaces provided by the vehicle-mounted instrument based on a plurality of preset components; each preset component is provided with a corresponding source code, and each human-computer interaction interface is provided with a corresponding interface type and interface state, wherein the interface state comprises display, pause, resume and exit of the human-computer interaction interface; the first storage module is used for creating corresponding interface objects for each human-computer interaction interface and storing the corresponding human-computer interaction interface and corresponding path information thereof through each interface object; the second storage module is used for creating a basic object based on the functions shared by all the man-machine interaction interfaces and storing the state information of all the man-machine interaction interfaces through the basic object; the state information comprises interfaces called when the corresponding man-machine interaction interface displays, pauses, resumes and exits; the instantiation module is used for instantiating each human-computer interaction interface based on the human-computer interaction interfaces and the path information stored by each interface object and storing the instantiation results of all the human-computer interaction interfaces; and the workflow module is used for switching the interface state of the man-machine interaction interface provided by the vehicle-mounted instrument according to the workflow of the preset stack structure based on the basic object when the vehicle-mounted instrument provides the man-machine interaction interface.
According to the man-machine interaction interface management method and device for the vehicle-mounted instrument, a plurality of man-machine interaction interfaces for providing the vehicle-mounted instrument are configured based on a plurality of preset components, corresponding interface objects are created for each man-machine interaction interface to store the corresponding man-machine interaction interfaces and corresponding path information of the man-machine interaction interfaces, a basic object is created based on functions shared by all the man-machine interaction interfaces to store state information of all the man-machine interaction interfaces, instantiations of all the man-machine interaction interfaces are carried out based on the man-machine interaction interfaces and the path information stored by all the interface objects, and instantiation results are stored, and when the man-machine interaction interfaces are provided by the vehicle-mounted instrument, interface state switching of the man-machine interaction interfaces provided by the vehicle-mounted instrument is carried out according to a workflow of a preset stack structure based on the basic object. By adopting the technology, by introducing the preset components, a developer can complete the flexible configuration of the interface of the vehicle-mounted instrument by using the preset components, so that the professional requirement of the development of the interface of the vehicle-mounted instrument on the developer is reduced; by creating interface objects to store each interface and path information thereof separately and creating basic objects to store state information of all interfaces, the calculation amount of interface instantiation is reduced, and the development efficiency of the vehicle-mounted instrument interface is improved; the interface interaction of the vehicle-mounted instrument is carried out by introducing the stack structure workflow, complex user interaction logic can be easily realized, the man-machine interaction capability of the vehicle-mounted instrument is improved, and the requirement of diversified functions of a user is met.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for managing a human-computer interaction interface of a vehicle-mounted instrument according to an embodiment of the invention;
FIG. 2 is a flowchart illustrating a method for managing a human-computer interaction interface of a vehicle-mounted instrument according to an embodiment of the present invention;
FIG. 3 is an exemplary diagram of interface state switching in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a man-machine interaction interface management device of a vehicle-mounted instrument according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described in conjunction with the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
At present, the interface development of the existing 3D vehicle-mounted instrument is complex, the professional requirement on the developer is high, a large number of codes need to be modified once the adjustment of interface display content is involved, the workload is large, the man-machine interaction capability of the existing 3D vehicle-mounted instrument is limited, and the part of functional requirements of users are difficult to meet.
Based on the above, the human-computer interaction interface management method and device for the vehicle-mounted instrument provided by the embodiment of the invention can alleviate the problems in the related art.
For the convenience of understanding the present embodiment, first, a detailed description will be given of a method for managing a human-computer interaction interface of a vehicle-mounted instrument disclosed in the present embodiment, referring to a flow chart of a method for managing a human-computer interaction interface of a vehicle-mounted instrument shown in fig. 1, the method may include the following steps:
step S102, based on a plurality of preset components, a plurality of man-machine interaction interfaces provided by the vehicle-mounted instrument are configured.
Each preset component is provided with a corresponding source code, and each human-computer interaction interface is provided with a corresponding interface type and interface state, wherein the interface state comprises display, pause, resume and exit of the human-computer interaction interface.
In-vehicle meters typically employ a QNX operating system or other operating system rather than an Android operating system.
The preset components can comprise various components for configuring UI elements (such as buttons, text boxes, scrolling views and the like) of the human-computer interaction interface, a developer can rapidly customize the configuration UI elements of the human-computer interaction interface in a mode of adding, removing or modifying the preset components, and can realize the adjustment of interface styles and layouts by simple operation on the UI elements, and the interface configuration can be completed without rewriting or modifying a large number of codes.
Step S104, creating corresponding interface objects for each human-computer interaction interface, and storing the corresponding human-computer interaction interfaces and corresponding path information thereof through each interface object.
The path information indicates the path according to which the man-machine interaction interface is loaded.
Step S106, a basic object is created based on the functions shared by all the man-machine interaction interfaces, and state information of all the man-machine interaction interfaces is stored through the basic object.
The state information comprises interfaces called when the corresponding man-machine interaction interface displays, pauses, resumes and exits.
Step S108, instantiating each human-computer interaction interface based on the human-computer interaction interfaces and the path information stored by each interface object, and storing the instantiation results of all the human-computer interaction interfaces.
For a certain man-machine interaction interface, the man-machine interaction interface and path information thereof can be obtained from an interface object corresponding to the man-machine interaction interface, the man-machine interaction interface is loaded according to the path information, and the man-machine interaction interface is instantiated and the instantiation result is stored.
Step S110, when the vehicle-mounted instrument provides a human-computer interaction interface, switching the interface state of the human-computer interaction interface provided by the vehicle-mounted instrument according to a workflow with a preset stack structure based on the basic object.
The stack for storing the man-machine interaction interface can be created in advance, the stack-pulling operation (the man-machine interaction interface with the stack top leaves the stack and resumes to be displayed) and the stack-pulling operation (the man-machine interaction interface exits and coexists to the stack top) of the man-machine interaction interface are defined, and the workflow of the stack is defined in advance; when the vehicle-mounted instrument performs interactive display of the human-computer interaction interface, the interface called during display, suspension, restoration and exit of the corresponding human-computer interaction interface can be obtained from the basic object according to a predefined workflow, and the corresponding interface is called through a pop operation and/or a push operation to realize switching of the display, suspension, restoration and exit of the corresponding human-computer interaction interface.
According to the man-machine interaction interface management method for the vehicle-mounted instrument, a plurality of man-machine interaction interfaces for providing by the vehicle-mounted instrument are configured based on a plurality of preset components, corresponding interface objects are created for each man-machine interaction interface to store the corresponding man-machine interaction interfaces and corresponding path information of the man-machine interaction interfaces, a basic object is created based on functions shared by all the man-machine interaction interfaces to store state information of all the man-machine interaction interfaces, instantiations of all the man-machine interaction interfaces are carried out based on the man-machine interaction interfaces and the path information stored by all the interface objects, and instantiation results are stored, and when the man-machine interaction interfaces are provided by the vehicle-mounted instrument, interface state switching of the man-machine interaction interfaces provided by the vehicle-mounted instrument is carried out according to a workflow of a preset stack structure based on the basic object. By adopting the technology, by introducing the preset components, a developer can complete the flexible configuration of the interface of the vehicle-mounted instrument by using the preset components, so that the professional requirement of the development of the interface of the vehicle-mounted instrument on the developer is reduced; by creating interface objects to store each interface and path information thereof separately and creating basic objects to store state information of all interfaces, the calculation amount of interface instantiation is reduced, and the development efficiency of the vehicle-mounted instrument interface is improved; the interface interaction of the vehicle-mounted instrument is carried out by introducing the stack structure workflow, complex user interaction logic can be easily realized, the man-machine interaction capability of the vehicle-mounted instrument is improved, and the requirement of diversified functions of a user is met.
As one possible implementation, the plurality of components may include an image component, a text component, a button component, a layout component, and an event component; based on this, the step S102 (i.e. configuring a plurality of man-machine interaction interfaces provided by the vehicle instrument based on a plurality of preset components) may include:
(1) Based on the image components, image attributes of each human-computer interaction interface are configured.
The image attributes may include padding, scaling, tiling, and the like, which are not limited.
By configuring the image attribute of each human-computer interaction interface, the human-computer interaction interface provided by the vehicle-mounted instrument can be adapted to the display of picture resources with different sizes.
(2) Based on the text component, text attributes of the respective human-computer interaction interfaces are configured.
The text attribute may include, but is not limited to, font, size, color, alignment, and the like.
By configuring text attributes of each human-computer interaction interface, the human-computer interaction interface provided by the vehicle-mounted instrument can achieve the display effect of the required text resources.
(3) And configuring the animation effect of each man-machine interaction interface based on the button assembly.
The animation effect may be a transition effect or other custom effect representing gradual change, rotation, scaling, change from large to small, change from far to near, and the like, which is not limited.
By configuring the animation effect of each man-machine interaction interface, the man-machine interaction experience of the user and the man-machine interaction interface provided by the vehicle-mounted instrument can be improved.
(4) Based on the layout component, the UI element layout of each human-computer interaction interface is configured.
Wherein the UI element layout includes a position and a size of the UI element. The layout components may include horizontal layout components, vertical layout components, and the like, which are not limited. For example, the UI Scale Mode attribute of a canvas (i.e., a container for accommodating UI elements) may be modified by way of writing and executing scripts, thereby adjusting the minimum and maximum positions of UI element anchors to ensure that the UI elements are properly adapted at different resolutions.
By configuring the UI element layout of each human-computer interaction interface, the human-computer interaction interface provided by the vehicle-mounted instrument can be adapted to UI element display under different screen resolutions, a developer does not need to manually calculate and adjust the position and the size of the UI element, and the interface development efficiency of the vehicle-mounted instrument is improved.
(5) Based on the event component, the interaction event and callback function of each man-machine interaction interface are configured.
The interaction event may be various events triggered by operations such as clicking and sliding performed by the user, which are not limited. A callback function is a function that passes as a parameter to another function and is called for execution when a specific interaction event occurs, i.e., the callback function is actually a function that is taken as a parameter.
By configuring the interaction event and callback function of each human-computer interaction interface, the human-computer interaction interface provided by the vehicle-mounted instrument can support the interaction function of various user operations, so that the human-computer interaction capability of the vehicle-mounted instrument is improved, the vehicle-mounted instrument can conveniently realize the user interaction logic by monitoring the interaction event, a developer does not need to manually perform related processing, and the interface development efficiency of the vehicle-mounted instrument is improved.
As a possible implementation manner, the human-computer interaction interface management method of the vehicle-mounted instrument may further include: when the vehicle-mounted instrument provides a human-computer interaction interface, the size of each UI element in the human-computer interaction interface provided by the vehicle-mounted instrument is adjusted based on the current display parameters of the vehicle-mounted instrument.
The display parameters may include, but are not limited to, a size, a resolution, and the like of the screen.
When the vehicle-mounted instrument performs interactive display of the human-computer interaction interface, the current resolution of the screen can be obtained, the current resolution is compared with the preset resolution of the human-computer interaction interface provided by the vehicle-mounted instrument, and then the size adjustment parameters (such as scaling parameters and the like) of all the UI elements in the human-computer interaction interface are determined according to the comparison result, so that the size of all the UI elements in the human-computer interaction interface is adjusted by using the size adjustment parameters, and the self-adaptive display of all the UI elements in the human-computer interaction interface under different resolutions is ensured.
As a possible implementation manner, the instantiating the human-computer interaction interfaces based on the human-computer interaction interfaces and the path information saved by the respective interface objects in the step S108 may include: analyzing corresponding human-computer interaction interfaces and path information from each interface object through a preset interface management object, loading the corresponding human-computer interaction interfaces based on the path information corresponding to each human-computer interaction interface, and then instantiating each loaded human-computer interaction interface to obtain an instantiated object corresponding to each human-computer interaction interface.
As a possible implementation manner, the storing the instantiation result of all the man-machine interaction interfaces in step S108 may include: and mapping the interface type and the instantiation object corresponding to each human-computer interaction interface into a corresponding dictionary through a preset interface management object for storage.
By the method of mapping the interface types and the instantiation objects into the dictionary for storage, when the human-computer interaction interface is instantiated, whether the instantiation object of the corresponding human-computer interaction interface exists in the dictionary or not can be rapidly judged by searching the dictionary, if yes, the fact that the corresponding human-computer interaction interface is instantiated before exists is indicated, and if not, the fact that the corresponding human-computer interaction interface is not instantiated before exists is indicated, the interface types of the human-computer interaction interface to be instantiated (i.e. the human-computer interaction interface which is not instantiated before) can be rapidly found by searching the dictionary, and then the corresponding human-computer interaction interface to be instantiated and state information and path information of the corresponding human-computer interaction interface to be instantiated are found from the basic object and the corresponding interface object according to the interface types, so that the human-computer interaction interface to be instantiated and an instantiation result is loaded. Therefore, the method for mapping the interface types and the instantiation objects into the dictionary for storage can avoid repeated instantiation of the human-computer interaction interface for a plurality of times, reduces redundant calculation of human-computer interaction interface instantiation, and is beneficial to improving the overall efficiency of human-computer interaction interface instantiation.
As a possible implementation manner, the saving, by the base object, the state information of all the human-computer interaction interfaces in the step S106 may include: saving all first interfaces called when the man-machine interaction interface is displayed through the basic object; saving all second interfaces which are called when the man-machine interaction interface is suspended through the basic object; saving all third interfaces called during the recovery of the human-computer interaction interface through the basic object; and saving the fourth interface which is called when all the man-machine interaction interfaces exit through the basic object.
Accordingly, the interface state switching of the man-machine interaction interface provided by the vehicle-mounted instrument based on the basic object according to the workflow with the preset stack structure in the step S110 may include: responding to the pop operation, calling a first interface to enable the current human-computer interaction interface provided by the vehicle-mounted instrument to be displayed, and calling a second interface to enable the last human-computer interaction interface corresponding to the current human-computer interaction interface provided by the vehicle-mounted instrument to be suspended; and in response to the push operation, calling the fourth interface to enable the current human-computer interaction interface provided by the vehicle-mounted instrument to exit, and calling the third interface to enable the last human-computer interaction interface corresponding to the current human-computer interaction interface provided by the vehicle-mounted instrument to be recovered.
By the state information storage mode and the interface state switching mode of the human-computer interaction interface, when various interaction events triggered by interaction operation between a user and the human-computer interaction interface occur, the vehicle-mounted instrument can rapidly and accurately execute complex user interaction logic without manually monitoring the interaction operation and triggering the interaction events by a developer, so that the interface development efficiency of the vehicle-mounted instrument is improved, the human-computer interaction capability of the vehicle-mounted instrument is improved, and the diversified function requirements of the user are met.
For ease of understanding, the operation of the human-computer interaction interface management method of the vehicle-mounted instrument is described herein by taking a specific application as an example as follows.
The man-machine interaction interface management method of the vehicle-mounted instrument can be written into corresponding executable scripts in advance, and the main operation flow of the man-machine interaction interface management method of the vehicle-mounted instrument is as follows, as shown in fig. 2:
step 1, a developer creates a Json file and a UIPanelType class to store the existing panel and the panel information thereof.
The panel is a man-machine interaction interface, the panel information comprises path information of the man-machine interaction interface, corresponding panels and panel information thereof can be saved by creating corresponding UIPanelType for each panel, and each created UIPanelType can be saved by creating a Json file (which can be named as UIPanelType. Json), so that needed data can be obtained from the corresponding UIPanelType of the Json file later.
And 2, starting a script by a developer, analyzing the panel and panel information thereof from the UIPanelType class of the Json file through a pre-developed UIM manager, so as to instantiate the panel and store an instantiation result.
Uimianage is the core of UI management, and a single instance mode can be used to implement uimianage with globally only one UI management class. Uimianager is used to: analyzing all panels and panel information thereof, loading the panels for instantiation to create instance objects, storing related information of all panels in a dictionary form and storing all the displayed panels in a stack structure management mode.
In order for the uimianager to manage and save all the displayed panels in a stack structure, a stack structure for storing the panels may be developed in advance for the uimianager, and a pop operation and a push operation may be defined.
And 3, storing interface states of the panels through the pre-developed BasePanel public base class.
The base classes (i.e., interface states) of the individual panels can be managed by developing a BasePanel common base class, and four functions are defined in the base class of each panel: the OnEnter function called when the panel is entered, the OnPause function called when the panel is stopped (e.g., the interaction of the mouse with the panel is stopped), the OnResume function called when the panel is restored to use (e.g., the interaction of the mouse with the panel is restored), and the OnExit function called when the panel is exited. All panels need to inherit the basePanel base class, and finally mutual jump among the panels is realized.
Based on the step 3, related interaction logic may also be defined for interface state switching. For example, the interaction logic may include: the mouse only allows interaction with one interface, and after one interface is displayed, the interaction with the mouse is stopped by the previous interface; performing Push operation (calling a Push function), displaying a current interface (calling an OnEnter function), stopping a previous interface (calling an OnPause function) and storing the previous interface to the top of the stack; and (3) carrying out a Pop operation (calling a Pop function), exiting the current interface (calling an OnExit function), taking the last interface out of the stack top and recovering the last interface (calling an OnResume function).
Referring to fig. 3, the main flow of interface state switching is as follows:
when the user operation triggers the display container to appear, calling the OnEnter function to display the current interface (recorded as interface 1); when the user operation triggers the exit event of the current interface to occur, invoking an OnExit function to remove the interface 1, and displaying the content of the interface 1 no longer by the container; when a stopping event of the user operation triggering interface 1 occurs, calling an OnPause function to pause the presentation of the current interface, and calling an OnResume function to resume the presentation of other interfaces (recorded as interface 2); when a user operation triggers a resume event of the current interface to occur, an OnResume function is invoked to resume presentation of the current interface, and an OnPause function is invoked to pause presentation of interface 2. The presentation, restoration and removal of the different interfaces forms a cyclic workflow.
The man-machine interaction interface management method of the vehicle-mounted instrument brings the following to development of the vehicle-mounted instrument
The beneficial effects are that:
1) And the UI design is simplified, and the UI development efficiency is improved. By adopting the idea of componentized design, the UI design is more flexible and efficient by abstracting various UI elements into components, and a developer can modify the behavior and appearance of the UI elements by adding, removing or modifying the components without rewriting or modifying a large amount of codes, thereby reducing complicated manual coding steps and accelerating the development speed.
2) And supporting the self-adaptive display of the multi-platform resources. The content display is carried out by adopting the fixed resolution ratio by the general vehicle-mounted HMI (Human Machine Interface) and the human-computer interface management method of the vehicle-mounted instrument, compared with the general vehicle-mounted HMI, the content display of the vehicle-mounted instrument can be ensured to be adaptive to different equipment and screen resolutions, and further, UI resources on different platforms can be ensured to be displayed in a self-adaptive mode through the vehicle-mounted instrument, so that the user experience of the vehicle-mounted instrument is improved.
3) Powerful interactive functions are supported. Through the relevant configuration of interaction events and interaction operations, the vehicle-mounted instrument can provide rich UI interaction functions, so that a developer can easily realize complex user interaction logic, the man-machine interaction capability is improved, and the diversified function requirements of users are met.
4) And the expandability is strong. A flexible UI architecture is provided for a developer, the developer is allowed to expand and customize according to specific project requirements, the UI architecture has good expansibility, and the developer can conveniently add new components or functions according to own requirements.
Based on the man-machine interaction interface management method of the vehicle-mounted instrument, the embodiment of the invention also provides a man-machine interaction interface management device of the vehicle-mounted instrument, and referring to fig. 4, the device can comprise the following modules:
a configuration module 402, configured to configure, based on a plurality of preset components, a plurality of human-computer interaction interfaces provided by the vehicle instrument; each preset component is provided with a corresponding source code, and each human-computer interaction interface is provided with a corresponding interface type and interface state, wherein the interface state comprises display, pause, resume and exit of the human-computer interaction interface.
The first storage module 404 is configured to create a corresponding interface object for each man-machine interaction interface, and store, through each interface object, the corresponding man-machine interaction interface and the corresponding path information thereof.
A second saving module 406, configured to create a basic object based on functions shared by all the man-machine interaction interfaces, and save state information of all the man-machine interaction interfaces through the basic object; the state information comprises interfaces called when the corresponding man-machine interaction interface displays, pauses, resumes and exits.
The instantiation module 408 is configured to instantiate each human-computer interaction interface based on the human-computer interaction interfaces and path information saved by each interface object, and save the instantiation results of all human-computer interaction interfaces.
And the workflow module 410 is configured to switch interface states of the man-machine interaction interface provided by the vehicle-mounted instrument according to a workflow with a preset stack structure based on the basic object when the vehicle-mounted instrument provides the man-machine interaction interface.
According to the man-machine interaction interface management device for the vehicle-mounted instrument, provided by the embodiment of the invention, by introducing the preset component, a developer can complete flexible interface configuration of the vehicle-mounted instrument by using the preset component only, so that the professional requirement of the development of the vehicle-mounted instrument interface on the developer is reduced; by creating interface objects to store each interface and path information thereof separately and creating basic objects to store state information of all interfaces, the calculation amount of interface instantiation is reduced, and the development efficiency of the vehicle-mounted instrument interface is improved; the interface interaction of the vehicle-mounted instrument is carried out by introducing the stack structure workflow, complex user interaction logic can be easily realized, the man-machine interaction capability of the vehicle-mounted instrument is improved, and the requirement of diversified functions of a user is met.
The instantiation module 408 described above may also be used to: analyzing corresponding human-computer interaction interfaces and path information from each interface object through a preset interface management object, loading the corresponding human-computer interaction interfaces based on the path information corresponding to each human-computer interaction interface, and then instantiating each loaded human-computer interaction interface to obtain an instantiated object corresponding to each human-computer interaction interface.
The instantiation module 408 described above may also be used to: and mapping the interface type and the instantiation object corresponding to each human-computer interaction interface into a corresponding dictionary through the preset interface management object for storage.
The second saving module 406 may also be configured to: storing all first interfaces called when the man-machine interaction interfaces are displayed through the basic object; storing all second interfaces called when the man-machine interaction interface is suspended through the basic object; saving all third interfaces which are called when the man-machine interaction interface is restored through the basic object; and storing the fourth interface which is called when all the man-machine interaction interfaces exit through the basic object.
The workflow module 410 described above may also be used to: responding to the pop operation, calling a first interface to enable the current human-computer interaction interface provided by the vehicle-mounted instrument to be displayed, and calling a second interface to enable the last human-computer interaction interface corresponding to the current human-computer interaction interface provided by the vehicle-mounted instrument to be suspended; and in response to the push operation, calling a fourth interface to enable the current human-computer interaction interface provided by the vehicle-mounted instrument to exit, and calling a third interface to enable the last human-computer interaction interface corresponding to the current human-computer interaction interface provided by the vehicle-mounted instrument to be restored.
The man-machine interaction interface management device of the vehicle-mounted instrument provided by the embodiment of the invention has the same implementation principle and the same generated technical effects as those of the man-machine interaction interface management method embodiment of the vehicle-mounted instrument, and for the sake of brief description, the corresponding contents in the method embodiment can be referred to where the device embodiment part is not mentioned.
The relative steps, numerical expressions and numerical values of the components and steps set forth in these embodiments do not limit the scope of the present invention unless it is specifically stated otherwise.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, but it should be understood by those skilled in the art that the present invention is not limited thereto, and that the present invention is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A man-machine interaction interface management method of a vehicle-mounted instrument is characterized by comprising the following steps:
based on a plurality of preset components, configuring a plurality of human-computer interaction interfaces provided by the vehicle-mounted instrument; each preset component is provided with a corresponding source code, and each human-computer interaction interface is provided with a corresponding interface type and interface state, wherein the interface state comprises display, pause, resume and exit of the human-computer interaction interface;
creating corresponding interface objects for each human-computer interaction interface, and storing the corresponding human-computer interaction interface and corresponding path information thereof through each interface object;
creating a basic object based on functions shared by all human-computer interaction interfaces, and storing state information of all human-computer interaction interfaces through the basic object; the state information comprises interfaces called when the corresponding man-machine interaction interface displays, pauses, resumes and exits;
instantiating each human-computer interaction interface based on the human-computer interaction interfaces and path information stored by each interface object, and storing the instantiation results of all the human-computer interaction interfaces;
and when the vehicle-mounted instrument provides a human-computer interaction interface, switching the interface state of the human-computer interaction interface provided by the vehicle-mounted instrument according to a workflow with a preset stack structure based on the basic object.
2. The method of claim 1, wherein the plurality of components includes an image component, a text component, a button component, a layout component, and an event component; based on a plurality of preset components, a plurality of man-machine interaction interfaces provided by the vehicle-mounted instrument are configured, and the man-machine interaction interfaces comprise:
configuring image attributes of each human-computer interaction interface based on the image components;
configuring text attributes of each human-computer interaction interface based on the text component;
configuring animation effects of each human-computer interaction interface based on the button assembly;
configuring UI element layouts of all man-machine interaction interfaces based on the layout components; wherein the UI element layout includes a position and a size of the UI element;
based on the event component, the interaction event and callback function of each man-machine interaction interface are configured.
3. The method according to claim 1, wherein the method further comprises:
and when the vehicle-mounted instrument provides a human-computer interaction interface, adjusting the size of each UI element in the human-computer interaction interface provided by the vehicle-mounted instrument based on the current display parameters of the vehicle-mounted instrument.
4. The method of claim 1, wherein instantiating each human-machine-interaction interface based on the human-machine-interaction interface and path information saved by each interface object comprises:
analyzing corresponding human-computer interaction interfaces and path information from each interface object through a preset interface management object, loading the corresponding human-computer interaction interfaces based on the path information corresponding to each human-computer interaction interface, and then instantiating each loaded human-computer interaction interface to obtain an instantiated object corresponding to each human-computer interaction interface.
5. The method of claim 4, wherein saving the instantiation result of all human-machine interaction interfaces comprises:
and mapping the interface type and the instantiation object corresponding to each human-computer interaction interface into a corresponding dictionary through the preset interface management object for storage.
6. The method of claim 1, wherein storing state information of all human-machine interaction interfaces through the base object comprises:
storing all first interfaces called when the man-machine interaction interfaces are displayed through the basic object;
storing all second interfaces called when the man-machine interaction interface is suspended through the basic object;
saving all third interfaces which are called when the man-machine interaction interface is restored through the basic object;
and storing the fourth interface which is called when all the man-machine interaction interfaces exit through the basic object.
7. The method of claim 6, wherein switching interface states of a human-machine interaction interface provided by the vehicle-mounted instrument according to a preset stack structure workflow based on the base object comprises:
responding to the pop operation, calling a first interface to enable the current human-computer interaction interface provided by the vehicle-mounted instrument to be displayed, and calling a second interface to enable the last human-computer interaction interface corresponding to the current human-computer interaction interface provided by the vehicle-mounted instrument to be suspended;
and in response to the push operation, calling a fourth interface to enable the current human-computer interaction interface provided by the vehicle-mounted instrument to exit, and calling a third interface to enable the last human-computer interaction interface corresponding to the current human-computer interaction interface provided by the vehicle-mounted instrument to be restored.
8. A human-computer interaction interface management device of a vehicle-mounted instrument, the device comprising:
the configuration module is used for configuring a plurality of human-computer interaction interfaces provided by the vehicle-mounted instrument based on a plurality of preset components; each preset component is provided with a corresponding source code, and each human-computer interaction interface is provided with a corresponding interface type and interface state, wherein the interface state comprises display, pause, resume and exit of the human-computer interaction interface;
the first storage module is used for creating corresponding interface objects for each human-computer interaction interface and storing the corresponding human-computer interaction interface and corresponding path information thereof through each interface object;
the second storage module is used for creating a basic object based on the functions shared by all the man-machine interaction interfaces and storing the state information of all the man-machine interaction interfaces through the basic object; the state information comprises interfaces called when the corresponding man-machine interaction interface displays, pauses, resumes and exits;
the instantiation module is used for instantiating each human-computer interaction interface based on the human-computer interaction interfaces and the path information stored by each interface object and storing the instantiation results of all the human-computer interaction interfaces;
and the workflow module is used for switching the interface state of the man-machine interaction interface provided by the vehicle-mounted instrument according to the workflow of the preset stack structure based on the basic object when the vehicle-mounted instrument provides the man-machine interaction interface.
9. The apparatus of claim 8, wherein the plurality of components includes an image component, a text component, a button component, a layout component, and an event component; the configuration module is further configured to: configuring image attributes of each human-computer interaction interface based on the image components; configuring text attributes of each human-computer interaction interface based on the text component; configuring animation effects of each human-computer interaction interface based on the button assembly; configuring UI element layouts of all man-machine interaction interfaces based on the layout components; wherein the UI element layout includes a position and a size of the UI element; based on the event component, the interaction event and callback function of each man-machine interaction interface are configured.
10. The apparatus of claim 8, wherein the apparatus further comprises:
and the adjusting module is used for adjusting the sizes of all UI elements in the man-machine interaction interface provided by the vehicle-mounted instrument based on the current display parameters of the vehicle-mounted instrument when the vehicle-mounted instrument provides the man-machine interaction interface.
CN202311572725.3A 2023-11-23 2023-11-23 Man-machine interaction interface management method and device for vehicle-mounted instrument Pending CN117573258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311572725.3A CN117573258A (en) 2023-11-23 2023-11-23 Man-machine interaction interface management method and device for vehicle-mounted instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311572725.3A CN117573258A (en) 2023-11-23 2023-11-23 Man-machine interaction interface management method and device for vehicle-mounted instrument

Publications (1)

Publication Number Publication Date
CN117573258A true CN117573258A (en) 2024-02-20

Family

ID=89887786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311572725.3A Pending CN117573258A (en) 2023-11-23 2023-11-23 Man-machine interaction interface management method and device for vehicle-mounted instrument

Country Status (1)

Country Link
CN (1) CN117573258A (en)

Similar Documents

Publication Publication Date Title
Myers User interface software tools
JP3368188B2 (en) Multitask data processing system and method
US7030890B1 (en) Displaying graphical objects
US5459832A (en) Method and apparatus for editing groups of graphic images
CN102221993B (en) The declarative definition of complex user interface Status Change
Zukowski The definitive guide to Java Swing
JP2012521041A (en) Smooth layout animation for continuous and discontinuous properties
JP2012084165A (en) Program for causing computer to generate user interface
CN101374213A (en) Implementing method for self-defining television human-machine interface
US20130080879A1 (en) Methods and apparatus providing document elements formatting
CN112364496B (en) Avionics simulation panel generation system based on HTML5 and VUE technologies
CN112445564A (en) Interface display method, electronic device and computer readable storage medium
Dessart et al. Animated transitions between user interface views
US20090320004A1 (en) Test Instrument Graphical User Interface
CN117573258A (en) Man-machine interaction interface management method and device for vehicle-mounted instrument
Magni Delphi GUI Programming with FireMonkey: Unleash the full potential of the FMX framework to build exciting cross-platform apps with Embarcadero Delphi
Cornez Android Programming Concepts
CN112445501A (en) Data burning method and device and computer readable storage medium
Morris Hands-On Android UI Development: Design and develop attractive user interfaces for Android applications
CN113407183A (en) Interface generation method, device, equipment and storage medium
US20090119607A1 (en) Integration of disparate rendering platforms
Sweet KDE 2.0 Development
CN117608560B (en) LVGL page display code generation method, device, equipment and medium
Pavlidis Fundamentals of X programming: graphical user interfaces and beyond
CN111666028B (en) Method, apparatus, medium, and computer device for creating a multi-page sliding view

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination