Data import method, system, electronic device and computer readable storage medium

By importing the serial number file of the diagnostic equipment into the category folder and generating the authorization file, the problem of slow diagnostic data import process was solved, enabling rapid authorization and data import of diagnostic equipment and improving production efficiency.

CN115357549BActive Publication Date: 2026-02-27SHENZHEN BONOR TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210918673.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-01
Publication Date
2026-02-27
Estimated Expiration
2042-08-01

AI Technical Summary

Technical Problem

The current diagnostic data import process is simplistic and slow, which affects the production speed of diagnostic equipment.

Method used

The serial number files of the diagnostic devices are imported into their respective category folders, and the pre-stored diagnostic data archives on the computer are decompressed into each category folder to generate authorization files. The diagnostic data and authorization files are then imported into the diagnostic devices separately, and the batch import command is used to complete the import of the authorization files.

Benefits of technology

It improved the speed of importing diagnostic data, ensuring that each diagnostic device could quickly obtain authorization documents, and improved the production efficiency of diagnostic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115357549B_ABST
    Figure CN115357549B_ABST
Patent Text Reader

Abstract

The application provides a data import method, system, electronic device and computer readable storage medium, comprising: importing serial number files of each diagnostic equipment connected with a computer into corresponding category folders respectively; decompressing diagnostic data compression packages pre-existing in the computer into each category folder to obtain first diagnostic data files; generating authorization files by using the serial number files and the first diagnostic data files in each category folder respectively; importing the diagnostic data compression packages pre-existing in the computer into each diagnostic equipment and obtaining second diagnostic data files by decompression; and executing a batch import command on all authorization files to import each authorization file into the second diagnostic data files in the corresponding diagnostic equipment. The technical scheme solves the problem of single and slow import process of diagnostic data in the prior art, thereby affecting the technical problem of the diagnostic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of automobile diagnosis equipment, and particularly relates to a data import method and system, an electronic device and a computer readable storage medium. BACKGROUND

[0002] The automobile diagnosis equipment is a professional instrument specially used for automobile detection, which can detect the performance of a vehicle in real time and detect vehicle faults. The automobile diagnosis equipment refers to an inspection tool used for determining the technical condition of an automobile, finding out the fault part and reason without disassembly (or only removing individual parts). The automobile diagnosis equipment includes the detection and diagnosis of an automobile engine, the detection and diagnosis of an automobile chassis, the detection and diagnosis of an automobile body and accessories, and the detection of automobile exhaust pollutants and noise.

[0003] After the diagnosis equipment is produced, diagnosis data needs to be imported into the diagnosis equipment to enable the diagnosis equipment to realize the diagnosis function. The diagnosis data can be used in a specific diagnosis equipment only after authorization, so before importing the diagnosis data, an authorization file needs to be generated in a diagnosis data file for the corresponding diagnosis equipment, and then the diagnosis data file with the authorization file is imported into the diagnosis equipment; the diagnosis data import process is repeated for different diagnosis equipment, and the whole diagnosis data import process is single and slow, thereby affecting the production speed of the diagnosis equipment. SUMMARY

[0004] The present application aims to provide a data import method and system, an electronic device and a computer readable storage medium to solve the technical problem that the diagnosis data import process in the prior art is single and slow, thereby affecting the diagnosis equipment.

[0005] In a first aspect, the present application provides a data import method, comprising:

[0006] Importing the serial number files of each diagnosis equipment connected with a computer into corresponding category folders respectively;

[0007] Decompressing a diagnosis data compressed package pre-existing in the computer into each category folder to obtain a first diagnosis data file;

[0008] Generating an authorization file using the serial number file and the first diagnosis data file in each category folder respectively;

[0009] Importing a diagnosis data compressed package pre-existing in the computer into each diagnosis equipment connected with the computer and decompressing to obtain a second diagnosis data file;

[0010] Executing a batch import command on all authorization files to import each authorization file into the second diagnosis data file of the corresponding diagnosis equipment.

[0011] As an embodiment of the present application, before the step of importing the serial number file of each diagnostic device connected to the computer into the corresponding category folder, the method further comprises:

[0012] identifying the device number of each diagnostic device connected to the computer, and establishing a category folder corresponding to each device number.

[0013] As an embodiment of the present application, before the step of importing the diagnostic data compression package pre-stored in the computer into each diagnostic device connected to the computer, the method further comprises:

[0014] installing the target software pre-stored in the computer into each diagnostic device connected to the computer, wherein the target software comprises monitoring software.

[0015] As an embodiment of the present application, the first diagnostic data file comprises a plurality of different first vehicle model diagnostic data files, the second diagnostic data file comprises a plurality of different second vehicle model diagnostic data files, and the plurality of different second vehicle model diagnostic data files correspond one-to-one to the plurality of different first vehicle model diagnostic data files; wherein,

[0016] the step of generating an authorization file using the serial number file and the first diagnostic data file in each category folder comprises:

[0017] generating an authorization file using the serial number file in each category folder and a plurality of different first vehicle model diagnostic data files respectively;

[0018] the step of importing each authorization file into the second diagnostic data file of the corresponding diagnostic device comprises:

[0019] importing each authorization file into the second vehicle model diagnostic data file of the corresponding diagnostic device, wherein the serial number file of the diagnostic device is the same as the serial number file used to generate the authorization file, and the second vehicle model diagnostic data file corresponds to the first vehicle model diagnostic data file used to generate the authorization file.

[0020] As an embodiment of the present application, the step of generating an authorization file using the serial number file and the first diagnostic data file in each category folder further comprises:

[0021] storing the authorization file in the first vehicle model diagnostic data file used to generate the authorization file.

[0022] As an embodiment of the present application, before the step of executing the batch import command on all authorization files, the method further comprises:

[0023] recording the storage path of the authorization file;

[0024] determining an import path of the authorization file;

[0025] generating an import command of the authorization file using the storage path and the import path of the authorization file.

[0026] As an embodiment of the present application, the recording the storage path of the authorization file comprises:

[0027] recording a storage path of the category folder in which the authorization file is located in the computer to obtain a first storage path;

[0028] recording a storage path of the authorization file in the category folder to obtain a second storage path;

[0029] splicing the first storage path and the second storage path to form the storage path of the authorization file.

[0030] As an embodiment of the present application, the determining the import path of the authorization file comprises:

[0031] determining a target import diagnostic device based on a serial number file used for generating the authorization file;

[0032] recording a path of the target import diagnostic device connected into the computer as a first import path;

[0033] splicing the first import path and the second storage path to form the import path of the authorization file.

[0034] As an embodiment of the present application, the executing the batch import command on all authorization files comprises:

[0035] establishing a batch file;

[0036] writing the import command of each authorization file into the batch file;

[0037] executing the batch import command on the batch file.

[0038] As an embodiment of the present application, after the writing the import command of each authorization file into the batch file, further comprising:

[0039] arranging authorization files generated by the same serial number file into a group.

[0040] In a second aspect, the present application provides a data import system, comprising:

[0041] a first import module, configured to respectively import serial number files of each diagnostic device connected with a computer into corresponding category folders;

[0042] a decompression module configured to decompress diagnostic data compression packages pre-stored in the computer into the category folders to obtain first diagnostic data files;

[0043] an authorization generation module configured to generate authorization files using the serial number files and the first diagnostic data files in the category folders respectively;

[0044] a second import module configured to import diagnostic data compression packages pre-stored in the computer into the diagnostic devices connected to the computer and decompress to obtain second diagnostic data files;

[0045] a third import module configured to execute a batch import command on all the authorization files to import the second diagnostic data files in the diagnostic devices corresponding to the authorization files.

[0046] In a third aspect, the present application provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method of the first aspect is implemented.

[0047] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, wherein when the computer program is executed by a processor, the method of the first aspect is implemented.

[0048] The embodiments of the present application have the following beneficial effects:

[0049] In the present application, when the diagnostic device is connected to the computer, the serial number files of each diagnostic device are respectively imported into the corresponding category folder, and the diagnostic data compressed package pre-existing in the computer is decompressed into each category folder, so that the first diagnostic data files in each category folder are the same and the serial number files are different; then the serial number files and the first diagnostic data files in each category folder are used to generate authorization files, so as to generate authorization files of diagnostic data for diagnostic devices with different serial number files; after generating authorization files for each diagnostic device connected to the computer, the diagnostic data and the authorization files are separately imported into the diagnostic device, the diagnostic data is imported into each diagnostic device through the format of the diagnostic data compressed package pre-existing in the computer, and the second diagnostic data file is obtained by decompressing the diagnostic data compressed package in each diagnostic device, so that the first diagnostic data file in the category folder is the same as the second diagnostic data file in the diagnostic device, and the import speed of the diagnostic data is improved; the import of the authorization file is imported into the second diagnostic data file in the corresponding diagnostic device in a batch import manner, so as to complete the authorization of the second diagnostic data file used in different diagnostic devices. The technical scheme solves the technical problem that the import process of diagnostic data in the prior art is single and slow, and further affects the diagnostic device. BRIEF DESCRIPTION OF DRAWINGS

[0050] In order to more clearly illustrate the technical scheme in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0051] Figure 1 The flowchart of the data import method shown in the embodiments of the present application;

[0052] Figure 2 The structural schematic block diagram of the data import system shown in the embodiments of the present application;

[0053] Figure 3 The structural schematic block diagram of the electronic device shown in the embodiments of the present application;

[0054] Among them: 100, data import system; 10, first import module; 20, decompression module; 30, authorization generation module; 40, second import module; 50, third import module; 601, memory; 602, processor; 603, input device; 604, output device; 605, bus. DETAILED DESCRIPTION

[0055] In order to make the invention purposes, features, advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.

[0056] Referring to Figure 1 The present application provides a data import method, comprising:

[0057] S1, importing the serial number files of each diagnostic device connected with the computer into the corresponding category folder respectively;

[0058] S2, decompressing the diagnostic data compression package pre-existing in the computer into each category folder to obtain a first diagnostic data file;

[0059] S3, generating an authorization file by using the serial number file and the first diagnostic data file in each category folder respectively;

[0060] S4, importing the diagnostic data compression package pre-existing in the computer into each diagnostic device and obtaining a second diagnostic data file by decompression;

[0061] S5, executing a batch import command on all authorization files to make each authorization file import the second diagnostic data file in the corresponding diagnostic device.

[0062] It should be noted that each diagnostic device has a unique serial number file, and the serial number file is used to indicate the identity of the diagnostic device.

[0063] In the present application, when the diagnostic device is connected to the computer, the serial number files of each diagnostic device are respectively imported into the corresponding category folder, and the diagnostic data compressed package pre-existing in the computer is decompressed into each category folder, so that the first diagnostic data files in each category folder are the same and the serial number files are different; then the serial number files and the first diagnostic data files in each category folder are used to generate authorization files, so as to generate authorization files of diagnostic data for diagnostic devices with different serial number files; after generating authorization files for each diagnostic device connected to the computer, the diagnostic data and the authorization files are separately imported into the diagnostic device, the diagnostic data is imported into each diagnostic device through the format of the diagnostic data compressed package pre-existing in the computer, and then the diagnostic data compressed package is decompressed in each diagnostic device to obtain a second diagnostic data file, so that the first diagnostic data file in the category folder is the same as the second diagnostic data file in the diagnostic device, which is equivalent to importing the first diagnostic data file into the diagnostic device, thereby improving the import speed of the diagnostic data; the import of the authorization file is imported into the second diagnostic data file in the corresponding diagnostic device in a batch import manner, thereby completing the authorization of the second diagnostic data file used in different diagnostic devices. The technical scheme solves the technical problem that the import process of diagnostic data in the prior art is single and slow, and further affects the diagnostic device.

[0064] In some specific embodiments, after the second diagnostic data file is obtained by decompression, the data import method further comprises:

[0065] The diagnostic data compressed package in the diagnostic device is deleted.

[0066] After the diagnostic data compressed package is decompressed in the diagnostic device, the second diagnostic data file is stored in the diagnostic device, so that the diagnostic data compressed package in the diagnostic device can be deleted to reduce the occupation of the memory in the diagnostic device.

[0067] In one embodiment, before the serial number files of each diagnostic device connected to the computer are respectively imported into the corresponding category folder, the method further comprises:

[0068] The device number of each diagnostic device connected to the computer is identified, and a category folder is established corresponding to each device number.

[0069] The embodiment shows a method for establishing a category folder. After connecting multiple diagnostic devices to a computer, the device numbers of the diagnostic devices are identified, and a category folder is established for each diagnostic device according to the device number of the diagnostic device. The embodiment establishes a category folder based on the device number of the diagnostic device, so that when a serial number file is imported, the category folder has a clear target, and the serial number file can be accurately imported into the category folder.

[0070] For example, when ten diagnostic devices are connected to the computer, ten different device numbers are obtained by identifying the ten diagnostic devices, and ten different category folders are established based on the ten device numbers, so that the ten category folders correspond to the device numbers of the ten diagnostic devices one by one; and the serial number files of the ten diagnostic devices are accurately imported into the ten category folders one by one.

[0071] In an embodiment, the first diagnostic data file includes multiple different first vehicle type diagnostic data files, and the second diagnostic data file includes multiple different second vehicle type diagnostic data files, which correspond to the multiple different first vehicle type diagnostic data files one by one.

[0072] For example, the first diagnostic data file includes A vehicle type diagnostic data file, B vehicle type diagnostic data, and C vehicle type diagnostic data file; the second diagnostic data file also includes A vehicle type diagnostic data file, B vehicle type diagnostic data, and C vehicle type diagnostic data file; to distinguish the storage location, the A vehicle type diagnostic data file, B vehicle type diagnostic data, and C vehicle type diagnostic data file stored in the category file are defined as the first vehicle type diagnostic data file, and the A vehicle type diagnostic data file, B vehicle type diagnostic data, and C vehicle type diagnostic data file stored in the diagnostic device are defined as the second vehicle type diagnostic data file.

[0073] Correspondingly, the generating of the authorization file by using the serial number file and the first diagnostic data file in each category folder respectively includes:

[0074] The serial number file in each category folder is used to generate an authorization file with multiple different first vehicle type diagnostic data files respectively.

[0075] For example, the first vehicle type diagnostic data file in each category folder is three, so the serial number file in one category folder is used to generate three authorization files with three first vehicle type diagnostic data files respectively; when the category folder is ten, a total of thirty authorization files are generated.

[0076] Correspondingly, the importing of the authorization file into the second diagnostic data file of the corresponding diagnostic device is specifically:

[0077] importing each authorization file into a second vehicle model diagnosis data file of a corresponding diagnosis device, wherein the sequence number file of the diagnosis device is the same as the sequence number file used to generate the authorization file, and the second vehicle model diagnosis data file corresponds to the first vehicle model diagnosis data file used to generate the authorization file.

[0078] Specifically, if an authorization file is generated by an A sequence number file and an A vehicle model diagnosis data file in a category folder, the authorization file is imported into an A vehicle model file in a diagnosis device with the sequence number file being the A sequence number file, so that the A vehicle model diagnosis data can be authorized to run in the diagnosis device with the A sequence number file. Each authorization file is imported into a second vehicle model diagnosis data file of a corresponding diagnosis device to enable any second vehicle model diagnosis data file in any diagnosis device to run.

[0079] In an embodiment, the generating of the authorization file using the sequence number file and the first diagnosis data file in each of the category folders respectively further comprises:

[0080] storing the authorization file in the first vehicle model diagnosis data file used to generate the authorization file.

[0081] The embodiment limits the storage location of the authorization file after generation. As known from the above, one sequence number file corresponds to multiple authorization files, and one first vehicle model diagnosis data file corresponds to one authorization file. Therefore, the authorization file is stored in the first vehicle model diagnosis data file used to generate the authorization file, thereby avoiding disarray in the storage of the authorization files and further avoiding disarray in the subsequent batch import of the authorization files into the diagnosis devices.

[0082] In an embodiment, before the executing of the batch import command on all the authorization files, further comprising:

[0083] recording a storage path of the authorization file;

[0084] determining an import path of the authorization file;

[0085] generating an import command of the authorization file using the storage path and the import path of the authorization file.

[0086] In the embodiment, before the batch import of the authorization file into the corresponding diagnosis device, the current storage path of the authorization file is recorded, i.e., the location where the authorization file is stored is recorded. Then, the import path of the authorization file is determined, i.e., the location where the authorization file is to be imported is determined. Then, the import command of the authorization file is generated using the storage path and the import path of the authorization file, thereby accurately importing the authorization file into the second vehicle model diagnosis data file in the corresponding diagnosis device.

[0087] In an embodiment, the recording the storage path of the authorization file comprises:

[0088] recording a storage path of the category folder in the computer, obtaining a first storage path;

[0089] recording a storage path of the authorization file in the category folder, obtaining a second storage path;

[0090] splicing the first storage path and the second storage path to form the storage path of the authorization file.

[0091] In the embodiment, the category file is stored in the computer, the first vehicle model diagnosis data file is stored in the category folder, and the authorization file is stored in the first vehicle model diagnosis data file. Therefore, the storage path of the authorization file is divided into the storage path of the category folder in the computer and the storage path of the authorization file in the category folder, to obtain the first storage path and the second storage path, and then the first storage path and the second storage path are spliced to form the storage path of the authorization file. The embodiment records the storage path of the authorization file in segments, which facilitates the inspection and correction of the storage path of the authorization file.

[0092] In an embodiment, the determining the import path of the authorization file comprises:

[0093] determining a target import diagnosis device based on a serial number file used for generating the authorization file;

[0094] recording a path of the target import diagnosis device connected into the computer as a first import path;

[0095] splicing the first import path and the second storage path to form the import path of the authorization file.

[0096] In the embodiment, the diagnostic device is connected to the computer, the second vehicle model diagnostic data file is stored in the diagnostic device, and the authorization file needs to be imported into the second vehicle model diagnostic data file, that is, the import path of the authorization file is computer→diagnostic device→second vehicle model diagnostic data file. Therefore, firstly, it is necessary to determine into which diagnostic device the authorization file is imported. In the embodiment, the target import diagnostic device is determined based on the serial number file used to generate the authorization file, that is, the serial number file used to generate the authorization file corresponds to the serial number of which diagnostic device, and the diagnostic device is the target import diagnostic device. Secondly, it is necessary to determine into which second vehicle model diagnostic data file of the target diagnostic device the authorization file is imported. Since the authorization file is stored in the first vehicle model diagnostic data file used to generate the authorization file after the authorization file is generated, and the first vehicle model diagnostic data file in the category folder is the same as the second vehicle model diagnostic data file in the diagnostic device, it can be known through the second storage path of the authorization file that the authorization file needs to be imported into which second vehicle model diagnostic data file in the diagnostic device, that is, the first import path and the second storage path are spliced to form the import path of the authorization file. By using the technical solution in the embodiment, the directory of the second vehicle model diagnostic data file of the diagnostic device does not need to be traversed, and the import path of the authorization file can be obtained.

[0097] In an embodiment, the performing the batch import command on all authorization files comprises:

[0098] establishing a batch file;

[0099] writing the import command of each authorization file into the batch file;

[0100] performing the batch import command on the batch file.

[0101] In the embodiment, the import command of all authorization files is written into the batch file, and the batch import command is performed on the batch file, so that all authorization files can be imported into the corresponding second vehicle model diagnostic data file in the corresponding diagnostic device.

[0102] In an embodiment, after the writing of the import command of each authorization file into the batch file, further comprising:

[0103] arranging authorization files generated by the same serial number file into a group.

[0104] In the embodiment, the authorization files generated by the same serial number file are arranged into a group, thus the authorization files imported into the same diagnostic device are arranged together, and when a batch import command is executed on the authorization files, the authorization files of the same diagnostic device are imported first, and then the authorization files of another diagnostic device are imported, so that the import of the authorization files is orderly, the error of the import is reduced, and subsequent troubleshooting is facilitated.

[0105] In an embodiment, before the diagnostic data compression package pre-existing in the computer is imported into each diagnostic device, the method further comprises:

[0106] The target software pre-existing in the computer is installed on each diagnostic device, and the target software comprises monitoring software.

[0107] In the embodiment, before the diagnostic data compression package and the authorization file are imported into the diagnostic device, the target software pre-existing in the computer is installed on each diagnostic device, and the target software package comprises monitoring software, so that the import of the diagnostic data compression package and the authorization file can be monitored by the monitoring software in the diagnostic device. For example, the monitoring software can monitor the import progress of the diagnostic data compression package, the import progress of the authorization file, and the import quantity of the authorization file. When the import progress of the diagnostic data compression package is 100% and the import progress of the authorization file is 100%, it is indicated that the data import of the diagnostic device is completed, and the diagnostic device and the computer can be disconnected. When the import quantity of the authorization file is inconsistent with the quantity of the second vehicle model diagnostic data file in the diagnostic device, it is indicated that the quantity of the authorization files in the same batch is different, and the import has a problem, and subsequent troubleshooting is required. The technical problem that the computer needs to monitor the data import of multiple diagnostic devices and multiple windows appear on the computer, so that the monitoring display is messy and not targeted is avoided.

[0108] In some specific embodiments, the target software further comprises diagnostic system software, diagnostic function software, and test software.

[0109] In some specific embodiments, when the target software is installed, an adb (Android Debug Bridge) command is used to automatically install the target software.

[0110] Referring to Figure 2 The application further provides a data import system 100, comprising:

[0111] The first import module 10 is configured to import the serial number files of each diagnostic device connected to the computer into corresponding category folders respectively.

[0112] a decompression module 20 configured to decompress diagnostic data compression packages pre-stored in the computer into the category folders to obtain first diagnostic data files;

[0113] an authorization generation module 30 configured to generate authorization files using the serial number files and the first diagnostic data files in the category folders respectively;

[0114] a second import module 40 configured to import diagnostic data compression packages pre-stored in the computer into the diagnostic devices connected to the computer and decompress to obtain second diagnostic data files;

[0115] a third import module 50 configured to execute a batch import command on all the authorization files to import the second diagnostic data files in the corresponding diagnostic devices.

[0116] In an embodiment, the data import system 100 further comprises a folder establishment module configured to identify device numbers of the diagnostic devices connected to the computer and establish category folders corresponding to the device numbers.

[0117] In an embodiment, the data import system 100 further comprises an installation module configured to install target software pre-stored in the computer into the diagnostic devices connected to the computer, wherein the target software comprises monitoring software.

[0118] In an embodiment, the authorization generation module 30 comprises a generation unit and a storage unit, wherein the generation unit is configured to generate authorization files using the serial number files in the category folders and the first diagnostic data files of different vehicle models respectively; and the storage unit is configured to store the authorization files in the first diagnostic data files of the vehicle models used to generate the authorization files.

[0119] In an embodiment, the data import system 100 further comprises a path recording module, a path determination module and a command generation module, wherein the path recording module is configured to record storage paths of the authorization files; the path determination module is configured to determine import paths of the authorization files; and the command generation module is configured to generate import commands of the authorization files using the storage paths and the import paths of the authorization files.

[0120] In an embodiment, the path recording module comprises a first recording unit, a second recording unit and a first splicing unit, wherein the first recording unit is configured to record storage paths of the category folders in the computer to obtain first storage paths; the second recording unit is configured to record storage paths of the authorization files in the category folders to obtain second storage paths; and the first splicing unit is configured to splice the first storage paths and the second storage paths to form the storage paths of the authorization files.

[0121] In an embodiment, the path determining module comprises a determining unit, a third recording unit and a second splicing unit, the determining unit is configured to determine the target import diagnosis device based on the serial number file used for generating the authorization file; the third recording unit is configured to record a path of the target import diagnosis device connected into the computer as a first import path; and the second splicing unit is configured to splice the first import path and the second storage path to form the import path of the authorization file.

[0122] In an embodiment, the third import module 50 comprises an establishing unit, a writing unit and an executing unit, the establishing unit is configured to establish a batch file; the writing unit is configured to write the import command of each authorization file into the batch file; and the executing unit is configured to execute the batch import command on the batch file.

[0123] In an embodiment, the third import module 50 further comprises an arranging unit, which arranges the authorization files generated by the same serial number file into a group.

[0124] Referring to Figure 3 The electronic device further comprises a memory 601, a processor 602 and a computer program stored in the memory 601 and executable on the processor 602, and the processor 602 implements the data import method and system described in the foregoing embodiments when executing the computer program.

[0125] Further, the electronic device further comprises at least one input device 603 and at least one output device 604.

[0126] The memory 601, the processor 602, the input device 603 and the output device 604 are connected through a bus 605.

[0127] The input device 603 can be a camera, a touch panel, a physical button or a mouse, etc. The output device 604 can be a display screen.

[0128] The memory 601 can be a high-speed random access memory (RAM) or a non-volatile memory such as a disk memory. The memory 601 is used to store a set of executable program codes, and the processor 602 is coupled to the memory 601.

[0129] Further, the embodiments of the present application further provide a computer readable storage medium, which can be arranged in the electronic device in the above-mentioned embodiments, and the computer readable storage medium can be the memory 601 in the foregoing. The computer readable storage medium has a computer program stored thereon, and the program is executed by the processor 602 to implement the data import method described in the foregoing embodiments.

[0130] Further, the computer readable storage medium can also be a U disk, a mobile hard disk, a read-only memory 601 (ROM, Read-Only Memory), a RAM, a magnetic disk or an optical disk, and various media that can store program codes.

[0131] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the above-described apparatus embodiments are merely schematic, and the division of the modules is merely a logical function division, and there can be another division manner in actual implementation, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection can be indirect coupling or communication connection through some interfaces, devices or modules, and can be electrical, mechanical or other forms.

[0132] The modules illustrated as separated components can or can not be physically separated, and the components illustrated as modules can or can not be physical modules, that is, can be located in one place, or can be distributed to a plurality of network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0133] In addition, each functional module in each embodiment of the present application can be integrated in one processing module, or each module can exist physically independently, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.

[0134] The integrated module, if realized in the form of a software functional module and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application, essentially or the part that contributes to the prior art, or the whole or part of the technical solutions can be embodied in the form of a software product.

[0135] It should be noted that, for the foregoing method embodiments, the sequence of the described acts is merely an example and can be changed as necessary. One of ordinary skill in the art would recognize that the described embodiments can be implemented by one or more computing devices, and accordingly, the acts described can be implemented across devices by various hardware and software configurations. Moreover, acts described herein can be implemented using software or hardware configurations that are different from those described. It should also be noted that the described acts can be performed in parallel, or in an order different than that described.

[0136] In the above embodiments, the description of each embodiment focuses on different aspects, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0137] The above is the description of the data import method, system, electronic device and computer readable storage medium provided by the present application. For those skilled in the art, according to the idea of the embodiments of the present application, there will be changes in specific implementation and application range. In summary, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A data import method, characterized in that, include: Import the serial number files of each diagnostic device connected to the computer into their respective category folders; The pre-stored diagnostic data compressed package on the computer is decompressed into the respective category folders to obtain the first diagnostic data file; Generate authorization files using the serial number files and the first diagnostic data files from each of the aforementioned category folders; Import the pre-stored diagnostic data compressed package into each diagnostic device connected to the computer, and decompress it to obtain the second diagnostic data file; Execute a batch import command on all licensed files to import each licensed file into the second diagnostic data file of the corresponding diagnostic device; The first diagnostic data file includes multiple different first vehicle model diagnostic data files, and the second diagnostic data file includes multiple different second vehicle model diagnostic data files. The multiple different second vehicle model diagnostic data files correspond one-to-one with the multiple different first vehicle model diagnostic data files. Before importing the serial number files of each diagnostic device connected to the computer into their respective category folders, the process also includes: Identify the device number of each diagnostic device connected to the computer and create a category folder for each device number.

2. The data import method according to claim 1, characterized in that, Before importing the pre-stored diagnostic data compressed package into the various diagnostic devices connected to the computer, the method further includes: The target software, which is pre-stored in the computer, is installed into each of the diagnostic devices connected to the computer. The target software includes monitoring software.

3. The data import method according to claim 1, characterized in that, The step of generating authorization files using the serial number files and the first diagnostic data files in each of the respective category folders includes: Each serial number file in its respective category folder is used to generate an authorization file with multiple different diagnostic data files for the first vehicle model. The specific steps of importing each authorized file into the second diagnostic data file of the corresponding diagnostic device are as follows: Each authorization file is imported into the second vehicle model diagnostic data file of the corresponding diagnostic device, wherein the serial number file of the diagnostic device is the same as the serial number file used to generate the authorization file, and the second vehicle model diagnostic data file corresponds to the first vehicle model diagnostic data file used to generate the authorization file.

4. The data import method according to claim 3, characterized in that, The step of generating authorization files using the serial number files and the first diagnostic data files in each of the respective category folders also includes: The authorization file is stored in the first vehicle diagnostic data file used to generate the authorization file.

5. The data import method according to claim 4, characterized in that, Before executing the batch import command on all licensed files, the following is also included: Record the storage path of the authorization file; Determine the import path for the license file; The import command for each license file is generated using its storage path and import path.

6. The data import method according to claim 5, characterized in that, The storage path for the authorization file is included in the record: Record the storage path of the category folder containing the authorized file on the computer to obtain the first storage path; Record the storage path of the authorized file in the category folder to obtain the second storage path; The first storage path and the second storage path are concatenated to form the storage path of the authorization file.

7. The data import method according to claim 6, characterized in that, Determining the import path of the authorization file includes: Based on the serial number file used to generate the authorization file, the target import diagnostic device is determined; Record the path through which the target diagnostic device is connected to the computer, and denote it as the first import path; The first import path and the second storage path are concatenated to form the import path of the authorization file.

8. The data import method according to claim 5, characterized in that, The step of executing the batch import command on all licensed files includes: Create a batch file; Write the import commands for each license file into the batch file; Execute a batch import command on the batch file.

9. The data import method according to claim 8, characterized in that, After writing the import commands for each license file into the batch file, the process further includes: The license files generated from the same serial number file are grouped together.

10. A data import system, characterized in that, include: The first import module is used to import the serial number files of each diagnostic device connected to the computer into the corresponding category folder; The decompression module is used to decompress the pre-stored diagnostic data compressed package in the computer into each of the aforementioned category folders to obtain the first diagnostic data file; The authorization generation module is used to generate authorization files using the serial number files and the first diagnostic data files in each of the aforementioned category folders, respectively. The second import module is used to import the pre-stored diagnostic data compressed package into various diagnostic devices connected to the computer, and decompress it to obtain the second diagnostic data file. The third import module is used to execute batch import commands on all licensed files, so that each licensed file is imported into the second diagnostic data file in the corresponding diagnostic device. The first diagnostic data file includes multiple different first vehicle model diagnostic data files, and the second diagnostic data file includes multiple different second vehicle model diagnostic data files, with each of the multiple different second vehicle model diagnostic data files corresponding one-to-one with the multiple different first vehicle model diagnostic data files; The data import system also includes a folder creation module, which is used to identify the device number of each diagnostic device connected to the computer and create category folders for each device number.

11. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements the method of any one of claims 1-9.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1-9.

Citation Information

Patent Citations

  • File processing method, file processing device, diagnosis equipment and electronic equipment

    CN111813754A

  • Electric power metering equipment application software loading management and control method and device

    CN112395021A