Page view generation method, control method, medium and equipment

Through the generation method, the component library and manifest files of the smart cockpit system are obtained, and the attribute information and views are analyzed and bound, which solves the problem of cumbersome page layout code design in the development of the smart cockpit system, improves development efficiency and reduces workload.

CN119718528AActive Publication Date: 2025-03-28VOYAH AUTOMOBILE TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202510228150.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-03-28
Estimated Expiration
2045-02-28

AI Technical Summary

Technical Problem

In the application development process of smart cockpit systems, the code design of page layout needs to be manually written, resulting in large workload and low development efficiency.

Method used

Provides a page view generation method, which generates a target container by obtaining the component library and manifest file of the target application, parsing the manifest file, and binding the target attribute information with the initial view to generate the target view.

Benefits of technology

It reduces the development workload of target applications of smart cockpit systems, improves development efficiency, and reduces the amount of code writing and code coupling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718528A_ABST
    Figure CN119718528A_ABST
Patent Text Reader

Abstract

The invention discloses a page view generation method, a control method, a medium and equipment, the page view generation method is applied to an intelligent cabin system of a vehicle, the intelligent cabin system comprises a target application, the target application comprises a target page, and the page view generation method comprises the following steps: obtaining a component library and a list file of the target application, the component library comprises a plurality of basic components, the list file comprises configuration information of containers corresponding to the basic components, and the configuration information is used for describing attribute information and view types of the basic components; a target basic component is obtained from a component library, the list file is analyzed, a target container corresponding to the target basic component is generated, and target attribute information and a target initial view are arranged in the target container; and binding the target attribute information with the target initial view to generate a target view with the target attribute information on the target page. The development efficiency of the intelligent cabin system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of intelligent cockpit systems, and in particular, relates to a page view generation method, control method, medium and device. Background Art

[0002] In the field of smart cockpits, in order to improve the performance of application software in smart cockpits, OEMs usually need to undertake application development work for smart cockpit systems.

[0003] At present, in the application development process of the smart cockpit system, for example, in the application page development process, code design requires people to manually write all page layouts and then implement the business on the layout. The workload of writing code is large, the development workload is large, and the development efficiency is low. Summary of the invention

[0004] The embodiments of the present application provide a page view generation method, a control method, a medium and a device, which can reduce the development workload of the target application of the smart cockpit system and improve the development efficiency at least to a certain extent.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] A first aspect of an embodiment of the present application provides a page view generation method, which is applied to a smart cockpit system of a vehicle, wherein the smart cockpit system includes a target application, and the target application includes a target page. The method includes: Acquire a component library and a manifest file of the target application, wherein the component library includes a plurality of basic components, and the manifest file includes configuration information of containers corresponding to the basic components, wherein the configuration information is used to describe attribute information and view types of the basic components; Acquire a target basic component from the component library, parse the manifest file, and generate a target container corresponding to the target basic component, wherein the target container is provided with target attribute information and a target initial view; The target attribute information and the target initial view are bound to generate a target view having the target attribute information on the target page.

[0007] Optionally, the target container includes an information storage unit and a view bearing unit, the information storage unit is used to store the target attribute information, and the view bearing unit is used to bear the target initial view; The binding of the target attribute information and the target initial view includes: The information storage unit and the view bearing unit are bound to each other so that the target attribute information and the target initial view are bound to each other.

[0008] Optionally, the target container further includes a control unit, and after the target page generates a target view having the target attribute information, the method further includes: In response to a property change operation of the user, the target view sends the property change operation to the target container; The target container forwards the property change operation to the control unit, and the control unit modifies the target property information according to the property change operation so as to update the target view based on the binding relationship between the information storage unit and the view bearing unit.

[0009] Optionally, before obtaining the component library and manifest file of the target application, the method further includes: Acquire the property requirement information of the target basic component and at least one reference component among the multiple basic components, where the reference component is a component that already has configuration information of a container; If there is a target reference component in the at least one reference component, the configuration information of the reference control unit corresponding to the target reference component is used as the basic configuration information of the control unit corresponding to the target basic component, wherein the similarity between the attribute requirement information of the target reference component and the attribute requirement information of the target basic component is greater than or equal to a preset first threshold.

[0010] Optionally, obtaining the manifest file includes: Obtain application requirement information of the target application of the current vehicle model; If there is a historical vehicle model whose similarity with the application requirement information of the current vehicle model is greater than or equal to a preset second threshold, the historical list file of the historical vehicle model is obtained, and the historical list file is filtered based on preset filtering rules to obtain the list file of the target application of the current vehicle model.

[0011] Optionally, before obtaining the component library and manifest file of the target application, the method further includes: Obtain an interface identification file provided by a vehicle service gateway, wherein the interface identification file includes multiple interface identifications; The target interface identifier corresponding to the target basic component is used as the configuration information of the target container object and configured in the manifest file.

[0012] A second aspect of an embodiment of the present application provides a control method, the method further comprising: Based on the target view in any one of the methods described in the first aspect, responding to a service control operation of the user; Generate a control instruction according to the business control operation, and send the control instruction and the target interface identifier to the vehicle service gateway so that the vehicle service gateway identifies the corresponding business controller according to the target interface identifier and forwards the control instruction to the business controller, wherein the target attribute information includes the target interface identifier.

[0013] Optionally, the target container includes a control unit, and the response to the service control operation of the user includes: The target view responds to the service control operation of the user and sends the service control operation to the target container; The generating a control instruction according to the service control operation, and sending the control instruction and the target interface identifier to the vehicle service gateway includes: The target container sends the service control operation to the control unit, and the control unit generates a control instruction according to the service control operation, and sends the control instruction and the target interface identifier to the vehicle service gateway.

[0014] According to a third aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one computer program instruction is stored. The at least one computer program instruction is loaded and executed by a processor to implement operations performed by any method described in the first aspect, or operations performed by the method described in the second aspect.

[0015] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement operations performed by any method described in the first aspect, or operations performed by any method described in the second aspect.

[0016] One or more technical solutions provided by the embodiments of the present invention achieve at least the following technical effects or advantages: The page view generation method provided by the embodiment of the present application is applied to the intelligent cockpit system of the vehicle. The intelligent cockpit system includes a target application, and the target application includes a target page. The method includes: obtaining a component library and a manifest file of the target application, the component library includes multiple basic components, and the manifest file includes configuration information of the container corresponding to the basic component, and the configuration information is used to describe the attribute information and view type of the basic component; obtaining the target basic component from the component library, parsing the manifest file, and generating a target container corresponding to the target basic component, wherein the target container is provided with target attribute information and a target initial view; binding the target attribute information and the target initial view to generate a target view with target attribute information on the target page. Thus, by pre-building the component library and configuring the manifest file, the attribute information of the view is abstracted on the manifest file, and the business splicing and logic reuse capabilities of the components and containers are improved, the amount of code writing can be reduced, the code coupling is low, the development workload is reduced, and the development efficiency is improved.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings: Figure 1 A flow chart showing a method for generating a page view according to an embodiment of the present application is shown; Figure 2 A flow chart showing a control method according to an embodiment of the present application is shown; Figure 3 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

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

[0020] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0021] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0022] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0023] It should also be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the objects used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those shown or described.

[0024] In the field of smart cockpits, in order to improve the performance of application software in smart cockpits, OEMs usually need to undertake application development work for smart cockpit systems.

[0025] At present, in the application development process of the smart cockpit system, for example, in the application page development process, code design requires manual writing of all page layouts, and then implementing the business on the layout. For example, if a page needs to design 10 buttons, if the interfaces of the 10 buttons are the same, but the parameters are different, then it is necessary to write the code 10 times and modify the parameters to get the 10 buttons. The workload of writing code is large, the development workload is large, and the development efficiency is low.

[0026] In view of this, a first aspect of an embodiment of the present application provides a page view generation method, which can reduce the development workload of the target application of the smart cockpit system to a certain extent and improve development efficiency.

[0027] The page view generation method of the embodiment of the present application is described below with reference to specific drawings.

[0028] See also Figure 1 , showing a flow chart of a page view generation method according to an embodiment of the present application.

[0029] In a first aspect, an embodiment of the present application provides a page view generation method, which is applied to a smart cockpit system of a vehicle, wherein the smart cockpit system includes a target application, and the target application includes a target page. The method can be executed on a computer operated by a developer, and the method includes: Step S10. Acquire a component library and a manifest file of the target application, wherein the component library includes a plurality of basic components, and the manifest file includes configuration information of containers corresponding to the basic components, wherein the configuration information is used to describe attribute information and view types of the basic components; It is understandable that the embodiments of the present application can rely on the Android development platform to achieve page view generation of the target application.

[0030] The target application may refer to a setting application, which is a general application in the Android system. The user can control the relevant properties of the system through the setting application, such as the settings of sound, brightness, etc. It can be understood that in the Android system, the setting application is an application with a high degree of component reuse. Therefore, the target application may also be other applications with a high degree of component reuse, which is not limited here.

[0031] It should be noted that during the development of the smart cockpit system, the component reusability is usually sorted out based on development requirements to build a general public component library. However, when targeting specific target applications, the adaptability between the general public component library and the target application may be poor, for example, it can only meet 70% of the requirements. On this basis, developers can expand or modify the public component library according to the development requirements of the target application, such as adding components to build a component library that matches the target application. The component library includes several views. It can be understood that the view at this time does not contain any business logic, nor does it have attribute information such as style, size, width, and length. Therefore, the embodiment of the present application defines the view at this stage as a basic component.

[0032] On the basis of building the component library, it is also necessary to further clarify how to use the component library. The embodiment of the present application establishes a corresponding relationship between the basic component and the container, uses the container to carry the attribute information and view type of the basic component, and configures the container in the manifest file, thereby achieving code decoupling and improving the reuse of components and containers. The container and the manifest file are further introduced below.

[0033] It is understandable that after the target application is developed, it is presented as one or more pages on the human-computer interaction interface (HMI). In order to carry the information in the human-computer interaction page, the embodiment of the present application proposes the concept of a container (Preference), that is, the container can carry information on the human-computer interaction interface (HMI) (including one or more pages).

[0034] When configuring the container in the manifest file, you need to specify which specific attribute information to configure. For example, if you need to design 10 buttons on a page, and the attributes of each button may only be different in icons, then when configuring the container corresponding to each button component, you need to configure the differentiated icon attributes. In addition, you can also configure component attributes such as title and subtitle.

[0035] In addition, the container is also used to define the default layout file. The layout file is used to load the target basic component in the component library, and drag the target basic component to the layout information of the view (that is, display the initial view of the target basic component on the page). At this time, the initial view does not have attribute information. In addition, the style information of the view, such as length, width and other style information, can be configured in the manifest file. Thus, a container corresponds to a basic component with a unified style. It is understandable that the default layout file may not be configured in the manifest file, but if there are special needs, it can be configured in the manifest file. For example, in a special scenario, the width and height of the button component need to be modified to other parameters, that is, a layout file (including the default layout file and the redefined layout parameters) is defined by yourself, and the custom layout file can be configured in the manifest file.

[0036] In addition, in order to implement the business logic of the component, when defining the container, a control unit contained in the container can also be defined. The control unit can take attribute information as an input parameter, so that the control unit can modify the view according to the attribute information.

[0037] So far, based on the previous introduction, you have understood the composition of the component library, the definition of containers, and the configuration of the manifest file. Then, in the manifest file, you can configure the configuration information of each container in the preset order (for example, the order from top to bottom in the page) to get the complete configuration information of a page.

[0038] In some embodiments, the manifest file may be in XML (Extensible Markup Language) format.

[0039] Step S20. Obtain a target basic component from the component library, parse the manifest file, and generate a target container corresponding to the target basic component, wherein the target container is provided with target attribute information and a target initial view; It is understandable that the target basic component can be obtained from the component library by searching the component library for the target basic component using the index of the target basic component, wherein the target basic component can be a switch component or a button component.

[0040] It should be noted that the process of parsing the manifest file is also the process of instantiating the target container, that is, after the manifest file is parsed, the target container is automatically filled with target attribute information and target initial view, thereby reducing code writing work and improving development efficiency.

[0041] In some embodiments, after parsing the manifest file, the target container obtained includes an information storage unit (info) and a view bearing unit (view), the information storage unit is used to store target attribute information, and the view bearing unit is used to bear the initial view corresponding to the target basic component.

[0042] That is to say, the process of parsing the manifest file is also the process of instantiating the information storage unit, that is, the information storage unit is filled with target attribute information. In addition, the view carrying unit can carry the initial view through the above-mentioned layout file.

[0043] In some embodiments, after parsing the manifest file, the target container obtained includes an information storage unit, a view carrying unit, and a control unit (controller). The control unit can use the target attribute information in the information storage unit as an input parameter, that is, the control unit is used to operate the target attribute information to modify the view. For example, if the information storage unit has 4 attributes, the control unit can control and modify the above 4 attributes to modify the view.

[0044] Step S30: Bind the target attribute information and the target initial view to generate a target view with the target attribute information on the target page.

[0045] In some embodiments, the target container includes an information storage unit and a view bearing unit, the information storage unit is used to store the target attribute information, and the view bearing unit is used to bear the target initial view; The binding of the target attribute information and the target initial view includes: The information storage unit and the view bearing unit are bound to each other so that the target attribute information and the target initial view are bound to each other.

[0046] It is understandable that when binding the information storage unit and the view bearing unit, the databinding method in the Android development system can be called to implement the binding action. In specific implementation, databinding passes the target attribute information in the information storage unit to the layout file of the view bearing unit. After receiving the target attribute information, the layout file fills the target attribute information in the layout file, so that the target initial view generates the target view after combining the target attribute information. In other words, as long as the target attribute information in the information storage unit changes, the corresponding target view will also be refreshed.

[0047] In some embodiments, the target container further includes a control unit, and after the target page generates a target view having the target attribute information, the method further includes: Step S40. In response to the user's attribute change operation, the target view sends the attribute change operation to the target container; It is understandable that after the target page generates the target view, for example, the target view is the view of the switch item, the user can change the property of the switch item, for example, click the switch item to change the property from "on" to "off". After receiving the property change operation, the target view sends the property change operation to the target container.

[0048] Step S50: The target container forwards the property change operation to the control unit, and the control unit modifies the target property information according to the property change operation so as to update the target view based on the binding relationship between the information storage unit and the view bearing unit.

[0049] Based on the above, the control unit can use the target attribute information in the information storage unit as an input parameter, that is, the control unit is used to operate the target attribute information to modify the view. For example: the user clicks on a switch item, and the title of the switch item needs to be changed, such as from on to off, which is equivalent to the default title being configured in the manifest file, and now being modified by the control unit. After the user clicks on the switch item, the target view receives the click operation, and transmits the click operation to the target container, which is forwarded to the control unit by the target container, so that the control unit can write business (modify the input parameter) according to the click operation, and then control the change of parameters of the target view and update the target view.

[0050] Based on the above disclosed content, the embodiment of the present application pre-builds a component library and a configuration manifest file, abstracts the attribute information of the view in the manifest file, improves the business splicing and logic reuse capabilities of components and containers, reduces the amount of code writing, has low code coupling, reduces the development workload, and improves development efficiency. In addition, when a target page needs to build multiple target views, if the only difference between the multiple target views is the position in the page, the target views can be simultaneously built through the same container, further reducing the amount of code writing and improving development efficiency.

[0051] In some embodiments, before obtaining the component library and manifest file of the target application, the method further includes: Step S01. Acquire the property requirement information of the target basic component and at least one reference component among the multiple basic components, where the reference component is a component that already has the configuration information of the container; It is understandable that when developing a target application, the target application may need to develop multiple pages, and each page may contain views corresponding to multiple components. Then, before configuring the target container corresponding to the current target basic component in the manifest file, the configuration information of the containers corresponding to other basic components has been configured in the manifest file. Based on the above, it can be known that the input parameter of the control unit is attribute information. Therefore, when configuring the control unit of the target basic component, it can be determined whether the configuration information of the control units of other basic components can be directly reused on the control unit corresponding to the current target basic component based on the similarity between the attribute requirement information between the current target basic component and other basic components, thereby reducing the configuration workload of the control unit.

[0052] Step S02. If there is a target reference component in the at least one reference component, the configuration information of the reference control unit corresponding to the target reference component is used as the basic configuration information of the control unit corresponding to the target basic component, wherein the similarity between the attribute requirement information of the target reference component and the attribute requirement information of the target basic component is greater than or equal to a preset first threshold.

[0053] For example: the current target basic component is a switch item, and the target reference component is a button. The button has attributes such as title, subtitle, and icon. The attributes of the switch item are the same as the attribute requirements of the button, or the attribute requirements of the switch item are based on the attribute requirements of the button, with additional attribute requirements added. For example, the values ​​of on and off need to be added. Then, when configuring the control unit of the switch item, you can directly use the control unit of the button, or make further configuration based on the control unit of the button, so as to achieve reuse of the control unit and reduce workload.

[0054] For example: switch items and buttons both need four identical attribute information. Based on the binding relationship between attribute information and view, it can be seen that the attribute information can affect both switch items and buttons. For example, the attribute information includes the title, and the title information is stored in the information storage unit of the container corresponding to the button. After the container corresponding to the button receives the touch event, since the control unit has a common input parameter, such as set data, when the user clicks the button component, the container will call the set data method to the control unit. After receiving the user's click operation, the control unit will perform subsequent business actions, such as changing the title to close. Therefore, after the title attribute changes, the method of the target view will be called, and databinding will directly call the button refresh text method, and the switch item will also receive the message of attribute change. When the text attribute changes, the component being operated becomes a switch item, but the input parameters are the same, which is a text. If the components have almost the same attributes or are included, the control unit can be reused.

[0055] In some embodiments, obtaining the manifest file includes: Step S21. Obtain application requirement information of the target application of the current vehicle model; Step S22. If there is a historical vehicle model whose similarity with the application requirement information of the current vehicle model is greater than or equal to a preset second threshold, obtain the historical list file of the historical vehicle model, filter the historical list file based on preset filtering rules, and obtain the list file of the target application of the current vehicle model.

[0056] It is understandable that when developing target applications for different models, if each model needs to configure a manifest file separately, the development workload will be relatively large. On this basis, the embodiment of the present application analyzes the similarity between the application requirement information of the current model and the historical model, and when the similarity is greater than or equal to a second threshold, such as greater than 80%, 90%, 95%, etc., the historical manifest file of the historical model is used as the basis of the manifest file of the current model, thereby reducing the configuration workload of the manifest file and further improving development efficiency.

[0057] For example: each vehicle model has a corresponding configuration word, and attributes can be used in the manifest file to support configuration word parsing. For example, the configuration word of vehicle model A can be represented as a high configuration, and the configuration word of vehicle model B can be represented as a low configuration. Then, when the manifest file of vehicle model A is applied to vehicle model B, the configuration word of vehicle model B can be parsed based on the manifest file, and then filtered using preset filtering rules (for example, only the functions supported by low-configuration vehicles are retained after filtering). In this way, the manifest file of vehicle model A can be directly applied to vehicle model B, thereby reducing the workload of the manifest file. In addition, when vehicle model B generates a target view based on the manifest file, only the target view that matches the functions of vehicle model B is loaded in the page.

[0058] In some embodiments, if the requirements of the target application for the current model and the historical model are quite different, the manifest file can be reused to a certain extent through the channel packaging method provided by the Android system and the overlay method. For example, if the manifest file of model A has 10 entries, the manifest file of model B needs to have 20 entries, 10 of which are the same as model A, then the model difference reuse can be achieved through static packaging and compilation.

[0059] In some embodiments, before obtaining the component library and manifest file of the target application, the method further includes: Obtain an interface identification file provided by a vehicle service gateway, wherein the interface identification file includes multiple interface identifications; The target interface identifier corresponding to the target basic component is used as the configuration information of the target container object and configured in the manifest file.

[0060] It should be noted that in the field of smart cockpits, OEMs will send instructions to the body controller through various communication buses in the body domain to achieve control effects. Among them, AAOS (Android Automotive Operating System) provides a CarService gateway to provide a control interface to the Android application side to achieve the purpose of communicating with the ECU (Electronic Control Unit). However, since the body communication bus has SOA (Service-Oriented Architecture), CAN (Controller Area Network) architecture, LIN (Local Interconnect Network) architecture, etc., the communication method is not unique, the usage method is not unique, and the same software system of the target application has conflicts in adapting to multiple communication architectures, which makes adaptation difficult and the maintenance cost high.

[0061] Based on the above, the embodiment of the present application realizes the reuse of the same software system of the target application on different vehicle models by abstracting the interface identification file provided by the vehicle service gateway into the manifest file, thereby reducing development complexity and maintenance costs, and improving development efficiency.

[0062] It should be noted that the interface identification file provided by the vehicle service gateway in the vehicle body may be different depending on the communication bus. The interface identification file includes several interface identifications (carlib), each of which is used for one of the service controllers in the vehicle body domain, for example: 10 represents the window controller, 11 represents the light controller, 12 represents the music controller, etc.

[0063] Based on the above, the embodiment of the present application converts the interface identification file into a resource file in the Android system. For example, the carlib interface is parsed into an XML resource file through a plug-in script to obtain the interface parameter definition. Therefore, when configuring the manifest file later, the manifest file can apply the resource file. For example, when configuring each container, a certain interface identification can be configured as one of the attribute information in the container.

[0064] Then, since the interface identification file is converted into a resource file in the Android system, the resource file is only referenced when the manifest file is configured. Therefore, the interface identification file is decoupled from the code, and there is no need to write code to describe the interface identification later, which further reduces the workload of code writing.

[0065] In addition, when developing target applications for different vehicle models, it is only necessary to use the interface identification file provided by the vehicle service gateway of the vehicle model to configure the manifest file. That is to say, when developing target applications for different vehicle models, it is only necessary to modify the configuration information of the manifest file to solve the problems of different communication methods and usage methods for different vehicle models, and conflicts in the adaptation of the same software system of the target application to multiple communication architectures.

[0066] See also Figure 2 , which shows a flow chart of the control method of an embodiment of the present application.

[0067] A second aspect of an embodiment of the present application provides a control method, the method further comprising: Step S101. Based on the target view in any one of the methods described in the first aspect, respond to the service control operation of the user; It should be noted that after the target view is generated, it can be loaded into the vehicle's central control system (e.g., central control screen) for user operation. The target view can correspond to the views of various business units in the vehicle body, such as views of windows, wipers, lights, air conditioners, etc. Then, the business control operation can be a control operation on a certain business unit, such as controlling the window to close.

[0068] Step S102. Generate a control instruction based on the business control operation, and send the control instruction and the target interface identifier to the vehicle service gateway, so that the vehicle service gateway identifies the corresponding business controller based on the target interface identifier, and forwards the control instruction to the business controller, wherein the target attribute information includes the target interface identifier.

[0069] The target container includes a control unit, and the response to the service control operation of the user includes: The target view responds to the service control operation of the user and sends the service control operation to the target container; For example: the target view is the view corresponding to the car window business unit, and the user operates the control to close the car window on the page.

[0070] The generating a control instruction according to the service control operation, and sending the control instruction and the target interface identifier to the vehicle service gateway includes: The target container sends the service control operation to the control unit, and the control unit generates a control instruction according to the service control operation, and sends the control instruction and the target interface identifier to the vehicle service gateway.

[0071] According to a third aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one computer program instruction is stored. The at least one computer program instruction is loaded and executed by a processor to implement the operations performed by any method described in the first aspect.

[0072] The computer readable storage medium may be a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the computer readable storage medium of the present application is not limited thereto, and in the present application, the readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0073] The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more conductors, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0074] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0075] See also Figure 3 , which is a schematic diagram of the structure of a computer system of a vehicle suitable for implementing an embodiment of the present application.

[0076] According to the fourth aspect of an embodiment of the present application, an electronic device is provided, comprising one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement operations performed by any method of the first aspect.

[0077] like Figure 3 As shown, the electronic device 400 is in the form of a general computing device. The components of the electronic device 400 may include but are not limited to: at least one processing unit 410, at least one storage unit 420, and a bus 430 connecting different system components (including the storage unit 420 and the processing unit 410).

[0078] The storage unit stores program codes, which can be executed by the processing unit 410, so that the processing unit 410 executes the steps described in the above “Embodiment Method” section of this specification according to various exemplary implementations of the present application.

[0079] The storage unit 420 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache 422 , and may further include a read-only memory unit (ROM) 423 .

[0080] The storage unit 420 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0081] Bus 430 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0082] The electronic device 400 may also communicate with one or more external devices 500 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 400, and / or communicate with any device that enables the electronic device 400 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an I / O (input / output) interface 450, wherein the I / O interface 450 may also be connected to a display unit 440, and the communication content may be displayed through the display unit 440. In addition, the electronic device 400 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 460. As shown in the figure, the network adapter 460 communicates with other modules of the electronic device 400 through a bus 430. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0083] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope and spirit of the present invention and the appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hard wiring, or a combination of any of these. In addition, each functional unit may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit.

[0084] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0085] The units described as separate components may or may not be physically separated, and the components of the control device may or may not be physical units, that is, they may be located in one place or distributed in multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0086] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc., which can store program code.

[0087] The above description is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims

1. A page view generation method, characterized in that: A smart cockpit system applied to a vehicle, the smart cockpit system comprising a target application, the target application comprising a target page, and the method comprising: Acquire a component library and a manifest file of the target application, wherein the component library includes a plurality of basic components, and the manifest file includes configuration information of containers corresponding to the basic components, wherein the configuration information is used to describe attribute information and view types of the basic components; Acquire a target basic component from the component library, parse the manifest file, and generate a target container corresponding to the target basic component, wherein the target container is provided with target attribute information and a target initial view; The target attribute information and the target initial view are bound to generate a target view having the target attribute information on the target page.

2. The method according to claim 1, characterized in that The target container includes an information storage unit and a view bearing unit, wherein the information storage unit is used to store the target attribute information, and the view bearing unit is used to bear the target initial view; The binding of the target attribute information and the target initial view includes: The information storage unit and the view bearing unit are bound to each other so that the target attribute information and the target initial view are bound to each other.

3. The method according to claim 2, characterized in that The target container further includes a control unit. After the target page generates a target view having the target attribute information, the method further includes: In response to a property change operation of the user, the target view sends the property change operation to the target container; The target container forwards the property change operation to the control unit, and the control unit modifies the target property information according to the property change operation, so as to update the target view based on the binding relationship between the information storage unit and the view bearing unit.

4. The method according to any one of claims 1 to 3, characterized in that: Before obtaining the component library and manifest file of the target application, the method further includes: Acquire the property requirement information of the target basic component and at least one reference component among the multiple basic components, where the reference component is a component that already has configuration information of a container; If there is a target reference component in the at least one reference component, the configuration information of the reference control unit corresponding to the target reference component is used as the basic configuration information of the control unit corresponding to the target basic component, wherein the similarity between the attribute requirement information of the target reference component and the attribute requirement information of the target basic component is greater than or equal to a preset first threshold.

5. The method according to any one of claims 1 to 3, characterized in that: Get the manifest file, including: Obtain application requirement information of the target application of the current vehicle model; If there is a historical vehicle model whose similarity with the application requirement information of the current vehicle model is greater than or equal to a preset second threshold, the historical list file of the historical vehicle model is obtained, and the historical list file is filtered based on preset filtering rules to obtain the list file of the target application of the current vehicle model.

6. The method according to any one of claims 1 to 3, characterized in that: Before obtaining the component library and manifest file of the target application, the method further includes: Obtain an interface identification file provided by a vehicle service gateway, wherein the interface identification file includes multiple interface identifications; The target interface identifier corresponding to the target basic component is used as the configuration information of the target container object and configured in the manifest file.

7. A control method, characterized in that: The method further comprises: Based on the target view in any one of the methods of claims 1-6, responding to a service control operation of the user; Generate a control instruction according to the business control operation, and send the control instruction and the target interface identifier to the vehicle service gateway so that the vehicle service gateway identifies the corresponding business controller according to the target interface identifier and forwards the control instruction to the business controller, wherein the target attribute information includes the target interface identifier.

8. The method according to claim 7, characterized in that The target container includes a control unit, and the response to the service control operation of the user includes: The target view responds to the service control operation of the user and sends the service control operation to the target container; The generating a control instruction according to the service control operation, and sending the control instruction and the target interface identifier to the vehicle service gateway includes: The target container sends the service control operation to the control unit, and the control unit generates a control instruction according to the service control operation, and sends the control instruction and the target interface identifier to the vehicle service gateway.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program instruction, and the at least one computer program instruction is loaded and executed by the processor to implement the operations performed by any one of the methods according to claims 1-6, or the operations performed by the method according to claim 7 or 8.

10. An electronic device, characterized in that: The method comprises one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by any of the methods described in claims 1 to 6, or the operations performed by the method described in claim 7 or 8.

Citation Information

Patent Citations

  • Rapid development platform based on engine mode front-end and rear-end separation and using method thereof

    CN112328212A

  • Rendering generation method and device of front-end page, front-end equipment and storage medium

    CN112558970A

  • Page display method and device, computer readable storage medium and electronic equipment

    CN112799663A

  • Visual page making method based on universal component language specification and related product

    CN112825038A

  • Page view layout method, storage medium and electronic equipment

    CN115543302A