Vehicle diagnosis method, device and system
By introducing a signature information interaction mechanism in the vehicle diagnostic system, the diagnostic equipment allows direct acquisition of vehicle data for diagnosis without the need for device access authentication, which solves the problems of poor diagnosis flexibility and low success rate in the prior art, and improves the safety of the vehicle.
Patent Information
- Application Number
- CN202510236605.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2045-02-28
AI Technical Summary
The existing vehicle diagnostic methods can only be diagnosed after the diagnostic equipment is certified, resulting in poor diagnosis flexibility and low success rate, which in turn reduces the safety of the vehicle.
Through the interaction between the diagnostic device, the signature server and the reference controller of the reference vehicle, signature information is generated and verified to switch the access mode of the on-board diagnostic system of the reference vehicle to the non-secure access mode, allowing the diagnostic device to directly obtain vehicle data for diagnosis.
Improves the flexibility and success rate of vehicle diagnosis and improves the safety of the vehicle.
Smart Images

Figure CN119828670A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of vehicle technology, and in particular to a vehicle diagnosis method, device and system. Background Art
[0002] In order to ensure the normal operation of the vehicle, the vehicle will be diagnosed regularly.
[0003] In the related art, the method for diagnosing a vehicle is: connecting the diagnostic device to the vehicle controller, and when the access mode of the vehicle's on-board diagnostic system is a secure access mode, the vehicle controller performs device access authentication on the diagnostic device. When the authentication is successful, the terminal device sends vehicle data to the diagnostic device, so that the diagnostic device diagnoses the vehicle based on the vehicle data.
[0004] However, the above method can only diagnose the vehicle when the diagnostic equipment is authenticated, which makes the flexibility of vehicle diagnosis poor and the success rate of vehicle diagnosis low, thereby reducing the safety of the vehicle. Summary of the invention
[0005] The embodiments of the present application provide a vehicle diagnosis method, device and system, which can be used to solve the problem of poor flexibility and low success rate of vehicle diagnosis in related technologies, which reduces the safety of the vehicle. The technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides a vehicle diagnosis method, which is applied to a diagnostic device, and the method includes:
[0007] Obtain the vehicle identification number of the reference vehicle;
[0008] Generate second information according to the first information, wherein the second information includes the first information and a first signature value, the first signature value is determined based on the first information, the first information includes the vehicle identification code, the serial number of the diagnostic device, a reference identifier, a reference controller, a signature algorithm and a signature verification public key, and the reference identifier indicates a non-secure access mode;
[0009] Sending the second information to a signature server, and having the signature server verify the first signature value based on the first information;
[0010] receiving third information returned by the signature server when the first signature value is verified successfully, the third information including fourth information and a second signature value, the second signature value being determined based on the fourth information and the signature algorithm, the fourth information including the vehicle identification code, reference seconds, and the reference identifier;
[0011] The third information is sent to a reference controller of the reference vehicle, and the reference controller of the reference vehicle verifies the second signature value based on the fourth information. If the second signature value is verified, the time corresponding to the reference seconds is determined. If the current time is earlier than the time corresponding to the reference seconds, the access mode of the on-board diagnostic system of the reference vehicle is controlled to the non-secure access mode.
[0012] In a possible implementation manner, before generating the second information according to the first information, the method further includes:
[0013] Concatenate the vehicle identification code, the serial number of the diagnostic device, the reference identifier, the reference controller, the signature algorithm and the signature verification public key to obtain a first signature original;
[0014] Performing base-based conversion on the first signature original text to obtain a base-based converted first signature original text;
[0015] Performing a hash operation on the first signature original text after the base conversion to obtain a first hash value;
[0016] Encrypt the first Hash value using the private key corresponding to the signature verification public key to obtain a first encrypted value;
[0017] The first encrypted value is encoded to obtain the first signature value.
[0018] In a second aspect, an embodiment of the present application provides a vehicle diagnosis method, which is applied to a signature server, and the method includes:
[0019] receiving second information sent by the diagnostic device, the second information comprising first information and a first signature value, the first signature value being determined based on the first information, the first information comprising a vehicle identification code of a reference vehicle, a serial number of the diagnostic device, a reference identifier, a reference controller, a signature algorithm, and a signature verification public key, the reference identifier indicating a non-secure access mode;
[0020] Verify the first signature value according to the first information to obtain a first verification result;
[0021] If the first verification result is that the first signature value is verified to be passed, generating third information, the third information including fourth information and a second signature value, the second signature value being determined based on the fourth information and the signature algorithm, and the fourth information including the vehicle identification code, the reference seconds, and the reference identifier;
[0022] The third information is sent to the diagnostic device, which sends the third information to the reference controller of the reference vehicle, and the reference controller of the reference vehicle verifies the second signature value based on the fourth information, and when the second signature value is verified, determines the time corresponding to the reference seconds, and when the current time is earlier than the time corresponding to the reference seconds, controls the access mode of the on-board diagnostic system of the reference vehicle to the non-secure access mode.
[0023] In a possible implementation manner, verifying the first signature value according to the first information to obtain a first verification result includes:
[0024] Decoding the first signature value to obtain a decoded first signature value;
[0025] Decrypting the decoded first signature value according to the signature verification public key to obtain a decrypted first signature value;
[0026] Concatenate the vehicle identification code, the serial number of the diagnostic device, the reference identifier, the reference controller, the signature algorithm and the signature verification public key to obtain a first signature original;
[0027] Performing base-based conversion on the first signature original text to obtain a base-based converted first signature original text;
[0028] Performing a hash operation on the first signature original text after the base conversion to obtain a first hash value;
[0029] Determine the first verification result according to the decrypted first signature value and the first hash value.
[0030] In a possible implementation manner, when the first verification result is that the first signature value is verified to be passed, before generating the third information, the method further includes:
[0031] Determine the reference number of seconds according to the time when the second information is received and the reference duration;
[0032] Concatenate the vehicle identification code, the reference seconds and the reference identifier to obtain a second signature original;
[0033] Performing base-based conversion on the second original signature to obtain a base-based converted second original signature;
[0034] Performing a hash operation on the second signature original text after the base-based conversion by using the signature algorithm to obtain a second hash value;
[0035] Encrypting the second Hash value by using the private key of the signature server to obtain a second encrypted value;
[0036] The second encrypted value is encoded to obtain the second signature value.
[0037] In a third aspect, an embodiment of the present application provides a vehicle diagnosis method, the method comprising:
[0038] receiving third information sent by the diagnostic device, the third information including fourth information and a second signature value, the second signature value being determined based on the fourth information and a signature algorithm, the fourth information including a vehicle identification code, a reference second, and a reference identifier of the reference vehicle, the reference identifier indicating a non-secure access mode;
[0039] Verify the second signature value based on the fourth information to obtain a second verification result;
[0040] When the second verification result is that the second signature value verification passes, determining the time corresponding to the reference seconds;
[0041] When the current time is earlier than the time corresponding to the reference number of seconds, the access mode of the on-board diagnostic system of the reference vehicle is controlled to be the non-safe access mode.
[0042] In a possible implementation manner, the verifying the second signature value based on the fourth information to obtain a second verification result includes:
[0043] Decoding the second signature value to obtain a decoded second signature value;
[0044] Decrypting the decoded second signature value according to the public key of the signature server to obtain a decrypted second signature value;
[0045] Concatenate the vehicle identification code, the reference seconds and the reference identifier to obtain a second signature original;
[0046] Performing base-based conversion on the second original signature to obtain a base-based converted second original signature;
[0047] Performing a hash operation on the second signature original text after the base-based conversion by using the signature algorithm to obtain a second hash value;
[0048] Determine the second verification result according to the decrypted second signature value and the second hash value.
[0049] In a possible implementation manner, determining the time corresponding to the reference seconds includes:
[0050] Adding the reference seconds to the first time to obtain the Coordinated Universal Time;
[0051] The time corresponding to the reference seconds is determined according to the time zone corresponding to the location of the reference vehicle and the coordinated universal time.
[0052] In a fourth aspect, an embodiment of the present application provides a vehicle diagnostic device, the device comprising:
[0053] An acquisition module, used for acquiring a vehicle identification code of a reference vehicle;
[0054] a generating module, configured to generate second information according to first information, wherein the second information includes the first information and a first signature value, the first signature value is determined based on the first information, the first information includes the vehicle identification code, the serial number of the diagnostic device, a reference identifier, a reference controller, a signature algorithm and a signature verification public key, and the reference identifier indicates a non-secure access mode;
[0055] a sending module, configured to send the second information to a signature server, and the signature server verifies the first signature value based on the first information;
[0056] a receiving module, configured to receive third information returned by the signature server when the first signature value is verified successfully, wherein the third information includes fourth information and a second signature value, the second signature value is determined based on the fourth information and the signature algorithm, and the fourth information includes the vehicle identification code, a reference second, and the reference identifier;
[0057] The sending module is also used to send the third information to the reference controller of the reference vehicle, and the reference controller of the reference vehicle verifies the second signature value based on the fourth information. When the second signature value is verified, the time corresponding to the reference seconds is determined. When the current time is earlier than the time corresponding to the reference seconds, the access mode of the on-board diagnostic system of the reference vehicle is controlled to the non-secure access mode.
[0058] In a possible implementation manner, the device further includes:
[0059] A determination module, configured to concatenate the vehicle identification code, the serial number of the diagnostic device, the reference identifier, the reference controller, the signature algorithm and the signature verification public key to obtain a first signature original text;
[0060] Performing base-based conversion on the first signature original text to obtain a base-based converted first signature original text;
[0061] Performing a hash operation on the first signature original text after the base conversion to obtain a first hash value;
[0062] Encrypt the first Hash value using the private key corresponding to the signature verification public key to obtain a first encrypted value;
[0063] The first encrypted value is encoded to obtain the first signature value.
[0064] In a fifth aspect, an embodiment of the present application provides a vehicle diagnostic device, the device comprising:
[0065] a receiving module, configured to receive second information sent by a diagnostic device, wherein the second information includes first information and a first signature value, the first signature value is determined based on the first information, the first information includes a vehicle identification code of a reference vehicle, a serial number of the diagnostic device, a reference identifier, a reference controller, a signature algorithm, and a signature verification public key, and the reference identifier indicates a non-secure access mode;
[0066] A verification module, used to verify the first signature value according to the first information to obtain a first verification result;
[0067] a generating module, configured to generate third information when the first verification result is that the first signature value is verified to be passed, wherein the third information includes fourth information and a second signature value, the second signature value is determined based on the fourth information and the signature algorithm, and the fourth information includes the vehicle identification code, a reference second, and the reference identifier;
[0068] A sending module is used to send the third information to the diagnostic device, and the diagnostic device sends the third information to the reference controller of the reference vehicle. The reference controller of the reference vehicle verifies the second signature value based on the fourth information, and when the second signature value is verified, determines the time corresponding to the reference seconds, and when the current time is earlier than the time corresponding to the reference seconds, controls the access mode of the on-board diagnostic system of the reference vehicle to the non-secure access mode.
[0069] In a possible implementation, the verification module is used to decode the first signature value to obtain a decoded first signature value;
[0070] Decrypting the decoded first signature value according to the signature verification public key to obtain a decrypted first signature value;
[0071] Concatenate the vehicle identification code, the serial number of the diagnostic device, the reference identifier, the reference controller, the signature algorithm and the signature verification public key to obtain a first signature original;
[0072] Performing base-based conversion on the first signature original text to obtain a base-based converted first signature original text;
[0073] Performing a hash operation on the first signature original text after the base conversion to obtain a first hash value;
[0074] Determine the first verification result according to the decrypted first signature value and the first hash value.
[0075] In a possible implementation manner, the device further includes:
[0076] A determination module, configured to determine the reference number of seconds according to the time when the second information is received and the reference duration;
[0077] Concatenate the vehicle identification code, the reference seconds and the reference identifier to obtain a second signature original;
[0078] Performing base-based conversion on the second original signature to obtain a base-based converted second original signature;
[0079] Performing a hash operation on the second signature original text after the base-based conversion by using the signature algorithm to obtain a second hash value;
[0080] Encrypting the second Hash value by using the private key of the signature server to obtain a second encrypted value;
[0081] The second encrypted value is encoded to obtain the second signature value.
[0082] In a sixth aspect, an embodiment of the present application provides a vehicle diagnostic device, the device comprising:
[0083] a receiving module, configured to receive third information sent by a diagnostic device, wherein the third information includes fourth information and a second signature value, the second signature value is determined based on the fourth information and a signature algorithm, the fourth information includes a vehicle identification code, a reference second, and a reference identifier of the reference vehicle, and the reference identifier indicates a non-secure access mode;
[0084] A verification module, used to verify the second signature value based on the fourth information to obtain a second verification result;
[0085] a determination module, configured to determine a time corresponding to the reference seconds when the second verification result is that the second signature value verification is passed;
[0086] The control module is used to control the access mode of the on-board diagnostic system of the reference vehicle to the non-safe access mode when the current time is earlier than the time corresponding to the reference number of seconds.
[0087] In a possible implementation, the verification module is used to decode the second signature value to obtain a decoded second signature value;
[0088] Decrypting the decoded second signature value according to the public key of the signature server to obtain a decrypted second signature value;
[0089] Concatenate the vehicle identification code, the reference seconds and the reference identifier to obtain a second signature original;
[0090] Performing base-based conversion on the second original signature to obtain a base-based converted second original signature;
[0091] Performing a hash operation on the second signature original text after the base-based conversion by using the signature algorithm to obtain a second hash value;
[0092] Determine the second verification result according to the decrypted second signature value and the second hash value.
[0093] In a possible implementation, the determining module is used to add the reference seconds to the first time to obtain the coordinated universal time;
[0094] The time corresponding to the reference seconds is determined according to the time zone corresponding to the location of the reference vehicle and the coordinated universal time.
[0095] In the seventh aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to enable the electronic device to implement the vehicle diagnostic method described in any of the above aspects.
[0096] In the eighth aspect, a vehicle diagnostic system is also provided, the system comprising a diagnostic device, a signature server and a reference controller of a reference vehicle, the diagnostic device being used to execute the vehicle diagnostic method described in the first aspect above, the signature server being used to execute the vehicle diagnostic method described in the second aspect above, and the reference controller of the reference vehicle being used to execute the vehicle diagnostic method described in the third aspect above.
[0097] In the ninth aspect, a computer-readable storage medium is also provided, wherein at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to enable an electronic device to implement the vehicle diagnostic method described in any of the above aspects.
[0098] In the tenth aspect, a computer program or a computer program product is also provided, wherein at least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor so that the electronic device implements the vehicle diagnostic method described in any of the above aspects.
[0099] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0100] The technical solution provided in the embodiment of the present application switches the access mode of the on-board diagnostic system of the reference vehicle to a non-secure access mode through the interaction between the diagnostic device, the signature server and the reference controller of the reference vehicle, so that the reference controller of the reference vehicle does not need to perform device access authentication on the diagnostic device, that is, the diagnostic device can directly obtain the vehicle data of the reference vehicle to diagnose the reference vehicle based on the vehicle data of the reference vehicle. This method makes vehicle diagnosis more flexible and has a higher success rate of vehicle diagnosis, thereby improving the safety of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0101] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0102] Figure 1 It is a schematic diagram of an implementation environment of a vehicle diagnosis method provided in an embodiment of the present application;
[0103] Figure 2 is a flow chart of a vehicle diagnostic method provided by an embodiment of the present application;
[0104] Figure 3 is a flow chart of a vehicle diagnostic method provided by an embodiment of the present application;
[0105] Figure 4 is a flow chart of a vehicle diagnostic method provided by an embodiment of the present application;
[0106] Figure 5 is a flow chart of a vehicle diagnostic method provided by an embodiment of the present application;
[0107] Figure 6 is a structural schematic diagram of a vehicle diagnostic device provided in an embodiment of the present application;
[0108] Figure 7 is a structural schematic diagram of a vehicle diagnostic device provided in an embodiment of the present application;
[0109] Figure 8 is a structural schematic diagram of a vehicle diagnostic device provided in an embodiment of the present application;
[0110] Fig. 9 is a structural schematic diagram of a vehicle diagnostic system provided by an embodiment of the present application;
[0111] Fig.10 It is a structural diagram of a terminal device provided in an embodiment of the present application;
[0112] Fig.11 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0113] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0114] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0115] Figure 1 is a schematic diagram of an implementation environment of a vehicle diagnostic method provided in an embodiment of the present application, such as Figure 1 As shown, the implementation environment includes: a diagnostic device 101, a signature server 102 and a reference controller 103 of a reference vehicle. The vehicle diagnostic method provided in the embodiment of the present application is implemented through the interaction between the diagnostic device 101, the signature server 102 and the reference controller 103 of the reference vehicle.
[0116] The diagnostic device 101 may be any device capable of diagnosing a vehicle. For example, the diagnostic device 101 is a diagnostic instrument.
[0117] The signature server 102 may be a single server, or a server cluster consisting of multiple servers, or a cloud computing service center, which is not limited in the embodiments of the present application.
[0118] The reference controller 103 of the reference vehicle may be any controller in the reference vehicle. For example, the reference controller 103 of the reference vehicle is a vehicle control center (VCC) of the reference vehicle.
[0119] Those skilled in the art should understand that the above-mentioned diagnostic device 101, signature server 102 and reference controller 103 of the reference vehicle are only for illustration, and other existing or future diagnostic devices, servers and controllers, if applicable to the present application, should also be included in the scope of protection of the present application and are included here by reference.
[0120] The present application embodiment provides a vehicle diagnosis method which can be applied to the above Figure 1 The implementation environment shown is Figure 2 As an example, the flowchart of a vehicle diagnostic method provided by the embodiment of the present application is shown in FIG. Figure 1 The interaction between the diagnostic device 101, the signature server 102 and the reference controller 103 of the reference vehicle is realized. Figure 2 As shown, the method includes the following steps 201 to 210.
[0121] In step 201 , the diagnostic device obtains a vehicle identification code of a reference vehicle.
[0122] Among them, the vehicle identification number (VIN) of the reference vehicle is used to uniquely identify the reference vehicle. The vehicle identification number of the reference vehicle is composed of seventeen letters or numbers, which can identify the manufacturer, engine, chassis serial number and other performance information of the reference vehicle. The embodiment of the present application does not limit the method by which the diagnostic device obtains the vehicle identification number of the reference vehicle. Optionally, the diagnostic device can obtain the vehicle identification number of the reference vehicle through the following three implementation methods.
[0123] Implementation method 1: The diagnostic device sends an acquisition request to the reference controller of the reference vehicle, where the acquisition request is used to acquire the vehicle identification code of the reference vehicle; the diagnostic device receives the vehicle identification code of the reference vehicle returned by the reference controller of the reference vehicle based on the acquisition request.
[0124] Among them, the reference controller of the reference vehicle can be any controller of the reference vehicle, and the embodiments of the present application are not limited to this. Exemplarily, the reference controller of the reference vehicle is the vehicle control center of the reference vehicle. The diagnostic device and the reference controller of the reference vehicle are communicatively connected via a wired network or a wireless network. The reference controller of the reference vehicle stores the vehicle identification code of the reference vehicle. The diagnostic device obtains the vehicle identification code of the reference vehicle by sending an acquisition request to the reference controller of the reference vehicle.
[0125] Implementation method 2: The diagnostic device displays a reference page, in which a vehicle identification code box is displayed; in response to an input operation in the vehicle identification code box, the content input in the vehicle identification code box is determined to be the vehicle identification code of the reference vehicle.
[0126] In this implementation, the diagnostic device may display a reference page, and the user may enter the vehicle identification code of the reference vehicle in a vehicle identification code box in the reference page, so that the diagnostic device acquires the vehicle identification code of the reference vehicle.
[0127] Implementation method three: the diagnostic device obtains a reference image; the reference image is parsed to obtain a vehicle identification code of the reference vehicle, and the reference image stores the vehicle identification code of the reference vehicle.
[0128] The reference vehicle includes a reference image, for example, the reference image is pasted on the reference vehicle. The diagnostic device obtains the reference image by scanning the reference image, or the diagnostic device obtains the reference image by photographing the reference image. Since the reference image stores the vehicle identification code of the reference vehicle, the diagnostic device can parse the reference image to obtain the vehicle identification code of the reference vehicle.
[0129] It should be noted that the diagnostic device can adopt any of the above-mentioned implementation methods to obtain the vehicle identification code of the reference vehicle, and the embodiment of the present application does not limit the method in which the diagnostic device obtains the vehicle identification code of the reference vehicle.
[0130] In step 202, the diagnostic device generates second information according to the first information.
[0131] Among them, the second information includes the first information and the first signature value, the first signature value is determined based on the first information, the first information includes the vehicle identification code, the serial number (Serial Number, SN) of the diagnostic equipment, the reference identifier, the reference controller, the signature algorithm and the signature verification public key, and the reference identifier indicates a non-secure access mode.
[0132] Optionally, the reference identifier can be any identifier, which is not limited in the embodiments of the present application. Exemplarily, the reference identifier is 1, that is, 1 represents the non-secure access mode. The signature algorithm is any hash algorithm, which is not limited in the embodiments of the present application. Exemplarily, the signature algorithm is SHA256 (a hash algorithm), or the signature algorithm is SHA512 (a hash algorithm). The signature verification public key is any key.
[0133] In a possible implementation, before generating the second information according to the first information, it is necessary to first determine the first signature value according to the first information. The embodiment of the present application does not limit the method of determining the first signature value according to the first information.
[0134] Optionally, the process of determining the first signature value based on the first information includes: concatenating the vehicle identification code, the serial number of the diagnostic equipment, the reference identifier, the reference controller, the signature algorithm and the signature verification public key to obtain the first signature original; performing base-to-base conversion on the first signature original to obtain the first signature original after base-to-base conversion; performing a hash operation on the first signature original after base-to-base conversion to obtain a first hash value; encrypting the first hash value using the private key corresponding to the signature verification public key to obtain a first encrypted value; and encoding the first encrypted value to obtain a first signature value.
[0135] Optionally, the process of performing base-to-base conversion on the first signature original to obtain the base-to-base converted first signature original includes: converting the first signature original into hexadecimal to obtain the base-to-base converted first signature original. The process of performing a hash operation on the base-to-base converted first signature original to obtain a first hash value includes: performing a hash operation on the base-to-base converted first signature original by using a reference hash algorithm to obtain a first hash value. The process of encoding the first encrypted value to obtain the first signature value includes: encoding the first encrypted value by using a reference encoding method to obtain the first signature value.
[0136] The reference hash algorithm may be any hash algorithm, which is not limited in the embodiments of the present application. The reference encoding method may be any encoding method, which is not limited in the embodiments of the present application. Exemplarily, the reference encoding method is base64 encoding (an encoding method based on 64 printable characters to represent binary data).
[0137] For example, the vehicle identification code is 11111111111111111, the serial number of the diagnostic device is 985690005600, the reference identifier is 1, the reference controller is VCC, the signature algorithm is SHA256, and the signature verification public key is SxqJU / aEfs1lMHCxijQE / tyeFc14zmGu4tbS5xwH / U4A9Pck3Y8EwyUojsjTdvjTdvjVYJWUApM4Q iFxjHEnwXafEvzVfsU, the original text of the first signature is 111111111111111119856900056001VCCSHA256SxqJU / aEfs1lMHCxijQE / tyeFc14zmGu4tbS5xwH / U4A9Pck3Y8EwyUojsjTdvjTdvjVYJWUApM4QiFxjHEnwXafEvzVfsU. The first signature is converted into a binary system, and the first signature is 3131313131313131313131313131313139383536393030303536303031564343525341343039365F53 48413235365378714A552F61456673316C4D484378696A51452F74796546633134 7A6D477534746253357877482F5534413950636B335938457779556F6A736A5464 766A5464766A56594A575541704D34516946786A48456E7758616645767A56667355. The first signature original text after the base conversion is hashed, and the first hash value obtained is 53cb267dfc8d4fc2f9d8b1f6da4bfc0a36426ff0de743f843671a9b891a6e563. The first hash value is then encrypted using the private key corresponding to the signature verification public key to obtain a first encrypted value; the first encrypted value is encoded to obtain a first signature value.
[0138] In a possible implementation manner, after the first signature value is determined in the above content, second information is generated according to the first information and the first signature value, and the second information includes the first information and the first signature value.
[0139] In step 203, the diagnostic device sends second information to the signature server.
[0140] In a possible implementation, after the second information is generated in step 202, the diagnostic device sends the second information to the signature server. Optionally, the diagnostic device sends the second information to the diagnostic server, and the diagnostic server sends the second information to the signature server. The diagnostic server is a server that provides background services for the diagnostic device.
[0141] In step 204, the signature server receives the second information sent by the diagnostic device, verifies the first signature value according to the first information, and obtains a first verification result.
[0142] In a possible implementation, after receiving the second information sent by the diagnostic device, the signature server parses the second information to obtain the first information and the first signature value; the signature server verifies the first signature value based on the first information to obtain the first verification result. The reason for verifying the first signature value based on the first information is to determine whether the first information has been tampered with during the transmission process.
[0143] The embodiment of the present application does not limit the method of verifying the first signature value according to the first information. Optionally, the process of verifying the first signature value according to the first information and obtaining the first verification result includes: decoding the first signature value to obtain the decoded first signature value; decrypting the decoded first signature value according to the signature verification public key to obtain the decrypted first signature value; concatenating the vehicle identification code, the serial number of the diagnostic equipment, the reference identifier, the reference controller, the signature algorithm and the signature verification public key to obtain the first signature original; performing base conversion on the first signature original to obtain the base converted first signature original; performing hash operation on the base converted first signature original to obtain the first hash value; determining the first verification result according to the decrypted first signature value and the first hash value.
[0144] Among them, the process of decoding the first signature value to obtain the decoded first signature value includes: decoding the first signature value by a reference decoding method to obtain the decoded first signature value. The reference decoding method corresponds to the reference encoding method. Exemplarily, if the reference encoding method is base64 encoding, the reference decoding method is base64 decoding corresponding to the base64 encoding. The process of splicing the vehicle identification code, the serial number of the diagnostic equipment, the reference identifier, the reference controller, the signature algorithm and the signature verification public key to obtain the first signature original text, performing base conversion on the first signature original text to obtain the first signature original text after base conversion, and performing hash operation on the first signature original text after base conversion to obtain the first hash value has been described in the above step 202 and will not be repeated here.
[0145] Optionally, the process of determining the first verification result based on the decrypted first signature value and the first hash value includes: based on the decrypted first signature value and the first hash value being the same, determining the first verification result as the first signature value verification passing, and the first signature value verification passing indicates that the first information has not been tampered with during transmission; based on the decrypted first signature value and the first hash value being different, determining the first verification result as the first signature value verification failing, and the first signature value verification failing indicates that the first information has been tampered with during transmission.
[0146] In step 205, when the first verification result is that the first signature value is verified to be successful, the signature server generates third information.
[0147] The third information includes the fourth information and the second signature value, the second signature value is determined based on the fourth information and the signature algorithm, and the fourth information includes the vehicle identification code, reference seconds and reference identification.
[0148] In a possible implementation, after the first verification result is determined in the above step 204, if the first verification result is that the first signature value is verified to be successful, the third information is generated. Before the third information is generated, the reference seconds and the second signature value need to be determined first.
[0149] Optionally, the process of determining the reference seconds includes: determining the reference seconds according to the time when the second information is received and the reference duration.
[0150] The reference duration is set based on experience or adjusted according to the implementation environment, and the present application embodiment does not limit this. For example, the reference duration is 8 hours.
[0151] Optionally, the process of determining the reference seconds based on the time when the second information is received and the reference duration includes: adding the reference duration based on the time when the second information is received to obtain the reference time; and determining the number of seconds between the first time and the reference time as the reference seconds.
[0152] Among them, the first time is 00:00:00 on January 1, 1970.
[0153] Exemplarily, the time when the second information is received is 08:57:15 on May 13, 2022. The reference time (8 hours) is added to the time when the second information is received, and the reference time is 16:57:15 on May 13, 2022. The number of seconds between 00:00:00 on January 1, 1970 and 16:57:15 on May 13, 2022 is 1655090235, that is, the reference seconds are 1655090235.
[0154] Optionally, the process of determining the second signature value includes: concatenating the vehicle identification code, reference seconds and reference identifier to obtain the second signature original; performing base-to-base conversion on the second signature original to obtain the second signature original after base-to-base conversion; performing a hash operation on the second signature original after base-to-base conversion through a signature algorithm to obtain a second hash value; encrypting the second hash value through a private key corresponding to the signature server to obtain a second encrypted value; and encoding the second encrypted value to obtain a second signature value.
[0155] The process of converting the second signature original text into hexadecimal to obtain the second signature original text after the conversion includes: converting the second signature original text into hexadecimal to obtain the second signature original text after the conversion. The process of encoding the second encrypted value to obtain the second signature value includes: encoding the second encrypted value through a reference encoding method to obtain the second signature value. The reference encoding method is any encoding method, which is not limited in the embodiments of the present application. Exemplarily, the reference encoding method is base64 encoding.
[0156] For example, the vehicle identification code is LM8F7D992NA000001, the reference seconds are 1655090235, and the reference identifier is 1. Then the vehicle identification code, the reference seconds, and the reference identifier are concatenated to obtain the second signature original text of LM8F7D992NA00000116550902351. The second signature original text is converted to 4C4D384637443939324E413030303030313136353530393032333559. The hash algorithm is performed on the second signature original text after the base-based conversion through the signature algorithm, and the obtained second hash value is a80b7037a219f1d09a437b7cfc2f2938587801626bc2f9a943a26a647f79c977. The second hash value is encrypted by the private key of the signature server, and the obtained second encrypted value is 6FA31226C736D66073414BED741C6145B443181DA8B52C879E27A92612578F294D3FB10EE31DEB50739EBF006CE0B99BC18438C797B05E0BF7A4F2F1B773E1BF944D5CB921F86BFE1214BE0D2A1EF710A5B0E25AE69F49F25835C23FA68B28E5BF91279889B9672E04D9A942B1094FBE1C6D66E855713BE94FDE16AA2851DB9544E39EB0FAF7948676143221FD8638F5B281D30D0727726B956ACF72CD8910F4AB3138A0BD706B2AE0765F2233CA612A28911B64D0 F10B3B8CA5210090C58521CB4EE0225DAF885041594D318C87205E17AE84703B5FCAA960DED422CE457683C2F4D6265B4A058732DE1DC47756ACB05F403 B004E4AD94247749C4EA3C593197B685C1FCA9D2C546A3818D534B69B68F71E94B3FEB8BC1F235BA8A373FAC90E93253638FC67B4F956E0E23E3E5D710A 0C0486298FBC34BE63FE610FF3B8B4A80401538358B9976A1915DCCFF5F7316F0DDFBB2088A046F746A84133AEAE1ACE78330DE9E350D234C0A41D410BD 94E2635249BBCF65C3CA5A9C1AD87B53183F53521F41D7F4700B7A3BE32AB C9A5F058D4E1189FFB5CF39335C983383573A625EF0E7174F956BF95D5CE3250493D40C7D6AB95A8FE1B12EE06DA1A4A3673FD27C8E5E742CAF9 017CE56C698D1F9F386C376AFCC4739CDAAB5C515C3D8A79015D1E72ADF69BFB2AFBF7E603FAFA6B7FEAF454552DB80C3BD11C51CF44C866F51B. The second encrypted value is encoded, and the second signature value obtained is b6MSJsc21mBzQUvtdBxhRbRDGB2otSyHniepJhJXjylNP7EO4x3rUHOevwBs4LmbwYQ4x5ewXgv3pPLxt3Phv5RNXLkh+Gv+EhS+DSoe9xClsOJa5p9J8lg1wj+miyjlv5EnmIm5Zy4E2alCsQlPvhxtZuhVcTvpT 94WqihR25VE456w+veUhnYUMiH9hjj1soHTDQcncmuVas9yzYkQ9KsxOKC9cGsq4HZfIjPKYSookRtk0PELO4ylIQCQxYUhy07gIl2viFBBWU0xjIcgXheuhHA7X8qp YN7UIs5FdoPC9NYmW0oFhzLeHcR3VqywX0A7AE5K2UJHdJxOo8WTGXtoXB / KnSxUajgY1TS2m2j3HpSz / ri8HyNbqKNz+skOkyU2OPxntPlW4OI+Pl1xCgwEhi mPvDS+Y / 5hD / O4tKgEAVODWLmXahkV3M / 19zFvDd+7IIigRvdGqEEzrq4azngz DenjUNI0wKQdQQvZTiY1JJu89lw8panBrYe1MYP1NSH0HX9HALejvjKryaXw WNThGJ / 7XPOTNcmDODVzpiXvDnF0+Va / ldXOMlBJPUDH1quVqP4bEu4G2hp KNnP9J8jl50LK+QF85WxpjR+fOGw3avzEc5zaq1xRXD2KeQFdHnKt9pv7Kvv35gP6+mt / 6vRUVS24DDvRHFHPRMhm9Rs.
[0157] In a possible implementation manner, after the second signature value is determined in the above content, third information is generated according to the fourth information and the second signature value, and the third information includes the fourth information and the second signature value.
[0158] In another possible implementation, when the first signature value is verified, a target page is displayed, in which the vehicle identification code, the serial number of the diagnostic device, the reference identifier, the time when the second information is received, and a confirmation control are displayed; and in response to a trigger operation on the confirmation control, third information is generated.
[0159] In this implementation, since the access mode of the on-board diagnostic system is switched to a non-secure access mode, the vehicle data will be acquired by the diagnostic equipment. Although this can improve the flexibility and success rate of vehicle diagnosis, it will also increase the risk of vehicle data leakage. Therefore, a manual approval process is added so that the vehicle data is sent to the diagnostic equipment after manual approval, thereby reducing the risk of vehicle data leakage.
[0160] In step 206, the signature server sends third information to the diagnostic device.
[0161] In a possible implementation, after the third information is generated in the above step 205, the signature server sends the third information to the diagnostic device. Optionally, the signature server sends the third information to the diagnostic server, and the diagnostic server sends the third information to the diagnostic device. The diagnostic server is a server that provides background services for the diagnostic device.
[0162] In step 207 , the diagnostic device receives the third information sent by the signature server, and sends the third information to the reference controller of the reference vehicle.
[0163] In a possible implementation, after receiving the third information sent by the signature server, the diagnostic device parses the third information to obtain the vehicle identification code, and sends the third information to a reference controller of a reference vehicle whose vehicle identification code is the vehicle identification code included in the third information.
[0164] Optionally, after receiving the third information, the diagnostic device may also store the third information in the diagnostic device. Optionally, the information storage amount of the diagnostic device is a reference amount. When the amount of information stored in the diagnostic device is the reference amount, after receiving the third information, the diagnostic device deletes the information stored in the diagnostic device with the earliest storage time, and then stores the third information in the diagnostic device.
[0165] The reference number is set based on experience or adjusted according to the implementation environment, and the embodiments of the present application do not limit this.
[0166] Exemplarily, the information storage capacity of the diagnostic device is 10, that is, the diagnostic device can store a maximum of 10 pieces of information. When the diagnostic device receives the third information, when the amount of information stored in the diagnostic device is 10, the diagnostic device deletes the information with the earliest storage time among the stored information. At this time, the amount of information stored in the diagnostic device is 9, which is not greater than the information storage capacity of the diagnostic device, and the diagnostic device stores the third information in the diagnostic device.
[0167] Optionally, the diagnosis device transmits the third information to the reference controller of the reference vehicle through a UDS31 service (a routine control service in a unified diagnostic service (UDS)).
[0168] In step 208, the reference controller of the reference vehicle receives the third information, verifies the second signature value according to the fourth information, and obtains a second verification result.
[0169] In a possible implementation, after receiving the third information sent by the diagnostic device, the reference controller of the reference vehicle parses the third information to obtain the fourth information and the second signature value; the reference controller of the reference vehicle verifies the second signature value according to the fourth information to obtain the second verification result. The second signature value is verified according to the fourth information in order to determine whether the fourth information has been tampered with during transmission.
[0170] The embodiment of the present application does not limit the manner in which the second signature value is verified according to the fourth information. Optionally, the process of verifying the second signature value according to the fourth information and obtaining the second verification result includes: decoding the second signature value to obtain the decoded second signature value; decrypting the decoded second signature value according to the public key of the signature server to obtain the decrypted second signature value; concatenating the vehicle identification code, the reference seconds and the reference identifier to obtain the second signature original text; performing base conversion on the second signature original text to obtain the base converted second signature original text; performing a hash operation on the base converted second signature original text through a signature algorithm to obtain a second hash value; and determining the second verification result according to the decrypted second signature value and the second hash value.
[0171] The process of decoding the second signature value to obtain the decoded second signature value includes: decoding the second signature value by a reference decoding method to obtain the decoded second signature value. The reference decoding method corresponds to the reference encoding method. For example, if the reference encoding method is base64 encoding, the reference decoding method is base64 decoding corresponding to base64 encoding. The process of concatenating the vehicle identification code, the reference seconds and the reference identifier to obtain the second signature original text, performing base conversion on the second signature original text to obtain the base converted second signature original text, and performing hash operation on the base converted second signature original text by a signature algorithm to obtain the second hash value has been described in the above step 205 and will not be repeated here.
[0172] Optionally, the process of determining the second verification result based on the decrypted second signature value and the second hash value includes: based on the decrypted second signature value and the second hash value being the same, determining the second verification result as the second signature value verification passing, and the second signature value verification passing indicates that the fourth information has not been tampered with during the transmission process; based on the decrypted second signature value and the second hash value being different, determining the second verification result as the second signature value verification failing, and the second signature value verification failing indicates that the fourth information has been tampered with during the transmission process.
[0173] In step 209, when the second verification result is that the second signature value verification is passed, the reference controller of the reference vehicle determines the time corresponding to the reference seconds.
[0174] In a possible implementation, after the second verification result is determined in the above step 208, when the second verification result is that the second signature value is verified to be passed, the reference controller of the reference vehicle determines the time corresponding to the reference seconds.
[0175] Optionally, when the second verification result is that the second signature value verification is passed, and the vehicle identification code of the reference vehicle is the vehicle identification code included in the third information, the reference controller of the reference vehicle determines the time corresponding to the reference seconds.
[0176] Optionally, the process of determining the time corresponding to the reference seconds includes: adding the reference seconds to the first time to obtain the coordinated universal time; and determining the time corresponding to the reference seconds based on the time zone and the coordinated universal time corresponding to the location of the reference vehicle.
[0177] Among them, the first time is 00:00:00 on January 1, 1970.
[0178] Optionally, the process of determining the time corresponding to the reference seconds based on the time zone corresponding to the location of the reference vehicle and the Coordinated Universal Time includes: based on the time zone corresponding to the location of the reference vehicle being East 8, adding 8 hours to the Coordinated Universal Time to obtain the time corresponding to the reference seconds; based on the time zone corresponding to the location of the reference vehicle being West 8, subtracting 8 hours from the Coordinated Universal Time to obtain the time corresponding to the reference seconds.
[0179] Exemplarily, the reference seconds are 1655090235, and the reference seconds are added to the first time, and the obtained Coordinated Universal Time is 8:57:15 on May 13, 2022. Based on the time zone corresponding to the location of the reference vehicle being East Zone 8, 8 hours are added to the Coordinated Universal Time, and the time corresponding to the obtained reference seconds is 16:57:15 on May 13, 2022. Based on the time zone corresponding to the location of the reference vehicle being West Zone 8, 8 hours are subtracted from the Coordinated Universal Time, and the time corresponding to the obtained reference seconds is 00:57:15 on May 13, 2022.
[0180] In step 210 , when the current time is earlier than the time corresponding to the reference number of seconds, the reference controller of the reference vehicle controls the access mode of the on-board diagnostic system of the reference vehicle to be a non-safe access mode.
[0181] In one possible implementation, after the time corresponding to the reference seconds is determined in the above step 209, when the current time is earlier than the time corresponding to the reference seconds, the reference controller of the reference vehicle controls the access mode of the on-board diagnostic system of the reference vehicle to a non-safe access mode.
[0182] Among them, the process of controlling the access mode of the on-board diagnostic system of the reference vehicle to the non-secure access mode includes: controlling the CAN port (an interface in the controller area network (CAN) used to connect devices and transmit data) of the reference vehicle to be opened, controlling the 13400 port (a communication port) of the reference vehicle to be opened, and controlling the ETH (Ethernet) access authentication configuration of the reference vehicle to be closed.
[0183] In another possible implementation, when the current time is later than the time corresponding to the reference number of seconds, the access mode of the on-board diagnostic system of the reference vehicle is not adjusted.
[0184] Optionally, after the access mode of the on-board diagnostic system of the control reference vehicle is set to the non-safe access mode, as time goes by, if the current time is not earlier than the time corresponding to the reference number of seconds, the access mode of the on-board diagnostic system of the control reference vehicle is set to the safe access mode.
[0185] Among them, the process of controlling the access mode of the on-board diagnostic system of the reference vehicle to the safe access mode includes: controlling the CAN port of the reference vehicle to be closed, controlling the 13400 port of the reference vehicle to be closed, and controlling the ETH access authentication configuration of the reference vehicle to be opened.
[0186] The above method switches the access mode of the on-board diagnostic system of the reference vehicle to a non-secure access mode through the interaction between the diagnostic device, the signature server and the reference controller of the reference vehicle, so that the reference controller of the reference vehicle does not need to perform device access authentication on the diagnostic device, that is, the diagnostic device can directly obtain the vehicle data of the reference vehicle to diagnose the reference vehicle based on the vehicle data of the reference vehicle. This method makes vehicle diagnosis more flexible and has a higher success rate of vehicle diagnosis, thereby improving the safety of the vehicle.
[0187] Figure 3 is a flow chart of a vehicle diagnostic method provided by an embodiment of the present application, the method comprises Figure 1 The diagnostic device 101 in the embodiment performs, Figure 3 As shown, the method includes the following steps 301 to 305.
[0188] In step 301 , a vehicle identification code of a reference vehicle is obtained.
[0189] In a possible implementation, the process of obtaining the vehicle identification code of the reference vehicle has been described in the above step 201 and will not be repeated here.
[0190] In step 302, second information is generated based on the first information, the second information includes the first information and a first signature value, the first signature value is determined based on the first information, the first information includes a vehicle identification code, a serial number of the diagnostic device, a reference identifier, a reference controller, a signature algorithm and a signature verification public key, and the reference identifier indicates a non-secure access mode.
[0191] In a possible implementation manner, the process of generating the second information according to the first information has been described in the above step 202 and will not be repeated here.
[0192] In step 303, the second information is sent to the signature server, and the signature server verifies the first signature value based on the first information.
[0193] In a possible implementation manner, the process of sending the second information to the signature server has been described in the above step 203 and will not be repeated here.
[0194] In step 304, the third information returned by the signature server is received when the first signature value is verified. The third information includes fourth information and a second signature value. The second signature value is determined based on the fourth information and the signature algorithm. The fourth information includes a vehicle identification code, a reference second, and a reference identifier.
[0195] In a possible implementation, the process of receiving the third information returned by the signature server when the first signature value is verified successfully has been described in the above step 207 and will not be described again here.
[0196] In step 305, the third information is sent to the reference controller of the reference vehicle, and the reference controller of the reference vehicle verifies the second signature value based on the fourth information. If the second signature value is verified, the time corresponding to the reference seconds is determined. If the current time is earlier than the time corresponding to the reference seconds, the access mode of the on-board diagnostic system of the reference vehicle is controlled to be a non-secure access mode.
[0197] In a possible implementation, the process of sending the third information to the reference controller of the reference vehicle has been described in the above step 207 and will not be repeated here.
[0198] The above method switches the access mode of the on-board diagnostic system of the reference vehicle to a non-secure access mode through the interaction between the diagnostic device, the signature server and the reference controller of the reference vehicle, so that the reference controller of the reference vehicle does not need to perform device access authentication on the diagnostic device, that is, the diagnostic device can directly obtain the vehicle data of the reference vehicle to diagnose the reference vehicle based on the vehicle data of the reference vehicle. This method makes vehicle diagnosis more flexible and has a higher success rate of vehicle diagnosis, thereby improving the safety of the vehicle.
[0199] Figure 4 is a flow chart of a vehicle diagnostic method provided by an embodiment of the present application, the method comprises Figure 1 The signature server 102 in executes, such as Figure 4 As shown, the method includes the following steps 401 to 404.
[0200] In step 401, second information sent by the diagnostic device is received, the second information includes first information and a first signature value, the first signature value is determined based on the first information, the first information includes a vehicle identification code of a reference vehicle, a serial number of the diagnostic device, a reference identifier, a reference controller, a signature algorithm and a signature verification public key, and the reference identifier indicates a non-secure access mode.
[0201] In a possible implementation manner, the process of receiving the second information sent by the diagnostic device has been described in the above step 204 and will not be repeated here.
[0202] In step 402, the first signature value is verified according to the first information to obtain a first verification result.
[0203] In a possible implementation, the process of verifying the first signature value according to the first information to obtain the first verification result has been described in the above step 204 and will not be repeated here.
[0204] In step 403, when the first verification result is that the first signature value is verified successfully, third information is generated, and the third information includes fourth information and a second signature value, the second signature value is determined based on the fourth information and the signature algorithm, and the fourth information includes a vehicle identification code, a reference second, and a reference identifier.
[0205] In a possible implementation, when the first verification result is that the first signature value is verified successfully, the process of generating the third information has been described in the above step 205 and will not be repeated here.
[0206] In step 404, the third information is sent to the diagnostic device, which sends the third information to the reference controller of the reference vehicle. The reference controller of the reference vehicle verifies the second signature value based on the fourth information. If the second signature value is verified, the time corresponding to the reference seconds is determined. If the current time is earlier than the time corresponding to the reference seconds, the access mode of the on-board diagnostic system of the reference vehicle is controlled to be a non-secure access mode.
[0207] In a possible implementation manner, the process of sending the third information to the diagnostic device has been described in the above step 206 and will not be repeated here.
[0208] The above method verifies the first signature value in the second information sent by the diagnostic device, generates third information when the first signature value is verified, and sends the third information to the diagnostic device, so that the diagnostic device sends the third information to the reference controller of the reference vehicle, and the reference controller of the reference vehicle switches the access mode of the on-board diagnostic system of the reference vehicle to the non-safe access mode, so as to send the vehicle data of the reference vehicle to the diagnostic device, so that the diagnostic device diagnoses the reference vehicle. This method improves the flexibility and success rate of vehicle diagnosis, thereby improving the safety of the vehicle.
[0209] Figure 5 is a flow chart of a vehicle diagnostic method provided by an embodiment of the present application, the method comprises Figure 1 The reference controller 103 of the reference vehicle in performs, as Figure 5 As shown, the method includes the following steps 501 to 504.
[0210] In step 501, third information sent by the diagnostic device is received, the third information includes fourth information and a second signature value, the second signature value is determined based on the fourth information and the signature algorithm, the fourth information includes a vehicle identification code of a reference vehicle, a reference second number and a reference identifier, and the reference identifier indicates a non-safe access mode.
[0211] In a possible implementation manner, the process of receiving the third information sent by the diagnostic device has been described in the above step 208 and will not be repeated here.
[0212] In step 502, the second signature value is verified based on the fourth information to obtain a second verification result.
[0213] In a possible implementation, the process of verifying the second signature value based on the fourth information to obtain the second verification result has been described in the above step 208 and will not be repeated here.
[0214] In step 503, when the second verification result is that the second signature value is verified to be successful, the time corresponding to the reference seconds is determined.
[0215] In a possible implementation, when the second verification result is that the second signature value is verified successfully, the process of determining the time corresponding to the reference seconds has been described in the above step 209 and will not be repeated here.
[0216] In step 504 , when the current time is earlier than the time corresponding to the reference number of seconds, the access mode of the on-board diagnostic system of the reference vehicle is controlled to be a non-safe access mode.
[0217] In one possible implementation, when the current time is earlier than the time corresponding to the reference number of seconds, the process of controlling the access mode of the onboard diagnostic system of the reference vehicle to the non-safe access mode has been described in the above step 210 and will not be repeated here.
[0218] After receiving the third information sent by the diagnostic device, the above method first verifies the second signature value in the third information. When the second signature value is verified, the time corresponding to the reference seconds is determined. If the current time is earlier than the time corresponding to the reference seconds, the access mode of the on-board diagnostic system of the reference vehicle is switched to a non-secure access mode. In this way, vehicle data can be sent to the diagnostic device to facilitate the diagnostic device to perform diagnosis, thereby improving the flexibility and success rate of vehicle diagnosis and improving the safety of the vehicle.
[0219] Figure 6 FIG. 1 is a schematic diagram of the structure of a vehicle diagnostic device provided in an embodiment of the present application. Figure 6 As shown, the device comprises:
[0220] An acquisition module 601 is used to acquire a vehicle identification code of a reference vehicle;
[0221] A generating module 602 is used to generate second information according to the first information, where the second information includes the first information and a first signature value, where the first signature value is determined based on the first information, where the first information includes a vehicle identification code, a serial number of a diagnostic device, a reference identifier, a reference controller, a signature algorithm, and a signature verification public key, and where the reference identifier indicates a non-secure access mode;
[0222] A sending module 603 is used to send the second information to the signature server, and the signature server verifies the first signature value based on the first information;
[0223] A receiving module 604 is used to receive third information returned by the signature server when the first signature value is verified, wherein the third information includes fourth information and a second signature value, the second signature value is determined based on the fourth information and the signature algorithm, and the fourth information includes a vehicle identification code, a reference second, and a reference identifier;
[0224] The sending module 603 is also used to send the third information to the reference controller of the reference vehicle, and the reference controller of the reference vehicle verifies the second signature value based on the fourth information. When the second signature value is verified, the time corresponding to the reference seconds is determined. When the current time is earlier than the time corresponding to the reference seconds, the access mode of the on-board diagnostic system of the reference vehicle is controlled to be a non-secure access mode.
[0225] In a possible implementation, the device further includes:
[0226] A determination module is used to concatenate a vehicle identification code, a serial number of a diagnostic device, a reference identifier, a reference controller, a signature algorithm, and a signature verification public key to obtain a first signature original; perform base-to-base conversion on the first signature original to obtain a first signature original after base-to-base conversion; perform a hash operation on the first signature original after base-to-base conversion to obtain a first hash value; encrypt the first hash value using a private key corresponding to the signature verification public key to obtain a first encrypted value; and encode the first encrypted value to obtain a first signature value.
[0227] The above device switches the access mode of the on-board diagnostic system of the reference vehicle to a non-secure access mode through the interaction between the diagnostic device, the signature server and the reference controller of the reference vehicle, so that the reference controller of the reference vehicle does not need to perform device access authentication on the diagnostic device, that is, the diagnostic device can directly obtain the vehicle data of the reference vehicle to diagnose the reference vehicle based on the vehicle data of the reference vehicle. This makes the vehicle diagnosis more flexible and the success rate of vehicle diagnosis higher, thereby improving the safety of the vehicle.
[0228] Figure 7 FIG. 1 is a schematic diagram of the structure of a vehicle diagnostic device provided in an embodiment of the present application. Figure 7 As shown, the device comprises:
[0229] A receiving module 701 is used to receive second information sent by a diagnostic device, where the second information includes first information and a first signature value, where the first signature value is determined based on the first information, where the first information includes a vehicle identification code of a reference vehicle, a serial number of the diagnostic device, a reference identifier, a reference controller, a signature algorithm, and a signature verification public key, and where the reference identifier indicates a non-secure access mode;
[0230] A verification module 702, configured to verify the first signature value according to the first information to obtain a first verification result;
[0231] A generating module 703, configured to generate third information when the first verification result is that the first signature value verification passes, wherein the third information includes fourth information and a second signature value, the second signature value is determined based on the fourth information and the signature algorithm, and the fourth information includes a vehicle identification code, a reference second, and a reference identifier;
[0232] The sending module 704 is used to send the third information to the diagnostic device, and the diagnostic device sends the third information to the reference controller of the reference vehicle. The reference controller of the reference vehicle verifies the second signature value based on the fourth information. When the second signature value is verified, the time corresponding to the reference seconds is determined. When the current time is earlier than the time corresponding to the reference seconds, the access mode of the on-board diagnostic system of the reference vehicle is controlled to be a non-secure access mode.
[0233] In one possible implementation, the verification module 702 is used to decode the first signature value to obtain the decoded first signature value; decrypt the decoded first signature value according to the signature verification public key to obtain the decrypted first signature value; concatenate the vehicle identification code, the serial number of the diagnostic equipment, the reference identifier, the reference controller, the signature algorithm and the signature verification public key to obtain the first signature original; perform base-based conversion on the first signature original to obtain the base-based converted first signature original; perform a hash operation on the base-based converted first signature original to obtain a first hash value; and determine a first verification result according to the decrypted first signature value and the first hash value.
[0234] In a possible implementation, the device further includes:
[0235] A determination module is used to determine the reference seconds according to the time when the second information is received and the reference duration; concatenate the vehicle identification code, the reference seconds and the reference identifier to obtain a second signature original; perform base-to-base conversion on the second signature original to obtain a second signature original after base-to-base conversion; perform a hash operation on the second signature original after base-to-base conversion through a signature algorithm to obtain a second hash value; encrypt the second hash value through a private key of a signature server to obtain a second encrypted value; and encode the second encrypted value to obtain a second signature value.
[0236] The above device verifies the first signature value in the second information sent by the diagnostic device, generates third information when the first signature value is verified, and sends the third information to the diagnostic device, so that the diagnostic device sends the third information to the reference controller of the reference vehicle, and the reference controller of the reference vehicle switches the access mode of the on-board diagnostic system of the reference vehicle to the non-safe access mode, so as to send the vehicle data of the reference vehicle to the diagnostic device, so that the diagnostic device diagnoses the reference vehicle. The flexibility and success rate of vehicle diagnosis are improved, thereby improving the safety of the vehicle.
[0237] Figure 8 FIG. 1 is a schematic diagram of the structure of a vehicle diagnostic device provided in an embodiment of the present application. Figure 8 As shown, the device comprises:
[0238] The receiving module 801 is used to receive third information sent by the diagnostic device, the third information includes fourth information and a second signature value, the second signature value is determined based on the fourth information and the signature algorithm, the fourth information includes a vehicle identification code of a reference vehicle, a reference second and a reference identifier, and the reference identifier indicates a non-secure access mode;
[0239] A verification module 802, configured to verify the second signature value based on the fourth information to obtain a second verification result;
[0240] A determination module 803 is used to determine the time corresponding to the reference seconds when the second verification result is that the second signature value verification passes;
[0241] The control module 804 is used to control the access mode of the on-board diagnostic system of the reference vehicle to be a non-safe access mode when the current time is earlier than the time corresponding to the reference number of seconds.
[0242] In one possible implementation, the verification module 802 is used to decode the second signature value to obtain a decoded second signature value; decrypt the decoded second signature value according to the public key of the signature server to obtain a decrypted second signature value; concatenate the vehicle identification code, the reference seconds and the reference identifier to obtain a second signature original; perform base-based conversion on the second signature original to obtain a base-based converted second signature original; perform a hash operation on the base-based converted second signature original through a signature algorithm to obtain a second hash value; and determine a second verification result based on the decrypted second signature value and the second hash value.
[0243] In a possible implementation, the determination module 803 is used to add reference seconds to the first time to obtain the coordinated universal time; and determine the time corresponding to the reference seconds according to the time zone corresponding to the location of the reference vehicle and the coordinated universal time.
[0244] After receiving the third information sent by the diagnostic device, the above-mentioned device first verifies the second signature value in the third information. When the second signature value is verified, it determines the time corresponding to the reference seconds. If the current time is earlier than the time corresponding to the reference seconds, the access mode of the on-board diagnostic system of the reference vehicle is switched to a non-secure access mode. In this way, vehicle data can be sent to the diagnostic device to facilitate the diagnostic device to perform diagnosis, thereby improving the flexibility and success rate of vehicle diagnosis and improving the safety of the vehicle.
[0245] It should be understood that the above-mentioned device only uses the division of the above-mentioned functional modules as an example to illustrate when implementing its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0246] Fig. 9 is a schematic diagram of the structure of a vehicle diagnostic system provided by an embodiment of the present application, such as Fig. 9 As shown, the system includes a diagnostic device 901, a signature server 902 and a reference controller 903 of a reference vehicle. The diagnostic device 901 is used to perform the above Figure 3 The vehicle diagnostic method shown in the figure, the signature server 902 is used to execute the above Figure 4 The vehicle diagnostic method shown in the figure, the reference controller 903 of the reference vehicle is used to perform the above Figure 5 Vehicle diagnostic method shown.
[0247] The diagnostic device involved in the embodiments of the present application may be a terminal device or other devices, and the embodiments of the present application are not limited to this. Fig.10 The schematic diagram of the structure of a terminal device 1000 provided by an exemplary embodiment of the present application is shown. The terminal device 1000 may be any electronic device product that can perform human-computer interaction with a user through one or more methods such as a keyboard, a touchpad, a remote controller, voice interaction, or a handwriting device. For example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, a smart watch, etc.
[0248] Typically, the terminal device 1000 includes: a processor 1001 and a memory 1002 .
[0249] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0250] The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used to be executed by the processor 1001 to implement the vehicle diagnostic method provided in the method embodiment of the present application.
[0251] In some embodiments, the terminal device 1000 may further optionally include: a peripheral device interface 1003 and at least one peripheral device. The processor 1001, the memory 1002 and the peripheral device interface 1003 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1003 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1004, a display screen 1005, a camera assembly 1006, an audio circuit 1007 and a power supply 1008.
[0252] The peripheral device interface 1003 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0253] The radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1004 can communicate with other terminal devices through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1004 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0254] The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to collect touch signals on the surface or above the surface of the display screen 1005. The touch signal can be input to the processor 1001 as a control signal for processing. At this time, the display screen 1005 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1005 can be one, arranged on the front panel of the terminal device 1000; in other embodiments, the display screen 1005 can be at least two, respectively arranged on different surfaces of the terminal device 1000 or in a folding design; in other embodiments, the display screen 1005 can be a flexible display screen, arranged on a curved surface or a folding surface of the terminal device 1000. Even, the display screen 1005 can also be arranged as a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 1005 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0255] The camera assembly 1006 is used to capture images or videos. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal device 1000, and the rear camera is arranged on the back of the terminal device 1000. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0256] The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1001 for processing, or input them into the radio frequency circuit 1004 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal device 1000. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1007 may also include a headphone jack.
[0257] The power supply 1008 is used to power various components in the terminal device 1000. The power supply 1008 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1008 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0258] In some embodiments, the terminal device 1000 further includes one or more sensors 1009 . The one or more sensors 1009 include, but are not limited to: an acceleration sensor 1010 , a gyroscope sensor 1011 , a pressure sensor 1012 , an optical sensor 1013 , and a proximity sensor 1014 .
[0259] The acceleration sensor 1010 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal device 1000. For example, the acceleration sensor 1010 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1001 can control the display screen 1005 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1010. The acceleration sensor 1010 can also be used to collect game or user motion data.
[0260] The gyro sensor 1011 can detect the body direction and rotation angle of the terminal device 1000, and the gyro sensor 1011 can cooperate with the acceleration sensor 1010 to collect the user's 3D actions on the terminal device 1000. The processor 1001 can implement the following functions based on the data collected by the gyro sensor 1011: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0261] The pressure sensor 1012 can be set on the side frame of the terminal device 1000 and / or the lower layer of the display screen 1005. When the pressure sensor 1012 is set on the side frame of the terminal device 1000, it can detect the user's grip signal of the terminal device 1000, and the processor 1001 performs left and right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 1012. When the pressure sensor 1012 is set on the lower layer of the display screen 1005, the processor 1001 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1005. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0262] The optical sensor 1013 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the display screen 1005 according to the ambient light intensity collected by the optical sensor 1013. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is reduced. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1013.
[0263] The proximity sensor 1014, also called a distance sensor, is usually arranged on the front panel of the terminal device 1000. The proximity sensor 1014 is used to collect the distance between the user and the front of the terminal device 1000. In one embodiment, when the proximity sensor 1014 detects that the distance between the user and the front of the terminal device 1000 is gradually decreasing, the processor 1001 controls the display screen 1005 to switch from the screen-on state to the screen-off state; when the proximity sensor 1014 detects that the distance between the user and the front of the terminal device 1000 is gradually increasing, the processor 1001 controls the display screen 1005 to switch from the screen-off state to the screen-on state.
[0264] Those skilled in the art will understand that Fig.10 The structure shown in the figure does not constitute a limitation on the terminal device 1000, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0265] Fig.11This is a schematic diagram of the structure of the server provided in the embodiment of the present application. The server 1100 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1101 and one or more memories 1102, wherein the one or more memories 1102 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1101 to implement the vehicle diagnostic method provided by the above-mentioned various method embodiments. Of course, the server 1100 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 1100 may also include other components for implementing device functions, which will not be described in detail here.
[0266] In an exemplary embodiment, a computer-readable storage medium is further provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to enable a computer to implement any of the above-mentioned vehicle diagnostic methods.
[0267] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0268] In an exemplary embodiment, a computer program or a computer program product is also provided. The computer program or the computer program product stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor to enable a computer to implement any of the above-mentioned vehicle diagnostic methods.
[0269] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the vehicle identification code of the reference vehicle and the serial number of the diagnostic equipment involved in this application are obtained with full authorization.
[0270] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0271] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A vehicle diagnostic method, characterized in that: Applied to diagnostic equipment, the method comprises: Obtain the vehicle identification number of the reference vehicle; Generate second information according to the first information, wherein the second information includes the first information and a first signature value, the first signature value is determined based on the first information, the first information includes the vehicle identification code, the serial number of the diagnostic device, a reference identifier, a reference controller, a signature algorithm and a signature verification public key, and the reference identifier indicates a non-secure access mode; Sending the second information to a signature server, and having the signature server verify the first signature value based on the first information; receiving third information returned by the signature server when the first signature value is verified successfully, the third information including fourth information and a second signature value, the second signature value being determined based on the fourth information and the signature algorithm, the fourth information including the vehicle identification code, reference seconds, and the reference identifier; The third information is sent to a reference controller of the reference vehicle, and the reference controller of the reference vehicle verifies the second signature value based on the fourth information. If the second signature value is verified, the time corresponding to the reference seconds is determined. If the current time is earlier than the time corresponding to the reference seconds, the access mode of the on-board diagnostic system of the reference vehicle is controlled to the non-secure access mode.
2. The method according to claim 1, characterized in that Before generating the second information according to the first information, the method further includes: Concatenate the vehicle identification code, the serial number of the diagnostic device, the reference identifier, the reference controller, the signature algorithm and the signature verification public key to obtain a first signature original; Performing base-based conversion on the first signature original text to obtain a base-based converted first signature original text; Performing a hash operation on the first signature original text after the base conversion to obtain a first hash value; Encrypt the first Hash value using the private key corresponding to the signature verification public key to obtain a first encrypted value; The first encrypted value is encoded to obtain the first signature value.
3. A vehicle diagnostic method, characterized in that: Applied to a signature server, the method comprises: receiving second information sent by the diagnostic device, the second information comprising first information and a first signature value, the first signature value being determined based on the first information, the first information comprising a vehicle identification code of a reference vehicle, a serial number of the diagnostic device, a reference identifier, a reference controller, a signature algorithm, and a signature verification public key, the reference identifier indicating a non-secure access mode; Verify the first signature value according to the first information to obtain a first verification result; If the first verification result is that the first signature value is verified to be passed, generating third information, the third information including fourth information and a second signature value, the second signature value being determined based on the fourth information and the signature algorithm, and the fourth information including the vehicle identification code, the reference seconds, and the reference identifier; The third information is sent to the diagnostic device, which sends the third information to the reference controller of the reference vehicle, and the reference controller of the reference vehicle verifies the second signature value based on the fourth information, and when the second signature value is verified, determines the time corresponding to the reference seconds, and when the current time is earlier than the time corresponding to the reference seconds, controls the access mode of the on-board diagnostic system of the reference vehicle to the non-secure access mode.
4. The method according to claim 3, characterized in that The verifying the first signature value according to the first information to obtain a first verification result includes: Decoding the first signature value to obtain a decoded first signature value; Decrypting the decoded first signature value according to the signature verification public key to obtain a decrypted first signature value; Concatenate the vehicle identification code, the serial number of the diagnostic device, the reference identifier, the reference controller, the signature algorithm and the signature verification public key to obtain a first signature original; Performing base-based conversion on the first signature original text to obtain a base-based converted first signature original text; Performing a hash operation on the first signature original text after the base conversion to obtain a first hash value; Determine the first verification result according to the decrypted first signature value and the first hash value.
5. The method according to claim 3, characterized in that: When the first verification result is that the first signature value is verified to be passed, before generating the third information, the method further includes: Determine the reference number of seconds according to the time when the second information is received and the reference duration; Concatenate the vehicle identification code, the reference seconds and the reference identifier to obtain a second signature original; Performing base-based conversion on the second original signature to obtain a base-based converted second original signature; Performing a hash operation on the second signature original text after the base-based conversion by using the signature algorithm to obtain a second hash value; Encrypting the second Hash value by using the private key of the signature server to obtain a second encrypted value; The second encrypted value is encoded to obtain the second signature value.
6. A vehicle diagnostic method, characterized in that: Applied to a reference controller of a reference vehicle, the method comprises: receiving third information sent by the diagnostic device, the third information including fourth information and a second signature value, the second signature value being determined based on the fourth information and a signature algorithm, the fourth information including a vehicle identification code, a reference second, and a reference identifier of the reference vehicle, the reference identifier indicating a non-secure access mode; Verify the second signature value based on the fourth information to obtain a second verification result; When the second verification result is that the second signature value verification passes, determining the time corresponding to the reference seconds; When the current time is earlier than the time corresponding to the reference number of seconds, the access mode of the on-board diagnostic system of the reference vehicle is controlled to be the non-safe access mode.
7. The method according to claim 6, characterized in that The verifying the second signature value based on the fourth information to obtain a second verification result includes: Decoding the second signature value to obtain a decoded second signature value; Decrypting the decoded second signature value according to the public key of the signature server to obtain a decrypted second signature value; Concatenate the vehicle identification code, the reference seconds and the reference identifier to obtain a second signature original; Performing base-based conversion on the second original signature to obtain a base-based converted second original signature; Performing a hash operation on the second signature original text after the base-based conversion by using the signature algorithm to obtain a second hash value; Determine the second verification result according to the decrypted second signature value and the second hash value.
8. The method according to claim 6, characterized in that The determining the time corresponding to the reference seconds includes: Adding the reference seconds to the first time to obtain the Coordinated Universal Time; The time corresponding to the reference seconds is determined according to the time zone corresponding to the location of the reference vehicle and the coordinated universal time.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor so that the electronic device implements the vehicle diagnostic method as described in any one of claims 1 to 8.
10. A vehicle diagnostic system, characterized in that: The system includes a diagnostic device, a signature server and a reference controller of a reference vehicle, the diagnostic device is used to execute the vehicle diagnostic method described in any one of claims 1 and 2, the signature server is used to execute the vehicle diagnostic method described in any one of claims 3 to 5, and the reference controller of the reference vehicle is used to execute the vehicle diagnostic method described in any one of claims 6 to 8.
Citation Information
Patent Citations
Diagnostic equipment safety authentication method, server, vehicle and storage medium
CN112235263A
Vehicle diagnosis method, vehicle, diagnosis equipment and storage medium
CN117170347A
Vehicle diagnosis authentication method and system
CN118611898A
Port access method and device, storage medium and processor
CN118631547A
System for diagnosis of a vehicle and method thereof
US20240064029A1
Cited By
Battery pack data access control method
CN121333812A
Vehicle diagnosis method and apparatus, device, system, and vehicle
WO2026179151A1