CN110851206A - Vehicle type configuration file expanding method, device, equipment and readable storage medium - Google Patents

Vehicle type configuration file expanding method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN110851206A
CN110851206A CN201911101875.XA CN201911101875A CN110851206A CN 110851206 A CN110851206 A CN 110851206A CN 201911101875 A CN201911101875 A CN 201911101875A CN 110851206 A CN110851206 A CN 110851206A
Authority
CN
China
Prior art keywords
vehicle type
configuration file
file
vehicle
target
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
CN201911101875.XA
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201911101875.XA priority Critical patent/CN110851206A/en
Publication of CN110851206A publication Critical patent/CN110851206A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a vehicle type configuration file expanding method, device and equipment and a readable storage medium. The method disclosed by the application comprises the following steps: responding to an operation instruction input by a user, updating vehicle type information in the configuration file and identification information corresponding to the vehicle type information to obtain an updated configuration file; vehicle type icons corresponding to the vehicle type information in the vehicle type files are synchronously updated to obtain updated vehicle type files; visually displaying all vehicle type icons in the vehicle type file on a target page according to the updated configuration file and the updated vehicle type file; the operation instruction comprises the following steps: add instructions, delete instructions, and modify instructions. According to the method and the device, the updating of the diagnosis application program can be realized only by updating the configuration file and the vehicle type file without modifying or newly adding display logic, so that the flexibility and the operability of the updating of the diagnosis application program are improved. The vehicle type configuration file expanding device, the equipment and the readable storage medium have the technical effects.

Description

Vehicle type configuration file expanding method, device, equipment and readable storage medium
Technical Field
The application relates to the technical field of vehicle fault diagnosis, in particular to a vehicle type configuration file expanding method, device, equipment and a readable storage medium.
Background
At present, in order to match the newly added models of automobile manufacturers, the diagnostic application for automobile fault diagnosis needs to be updated accordingly. The diagnostic application generally includes a display program and a diagnostic program.
In the prior art, when a display program of a diagnosis application program is updated, a corresponding display program needs to be written for a newly added vehicle model, the newly written display program includes contents such as a vehicle model icon and vehicle model information, and then the newly written display program is added to a resource file of a code project. Therefore, when the diagnosis application program is started, the display programs of all the vehicle types in the resource file can be called, and the display of the vehicle type icons is completed.
The method has the disadvantages that more and more vehicle types are required, more and more display programs are required in the resource file, the code quantity is increased, and the compiling efficiency of the code engineering is influenced by the increased code quantity; moreover, each additional vehicle model needs to be added with a corresponding display program, the development workload is large, and the code redundancy rate is high.
Therefore, how to quickly update the diagnostic application is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, a device and a readable storage medium for expanding a vehicle model configuration file, so as to achieve a quick update of a diagnostic application. The specific scheme is as follows:
in a first aspect, the present application provides a vehicle type configuration file expansion method, including:
responding to an operation instruction input by a user, updating vehicle type information in the configuration file and identification information corresponding to the vehicle type information to obtain an updated configuration file;
vehicle type icons corresponding to the vehicle type information in the vehicle type files are synchronously updated to obtain updated vehicle type files;
visually displaying all vehicle type icons in the vehicle type file on a target page according to the updated configuration file and the updated vehicle type file;
wherein, the operation instruction comprises: the vehicle type information processing method comprises the steps of adding a vehicle type information instruction, deleting the vehicle type information instruction and modifying the vehicle type information instruction; the configuration file is used for recording vehicle type information and identification information corresponding to each vehicle type information; the vehicle type file is used for recording vehicle type icons corresponding to each vehicle type information.
Preferably, visually displaying all vehicle type icons in the vehicle type file on the target page according to the update configuration file and the update vehicle type file, including:
and reading all vehicle type information in the configuration file, inquiring a vehicle type icon corresponding to each vehicle type information in a vehicle type folder, and loading and displaying all vehicle type icons on a target page.
Preferably, all vehicle type icons are loaded and displayed on the target page, including:
and respectively adjusting each vehicle type icon according to a preset proportion, and displaying each adjusted vehicle type icon on a target page according to an N multiplied by M arrangement mode.
Preferably, displaying each adjusted vehicle type icon on the target page according to an N × M arrangement manner includes:
dividing the target page into N multiplied by M grids, and filling each adjusted vehicle type icon into each grid; the grids correspond to the vehicle type icons one to one.
Preferably, after the target page visually displays all vehicle type icons in the vehicle type file according to the update configuration file and the update vehicle type file, the method further includes:
receiving a first click instruction of a user on any vehicle type icon of a target page;
analyzing the first click instruction to obtain target vehicle type information corresponding to a target vehicle type icon clicked by a user at present;
target identification information corresponding to the target vehicle type information is inquired in the configuration file;
the target identification information is transmitted to the diagnostic program so that the diagnostic program initiates execution.
Preferably, the method further comprises the following steps:
if the target vehicle type icon comprises the sub vehicle type list, displaying the sub vehicle type list when a first click instruction is received;
if a second click instruction of the user to any one sub-vehicle type in the sub-vehicle type list is received, analyzing the second click instruction to obtain sub-vehicle type information corresponding to a target sub-vehicle type clicked by the user currently;
inquiring target identification information corresponding to the target vehicle type information and sub-identification information corresponding to the sub-vehicle type information in the configuration file;
splicing the target identification information and the sub-identification information to obtain spliced identification information;
and transmitting the splicing identification information to a diagnostic program so that the diagnostic program starts to execute.
In a second aspect, the present application provides a device is extended to a vehicle type configuration file, including:
the first updating module is used for responding to an operation instruction input by a user, updating the vehicle type information in the configuration file and the identification information corresponding to the vehicle type information to obtain an updated configuration file;
the second updating module is used for synchronously updating the vehicle type icons corresponding to the vehicle type information in the vehicle type file to obtain an updated vehicle type file;
the visualization module is used for visually displaying all vehicle type icons in the vehicle type file on the target page according to the updated configuration file and the updated vehicle type file;
wherein, the operation instruction comprises: the vehicle type information processing method comprises the steps of adding a vehicle type information instruction, deleting the vehicle type information instruction and modifying the vehicle type information instruction; the configuration file is used for recording vehicle type information and identification information corresponding to each vehicle type information; the vehicle type file is used for recording vehicle type icons corresponding to each vehicle type information.
Preferably, the visualization module is specifically configured to:
and reading all vehicle type information in the configuration file, inquiring a vehicle type icon corresponding to each vehicle type information in a vehicle type folder, and loading and displaying all vehicle type icons on a target page.
Preferably, the visualization module is specifically configured to:
and respectively adjusting each vehicle type icon according to a preset proportion, and displaying each adjusted vehicle type icon on a target page according to an N multiplied by M arrangement mode.
Preferably, the visualization module is specifically configured to:
dividing the target page into N multiplied by M grids, and filling each adjusted vehicle type icon into each grid; the grids correspond to the vehicle type icons one to one.
Preferably, the method further comprises the following steps:
the receiving module is used for receiving a first click instruction of a user on any vehicle type icon of the target page;
the first analysis module is used for analyzing the first click command to obtain target vehicle type information corresponding to a target vehicle type icon clicked by a user at present;
the first query module is used for querying target identification information corresponding to the target vehicle type information in the configuration file;
and the first transmission module is used for transmitting the target identification information to the diagnostic program so that the diagnostic program starts to execute.
Preferably, the method further comprises the following steps:
the display module is used for displaying the sub-vehicle type list when receiving a first click instruction if the target vehicle type icon comprises the sub-vehicle type list;
the second analysis module is used for analyzing a second click instruction if the second click instruction of the user on any one sub-vehicle type in the sub-vehicle type list is received, and obtaining sub-vehicle type information corresponding to a target sub-vehicle type clicked by the user currently;
the second query module is used for querying target identification information corresponding to the target vehicle type information and sub-identification information corresponding to the sub-vehicle type information in the configuration file;
the splicing module is used for splicing the target identification information and the sub-identification information to obtain splicing identification information;
and the second transmission module is used for transmitting the splicing identification information to the diagnostic program so as to start and execute the diagnostic program.
In a third aspect, the present application provides a vehicle type configuration file expansion device, including:
a memory for storing a computer program;
and the processor is used for executing a computer program to realize the vehicle model configuration file expanding method disclosed in the foregoing.
In a fourth aspect, the present application provides a readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the vehicle model profile expansion method disclosed in the foregoing.
According to the scheme, the vehicle type configuration file expanding method comprises the following steps: responding to an operation instruction input by a user, updating vehicle type information in the configuration file and identification information corresponding to the vehicle type information to obtain an updated configuration file; vehicle type icons corresponding to the vehicle type information in the vehicle type files are synchronously updated to obtain updated vehicle type files; visually displaying all vehicle type icons in the vehicle type file on a target page according to the updated configuration file and the updated vehicle type file; wherein, the operation instruction comprises: the vehicle type information processing method comprises the steps of adding a vehicle type information instruction, deleting the vehicle type information instruction and modifying the vehicle type information instruction; the configuration file is used for recording vehicle type information and identification information corresponding to each vehicle type information; the vehicle type file is used for recording vehicle type icons corresponding to each vehicle type information.
Therefore, when the diagnosis application program is updated according to the scheme provided by the application, the corresponding display program does not need to be compiled for the newly added vehicle type, the vehicle type information of the newly added vehicle type only needs to be updated to the configuration file, the vehicle type icon of the newly added vehicle type is updated to the vehicle type file at the same time, and then all the vehicle type icons can be visually displayed on the target page according to the updated configuration file and the vehicle type file. That is, after the configuration file and the vehicle model file are updated, the original display logic or the newly added display logic in the diagnosis application program does not need to be modified. Meanwhile, the configuration file and the vehicle type file can be added, deleted and modified, namely, the related information recorded in the configuration file and the vehicle type file can be flexibly adjusted, so that the flexibility and operability of updating the diagnosis application program are improved, and the rapid updating of the diagnosis application program can be realized.
Correspondingly, the vehicle type configuration file expanding device, the equipment and the readable storage medium have the technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a vehicle type configuration file expansion method disclosed in the present application;
FIG. 2 is a detailed flowchart of step S103 in FIG. 1;
FIG. 3 is a flow chart of a user operation response method disclosed herein;
FIG. 4 is a flow chart of another user action response method disclosed herein;
FIG. 5 is a schematic illustration of the recorded content of a profile disclosed herein;
FIG. 6 is a schematic view of a vehicle model file disclosed herein;
FIG. 7 is a schematic illustration of a vehicle type icon display disclosed herein;
fig. 8 is a schematic diagram of a vehicle model configuration file expansion apparatus disclosed in the present application;
fig. 9 is a schematic diagram of a vehicle model configuration file expansion device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, the prior art can increase the code quantity of a display program, and the increase of the code quantity can affect the compiling efficiency of code engineering; moreover, each additional vehicle model needs to be added with a corresponding display program, the development workload is large, and the code redundancy rate is high. Therefore, the vehicle model configuration file expansion scheme is provided, the diagnosis application program can be updated rapidly, and the updating flexibility and operability of the diagnosis application program are improved.
Referring to fig. 1, an embodiment of the present application discloses a vehicle type configuration file expanding method, including:
s101, responding to an operation instruction input by a user, updating vehicle type information in the configuration file and identification information corresponding to the vehicle type information, and obtaining an updated configuration file.
Wherein, the operation instruction comprises: the vehicle type information processing method comprises the steps of adding a vehicle type information instruction, deleting the vehicle type information instruction and modifying the vehicle type information instruction; the configuration file is used for recording vehicle type information and identification information corresponding to each vehicle type information.
And S102, synchronously updating the vehicle type icons corresponding to the vehicle type information in the vehicle type file to obtain an updated vehicle type file.
The vehicle type file is used for recording vehicle type icons corresponding to each vehicle type information.
S103, visually displaying all vehicle type icons in the vehicle type file on the target page according to the updated configuration file and the updated vehicle type file.
Referring to fig. 2, fig. 2 is a detailed flowchart of step S103 in fig. 1. The specific implementation step of S103 in fig. 1 includes:
s201, reading all vehicle type information in the configuration file;
s202, inquiring a vehicle type icon corresponding to each vehicle type information in a vehicle type folder;
and S203, loading and displaying all vehicle type icons on the target page.
Specifically, S103 may be executed when the diagnostic application is started. That is, when the diagnosis application program is started, all vehicle type icons in the vehicle type file are visually displayed on the target page according to the updated configuration file and the updated vehicle type file. When the diagnosis application program is started, a display program in the diagnosis application program calls the configuration file and the vehicle model file, so that the steps in S201-S203 are realized. In this embodiment, all vehicle types call the same display program to display, and the display program does not include contents such as vehicle type icons and vehicle type information, and thus has universality. The display program is set in the diagnosis application program, and the diagnosis application program is also set with a diagnosis program. The target page may be a page in the diagnostic application, and the target page may be seen in FIG. 7.
In one embodiment, loading and displaying all vehicle type icons on a target page includes: and respectively adjusting each vehicle type icon according to a preset proportion, and displaying each adjusted vehicle type icon on a target page according to an N multiplied by M arrangement mode. The method for displaying each adjusted vehicle type icon on the target page according to the N multiplied by M arrangement mode comprises the following steps: dividing the target page into N multiplied by M grids, and filling each adjusted vehicle type icon into each grid; the grids correspond to the vehicle type icons one to one.
For example: the vehicle type icons recorded in the vehicle type file are large, and the vehicle type icons can be reduced by one time according to the proportion of 2:1 for attractive appearance and convenience of display. N and M are both positive integers, N represents the number of horizontal grids, and M represents the number of vertical grids, e.g. 5 × 3, as can be seen in fig. 7.
Therefore, when the diagnosis application program is updated according to the scheme provided by the embodiment, a corresponding display program does not need to be written for a newly added vehicle type, only vehicle type information of the newly added vehicle type needs to be updated to the configuration file, vehicle type icons of the newly added vehicle type need to be updated to the vehicle type file, and then all the vehicle type icons can be visually displayed on the target page according to the updated configuration file and the vehicle type file. That is, after the configuration file and the vehicle model file are updated, the original display logic or the newly added display logic in the diagnosis application program does not need to be modified. Meanwhile, the configuration file and the vehicle type file can be added, deleted and modified, namely, the related information recorded in the configuration file and the vehicle type file can be flexibly adjusted, so that the flexibility and operability of updating the diagnosis application program are improved, and the rapid updating of the diagnosis application program can be realized.
After the step S103 in the above embodiment, when the user performs an operation on the target page, there may be a response flow as follows. Referring to fig. 3, an embodiment of the present application discloses a user operation response method, including:
s301, receiving a first click instruction of a user on any vehicle type icon of a target page;
s302, analyzing the first click command to obtain target vehicle type information corresponding to a target vehicle type icon clicked by a user at present;
s303, inquiring target identification information corresponding to the target vehicle type information in the configuration file;
s304, transmitting the target identification information to the diagnostic program so that the diagnostic program starts to execute.
Specifically, it is assumed that the configuration file has two vehicle type information of EC7 and EC8, the identification information of EC7 is "00", and the identification information of EC8 is "01". If the user clicks the vehicle type icon corresponding to the EC7, the identification information of the EC7 may be queried as "00" in the configuration file, so that "00" is transmitted to the diagnostic program.
As can be seen from the above, when a user operates on a target page, if a first click instruction of the user on any vehicle type icon of the target page is received, the first click instruction is analyzed, and target vehicle type information corresponding to the target vehicle type icon clicked by the user currently is obtained; target identification information corresponding to the target vehicle type information is inquired in the configuration file; the target identification information is transmitted to the diagnostic program so that the diagnostic program initiates execution. Responding according to the scheme provided by the embodiment can improve the diagnosis efficiency of the diagnosis application program.
On the basis of the above embodiment, when the user operates on the target page, the following response flow also exists. Referring to fig. 4, an embodiment of the present application discloses another user operation response method, including:
s401, if the target vehicle type icon comprises a sub vehicle type list, displaying the sub vehicle type list when a first click instruction is received;
s402, if a second click instruction of the user to any one sub-vehicle type in the sub-vehicle type list is received, analyzing the second click instruction to obtain sub-vehicle type information corresponding to a target sub-vehicle type clicked by the user at present;
s403, inquiring target identification information corresponding to the target vehicle type information and sub-identification information corresponding to the sub-vehicle type information in the configuration file;
s404, splicing the target identification information and the sub-identification information to obtain splicing identification information;
s405, transmitting the splicing identification information to a diagnostic program so that the diagnostic program can start execution.
Specifically, it is assumed that the configuration file has two vehicle type information of EC7 and EC8, the identification information of EC7 is "00", and the identification information of EC8 is "01"; EC7 includes three sub-vehicle type information of EC713T, EC715 and EC718, the sub-identification information of EC713T is "00", the sub-identification information of EC715 is "01", and the sub-identification information of EC718 is "02". If the user clicks the child vehicle model of EC713T, it can be found in the configuration file that the identification information of EC7 is "00", the child identification information of EC713T is "00", and the spliced identification information is "0000", so as to transmit "0000" to the diagnostic program.
As can be seen from the above, when a user operates on a target page, if a target vehicle type icon includes a sub vehicle type list, the sub vehicle type list is displayed when a first click instruction is received; if a second click instruction of the user to any one sub-vehicle type in the sub-vehicle type list is received, analyzing the second click instruction to obtain sub-vehicle type information corresponding to a target sub-vehicle type clicked by the user currently; inquiring target identification information corresponding to the target vehicle type information and sub-identification information corresponding to the sub-vehicle type information in the configuration file; splicing the target identification information and the sub-identification information to obtain spliced identification information; and transmitting the splicing identification information to a diagnostic program so that the diagnostic program starts to execute. Responding according to the scheme provided by the embodiment can improve the diagnosis efficiency of the diagnosis application program.
According to the scheme provided by the application, the following example can be realized.
And setting a diagnosis application program, wherein the diagnosis application program comprises a display program and a diagnosis program. The display program is mainly responsible for layout display of the display interface, and the diagnosis program is responsible for specific diagnosis functions of the vehicle. The display program does not contain contents such as vehicle type icons and vehicle type information, can display the vehicle type icon according to any vehicle type, and has universality.
And simultaneously setting a configuration file and a vehicle model file. The contents recorded in the configuration file can be seen in fig. 5. In fig. 5, "vehicles" represent individual vehicle type information, two vehicle type information such as EC7 and EC8 in fig. 5; "subcocar" represents sub-vehicle type information under each vehicle type, such as three sub-vehicle type information of EC713T, EC715, and EC718 included in EC7 in fig. 5; meanwhile, each vehicle type information or sub-vehicle type information is marked with characters, such as: EC7 is labeled with "00", EC8 with "01", EC713T with "00", etc.
Referring to fig. 6, folders corresponding to respective vehicle types in the vehicle type file are named by the current vehicle type information. In fig. 6, a model icon corresponding to the current model is stored in each file, and the model icons are stored in the same size and size. The model icon of the child model is not recorded in the model file for the time being. If the model icons of the sub-models are recorded in the model file, the further recording can be performed under each folder, and the sub-model icons are displayed when the sub-model list is displayed.
When the diagnosis application program is started, the display program calls the configuration file, reads all vehicle type information in 'vehicles', correspondingly queries vehicle type icons in the vehicle type file, and displays all vehicle type icons, wherein the display content can be shown in fig. 7. In fig. 7, the display interface is divided into a style similar to a "squared figure", and each figure displays a vehicle model icon, so that the user can intuitively select a vehicle model to be diagnosed. Fig. 7 shows a 5 × 3 grid, and when there are many model icons, the grid is displayed in pages. When the car-type icons are displayed, the grids are filled from left to right and from top to bottom according to a 1:1 ratio.
Specifically, all the vehicle type information in "carriers" is recorded in order from left to right, and thus the grid is filled from top to bottom on the page from left to right in this order. For example: all vehicle type information in "carriers" is: 1. 2, 3, 4, 5, 6, 7, then when the 5 × 3 grid is filled, the vehicle type icons displayed in the first row are: 1. 2, 3, 4 and 5, the vehicle type icons displayed in the second row are as follows: 6 and 7.
When a user clicks a certain vehicle type on the interface, taking EC7 as an example, the display program records the mark '00' of the vehicle type, and simultaneously reads the identification information corresponding to EC7 in the configuration file, and then transmits the identification information to the diagnostic program.
When a user selects a certain sub-vehicle type, the display program reads the mark of the sub-vehicle type, for example, the mark of EC715 is selected, the sub-vehicle type is marked as "01", and finally the mark to be transmitted to the diagnosis code is marked as "0001". When the diagnosis program obtains "0001", the diagnosis function corresponding to the vehicle type can be executed.
It should be noted that, in the present embodiment, the display program is unified, and the code logic of the display program is the same no matter in one vehicle type or in multiple vehicle types, and the display program does not need to be changed after being compiled. When the vehicle type needs to be expanded subsequently, only the relevant vehicle type information needs to be added into the configuration file, and the vehicle type icon corresponding to the vehicle type is added into the vehicle type folder, so that the updating flexibility and operability of the diagnosis application program are improved, and the quick updating of the diagnosis application program can be realized.
In the following, a vehicle type configuration file expanding device provided in an embodiment of the present application is introduced, and a vehicle type configuration file expanding device described below and a vehicle type configuration file expanding method described above may be referred to each other.
Referring to fig. 8, an embodiment of the present application discloses a vehicle type configuration file expansion apparatus, including:
a first updating module 801, configured to update vehicle type information in a configuration file and identification information corresponding to the vehicle type information in response to an operation instruction input by a user, to obtain an updated configuration file;
a second updating module 802, configured to update vehicle type icons corresponding to the vehicle type information in the vehicle type file synchronously, to obtain an updated vehicle type file;
the visualization module 803 is configured to visually display all vehicle type icons in the vehicle type file on the target page according to the updated configuration file and the updated vehicle type file;
wherein, the operation instruction comprises: the vehicle type information processing method comprises the steps of adding a vehicle type information instruction, deleting the vehicle type information instruction and modifying the vehicle type information instruction; the configuration file is used for recording vehicle type information and identification information corresponding to each vehicle type information; the vehicle type file is used for recording vehicle type icons corresponding to each vehicle type information.
In one embodiment, the visualization module is specifically configured to:
and reading all vehicle type information in the configuration file, inquiring a vehicle type icon corresponding to each vehicle type information in a vehicle type folder, and loading and displaying all vehicle type icons on a target page.
In one embodiment, the visualization module is specifically configured to:
and respectively adjusting each vehicle type icon according to a preset proportion, and displaying each adjusted vehicle type icon on a target page according to an N multiplied by M arrangement mode.
In one embodiment, the visualization module is specifically configured to:
dividing the target page into N multiplied by M grids, and filling each adjusted vehicle type icon into each grid; the grids correspond to the vehicle type icons one to one.
In a specific embodiment, the method further comprises the following steps:
the receiving module is used for receiving a first click instruction of a user on any vehicle type icon of the target page;
the first analysis module is used for analyzing the first click command to obtain target vehicle type information corresponding to a target vehicle type icon clicked by a user at present;
the first query module is used for querying target identification information corresponding to the target vehicle type information in the configuration file;
and the first transmission module is used for transmitting the target identification information to the diagnostic program so that the diagnostic program starts to execute.
In a specific embodiment, the method further comprises the following steps:
the display module is used for displaying the sub-vehicle type list when receiving a first click instruction if the target vehicle type icon comprises the sub-vehicle type list;
the second analysis module is used for analyzing a second click instruction if the second click instruction of the user on any one sub-vehicle type in the sub-vehicle type list is received, and obtaining sub-vehicle type information corresponding to a target sub-vehicle type clicked by the user currently;
the second query module is used for querying target identification information corresponding to the target vehicle type information and sub-identification information corresponding to the sub-vehicle type information in the configuration file;
the splicing module is used for splicing the target identification information and the sub-identification information to obtain splicing identification information;
and the second transmission module is used for transmitting the splicing identification information to the diagnostic program so as to start and execute the diagnostic program.
For more specific working processes of each module and unit in this embodiment, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here again.
Therefore, the embodiment provides a vehicle model configuration file expanding device, which can flexibly adjust the configuration file and the related information recorded in the vehicle model file, thereby improving the flexibility and operability of updating the diagnostic application program and realizing the rapid updating of the diagnostic application program.
In the following, a vehicle type configuration file expanding device provided in an embodiment of the present application is introduced, and a vehicle type configuration file expanding device described below and a vehicle type configuration file expanding method and apparatus described above may be referred to each other.
Referring to fig. 9, an embodiment of the present application discloses a vehicle type configuration file expansion device, including:
a memory 901 for storing a computer program;
a processor 902 for executing the computer program to implement the method disclosed in any of the embodiments above.
In the following, a readable storage medium provided by an embodiment of the present application is introduced, and a readable storage medium described below and a vehicle type profile expansion method, apparatus, and device described above may be referred to each other.
A readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the vehicle model profile expansion method disclosed in the foregoing embodiment. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
References in this application to "first," "second," "third," "fourth," etc., if any, are intended to distinguish between similar elements and not necessarily to describe a particular order or sequence. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of readable storage medium known in the art.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A vehicle type configuration file expanding method is characterized by comprising the following steps:
responding to an operation instruction input by a user, updating vehicle type information in a configuration file and identification information corresponding to the vehicle type information to obtain an updated configuration file;
vehicle type icons corresponding to the vehicle type information in the vehicle type files are synchronously updated, and updated vehicle type files are obtained;
visually displaying all vehicle type icons in the vehicle type file on a target page according to the updated configuration file and the updated vehicle type file;
wherein the operation instruction comprises: the vehicle type information processing method comprises the steps of adding a vehicle type information instruction, deleting the vehicle type information instruction and modifying the vehicle type information instruction; the configuration file is used for recording vehicle type information and identification information corresponding to each vehicle type information; the vehicle type file is used for recording vehicle type icons corresponding to each vehicle type information.
2. The vehicle type configuration file expanding method according to claim 1, wherein the visually displaying all vehicle type icons in the vehicle type file on a target page according to the updated configuration file and the updated vehicle type file comprises:
and reading all vehicle type information in the configuration file, inquiring a vehicle type icon corresponding to each vehicle type information in the vehicle type folder, and loading and displaying all vehicle type icons on the target page.
3. The vehicle model configuration file expansion method according to claim 2, wherein the loading and displaying of all vehicle model icons on the target page includes:
and respectively adjusting each vehicle type icon according to a preset proportion, and displaying each adjusted vehicle type icon on the target page according to an N multiplied by M arrangement mode.
4. The vehicle model configuration file expanding method according to claim 3, wherein the displaying of the adjusted icons of each vehicle model on the destination page in an N × M arrangement manner includes:
dividing the target page into N multiplied by M grids, and filling each adjusted vehicle type icon into each grid; the grids correspond to the vehicle type icons one to one.
5. The vehicle model configuration file expansion method according to any one of claims 1 to 4, wherein after visually displaying all vehicle model icons in the vehicle model file on a target page according to the updated configuration file and the updated vehicle model file, the method further comprises:
receiving a first click instruction of a user on any vehicle type icon of the target page;
analyzing the first click instruction to obtain target vehicle type information corresponding to a target vehicle type icon clicked by a user at present;
inquiring target identification information corresponding to the target vehicle type information in the configuration file;
and transmitting the target identification information to a diagnostic program so that the diagnostic program starts to execute.
6. The vehicle type profile expansion method according to claim 5, characterized by further comprising:
if the target vehicle type icon comprises a sub vehicle type list, displaying the sub vehicle type list when the first click instruction is received;
if a second click instruction of the user to any one of the sub-vehicle types in the sub-vehicle type list is received, analyzing the second click instruction to obtain sub-vehicle type information corresponding to a target sub-vehicle type clicked by the user currently;
inquiring target identification information corresponding to the target vehicle type information and sub-identification information corresponding to the sub-vehicle type information in the configuration file;
splicing the target identification information and the sub-identification information to obtain spliced identification information;
and transmitting the splicing identification information to the diagnostic program so as to enable the diagnostic program to start and execute.
7. A vehicle type configuration file expansion device is characterized by comprising:
the first updating module is used for responding to an operation instruction input by a user, updating vehicle type information in a configuration file and identification information corresponding to the vehicle type information to obtain an updated configuration file;
the second updating module is used for synchronously updating the vehicle type icons corresponding to the vehicle type information in the vehicle type file to obtain an updated vehicle type file;
the visualization module is used for visually displaying all vehicle type icons in the vehicle type file on a target page according to the updated configuration file and the updated vehicle type file;
wherein the operation instruction comprises: the vehicle type information processing method comprises the steps of adding a vehicle type information instruction, deleting the vehicle type information instruction and modifying the vehicle type information instruction; the configuration file is used for recording vehicle type information and identification information corresponding to each vehicle type information; the vehicle type file is used for recording vehicle type icons corresponding to each vehicle type information.
8. The vehicle type profile expansion apparatus according to claim 7, characterized by further comprising:
the receiving module is used for receiving a first click instruction of a user on any vehicle type icon of the target page;
the analysis module is used for analyzing the first click command to obtain target vehicle type information corresponding to a target vehicle type icon clicked by a user at present;
the query module is used for querying the target identification information corresponding to the target vehicle type information in the configuration file;
and the transmission module is used for transmitting the target identification information to a diagnostic program so as to enable the diagnostic program to start and execute.
9. A vehicle type configuration file expanding device is characterized by comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the vehicle model profile expansion method according to any one of claims 1 to 6.
10. A readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the vehicle model profile expansion method according to any one of claims 1 to 6.
CN201911101875.XA 2019-11-12 2019-11-12 Vehicle type configuration file expanding method, device, equipment and readable storage medium Pending CN110851206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911101875.XA CN110851206A (en) 2019-11-12 2019-11-12 Vehicle type configuration file expanding method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911101875.XA CN110851206A (en) 2019-11-12 2019-11-12 Vehicle type configuration file expanding method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN110851206A true CN110851206A (en) 2020-02-28

Family

ID=69601471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911101875.XA Pending CN110851206A (en) 2019-11-12 2019-11-12 Vehicle type configuration file expanding method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110851206A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414178A (en) * 2020-03-12 2020-07-14 苏州浪潮智能科技有限公司 Equipment information updating method, device, equipment and medium
CN113031833A (en) * 2020-12-15 2021-06-25 北京东土科技股份有限公司 Graphical configuration method, device, equipment and storage medium of industrial Ethernet
CN113246883A (en) * 2021-04-13 2021-08-13 湖北亿咖通科技有限公司 Control method for multi-vehicle configuration, micro control unit and vehicle-mounted machine system
CN114968445A (en) * 2022-03-11 2022-08-30 重庆长安汽车股份有限公司 Vehicle view configuration method, system and readable storage medium for APP

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1831829A (en) * 2006-04-20 2006-09-13 北京理工大学 Method for quickly forming voice data base for key word checkout task
CN105843619A (en) * 2016-03-24 2016-08-10 株洲中车时代电气股份有限公司 Method for realizing dynamic configuration of display interface of train display
CN108303268A (en) * 2018-01-31 2018-07-20 深圳市道通科技股份有限公司 Configuration method, device and the automotive diagnostic installation of vehicle diagnosis function
US20190251144A1 (en) * 2018-02-13 2019-08-15 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and apparatus for launching application page, and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1831829A (en) * 2006-04-20 2006-09-13 北京理工大学 Method for quickly forming voice data base for key word checkout task
CN105843619A (en) * 2016-03-24 2016-08-10 株洲中车时代电气股份有限公司 Method for realizing dynamic configuration of display interface of train display
CN108303268A (en) * 2018-01-31 2018-07-20 深圳市道通科技股份有限公司 Configuration method, device and the automotive diagnostic installation of vehicle diagnosis function
US20190251144A1 (en) * 2018-02-13 2019-08-15 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and apparatus for launching application page, and electronic device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414178A (en) * 2020-03-12 2020-07-14 苏州浪潮智能科技有限公司 Equipment information updating method, device, equipment and medium
CN113031833A (en) * 2020-12-15 2021-06-25 北京东土科技股份有限公司 Graphical configuration method, device, equipment and storage medium of industrial Ethernet
CN113246883A (en) * 2021-04-13 2021-08-13 湖北亿咖通科技有限公司 Control method for multi-vehicle configuration, micro control unit and vehicle-mounted machine system
CN114968445A (en) * 2022-03-11 2022-08-30 重庆长安汽车股份有限公司 Vehicle view configuration method, system and readable storage medium for APP
CN114968445B (en) * 2022-03-11 2023-11-21 重庆长安汽车股份有限公司 Vehicle view configuration method and system for APP and readable storage medium

Similar Documents

Publication Publication Date Title
CN110851206A (en) Vehicle type configuration file expanding method, device, equipment and readable storage medium
EP3252592A1 (en) Method and device for storing and reading data
CN110515894B (en) Data format conversion method, device, equipment and readable storage medium
JP2015525404A (en) Image processing method, apparatus, program, and storage medium
CN113885935A (en) Resource packaging method and device, electronic equipment and computer readable storage medium
CN110764864A (en) Terraform-based visual resource arrangement method
CN112181346B (en) Method, device, server, client and medium for processing thinking guide graph
CN116128448B (en) Design data processing method and device for FPGA engineering project and electronic equipment
JP2015060385A (en) Icon display of file history having been recorded in storage as postscript data
CN110660463A (en) Report editing method, device and equipment based on ultrasonic system and storage medium
CN112988810B (en) Information searching method, device and equipment
CN113449226B (en) Table creation method
CN110286985B (en) User interface display method, system and related components
CN110888649B (en) Application deployment method, application baseline creation method and device
CN114924674B (en) Multi-region column navigation interaction method, device and medium
CN114153505B (en) Data interaction method, system, device, equipment and computer storage medium
CN113760288A (en) Page generation method, page generation system and computer readable storage medium
CN115291871A (en) Page generation method, electronic device and storage medium
CN114610745A (en) Main data processing method and device, computer equipment and storage medium
CN117806631A (en) Page configuration method, page configuration device, computer equipment and storage medium
CN112131187A (en) Desktop folder creating method and device, storage medium and computer equipment
CN110750968A (en) Document generation method, medium, equipment and device based on SOA
KR20150098999A (en) A recording media specialized for an application developing environment program recording recognized by computer
KR20150099183A (en) A recording media specialized for an application developing environment program recording recognized by computer
KR20150098997A (en) A recording media specialized for an application developing environment program recording recognized by computer

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200228