Vehicle diagnosis method, device and equipment and storage medium

By obtaining the device serial number and MAC address, determining the online status and registering or authentication document management, the user management and permission control of vehicle diagnostic equipment in a network-free environment is solved, improving the safety of diagnostic equipment and reducing maintenance costs.

CN120281597APending Publication Date: 2025-07-08LAUNCH TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510474704.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-15
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

Existing vehicle diagnostic equipment cannot effectively manage and control user rights in a network-free environment, resulting in an increase in after-sales maintenance costs.

Method used

By obtaining the device serial number and computer MAC address of the diagnostic device, the online status of the target computer is judged, the registration or authentication documents are managed offline, and the vehicle diagnosis is carried out after the preset conditions are met.

Benefits of technology

It realizes flexible user management and permission control in online or offline scenarios, improves the safety of diagnostic equipment, and reduces after-sales maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120281597A_ABST
    Figure CN120281597A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle diagnosis method, device and equipment and a storage medium, and relates to the technical field of vehicle diagnos.The vehicle diagnosis method comprises the steps that when operation of diagnosis equipment is monitored, an equipment serial number corresponding to the diagnosis equipment and a computer MAC address of a target computer operating the diagnosis equipment are obtained, and whether the target computer is in an online state or not is judged; if the device is in the online state, judging whether the serial number of the device is registered or not; if the to-be-diagnosed vehicle is not registered, performing registration based on the user information, the equipment serial number and the computer MAC address, and performing vehicle diagnosis on the to-be-diagnosed vehicle based on the preset authentication file and the diagnosis equipment after the registration succeeds; if not, judging whether the diagnosis equipment has a preset authentication file or not; if yes, judging whether the preset authentication file meets a corresponding preset information consistency condition, a preset offline legal condition and a preset offline use condition or not; and if yes, performing vehicle diagnosis on the to-be-diagnosed vehicle based on a preset configuration code. And dependence on a network environment is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle diagnosis, and particularly to a vehicle diagnosis method, device, equipment and storage medium. Background Art

[0002] With the continuous development of automotive electronics, the use of vehicle diagnostic equipment has become increasingly frequent, and diagnostic scenarios have become increasingly complex. The requirements for the safety and permission control of equipment have also become higher and higher. Vehicle manufacturers usually control diagnostic equipment to prohibit the use of illegal equipment and improve the brand image. A common approach is to adopt an online authentication method, that is, the user is required to log in and authenticate each time the diagnostic equipment is used, and only the equipment that passes the authentication can enter vehicle diagnosis. However, the diagnostic scenario is not fixed, and not all scenarios have a good network environment. For example, in remote area rescue, diagnosis cannot be entered without a network, which greatly affects user maintenance and increases after-sales maintenance costs.

[0003] As can be seen from the above, how to avoid relying on the network environment during vehicle diagnosis is an urgent problem to be solved at present. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a vehicle diagnosis method, device, equipment and storage medium, which can avoid relying on the network environment during vehicle diagnosis. The specific solutions are as follows:

[0005] In a first aspect, the present application provides a vehicle diagnosis method, including:

[0006] When it is detected that the diagnostic equipment is running, obtain the device serial number corresponding to the diagnostic equipment and the computer MAC address of the target computer running the diagnostic equipment, and determine whether the target computer is in an online state;

[0007] If the target computer is in an online state, determine whether the device serial number is registered;

[0008] If the device serial number is not registered, register based on the input user information, the device serial number and the computer MAC address, and perform vehicle diagnosis on the vehicle to be diagnosed based on a preset authentication file and the diagnostic equipment after successful registration; the preset authentication file includes the user information, the device serial number, the computer MAC address and the offline usage times;

[0009] If the target computer is not in an online state, determine whether the preset authentication file exists in the diagnostic equipment;

[0010] If the preset authentication file exists in the diagnostic device, determine whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline usage condition;

[0011] If the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline usage condition, perform vehicle diagnosis on the vehicle to be diagnosed based on the preset configuration code.

[0012] Optionally, after determining whether the device serial number is registered, it further includes:

[0013] If the device serial number is registered, obtain the registered serial number and registered MAC address during registration, and determine whether the registered serial number, the registered MAC address, the device serial number, and the computer MAC address are consistent;

[0014] If they are consistent, update the preset authentication file;

[0015] If they are inconsistent, prompt the user terminal to input the user name and password corresponding to the diagnostic device, and verify the input user name and password;

[0016] If the verification passes, obtain the preset configuration code through the diagnostic device, and upload the preset configuration code to the server, so that the server determines whether the vehicle to be diagnosed is a diagnosable vehicle based on the vehicle configuration information in the preset configuration code;

[0017] If the vehicle to be diagnosed is a diagnosable vehicle, it indicates that the user terminal has the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and use the diagnostic device to perform vehicle diagnosis on the vehicle to be diagnosed;

[0018] If the vehicle to be diagnosed is not a diagnosable vehicle, prompt that the user terminal does not have the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and exit the diagnostic device.

[0019] Optionally, before obtaining the preset configuration code through the diagnostic device, it further includes:

[0020] Monitor whether there is a vehicle production process completion event;

[0021] If it is monitored that there is a vehicle production process completion event, write the vehicle configuration information corresponding to the vehicle into the preset configuration code;

[0022] Wherein, the vehicle configuration information includes vehicle series and vehicle model.

[0023] Optionally, if the device serial number is not registered, registration based on the input user information, the device serial number, and the computer MAC address includes:

[0024] If the device serial number is not registered, upload the user information input by the client, the device serial number, and the computer MAC address to the server for registration;

[0025] Correspondingly, before performing vehicle diagnosis on the vehicle to be diagnosed based on the preset authentication file and the diagnostic device after successful registration, it further includes:

[0026] After successful registration, create a preset authentication file including the user information, the device serial number, the computer MAC address, the last online time, the offline usage end time, and the offline usage times through the server, and send the preset authentication file to the diagnostic device based on a preset data format;

[0027] Receive the preset authentication file through the diagnostic device, then encrypt the preset authentication file to obtain an encrypted authentication file, and store the encrypted authentication file in the local storage center of the diagnostic device.

[0028] Optionally, if the preset authentication file exists in the diagnostic device, determine whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline usage condition, including:

[0029] If the preset authentication file exists in the diagnostic device, decrypt the encrypted authentication file with preset key information to obtain the preset authentication file;

[0030] Determine the device serial number corresponding to the diagnostic device as the real serial number, and determine the computer MAC address of the target computer running the diagnostic device as the real MAC address;

[0031] Parse the preset authentication file, and determine whether the device serial number and computer MAC address obtained by parsing are consistent with the real serial number and the real MAC address;

[0032] If the device serial number obtained by parsing is inconsistent with the real serial number, and the computer MAC address obtained by parsing is consistent with the real MAC address, exit the diagnostic device;

[0033] If the device serial number obtained by parsing is consistent with the real serial number, and the computer MAC address obtained by parsing is inconsistent with the real MAC address, prompt the client to re-enter the user information at the time of registration, and verify the user information;

[0034] If the verification is passed, it is determined whether the file creation time corresponding to the preset authentication file meets the preset offline legal condition, and whether the offline usage times in the preset authentication file meet the preset offline usage condition.

[0035] Optionally, determining whether the file creation time corresponding to the preset authentication file meets the preset offline legal condition, and whether the offline usage times in the preset authentication file meet the preset offline usage condition includes:

[0036] Obtain the file creation time corresponding to the preset authentication file and the offline sustainable time, and determine the offline legal time based on the file creation time and the offline sustainable time;

[0037] Obtain the current time, and determine whether the current time is within the offline legal time;

[0038] If the current time is within the offline legal time, it indicates that the file creation time corresponding to the preset authentication file meets the preset offline legal condition, and determine whether the offline usage times in the preset authentication file is a preset value;

[0039] If the offline usage times is the preset value, it indicates that the target computer cannot be used in the offline state;

[0040] If the offline usage times is not the preset value, perform vehicle diagnosis on the vehicle to be diagnosed based on the preset configuration code;

[0041] If the current time is not within the offline legal time, exit the diagnostic device.

[0042] Optionally, if the offline usage times is not the preset value, performing vehicle diagnosis on the vehicle to be diagnosed based on the preset configuration code includes:

[0043] If the offline usage times is not the preset value, determine whether the vehicle to be diagnosed is a diagnosable vehicle based on the preset configuration code;

[0044] If the vehicle to be diagnosed is a diagnosable vehicle, it indicates that the client has the permission to perform vehicle diagnosis on the vehicle to be diagnosed, use the diagnostic device to perform vehicle diagnosis on the vehicle to be diagnosed, and update the offline usage times after the vehicle diagnosis is completed;

[0045] If the vehicle to be diagnosed is not a diagnosable vehicle, prompt that the client does not have the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and exit the diagnostic device.

[0046] In a second aspect, the present application provides a vehicle diagnosis device, including:

[0047] A computer status judgment module, which is used to obtain the device serial number corresponding to the diagnostic device and the computer MAC address of the target computer running the diagnostic device when it monitors the operation of the diagnostic device, and judge whether the target computer is in an online state;

[0048] A device serial number judgment module, which is used to judge whether the device serial number is registered if the target computer is in an online state;

[0049] A device serial number registration module, which is used to register based on the input user information, the device serial number and the computer MAC address if the device serial number is not registered, and perform vehicle diagnosis on the vehicle to be diagnosed based on a preset authentication file and the diagnostic device after successful registration; the preset authentication file includes the user information, the device serial number, the computer MAC address and the offline usage times;

[0050] An authentication file judgment module, which is used to judge whether the preset authentication file exists in the diagnostic device if the target computer is not in an online state;

[0051] An offline condition judgment module, which is used to judge whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition and preset offline usage condition if the preset authentication file exists in the diagnostic device;

[0052] A vehicle diagnosis module, which is used to perform vehicle diagnosis on the vehicle to be diagnosed based on a preset configuration code if the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition and preset offline usage condition.

[0053] In a third aspect, the present application provides an electronic device, including:

[0054] A memory, which is used to store a computer program;

[0055] A processor, which is used to execute the computer program to implement the foregoing vehicle diagnosis method.

[0056] In a fourth aspect, the present application provides a computer-readable storage medium, which is used to store a computer program, wherein the computer program, when executed by a processor, implements the foregoing vehicle diagnosis method.

[0057] When this application detects the operation of the diagnostic device, it obtains the device serial number corresponding to the diagnostic device and the computer MAC address of the target computer running the diagnostic device, and determines whether the target computer is in an online state; if the target computer is in an online state, it determines whether the device serial number is registered; if the device serial number is not registered, it performs registration based on the input user information, the device serial number, and the computer MAC address, and after successful registration, performs vehicle diagnosis on the vehicle to be diagnosed based on a preset authentication file and the diagnostic device; the preset authentication file includes the user information, the device serial number, the computer MAC address, and the number of offline usage times; if the target computer is not in an online state, it determines whether the preset authentication file exists in the diagnostic device; if the preset authentication file exists in the diagnostic device, it determines whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline usage condition; if the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline usage condition, it performs vehicle diagnosis on the vehicle to be diagnosed based on a preset configuration code.

[0058] As can be seen from the above, this application first determines whether the target computer corresponding to the diagnostic device during execution is in an online state; if the target computer is in an online state, it determines whether the device serial number corresponding to the diagnostic device is registered; if the device serial number is not registered, it performs registration based on the user information and the device serial number, and after successful registration, performs vehicle diagnosis on the vehicle to be diagnosed based on a preset authentication file and the diagnostic device; if the target computer is not in an online state, it indicates that the target computer is in an offline state, and determines whether the preset authentication file exists in the diagnostic device; if the preset authentication file exists in the diagnostic device, it determines whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline usage condition; if all are met, it performs vehicle diagnosis on the vehicle to be diagnosed based on a preset configuration code. In this way, regardless of whether the vehicle diagnosis scenario is online or offline, effective user management and permission control can be carried out through flexible configuration, thereby performing vehicle diagnosis, greatly improving the security of the diagnostic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0060] Figure 1 It is a flowchart of a vehicle diagnosis method disclosed in this application;

[0061] Figure 2 A schematic diagram of a preset configuration code provided for this application;

[0062] Figure 3 A schematic diagram of a preset authentication file provided for this application;

[0063] Figure 4 A flowchart of a specific vehicle diagnosis method disclosed in this application;

[0064] Figure 5 A schematic diagram of the structure of a vehicle diagnosis device disclosed in this application;

[0065] Figure 6 A structural diagram of an electronic device disclosed in this application. Detailed implementation manners

[0066] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0067] At present, the automotive diagnosis scenario is becoming more and more complex, and the requirements for the security and permission control of equipment are also getting higher and higher. The vehicle manufacturers usually control the diagnosis equipment, prohibit the use of illegal equipment, and improve the brand image. The prior art adopts the online authentication method, that is, the user is required to log in and authenticate every time the diagnosis equipment is used, and only the equipment that passes the authentication can enter the vehicle diagnosis; however, not all diagnosis scenarios have a good network environment. For example, when performing out-of-town rescue in a remote area, diagnosis cannot be entered without a network. Therefore, this application provides a vehicle diagnosis method, which can effectively manage users and control permissions through flexible configuration whether the vehicle diagnosis scenario is online or offline, so as to perform vehicle diagnosis, greatly improving the security of the diagnosis equipment.

[0068] See Figure 1 As shown, the embodiments of the present invention disclose a vehicle diagnosis method, including:

[0069] Step S11: When it is monitored that the diagnosis device is running, obtain the device serial number corresponding to the diagnosis device and the computer MAC address of the target computer running the diagnosis device, and determine whether the target computer is in an online state.

[0070] In this embodiment, when it is detected that the diagnostic device is running, the device serial number of the diagnostic device is obtained; the device serial number is the unique identification code (i.e., SN) of the diagnostic device, and the device serial number is non-replicable. Then, the target computer running the diagnostic device is determined, and the computer MAC (Media Access Control) address corresponding to the target computer is obtained; the computer MAC address is the physical address of the network card and is used to uniquely identify a network interface card in the network. After obtaining the device serial number and the computer MAC address, it is determined whether the target computer is in an online state; it can be checked whether the target computer is in an online state through the network connection icon or network management tool in the operating system.

[0071] Step S12: If the target computer is in an online state, it is determined whether the device serial number is registered.

[0072] In this embodiment, after determining whether the target computer is in an online state, if the target computer is in an online state, the device serial number and the computer MAC address are uploaded to the server so that the server can determine whether the device serial number is registered; if the device serial number is registered, the registered serial number and the registered MAC address at the time of registration are obtained, and it is determined by the server whether the registered serial number, the registered MAC address, the device serial number, and the computer MAC address are consistent; if the registered serial number, the registered MAC address, the device serial number, and the computer MAC address are consistent, the data in the preset authentication file (i.e., the CertificationFile.json file) is updated; if the registered serial number, the registered MAC address, the device serial number, and the computer MAC address are inconsistent, the user terminal is prompted to input a username and password, and the input username and password are verified; if the verification is passed, the preset configuration code is obtained through the diagnostic software and uploaded to the server so that the server can determine whether the vehicle to be diagnosed is a diagnosable vehicle based on the vehicle configuration information in the preset configuration code; if so, it indicates that the user terminal has the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and vehicle diagnosis is performed on the vehicle to be diagnosed; if not, the user terminal is prompted that it does not have the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and the diagnostic device is exited.

[0073] Specifically, after determining whether the device serial number is registered, the following steps are further included: If the device serial number is registered, obtain the registered serial number and registered MAC address during registration, and determine whether the registered serial number, the registered MAC address, the device serial number, and the computer MAC address are consistent; if they are consistent, update the preset authentication file; if they are inconsistent, prompt the user terminal to input the user name and password corresponding to the diagnostic device, and verify the input user name and password; if the verification is passed, obtain a preset configuration code (i.e., ConfigCodeA) through the diagnostic device, and upload the preset configuration code to the server, so that the server determines whether the vehicle to be diagnosed is a diagnosable vehicle based on the vehicle configuration information in the preset configuration code; if the vehicle to be diagnosed is a diagnosable vehicle, it indicates that the user terminal has the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and use the diagnostic device to perform vehicle diagnosis on the vehicle to be diagnosed; if the vehicle to be diagnosed is not a diagnosable vehicle, prompt the user terminal that it does not have the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and exit the diagnostic device.

[0074] It can be understood that the preset configuration code includes the configuration information of the vehicle. To create the preset configuration code, it is necessary to first monitor whether there is an event indicating the completion of the vehicle production process; if there is an event indicating the completion of the vehicle production process, write the vehicle series and model corresponding to the vehicle into the preset configuration code. In a specific embodiment, Figure 2 This is a schematic diagram of a preset configuration code provided in this embodiment. The first two bytes represent the vehicle configuration information of the vehicle. Among them, the first byte represents the vehicle series, and the second byte represents the specific model. For example, 0XF001 indicates that the vehicle is model 1 of vehicle series A. Specifically, before obtaining the preset configuration code through the diagnostic device, the following steps are further included: Monitor whether there is an event indicating the completion of the vehicle production process; if it is monitored that there is an event indicating the completion of the vehicle production process, write the vehicle configuration information corresponding to the vehicle into the preset configuration code; where the vehicle configuration information includes the vehicle series and the model.

[0075] Step S13: If the device serial number is not registered, register based on the input user information, the device serial number, and the computer MAC address, and after successful registration, perform vehicle diagnosis on the vehicle to be diagnosed based on the preset authentication file and the diagnostic device; the preset authentication file includes the user information, the device serial number, the computer MAC address, and the offline usage times.

[0076] In this embodiment, if the device serial number is not registered, the device serial number and the computer MAC address based on the user information input by the client are uploaded to the server to register the diagnostic device through the server. After successful registration, a preset authentication file including the user information, the device serial number, the computer MAC address, the last online time, the offline use end time, and the offline use count is created and sent to the diagnostic device in JSON format. So that the diagnostic device receives the preset authentication file, encrypts the preset authentication file to obtain an encrypted authentication file, and saves the encrypted authentication file to the local of the diagnostic device to perform vehicle diagnosis on the vehicle to be diagnosed based on the preset authentication file and the diagnostic device. Figure 3 It is a schematic diagram of a preset authentication file provided in this embodiment. Among them, username is the user name, password is the password, sn is the registered device serial number, mac is the registered computer MAC address, writetime is the last online time, Offline-sustainabletime is the offline use end time, and Offline-sustainablecount is the offline use count.

[0077] Specifically, if the device serial number is not registered, registration is performed based on the input user information, the device serial number, and the computer MAC address, including: if the device serial number is not registered, the user information, the device serial number, and the computer MAC address input by the client are uploaded to the server for registration; correspondingly, before performing vehicle diagnosis on the vehicle to be diagnosed based on the preset authentication file and the diagnostic device after successful registration, it further includes: after successful registration, a preset authentication file including the user information, the device serial number, the computer MAC address, the last online time, the offline use end time, and the offline use count is created by the server and sent to the diagnostic device based on a preset data format; the diagnostic device receives the preset authentication file, then encrypts the preset authentication file to obtain an encrypted authentication file, and stores the encrypted authentication file in the local storage center of the diagnostic device.

[0078] Step S14: If the target computer is not in an online state, determine whether the preset authentication file exists in the diagnostic device.

[0079] In this embodiment, if the target computer is not in an online state, it indicates that the target computer is in an offline mode. At this time, it is judged whether the encrypted authentication file exists in the local storage center of the diagnostic device; if the encrypted authentication file does not exist in the local storage center of the diagnostic device, the diagnostic device is directly exited.

[0080] Step S15: If the preset authentication file exists in the diagnostic device, determine whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legal condition, and preset offline usage condition.

[0081] In this embodiment, if the preset authentication file exists in the diagnostic device, use the preset key information to decrypt the encrypted authentication file to obtain the preset authentication file. Take the device serial number of the diagnostic device as the true serial number, and take the computer MAC address of the target computer running the diagnostic device as the true MAC address. Then parse the preset authentication file and determine whether the device serial number and computer MAC address obtained by parsing are the same as the true serial number and the true MAC address. If the device serial number obtained by parsing is different from the true serial number and the computer MAC address obtained by parsing is the same as the true MAC address, exit the diagnostic device. If the device serial number obtained by parsing is the same as the true serial number and the computer MAC address obtained by parsing is different from the true MAC address, prompt the client to re-enter the user information at the time of registration on the visualization interface and verify the user information. If the verification passes, further determine whether the file creation time (i.e., create-time) corresponding to the preset authentication file meets the preset offline legal condition, and whether the offline usage times in the preset authentication file meet the preset offline usage condition.

[0082] Specifically, the step of if the preset authentication file exists in the diagnostic device, determine whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legal condition, and preset offline usage condition includes: if the preset authentication file exists in the diagnostic device, decrypt the encrypted authentication file through the preset key information to obtain the preset authentication file; determine the device serial number corresponding to the diagnostic device as the true serial number, and determine the computer MAC address of the target computer running the diagnostic device as the true MAC address; parse the preset authentication file and determine whether the device serial number and computer MAC address obtained by parsing are the same as the true serial number and the true MAC address; if the device serial number obtained by parsing is different from the true serial number and the computer MAC address obtained by parsing is the same as the true MAC address, exit the diagnostic device; if the device serial number obtained by parsing is the same as the true serial number and the computer MAC address obtained by parsing is different from the true MAC address, prompt the client to re-enter the user information at the time of registration and verify the user information; if the verification passes, determine whether the file creation time corresponding to the preset authentication file meets the preset offline legal condition, and whether the offline usage times in the preset authentication file meet the preset offline usage condition.

[0083] It is understandable that if the device serial number and computer MAC address obtained by parsing are consistent with the true serial number and the true MAC address, or the device serial number obtained by parsing is consistent with the true serial number, and the computer MAC address obtained by parsing is inconsistent with the true MAC address, but the user information entered again by the client during registration passes the verification, then obtain the file creation time corresponding to the preset authentication file, and then use the file creation time and the offline sustainable time to obtain the offline legal time, obtain the current time, and determine whether the current time is within the offline legal time; if the current time is within the offline legal time, it indicates that the file creation time corresponding to the preset authentication file meets the preset offline legal condition, and determine whether the offline usage times in the preset authentication file is zero; if the offline usage times is zero, it means that the target computer cannot be used in the offline state; if the offline usage times is not zero, perform vehicle diagnosis on the vehicle to be diagnosed based on the preset configuration code; if the current time is not within the offline legal time, it indicates that the file creation time corresponding to the preset authentication file does not meet the preset offline legal condition, and exit the diagnostic device.

[0084] Specifically, the determination of whether the file creation time corresponding to the preset authentication file meets the preset offline legal condition and whether the offline usage times in the preset authentication file meet the preset offline usage condition includes: obtaining the file creation time corresponding to the preset authentication file and the offline sustainable time, and determining the offline legal time based on the file creation time and the offline sustainable time; obtaining the current time, and determining whether the current time is within the offline legal time; if the current time is within the offline legal time, it indicates that the file creation time corresponding to the preset authentication file meets the preset offline legal condition, and determine whether the offline usage times in the preset authentication file is a preset value; if the offline usage times is the preset value, it means that the target computer cannot be used in the offline state; if the offline usage times is not the preset value, perform vehicle diagnosis on the vehicle to be diagnosed based on the preset configuration code; if the current time is not within the offline legal time, exit the diagnostic device.

[0085] Further, if the number of offline uses is not zero, determine whether the vehicle to be diagnosed is a diagnosable vehicle based on the vehicle configuration information in the preset configuration code; if the vehicle model and vehicle series corresponding to the vehicle to be diagnosed exist in the preset configuration code, it indicates that the vehicle to be diagnosed is a diagnosable vehicle, and the user terminal has the permission to diagnose the vehicle to be diagnosed. Use the diagnostic device to diagnose the vehicle to be diagnosed, subtract one from the number of offline uses after the vehicle diagnosis is completed, and exit the diagnostic device; if the vehicle to be diagnosed is not a diagnosable vehicle, prompt that the user terminal does not have the permission to diagnose the vehicle to be diagnosed, and exit the diagnostic device.

[0086] Specifically, if the number of offline uses is not a preset value, diagnosing the vehicle to be diagnosed based on the preset configuration code includes: if the number of offline uses is not a preset value, determine whether the vehicle to be diagnosed is a diagnosable vehicle based on the preset configuration code; if the vehicle to be diagnosed is a diagnosable vehicle, it indicates that the user terminal has the permission to diagnose the vehicle to be diagnosed. Use the diagnostic device to diagnose the vehicle to be diagnosed, and update the number of offline uses after the vehicle diagnosis is completed; if the vehicle to be diagnosed is not a diagnosable vehicle, prompt that the user terminal does not have the permission to diagnose the vehicle to be diagnosed, and exit the diagnostic device.

[0087] Step S16: If the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline use condition, diagnose the vehicle to be diagnosed based on the preset configuration code.

[0088] In this embodiment, if the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline use condition, obtain the preset configuration code through the diagnostic device, and determine whether there is diagnostic vehicle information corresponding to the vehicle to be diagnosed in the preset configuration code; if there is diagnostic vehicle information corresponding to the vehicle to be diagnosed in the preset configuration code, it indicates that the vehicle to be diagnosed is a diagnosable vehicle. Use the diagnostic device to diagnose the vehicle to be diagnosed, and add one to the number of offline uses after the vehicle diagnosis is completed to update the number of offline uses.

[0089] As can be seen from the above, the present application first determines whether the target computer corresponding to the execution of the diagnostic device is online; if the target computer is online, it determines whether the device serial number corresponding to the diagnostic device is registered; if the device serial number is not registered, it performs registration based on the user information and the device serial number, and after successful registration, uses the diagnostic device to perform vehicle diagnosis on the vehicle to be diagnosed based on a preset authentication file; if the target computer is not online, it indicates that the target computer is in an offline state, and determines whether there is a preset authentication file in the diagnostic device; if there is a preset authentication file in the diagnostic device, it determines whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legal condition, and preset offline usage condition; if all are met, vehicle diagnosis is performed on the vehicle to be diagnosed based on a preset configuration code. In this way, regardless of whether the vehicle diagnosis scenario is online or offline, effective user management and permission control can be carried out through flexible configuration, thereby performing vehicle diagnosis, greatly improving the security of the diagnostic device.

[0090] As can be seen from the above embodiments, the present application performs user management and permission control for vehicle diagnosis based on a preset configuration code created in advance and a preset authentication file corresponding to the diagnostic device. Therefore, the process of user management and permission control for vehicle diagnosis based on the preset configuration code created in advance and the preset authentication file corresponding to the diagnostic device is described.

[0091] See Figure 4 As shown, an embodiment of the present invention discloses a specific vehicle diagnosis method, including:

[0092] In this embodiment, first, the diagnostic software is executed, and the device serial number corresponding to the diagnostic software and the computer MAC address of the corresponding target computer are read to determine whether the target computer is in an online state. If the target computer is in an online state, the device serial number and the computer MAC address are uploaded to the server so that the server can determine whether the device serial number is registered. If the device serial number is not registered, the registration process is executed, and the user name, password, the device serial number, and the computer MAC address input by the user end are uploaded to the server for registration, so that the server can create a corresponding preset authentication file based on the user name, the password, the device serial number, and the computer MAC address, and send the preset authentication file to the diagnostic device in the JSON (JavaScript Object Notation, a data exchange format) data format. After the diagnostic device receives the preset authentication file, the preset authentication file is encrypted, and the obtained encrypted authentication file is saved to the local storage center of the diagnostic device. The diagnostic device obtains a preset configuration code and uploads the preset configuration code to the server so that the server can determine whether the vehicle model and vehicle series corresponding to the vehicle to be diagnosed exist in the preset configuration code. If the vehicle model and vehicle series corresponding to the vehicle to be diagnosed exist in the preset configuration code, it indicates that there is a permission to perform vehicle diagnosis on the vehicle to be diagnosed. The diagnostic device is used to perform vehicle diagnosis on the vehicle to be diagnosed, and the diagnostic device is exited after the diagnosis is completed.

[0093] If the device serial number is registered, it is determined whether the computer MAC address corresponding to the device serial number has changed. If the computer MAC address corresponding to the device serial number has changed, the user end is prompted to input the user name and password, and the user name and password are verified. If the verification is passed, the process jumps to the step of sending the preset authentication file to the diagnostic device in the JSON data format. If the verification fails, the diagnostic device is exited. If the computer MAC address corresponding to the device serial number has not changed, the process jumps to the step of sending the preset authentication file to the diagnostic device in the JSON data format.

[0094] If the target computer is not connected to the network, it is determined whether the preset authentication file exists in the local storage center of the diagnostic device; if the preset authentication file exists in the local storage center of the diagnostic device, the encrypted authentication file is decrypted using the preset key information to obtain the preset authentication file, and then the device serial number corresponding to the diagnostic device is determined as the real serial number, and the computer MAC address of the target computer running the diagnostic device is determined as the real MAC address; the preset authentication file is parsed, and it is determined whether the device serial number and computer MAC address obtained by parsing are consistent with the real serial number and the real MAC address; if the device serial number obtained by parsing is consistent with the real serial number, and the computer MAC address obtained by parsing is also consistent with the real MAC address, the current time is read, and the offline legal time is determined based on the file creation time and offline sustainable time corresponding to the preset authentication file, and it is determined whether the current time is within the offline legal time; if the current time is within the offline legal time, it indicates that the file creation time corresponding to the preset authentication file meets the preset offline legal condition, and it is determined whether the offline usage times in the preset authentication file are greater than zero; if the offline usage times in the preset authentication file are greater than zero, it is determined whether the vehicle to be diagnosed is a diagnosable vehicle based on the preset configuration code; if the vehicle to be diagnosed is a diagnosable vehicle, it indicates that there is a right to diagnose the vehicle to be diagnosed, and the diagnostic device is used to diagnose the vehicle to be diagnosed, and the offline usage times are updated after the vehicle diagnosis is completed.

[0095] If the device serial number obtained by parsing is consistent with the real serial number, and the computer MAC address obtained by parsing is inconsistent with the real MAC address, the user is prompted to re-enter the user information at the time of registration, and it is determined whether the user information is consistent with the user information in the preset configuration file obtained by parsing; if the user information is consistent with the user information in the preset configuration file obtained by parsing, the process jumps to the step of reading the current time; if the user information is inconsistent with the user information in the preset configuration file obtained by parsing, the diagnostic device is exited. If the preset authentication file does not exist in the local storage center of the diagnostic device, the diagnostic device is exited.

[0096] As can be seen from the above, in this embodiment, the permissions of the diagnostic device are managed based on the computer MAC address of the target computer corresponding to the diagnostic device and the device serial number of the diagnostic device, and user management is performed by determining whether the device serial number is registered. By introducing a preset authentication file and a preset configuration code, the vehicle configuration information and registration information of the vehicle to be diagnosed are obtained. Even when the target computer is in an offline state, it can be determined whether vehicle diagnosis can be performed based on the preset authentication file and the preset configuration code. In this way, the problem that vehicle diagnosis cannot be performed when the network scenario is poor is solved, and effective user management and permission control are carried out through flexible configuration, so as to perform vehicle diagnosis, which not only improves the security of the diagnostic device, but also reduces the after-sales maintenance cost.

[0097] Correspondingly, referring to Figure 5 as shown, the present application also provides a vehicle diagnosis device, including:

[0098] A computer status judgment module 11, configured to obtain the device serial number corresponding to the diagnostic device and the computer MAC address of the target computer running the diagnostic device when it is detected that the diagnostic device is running, and judge whether the target computer is in an online state;

[0099] A device serial number judgment module 12, configured to judge whether the device serial number is registered if the target computer is in an online state;

[0100] A device serial number registration module 13, configured to register based on the input user information, the device serial number, and the computer MAC address if the device serial number is not registered, and perform vehicle diagnosis on the vehicle to be diagnosed based on a preset authentication file and the diagnostic device after successful registration; the preset authentication file includes the user information, the device serial number, the computer MAC address, and the number of offline uses;

[0101] An authentication file judgment module 14, configured to judge whether the preset authentication file exists in the diagnostic device if the target computer is not in an online state;

[0102] An offline condition judgment module 15, configured to judge whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline use condition if the preset authentication file exists in the diagnostic device;

[0103] A vehicle diagnosis module 16, configured to perform vehicle diagnosis on the vehicle to be diagnosed based on a preset configuration code if the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline use condition.

[0104] As can be seen from the above, the present application first determines whether the target computer corresponding to the diagnostic device is in an online state during execution; if the target computer is in an online state, it determines whether the device serial number corresponding to the diagnostic device is registered; if the device serial number is not registered, it performs registration based on the user information and the device serial number, and after successful registration, performs vehicle diagnosis on the vehicle to be diagnosed using the diagnostic device based on a preset authentication file; if the target computer is not in an online state, it indicates that the target computer is in an offline state, and determines whether there is a preset authentication file in the diagnostic device; if there is a preset authentication file in the diagnostic device, it determines whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legal condition, and preset offline usage condition; if all are met, it performs vehicle diagnosis on the vehicle to be diagnosed based on a preset configuration code. In this way, regardless of whether the vehicle diagnosis scenario is online or offline, effective user management and permission control can be carried out through flexible configuration, thereby performing vehicle diagnosis, greatly improving the security of the diagnostic device.

[0105] In some specific embodiments, the vehicle diagnosis device may specifically further include:

[0106] A registration information acquisition unit, configured to, if the device serial number is registered, acquire the registered serial number and the registered MAC address during registration, and determine whether the registered serial number, the registered MAC address are consistent with the device serial number, the computer MAC address;

[0107] An authentication file update unit, configured to, if they are consistent, update the preset authentication file;

[0108] A user information verification unit, configured to, if they are inconsistent, prompt the user terminal to input the user name and password corresponding to the diagnostic device, and verify the input user name and password;

[0109] A configuration code acquisition unit, configured to, if the verification is passed, acquire a preset configuration code through the diagnostic device, and upload the preset configuration code to the server, so that the server determines whether the vehicle to be diagnosed is a diagnosable vehicle based on the vehicle configuration information in the preset configuration code;

[0110] A vehicle diagnosis permission determination unit, configured to, if the vehicle to be diagnosed is a diagnosable vehicle, indicate that the user terminal has the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and perform vehicle diagnosis on the vehicle to be diagnosed using the diagnostic device;

[0111] A first diagnostic device exit unit, configured to, if the vehicle to be diagnosed is not a diagnosable vehicle, prompt the user terminal that it does not have the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and exit the diagnostic device.

[0112] In some specific embodiments, the vehicle diagnostic device may further specifically include:

[0113] A vehicle event monitoring unit for monitoring whether there is a vehicle production process completion event;

[0114] A vehicle configuration information writing unit for writing the vehicle configuration information corresponding to the vehicle into a preset configuration code if it is monitored that there is a vehicle production process completion event.

[0115] In some specific embodiments, the device serial number registration module 13 may specifically include:

[0116] A user information uploading unit for uploading the user information input by the user terminal, the device serial number, and the computer MAC address to the server for registration if the device serial number is not registered;

[0117] Correspondingly, the vehicle diagnostic device may further specifically include:

[0118] An authentication file creating unit for creating a preset authentication file including the user information, the device serial number, the computer MAC address, the last online time, the offline use end time, and the offline use times through the server after successful registration, and sending the preset authentication file to the diagnostic device based on a preset data format;

[0119] An authentication file encrypting unit for receiving the preset authentication file through the diagnostic device, then encrypting the preset authentication file to obtain an encrypted authentication file, and storing the encrypted authentication file in the local storage center of the diagnostic device.

[0120] In some specific embodiments, the offline condition judging module 15 may specifically include:

[0121] An authentication file parsing unit for decrypting the encrypted authentication file with preset key information to obtain a preset authentication file if the preset authentication file exists in the diagnostic device;

[0122] A real information determining unit for determining the device serial number corresponding to the diagnostic device as the real serial number, and determining the computer MAC address of the target computer running the diagnostic device as the real MAC address;

[0123] An information judging unit for parsing the preset authentication file and judging whether the device serial number and computer MAC address obtained by parsing are consistent with the real serial number and the real MAC address;

[0124] The second diagnostic device exit unit is used to exit the diagnostic device if the parsed device serial number is inconsistent with the true serial number and the parsed computer MAC address is consistent with the true MAC address;

[0125] The user information prompt unit is used to prompt the client to re-enter the user information during registration and verify the user information if the parsed device serial number is consistent with the true serial number and the parsed computer MAC address is inconsistent with the true MAC address;

[0126] The file creation time judgment unit is used to judge whether the file creation time corresponding to the preset authentication file meets the preset offline legal condition and whether the offline usage times in the preset authentication file meet the preset offline usage condition if the verification is passed.

[0127] In some specific embodiments, the offline condition judgment module 15 may specifically include:

[0128] The offline legal time determination unit is used to obtain the file creation time corresponding to the preset authentication file and the offline sustainable time, and determine the offline legal time based on the file creation time and the offline sustainable time;

[0129] The current time judgment unit is used to obtain the current time and judge whether the current time is within the offline legal time;

[0130] The offline usage times judgment unit is used to represent that the file creation time corresponding to the preset authentication file meets the preset offline legal condition if the current time is within the offline legal time, and judge whether the offline usage times in the preset authentication file are the preset value;

[0131] The computer status determination unit is used to represent that the target computer cannot be used in the offline state if the offline usage times are the preset value;

[0132] The vehicle diagnosis completion unit is used to perform vehicle diagnosis on the vehicle to be diagnosed based on the preset configuration code if the offline usage times are not the preset value;

[0133] The third diagnostic device exit unit is used to exit the diagnostic device if the current time is not within the offline legal time.

[0134] In some specific embodiments, the offline condition judgment module 15 may specifically include:

[0135] The vehicle to be diagnosed judgment unit is used to judge whether the vehicle to be diagnosed is a diagnosable vehicle based on the preset configuration code if the offline usage times are not the preset value;

[0136] An offline usage times update unit, which is used to, if the vehicle to be diagnosed is a diagnosable vehicle, indicate that the client has the permission to perform vehicle diagnosis on the vehicle to be diagnosed, use the diagnostic device to perform vehicle diagnosis on the vehicle to be diagnosed, and update the offline usage times after the vehicle diagnosis is completed;

[0137] A fourth diagnostic device exit unit, which is used to, if the vehicle to be diagnosed is not a diagnosable vehicle, prompt that the client does not have the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and exit the diagnostic device.

[0138] Furthermore, an embodiment of the present application also discloses an electronic device, Figure 6 which is a structural diagram of an electronic device 20 shown according to an exemplary embodiment, and the content in the figure cannot be considered as any limitation to the usage scope of the present 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. Among them, 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 diagnosis method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0139] 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 external devices, and the communication protocol it follows is any communication protocol applicable to the technical solution of the present application, and no specific limitation is imposed on it here; the input / output interface 25 is used to obtain external input data or output data to the outside, and its specific interface type can be selected according to specific application needs, and no specific limitation is made here.

[0140] In addition, as a carrier for resource storage, the memory 22 may be a read-only memory, a random access memory, a magnetic disk, or an optical disc, etc., and the resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method may be short-term storage or permanent storage.

[0141] Among them, the operating system 221 is used to manage and control each hardware device and the computer program 222 on the electronic device 20, and it may be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the vehicle diagnosis method executed by the electronic device 20 disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program that can be used to complete other specific tasks.

[0142] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the vehicle diagnosis method disclosed above. For the specific steps of this method, reference can be made to the corresponding content disclosed in the foregoing embodiments, and details will not be repeated here.

[0143] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple. For the relevant parts, reference can be made to the description in the method section.

[0144] Those skilled in the art can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been generally described according to their functions in the above description. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0145] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.

[0146] Finally, it should also be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.

[0147] The above has introduced the technical solution provided by the present application in detail. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. A vehicle diagnosis method, characterized in that, Including: When it is detected that the diagnostic device is running, obtain the device serial number corresponding to the diagnostic device and the computer MAC address of the target computer running the diagnostic device, and determine whether the target computer is in an online state; If the target computer is in an online state, then determine whether the device serial number is registered; If the device serial number is not registered, register based on the input user information, the device serial number, and the computer MAC address, and after successful registration, perform vehicle diagnosis on the vehicle to be diagnosed based on a preset authentication file and the diagnostic device; the preset authentication file includes the user information, the device serial number, the computer MAC address, and the number of offline uses; If the target computer is not in an online state, then determine whether the preset authentication file exists in the diagnostic device; If the preset authentication file exists in the diagnostic device, then determine whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline use condition; If the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline use condition, then perform vehicle diagnosis on the vehicle to be diagnosed based on a preset configuration code.

2. The vehicle diagnosis method according to claim 1, characterized in that After determining whether the device serial number is registered, it further includes: If the device serial number is registered, obtain the registered serial number and registered MAC address at the time of registration, and determine whether the registered serial number, the registered MAC address, the device serial number, and the computer MAC address are consistent; If they are consistent, update the preset authentication file; If they are not consistent, prompt the user end to input the user name and password corresponding to the diagnostic device, and verify the input user name and password; If the verification is passed, obtain a preset configuration code through the diagnostic device, and upload the preset configuration code to the server, so that the server determines whether the vehicle to be diagnosed is a diagnosable vehicle based on the vehicle configuration information in the preset configuration code; If the vehicle to be diagnosed is a diagnosable vehicle, it indicates that the user end has the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and use the diagnostic device to perform vehicle diagnosis on the vehicle to be diagnosed; If the vehicle to be diagnosed is not a diagnosable vehicle, prompt that the user end does not have the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and exit the diagnostic device.

3. The vehicle diagnosis method according to claim 2, characterized in that, Before obtaining the preset configuration code through the diagnostic device, it further includes: Monitor whether there is a vehicle production process completion event; If it is detected that there is a vehicle production process completion event, write the vehicle configuration information corresponding to the vehicle into the preset configuration code; Wherein, the vehicle configuration information includes the vehicle series and vehicle model.

4. The vehicle diagnosis method according to any one of claims 1 to 3, characterized in that, The step of, if the device serial number is not registered, register based on the input user information, the device serial number, and the computer MAC address, includes: If the device serial number is not registered, upload the user information, the device serial number, and the computer MAC address input by the user end to the server for registration; Correspondingly, before the vehicle diagnosis of the vehicle to be diagnosed is performed based on the preset authentication file and the diagnostic device after successful registration, the following steps are further included: After successful registration, create a preset authentication file including the user information, the device serial number, the computer MAC address, the last online time, the offline usage end time, and the offline usage times through the server, and send the preset authentication file to the diagnostic device based on a preset data format; Receive the preset authentication file through the diagnostic device, then encrypt the preset authentication file to obtain an encrypted authentication file, and store the encrypted authentication file in the local storage center of the diagnostic device.

5. The vehicle diagnosis method according to claim 4, characterized in that, If the preset authentication file exists in the diagnostic device, determine whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legal condition, and preset offline usage condition, including: If the preset authentication file exists in the diagnostic device, decrypt the encrypted authentication file through preset key information to obtain the preset authentication file; Determine the device serial number corresponding to the diagnostic device as the real serial number, and determine the computer MAC address of the target computer running the diagnostic device as the real MAC address; Parse the preset authentication file, and determine whether the parsed device serial number and computer MAC address are consistent with the real serial number and the real MAC address; If the parsed device serial number is inconsistent with the real serial number and the parsed computer MAC address is consistent with the real MAC address, exit the diagnostic device; If the parsed device serial number is consistent with the real serial number and the parsed computer MAC address is inconsistent with the real MAC address, prompt the user terminal to re-enter the user information at the time of registration, and verify the user information; If the verification is passed, determine whether the file creation time corresponding to the preset authentication file meets the preset offline legal condition, and whether the offline usage times in the preset authentication file meet the preset offline usage condition.

6. The vehicle diagnosis method according to claim 5, characterized in that, Determine whether the file creation time corresponding to the preset authentication file meets the preset offline legal condition, and whether the offline usage times in the preset authentication file meet the preset offline usage condition, including: Obtain the file creation time corresponding to the preset authentication file and the offline sustainable time, and determine the offline legal time based on the file creation time and the offline sustainable time; Obtain the current time, and determine whether the current time is within the offline legal time; If the current time is within the offline legal time, it indicates that the file creation time corresponding to the preset authentication file meets the preset offline legal condition, and determine whether the offline usage times in the preset authentication file are the preset value; If the offline usage times are the preset value, it indicates that the target computer cannot be used in the offline state; If the offline usage times are not the preset value, perform vehicle diagnosis on the vehicle to be diagnosed based on the preset configuration code; If the current time is not within the offline legal time, exit the diagnostic device.

7. The vehicle diagnosis method according to claim 6, wherein If the number of offline usage times is not the preset value, vehicle diagnosis is performed on the vehicle to be diagnosed based on a preset configuration code, including: If the number of offline usage times is not the preset value, it is determined whether the vehicle to be diagnosed is a diagnosable vehicle based on the preset configuration code; If the vehicle to be diagnosed is a diagnosable vehicle, it indicates that the client has the permission to perform vehicle diagnosis on the vehicle to be diagnosed. The diagnostic device is used to perform vehicle diagnosis on the vehicle to be diagnosed, and the number of offline usage times is updated after the vehicle diagnosis is completed; If the vehicle to be diagnosed is not a diagnosable vehicle, it is prompted that the client does not have the permission to perform vehicle diagnosis on the vehicle to be diagnosed, and the diagnostic device is exited.

8. A vehicle diagnostic device, characterized in that, Including: A computer status judgment module, configured to obtain the device serial number corresponding to the diagnostic device and the computer MAC address of the target computer running the diagnostic device when it is monitored that the diagnostic device is running, and judge whether the target computer is in an online state; A device serial number judgment module, configured to judge whether the device serial number is registered if the target computer is in an online state; A device serial number registration module, configured to register based on the input user information, the device serial number, and the computer MAC address if the device serial number is not registered, and perform vehicle diagnosis on the vehicle to be diagnosed based on a preset authentication file and the diagnostic device after successful registration; the preset authentication file includes the user information, the device serial number, the computer MAC address, and the number of offline usage times; An authentication file judgment module, configured to judge whether the preset authentication file exists in the diagnostic device if the target computer is not in an online state; An offline condition judgment module, configured to judge whether the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline usage condition if the preset authentication file exists in the diagnostic device; A vehicle diagnosis module, configured to perform vehicle diagnosis on the vehicle to be diagnosed based on a preset configuration code if the preset authentication file meets the corresponding preset information consistency condition, preset offline legality condition, and preset offline usage condition.

9. An electronic device, characterized in that, Including: A memory, configured to store a computer program; A processor, configured to execute the computer program to implement the vehicle diagnosis method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, For storing a computer program, wherein the computer program, when executed by a processor, implements the vehicle diagnosis method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Vehicle diagnosis method, device and equipment and storage medium

    CN121187273A