Vehicle-mounted terminal interface generation method and device, equipment, medium and program product
By parsing user commands through the vehicle terminal to generate interface style data, and generating interface rendering data on the main server and sending it to the vehicle terminal for rendering, the problem of the inability to quickly generate interfaces in existing technologies is solved, and user experience and data transmission fault tolerance are improved.
Patent Information
- Application Number
- CN202511155989.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-18
- Publication Date
- 2025-11-25
AI Technical Summary
The existing in-vehicle terminal interface cannot quickly generate the corresponding interface based on user commands, making it difficult for users to quickly find commonly used function controls.
The vehicle terminal parses the user's input interface generation command, generates interface style data, and sends it to the main server. The main server determines the interface template based on the interface style data and inputs it into the large language model to generate interface rendering data. The vehicle terminal obtains the rendering data from the main server based on the access address and performs rendering.
It enables the generation of target interfaces based on user instructions, improving user experience and increasing the fault tolerance of data transmission and the resource release efficiency of the main server.
Smart Images

Figure CN121008799A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicles, in particular to a vehicle terminal interface generation method, device, equipment, medium and program product. BACKGROUND
[0002] With the continuous development of technology, there are more and more functions in vehicles, and users operate on the interface displayed on the vehicle terminal to realize various functions, such as starting the air conditioner, closing the window, adjusting the seat, etc.
[0003] In the prior art, the interface displayed on the vehicle terminal is fixed, and some frequently used function controls or other controls of some users are not in the first-level interface or not in a prominent position, so the user cannot quickly find the corresponding control.
[0004] Therefore, there is an urgent need for a vehicle terminal interface generation method that can generate a corresponding interface according to user instructions. SUMMARY
[0005] One of the purposes of the present application is to provide a vehicle terminal interface generation method to solve the problem that the prior art cannot generate a corresponding interface according to user instructions; the second purpose is to provide a vehicle terminal interface generation device; the third purpose is to provide a vehicle terminal; the fourth purpose is to provide a server; the fifth purpose is to provide a readable storage medium, and the sixth purpose is to provide a computer program product.
[0006] In order to achieve the above-mentioned purposes, the technical solutions adopted by the present application are as follows:
[0007] In a first aspect, the present application provides a vehicle terminal interface generation method applied to a vehicle terminal, comprising:
[0008] analyzing the interface generation instruction input by the user to generate interface style data, the interface style data including interface size data, control quantity and control identifier;
[0009] sending the interface style data to a main server;
[0010] receiving interface generation data sent by the main server, the interface generation data including an access address corresponding to interface rendering data, the interface generation data being generated according to the interface style data;
[0011] accessing the interface rendering data from the main server according to the access address;
[0012] generating a target interface according to the interface rendering data.
[0013] Further, the interface generation data further comprises the interface rendering data, and after receiving the interface generation data sent by the main server, the method further comprises:
[0014] storing the correspondence between the access address and the interface rendering data;
[0015] if the communication between the vehicle terminal and the main server is abnormal, obtaining the interface rendering data corresponding to the access address from the stored data;
[0016] the interface rendering data is obtained from the main server according to the access address, comprising:
[0017] if the communication between the vehicle terminal and the main server is normal, obtaining the interface rendering data from the main server according to the access address.
[0018] Further, the interface generation data further comprises the interface rendering data, and the storing the correspondence between the access address and the interface rendering data comprises:
[0019] generating verification comparison data according to the interface rendering data;
[0020] if the verification data of the interface rendering data is the same as the verification comparison data, storing the correspondence between the access address and the interface rendering data;
[0021] if the verification data of the interface rendering data is not the same as the verification comparison data, obtaining new interface rendering data from a backup server according to the access address, and storing the correspondence between the access address and the new interface rendering data.
[0022] Further, the interface generation instruction is a voice instruction or a text instruction.
[0023] Further, the method further comprises:
[0024] storing the correspondence between the interface generation data and the current time stamp;
[0025] if the number of the stored interface generation data is greater than or equal to a preset memory limit number, regarding the preset memory limit number of data corresponding to the latest time stamp among all the stored interface generation data as reserved data;
[0026] deleting the data other than the reserved data among all the stored interface generation data.
[0027] In a second aspect, the application provides a vehicle terminal interface generation method applied to a main server, comprising:
[0028] receiving interface style data sent by the vehicle-mounted terminal, the interface style data comprising interface size data, control quantity and control identification;
[0029] determining an interface template according to the interface size data and the control quantity;
[0030] inputting the interface style data and the interface template into a target large language model to obtain interface rendering data;
[0031] generating interface generation data according to the interface rendering data, the interface generation data comprising an access address corresponding to the interface rendering data;
[0032] sending the interface generation data to the vehicle-mounted terminal.
[0033] Further, the determining an interface template according to the interface size data and the control quantity comprises:
[0034] determining a to-be-determined template corresponding to the interface size data according to a preset corresponding relationship between interface size ranges and templates;
[0035] if the number of controls in the to-be-determined template is greater than or equal to the control quantity, taking the to-be-determined template as the interface template.
[0036] Further, the method further comprises:
[0037] if the number of controls in the to-be-determined template is less than the control quantity, taking a template in which the number of controls in all stored templates is greater than or equal to the control quantity as a to-be-selected template;
[0038] selecting the interface template from all to-be-selected templates.
[0039] Further, the interface generation data further comprises the interface rendering data.
[0040] Further, the interface generation data further comprises verification data of the interface rendering data, and the method further comprises:
[0041] sending the interface generation data to a backup server.
[0042] Further, the method further comprises:
[0043] storing the interface generation data after establishing a corresponding relationship between the interface generation data and a current time stamp;
[0044] if the number of stored interface generation data is greater than or equal to a preset memory limit quantity, taking the preset memory limit quantity of data with the latest time stamp in all stored interface generation data as reserved data.
[0045] deleting data in all stored interface generation data except the reserved data.
[0046] In a third aspect, the present application provides a vehicle terminal interface generation device, comprising:
[0047] a processing module, configured to analyze interface generation instructions input by a user, and generate interface style data, wherein the interface style data comprises interface size data, control quantity and control identifier;
[0048] a communication module, configured to:
[0049] send the interface style data to a main server;
[0050] receive interface generation data sent by the main server, wherein the interface generation data comprises an access address corresponding to interface rendering data, and the interface generation data is generated according to the interface style data;
[0051] access the interface rendering data from the main server according to the access address;
[0052] a generation module, further configured to render a target interface according to the interface rendering data.
[0053] In a fourth aspect, the present application provides a vehicle terminal interface generation device, comprising:
[0054] a receiving module, configured to receive interface style data sent by a vehicle terminal, wherein the interface style data comprises interface size data, control quantity and control identifier;
[0055] a processing module, configured to:
[0056] determine an interface template according to the interface size data and the control quantity;
[0057] input the interface style data and the interface template into a target large language model to obtain interface rendering data;
[0058] generate interface generation data according to the interface rendering data, wherein the interface generation data comprises an access address corresponding to the interface rendering data;
[0059] a sending module, configured to send the interface generation data to the vehicle terminal.
[0060] In a fifth aspect, the present application provides a vehicle terminal, comprising:
[0061] a processor, a memory and a communication interface;
[0062] the memory is configured to store executable instructions of the processor;
[0063] The processor is configured to execute the vehicle terminal interface generation method of any one of the first aspect via execution of the executable instructions.
[0064] In a sixth aspect, the present application provides a server, comprising:
[0065] a processor, a memory, and a communication interface;
[0066] The memory is used to store executable instructions of the processor.
[0067] The processor is configured to execute the vehicle terminal interface generation method of any one of the second aspect via execution of the executable instructions.
[0068] In a seventh aspect, the present application provides a readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the vehicle terminal interface generation method of any one of the first aspect or the second aspect.
[0069] In an eighth aspect, the present application provides a computer program product comprising a computer program, the computer program being executed by a processor to implement the vehicle terminal interface generation method of any one of the first aspect or the second aspect.
[0070] Advantages of the present application:
[0071] (1) The present application parses the interface generation instruction input by the user through the vehicle terminal, generates interface style data, and sends the interface style data to the main server. The main server determines the interface template according to the interface size data and the number of controls in the interface style data, and then inputs the interface style data and the interface template into the target large language model to obtain interface rendering data. Then, according to the interface rendering data, the interface generation data is generated and sent to the vehicle terminal. The vehicle terminal accesses the interface rendering data from the main server according to the access address in the interface generation data, and then renders the interface to generate a target interface. The present application parses the interface generation instruction input by the user into interface style data through the vehicle terminal, the server generates interface rendering data according to the interface style data, and the vehicle terminal generates a target interface according to the interface rendering data. The present application realizes the generation of a corresponding interface according to the user's instruction, and improves the user experience.
[0072] (2) The present application sends the interface generation data including the access address to the vehicle terminal through the main server. The vehicle terminal accesses the interface rendering data from the main server through the access address, which can increase the fault tolerance of data transmission, and also allows the resources of the main server to be released in time, thereby improving the throughput of the main server. BRIEF DESCRIPTION OF DRAWINGS
[0073] The accompanying drawings, which are incorporated herein and constitute part of this specification, illustrate embodiments consistent with the application and, together with the description, further serve to explain the principles of the application.
[0074] Figure 1 The application scenario diagram of the vehicle terminal interface generation method provided by the application is shown in the figure.
[0075] Figure 2a The flowchart of the first embodiment of the vehicle terminal interface generation method provided by the application is shown in the figure.
[0076] Figure 2b The template diagram provided by the application is shown in the figure. Figure 1 ;
[0077] Figure 2c The second template diagram provided by the application is shown in the figure.
[0078] Figure 3 The flowchart of the second embodiment of the vehicle terminal interface generation method provided by the application is shown in the figure.
[0079] Figure 4a The flowchart of the third embodiment of the vehicle terminal interface generation method provided by the application is shown in the figure.
[0080] Figure 4b The interaction diagram of the vehicle terminal, the main server and the backup server provided by the application is shown in the figure.
[0081] Figure 5 The structure diagram of the first embodiment of the vehicle terminal interface generation device provided by the application is shown in the figure.
[0082] Figure 6 The structure diagram of the second embodiment of the vehicle terminal interface generation device provided by the application is shown in the figure.
[0083] Figure 7 The structure diagram of the vehicle terminal provided by the application is shown in the figure.
[0084] Figure 8 The structure diagram of the server provided by the application is shown in the figure.
[0085] The specific embodiments of the application have been shown in the above figures, and will be described in more detail hereinafter. These figures and textual descriptions are not intended to limit the scope of the concept of the application by any means, but to illustrate the concept of the application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0086] Other advantages and effects of the present application can be easily understood by those skilled in the art from the description of the present application. The present application can also be implemented or applied in other different specific embodiments, and various modifications or changes can be made to the details of the description based on different views and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, but not for limiting the protection scope of the present application.
[0087] It should be noted that the diagrams provided in the following embodiments only illustrate the basic concept of the present application in a schematic manner, and only the components related to the present application are shown in the diagrams, but not drawn according to the number, shape and size of the components in actual implementation. The actual implementation of each component may be a random change, and the component layout pattern may be more complex.
[0088] The vehicle terminal is a tool for vehicle and user interaction. The user can control the vehicle by operating the vehicle terminal. The user operates the interface displayed on the vehicle terminal to realize various functions, such as starting the air conditioner, closing the window, adjusting the seat, etc.
[0089] In the prior art, the interface displayed by the vehicle terminal is fixed. Some frequently used function controls or other controls of the user are not in the primary interface or not in the obvious position, and the user cannot quickly find the corresponding control.
[0090] Therefore, there is an urgent need for a vehicle terminal interface generation method that can generate a corresponding interface according to a user's instruction.
[0091] In order to realize that the vehicle terminal can generate the interface that the user wants according to the user's instruction, the inventors found, in the process of researching the vehicle terminal interface generation method, that after the user inputs the interface generation instruction to the vehicle terminal, the vehicle terminal analyzes it, generates interface style data, and sends it to the main server. The main server determines the interface template according to the interface size data and the number of controls in the interface style data, and then inputs the interface style data and the interface template into the target large language model to obtain interface rendering data, and generates interface generation data according to the interface rendering data and sends it to the vehicle terminal. The vehicle terminal accesses the interface rendering data from the main server according to the access address in the interface generation data and renders it to generate the target interface. Based on the above inventive concept, the vehicle terminal interface generation scheme in the present application is designed.
[0092] Exemplary, Figure 1 The application scenario diagram of the vehicle terminal interface generation method provided in the present application is as follows: Figure 1As shown, the application scenario includes a vehicle 11, a vehicle terminal 12, and a main server 13.
[0093] In this application scenario, the vehicle 11 is parked on the roadside. After the user controls the vehicle 11 to be powered on, the user wants to regenerate the interface of the vehicle terminal 12 in the vehicle 11 and speaks an interface generation instruction to the vehicle terminal 12.
[0094] The vehicle terminal 12 analyzes the interface generation instruction input by the user, generates interface style data, and the interface style data includes interface size data, control quantity, and control identifier. Then, the vehicle terminal 12 sends the interface style data to the main server 13.
[0095] The main server 13 determines an interface template according to the interface size data and the control quantity. Then, the main server 13 inputs the interface style data and the interface template into a target large language model to obtain interface rendering data.
[0096] The main server 13 further generates interface generation data according to the interface rendering data, and the interface generation data includes an access address corresponding to the interface rendering data. Then, the main server 13 sends the interface generation data to the vehicle terminal 12.
[0097] The vehicle terminal 12 accesses the interface rendering data from the main server 13 according to the access address, and then performs rendering to generate a target interface.
[0098] The vehicle terminal 12 displays the target interface, and the user can interact with the vehicle terminal 12 through the target interface.
[0099] It should be noted that, Figure 1 is only a schematic diagram of an application scenario provided by the embodiment of the present application, and the embodiment of the present application does not limit the actual form of various devices included in the Figure 1 and does not limit the interaction mode between devices in the Figure 1 application, and in the specific application of the scheme, it can be set according to actual needs.
[0100] In the following, the technical scheme of the present application is described in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes can not be described in detail in some embodiments.
[0101] Figure 2a The flowchart of the vehicle terminal interface generation method embodiment provided by the present application is shown in the figure. The embodiment of the present application describes the case that the vehicle terminal generates interface style data according to the interface generation instruction input by the user, sends the interface style data to the main server, the main server generates interface generation data according to the interface style data and sends the interface generation data to the vehicle terminal, and the vehicle terminal generates an interface according to the interface generation data. The method in the embodiment can be realized by software, hardware or a combination of software and hardware. For example,Figure 2a As shown, the vehicle terminal interface generation method specifically includes the following steps:
[0102] S201: The vehicle terminal parses the interface generation instruction input by the user to generate interface style data.
[0103] The user wants to regenerate the interface of the vehicle terminal and inputs an interface generation instruction to the vehicle terminal.
[0104] In this step, the vehicle terminal parses the interface generation instruction input by the user to generate interface style data, wherein the interface style data includes interface size data, control quantity, and control identifier.
[0105] It should be noted that the interface generation instruction is a voice instruction or a text instruction. When the interface generation instruction is a voice instruction, voice-to-text processing is required to obtain a text instruction, and then keyword extraction processing is performed on the text instruction to obtain interface style data. When the interface generation instruction is a text instruction, keyword extraction processing is performed on the text instruction to obtain interface style data.
[0106] S202: The vehicle terminal sends the interface style data to the main server.
[0107] In this step, after the vehicle terminal obtains the interface style data, in order to improve the generation efficiency of the interface, the vehicle terminal can send the interface style data to the main server, and the main server generates interface generation data subsequently. Compared with the vehicle terminal, the main server has higher performance, and can improve the generation efficiency of the interface.
[0108] It should be noted that the communication mode between the vehicle terminal and the main server can be communication through JSBridge, Socket, Kafka, etc. The communication mode between the vehicle terminal and the main server is not limited in the embodiment of the application, and can be determined according to actual conditions.
[0109] S203: After the main server receives the interface style data sent by the vehicle terminal, the interface template is determined according to the interface size data and the control quantity.
[0110] In this step, after the vehicle terminal sends the interface style data to the main server, the main server can receive the interface style data, and then determine the interface template according to the interface size data and the control quantity therein.
[0111] Specifically, according to the preset correspondence between the interface size range and the template, the template corresponding to the interface size data is determined. The interface size data is an interface size value or interface size description data. If the interface size data is an interface size value, the interface size range to which the interface size value belongs is determined, and then the template corresponding to the interface size range is determined as the template corresponding to the interface size data.
[0112] If the interface size data is interface size description data, the interface size value is determined according to the interface size description data, and then the interface size range to which the interface size value belongs is determined, and then the template corresponding to the interface size range is determined as the template corresponding to the interface size data.
[0113] For example, the interface size description data is "half of the screen size", "one third of the screen size", "palm size", etc.
[0114] For example, Figure 2b The template provided in the present application is shown in Figure 1 As shown in Figure 2b , the template is a template corresponding to a smaller interface size range, which includes 5 controls.
[0115] Figure 2c The second template provided in the present application is shown in Figure 2c , the template is a template corresponding to a larger interface size range, which includes 9 controls.
[0116] After the main server determines the template to be determined, in order to determine whether the template to be determined is available, it is necessary to judge whether the number of controls in the template to be determined is greater than or equal to the number of controls in the interface style data.
[0117] If the number of controls in the template to be determined is greater than or equal to the number of controls, it means that the template to be determined is available, and the template to be determined is used as the interface template.
[0118] If the number of controls in the template to be determined is less than the number of controls, it means that the template to be determined is not available, and the template needs to be determined again. Then, the templates in which the number of controls is greater than or equal to the number of controls in all stored templates are determined as the templates to be selected, and then the interface template is selected from all the templates to be selected.
[0119] It should be noted that the way of selecting the interface template from all the templates to be selected can be: randomly selecting one template from all the templates to be selected as the interface template. It can also be: selecting the template with the least number of controls from all the templates to be selected as the interface template. It can also be: each template also has a number of uses, and selecting the template with the most number of uses of controls from all the templates to be selected as the interface template. The embodiments of the present application do not limit the way of selecting the interface template from all the templates to be selected, which can be determined according to actual conditions.
[0120] S204: The main server inputs the interface style data and the interface template into the target large language model to obtain interface rendering data.
[0121] In this step, after the main server obtains the interface template, the main server inputs the interface style data and the interface template into the target large language model to obtain interface rendering data. The interface rendering data includes a code file and a resource file.
[0122] The target large language model is a pre-trained model for generating interface rendering data according to interface style data and an interface template.
[0123] S205: The main server generates interface generation data according to the interface rendering data.
[0124] In this step, after the main server obtains the interface rendering data, the main server generates interface generation data according to the interface rendering data. That is, an empty data set is first generated, and then after an access address corresponding to the interface rendering data is generated, the access address is added to the data set to obtain the interface generation data.
[0125] It should be noted that the main server can also store the interface generation data in a corresponding relationship with the current timestamp. Then, it is determined whether the number of stored interface generation data is greater than or equal to a preset memory limit number. If the number of stored interface generation data is greater than or equal to the preset memory limit number, the preset memory limit number of data with the latest timestamp among all the stored interface generation data are reserved. Then, all the data except the reserved data among all the stored interface generation data are deleted. So that the main server stores at most the preset memory limit number of interface generation data, reducing the memory occupation of the main server.
[0126] The preset memory limit number can be 8, 10, 20, 50, etc. The embodiments of the present application do not limit the preset memory limit number, which can be determined according to actual conditions.
[0127] S206: The main server sends the interface generation data to the vehicle-mounted terminal.
[0128] In this step, after the main server generates the interface generation data, the interface generation data is sent to the vehicle terminal, so that the vehicle terminal generates the target interface subsequently.
[0129] S207: After the vehicle terminal receives the interface generation data sent by the main server, the interface rendering data is accessed from the main server according to the access address.
[0130] In this step, after the main server sends the interface generation data to the vehicle terminal, the vehicle terminal can obtain the interface generation data, and then in order to generate a new interface, the main server is accessed according to the access address in the interface generation data, and the interface rendering data is accessed from the main server. The interface generation data is generated by the main server according to the interface style data.
[0131] In one implementation, the vehicle terminal can send a data acquisition request to the backup server, and the data acquisition request includes an access address. The backup server accesses the main server according to the access address in the data acquisition request, accesses the interface rendering data from the main server, and then sends the interface rendering data to the vehicle terminal. The vehicle terminal can receive the interface rendering data. The backup server and the main server interact to obtain the interface rendering data, avoiding direct interaction between the vehicle terminal and the main server to obtain the interface rendering data, which can improve the transmission security of the interface rendering data and the security of the vehicle terminal.
[0132] S208: The vehicle terminal renders and generates a target interface according to the interface rendering data.
[0133] In this step, after the vehicle terminal obtains the interface rendering data, the target interface is rendered and generated according to the interface rendering data. The target interface has a number of controls in the interface style data, and the identifier of each control has a one-to-one correspondence with the control identifier in the interface style data. The corresponding two identifiers are the same, the size of the interface conforms to the interface size data in the interface style data, and conforms to the user's interface generation instruction.
[0134] It should be noted that the vehicle terminal also stores the corresponding relationship between the interface generation data and the current timestamp. Then, it is determined whether the number of stored interface generation data is greater than or equal to the preset memory limit number; if the number of stored interface generation data is greater than or equal to the preset memory limit number, the preset memory limit number of data with the latest corresponding timestamp in all stored interface generation data are reserved as reserved data. The data other than the reserved data in all stored interface generation data is deleted. The vehicle terminal stores at most the preset memory limit number of interface generation data, reducing the memory occupation of the vehicle terminal.
[0135] It should be noted that after the vehicle terminal completes initialization each time, the vehicle terminal can select the target interface generation data with the latest time stamp from the stored interface generation data, and then access the interface rendering data from the main server according to the access address in the interface generation data, and render and generate the interface according to the interface rendering data to display. When the user switches the interface each time, the time stamp of the interface generation data corresponding to the interface is updated to the switching time. The interface generation data stored in the vehicle terminal not only includes the interface generation data sent by the main server, but also includes the pre-set interface generation data.
[0136] The vehicle terminal interface generation method provided in the embodiment analyzes the interface generation instruction input by the user through the vehicle terminal, generates interface style data, and sends the interface style data to the main server. The main server determines the interface template according to the interface size data and the number of controls in the interface style data, and then inputs the interface style data and the interface template into the target large language model to obtain interface rendering data, and generates interface generation data according to the interface rendering data and sends the interface generation data to the vehicle terminal. The vehicle terminal accesses the interface rendering data from the main server according to the access address in the interface generation data, renders the interface rendering data, and generates a target interface. The present scheme analyzes the interface generation instruction input by the user into interface style data through the vehicle terminal, the server generates interface rendering data according to the interface style data, and the vehicle terminal generates a target interface according to the interface rendering data, which realizes the generation of a corresponding interface according to the instruction of the user and improves the user experience. In addition, the main server sends the interface generation data including the access address to the vehicle terminal, and the vehicle terminal accesses the interface rendering data from the main server through the access address, which can increase the fault tolerance of data transmission, and also enables the resources of the main server to be released in time, thereby improving the throughput of the main server.
[0137] Figure 3 The flowchart of the second embodiment of the vehicle terminal interface generation method provided in the present application is based on the above-mentioned embodiments. In the case where the interface generation data further includes interface rendering data, the vehicle terminal acquires the interface rendering data after receiving the interface generation data sent by the main server. As shown in Figure 3 The vehicle terminal interface generation method specifically includes the following steps:
[0138] S301: Store the access address and the interface rendering data after establishing a corresponding relationship.
[0139] In order to enable the vehicle terminal to still generate a target interface in the case where the communication between the vehicle terminal and the main server is abnormal, the main server adds the interface rendering data to the interface generation data after generating the interface generation data, and then sends the interface generation data to the vehicle terminal.
[0140] In this step, the vehicle terminal receives the interface generation data sent by the main server, and stores the access address in the interface rendering data after establishing a corresponding relationship.
[0141] S302: Determine whether the communication between the vehicle terminal and the main server is normal; if the communication between the vehicle terminal and the main server is abnormal, execute step S303; if the communication between the vehicle terminal and the main server is normal, execute step S304.
[0142] In this step, after the vehicle terminal stores the access address and the interface rendering data after establishing a corresponding relationship, in order to generate the target interface, it is first determined whether the communication between the vehicle terminal and the main server is normal.
[0143] S303: Obtain the interface rendering data corresponding to the access address from the stored data.
[0144] In this step, if the vehicle terminal determines that the communication between the vehicle terminal and the main server is abnormal, it means that the interface rendering data cannot be obtained from the main server, so the interface rendering data corresponding to the access address is obtained from the stored data.
[0145] S304: According to the access address, access the interface rendering data from the main server.
[0146] In this step, if the vehicle terminal determines that the communication between the vehicle terminal and the main server is normal, then according to the access address, access the interface rendering data from the main server.
[0147] It should be noted that this step is similar to step S207 in example one, which will not be described here.
[0148] The vehicle terminal interface generation method provided in this embodiment can obtain the interface rendering data corresponding to the access address from the interface rendering data stored by the vehicle terminal itself when the communication between the vehicle terminal and the main server is abnormal, ensuring that the target interface can be generated even when the communication is abnormal.
[0149] Figure 4a The flowchart of the vehicle terminal interface generation method provided in this application is shown in Figure 3, which is based on example two. In the case where the interface generation data also includes the verification data of the interface rendering data, the vehicle terminal stores the access address and the interface rendering data after establishing a corresponding relationship. As shown in Figure 4a The vehicle terminal interface generation method specifically includes the following steps:
[0150] S401: Generate verification comparison data according to the interface rendering data.
[0151] In order to ensure the correctness of the interface rendering data stored by the vehicle terminal, the main server calculates the check data of the interface rendering data after obtaining the interface rendering data, and then adds the check data to the interface generation data. The interface generation data is sent to the vehicle terminal and also to the backup server.
[0152] In this step, after the vehicle terminal receives the interface generation data sent by the main server, the vehicle terminal generates check comparison data according to the interface rendering data in the interface generation data, so as to determine whether the interface rendering data is correct subsequently.
[0153] It should be noted that the check data and the check comparison data can be MD5 values, CRC32 values, SHA-256 values, etc. The embodiments of the present application do not limit the check data and the check comparison data, which can be determined according to actual conditions.
[0154] It should be noted that the backup server also stores the corresponding relationship between the interface generation data and the current timestamp. Then, it is determined whether the number of stored interface generation data is greater than or equal to the preset memory limit number. If the number of stored interface generation data is greater than or equal to the preset memory limit number, the preset memory limit number of data with the latest corresponding timestamp among all stored interface generation data are reserved as reserved data. The data other than the reserved data among all stored interface generation data are deleted. Thus, the backup server stores at most the preset memory limit number of interface generation data, reducing the memory occupation of the backup server.
[0155] S402: It is determined whether the check data of the interface rendering data is the same as the check comparison data. If the check data of the interface rendering data is the same as the check comparison data, step S403 is performed. If the check data of the interface rendering data is not the same as the check comparison data, step S404 is performed.
[0156] In this step, after the vehicle terminal generates the check comparison data, in order to determine whether the interface rendering data is correct, it is determined whether the check data of the interface rendering data is the same as the check comparison data.
[0157] S403: The access address and the interface rendering data are stored after being associated.
[0158] In this step, if the vehicle terminal determines that the check data of the interface rendering data is the same as the check comparison data, it means that the interface rendering data is correct, and then the access address and the interface rendering data are stored after being associated.
[0159] S404: New interface rendering data is obtained from the backup server according to the access address, and the access address and the new interface rendering data are stored after being associated.
[0160] In this step, the vehicle terminal determines that the verification data of the interface rendering data is not the same as the verification comparison data, indicating that the interface rendering data is incorrect. In order to obtain correct interface rendering data, the vehicle terminal obtains new interface rendering data from the backup server according to the access address, and stores the corresponding relationship between the access address and the new interface rendering data.
[0161] The vehicle terminal can send a rendering data obtaining request to the backup server, and the rendering data obtaining request includes an access address. The backup server searches for interface generation data including the access address from all stored interface generation data according to the access address, and then sends the interface rendering data in the interface generation data to the vehicle terminal, so that the vehicle terminal can obtain new interface rendering data.
[0162] For example, Figure 4b The interaction schematic diagram of the vehicle terminal, the main server and the backup server provided by the present application is shown in Figure 4b The main server sends the interface generation data to the vehicle terminal and also to the backup server. After the vehicle terminal determines that the verification data of the interface rendering data is not the same as the verification comparison data, the vehicle terminal sends a rendering data obtaining request to the backup server. The backup server sends the found interface rendering data to the vehicle terminal.
[0163] The vehicle terminal interface generation method provided by the present embodiment improves data correctness by storing the corresponding relationship between the correct interface rendering data and the access address obtained from the backup server when it is determined that the verification data of the interface rendering data is not the same as the verification comparison data, and ensures that the target interface can be correctly generated when the communication between the vehicle terminal and the main server is abnormal.
[0164] The following is an apparatus embodiment of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the present application.
[0165] Figure 5 The structural schematic diagram of the vehicle terminal interface generation apparatus embodiment one provided by the present application is shown in the figure. The apparatus can be integrated in the vehicle terminal in the above-mentioned method embodiments, or can be realized by the vehicle terminal in the above-mentioned method embodiments. As shown in Figure 5 The vehicle terminal interface generation apparatus 50 includes:
[0166] The processing module 51 is configured to analyze the interface generation instruction input by the user, generate interface style data, and the interface style data includes interface size data, control quantity and control identification.
[0167] The communication module 52 is configured to:
[0168] send the interface style data to the main server;
[0169] receive interface generation data sent by the main server, the interface generation data including an access address corresponding to the interface rendering data, the interface generation data being generated according to the interface style data;
[0170] According to the access address, the interface rendering data is accessed from the main server;
[0171] The generation module 53 is further configured to render a target interface according to the interface rendering data.
[0172] Further, the interface generation data further includes the interface rendering data, and after receiving the interface generation data sent by the main server, the processing module 51 is further configured to:
[0173] store the access address and the interface rendering data in a corresponding relationship;
[0174] If the communication between the vehicle terminal and the main server is abnormal, the interface rendering data corresponding to the access address is obtained from the stored data;
[0175] The communication module 52 is specifically configured to, if the communication between the vehicle terminal and the main server is normal, access the interface rendering data from the main server according to the access address.
[0176] Further, the interface generation data further includes verification data of the interface rendering data, and the processing module 51 is specifically further configured to:
[0177] generate verification comparison data according to the interface rendering data;
[0178] If the verification data of the interface rendering data is the same as the verification comparison data, the access address and the interface rendering data are stored in a corresponding relationship;
[0179] If the verification data of the interface rendering data is not the same as the verification comparison data, new interface rendering data is obtained from a backup server according to the access address, and the access address and the new interface rendering data are stored in a corresponding relationship.
[0180] Further, the interface generation instruction is a voice instruction or a text instruction.
[0181] Further, the processing module 51 is further configured to:
[0182] store the interface generation data and a current time stamp in a corresponding relationship;
[0183] If the number of stored interface generation data is greater than or equal to the preset memory limit number, the preset memory limit number of data corresponding to the latest timestamp in all stored interface generation data are reserved data;
[0184] Delete the data other than the reserved data from all stored interface generation data.
[0185] The vehicle terminal interface generation device provided in the embodiment is used to execute the technical solution of the vehicle terminal in any of the preceding method embodiments, and has similar implementation principles and technical effects, which will not be described here.
[0186] Figure 6 The structure diagram of the second embodiment of the vehicle terminal interface generation device provided in the application is shown in the figure. The device can be integrated into the master server in the above method embodiments, or can be implemented through the master server in the above method embodiments. As shown in the figure, the vehicle terminal interface generation device 60 includes: Figure 6
[0187] The receiving module 61 is configured to receive interface style data sent by the vehicle terminal, and the interface style data includes interface size data, control quantity and control identifier;
[0188] The processing module 62 is configured to:
[0189] determine an interface template according to the interface size data and the control quantity;
[0190] input the interface style data and the interface template into a target large language model to obtain interface rendering data;
[0191] generate interface generation data according to the interface rendering data, and the interface generation data includes an access address corresponding to the interface rendering data;
[0192] The sending module 63 is configured to send the interface generation data to the vehicle terminal.
[0193] Further, the processing module 62 is specifically configured to:
[0194] determine a to-be-determined template corresponding to the interface size data according to a preset corresponding relationship between an interface size range and a template;
[0195] If the number of controls in the to-be-determined template is greater than or equal to the control quantity, the to-be-determined template is used as the interface template.
[0196] Further, the processing module 62 is further configured to:
[0197] If the number of the controls in the template to be determined is less than the number of the controls, all the templates in which the number of the controls is greater than or equal to the number of the controls are stored as the templates to be selected.
[0198] The interface template is selected from all the templates to be selected.
[0199] Further, the interface generation data further comprises the interface rendering data.
[0200] Further, the interface generation data further comprises verification data of the interface rendering data, and the sending module 63 is further configured to send the interface generation data to a backup server.
[0201] Further, the processing module 62 is further configured to:
[0202] store the interface generation data in a corresponding relationship with a current timestamp;
[0203] If the number of the stored interface generation data is greater than or equal to a preset memory limit number, the preset memory limit number of data with the latest corresponding timestamp among all the stored interface generation data are reserved data;
[0204] delete all the data except the reserved data among all the stored interface generation data.
[0205] The vehicle terminal interface generation apparatus provided in the embodiment is used to execute the technical solution of the main server in any one of the method embodiments, and has similar implementation principles and technical effects, which will not be described herein again.
[0206] Figure 7 A structural schematic diagram of a vehicle terminal is provided in the present application. As shown in the figure, Figure 7 The vehicle terminal 70 comprises:
[0207] a processor 71, a memory 72, and a communication interface 73;
[0208] The memory 72 is configured to store executable instructions of the processor 71.
[0209] The processor 71 is configured to execute the technical solution of the vehicle terminal in any one of the method embodiments by executing the executable instructions.
[0210] Optionally, the memory 72 can be independent or integrated with the processor 71.
[0211] Optionally, when the memory 72 is independent of the processor 71, the vehicle terminal 70 can further comprise:
[0212] The bus 74, the memory 72 and the communication interface 73 are connected with the processor 71 through the bus 74 and complete the communication among each other, and the communication interface 73 is used for communicating with other devices.
[0213] Optionally, the communication interface 73 can be implemented through a transceiver. The communication interface is used for realizing the communication between the database access device and other devices (for example, a client, a read-write library and a read-only library). The memory can include a random access memory (RAM) and can also include a non-volatile memory, for example, at least one disk memory.
[0214] The bus 74 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.
[0215] The processor described above can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0216] The vehicle terminal is used for executing the technical solution of the vehicle terminal in any one of the preceding method embodiments, and the implementation principle and technical effects are similar, and will not be described here.
[0217] Figure 8 A structure schematic diagram of a server provided in the present application is shown in FIG. 8. Figure 8 As shown in the figure, the server 80 includes:
[0218] a processor 81, a memory 82 and a communication interface 83.
[0219] The memory 82 is used for storing executable instructions of the processor 81.
[0220] The processor 81 is configured to execute the technical solution of the server in any one of the preceding method embodiments by executing the executable instructions.
[0221] Optionally, the memory 82 can be independent or integrated with the processor 81.
[0222] Optionally, when the memory 82 is a device independent of the processor 81, the server 80 can further include:
[0223] The bus 84, the memory 82 and the communication interface 83 are connected with the processor 81 through the bus 84 and complete communication with each other, and the communication interface 83 is used for communication with other devices.
[0224] Optionally, the communication interface 83 can be implemented by a transceiver. The communication interface is used to realize communication between the database access device and other devices (for example, a client, a read-write library and a read-only library). The memory can include a random access memory (RAM) and can also include a non-volatile memory, for example, at least one disk memory.
[0225] The bus 84 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is represented in the figure, but it does not mean that there is only one bus or only one type of bus.
[0226] The processor described above can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0227] The server is used to execute the technical solutions of the server in any of the preceding method embodiments, and the implementation principles and technical effects are similar, which will not be described here.
[0228] The embodiment of the present application further provides a computer program product, including a computer program, when the computer program is executed by a processor, the computer program is used to implement the technical solutions of the vehicle-mounted terminal or the server in any of the preceding method embodiments.
[0229] The embodiment of the present application further provides a readable storage medium, which stores a computer program, when the computer program is executed by a processor, the computer program implements the technical solutions of the vehicle-mounted terminal or the server in any of the preceding method embodiments.
[0230] The above-mentioned readable storage medium can be realized by any type of volatile or nonvolatile storage devices or their combinations, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0231] An exemplary readable storage medium is coupled to the processor, so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in the device.
[0232] The division of units is only a logical functional division, and in actual implementation, there can be another division manner, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0233] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on multiple network units. According to actual needs, part or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0234] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit.
[0235] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the part of the present application that essentially contributes to the prior art or the part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.
[0236] Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction-related hardware. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, a magnetic disk or an optical disk, and various program code storage media.
[0237] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or make equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for generating an interface of a vehicle terminal, characterized by, Applied to a vehicle terminal, comprising: The interface generation instruction input by the user is analyzed, interface style data is generated, the interface style data includes interface size data, control quantity and control identification; The interface style data is sent to the main server; The interface generation data sent by the main server is received, the interface generation data includes the access address corresponding to the interface rendering data, and the interface generation data is generated according to the interface style data; According to the access address, the interface rendering data is accessed and obtained from the main server; According to the interface rendering data, the target interface is rendered and generated.
2. The method of claim 1, wherein, The interface generation data also includes the interface rendering data, and after the interface generation data sent by the main server is received, the method further comprises: The access address and the interface rendering data are stored after the corresponding relationship is established; If the communication between the vehicle terminal and the main server is abnormal, the interface rendering data corresponding to the access address is obtained from the stored data; According to the access address, the interface rendering data is accessed and obtained from the main server. The interface generation data also includes the interface rendering data, and after the interface generation data sent by the main server is received, the method further comprises:
3. The method of claim 2, wherein, According to the interface rendering data, the target interface is rendered and generated. The interface generation data also includes the interface rendering data, and after the interface generation data sent by the main server is received, the method further comprises: According to the interface rendering data, the target interface is rendered and generated. The interface generation instruction is a voice instruction or a text instruction.
4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises:
5. The method according to any one of claims 1 to 3, characterized in that, The interface generation data and the current timestamp are stored after the corresponding relationship is established; If the number of stored interface generation data is greater than or equal to the preset memory limit number, the preset memory limit number of data corresponding to the latest timestamp in all stored interface generation data is reserved as the reserved data; All the interface generation data stored in the data except the reserved data is deleted. Applied to a main server, comprising:
6. A method for generating an interface of a vehicle terminal, characterized by The interface style data sent by the vehicle terminal is received, the interface style data includes interface size data, control quantity and control identification; According to the interface size data and the control quantity, the interface template is determined; The interface style data and the interface template are input into the target large language model to obtain the interface rendering data; According to the interface rendering data, the interface generation data is generated, and the interface generation data includes the access address corresponding to the interface rendering data; The interface generation data is sent to the vehicle terminal. According to the interface size data and the control quantity, the interface template is determined, comprising:
7. The method of claim 6, wherein, According to a preset interface size range and a corresponding relationship of a template, a to-be-determined template corresponding to the interface size data is determined; If the number of controls in the to-be-determined template is greater than or equal to the number of controls, the to-be-determined template is taken as the interface template.
8. The method of claim 7, wherein, The method further comprises: If the number of controls in the to-be-determined template is less than the number of controls, a template in which the number of controls in all stored templates is greater than or equal to the number of controls is taken as a to-be-selected template; The interface template is selected from all to-be-selected templates.
9. The method according to any one of claims 6 to 8, characterized in that, The interface generation data further comprises the interface rendering data.
10. The method of claim 9, wherein, The interface generation data further comprises verification data of the interface rendering data, and the method further comprises: The interface generation data is sent to a backup server.
11. The method according to any one of claims 6 to 8, characterized in that, The method further comprises: The interface generation data is stored after a corresponding relationship between the interface generation data and a current timestamp is established; If the number of stored interface generation data is greater than or equal to a preset memory limit number, the preset memory limit number of data with the latest corresponding timestamp in all stored interface generation data is taken as reserved data; Data other than the reserved data in all stored interface generation data is deleted.
12. An in-vehicle terminal interface generation device characterized by comprising: Comprise: A processing module is configured to analyze interface generation instructions input by a user, generate interface style data, and the interface style data comprises interface size data, the number of controls, and control identification; A communication module is configured to: Send the interface style data to a main server; Receive interface generation data sent by the main server, wherein the interface generation data comprises an access address corresponding to interface rendering data, and the interface generation data is generated according to the interface style data; Access the interface rendering data from the main server according to the access address; A generation module is further configured to render a target interface according to the interface rendering data.
13. An in-vehicle terminal interface generation device characterized by comprising: Comprise: A receiving module is configured to receive interface style data sent by a vehicle terminal, wherein the interface style data comprises interface size data, the number of controls, and control identification; A processing module is configured to: Determine an interface template according to the interface size data and the number of controls; Input the interface style data and the interface template into a target large language model to obtain interface rendering data; Generate interface generation data according to the interface rendering data, wherein the interface generation data comprises an access address corresponding to the interface rendering data; A sending module is configured to send the interface generation data to the vehicle terminal.
14. A vehicle terminal, characterized by Comprise: A processor, a memory, and a communication interface; The memory is configured to store executable instructions of the processor; The processor is configured to execute the vehicle terminal interface generation method according to any one of claims 1 to 5 by executing the executable instructions.
15. A server, characterized by Comprise: A processor, a memory, and a communication interface; The memory is configured to store executable instructions of the processor; The processor is configured to execute the vehicle terminal interface generation method according to any one of claims 6 to 11 by executing the executable instructions.
16. A readable storage medium, having stored thereon a computer program, characterized in that, The computer program is executed by a processor to implement the vehicle terminal interface generation method in any one of claims 1 to 5, or any one of claims 6 to 11.
17. A computer program product, characterised in that, The computer program is executed by a processor to implement the vehicle terminal interface generation method in any one of claims 1 to 5, or any one of claims 6 to 11.