Vehicle control interface generation method and device, computer equipment and storage medium
By storing and analyzing the historical data of vehicle control instructions, a personalized vehicle control interface is generated, which solves the problem that the interface cannot be adjusted according to user habits in the prior art, and improves the user experience.
Patent Information
- Application Number
- CN202410872475.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-11-01
AI Technical Summary
The control interface of existing vehicle APP cannot be personalized according to the user's region, season and population distribution habits, resulting in poor user experience. Especially for older users, the interface does not meet their needs.
By obtaining vehicle control command information in the historical time period, storing it in the target data structure according to preset storage rules, and determining the control module displayed in the control interface according to the number of instruction types, an interface that conforms to user habits is generated.
It realizes personalized generation of the vehicle control interface, improves the user experience, and ensures that the interface meets the usage habits and needs of each user.
Smart Images

Figure CN118885241A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of vehicle control technology, and in particular, to a method, device, computer equipment, and storage medium for generating a vehicle control interface. Background Art
[0002] With the improvement and aggregation of the supply chain of the new energy vehicle industry chain, as well as the construction of supporting infrastructure such as charging facilities, strong support has been provided for the development and growth of new energy vehicles. There are more and more vehicle APPs registered by users as car owners. Users are increasingly fond of remotely controlling vehicles and viewing vehicle data through APPs. However, there are also large differences in the users who use the vehicles and the climate where the users are located; for example, there is a large temperature difference between Sichuan winter and Xiamen winter, and there is strong wind and sand in Beijing in April and May. Therefore, users in different regions and seasons generate different control commands when using APPs. The remote control commands of users on the main control page of the car owner APP need to present different remote controls according to different regions, seasons, population distribution, and personal hobbies.
[0003] The current vehicle APP does not distinguish between regions, seasons, population distribution, and user habits; the control interface of the vehicle control homepage uniformly displays the same vehicle control modules. And when the user does not see the remote control control module he needs on the control interface, he needs to open other pages to find other control modules in the remote control list. For some older users, the remote control icons on the homepage are too small to see clearly or cannot understand the meaning of the icons, which affects user use. Due to different user habits, the control interface automatically generated by the platform may not meet everyone's requirements. Therefore, how to accurately generate the vehicle control interface has become a problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, in order to solve the above-mentioned technical problems or part of the technical problems, an embodiment of the present invention provides a method, an apparatus, a computer device and a storage medium for generating a vehicle control interface.
[0005] In a first aspect, an embodiment of the present invention provides a method for generating a vehicle control interface, comprising:
[0006] Acquire instruction information corresponding to a control instruction sent by a target application in a historical time period, the target application being used to control the vehicle, the instruction information including: an instruction type;
[0007] Storing the instruction information in a target data structure according to a preset storage rule, wherein the preset storage rule is related to the instruction information;
[0008] When receiving the acquisition instruction of the control interface sent by the target account, acquiring the number of control instructions of each instruction type under each preset storage rule in the target data structure;
[0009] The control modules displayed in the control interface are determined according to the quantity to generate the control interface.
[0010] In a possible implementation, the instruction information includes: time information, account information, region information, and season information for sending the control instruction, and storing the instruction information in the target data structure according to a preset storage rule includes:
[0011] Determine the key of the key-value pair in the target data structure from the instruction information according to a preset storage rule;
[0012] Determine the value of the key-value pair according to the time information and the account information;
[0013] The instruction information is stored in the target data structure according to the key-value pair.
[0014] In a possible implementation, determining the key of the key-value pair in the target data structure from the instruction information according to a preset storage rule includes:
[0015] When the preset storage rule is to store the control instructions according to the frequency of receiving the control instructions within a preset time period, determining the key in the key-value pair according to the instruction type of the control instruction and the preset time period;
[0016] Or, when the preset storage rule is to store according to the season information, the key in the key-value pair is determined according to the instruction type of the control instruction and the season information;
[0017] Or, when the preset storage rule is to store according to the season information and the region information, the key in the key-value pair is determined according to the instruction type of the control instruction, the season information and the region information.
[0018] In a possible implementation manner, storing the instruction information into a target data structure according to a preset storage rule includes:
[0019] Building multiple threads according to the number of configured connections in the database corresponding to the target data structure;
[0020] Dividing all the control instructions into a plurality of the threads, so as to count the number of control instructions of each instruction type through the threads according to the preset storage rule;
[0021] Using the instruction type as the key of the key-value pair, and using the number of control instructions corresponding to the instruction type as the value of the key-value pair;
[0022] The instruction information is stored in the target data structure according to the key-value pair.
[0023] In a possible implementation manner, determining the control module displayed in the control interface according to the quantity includes:
[0024] Obtaining a display rule corresponding to the target account, wherein the display rule corresponds to the preset storage rule;
[0025] Determine the display priority of each instruction type under each preset storage rule according to the quantity, wherein the quantity is positively correlated with the display priority;
[0026] Control modules corresponding to multiple instruction types are determined from the target data structure according to the display rule and the display priority.
[0027] In a possible implementation manner, determining the control module displayed in the control interface according to the quantity includes:
[0028] Obtaining vehicle model information corresponding to the target account;
[0029] Determining a target instruction type that matches the vehicle model information;
[0030] The control module displayed in the control interface is determined according to the number of control instructions corresponding to the target instruction type.
[0031] In a possible implementation, the method further includes:
[0032] When receiving a control module selection instruction sent by the target account, determining multiple control modules according to the selection instruction;
[0033] Obtaining account attributes of the target account;
[0034] Determine a display template corresponding to the account attribute;
[0035] The control interface is generated by combining the plurality of control modules according to the display template.
[0036] In a second aspect, an embodiment of the present invention provides a device for generating a vehicle control interface, comprising:
[0037] A first acquisition module is used to acquire instruction information corresponding to a control instruction sent by a target application in a historical time period, wherein the target application is used to control the vehicle, and the instruction information includes: an instruction type;
[0038] A storage module, used for storing the instruction information into a target data structure according to a preset storage rule, wherein the preset storage rule is related to the instruction information;
[0039] A second acquisition module, configured to acquire the number of control instructions of each instruction type under each preset storage rule in the target data structure when receiving an acquisition instruction of the control interface sent by the target account;
[0040] A generating module is used to determine the control module displayed in the control interface according to the quantity, so as to generate the control interface.
[0041] In a third aspect, an embodiment of the present invention provides a computer device, comprising: a processor and a memory, wherein the processor is used to execute a vehicle control interface generation program stored in the memory to implement the vehicle control interface generation method described in any one of the first aspects above.
[0042] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method for generating a vehicle control interface as described in any one of the first aspects above.
[0043] The generation scheme of the vehicle control interface provided by the embodiment of the present invention obtains the instruction information corresponding to the control instruction sent by the target application in the historical time period, the target application is used to control the vehicle, and the instruction information includes: instruction type; the instruction information is stored in the target data structure according to the preset storage rule, and the preset storage rule is related to the instruction information; when the acquisition instruction of the control interface sent by the target account is received, the number of control instructions of each instruction type under each preset storage rule in the target data structure is obtained; according to the number, the control module displayed in the control interface is determined to generate the control interface. Therefore, the instruction information of the historical control instructions received in advance can be stored according to the preset storage rule, and the control module to be displayed in the vehicle control interface can be determined according to the number of different instruction types stored, and the control interface can be generated, so as to realize the determination of the control module to be displayed through the control instructions used by the historical users, generate the control interface that conforms to the user usage habits of the vehicle application, improve the accuracy of the generation of the vehicle control interface, and enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic flow chart of a method for generating a vehicle control interface provided by an embodiment of the present invention;
[0045] Figure 2 A schematic flow chart of another method for generating a vehicle control interface provided by an embodiment of the present invention;
[0046] Figure 3A schematic diagram of the structure of a device for generating a vehicle control interface provided by an embodiment of the present invention;
[0047] Figure 4 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention;
[0048] Figure 5 An interactive schematic diagram of a vehicle control method provided by an embodiment of the present invention;
[0049] Figure 6 An interactive schematic diagram of a method for generating a vehicle control interface provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.
[0052] Figure 1 A flow chart of a method for generating a vehicle control interface provided by an embodiment of the present invention is shown as follows: Figure 1 As shown, the method specifically includes:
[0053] S11. Obtain instruction information corresponding to a control instruction sent by a target application within a historical time period, wherein the target application is used to control the vehicle.
[0054] The method for generating a vehicle control interface provided by an embodiment of the present invention is applied to a computer device, which may include but is not limited to: a cloud (e.g., a TSP cloud), a server, a desktop computer, etc. Specifically, the instruction information of the historical control instructions received in advance is stored in a target data structure according to a preset storage rule, the control module to be displayed in the vehicle control interface is determined according to the number of different instruction types stored, and the control interface is generated according to the control module.
[0055] In this embodiment, the target application is an application used by the car owner to control the vehicle. After the user's account logs in to the target application, the user can remotely send control instructions of different control types to the vehicle to control the vehicle by clicking the control module of the target application control interface.
[0056] A historical time period is preset, and control instructions sent by each user when using the target application during the historical time period are obtained, and instruction information of the control instructions is obtained, wherein the instruction information at least includes the instruction type, and the instruction type represents the content controlled by the control instruction (for example, controlling the vehicle air conditioning to turn on, controlling the vehicle window to open, controlling the vehicle to unlock, etc.). The instruction information may also include: time information when the control instruction is sent, account information used by the user who sent the control instruction, regional information of the user, and season information when the control instruction is sent.
[0057] S12: storing the instruction information in a target data structure according to a preset storage rule, where the preset storage rule is related to the instruction information.
[0058] In this embodiment, the preset storage rules can be set in advance according to the specific content that needs to be stored at present (for example, the instruction types of control instructions sent by users in different areas need to be stored, and the preset storage rules are stored according to the area information and instruction type), and can also be related to the information contained in the instruction information. Specifically, the preset storage rules may include: when it is necessary to count the number of control instructions of each instruction type, classify and store according to the instruction type sent by the user within a preset time period; when it is necessary to count the number of control instructions of each instruction type in each season, classify and store according to the season and instruction type of the user; when it is necessary to count the number of control instructions of each instruction type in each area in each season, classify and store according to the season of the user, the area where the user is located and the instruction type. When storing, it is stored in the target data structure in the form of key-value pairs through asynchronous threads. The target data structure may include but is not limited to: HperLog data structure in redis.
[0059] The storage method can be to generate the key in the key-value pair according to the instruction information contained in the preset storage rules, and generate the value in the key-value pair according to the time information and the user's account information, wherein the key can represent the content contained in the currently stored instruction information, and the value represents the timestamp of the control instruction obtained and the unique identifier of the user who sent the control instruction. For example, the instruction information contains instruction type and season information, and the current preset storage rule is to count the number of control instructions of each instruction type in each season, key = DifferentSeasonsFrequencyKey + instruction type + season, value: timestamp + user id, wherein "DifferentSeasonsFrequencyKey" is the name of the key-value pair, representing the frequency of users using control instructions in different seasons.
[0060] In a possible implementation, the target data structure can also be a String data structure in redis, and the key can be stored in the instruction type according to different preset storage rules, and the value indicates the number of times each instruction type is received; when a new control instruction is received, it is determined whether the instruction type corresponding to the key in redis exists, and if it exists, the value is added, and if it does not exist, a new key is created according to the instruction type of the new control instruction, and the corresponding value is 1. That is, the key-value pairs are stored separately according to different preset storage rules.
[0061] Thus, each control instruction and the corresponding instruction information are stored in the target data structure according to the preset rules.
[0062] S13. When receiving the acquisition instruction of the control interface sent by the target account, the number of control instructions of each instruction type under each preset storage rule in the target data structure is acquired.
[0063] In this embodiment, after the user opens the target application and logs in to the target account, a control interface acquisition instruction will be sent when the control interface needs to be opened. When the acquisition instruction is received, the display rules corresponding to the current target account are obtained. The display rules are pre-set for the target account. The display rules correspond one-to-one to the preset storage rules. The display rules may include: selecting a control module for display according to the frequency of control instructions sent by users within a preset time period, selecting a control module for display according to the frequency of control instructions sent by users in different seasons, selecting a control module for display according to the frequency of control instructions sent by users in different seasons and different regions, etc.
[0064] Further, a preset storage rule corresponding to the current display rule is determined, instruction information stored in the target data structure according to the currently determined preset storage rule is determined, and the number of each instruction type in the determined instruction information is counted.
[0065] In a possible implementation, when the target data structure is a String data structure in redis, the value corresponding to each instruction type is directly obtained from the currently determined preset storage rule to obtain the number of control instructions of each instruction type.
[0066] S14. Determine the control module displayed in the control interface according to the quantity, so as to generate the control interface.
[0067] In this embodiment, the display priority of each instruction type is determined based on the number of control instructions obtained, and the number of control modules that need to be selected is obtained. The number of control modules can be pre-set according to the size of the display area in the control interface of the user terminal. The control modules are selected from high to low according to the display priority based on the number of control modules, and the selected control modules are displayed in the display area to generate a control interface for display to the user.
[0068] The method for generating a vehicle control interface provided by an embodiment of the present invention obtains instruction information corresponding to a control instruction sent by a target application in a historical time period, the target application is used to control the vehicle, and the instruction information includes: instruction type; the instruction information is stored in a target data structure according to a preset storage rule, and the preset storage rule is related to the instruction information; when receiving an acquisition instruction of the control interface sent by a target account, the number of control instructions of each instruction type under each preset storage rule in the target data structure is obtained; and the control module displayed in the control interface is determined according to the number to generate the control interface. Thus, the instruction information of the historical control instructions received in advance can be stored according to the preset storage rule, and the control module to be displayed in the vehicle control interface can be determined according to the number of different instruction types stored, and a control interface can be generated, so as to realize the determination of the control module to be displayed through the control instructions used by historical users, generate a control interface that conforms to the user usage habits of the vehicle application, improve the accuracy of the generation of the vehicle control interface, and enhance the user experience.
[0069] Figure 2 A flow chart of another method for generating a vehicle control interface provided by an embodiment of the present invention is shown as follows: Figure 2 As shown, the method specifically includes:
[0070] S21. Obtain instruction information corresponding to a control instruction sent by a target application within a historical time period, wherein the target application is used to control the vehicle.
[0071] In this embodiment, as the number of vehicles sold by the vehicle manufacturer increases, the number of users gradually increases, so the data in the database will become very large. Therefore, when the user uses the remote control, the control instructions can be counted in an asynchronous thread mode, and the statistical results of each day are stored in the database in multiple dimensions, for example, according to the frequency of control instructions sent by users every day, the frequency of control instructions sent by users in different seasons, the frequency of control instructions sent by users in different regions, and the frequency of control instructions sent by users in different regions in different seasons.
[0072] Specifically, the process of obtaining instruction information in this embodiment is similar to step S11, and can be specifically referred to Figure 1For the sake of brevity, the relevant content will not be elaborated here.
[0073] S22. Determine the key of the key-value pair in the target data structure from the instruction information according to the preset storage rule; determine the value of the key-value pair according to the time information and the account information; and store the instruction information in the target data structure according to the key-value pair.
[0074] In this embodiment, this embodiment uses the redis cardinality statistics algorithm to store and count the control instructions and instruction information sent by the user. The principle of the redis cardinality statistics algorithm is as follows: the cardinality statistics algorithm uses the HperLog data structure in redis. The value stored in the structure is subjected to a hash function algorithm to obtain a 64-bit value. The lower 14 bits represent buckets, so the number of buckets converted into decimal is 2 to the 14th power = 16384, and the remaining upper 50 bits are used for the Bernoulli experiment. Therefore, the upper 50 bits require 6 bits = 2 to the 6th power = 64>50, so the storage space required is 16384*6 bits = 12kb, so the number of 2 to the 64th power can be counted. If an HperLog data structure is added, it is at most 12kb; if there are 50 types of control instructions, a maximum of 600kb of storage space is occupied. Therefore, the use of the HperLog data structure can reduce the storage space occupied in redis and achieve the effect of storing more data. HperLog data structure: The key of this structure indicates the type of statistics we are counting, and the value indicates the specific data passed in; new data: PFADD key element[element...]; number of statistical data: PFCOUNT key[key...].
[0075] Determining the key of the key-value pair in the target data structure from the instruction information according to the preset storage rule includes:
[0076] When the preset storage rule is to store the control instructions according to the frequency of receiving the control instructions within the preset time period, the key in the key-value pair is determined according to the instruction type of the control instruction and the preset time period.
[0077] Or, when the preset storage rule is to store according to season information, the key in the key-value pair is determined according to the instruction type of the control instruction and the season information;
[0078] Or, when the preset storage rule is to store according to season information and region information, the key in the key-value pair is determined according to the instruction type of the control instruction, the season information and the region information.
[0079] Specifically, keys corresponding to different preset storage rules can be set in advance. When the frequency of receiving control instructions within a preset time period (every day) is stored, it means that the number of control instructions of each instruction type within the preset time period needs to be counted, and key = EveryDayFrequencyKey + instruction type is determined; when the instruction information is stored according to the fact that the user sending the control instruction is in different seasons, it means that the number of control instructions of different instruction types received in different seasons needs to be counted, and key = DifferentSeasonsFrequencyKey + instruction type + season information is determined; when the instruction information is stored according to the fact that the user sending the control instruction is in different regions and different seasons, it means that the number of control instructions of different instruction types in different regions and different seasons needs to be counted, and key = DifferentCitySeasonsFrequencyKey + instruction type + season information + regional information (city, administrative region, etc.) is determined.
[0080] When the user clicks on the control command through the target application, the command information is sent to the cloud or server for processing and stored in the target data structure (for example, the car owner app calls the TSP cloud's sending command interface, passes in specific command information and token (user ID, user mobile number, user name), so that the TSP cloud receives the request and parses the current user information and command information according to the token, and uses asynchronous threading to store it in the HperLog data structure through redis).
[0081] Furthermore, when the preset storage rule is to store according to the frequency of receiving control instructions within a preset time period: call the HperLog data structure function PFADD in redis, where key = EveryDayFrequencyKey + instruction type, value = time information (e.g., current timestamp) + account information (e.g., unique user id). When the control instruction is a car lock instruction, that is, the instruction type is LOCK, then when the control instruction is received, the exist function in the HperLog data structure in redis will be called first to determine whether key = EveryDayFrequencyKey-LOCK exists. If it does not exist, create an HperLog data structure with key = EveryDayFrequencyKey-LOCK, determine the current value = timestamp + user id, and call the PFADD function for storage. If key = EveryDayFrequencyKeyLOCK exists, directly call the PFADD function for storage.
[0082] When the preset storage rule is to store according to season information, call the HperLog data structure function PFADD in redis, where key = DifferentSeasonsFrequencyKey + instruction type + season information, value = time information + account information. When the instruction type is LOCK, the exist function in the HperLog data structure in redis will be called to determine whether key = DifferentSeasonsFrequencyKey-LOCK-First exists. If it does not exist, create an HperLog data structure with key = DifferentSeasonsFrequencyKey-LOCK-First, and determine value = timestamp + user id, and call the PFADD function for storage. If key = DifferentSeasonsFrequencyKey-LOCK-First exists, call the PFADD function directly for storage.
[0083] When the preset storage rule is to store according to season information and regional information, the HperLog data structure function PFADD in redis is called, where key = DifferentCitySeasonsFrequencyKey + instruction type + season information + regional information, value = time information + account information. When the instruction type is LOCK, the exist function in the HperLog data structure in redis is called first to determine whether key = DifferentCitySeasonsFrequencyKey-LOCK-FIRST-028 exists. If it does not exist, create an HperLog data structure with key = DifferentCitySeasonsFrequencyKey-LOCK-FIRST-028; and determine value = timestamp + user id, and call the PFADD function for storage; if key = DifferentCitySeasonsFrequencyKey-LOCK-FIRST-028 exists, call the PFADD function directly for storage.
[0084] In a possible implementation, storing the instruction information into the target data structure according to a preset storage rule further includes:
[0085] Construct multiple threads according to the number of configured connections in the database corresponding to the target data structure; divide all control instructions into multiple threads, so as to count the number of control instructions of each instruction type through threads according to preset storage rules; use the instruction type as the key of the key-value pair, and use the number of control instructions corresponding to the instruction type as the value of the key-value pair; store the instruction information into the target data structure according to the key-value pair.
[0086] Specifically, in this embodiment, the String data structure of the redis message middleware is combined with the application system, and the system supports multi-threaded mode to quickly store and count data. First, the platform users call the select function in the database in batches to obtain the control instructions sent by each user in the historical time period. Create multiple threads through the system function. The number of threads can be set to one-third or one-half of the number of connections configured in the database, and multiple threads are created using the constructor in ThreadPoolExecutor. All control instructions are evenly divided into multiple groups of data according to the number of threads, and each group of data is divided into a thread for execution. Each thread stores instruction information according to the preset storage rules, that is, each instruction information is stored in the String data structure in redis according to the preset storage rules. For example, storage according to different preset storage rules includes: obtaining the number of instruction information of different instruction types in different seasons for storage, or obtaining the number of instruction information of different instruction types every day for storage, or obtaining the number of instruction information of different instruction types in different regions in different seasons for storage. Among them, it is stored in the form of key-value pairs, the key in the target data structure corresponding to each preset storage rule is stored in the instruction type, and the value represents the number of times each instruction type is obtained; when a new control instruction is received, if the key in redis has the instruction type corresponding to the new control instruction, the value is accumulated, if not, a key corresponding to the new control instruction is generated and the instruction type of the new control instruction is stored.
[0087] The storage method in this embodiment can be applied to the following scenarios: Scenario 1: When the preset storage rule is to store according to the number of control instructions received within a preset time period, only the account information and instruction type need to be obtained, and there is no need to obtain time information, user name, database primary key id, etc.; in this way, at least four fields are reduced, saving more than double the memory. Scenario 2: When the number of control instructions of different instruction types in different seasons is stored, only the account information and instruction type, season information or time information are obtained, and there is no need to obtain user id, user name, database primary key id, etc., reducing at least 3 fields and saving more than double the memory. Scenario 3: When the number of control instructions of different instruction types in different regions in different seasons is stored, only the region information, account information, instruction type, and season information are obtained, and there is no need to query other irrelevant fields, saving memory. In this way, it can be achieved that the query field is reduced when querying the historical usage number of control instructions, thereby reducing the occupation of server memory resources.
[0088] S23: When receiving the acquisition instruction of the control interface sent by the target account, the number of control instructions of each instruction type under each preset storage rule in the target data structure is acquired.
[0089] In this embodiment, when the user opens the target application, an acquisition instruction of the control interface is sent. When the acquisition instruction is received, the number of instruction information of different instruction types stored in each data structure is obtained as the number of control instructions of different instruction types. Specifically, by using the PFCOUNT instruction acquisition in the HperLog data structure in redis, for the target data structure corresponding to different preset storage rules, the number of EveryDayFrequencyKey+instruction type, DifferentSeasonsFrequencyKey+instruction type+season information, DifferentCitySeasonsFrequencyKey+instruction type+season information+region information is counted respectively, and then the sort function in the List data in java is used to sort from high to low according to the number.
[0090] In a possible implementation, if the key is the instruction type and the value is the number, the value corresponding to the different instruction types can be directly obtained as the number of control instructions for the target data structure corresponding to different preset storage rules.
[0091] S24. Obtain the display rules corresponding to the target account; determine the display priority of each instruction type under each preset storage rule according to the quantity, where the quantity is positively correlated with the display priority; determine the control modules corresponding to multiple instruction types from the target data structure according to the display rules and the display priority.
[0092] In this embodiment, the display rules correspond to the preset storage rules one by one, and the display rules represent the content that needs to be displayed on the user side, and can be preset according to user needs (for example, the control modules corresponding to n instruction types are selected from high to low according to the number of control instructions received within a preset time period, or the control modules corresponding to n instruction types are selected from high to low according to the number of control instructions received in the current season, or the control modules corresponding to n instruction types are selected from high to low according to the number of control instructions received in the current area in the current season).
[0093] Furthermore, the number of each instruction type stored in the target data structure corresponding to each preset storage rule is sorted from high to low, and the display priority of the instruction information corresponding to the sorted number is from high to low. When it is necessary to obtain the control interface, first determine the target preset storage rule corresponding to the current display rule, determine the multiple target instruction information stored in the target data structure corresponding to the target preset storage rule, select a preset number of target instruction information in order of display priority from high to low, determine the target instruction type corresponding to each target instruction information, and determine that the control module corresponding to the target instruction type is the control module that finally needs to be displayed on the control interface. The preset number can be determined according to the number of areas in the control interface where the control module can be displayed.
[0094] In a possible implementation manner, determining the control module displayed in the control interface according to the quantity includes:
[0095] Acquire vehicle type information corresponding to the target account; determine a target instruction type that matches the vehicle type information; and determine a control module displayed in the control interface according to the number of control instructions corresponding to the target instruction type.
[0096] Specifically, the vehicle model information may be information characterizing the vehicle model, such as a vehicle frame number. Different vehicle models may support different control instructions. The type of control instructions that can control the current vehicle model is determined as the target instruction type that matches the vehicle model information. The number of control instructions corresponding to each target instruction type under the preset storage rule corresponding to the current display rule is obtained, and the control module corresponding to the control type of the control instruction is selected in descending order of the number.
[0097] S25. Generate a control interface according to the control module.
[0098] In this embodiment, the determined control module is sent to the target application so that the target application displays the control module in the display area of the control interface to obtain the final control interface.
[0099] In one possible implementation, when a control module selection instruction is received from a target account, multiple control modules are determined according to the selection instruction; the account attributes of the target account are obtained; a display template corresponding to the account attributes is determined; and a control interface is generated for the multiple control modules according to the display template.
[0100] Specifically, the user can customize the control module displayed on the control interface. When a selection instruction is received, the control module corresponding to the selection instruction is determined to be the control module that needs to be displayed. The account attributes of the target account can represent the user's age or population (young people, old people). Different account attributes correspond to different display templates. Each display template corresponds to different control instruction icon sizes, icon colors, font sizes, font colors, etc. The icon size, icon color, font size, font color, etc. of the control module are adjusted according to the display template, and the control interface is generated according to the adjusted control module.
[0101] As an example, due to the different groups of people who buy vehicles, such as those under 35 and those over 35, each group received different education at that time. It is impossible to know some of the current vehicle control component icons. For example, some component icons are used for the trunk, window ventilation, and sunroof ventilation in the car owner's app remote control. Older people may not know what they mean and often forget them, which brings trouble to users and poor experience. When users purchase vehicles from sales companies, they can register their age, region, and education level information. The sales company saves the user information in the user detail table in the TSP cloud database based on the user information saving interface provided by the TSP cloud. When the control interface needs to be generated, the display template of the control interface seen by the account attribute older age is template A, and the display template of the control interface seen by the account attribute younger age is template B; Template A: the vehicle control icon is larger, the icon color is darker, the font is larger, and the font color is more conspicuous. Template B: the vehicle control icon is smaller, the icon color is fresher and brighter, and there is no icon description.
[0102] Specifically, after the user logs in to the APP, the TSP cloud-based vehicle control homepage interface data is called. The TSP cloud receives the APP's request to obtain the vehicle control homepage data, and obtains user information based on the currently accessed user id, such as the user's age and education level. According to age and education level, select template A or template B, and send the selected template to the APP. After receiving the result, the APP displays different styles according to the selected control module. If the user is not satisfied, he can switch the display template through the template case displayed on the APP. If the user switches when using the platform's default template, call the TSP cloud-based remote control solution selection interface to pass in the user's specific selected template and the current user id for storage. The next time you enter the vehicle control homepage, first determine whether the user has selected the template himself. If selected, the default template selected by the APP user will be returned by default. If not, the default solution will be used.
[0103] As another example, users can choose based on the pre-made instruction types of the platform, and quickly add their favorite and frequently used instruction types to the control interface for easy use. Get the list of control modules supported by the current vehicle model: the app calls the vehicle remote control list acquisition interface provided by the cloud, and passes the request parameter to the vehicle id; after receiving the request, the TSP cloud queries the vehicle model information from the vehicle information table according to the vehicle id; and obtains the control modules supported by the model according to the model. User-defined control module: The user selects and sorts through the vehicle control list customization interface in the app. Store user-defined control modules: the app encapsulates the control module corresponding to the user's selection instruction and the position order of the control module in the control interface into a List data structure, in which each object in the List data structure stores the control module and the position order; calls the TSP cloud to save the user-defined remote control data interface; after receiving the data, the TSP obtains the user's id and the List data structure in the app request according to the currently logged in user; and stores it in the user-defined remote control data table in the database. Display the list of customized control modules: When the user logs in to the app, the TSP vehicle control homepage interface is called; the TSP cloud obtains the corresponding control module and position order from the user-defined control module table based on the current ID. If the user does not customize it, the control module recommended by the platform data analysis is used by default.
[0104] As another example, after the user logs in to the car owner APP, the TSP cloud is called to obtain the homepage vehicle control list data: / public / vehicle-info / control / list; and the vehicle vin (vehicle frame number) is passed in. After receiving the request, the TSP cloud obtains the current vehicle binding account, as well as the vehicle region code, user age and other basic information data from the vehicle and user binding information table in the database based on the vehicle vin code. Obtain the preset storage rules configured by the TSP platform, and obtain the number of instructions stored under each rule from redis or the database according to the preset storage rules. According to the number of control modules that need to be displayed on the APP control interface, select the control modules corresponding to the instruction types with the highest storage quantity and return them to the APP.
[0105] The method for generating a vehicle control interface provided by an embodiment of the present invention obtains instruction information corresponding to control instructions sent by a target application within a historical time period. According to a preset storage rule, the key of a key-value pair in a target data structure is determined from the instruction information; the value of the key-value pair is determined according to time information and account information; the instruction information is stored in the target data structure according to the key-value pair; when receiving an acquisition instruction of the control interface sent by the target account, the number of control instructions of each instruction type under each preset storage rule in the target data structure is obtained; the display rule corresponding to the target account is obtained; the display priority of each instruction type under each preset storage rule is determined according to the number, and the number is positively correlated with the display priority; the control modules corresponding to multiple instruction types are determined from the target data structure according to the display rules and display priorities; and the control interface is generated according to the control module. In this way, the stability of the system can be improved, the statistical data analysis performance of the system can be improved, historical control instructions from different seasons, different regions and different time periods can be stored and counted, and the control module displayed in the control interface can be selected more accurately, thereby improving the user experience.
[0106] like Figure 5 The figure shows an interactive schematic diagram of a vehicle control method provided by an embodiment of the present invention. When a user opens the vehicle control app through a terminal and clicks to remotely control the vehicle, a control instruction is sent to the TSP cloud through the app. The TSP cloud stores the control instruction and instruction information for statistical purposes. The TPS cloud sends the control instruction to several intermediate services, so that the intermediate services send the control instruction to the TBOX vehicle and control the vehicle according to the control instruction. At the same time, the intermediate service returns the control result to the app and displays it to the user.
[0107] like Figure 6The figure shows an interactive schematic diagram of a method for generating a vehicle control interface provided by an embodiment of the present invention. When a user opens a vehicle control app through a terminal and needs to obtain the control interface to view the homepage remote control data, the user sends a control interface acquisition instruction to the TSP cloud through the app to call the remote control control interface, that is, initiates viewing the remote control call list. The TSP cloud pre-stores the user's use of control instructions during historical remote control, and determines whether the current user has customized the control module to generate the remote control list. If so, the user-defined control module is directly returned to the app and the control interface is generated. If not, the control module is selected based on the quantity analysis of each instruction type in the target data structure pre-stored in the TSP cloud and returned to the app to generate the control interface.
[0108] Figure 3 A schematic diagram of a vehicle control interface generation device provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the device specifically includes:
[0109] The first acquisition module 31 is used to acquire instruction information corresponding to a control instruction sent by a target application in a historical time period, wherein the target application is used to control the vehicle, and the instruction information includes: an instruction type;
[0110] A storage module 32, used to store the instruction information into a target data structure according to a preset storage rule, wherein the preset storage rule is related to the instruction information;
[0111] A second acquisition module 33 is used to acquire the number of control instructions of each instruction type under each preset storage rule in the target data structure when receiving the acquisition instruction of the control interface sent by the target account;
[0112] The generating module 34 is used to determine the control modules displayed in the control interface according to the quantity, so as to generate the control interface.
[0113] In a possible implementation, the determination module 35 is configured to determine the key of the key-value pair in the target data structure from the instruction information according to a preset storage rule;
[0114] Determine the value of the key-value pair according to the time information and the account information;
[0115] The storage module is specifically used to store the instruction information into the target data structure according to the key-value pair.
[0116] In a possible implementation, the determination module is specifically configured to determine the key in the key-value pair according to the instruction type of the control instruction and the preset time period when the preset storage rule is to store the control instruction according to the frequency of receiving the control instruction within the preset time period;
[0117] Or, when the preset storage rule is to store according to the season information, the key in the key-value pair is determined according to the instruction type of the control instruction and the season information;
[0118] Or, when the preset storage rule is to store according to the season information and the region information, the key in the key-value pair is determined according to the instruction type of the control instruction, the season information and the region information.
[0119] In a possible implementation, the storage module is specifically configured to construct multiple threads according to the number of configured connections in the database corresponding to the target data structure;
[0120] Dividing all the control instructions into a plurality of the threads, so as to count the number of control instructions of each instruction type through the threads according to the preset storage rule;
[0121] Using the instruction type as the key of the key-value pair, and using the number of control instructions corresponding to the instruction type as the value of the key-value pair;
[0122] The instruction information is stored in the target data structure according to the key-value pair.
[0123] In a possible implementation, the determination module is specifically configured to obtain a display rule corresponding to the target account, wherein the display rule corresponds to the preset storage rule;
[0124] Determine the display priority of each instruction type under each preset storage rule according to the quantity, wherein the quantity is positively correlated with the display priority;
[0125] Control modules corresponding to multiple instruction types are determined from the target data structure according to the display rule and the display priority.
[0126] In a possible implementation, the determination module is specifically configured to obtain vehicle model information corresponding to the target account;
[0127] Determining a target instruction type that matches the vehicle model information;
[0128] The control module displayed in the control interface is determined according to the number of control instructions corresponding to the target instruction type.
[0129] In a possible implementation, the generating module is specifically configured to determine a plurality of control modules according to the selection instruction when receiving a control module selection instruction sent by the target account;
[0130] Obtaining account attributes of the target account;
[0131] Determine a display template corresponding to the account attribute;
[0132] The control interface is generated by combining the plurality of control modules according to the display template.
[0133] The device provided in this embodiment can be as follows Figure 3 The device shown in FIG. 1 can perform the following steps: Figure 1-2 All the steps of the method in Figure 1-2 For details on the technical effects of the method shown, please refer to Figure 1-2 For the sake of brevity, the relevant description is not repeated here.
[0134] Figure 4 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention, Figure 4 The computer device 400 shown includes: at least one processor 401, a memory 402, at least one network interface 404 and other user interfaces 403. The various components in the computer device 400 are coupled together via a bus system 405. It is understood that the bus system 405 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 405 is not shown in FIG. Figure 4 Various buses are labeled as bus system 405 .
[0135] The user interface 403 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0136] It can be understood that the memory 402 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM). The memory 402 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0137] In some implementations, the memory 402 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 4021 and application programs 4022 .
[0138] The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 4022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 4022.
[0139] In the embodiment of the present invention, by calling the program or instruction stored in the memory 402, specifically, the program or instruction stored in the application 4022, the processor 401 is used to execute the method steps provided by each method embodiment, for example, including:
[0140] Acquire instruction information corresponding to a control instruction sent by a target application in a historical time period, the target application being used to control the vehicle, the instruction information including: an instruction type;
[0141] Storing the instruction information in a target data structure according to a preset storage rule, wherein the preset storage rule is related to the instruction information;
[0142] When receiving the acquisition instruction of the control interface sent by the target account, acquiring the number of control instructions of each instruction type under each preset storage rule in the target data structure;
[0143] The control modules displayed in the control interface are determined according to the quantity to generate the control interface.
[0144] The method disclosed in the above embodiment of the present invention can be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 401 or the instruction in the form of software. The above processor 401 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402 and completes the steps of the above method in combination with its hardware.
[0145] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0146] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0147] The computer device provided in this embodiment may be Figure 4 The computer device shown in , can execute Figure 1-2 All the steps of the method in Figure 1-2 For details on the technical effects of the method shown, please refer to Figure 1-2 For the sake of brevity, the relevant description is not repeated here.
[0148] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0149] When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned method for generating the vehicle control interface executed on the device side can be implemented.
[0150] The processor is used to execute a vehicle control interface generation program stored in the memory to implement the following steps of a vehicle control interface generation method executed on the device side:
[0151] Acquire instruction information corresponding to a control instruction sent by a target application in a historical time period, the target application being used to control the vehicle, the instruction information including: an instruction type;
[0152] Storing the instruction information in a target data structure according to a preset storage rule, wherein the preset storage rule is related to the instruction information;
[0153] When receiving the acquisition instruction of the control interface sent by the target account, acquiring the number of control instructions of each instruction type under each preset storage rule in the target data structure;
[0154] The control modules displayed in the control interface are determined according to the quantity to generate the control interface.
[0155] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0156] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0157] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for generating a vehicle control interface, characterized in that: include: Acquire instruction information corresponding to a control instruction sent by a target application in a historical time period, the target application being used to control the vehicle, the instruction information including: an instruction type; Storing the instruction information in a target data structure according to a preset storage rule, wherein the preset storage rule is related to the instruction information; When receiving the acquisition instruction of the control interface sent by the target account, acquiring the number of control instructions of each instruction type under each preset storage rule in the target data structure; The control modules displayed in the control interface are determined according to the quantity to generate the control interface.
2. The method according to claim 1, characterized in that The instruction information includes: time information, account information, region information and season information of sending the control instruction, and storing the instruction information into the target data structure according to a preset storage rule includes: Determine the key of the key-value pair in the target data structure from the instruction information according to a preset storage rule; Determine the value of the key-value pair according to the time information and the account information; The instruction information is stored in the target data structure according to the key-value pair.
3. The method according to claim 2, characterized in that The determining the key of the key-value pair in the target data structure from the instruction information according to a preset storage rule includes: When the preset storage rule is to store the control instructions according to the frequency of receiving the control instructions within a preset time period, determining the key in the key-value pair according to the instruction type of the control instruction and the preset time period; Or, when the preset storage rule is to store according to the season information, the key in the key-value pair is determined according to the instruction type of the control instruction and the season information; Or, when the preset storage rule is to store according to the season information and the region information, the key in the key-value pair is determined according to the instruction type of the control instruction, the season information and the region information.
4. The method according to claim 2, characterized in that: The step of storing the instruction information into a target data structure according to a preset storage rule includes: Building multiple threads according to the number of configured connections in the database corresponding to the target data structure; Dividing all the control instructions into a plurality of the threads, so as to count the number of control instructions of each instruction type through the threads according to the preset storage rule; Using the instruction type as the key of the key-value pair, and using the number of control instructions corresponding to the instruction type as the value of the key-value pair; The instruction information is stored in the target data structure according to the key-value pair.
5. The method according to claim 1, characterized in that The step of determining the control module displayed in the control interface according to the quantity includes: Obtaining a display rule corresponding to the target account, wherein the display rule corresponds to the preset storage rule; Determine the display priority of each instruction type under each preset storage rule according to the quantity, wherein the quantity is positively correlated with the display priority; Control modules corresponding to multiple instruction types are determined from the target data structure according to the display rule and the display priority.
6. The method according to claim 1, characterized in that The step of determining the control module displayed in the control interface according to the quantity includes: Obtaining vehicle model information corresponding to the target account; Determining a target instruction type that matches the vehicle model information; The control module displayed in the control interface is determined according to the number of control instructions corresponding to the target instruction type.
7. The method according to claim 1, characterized in that The method further comprises: When receiving a control module selection instruction sent by the target account, determining multiple control modules according to the selection instruction; Obtaining account attributes of the target account; Determine a display template corresponding to the account attribute; The control interface is generated by combining the plurality of control modules according to the display template.
8. A device for generating a vehicle control interface, characterized in that: include: A first acquisition module is used to acquire instruction information corresponding to a control instruction sent by a target application in a historical time period, wherein the target application is used to control the vehicle, and the instruction information includes: an instruction type; A storage module, used for storing the instruction information into a target data structure according to a preset storage rule, wherein the preset storage rule is related to the instruction information; A second acquisition module, configured to acquire the number of control instructions of each instruction type under each preset storage rule in the target data structure when receiving an acquisition instruction of the control interface sent by the target account; A generating module is used to determine the control module displayed in the control interface according to the quantity, so as to generate the control interface.
9. A computer device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a vehicle control interface generation program stored in the memory to implement the vehicle control interface generation method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method for generating a vehicle control interface as described in any one of claims 1 to 7.
