CN117891237A - Vehicle diagnosis method and device - Google Patents

Vehicle diagnosis method and device Download PDF

Info

Publication number
CN117891237A
CN117891237A CN202410200527.2A CN202410200527A CN117891237A CN 117891237 A CN117891237 A CN 117891237A CN 202410200527 A CN202410200527 A CN 202410200527A CN 117891237 A CN117891237 A CN 117891237A
Authority
CN
China
Prior art keywords
offline
diagnosis
offline diagnosis
client device
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410200527.2A
Other languages
Chinese (zh)
Inventor
刘新
樊球
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202410200527.2A priority Critical patent/CN117891237A/en
Publication of CN117891237A publication Critical patent/CN117891237A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a vehicle diagnosis method and a device, wherein the method comprises the following steps: acquiring equipment information, wherein the equipment information comprises identification information of a client device, a diagnosis device and a target vehicle; under the condition that the client device is determined to be not connected with a network currently, acquiring an encrypted offline diagnosis permission file, wherein the offline diagnosis permission file is generated by a server according to offline diagnosis application data sent by the client device in advance, and the offline diagnosis application data comprises diagnosis date information and device information; acquiring current date information, and generating a target secret key according to the current date information and equipment information; decrypting the encrypted offline diagnosis permission file according to the target secret key; if the decryption is successful, the offline diagnosis program is entered through the decrypted offline diagnosis permission file. Thus, the risk of password leakage caused by manual telephone consultation can be avoided.

Description

Vehicle diagnosis method and device
Technical Field
The application relates to the technical field of vehicle diagnosis, in particular to a vehicle diagnosis method and device.
Background
Along with the continuous development of the Internet, the automobile diagnosis software is more and more intelligent and networked, and a host factory is added with a plurality of network functions, such as user authentication, online management of a flash file, data uploading and the like, so as to construct a more powerful diagnosis platform. However, there are situations where no network is used during the use of the diagnostic device, such as for rescue when going out or in areas where network signals are poor, where no network is needed to use the diagnostic software. The common practice of manufacturers is that the client side is added with an offline diagnosis mode and is provided with a password, and each time the user needs to use the offline mode, the user needs to manually make a call to consult the password of the after-sales personnel, so that the risk of password leakage is increased.
Disclosure of Invention
The application provides a vehicle diagnosis method and a device, wherein an encrypted offline diagnosis permission file generated by a server according to offline diagnosis application data is used as an offline diagnosis program for verification, a client device generates a target secret key according to generation data of secret keys corresponding to the same offline diagnosis permission file so as to decrypt the offline diagnosis permission file, if the decryption is successful, the vehicle diagnosis method and the device can enter the offline diagnosis program through the offline diagnosis permission file, so that the password leakage risk caused by manual telephone consultation can be avoided, and the safety of offline diagnosis on the vehicle is improved.
In a first aspect, the present application provides a vehicle diagnostic method for use with a client device, the client device being communicatively coupled to a diagnostic device, the diagnostic device being communicatively coupled to a vehicle, the method comprising:
acquiring equipment information, wherein the equipment information comprises identification information of client equipment and diagnostic equipment;
Under the condition that the client device is not connected with a network currently, acquiring an encrypted offline diagnosis permission file, wherein a key corresponding to the offline diagnosis permission file is generated by a server according to offline diagnosis application data sent by the client device in advance, and the offline diagnosis application data comprises diagnosis date information and device information;
Acquiring current date information, and generating a target secret key according to the current date information and equipment information;
Decrypting the encrypted offline diagnosis permission file according to the target secret key;
If the decryption is successful, the offline diagnosis program is entered through the decrypted offline diagnosis permission file.
According to the method and the device, when the client device is offline, the encrypted offline diagnosis permission file sent by the server and received by the local prior server is obtained, the target secret key is generated according to the generated data of the secret key corresponding to the same offline diagnosis permission file, the offline diagnosis permission file is decrypted according to the target secret key, and then the decrypted offline diagnosis permission file enters an offline diagnosis program, so that the password leakage risk caused by manual telephone consultation can be avoided, and the safety of offline diagnosis on the vehicle is improved.
In one possible example, before acquiring the device information, the method further comprises: sending offline diagnosis application data to a server; an encrypted offline diagnostic rights file is received from a server, the offline diagnostic rights file being generated from offline diagnostic application data.
According to the application, the offline diagnosis is applied to the server during networking, so that the offline diagnosis program can be accessed according to the offline diagnosis authority file in an offline state, and the password leakage risk caused by manual telephone consultation is avoided.
In one possible example, after acquiring the device information, the method further comprises: in the event that it is determined that a network connection currently exists for the client device, a networked diagnostic procedure is entered.
In the application, if the client device is determined to have network connection currently, a networking diagnosis program is entered, so that the server can conveniently provide more efficient diagnosis service.
In one possible example, generating the target key from the current date information and the device information includes: forming a first character string from the current date information and identification information of the client device and the diagnostic device; and carrying out hash operation on the first character string to generate a target secret key.
According to the application, the target secret key is obtained by carrying out hash operation on the first character string formed by the current date information and the identification information of the client device and the diagnostic device, so that the concealment of the secret key is improved, and the leakage risk of the secret key is reduced.
In one possible example, before entering the offline diagnostic program via the decrypted offline diagnostic rights file, the method further comprises: and determining that the identification information of the target vehicle is matched with the vehicle identification information in the offline diagnosis authority file.
In the application, after the identification information of the target vehicle is determined to be matched with the vehicle identification information in the offline diagnosis authority file, the vehicle identification information enters an offline diagnosis program through the decrypted offline diagnosis authority file. This may improve the security of the off-line diagnostic program verification.
In a second aspect, the present application provides a vehicle diagnosis method, which is applied to a server, the method comprising:
Receiving offline diagnosis application data from a client device, wherein the offline diagnosis application data comprises diagnosis date information and identification information of the client device, the diagnosis device and a target vehicle;
Generating an encrypted offline diagnosis permission file according to the offline diagnosis application data, wherein a secret key corresponding to the encrypted offline diagnosis permission file is generated according to the offline diagnosis application data;
The encrypted offline diagnostic rights file is sent to the client device.
In one possible example, the key corresponding to the encrypted offline diagnosis permission file is generated by performing a target hash operation on a first string composed of offline diagnosis application data.
In the application, the target secret key is obtained through hash operation, so that the concealment of the secret key is improved, and the leakage risk of the secret key is reduced.
In a third aspect, the present application provides a vehicle diagnostic apparatus for application to a client device, the client device being communicatively coupled to a diagnostic device, the diagnostic device being communicatively coupled to a vehicle, the apparatus comprising:
An acquisition unit configured to acquire device information including identification information of a client device and a diagnostic device;
The acquisition unit is further used for acquiring an encrypted offline diagnosis permission file under the condition that the client device is not connected with the network currently, and a secret key corresponding to the offline diagnosis permission file is generated by the server according to offline diagnosis application data sent by the client device previously, wherein the offline diagnosis application data comprises diagnosis date information and device information;
The acquisition unit is also used for acquiring current date information and generating a target secret key according to the current date information and the equipment information;
The processing unit is used for decrypting the encrypted offline diagnosis authority file according to the target secret key;
if the decryption is successful, the processing unit is further used for entering an offline diagnosis program through the decrypted offline diagnosis authority file.
In a fourth aspect, the present application also provides a vehicle diagnostic apparatus, which is applied to a server, the apparatus comprising:
the receiving unit is used for receiving offline diagnosis application data from the client device, wherein the offline diagnosis application data comprises diagnosis date information and identification information of the client device, the diagnosis device and the target vehicle;
The generation unit is used for generating an encrypted offline diagnosis permission file according to the offline diagnosis application data, and a secret key corresponding to the encrypted offline diagnosis permission file is generated according to the offline diagnosis application data;
and the sending unit is used for sending the encrypted offline diagnosis permission file to the client device.
In a fifth aspect, the present application provides an electronic device comprising a processor, a memory, a communication interface, the processor, the memory and the communication interface being interconnected and performing communication tasks with each other, the memory having executable program code stored thereon, the communication interface being for wireless communication, the processor being for retrieving the executable program code stored thereon and performing some or all of the steps as described in any of the methods of the first or second aspects, for example.
In a sixth aspect, the present application provides a computer readable storage medium having stored therein electronic data which, when executed by a processor, is operable to carry out the electronic data to carry out some or all of the steps described in the first or second aspects of the present application.
In a seventh aspect, the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps as described in the first or second aspects of the application. The computer program product may be a software installation package.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a vehicle diagnostic system according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a vehicle diagnostic method according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an offline diagnosis application page according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of an encryption process according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of a vehicle VIN list white list according to an embodiment of the present application;
FIG. 6 is a flow chart of another vehicle diagnostic method according to an embodiment of the present application;
fig. 7 is a block diagram showing the functional units of a vehicle diagnostic apparatus according to an embodiment of the present application;
Fig. 8 is a block diagram showing the functional units of another vehicle diagnostic apparatus according to an embodiment of the present application;
fig. 9 is a functional unit block diagram of a vehicle diagnostic apparatus according to an embodiment of the present application;
fig. 10 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps is not limited to the elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a vehicle diagnostic system according to an embodiment of the present application, and as shown in fig. 1, the vehicle diagnostic system 100 includes a client device 101, a server 102, a diagnostic device 103, and a target vehicle 104.
The client device 101 is connected to the server 102 to provide diagnostic service operations to the user. Optionally, the client device 101 is a terminal device, such as a desktop computer, a notebook computer, a tablet computer, a smart phone, or the like. Alternatively, server 102 is a server, a cluster of servers, a cloud server, a cloud computing service center, or other form of device with computing capabilities.
The diagnostic device 103 is connected to the client device 101 while being connected to the target vehicle 104, and the client device 101 diagnoses the target vehicle 104 through the diagnostic device 103. The diagnostic device 103 may be provided in the target vehicle 104.
The client device 101 acquires device information, including identification information of the client device 101, the diagnostic device 103 and the target vehicle 104, and acquires an encrypted offline diagnosis permission file when it is determined that the client device 101 has no network connection, where the offline diagnosis permission file is generated by the server 102 according to offline diagnosis application data previously sent by the client device 101, where the offline diagnosis application data includes diagnosis date information and the device information; the client device 101 obtains the current date information, generates a target key according to the current date information and the device information, decrypts the encrypted offline diagnosis permission file according to the target key, and enters the offline diagnosis program through the decrypted offline diagnosis permission file if the decryption is successful. Therefore, the password leakage risk caused by manual telephone consultation can be avoided, and the safety of off-line diagnosis of the vehicle is improved.
Based on this, an embodiment of the present application provides a vehicle diagnosis method, and the embodiment of the present application is described in detail below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a flow chart of a vehicle diagnosis method according to an embodiment of the application, the method is applied to the vehicle diagnosis system, as shown in fig. 2, and the method includes the following steps:
In step S201, the client device transmits offline diagnosis application data to the server. Accordingly, the server receives offline diagnostic application data from the client device.
The offline diagnosis application data comprises diagnosis date information and identification information of the client device, the diagnosis device and the target vehicle. The current step is that when a user has a requirement of offline diagnosis, the user sends the requirement of offline diagnosis to the server under the condition that the client device has network connection at present, and if the client device does not have network connection, the user cannot send the request of offline diagnosis to the server.
The diagnostic date information may include year, month, and day information, the identification information of the client device may be a physical address, a hardware address (MEDIA ACCESS control address, MAC), the identification information of the diagnostic device may refer to a serial number of the diagnostic device, and the identification information of the target vehicle may refer to a vehicle identification code (Vehicle Identification Number, VIN) of the target vehicle. After receiving the offline diagnosis application data from the client device, the server generates a corresponding offline diagnosis permission file according to the offline diagnosis application data, and the client device can enter an offline diagnosis program according to the offline diagnosis permission file.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an offline diagnosis application page according to an embodiment of the present application, and as shown in fig. 3, it can be seen that the offline diagnosis application needs to include offline diagnosis application data. For example, an offline diagnosis vehicle VIN list for checking vehicles for which offline diagnosis is subsequently required, such as LB25WX3a53N325421, LB25WX3a53N325422, LB25WX3a53N325423, LB25WX3a53N325424 shown in the drawings; offline diagnostic date, in year, month, day format, 2023:11:26 as shown; diagnostic device serial number, 9000001 as shown; the MAC address refers to the MAC address of the client device, as shown in the figure as FE-8E-A3-E6-33.
In addition, when the client device sends the offline diagnosis application data to the server, the server can also update and inquire the offline diagnosis program to judge whether the offline diagnosis program of a new version exists, if so, when the subsequent server sends the encrypted offline diagnosis authority file to the client device, the client device sends the new version of the offline diagnosis program at the same time for the client device to be installed locally.
Step S202, the server generates an encrypted offline diagnosis authority file according to the offline diagnosis application data.
The key corresponding to the encrypted offline diagnosis permission file is generated according to the offline diagnosis application data. Illustratively, the server stores the offline diagnostic application data in an extensible markup language (eXtensible Markup Language, XML) format file and encrypts using the advanced encryption standard (Advanced Encryption Standard, AES), and the encrypted key is generated from the offline diagnostic application data. It will be appreciated that the encrypted key may be generated from the complete offline diagnostic application data, or may be generated from a portion of the offline diagnostic application data, and may be specifically determined from the data amount of the offline diagnostic application data.
For example, since the VIN list data amount of the vehicle is excessively large, the key may be generated only from the diagnosis date information in the offline diagnosis application data and the identification information of the client device and the diagnosis device. Specifically, the diagnosis date information and identification information of the client device and the diagnosis device may be formed into a character string, and then the character string is hashed, thereby obtaining the key.
Referring to fig. 4, fig. 4 is a schematic flow chart of an encryption process provided by an embodiment of the present application, and as shown in fig. 4, an original offline diagnosis permission file is encrypted by an AES encryption key, so as to generate an encrypted offline diagnosis permission file, where the original offline diagnosis permission file and the encrypted offline diagnosis permission file are XML files. The AES encryption key may be a string assembled according to the serial number (9000001) of the diagnostic device, the MAC address (FE 8FA3E 633) of the client device, and the offline diagnostic date (231126), so as to obtain 9000001FE8FA3E63320231126, and since the string formed at this time is plaintext, a hash operation needs to be performed on the string by using a hash algorithm, for example, to obtain ciphertext 77a5d980ea71a2ff43ad6aed218cf47E shown in the figure.
In addition, the server receives the offline diagnosis application data and the offline diagnosis program version data from the client device, performs historical diagnosis record inquiry according to the identification information of the target vehicle in the offline diagnosis application data, and performs version inquiry according to the offline diagnosis program version data; if it is determined that the offline diagnosis record exceeding the preset times exists in the historical diagnosis record within the preset term range of the target vehicle and a new version of offline diagnosis program exists, prompt information is sent to the client device, the prompt information is used for prompting the client device to conduct networking diagnosis on the target vehicle, and the new version of offline diagnosis program can update the offline diagnosis program in the client device while conducting networking diagnosis on the target vehicle.
And if the offline diagnosis application data is used for determining that the current vehicle is used for a few times, determining that a new version of the offline diagnosis program local to the client device exists. Because long-term use of the offline diagnostic program is detrimental to after-market management of the vehicle, the server may send a prompt message to the client device prompting use of the networked diagnostic program for the target vehicle and update the offline diagnostic program to the client device while conducting the networked diagnosis. Therefore, the after-sales management capability of the vehicle can be improved, and meanwhile, the offline diagnosis program is updated during the online diagnosis, so that the waiting time of a user is reduced, and the updating efficiency of the offline diagnosis program is improved.
In step S203, the server transmits the encrypted offline diagnosis permission file to the client device. Accordingly, the client device receives the encrypted offline diagnostic rights file from the server.
The key corresponding to the encrypted offline diagnosis permission file is generated according to the offline diagnosis application data. After receiving the offline diagnosis permission file, the client device stores the offline diagnosis permission file in a local memory.
In step S204, the client device acquires device information.
Wherein the device information includes client device and diagnostic device identification information. At this time, the client device acquiring device information means that there is a need for diagnostic services currently.
In one possible embodiment, after acquiring the device information, the method further comprises: in the event that it is determined that a network connection currently exists for the client device, a networked diagnostic procedure is entered.
Because it is not known whether the client device has a network connection at this time, it is also required to determine whether the client device has a network connection at present, if it is determined that the client device has a network connection, an offline diagnosis program is not required, and a network diagnosis program can be directly performed, so that not only a better diagnosis service can be provided, but also the server background recording of diagnosis data is facilitated, thereby facilitating management of vehicles after sale.
In the application, if the client device is determined to have network connection currently, a networking diagnosis program is entered, so that the server can conveniently provide more efficient diagnosis service.
In step S205, the client device obtains an encrypted offline diagnosis permission file if it is determined that the client device does not currently have a network connection.
The offline diagnosis permission file is generated by the server according to offline diagnosis application data sent by the client device in advance, wherein the offline diagnosis application data comprises diagnosis date information and device information. When the client device determines that there is no network connection currently, offline diagnostics are required. Thus, it is necessary to acquire an encrypted offline diagnosis permission file previously stored locally and enter an offline diagnosis program based on the offline diagnosis permission file.
In step S206, the client device obtains the current date information, and generates a target key according to the current date information and the device information.
The current date information may refer to year, month, and day information. Because the offline diagnosis application data includes date information to be subjected to offline diagnosis submitted during application, and the secret key corresponding to the AES encryption is generated according to the diagnosis date information and the device information, when the client device determines that the offline diagnosis is required, the client device needs to acquire the current date information, and generates the target secret key according to the current date information and the device information. It can be understood that the data required by the client device to generate the key should correspond to the data required by the server to generate the key, and if the key is generated by the server according to the diagnosis date information and the identification information of the client device and the diagnosis device when the server encrypts the offline diagnosis authority file, the client device generates the target key according to the current date information and the identification information of the client device and the diagnosis device in the device information.
Meanwhile, the method for generating the target secret key by the client device should be the same as the corresponding secret key generation method when the server encrypts the offline diagnosis authority file.
The specific process of generating a key by a client device is described in detail below:
In one possible embodiment, generating the target key from the current date information and the device information includes: forming a first character string from the current date information and identification information of the client device and the diagnostic device; and carrying out hash operation on the first character string to generate a target secret key.
The process of generating the key by the client device is the same as the process of generating the key by the server, and similarly, in this embodiment, the key is generated according to the current date information and the identification information of the client device and the diagnostic device, and then the corresponding key should also be generated according to the diagnostic date information and the identification information of the client device and the diagnostic device when the server performs AES encryption. Since the offline diagnosis application data submitted at the time of submitting the offline diagnosis application includes diagnosis date information, the diagnosis date information refers to the date on which the offline diagnosis needs to be provided later. Therefore, if decryption is successful, it is necessary to ensure that the diagnosis date information is identical to the current date information. After the current date information and the identification information of the client device and the diagnostic device are formed into a first character string, the first character string belongs to a plaintext, the plaintext is not hidden, and the risk of leakage is likely to exist, so that hash operation is needed to be performed on the plaintext, and a ciphertext with stronger hidden property is obtained.
The function corresponding to the hash operation used by the server to generate the key corresponding to the offline diagnostic rights file should be the same as the function corresponding to the hash operation used when the client device generates the target key.
According to the application, the target secret key is obtained by carrying out hash operation on the first character string formed by the current date information and the identification information of the client device and the diagnostic device, so that the concealment of the secret key is improved, and the leakage risk of the secret key is reduced.
Step S207, the client device decrypts the encrypted offline diagnosis authority file according to the target key;
the client device decrypts the encrypted offline diagnosis permission file according to the target key obtained in the embodiment, and if the decryption is successful, the current date information and the device information are indicated to correspond to the prior submitted offline diagnosis application data.
Step S208, if the decryption is successful, the client device enters an offline diagnosis program through the decrypted offline diagnosis permission file.
The offline diagnosis authority file is similar to an interface of the offline diagnosis program, and the encrypted offline diagnosis authority file also provides verification for the client device, namely the client device can enter offline diagnosis according to the interface after verification is successful. Namely, after the client device successfully decrypts the encrypted offline diagnosis permission file, the client device can enter an offline diagnosis program according to the decrypted offline diagnosis permission file, so that the offline diagnosis of the target vehicle is realized.
In addition, in a possible embodiment, the device information further includes identification information of the target vehicle, and before entering the offline diagnosis program through the decrypted offline diagnosis permission file, the method further includes: and determining that the identification information of the target vehicle is matched with the vehicle identification information in the offline diagnosis authority file.
It can be known from the above embodiment that the target key corresponding to the offline diagnosis permission file may be generated according to the diagnosis date information and the identification information of the client device and the diagnosis device, and then the identification information of the target vehicle is not determined. Therefore, after the encrypted offline diagnosis permission file is successfully decrypted, the representation information of the target vehicle is also required to be matched with the identification information of the vehicle in the offline diagnosis permission file, and if the matching is determined to be successful, the vehicle enters an offline diagnosis program through the decrypted offline diagnosis permission file.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a white list of vehicle VIN list provided in an embodiment of the present application, as shown in fig. 5, including offline information, such as a identifier < offlineInfo >, under which the VIN list is included, such as a identifier < VINs >, a plurality of VINs are visible, and the VINs are identified by the identifiers < VIN > and </VIN >, such as a identifier LB25WX3a53N325421, LB25WX3a53N325422, LB25WX3a53N325423, LB25WX3a53N325424. The offline information is also ended by the identifier of VIN.
In the application, after the identification information of the target vehicle is determined to be matched with the vehicle identification information in the offline diagnosis authority file, the vehicle identification information enters an offline diagnosis program through the decrypted offline diagnosis authority file. This may improve the security of the off-line diagnostic program verification.
The application of the vehicle diagnostic method according to the present application will be described in detail with reference to fig. 6:
Referring to fig. 6, fig. 6 is a schematic flow chart of another vehicle diagnosis method according to an embodiment of the present application, as shown in fig. 6, when the client device MAC address and the diagnostic device serial number are read; judging whether the network is connected; if the network connection is determined, a networking diagnosis program is entered, and if the network is determined to be connectionless, whether an offline diagnosis authority file exists locally is determined; if the fact that the offline diagnosis permission file does not exist locally is determined, the fact that the current user has no offline diagnosis permission is indicated, and the user is prompted to have no offline diagnosis permission; if it is determined that the offline diagnosis permission file exists locally, reading the current date, including the year, month and day; forming a character string by the serial number of the diagnosis equipment, the MAC address of the client equipment and the current date, carrying out hash operation on the character string to obtain a target secret key, and decrypting the encrypted offline diagnosis authority file through the target secret key; judging whether decryption is successful; if the decryption is determined to be successful, the user is also prompted to have no offline diagnosis permission; if the decryption is successful, obtaining a VIN list in the offline diagnosis authority file, and matching with the VIN of the vehicle; if the matching is unsuccessful, the user is also prompted to have no offline diagnosis permission; if the matching is successful, entering an offline diagnosis program; finally, the diagnostic process is exited.
Furthermore, the offline diagnostic procedure has limited processing power because it requires data to be stored locally and then analyzed and processed. Thus, after the client device enters the offline diagnosis program through the offline diagnosis permission file, an adaptive diagnosis can be performed according to the storage capacity of the local memory of the client device. For example, the remaining available memory local to the client device is identified, and the real-time processing data amount of the diagnostic process is determined according to the remaining available memory, so that the real-time processing data amount does not exceed a preset threshold corresponding to the remaining available memory. This may improve the stability of the off-line diagnostic procedure.
It can be seen that in the embodiment of the present application, device information is acquired, where the device information includes identification information of a client device, a diagnostic device, and a target vehicle; under the condition that the client device is determined to be not connected with a network currently, acquiring an encrypted offline diagnosis permission file, wherein the offline diagnosis permission file is generated by a server according to offline diagnosis application data sent by the client device in advance, and the offline diagnosis application data comprises diagnosis date information and device information; acquiring current date information, and generating a target secret key according to the current date information and equipment information; decrypting the encrypted offline diagnosis permission file according to the target secret key; if the decryption is successful, the offline diagnosis program is entered through the decrypted offline diagnosis permission file. Therefore, the password leakage risk caused by manual telephone consultation can be avoided, and the safety of off-line diagnosis of the vehicle is improved.
In accordance with the above-described embodiments, referring to fig. 7, fig. 7 is a block diagram illustrating functional units of a vehicle diagnostic apparatus according to an embodiment of the present application, the vehicle diagnostic apparatus is applied to a client device, and as shown in fig. 7, the vehicle diagnostic apparatus 70 includes:
An acquiring unit 701, configured to acquire device information, where the device information includes identification information of a client device and a diagnostic device;
The obtaining unit 701 is further configured to obtain, when it is determined that the client device does not currently have a network connection, an encrypted offline diagnosis permission file, where a key corresponding to the offline diagnosis permission file is generated by the server according to offline diagnosis application data that is previously sent by the client device, and the offline diagnosis application data includes diagnosis date information and device information;
the obtaining unit 701 is further configured to obtain current date information, and generate a target key according to the current date information and the device information;
A processing unit 702, configured to decrypt the encrypted offline diagnosis permission file according to the target key;
if the decryption is successful, the processing unit 702 is further configured to enter the offline diagnosis program through the decrypted offline diagnosis permission file.
In one possible embodiment, before the acquiring unit 701 is configured to acquire the device information, the vehicle diagnostic apparatus 70 further includes: a first transmitting unit 703, configured to transmit offline diagnostic application data to a server; the first receiving unit 704 is configured to receive an encrypted offline diagnosis permission file from a server, where the offline diagnosis permission file is generated according to offline diagnosis application data.
In one possible embodiment, after the acquiring unit 701 is configured to acquire the device information, the vehicle diagnostic apparatus 70 further includes: the processing unit 702 is configured to enter a networking diagnostic procedure if it is determined that the client device currently has a network connection.
In a possible embodiment, the processing unit 702 is configured to generate a target key according to current date information and device information, including: forming a first character string from the current date information and identification information of the client device and the diagnostic device; and carrying out hash operation on the first character string to generate a target secret key.
In a possible embodiment, before the processing unit 702 is configured to enter the offline diagnostic program through the decrypted offline diagnostic rights file, the processing unit is further configured to: and determining that the identification information of the target vehicle is matched with the vehicle identification information in the offline diagnosis authority file.
Referring to fig. 8, fig. 8 is a block diagram showing functional units of another vehicle diagnostic apparatus according to an embodiment of the present application, the vehicle diagnostic apparatus is applied to a server, and as shown in fig. 8, a vehicle diagnostic apparatus 70 includes:
a second receiving unit 801 for receiving offline diagnosis application data from the client device, the offline diagnosis application data including diagnosis date information and identification information of the client device, the diagnosis device, and the target vehicle;
A generating unit 802, configured to generate an encrypted offline diagnosis permission file according to the offline diagnosis application data, where a key corresponding to the encrypted offline diagnosis permission file is generated according to the offline diagnosis application data;
A second transmitting unit 803 for transmitting the encrypted offline diagnosis permission file to the client device.
In one possible embodiment, the key corresponding to the encrypted offline diagnosis permission file is generated by performing a target hash operation on a first string composed of offline diagnosis application data.
It can be understood that, since the method embodiment and the apparatus embodiment are different presentation forms of the same technical concept, the content of the method embodiment portion in the present application should be synchronously adapted to the apparatus embodiment portion, which is not described herein.
In the case of using an integrated unit, as shown in fig. 9, fig. 9 is a block diagram showing the functional units of a vehicle diagnostic apparatus according to an embodiment of the present application. In fig. 9, the vehicle diagnostic application apparatus 90 includes: a processing module 912 and a communication module 911. The processing module 912 is configured to control and manage actions of the vehicle diagnostic device, such as the steps of the acquisition unit 701, the processing unit 702, the first transmission unit 703, the first reception unit 704, the second reception unit 801, the generation unit 802, and the second transmission unit 803, and/or to perform other processes of the techniques described herein. The communication module 911 is used to support interactions between the vehicle diagnostic apparatus and other devices. As shown in fig. 9, the vehicle diagnostic application apparatus 90 may further include a storage module 913, the storage module 913 being configured to store program codes and data of the vehicle diagnostic apparatus.
The processing module 912 may be a processor or controller, such as a central processing unit (Central Processing Unit, CPU), a general purpose processor, a digital signal processor (DIGITAL SIGNAL processor, DSP), an ASIC, FPGA or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and so forth. The communication module 911 may be a transceiver, an RF circuit, a communication interface, or the like. The storage module 913 may be a memory.
All relevant contents of each scenario related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein. The vehicle diagnostic device 70, and the vehicle diagnostic application device 90 may perform the vehicle diagnostic method shown in fig. 2.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired or wireless means from one website site, computer, server, or data center. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc. that contain one or more collections of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
Fig. 10 is a block diagram of an electronic device according to an embodiment of the present application. As shown in fig. 10, the electronic device 1000 may include one or more of the following components: the processor 1001, the memory 1002 and the communication interface 1003 are connected to each other and perform communication work therebetween, wherein the memory 1002 may store one or more computer programs which may be configured to implement the methods as described in the above embodiments when executed by the one or more processors 1001.
The processor 1001 may include one or more processing cores. The processor 1001 connects various parts within the overall electronic device 1000 using various interfaces and lines, performs various functions of the electronic device 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1002, and invoking data stored in the memory 1002. Alternatively, the processor 1001 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable Logic Array (PLA). The processor 1001 may integrate one or a combination of several of a central processing unit (CentralProcessing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. It will be appreciated that the modem may not be integrated into the processor 1001 and may be implemented solely by a single communication chip.
The memory 1002 may include a random access memory (Random Access Memory, RAM) or a read-only memory (ROM). Memory 1002 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 1002 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created by the electronic device 1000 in use, and the like.
It is understood that electronic device 1000 may include more or fewer structural elements than those described in the above-described block diagrams, including, for example, a power module, physical key, wiFi (WIRELESS FIDELITY ) module, speaker, bluetooth module, sensor, etc., without limitation.
The electronic device 1000 described above may be part of the vehicle diagnostic system 100 or separate from devices external to the vehicle diagnostic system 100.
An embodiment of the present application provides a computer-readable storage medium in which program data is stored, which when executed by a processor, is configured to perform part or all of the steps of any one of the vehicle diagnostic methods described in the above-described method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the vehicle diagnostic methods described in the method embodiments above. The computer program product may be a software installation package.
It should be noted that, for simplicity of description, the method embodiments of any of the foregoing vehicle diagnostic methods are depicted as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently in accordance with the application. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required for the present application.
Although the application is described herein in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the "a" or "an" does not exclude a plurality. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various method embodiments of any of the vehicle diagnostic methods described above may be accomplished by a program that instructs associated hardware, the program may be stored in a computer readable memory, the memory may comprise: flash disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined some of the more detailed description of the embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of a vehicle diagnostic method and apparatus of the present application, the above examples being provided solely to assist in the understanding of the method and core concepts of the present application; meanwhile, as for those skilled in the art, there are variations in the specific embodiments and application ranges according to the idea of a vehicle diagnosis method and apparatus of the present application, and the present disclosure should not be construed as limiting the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, hardware products, and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be appreciated that any product of the processing method of the flowcharts described in connection with the method embodiments of a vehicle diagnostic method controlled or configured to perform the method of the present application, such as the terminals of the flowcharts described above and computer program products, falls within the scope of the related products described in connection with the present application.
It will be apparent to those skilled in the art that various modifications and variations can be made in a vehicle diagnostic method and apparatus provided herein without departing from the spirit and scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A vehicle diagnostic method, the method being applied to a client device, the client device being communicatively coupled to a diagnostic device, the diagnostic device being communicatively coupled to a vehicle, the method comprising:
acquiring equipment information, wherein the equipment information comprises identification information of client equipment and diagnostic equipment;
acquiring an encrypted offline diagnosis permission file under the condition that the client device is determined to be not connected with a network currently, wherein a secret key corresponding to the offline diagnosis permission file is generated by a server according to offline diagnosis application data sent by the client device previously, and the offline diagnosis application data comprises diagnosis date information and device information;
Acquiring current date information, and generating a target secret key according to the current date information and the equipment information;
Decrypting the encrypted offline diagnostic rights file according to the target key;
If the decryption is successful, the offline diagnosis program is entered through the decrypted offline diagnosis permission file.
2. The method of claim 1, wherein prior to obtaining the device information, the method further comprises:
Sending offline diagnosis application data to a server;
And receiving an encrypted offline diagnosis permission file from the server, wherein the offline diagnosis permission file is generated according to the offline diagnosis application data.
3. The method according to claim 1 or 2, characterized in that after acquiring the device information, the method further comprises:
A networked diagnostic procedure is entered upon determining that the client device currently has a network connection.
4. A method according to any of claims 1-3, wherein said generating a target key from said current date information and said device information comprises:
forming a first character string from the current date information and identification information of the client device and the diagnostic device;
and carrying out hash operation on the first character string to generate the target secret key.
5. The method according to any one of claims 1-4, wherein the device information further includes identification information of the target vehicle, the method further comprising, prior to entering the offline diagnostic program via the decrypted offline diagnostic rights file:
And determining that the identification information of the target vehicle is matched with the vehicle identification information in the offline diagnosis authority file.
6. A vehicle diagnostic method, the method being applied to a server, comprising:
Receiving offline diagnosis application data from a client device, wherein the offline diagnosis application data comprises diagnosis date information and identification information of the client device, the diagnosis device and a target vehicle;
Generating an encrypted offline diagnosis permission file according to the offline diagnosis application data, wherein a secret key corresponding to the encrypted offline diagnosis permission file is generated according to the offline diagnosis application data;
and sending the encrypted offline diagnosis permission file to the client device.
7. A vehicle diagnostic apparatus, the apparatus being applied to a client device, the client device being communicatively connected to a diagnostic device, the diagnostic device being communicatively connected to a vehicle, the apparatus comprising:
An acquisition unit configured to acquire device information including identification information of a client device and a diagnostic device;
The obtaining unit is further configured to obtain, when it is determined that the client device does not currently have a network connection, an encrypted offline diagnosis permission file, where a key corresponding to the offline diagnosis permission file is generated by a server according to offline diagnosis application data that is previously sent by the client device, where the offline diagnosis application data includes diagnosis date information and device information;
the acquisition unit is further used for acquiring current date information and generating a target secret key according to the current date information and the equipment information;
The processing unit is used for decrypting the encrypted offline diagnosis permission file according to the target key;
and if the decryption is successful, the processing unit is also used for entering an offline diagnosis program through the decrypted offline diagnosis authority file.
8. A vehicle diagnostic apparatus, the apparatus being applied to a server, comprising:
A receiving unit configured to receive offline diagnosis application data from a client device, the offline diagnosis application data including diagnosis date information and identification information of the client device, a diagnosis device, and a target vehicle;
The generation unit is used for generating an encrypted offline diagnosis permission file according to the offline diagnosis application data, and a key corresponding to the encrypted offline diagnosis permission file is generated according to the offline diagnosis application data;
and the sending unit is used for sending the encrypted offline diagnosis permission file to the client device.
9. An electronic device, the device comprising:
The device comprises a processor, a memory and a communication interface, wherein the processor, the memory and the communication interface are mutually connected and complete communication work among each other;
the memory stores executable program codes, and the communication interface is used for wireless communication;
The processor is configured to invoke the executable program code stored on the memory to perform the method of any of claims 1-6.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
CN202410200527.2A 2024-02-23 2024-02-23 Vehicle diagnosis method and device Pending CN117891237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410200527.2A CN117891237A (en) 2024-02-23 2024-02-23 Vehicle diagnosis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410200527.2A CN117891237A (en) 2024-02-23 2024-02-23 Vehicle diagnosis method and device

Publications (1)

Publication Number Publication Date
CN117891237A true CN117891237A (en) 2024-04-16

Family

ID=90651349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410200527.2A Pending CN117891237A (en) 2024-02-23 2024-02-23 Vehicle diagnosis method and device

Country Status (1)

Country Link
CN (1) CN117891237A (en)

Similar Documents

Publication Publication Date Title
US9544768B2 (en) Method and apparatus for performing secure Bluetooth communication
US9031712B2 (en) Remote management and control of vehicular functions via multiple networks
CN112134708A (en) Authorization method, authorization request method and device
JP2021511743A (en) Methods, application servers, IOT devices and media for implementing IOT services
CN103095457A (en) Login and verification method for application program
CN103503366A (en) Managing data for authentication devices
CN107181714A (en) Verification method and device, the generation method of service code and device based on service code
CN106709280A (en) Method, client and server for processing information
WO2021051941A1 (en) Information processing method and apparatus
CN111914277B (en) Intersection data generation method and federal model training method based on intersection data
CN112287372A (en) Method and apparatus for protecting clipboard privacy
WO2017206524A1 (en) Electronic device control method, terminal and control system
CN112632521A (en) Request response method and device, electronic equipment and storage medium
US20230336982A1 (en) Virtual key sharing system and method
CN111475823A (en) Data sharing method, equipment, server and readable storage medium
CN107872315B (en) Data processing method and intelligent terminal
CN104980420A (en) Business processing method, device, terminal and server
CN114040411B (en) Equipment binding method and device, electronic equipment and storage medium
US8825223B2 (en) Hashed strings for machine-to-machine communication based on time and secret strings
EP2930962A1 (en) Encryption/decryption method, system and device
KR20190115377A (en) Electronic device for sharing a key of external electronic device and method for the same
CN109743283B (en) Information transmission method and equipment
WO2016080073A1 (en) Application authentication system, wireless communication system, management server, and authentication information issuing method
CN111291420A (en) Distributed off-link data storage method based on block chain
CN117891237A (en) Vehicle diagnosis method and device

Legal Events

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