Vehicle diagnostic software downloading method, device, equipment and medium
Through the folder structure based on the vehicle brand relationship information table, duplicate resources in the download of diagnostic software are avoided, the problem of waste of memory and traffic of diagnostic equipment is solved, and efficient resource management and savings are achieved.
Patent Information
- Application Number
- CN202411415945.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2024-12-27
AI Technical Summary
When the diagnostic software supports multiple car brands, downloading the diagnostic software will lead to repeated downloads, resulting in waste of memory and traffic of the diagnostic device.
Through the pre-set vehicle brand relationship information table, determine the mother car type and child car type, create the corresponding folder, and save only the target resource file to the mother car folder when downloading, establish the downloaded logo to avoid repeated downloads.
It reduces the download of diagnostic software resources, saves traffic and memory space of diagnostic equipment, and ensures the normal operation and display of diagnostic software.
Smart Images

Figure CN119201860A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a vehicle diagnostic software downloading method, device, equipment and medium. Background Art
[0002] At present, when a diagnostic software supports multiple car brands, the concept of parent-child cars is generated, where one car brand is defined as the parent car and the other car brands are defined as child cars. However, when the diagnostic device downloads the diagnostic software, it will download the same parent car software for different child car brands, resulting in a waste of memory and traffic of the diagnostic device.
[0003] As can be seen from the above, how to avoid repeated downloading during the software download process causing waste of resources is an issue that needs to be solved urgently. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for downloading vehicle diagnostic software, which can avoid repeated downloading during the software download process and cause waste of resources. The specific scheme is as follows:
[0005] In a first aspect, the present application provides a method for downloading vehicle diagnostic software, comprising:
[0006] Determine the vehicle brands of several sub-vehicle types corresponding to the vehicle brand of the parent vehicle type based on the preset vehicle brand relationship information table, and create corresponding parent vehicle folders and sub-vehicle folders based on the vehicle brand of the parent vehicle type and the vehicle brand of the sub-vehicle type; the parent vehicle folder stores the resource files of the diagnostic software corresponding to the vehicle brand of the parent vehicle type by default;
[0007] Determine the target mother vehicle brand and the corresponding target mother vehicle folder of the mother vehicle type corresponding to the corresponding target vehicle brand according to the current diagnostic software download request, and determine the resource file corresponding to the target diagnostic software of the target vehicle brand existing in the target mother vehicle folder to obtain the existing resource file;
[0008] Determine the target resource file to be downloaded corresponding to the target diagnostic software based on the diagnostic software download request and the existing resource file;
[0009] The downloaded target resource file is saved in the target parent vehicle folder, and an identification indicating that the download of the target diagnostic software is completed is established in the target child vehicle folder corresponding to the target vehicle brand.
[0010] Optionally, before determining the vehicle brands of several sub-vehicle types corresponding to the vehicle brand of the parent vehicle type based on the preset vehicle brand relationship information table, the method further includes:
[0011] A configuration instruction for configuring a parent-child vehicle relationship between two vehicle brands is obtained through a preset interface, and based on the configuration instruction, the corresponding two vehicle brands are recorded as a parent vehicle type or a child vehicle type, and then a preset vehicle brand relationship information table is generated based on the parent-child vehicle relationship between several vehicle brands recorded as parent vehicle types and child vehicle types, so as to determine several vehicle brands of child vehicle types corresponding to the vehicle brand of the parent vehicle type based on the vehicle brand relationship information table.
[0012] Optionally, after creating corresponding parent vehicle folders and child vehicle folders based on the vehicle brand of the parent vehicle type and the vehicle brand of the child vehicle type, the method further includes:
[0013] Determine a first resource file directory of corresponding diagnostic software according to the vehicle brand of the parent vehicle type;
[0014] The resource files of the diagnostic software corresponding to the vehicle brand of the mother vehicle type are downloaded based on the first resource file directory, and the downloaded resource files are saved in the mother vehicle folder.
[0015] Optionally, the step of determining the target mother vehicle brand and the corresponding target mother vehicle folder of the mother vehicle type corresponding to the corresponding target vehicle brand according to the current diagnostic software download request, and determining the resource file corresponding to the target diagnostic software of the target vehicle brand and existing in the target mother vehicle folder to obtain the existing resource file includes:
[0016] Determine the target vehicle brand of the current diagnostic software download request and the target mother vehicle brand recorded as the mother vehicle type in the vehicle brand relationship information table, and determine the target mother vehicle folder corresponding to the target mother vehicle brand;
[0017] Determine the resource files matching the second resource file directory in the target vehicle folder based on the second resource file directory of the target diagnostic software corresponding to the target vehicle brand, and obtain the existing resource files;
[0018] Accordingly, the step of determining the target resource file to be downloaded corresponding to the target diagnostic software based on the diagnostic software download request and the existing resource file includes:
[0019] The second resource file directory of the target diagnostic software corresponding to the diagnostic software download request is compared with the file directory of the existing resource files to determine the resource files that only exist in the second resource file directory as the target resource files to be downloaded of the target diagnostic software.
[0020] Optionally, after the mark indicating that the target diagnostic software has been downloaded is established in the target sub-vehicle folder corresponding to the target vehicle brand, the method further includes:
[0021] If a diagnostic software display request is obtained, the resource files in all the parent vehicle folders and the identifiers indicating the download completion in all the child vehicle folders are verified, and the diagnostic software display request is responded to according to the corresponding verification results.
[0022] Optionally, the step of saving the downloaded target resource file to the target parent vehicle folder, and establishing a mark indicating that the target diagnostic software has been downloaded in the target child vehicle folder corresponding to the target vehicle brand, includes:
[0023] The downloaded target resource file is saved in the target mother vehicle folder, and a target configuration file representing the resource file corresponding to the target diagnostic software is created based on the matching relationship between the resource file in the target mother vehicle folder and the target diagnostic software, and an identification representing that the download of the target diagnostic software is completed is established in the target sub-vehicle folder corresponding to the target vehicle brand.
[0024] Optionally, after creating a target configuration file representing the resource files corresponding to the target diagnostic software based on the matching relationship between the resource files in the target mother vehicle folder and the target diagnostic software, the method further includes:
[0025] If a diagnostic software running request for the target vehicle brand is obtained, several resource files for running the target diagnostic software are determined from the target mother vehicle folder according to the target configuration file, and the diagnostic software running request is responded to based on the several resource files.
[0026] In a second aspect, the present application provides a vehicle diagnostic software downloading device, comprising:
[0027] A vehicle brand folder generation module is used to determine the vehicle brands of several sub-vehicle types corresponding to the vehicle brand of the parent vehicle type based on a preset vehicle brand relationship information table, and to create corresponding parent vehicle folders and sub-vehicle folders based on the vehicle brand of the parent vehicle type and the vehicle brand of the sub-vehicle type; the parent vehicle folder stores the resource files of the diagnostic software corresponding to the vehicle brand of the parent vehicle type by default;
[0028] An existing resource file determination module is used to determine a target mother vehicle brand and a corresponding target mother vehicle folder of a mother vehicle type corresponding to a corresponding target vehicle brand according to a current diagnostic software download request, and to determine a resource file corresponding to a target diagnostic software of the target vehicle brand and existing in the target mother vehicle folder to obtain an existing resource file;
[0029] A target resource file determination module, used to determine a target resource file to be downloaded corresponding to the target diagnostic software based on the diagnostic software download request and the existing resource file;
[0030] The target resource file download module is used to save the downloaded target resource file into the target mother vehicle folder, and to establish an identification indicating that the download of the target diagnostic software is completed in the target child vehicle folder corresponding to the target vehicle brand.
[0031] In a third aspect, the present application provides an electronic device, including:
[0032] Memory, used to store computer programs;
[0033] The processor is used to execute the computer program to implement the aforementioned vehicle diagnostic software downloading method.
[0034] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned vehicle diagnostic software downloading method when executed by a processor.
[0035] The present application determines several vehicle brands of sub-vehicle types corresponding to the vehicle brand of the parent vehicle type based on a pre-set vehicle brand relationship information table, and creates corresponding parent vehicle folders and sub-vehicle folders based on the vehicle brand of the parent vehicle type and the vehicle brand of the sub-vehicle type respectively; the parent vehicle folder saves the resource files of the diagnostic software corresponding to the vehicle brand of the parent vehicle type by default; determines the target parent vehicle brand and the corresponding target parent vehicle folder of the parent vehicle type corresponding to the corresponding target vehicle brand according to the current diagnostic software download request, and determines the resource files corresponding to the target diagnostic software of the target vehicle brand existing in the target parent vehicle folder to obtain the existing resource files; determines the target resource files to be downloaded corresponding to the target diagnostic software based on the diagnostic software download request and the existing resource files; saves the downloaded target resource files to the target parent vehicle folder, and establishes an identification indicating that the download of the target diagnostic software is complete in the target sub-vehicle folder corresponding to the target vehicle brand.
[0036] As can be seen from the above, the present application creates corresponding parent vehicle folders and child vehicle folders based on the vehicle brand of the parent vehicle type and the vehicle brand of the child vehicle type, respectively, wherein the parent vehicle folder stores the resource files of the diagnostic software corresponding to the vehicle brand of the parent vehicle type by default. Therefore, it is only necessary to download the resource files to be downloaded for the target vehicle brand according to the current diagnostic software download request to complete the download of the resource files of the diagnostic software. It can reduce the download of diagnostic software resources and save traffic and memory space of diagnostic equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0038] Figure 1 A vehicle diagnostic software download flow chart disclosed in this application;
[0039] Figure 2 A schematic diagram of a vehicle diagnostic software download folder structure disclosed in this application;
[0040] Figure 3 This is a schematic diagram of the structure of a vehicle diagnostic software downloading device disclosed in this application;
[0041] Figure 4 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] At present, when a diagnostic software supports multiple vehicle brands, the concept of parent-child vehicles will be generated, where one vehicle brand is defined as the parent vehicle and the other vehicle brands are defined as child vehicles. However, when the diagnostic device downloads the diagnostic software, it will download the same parent vehicle software for different child vehicle brands, resulting in a waste of memory and traffic of the diagnostic device. To this end, the present application provides a vehicle diagnostic software download solution that can avoid repeated downloads during the software download process and cause waste of resources.
[0044] See also Figure 1 As shown, the embodiment of the present application discloses a method for downloading vehicle diagnostic software, including:
[0045] Step S11, determining several vehicle brands of sub-vehicle types corresponding to the vehicle brand of the parent vehicle type based on a preset vehicle brand relationship information table, and creating corresponding parent vehicle folders and sub-vehicle folders based on the vehicle brand of the parent vehicle type and the vehicle brand of the sub-vehicle type, respectively.
[0046] In this embodiment, the vehicle brand of the parent vehicle type and the vehicle brands of the corresponding sub-vehicle types are determined from a number of vehicle brands according to the preset vehicle brand relationship information table, and corresponding parent vehicle folders and sub-vehicle folders are created based on the vehicle brand of the parent vehicle type and the vehicle brand of the sub-vehicle type. Among them, the vehicle brand of the parent vehicle type is generally the most representative brand of a certain automobile group company; the vehicle brand of the sub-vehicle type is generally the relevant vehicle brand of a certain automobile group company, and the diagnostic software corresponding to these vehicle brands has a lot of the same content as the diagnostic software corresponding to their parent vehicles; it can be understood that the correspondence between the several vehicle brands can be determined according to the actual application scenario, and specifically, the correspondence between the several vehicle brands can be adjusted by adjusting the preset vehicle brand relationship information table. In a specific embodiment, before determining the vehicle brands of several sub-vehicle types corresponding to the vehicle brand of the parent vehicle type based on the preset vehicle brand relationship information table, it may also include: obtaining a configuration instruction for configuring the parent-child vehicle relationship between two vehicle brands through a preset interface, and recording the corresponding two vehicle brands as the parent vehicle type or the sub-vehicle type based on the configuration instruction to obtain the parent-child vehicle relationship between the above two vehicle brands, repeating the above steps until the parent-child vehicle relationship of all vehicle brands is recorded, and then generating a preset vehicle brand relationship information table based on the parent-child vehicle relationship between the above vehicle brands, so as to determine the vehicle brands of several sub-vehicle types corresponding to the vehicle brand of the parent vehicle type based on the vehicle brand relationship information table. That is, the corresponding relationship between several vehicle brands is configured and recorded based on the actual application scenario to generate the vehicle relationship information table, and then the vehicle brands of several sub-vehicle types corresponding to the vehicle brand of the parent vehicle type can be determined based on the vehicle brand relationship information table, so as to determine the relationship between the relevant diagnostic software that needs to be downloaded.
[0047] In this embodiment, the mother vehicle folder corresponding to the mother vehicle brand is used to store the resource files of the diagnostic software corresponding to the mother vehicle brand and the resource files of the diagnostic software corresponding to several sub-vehicle brands corresponding to the mother vehicle brand. It can be understood that, since there are some common resource files between the resource files of the diagnostic software corresponding to the sub-vehicle brand and the resource files of the diagnostic software corresponding to the mother vehicle brand, the resource files of the diagnostic software corresponding to the mother vehicle brand can be downloaded in advance, and the traffic consumption when downloading the resource files of the diagnostic software corresponding to the relevant sub-vehicle brands can be reduced later. Specifically, after creating the corresponding mother vehicle folder and sub-vehicle folder based on the vehicle brand of the mother vehicle type and the vehicle brand of the sub-vehicle type, it can also include: determining the vehicle brands of several sub-vehicle types corresponding to the mother vehicle type according to the vehicle brand of the mother vehicle type, and determining the common resource file directory of the corresponding diagnostic software; downloading the corresponding diagnostic software resource files based on the common resource file directory, and saving the downloaded common resource files to the mother vehicle folder. That is, by downloading the resource files of the diagnostic software corresponding to the mother vehicle brand in advance, it is possible to avoid repeated downloading of resource files common to the sub-vehicle brand and the mother vehicle brand, thereby avoiding waste of resources caused by subsequent repeated downloading of the same resource files.
[0048] Step S12, determine the target mother vehicle brand and the corresponding target mother vehicle folder of the mother vehicle type corresponding to the corresponding target vehicle brand according to the current diagnostic software download request, and determine the resource file corresponding to the target diagnostic software of the target vehicle brand and existing in the target mother vehicle folder to obtain the existing resource file.
[0049] In this embodiment, the corresponding target vehicle brand is determined by the current diagnostic software download request, and the mother vehicle type vehicle brand corresponding to the target vehicle brand is determined based on the vehicle brand relationship information table, so as to determine the resource file of the diagnostic software corresponding to the target vehicle brand from the mother vehicle folder corresponding to the mother vehicle type vehicle brand. Specifically, the target mother vehicle brand and the corresponding target mother vehicle folder of the mother vehicle type corresponding to the corresponding target vehicle brand are determined according to the current diagnostic software download request, and the resource file corresponding to the target diagnostic software of the target vehicle brand existing in the target mother vehicle folder is determined to obtain the existing resource file, which may include: determining the target mother vehicle brand recorded as the mother vehicle type in the vehicle brand relationship information table corresponding to the target vehicle brand of the current diagnostic software download request, and determining the target mother vehicle folder corresponding to the target mother vehicle brand; determining the resource file matching the target resource file directory existing in the target mother vehicle folder based on the target resource file directory of the target diagnostic software corresponding to the target vehicle brand, and obtaining the existing resource file. That is, the resource file common to the resource file of the diagnostic software corresponding to the target vehicle brand in the target mother vehicle folder is determined through the target resource file directory.
[0050] Step S13: determining a target resource file to be downloaded corresponding to the target diagnostic software based on the diagnostic software download request and the existing resource file.
[0051] In this embodiment, the corresponding target vehicle brand is determined through the current diagnostic software download request, and the target resource file directory of the target diagnostic software corresponding to the target vehicle brand is obtained, and the target resource file to be downloaded corresponding to the target diagnostic software is determined based on the target resource file directory and the existing resource file. Specifically, the determination of the target resource file to be downloaded corresponding to the target diagnostic software based on the diagnostic software download request and the existing resource file may include: comparing the target resource file directory of the target diagnostic software corresponding to the diagnostic software download request with the file directory of the existing resource file, so as to determine the resource file that only exists in the target resource file directory as the target resource file to be downloaded of the target diagnostic software. That is, by comparing the target resource file directory of the target diagnostic software with the file directory of the existing resource file, the resource files that have not been downloaded corresponding to the target diagnostic software are determined, and only these resource files need to be downloaded later.
[0052] Step S14: Save the downloaded target resource file to the target parent vehicle folder, and create an indicator indicating that the download of the target diagnostic software is complete in the target child vehicle folder corresponding to the target vehicle brand.
[0053] In this embodiment, the downloaded target resource file is saved in the target mother vehicle folder, and a target configuration file representing the resource file corresponding to the target diagnostic software is created based on the downloaded resource file, and an identification indicating that the download of the target diagnostic software is completed is established in the corresponding sub-vehicle folder. Specifically, the downloaded target resource file is saved in the target mother vehicle folder, and an identification indicating that the download of the target diagnostic software is completed is established in the target sub-vehicle folder corresponding to the target vehicle brand, which may include: saving the downloaded target resource file in the target mother vehicle folder, and creating a target configuration file representing the resource file corresponding to the target diagnostic software based on the matching relationship between the resource file in the target mother vehicle folder and the target diagnostic software, and establishing an identification indicating that the download of the target diagnostic software is completed in the target sub-vehicle folder corresponding to the target vehicle brand based on the target configuration file. The target configuration file and the identification can be used to call the resource file corresponding to the target vehicle brand from the mother vehicle folder to complete operations such as verification and operation of the target diagnostic software.
[0054] In this embodiment, relevant personnel can operate the target diagnostic software through corresponding diagnostic software operation instructions. For example, in a specific implementation, after the target sub-car folder corresponding to the target vehicle brand is established with an identification indicating that the target diagnostic software has been downloaded, it may also include: if a diagnostic software display request is obtained, the resource files in all the mother car folders and the identification indicating that the download is completed in all the sub-car folders are verified based on the target configuration file, and the downloaded diagnostic software, the undownloaded diagnostic software, and the downloading diagnostic software contained in the current mother car folder are determined according to the corresponding verification results, and then the download status of the above diagnostic software is displayed through a preset display port.
[0055] In another specific embodiment, after creating a target configuration file representing the resource files corresponding to the target diagnostic software based on the matching relationship between the resource files in the target mother vehicle folder and the target diagnostic software, it may also include: if a diagnostic software running request for the target vehicle brand is obtained, then according to the target configuration file, a number of resource files for running the target diagnostic software are determined from the target mother vehicle folder, and the diagnostic software running request is responded to based on the several resource files. That is, the resource files corresponding to the target vehicle brand can be called from the mother vehicle folder through the target configuration file and the identifier, so as to complete the running operation of the target diagnostic software.
[0056] As can be seen from the above, the embodiment of the present application creates corresponding mother vehicle folders and sub-vehicle folders based on the vehicle brand of the mother vehicle type and the vehicle brand of the sub-vehicle type, respectively, wherein the mother vehicle folder stores the resource files of the diagnostic software corresponding to the vehicle brand of the mother vehicle type by default. Therefore, it is only necessary to download the resource files to be downloaded for the target vehicle brand according to the current diagnostic software download request to complete the download of the resource files of the diagnostic software. It can reduce the download of diagnostic software resources and save traffic and memory space of diagnostic equipment. And by calling the resource files corresponding to the target vehicle brand from the mother vehicle folder through the configuration file corresponding to the sub-class vehicle brand, the verification and operation of the target diagnostic software can be completed, so as to ensure the normal operation of the target diagnostic software.
[0057] In the present application examples, see Figure 2 As shown, the letter correspondence between several vehicle brands can be defined in advance through a digital software platform, and marked and recorded in the diagnostic device. For example, for four vehicle brands, model A, model B, model C, and model D, the model A vehicle brand is used as the parent vehicle brand, and other vehicle brands are used as corresponding sub-vehicle brands. Then create multiple folders under the parent vehicle folder, divide the diagnostic software corresponding to the vehicle brand, including files such as a public folder, a model A folder, a model B configuration folder, a model C configuration folder, and a model D configuration folder, and create a sub-vehicle folder corresponding to the above-mentioned sub-vehicle brand, including a model B folder, a model C folder, and a model D folder. Among them, the model A folder is used to store the resource files of the diagnostic software corresponding to the model A parent vehicle brand, the public folder is used to store the resource files of the diagnostic software corresponding to other sub-vehicle brands, and the model B configuration folder, the model C configuration folder, and the model D configuration folder are used to call the diagnostic software resource files corresponding to the corresponding sub-vehicle brand in the public folder. It should be noted that the above-mentioned sub-vehicle folder is an empty folder and is not used to save the resource folder of the diagnostic software.
[0058] When the relevant personnel initiate a download request, the diagnostic device first downloads the diagnostic software resource file corresponding to the parent vehicle brand according to the target vehicle model brand selected by the relevant personnel, and saves it in the vehicle model A folder. When the relevant personnel initiate a download request for the target sub-vehicle brand, the diagnostic device only downloads the diagnostic software resource file corresponding to the target sub-vehicle brand, and saves the resource file to the public folder, and at the same time establishes a corresponding identifier in the sub-vehicle folder corresponding to the target sub-vehicle brand. The diagnostic device can record the download status of the diagnostic software corresponding to the parent and sub-vehicles in real time through the identifier. When the relevant personnel view the diagnostic software list, the diagnostic device performs synchronous verification through the identifier, and accurately displays the downloaded and undownloaded diagnostic software according to the download status to ensure the accuracy and completeness of the display.
[0059] As can be seen from the above, the embodiment of the present application performs fine segmentation of the resources of the diagnostic software, and pushes only the software resources required by the relevant personnel according to the vehicle model brand selected, avoiding unnecessary resource downloads, thereby effectively saving memory and traffic. At the same time, by creating corresponding identifiers in the child vehicle folder, the download status of the diagnostic software corresponding to the parent vehicle is recorded in real time to ensure the accuracy and completeness of the diagnostic software display.
[0060] See also Figure 3 As shown, the present application provides a vehicle diagnostic software downloading device, comprising:
[0061] The vehicle brand folder generation module 11 is used to determine the vehicle brands of several sub-vehicle types corresponding to the vehicle brand of the parent vehicle type based on a preset vehicle brand relationship information table, and to create corresponding parent vehicle folders and sub-vehicle folders based on the vehicle brand of the parent vehicle type and the vehicle brand of the sub-vehicle type respectively; the parent vehicle folder stores the resource files of the diagnostic software corresponding to the vehicle brand of the parent vehicle type by default;
[0062] The existing resource file determination module 12 is used to determine the target mother vehicle brand and the corresponding target mother vehicle folder of the mother vehicle type corresponding to the corresponding target vehicle brand according to the current diagnostic software download request, and determine the resource file corresponding to the target diagnostic software of the target vehicle brand existing in the target mother vehicle folder to obtain the existing resource file;
[0063] A target resource file determination module 13, configured to determine a target resource file to be downloaded corresponding to the target diagnostic software based on the diagnostic software download request and the existing resource file;
[0064] The target resource file downloading module 14 is used to save the downloaded target resource file into the target parent vehicle folder, and to create an identification indicating that the target diagnostic software download is complete in the target child vehicle folder corresponding to the target vehicle brand.
[0065] As can be seen from the above, the embodiment of the present application creates corresponding parent vehicle folders and child vehicle folders based on the vehicle brand of the parent vehicle type and the vehicle brand of the child vehicle type, respectively, wherein the parent vehicle folder stores the resource files of the diagnostic software corresponding to the vehicle brand of the parent vehicle type by default. Therefore, it is only necessary to download the resource files to be downloaded for the target vehicle brand according to the current diagnostic software download request to complete the download of the resource files of the diagnostic software. It can reduce the download of diagnostic software resources and save traffic and memory space of diagnostic equipment.
[0066] In some specific implementations, the vehicle brand folder generating module 11 may specifically include:
[0067] A first resource file directory determining unit: used for determining a first resource file directory of corresponding diagnostic software according to a vehicle brand of the parent vehicle type;
[0068] The mother vehicle resource file downloading unit is used to download the resource file of the diagnostic software corresponding to the vehicle brand of the mother vehicle type based on the first resource file directory, and save the downloaded resource file into the mother vehicle folder.
[0069] In some specific implementations, the existing resource file determination module 12 may specifically include:
[0070] A target vehicle brand relationship determination unit, used to determine the target vehicle brand of the current diagnostic software download request and the target mother vehicle brand recorded as the mother vehicle type in the vehicle brand relationship information table, and determine the target mother vehicle folder corresponding to the target mother vehicle brand;
[0071] The existing resource file determination unit is used to determine the resource files matching the second resource file directory existing in the target mother vehicle folder based on the second resource file directory of the target diagnostic software corresponding to the target vehicle brand, and obtain the existing resource files.
[0072] In some specific implementations, the target resource file determination module 13 may specifically include:
[0073] A target resource file determination unit is used to compare the second resource file directory of the target diagnostic software corresponding to the diagnostic software download request with the file directory of the existing resource files, so as to determine the resource files that only exist in the second resource file directory as the target resource files to be downloaded of the target diagnostic software.
[0074] In some specific implementations, the target resource file downloading module 14 may specifically include:
[0075] A download completion identification establishing unit is used to save the downloaded target resource file to the target mother vehicle folder, and create a target configuration file representing the resource file corresponding to the target diagnostic software based on the matching relationship between the resource file in the target mother vehicle folder and the target diagnostic software, and establish an identification representing the completion of downloading the target diagnostic software in the target sub-vehicle folder corresponding to the target vehicle brand.
[0076] In some specific implementations, the vehicle diagnostic software downloading device may specifically include:
[0077] a vehicle brand relationship information table generating module, for acquiring, through a preset interface, a configuration instruction for configuring a parent-child vehicle relationship between two vehicle brands, and recording the corresponding two vehicle brands as parent vehicle types or child vehicle types based on the configuration instruction, and then generating a preset vehicle brand relationship information table based on the parent-child vehicle relationship between a number of vehicle brands recorded as parent vehicle types and child vehicle types, so as to determine a number of vehicle brands of child vehicle types corresponding to a vehicle brand of the parent vehicle type based on the vehicle brand relationship information table;
[0078] The diagnostic software display module is used to verify the resource files in all the parent vehicle folders and the identifications indicating the download completion in all the child vehicle folders if a diagnostic software display request is obtained, and respond to the diagnostic software display request according to the corresponding verification results;
[0079] The diagnostic software running module is used to determine a number of resource files for running the target diagnostic software from the target mother vehicle folder according to the target configuration file created by the download completion identification establishment unit if a diagnostic software running request for the target vehicle brand is obtained, and respond to the diagnostic software running request based on the number of resource files.
[0080] Furthermore, the present application also discloses an electronic device. Figure 4 It is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the figure cannot be regarded as any limitation on the scope of use of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the vehicle diagnostic software download method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0081] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0082] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0083] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, and may be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the vehicle diagnostic software downloading method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 may further include computer programs that can be used to complete other specific tasks.
[0084] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the vehicle diagnostic software download method disclosed above. The specific steps of the method can refer to the corresponding contents disclosed in the above embodiments, and will not be repeated here.
[0085] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0086] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0087] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0088] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0089] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for downloading vehicle diagnostic software, characterized in that: include: Determine the vehicle brands of several sub-vehicle types corresponding to the vehicle brand of the parent vehicle type based on the preset vehicle brand relationship information table, and create corresponding parent vehicle folders and sub-vehicle folders based on the vehicle brand of the parent vehicle type and the vehicle brand of the sub-vehicle type; the parent vehicle folder stores the resource files of the diagnostic software corresponding to the vehicle brand of the parent vehicle type by default; Determine the target mother vehicle brand and the corresponding target mother vehicle folder of the mother vehicle type corresponding to the corresponding target vehicle brand according to the current diagnostic software download request, and determine the resource file corresponding to the target diagnostic software of the target vehicle brand existing in the target mother vehicle folder to obtain the existing resource file; Determine the target resource file to be downloaded corresponding to the target diagnostic software based on the diagnostic software download request and the existing resource file; The downloaded target resource file is saved in the target parent vehicle folder, and an identification indicating that the download of the target diagnostic software is completed is established in the target child vehicle folder corresponding to the target vehicle brand.
2. The vehicle diagnostic software downloading method according to claim 1, characterized in that: Before determining the vehicle brands of several sub-vehicle types corresponding to the vehicle brand of the parent vehicle type based on the preset vehicle brand relationship information table, the method further includes: A configuration instruction for configuring a parent-child vehicle relationship between two vehicle brands is obtained through a preset interface, and based on the configuration instruction, the corresponding two vehicle brands are recorded as a parent vehicle type or a child vehicle type, and then a preset vehicle brand relationship information table is generated based on the parent-child vehicle relationship between several vehicle brands recorded as parent vehicle types and child vehicle types, so as to determine several vehicle brands of child vehicle types corresponding to the vehicle brand of the parent vehicle type based on the vehicle brand relationship information table.
3. The vehicle diagnostic software downloading method according to claim 1, characterized in that: After the corresponding parent vehicle folder and child vehicle folder are created based on the vehicle brand of the parent vehicle type and the vehicle brand of the child vehicle type, the method further includes: Determine a first resource file directory of corresponding diagnostic software according to the vehicle brand of the parent vehicle type; The resource files of the diagnostic software corresponding to the vehicle brand of the mother vehicle type are downloaded based on the first resource file directory, and the downloaded resource files are saved in the mother vehicle folder.
4. The vehicle diagnostic software downloading method according to claim 1, characterized in that: The method of determining the target mother vehicle brand and the corresponding target mother vehicle folder of the mother vehicle type corresponding to the corresponding target vehicle brand according to the current diagnostic software download request, and determining the resource file corresponding to the target diagnostic software of the target vehicle brand existing in the target mother vehicle folder, and obtaining the existing resource file, includes: Determine the target vehicle brand of the current diagnostic software download request and the target mother vehicle brand recorded as the mother vehicle type in the vehicle brand relationship information table, and determine the target mother vehicle folder corresponding to the target mother vehicle brand; Determine the resource files matching the second resource file directory in the target vehicle folder based on the second resource file directory of the target diagnostic software corresponding to the target vehicle brand, and obtain the existing resource files; Accordingly, the step of determining the target resource file to be downloaded corresponding to the target diagnostic software based on the diagnostic software download request and the existing resource file includes: The second resource file directory of the target diagnostic software corresponding to the diagnostic software download request is compared with the file directory of the existing resource files to determine the resource files that only exist in the second resource file directory as the target resource files to be downloaded of the target diagnostic software.
5. The vehicle diagnostic software downloading method according to claim 1, characterized in that: After the mark indicating that the target diagnostic software has been downloaded is established in the target sub-vehicle folder corresponding to the target vehicle brand, the method further includes: If a diagnostic software display request is obtained, the resource files in all the parent vehicle folders and the identifiers indicating the download completion in all the child vehicle folders are verified, and the diagnostic software display request is responded to according to the corresponding verification results.
6. The vehicle diagnostic software downloading method according to any one of claims 1 to 5, characterized in that: The step of saving the downloaded target resource file to the target parent vehicle folder and establishing a mark indicating that the target diagnostic software has been downloaded in the target child vehicle folder corresponding to the target vehicle brand includes: The downloaded target resource file is saved in the target mother vehicle folder, and a target configuration file representing the resource file corresponding to the target diagnostic software is created based on the matching relationship between the resource file in the target mother vehicle folder and the target diagnostic software, and an identification representing that the download of the target diagnostic software is completed is established in the target sub-vehicle folder corresponding to the target vehicle brand.
7. The vehicle diagnostic software downloading method according to claim 6, characterized in that: After creating a target configuration file representing the resource files corresponding to the target diagnostic software based on the matching relationship between the resource files in the target mother vehicle folder and the target diagnostic software, the method further includes: If a diagnostic software running request for the target vehicle brand is obtained, several resource files for running the target diagnostic software are determined from the target mother vehicle folder according to the target configuration file, and the diagnostic software running request is responded to based on the several resource files.
8. A vehicle diagnostic software download device, characterized in that: include: A vehicle brand folder generation module is used to determine the vehicle brands of several sub-vehicle types corresponding to the vehicle brand of the parent vehicle type based on a preset vehicle brand relationship information table, and to create corresponding parent vehicle folders and sub-vehicle folders based on the vehicle brand of the parent vehicle type and the vehicle brand of the sub-vehicle type; the parent vehicle folder stores the resource files of the diagnostic software corresponding to the vehicle brand of the parent vehicle type by default; An existing resource file determination module is used to determine a target mother vehicle brand and a corresponding target mother vehicle folder of a mother vehicle type corresponding to a corresponding target vehicle brand according to a current diagnostic software download request, and to determine a resource file corresponding to a target diagnostic software of the target vehicle brand and existing in the target mother vehicle folder to obtain an existing resource file; A target resource file determination module, used to determine a target resource file to be downloaded corresponding to the target diagnostic software based on the diagnostic software download request and the existing resource file; The target resource file download module is used to save the downloaded target resource file into the target mother vehicle folder, and to establish an identification indicating that the download of the target diagnostic software is completed in the target child vehicle folder corresponding to the target vehicle brand.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the vehicle diagnostic software downloading method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the vehicle diagnostic software downloading method according to any one of claims 1 to 7 is implemented.