CN116208661A - Function configuration adaptation method, device, vehicle and storage medium - Google Patents

Function configuration adaptation method, device, vehicle and storage medium Download PDF

Info

Publication number
CN116208661A
CN116208661A CN202310165106.6A CN202310165106A CN116208661A CN 116208661 A CN116208661 A CN 116208661A CN 202310165106 A CN202310165106 A CN 202310165106A CN 116208661 A CN116208661 A CN 116208661A
Authority
CN
China
Prior art keywords
configuration
function
data
local
structured data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310165106.6A
Other languages
Chinese (zh)
Inventor
李世星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202310165106.6A priority Critical patent/CN116208661A/en
Publication of CN116208661A publication Critical patent/CN116208661A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • G06F16/86Mapping to a database
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/724098Interfacing with an on-board device of a vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a function configuration adaptation method, a device, a vehicle and a storage medium, wherein the method comprises the following steps: reading a local function configuration file and converting the local function configuration file into structured data; configuration data corresponding to the structured data is obtained from the server, and the data content of the structured data is updated by utilizing the configuration data; and storing the updated structured data to the local file by taking the vehicle identifier as a key so as to control the display or hiding of all the functional items under the current page based on the data in the local file. According to the embodiment of the application, the adaptation of the function configuration can be ensured by matching the structured data with the corresponding configuration data, and the display of the function item is prevented from being mismatched with the actual function, so that the problem of configuration failure is solved.

Description

Function configuration adaptation method, device, vehicle and storage medium
Technical Field
The present disclosure relates to the field of mobile application vehicle type function configuration technologies, and in particular, to a function configuration adaptation method, a device, a vehicle, and a storage medium.
Background
The development of the current automobile industry is rapid, the intelligent, electric and networking of automobiles become the core of competition of various manufacturers, various functions such as digital keys, automatic parking, 360 panorama and the like gradually fall to the ground on the automobile, and smart phones are popular and become an indispensable tool for daily life of everyone. Vehicle information is checked at any time through a mobile phone APP (application program), even an entity key is replaced, the vehicle is universally required to be controlled through mobile phone operation, the combination of the mobile phone and an automobile is more and more compact, and the intelligent and networking of the automobile are inevitably independent of the cooperation of the mobile phone APP. The current vehicle types are numerous in brands, the functions of high, medium and low configuration are different, new functional layers are endless, and APP is required to be flexibly displayed according to the different vehicle types.
In the related art, flexible display of function configuration by an APP according to different vehicle types can be realized through function configuration, configuration can be carried out through a cloud, JSON configuration data are generated and sent to a mobile phone, the APP analyzes a character string, the name of a current page is used as the Key correspondence of a JSON object to obtain all the function configuration under the current page, and the value of a specific function configuration item is used for determining the function display or hiding of the current page of the APP.
However, in the related art, it is required to ensure that the correspondence between the page and the function item remains stable, if the inclusion relationship between them changes, the configuration fails, and the APP technology is often reconfigured, so that the stable relationship is often damaged, the problem of configuration failure frequently occurs, the configuration failure means that the vehicle type does not have a function, and the function is displayed on the mobile phone or the function mobile phone that the vehicle type has is not displayed, so that the use of the user is affected, and the improvement is required.
Disclosure of Invention
The application provides a function configuration adaptation method, a device, a vehicle and a storage medium, which are used for solving the technical problems that the corresponding relation between pages and function items is required to be ensured to be stable, configuration failure is easy to occur, and the use of a user is influenced.
An embodiment of a first aspect of the present application provides a function configuration adaptation method, including the following steps: reading a local function configuration file and converting the local function configuration file into structured data; configuration data corresponding to the structured data are obtained from a server, and the data content of the structured data is updated by utilizing the configuration data; and storing the updated structured data to a local file by taking the vehicle identifier as a key so as to control the display or hiding of all the functional items under the current page based on the data in the local file.
According to the technical means, the embodiment of the application can ensure the adaptation of the functional configuration by matching the structural data with the corresponding configuration data, so that the problem of configuration failure is solved.
Optionally, in an embodiment of the present application, the obtaining, from a server, configuration data corresponding to the structured data includes: acquiring configuration data of a current vehicle; analyzing the configuration data of the current vehicle, and searching the matched key in the structured data to obtain the configuration data corresponding to the structured data.
According to the technical means, the configuration data corresponding to the structured data can be obtained by searching the matched key in the structured data.
Optionally, in an embodiment of the present application, the controlling, based on the data in the local file, displaying or hiding all function items under the current page includes: traversing all the function items under the current page; based on the data in the local file, acquiring a configuration value of the function item by taking the identification name of the function item as a key; and controlling the display or hiding of all the function items under the current page according to the configuration value.
According to the technical means, the embodiment of the application can realize the display or hiding of the function items under the current page based on the configuration items, and avoid the mismatch between the display of the function items and the actual functions.
Optionally, in an embodiment of the present application, the local function configuration file includes a function page, a page code, page description information and/or a function item, a function item code, a function item description information.
Optionally, in one embodiment of the present application, before reading the local function configuration file, the method further includes: and acquiring newly-added function item information, and adding the newly-added function item information into a preset database.
According to the technical means, the embodiment of the application can realize the update of the local function configuration file.
An embodiment of a second aspect of the present application provides a function configuration adapting apparatus, including: the reading module is used for reading the local function configuration file and converting the local function configuration file into structured data; the updating module is used for acquiring configuration data corresponding to the structured data from the server and updating the data content of the structured data by utilizing the configuration data; and the control module is used for storing the updated structured data to a local file by taking the vehicle identifier as a key so as to control the display or hiding of all the function items under the current page based on the data in the local file.
Optionally, in one embodiment of the present application, the updating module includes: a first acquisition unit configured to acquire configuration data of a current vehicle; and the matching unit is used for analyzing the configuration data of the current vehicle, searching matched keys in the structured data, and obtaining the configuration data corresponding to the structured data.
Optionally, in one embodiment of the present application, the control module includes: the traversing unit is used for traversing all the function items under the current page; the second acquisition unit is used for acquiring the configuration value of the function item by taking the identification name of the function item as a key based on the data in the local file; and the control unit is used for controlling the display or hiding of all the function items under the current page according to the configuration value.
Optionally, in an embodiment of the present application, the local function configuration file includes a function page, a page code, page description information and/or a function item, a function item code, a function item description information.
Optionally, in one embodiment of the present application, further includes: the editing unit is used for acquiring the information of the newly added function item and adding the information of the newly added function item into a preset database.
An embodiment of a third aspect of the present application provides a vehicle, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the function configuration adaptation method as described in the above embodiments.
A fourth aspect of the present application provides a computer readable storage medium storing a computer program which when executed by a processor implements a functional configuration adaptation method as above.
The beneficial effects of the embodiment of the application are that:
(1) According to the embodiment of the application, the adaptation of the functional configuration can be ensured by matching the structural data with the corresponding configuration data, so that the configuration failure problem is solved;
(2) The embodiment of the application can realize the display or hiding of the function items under the current page based on the configuration items, avoid the mismatch between the display of the function items and the actual functions, and avoid influencing the use experience of users.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart of a method of functional configuration adaptation provided in accordance with an embodiment of the present application;
FIG. 2 is a schematic diagram of a functional configuration adaptation method according to one embodiment of the present application;
FIG. 3 is a flow chart of a functional configuration adaptation method according to one embodiment of the present application;
FIG. 4 is a schematic diagram of an application principle of a function configuration adaptation method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a functional configuration adapting device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a vehicle according to an embodiment of the present application.
The system comprises a 1-APP, a 2-local configuration file, a 3-UI, a 4-configuration control system, a 5-configuration conversion system, a 6-TSP, a 7-configuration management system, an 8-AppServer, a 9-database and a 10-function configuration adaptation device; 100 acquisition module, 200-update module, 300-control module.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present application and are not to be construed as limiting the present application.
The following describes a functional configuration adapting method, an apparatus, a vehicle, and a storage medium according to an embodiment of the present application with reference to the accompanying drawings. Aiming at the technical problems that the related technology mentioned in the background technology center needs to ensure the stability of the corresponding relation between pages and function items, configuration failure is easy to occur, and the use of users is influenced, the application provides a function configuration adaptation method, in which a local function configuration file is read and converted into structured data; configuration data corresponding to the structured data is obtained from the server, and the data content of the structured data is updated by utilizing the configuration data; and storing the updated structured data to a local file by taking the vehicle identifier as a key, so as to control the display or hiding of all the function items under the current page based on the data in the local file, and ensuring the adaptation of the function configuration by matching the structured data with the corresponding configuration data, and avoiding the mismatch between the display of the function items and the actual functions, thereby solving the problem of configuration failure. Therefore, the technical problems that the corresponding relation between the page and the function item is required to be ensured to be stable, configuration failure is easy to occur, and the use of a user is influenced in the related technology are solved.
Specifically, fig. 1 is a schematic flow chart of a functional configuration adaptation method provided in an embodiment of the present application.
As shown in fig. 1, the function configuration adaptation method includes the steps of:
in step S101, the local function configuration file is read, and the local function configuration file is converted into structured data.
In the actual execution process, the embodiment of the application can read the local function configuration file and analyze the local function configuration file in a SAX mode, wherein the SAX mode can support reading the file in sequence and generating corresponding events, and the reading is fast and does not occupy the memory.
It should be noted that the structured data only builds the data model at this time, and the data is still empty, and the default value is 0.
Optionally, in an embodiment of the present application, the local function configuration file includes a function page, a page code, page description information and/or function item, a function item code, a function item description information.
As a possible implementation manner, the local configuration file in the embodiment of the application can be in a file format in an XML mode, and the file in the format is strong in readability and convenient to understand and is not easy to make mistakes in operation.
The local configuration file in the XML mode can comprise a function page, a page code and page description information; function item, function item code, function item description information. Wherein a function page may contain a plurality of function items, such inclusion relationship mapping the inclusion relationship between the page and the function of the current application.
Optionally, in one embodiment of the present application, before reading the local function configuration file, the method further includes: and acquiring newly-added function item information, and adding the newly-added function item information into a preset database.
In some embodiments, before the local function configuration file is read, the embodiment of the application may obtain newly-added application information configured by a manufacturer in the cloud end, and combine functions to be configured by an application to newly-added function items, where the function items include function sub-items, and a relationship between the function sub-items and a relationship between a function page of the application is in one-to-one correspondence to obtain newly-added function item information.
It should be noted that, when the vendor configures the newly added application information in the cloud, the vendor may select a function to be displayed, convert the configuration result into configuration data in JSON format, and store the configuration data in a preset database, where the preset database may be a cloud database such as an AppServer.
According to the embodiment of the application, when the function is newly added and modified, only the local configuration file is modified, and influence on other applications is not required to be considered, so that the probability and risk of errors are reduced.
In step S102, configuration data corresponding to the structured data is acquired from the server, and the data content of the structured data is updated using the configuration data.
In the actual execution process, the embodiment of the application can acquire the configuration data corresponding to the structured data, namely the configuration data newly added by a manufacturer, from a server, such as a cloud end or an AppServer, so that the data content of the structured data is updated by using the configuration data to realize the data updating matched with the configuration function, and the adaptation of the function configuration is ensured, thereby solving the problem of configuration failure.
Optionally, in one embodiment of the present application, obtaining configuration data corresponding to the structured data from a server includes: acquiring configuration data of a current vehicle; analyzing the configuration data of the current vehicle, and searching the matched key in the structured data to obtain the configuration data corresponding to the structured data.
For example, the embodiment of the application may request to obtain the configuration data of the current vehicle from the server by using the vehicle identifier as a parameter, parse the corresponding page and item, find a matching key in the structured data, and update the structured data content on the matching.
In step S103, the updated structured data is stored in the local file with the vehicle identifier as a key, so as to control the display or hiding of all the function items in the current page based on the data in the local file.
In the actual execution process, the embodiment of the application can store the new data into the memory and/or the local after all the analysis is completed to form a new local configuration file, and control the display or hiding of all the function items under the current page based on the data in the local file, wherein the memory is stored for conveniently and quickly searching, the local is stored for being capable of being normally displayed under the condition of no network, and therefore partial functions can be normally used under the offline condition.
Optionally, in one embodiment of the present application, controlling the display or hiding of all function items under the current page based on the data in the local file includes: traversing all functional items under the current page; based on the data in the local file, acquiring the configuration value of the function item by taking the identification name of the function item as a key; and controlling the display or hiding of all the functional items under the current page according to the configuration value.
In some embodiments, the embodiments of the present application may traverse all the function items under the current page according to the data in the local file, and acquire the configuration value of the current function item with the identification name of the function item as a key, so as to control the display and hiding of the function item, so as to achieve the function configuration effect.
When the vehicle is switched, the embodiment of the application can repeat the steps to reconstruct the function configuration data matched with the current vehicle, and adjust the display of the current page according to the newly constructed configuration data.
The working principle of the functional configuration adaptation method of the embodiment of the present application will be described in detail with reference to fig. 2 to 4.
As shown in fig. 2, taking TSP as a server and APP as a local example, the embodiment of the present application may include: APP1, local profile 2, UI3, configuration control system 4, configuration conversion system 5, TSP6, configuration management system 7, appServer8, and database 9.
Wherein, APP1 may include: a local configuration file 2, a UI3, a configuration control system 4 and a configuration conversion system 5; the TSP6 may include a configuration management system 7, an AppServer8, and a database 9.
In an actual implementation process, as shown in fig. 3, an embodiment of the present application may include the following steps:
step S301: in the embodiment of the present application, in the configuration management system 7, the configuration of the vendor added in the cloud may be obtained, in the application management, the application is newly added, and the function required to be configured by the application is combined, and the function item is newly added, where the function item may include a function sub-item, and the relationship between the function sub-item and the function page of the application corresponds to the relationship between the function items one by one. It should be noted that, when the vendor configures the new application information in the cloud, the vendor may select a function to be displayed, convert the configuration result into configuration data in JSON format, and store the configuration data in the database 9.
Step S302: according to the embodiment of the application, the current APP1 version function editing local function configuration file can be obtained, wherein the configuration file can be in a file format in an XML mode, the file in the format is strong in readability and convenient to understand, and errors are not easy to occur in operation. The XML configuration file may contain function pages, page codes, page description information, function items, function item codes, and function item description information. Wherein the function page may contain a plurality of function items, such inclusion relationship mapping the inclusion relationship between the page of the current application and the function. In the actual execution process, the embodiment of the application can realize the new function and the modified function by modifying the local configuration file without considering the influence on other applications, thereby reducing the probability and risk of errors.
Step S303: APP1 reads and analyzes the local function configuration file and converts the local function configuration file into structured data. According to the embodiment of the application, the SAX mode can be adopted to analyze the file, the file is supported to be read in sequence and corresponding events are generated, the file is read quickly and does not occupy the memory, and the structured data is only established as a data model, the data is empty, and the default value is set to be 0.
Step S304: APP1 uses the vehicle identification as a parameter to request to acquire the configuration data of the current vehicle from AppServer8, namely, the configuration data updated by manufacturers, analyzes the corresponding pages and items, searches the matched keys in the structured data, and updates the structured data content when the keys are matched.
According to the method and the device for displaying the function items, after all analysis is completed, the new data can be stored in the memory and/or the local area to form a new local configuration file, and the display or hiding of all the function items under the current page is controlled based on the data in the local file, wherein the memory is stored for conveniently and quickly searching, the local area is stored so that the function items can be still normally displayed under the condition that no network exists, and therefore partial functions can still be normally used under the offline condition.
Step S305: as shown in fig. 4, in practical application, when a user clicks a certain page, the embodiment of the application may request the configuration conversion system 5 for the previous configuration data with the vehicle identifier, i.e. the cartid, as a key, and when no configuration data is locally available, the embodiment of the application may re-request JSON configuration update structured data and save the data, and return the page configuration data to the configuration control system 4.
Step S306: the configuration control system 4 can traverse all the function items under the current page according to the current configuration data, acquire the configuration value of the current function item by taking the identification name of the function item as a key, and control the display and the hiding of the function item, thereby achieving the function configuration effect.
Step S307: when switching vehicles, the embodiment of the present application may repeat step S304 and step S305 to reconstruct function configuration data matched with the current vehicle, and adjust the display of the current page through the configuration control system 4 according to the newly constructed configuration data.
According to the function configuration adaptation method provided by the embodiment of the application, a local function configuration file is read, and the local function configuration file is converted into structured data; configuration data corresponding to the structured data is obtained from the server, and the data content of the structured data is updated by utilizing the configuration data; and storing the updated structured data to a local file by taking the vehicle identifier as a key, so as to control the display or hiding of all the function items under the current page based on the data in the local file, and ensuring the adaptation of the function configuration by matching the structured data with the corresponding configuration data, and avoiding the mismatch between the display of the function items and the actual functions, thereby solving the problem of configuration failure. Therefore, the technical problems that the corresponding relation between the page and the function item is required to be ensured to be stable, configuration failure is easy to occur, and the use of a user is influenced in the related technology are solved.
Next, a functional configuration adapting apparatus according to an embodiment of the present application will be described with reference to the accompanying drawings.
Fig. 5 is a block schematic diagram of a functional configuration adapting device according to an embodiment of the present application.
As shown in fig. 5, the functional configuration adapting apparatus 10 includes: a reading module 100, an updating module 200 and a control module 300.
Specifically, the reading module 100 is configured to read the local function configuration file and convert the local function configuration file into the structured data.
And the updating module 200 is used for acquiring the configuration data corresponding to the structured data from the server and updating the data content of the structured data by using the configuration data.
The control module 300 is configured to store the updated structured data in the local file with the vehicle identifier as a key, so as to control display or hiding of all the functional items in the current page based on the data in the local file.
Optionally, in one embodiment of the present application, the update module 200 includes: a first acquisition unit and a matching unit.
The first acquisition unit is used for acquiring configuration data of the current vehicle.
And the matching unit is used for analyzing the configuration data of the current vehicle, searching the matched key in the structured data, and obtaining the configuration data corresponding to the structured data.
Optionally, in one embodiment of the present application, the control module 300 includes: the device comprises a traversing unit, a second acquisition unit and a control unit.
The traversal unit is used for traversing all the function items under the current page.
And the second acquisition unit is used for acquiring the configuration value of the function item by taking the identification name of the function item as a key based on the data in the local file.
And the control unit is used for controlling the display or hiding of all the function items under the current page according to the configuration value.
Optionally, in an embodiment of the present application, the local function configuration file includes a function page, a page code, page description information and/or function item, a function item code, a function item description information.
Optionally, in an embodiment of the present application, the functional configuration adapting apparatus 10 further comprises: an editing unit.
The editing unit is used for acquiring the information of the newly added function item and adding the information of the newly added function item into the preset database.
It should be noted that the foregoing explanation of the embodiment of the function configuration adapting method is also applicable to the function configuration adapting device of this embodiment, and will not be repeated herein.
According to the function configuration adapting device provided by the embodiment of the application, the local function configuration file is read, and the local function configuration file is converted into structured data; configuration data corresponding to the structured data is obtained from the server, and the data content of the structured data is updated by utilizing the configuration data; and storing the updated structured data to a local file by taking the vehicle identifier as a key, so as to control the display or hiding of all the function items under the current page based on the data in the local file, and ensuring the adaptation of the function configuration by matching the structured data with the corresponding configuration data, and avoiding the mismatch between the display of the function items and the actual functions, thereby solving the problem of configuration failure. Therefore, the technical problems that the corresponding relation between the page and the function item is required to be ensured to be stable, configuration failure is easy to occur, and the use of a user is influenced in the related technology are solved.
Fig. 6 is a schematic structural diagram of a vehicle according to an embodiment of the present application. The vehicle may include:
a memory 601, a processor 602, and a computer program stored on the memory 601 and executable on the processor 602.
The processor 602 implements the function configuration adaptation method provided in the above-described embodiment when executing a program.
Further, the vehicle further includes:
a communication interface 603 for communication between the memory 601 and the processor 602.
A memory 601 for storing a computer program executable on the processor 602.
The memory 601 may comprise a high-speed RAM memory or may further comprise a non-volatile memory (non-volatile memory), such as at least one disk memory.
If the memory 601, the processor 602, and the communication interface 603 are implemented independently, the communication interface 603, the memory 601, and the processor 602 may be connected to each other through a bus and perform communication with each other. The bus may be an industry standard architecture (Industry Standard Architecture, abbreviated ISA) bus, an external device interconnect (Peripheral Component, abbreviated PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 601, the processor 602, and the communication interface 603 are integrated on a chip, the memory 601, the processor 602, and the communication interface 603 may perform communication with each other through internal interfaces.
The processor 602 may be a central processing unit (Central Processing Unit, abbreviated as CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more integrated circuits configured to implement embodiments of the present application.
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the function configuration adaptation method as above.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "N" is at least two, such as two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order from that shown or discussed, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or N wires, a portable computer cartridge (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. Although embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.

Claims (10)

1. A method of functional configuration adaptation, comprising the steps of:
reading a local function configuration file and converting the local function configuration file into structured data;
configuration data corresponding to the structured data are obtained from a server, and the data content of the structured data is updated by utilizing the configuration data; and
and storing the updated structured data to a local file by taking the vehicle identifier as a key so as to control the display or hiding of all the functional items under the current page based on the data in the local file.
2. The method according to claim 1, wherein the obtaining, from a server, configuration data corresponding to the structured data comprises:
acquiring configuration data of a current vehicle;
analyzing the configuration data of the current vehicle, and searching the matched key in the structured data to obtain the configuration data corresponding to the structured data.
3. The method according to claim 1, wherein controlling the display or hiding of all function items under a current page based on the data in the local file comprises:
traversing all the function items under the current page;
acquiring a configuration value of the function item according to the identification of the function item based on the data in the local file;
and controlling the display or hiding of all the function items under the current page according to the configuration value.
4. The method according to claim 1, wherein the local function configuration file comprises a function page, a page code, page description information and/or function item, a function item code, a function item description information.
5. The method of claim 1, further comprising, prior to reading the local function profile:
and acquiring newly-added function item information, and adding the newly-added function item information into a preset database.
6. A function configuration adaptation apparatus, comprising:
the reading module is used for reading the local function configuration file and converting the local function configuration file into structured data;
the updating module is used for acquiring configuration data corresponding to the structured data from the server and updating the data content of the structured data by utilizing the configuration data; and
and the control module is used for storing the updated structured data to a local file by taking the vehicle identifier as a key so as to control the display or hiding of all the functional items under the current page based on the data in the local file.
7. The apparatus of claim 6, wherein the update module comprises:
a first acquisition unit configured to acquire configuration data of a current vehicle;
and the matching unit is used for analyzing the configuration data of the current vehicle, searching matched keys in the structured data, and obtaining the configuration data corresponding to the structured data.
8. The apparatus of claim 6, wherein the control module comprises:
the traversing unit is used for traversing all the function items under the current page;
the second acquisition unit is used for acquiring the configuration value of the function item by taking the identification name of the function item as a key based on the data in the local file;
and the control unit is used for controlling the display or hiding of all the function items under the current page according to the configuration value.
9. A vehicle, characterized by comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the function configuration adaptation method of any one of claims 1-5.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the program is executed by a processor for implementing a functional configuration adaptation method according to any of claims 1-5.
CN202310165106.6A 2023-02-22 2023-02-22 Function configuration adaptation method, device, vehicle and storage medium Pending CN116208661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310165106.6A CN116208661A (en) 2023-02-22 2023-02-22 Function configuration adaptation method, device, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310165106.6A CN116208661A (en) 2023-02-22 2023-02-22 Function configuration adaptation method, device, vehicle and storage medium

Publications (1)

Publication Number Publication Date
CN116208661A true CN116208661A (en) 2023-06-02

Family

ID=86514383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310165106.6A Pending CN116208661A (en) 2023-02-22 2023-02-22 Function configuration adaptation method, device, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN116208661A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978196A (en) * 2015-06-26 2015-10-14 深圳Tcl数字技术有限公司 Setting function item display method and apparatus
CN105207863A (en) * 2015-08-31 2015-12-30 青岛海尔智能家电科技有限公司 Method for controlling heterogeneous intelligent home electric appliances, cloud platform and home gateway
CN109032722A (en) * 2018-06-27 2018-12-18 广州视源电子科技股份有限公司 Update method, device and equipment, the medium of the display effect of UI component
CN112181419A (en) * 2020-12-03 2021-01-05 成都极米科技股份有限公司 Interface generation method and device and storage medium
CN112882772A (en) * 2021-03-24 2021-06-01 腾讯科技(深圳)有限公司 Configuration method of application interface of mobile terminal, mobile terminal and storage medium
CN113703814A (en) * 2021-10-29 2021-11-26 江西五十铃汽车有限公司 Configuration method, system, storage medium and configuration equipment of Internet of vehicles APP

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978196A (en) * 2015-06-26 2015-10-14 深圳Tcl数字技术有限公司 Setting function item display method and apparatus
CN105207863A (en) * 2015-08-31 2015-12-30 青岛海尔智能家电科技有限公司 Method for controlling heterogeneous intelligent home electric appliances, cloud platform and home gateway
CN109032722A (en) * 2018-06-27 2018-12-18 广州视源电子科技股份有限公司 Update method, device and equipment, the medium of the display effect of UI component
CN112181419A (en) * 2020-12-03 2021-01-05 成都极米科技股份有限公司 Interface generation method and device and storage medium
CN112882772A (en) * 2021-03-24 2021-06-01 腾讯科技(深圳)有限公司 Configuration method of application interface of mobile terminal, mobile terminal and storage medium
CN113703814A (en) * 2021-10-29 2021-11-26 江西五十铃汽车有限公司 Configuration method, system, storage medium and configuration equipment of Internet of vehicles APP

Similar Documents

Publication Publication Date Title
CN112714134B (en) CAN message analysis method, adaptation method, device, equipment and medium
CN109814524B (en) Vehicle diagnosis method, device and system
CN110673576B (en) Automatic test method and device, vehicle and storage medium
CN112363984B (en) Method and device for generating in-vehicle security rule file
US20190332398A1 (en) Interface switching method and device, and computer readable storage medium
CN112083709B (en) Vehicle diagnosis method, system, terminal device and storage medium
CN111460232A (en) Functional module searching method, device, terminal and computer readable storage medium
CN113111227A (en) Data processing method and device, electronic equipment and storage medium
CN113835729A (en) Upgrading method and device, terminal equipment and computer readable storage medium
CN113064556A (en) BIOS data storage method, device, equipment and storage medium
CN112732982A (en) Fault code storage method and device, terminal equipment and readable storage medium
CN116208661A (en) Function configuration adaptation method, device, vehicle and storage medium
CN111352641A (en) Method and device for automatic packaging by batch processing, computer equipment and storage medium
CN116028062A (en) Target code generation method, NPU instruction display method and device
CN107357853B (en) Method and device for operating REDIS console and computer system
CN112445816B (en) Vehicle diagnosis data reference method, device, terminal equipment and storage medium
CN114756585A (en) Vehicle data acquisition method and device, electronic equipment and storage medium
CN115114321A (en) Dynamic query method and system
CN111813754A (en) File processing method, file processing device, diagnostic equipment and electronic equipment
CN106681914B (en) Television picture quality debugging method and device
CN110309000B (en) Application update prompting method and terminal equipment
CN112104766B (en) Diagnostic protocol reconstruction method, device, terminal equipment and storage medium
CN112306040A (en) Vehicle detection method, device, equipment and server
CN111142965A (en) Language configuration method and device, electronic equipment and storage medium
CN116594960B (en) Descriptive file format conversion method, descriptive file format conversion device, computer equipment and storage medium

Legal Events

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