Power anti-theft authentication method and device, electronic equipment and storage medium
By obtaining the trust ring and identity identification in the vehicle's power anti-theft mode, the mobile data center is checked, and the problem of power anti-theft authentication failure caused by VDC's inability to interact with remote data centers is solved, and safe and accurate power anti-theft authentication is achieved, improving User experience.
Patent Information
- Application Number
- CN202411152397.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-06
Smart Images

Figure CN119078727A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a power anti-theft authentication method, device, electronic equipment and storage medium. Background Art
[0002] The process of the vehicle's power anti-theft authentication is: the vehicle's driving dynamics control system (Vehicle Domain Controller, VDC) generates a random number, the vehicle key generates a random number, and the VDC verifies the random number generated by the key to determine whether the power anti-theft authentication is passed.
[0003] With the improvement of the intelligence level of vehicles, functions of remote use of vehicles such as valet parking and vehicle summoning have emerged. When the user uses the vehicle remotely, since the user himself is not near the vehicle, the vehicle's VDC cannot perform random number verification with the key carried by the user, resulting in failure of the power anti-theft authentication, which in turn leads to the failure of remote use of the vehicle, affecting the user experience. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a power anti-theft authentication method, device, electronic device and storage medium to solve the problem in the prior art that when the vehicle is remotely started, the VDC cannot interact with the vehicle key, resulting in power anti-theft authentication failure, affecting the user's car experience.
[0005] A first aspect of an embodiment of the present application provides a power anti-theft authentication method, the method comprising: in response to a power anti-theft authentication request issued by a mobile data center, obtaining a current mode of a vehicle; when the current mode of the vehicle is a power anti-theft mode, obtaining a trust ring for indicating a trust relationship with the mobile data center, and obtaining an identity of the mobile data center; verifying the mobile data center based on the identity and the trust ring, and determining that the power anti-theft authentication request is passed when the verification of the mobile data center is passed.
[0006] According to a second aspect of an embodiment of the present application, a power anti-theft authentication device is provided, which includes: a response module, used to respond to a power anti-theft authentication request issued by a mobile data center and obtain the current mode of the vehicle; an acquisition module, used to obtain a trust ring indicating a trust relationship with the mobile data center and obtain an identity of the mobile data center when the current mode of the vehicle is the power anti-theft mode; a verification module, used to verify the mobile data center according to the identity and the trust ring, and when the verification of the mobile data center passes, it is determined that the power anti-theft authentication request passes.
[0007] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0008] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0009] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the method in the embodiments of the present application obtains the current mode of the vehicle in response to the power anti-theft authentication request issued by the mobile data center; when the current mode of the vehicle is the power anti-theft mode, obtains a trust ring for indicating a trust relationship with the mobile data center, and obtains the identity of the mobile data center; verifies the mobile data center according to the identity and the trust ring, and determines that the power anti-theft authentication request passes when the verification of the mobile data center passes, wherein the mobile data center is verified by the directly obtained identity and trust ring, which reduces the interaction process with external devices, achieves the effect of shortening the power anti-theft authentication process, and ensures the security of the power anti-theft authentication; in addition, the mobile data center is verified by both the identity and the trust ring, which ensures the accuracy of the corresponding verification results of the mobile data center, improves the fault tolerance of the anti-theft authentication process, and can achieve power anti-theft authentication without interacting with the vehicle key, thereby improving the user's car experience and avoiding the problem that the VDC cannot interact with the vehicle key when the vehicle is remotely started, resulting in the failure of power anti-theft authentication and affecting the user's car experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0011] Figure 1 It is a flowchart of a power anti-theft authentication method provided in an embodiment of the present application;
[0012] Figure 2 It is a flowchart of another power anti-theft authentication method provided in an embodiment of the present application;
[0013] Figure 3 It is a flowchart of another power anti-theft authentication method provided in an embodiment of the present application;
[0014] Figure 4It is a flowchart of another power anti-theft authentication method provided in an embodiment of the present application;
[0015] Figure 5 It is a flowchart of another power anti-theft authentication method provided in an embodiment of the present application;
[0016] Figure 6 It is a flowchart of another optional power anti-theft authentication method provided in an embodiment of the present application;
[0017] Figure 7 It is a basic flow chart of building a trust loop corresponding to a driving dynamics control system provided by an embodiment of the present application;
[0018] Figure 8 It is a flowchart of another optional power anti-theft authentication method provided in an embodiment of the present application;
[0019] Fig. 9 It is a flowchart of another optional power anti-theft authentication method provided in an embodiment of the present application;
[0020] Fig.10 It is a structural schematic diagram of a power anti-theft authentication device provided in an embodiment of the present application;
[0021] Fig.11 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0023] A power anti-theft authentication method and device according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0024] Figure 1 This is a power anti-theft authentication method provided by the embodiment of the present application, such as Figure 1 As shown, the method includes:
[0025] S101, in response to a power anti-theft authentication request sent by a mobile data center, obtaining a current mode of the vehicle;
[0026] S102: when the current mode of the vehicle is the power anti-theft mode, obtaining a trust ring for indicating a trust relationship with the mobile data center, and obtaining an identity of the mobile data center;
[0027] S103, verifying the mobile data center according to the identity identifier and the trust ring, and when the mobile data center is verified, determining that the power anti-theft authentication request is passed.
[0028] It can be understood that the above-mentioned power anti-theft authentication method provided in this example is applied to the VDC set in the vehicle, and the above-mentioned vehicles include vehicles with automatic driving or intelligent driving (including vehicles with passenger functions (such as cars, buses, large buses, minibuses, etc.), cargo vehicles (such as ordinary trucks, vans, trailers, closed trucks, tank trucks, flatbed trucks, container trucks, dump trucks, special structure trucks), special vehicles (such as logistics distribution vehicles, automatic guided transport vehicles AGV, patrol cars, cranes, cranes, excavators, bulldozers, forklifts, rollers, loaders, off-road engineering vehicles, armored engineering vehicles, sewage treatment vehicles, sanitation vehicles, vacuum trucks, floor washing vehicles, sprinkler trucks, sweeping robots, food delivery robots, shopping guide robots, lawn mowers, golf carts, etc.), vehicles with entertainment functions (such as entertainment vehicles, amusement park automatic driving devices, balance cars, etc.), rescue vehicles (such as fire trucks, ambulances, power repair vehicles, engineering rescue vehicles, etc.)), etc.
[0029] In some examples, when a user uses a vehicle remotely, he or she initiates an operation instruction (e.g., a valet parking instruction, a vehicle summoning instruction) to a mobile data center (MDC). When the MDC receives the operation instruction, it sends a power anti-theft authentication request to the VDC based on the operation instruction.
[0030] Continuing with the above example, the VDC responds to the received power anti-theft authentication request and obtains the current mode of the vehicle. It can be understood that if the current mode of the vehicle is the power anti-theft mode, a trust ring indicating the trust relationship with the mobile data center is obtained, and the identity of the mobile data center is obtained; if the current mode of the vehicle is a non-power anti-theft mode (power-off mode, identity authentication mode, etc.), the current state is maintained and the response to the power anti-theft authentication request of the MDC is stopped.
[0031] In some examples, the above trust loop is the information transmitted to the VDC after the diagnostic equipment verifies the VDC and MDC trust loops when the vehicle is offline; it can be understood that the VDC stores the trust loop in an electrically erasable programmable read only memory (EEPROM), thereby effectively storing the above trust loop so that the trust loop will not be lost when the power is turned off. How to obtain the above trust loop will be described in detail later, so it will not be repeated here.
[0032] This example also obtains the identity of the mobile data center, which includes but is not limited to one of an ID and a name; in some examples, the power anti-theft authentication request transmitted in the MDC carries the above-mentioned identity, and obtaining the identity of the mobile data center includes: parsing the above-mentioned power anti-theft authentication request to obtain the identity of the mobile data center; in some examples, the above-mentioned power anti-theft authentication request does not carry an identity, and obtaining the identity of the mobile data center includes: receiving the identity transmitted by the mobile data center.
[0033] After obtaining the trust ring and identity, this example verifies the mobile data center according to the identity and trust ring. When the mobile data center verification passes, it is determined that the power anti-theft authentication request passes; conversely, if the mobile data center verification fails, it is determined that the power anti-theft authentication request fails; wherein, the mobile data center is verified by the trust ring and the identity, realizing the verification of the mobile data center by two means, thereby ensuring the accuracy of the corresponding verification results of the mobile data center.
[0034] According to the technical solution provided in the embodiment of the present application, in response to a power anti-theft authentication request issued by a mobile data center, the current mode of the vehicle is obtained; when the current mode of the vehicle is the power anti-theft mode, a trust ring for indicating a trust relationship with the mobile data center is obtained, and an identity identifier of the mobile data center is obtained; the mobile data center is verified according to the identity identifier and the trust ring, and when the verification of the mobile data center passes, it is determined that the power anti-theft authentication request passes, wherein the mobile data center is verified by directly obtaining the identity identifier and the trust ring, which reduces the interaction process with external devices, achieves the effect of shortening the power anti-theft authentication process, and ensures the security of the power anti-theft authentication. In addition, the mobile data center is verified by both the identity identifier and the trust ring, which ensures the accuracy of the corresponding verification results of the mobile data center, improves the fault tolerance of the anti-theft authentication process, and can achieve power anti-theft authentication without interacting with the vehicle key, thereby improving the user's car experience and avoiding the problem that the VDC cannot interact with the vehicle key when the vehicle is remotely started, resulting in power anti-theft authentication failure and affecting the user's car experience.
[0035] In some embodiments, Figure 2 As shown, the mobile data center is verified based on the identity and trust ring, including:
[0036] S201, parsing the trust ring, and when the trust ring indicates that the mobile data center is a trusted device, obtaining an identification obfuscation value, and encrypting the identity according to the identification obfuscation value to obtain an encrypted identity;
[0037] S202, performing a shift operation on the encrypted identity identifier according to a preset shift method to obtain a first check value, and receiving a second check value calculated by the mobile data center according to the identity identifier;
[0038] S203: Match the first verification value with the second verification value. If the first verification value and the second verification value match successfully, it is determined that the mobile data center verification has passed.
[0039] In some examples, the VDC will parse the trust ring. When the trust ring indicates that the MDC is a trusted device, it will continue to execute the steps of "obtaining the identification confusion value, encrypting the identity according to the identification confusion value, and obtaining the encrypted identity". When the trust ring indicates that the MDC is an untrusted device, it will be determined that the MDC verification has failed and the power anti-theft authentication request has failed. In some examples, when it is determined that the power anti-theft authentication request has failed, the VDC will also return a message to the MDC indicating that the power anti-theft authentication request has failed.
[0040] In some examples, when the trust ring characterizes the mobile data center as a trusted device, an identification confusion value is obtained, and the identity is encrypted according to the identification confusion value to obtain an encrypted identity; exemplarily, the identity and the identification confusion value are differenced to encrypt the identity and obtain an encrypted identity; exemplarily, the identity and the identification confusion value are summed to encrypt the identity and obtain an encrypted identity; this example does not limit the specific method of encrypting the identity by the identification confusion value, which can be flexibly set by relevant personnel according to actual needs.
[0041] It can be understood that the above-mentioned identification obfuscation value can be a pre-set value; the above-mentioned identification obfuscation value can also be obtained according to a pre-set hash algorithm, for example, by hashing the identity identifier and using the hash encrypted value as the identification obfuscation value.
[0042] After the encrypted identity is determined, the encrypted identity is shifted according to a preset shift method to obtain a first verification value; the above-mentioned preset shift method can be flexibly set by relevant personnel according to actual needs; illustratively, the above-mentioned preset shift method includes: shifting the encrypted identity to the left by N bits or shifting the encrypted identity to the right by N bits.
[0043] In order to better understand the above method, this embodiment provides a more specific example for illustration; specifically, the identification confusion value is 0x8, the bit is shifted one place to the left, and the process of encrypting the identity according to the identification confusion value is to calculate the difference between the identity and the identification confusion value, then the final first check value = (identity-0x8)<<1.
[0044] In some examples, this example will also receive a second verification value calculated by the mobile data center based on the identity identifier. It can be understood that this example does not limit the specific method of obtaining the above-mentioned second verification value, and the mobile data center can implement the second verification value calculated based on the identity identifier in any way; preferably, the mobile data center obtains the identification confusion value, and then encrypts the identity identifier according to the identification confusion value to obtain an encrypted identity identifier; and shifts the encrypted identity identifier according to a preset shift method to obtain the second verification value.
[0045] Continuing with the above example, after obtaining the first verification value and the second verification value, this example will match the first verification value with the second verification value. If the first verification value and the second verification value match successfully, it is determined that the mobile data center verification has passed. Conversely, if the first verification value and the second verification value fail to match, it is determined that the mobile data center verification has failed.
[0046] Among them, matching the first check value with the second check value includes: comparing the first check value and the second check value, if the first check value and the second check value are the same, it is determined that the mobile data center verification has passed; if the first check value and the second check value are different, it is determined that the mobile data center verification has failed; matching the first check value with the second check value also includes: operating the first check value and the second check value (the operation includes but is not limited to one of arithmetic operations, logical operations, comparison operations, bit operations, and assignment operations), if the operation results of the first check value and the second check value meet the expected results, it is determined that the mobile data center verification has passed; if the operation results of the first check value and the second check value do not meet the expected results, it is determined that the mobile data center verification has failed.
[0047] According to the technical solution provided in the embodiment of the present application, the trust ring is parsed, and when the trust ring characterizes that the mobile data center is a trusted device, a first verification value corresponding to the mobile data center is calculated according to the identity identifier; a second verification value calculated by the mobile data center according to the identity identifier is received, and the first verification value is matched with the second verification value; if the first verification value and the second verification value match successfully, it is determined that the mobile data center verification has passed, wherein the above method realizes the verification of the mobile data center through the trust ring and the identity identifier respectively, ensures the accuracy of the corresponding verification result of the mobile data center, improves the fault tolerance of the anti-theft authentication process, and realizes power anti-theft authentication without interacting with the vehicle key, thereby improving the user's car experience, and avoiding the problem that the VDC cannot interact with the vehicle key when the vehicle is remotely started, resulting in the failure of power anti-theft authentication, affecting the user's car experience.
[0048] In some embodiments, Figure 3 As shown, get the current mode of the vehicle, including:
[0049] S301, matching the identity of the mobile data center with a preset target identity;
[0050] S302: If the identity identifier successfully matches the preset target identity identifier, the current mode of the vehicle is obtained.
[0051] It is understandable that in order to avoid the problem of VDC receiving power anti-theft authentication requests from malicious devices and directly entering the power anti-theft authentication process, which leads to resource waste, this example will also perform identity authentication on the mobile data center to determine whether the mobile data center can initiate a power anti-theft authentication request.
[0052] Specifically, a target identity is preset in the VDC, and the target identity is an identity corresponding to a device that can communicate with the MDC. After acquiring the identity of the mobile data center, this example matches the identity of the mobile data center with the target identity.
[0053] In some examples, matching the identity of the mobile data center with a preset target identity includes: comparing the identity of the mobile data center with the preset target identity, if the identity of the mobile data center is the same as the target identity, determining that the identity matches the preset target identity successfully; if the identity of the mobile data center is not the same as the target identity, determining that the identity matches the preset target identity unsuccessfully.
[0054] In some examples, matching the identity of the mobile data center with a preset target identity includes: performing a preset expected value operation on the identity of the mobile data center and the preset target identity, and if the result of the expected value operation meets the target result, determining that the identity matches the preset target identity successfully; if the result of the expected value operation does not meet the target result, determining that the identity matches the preset target identity unsuccessfully.
[0055] If the identity identifier successfully matches the preset target identity identifier, the current mode of the vehicle is obtained; otherwise, if the identity identifier fails to match the preset target identity identifier, the step of obtaining the current mode of the vehicle will not be performed. Exemplarily, if the identity identifier of the mobile data center is the same as the target identity identifier, it is determined that the identity identifier successfully matches the preset target identity identifier, and the current mode of the vehicle is obtained; otherwise, if the identity identifier of the mobile data center is different from the target identity identifier, it is determined that the identity identifier fails to match the preset target identity identifier, and the step of obtaining the current mode of the vehicle will not be performed.
[0056] According to the technical solution provided in the embodiment of the present application, the identity identifier of the mobile data center is matched with the preset target identity identifier; if the identity identifier matches the preset target identity identifier successfully, the current mode of the vehicle is obtained, thereby realizing the authentication of the device that issued the power anti-theft authentication request. Only after the authentication of the device that issued the power anti-theft authentication request is passed, the power anti-theft authentication process will be entered to obtain the current mode of the vehicle, thereby avoiding the problem of resource waste caused by the VDC receiving the power anti-theft authentication request issued by a malicious device and directly entering the power anti-theft authentication process.
[0057] In some embodiments, Figure 4 As shown, before obtaining the current mode of the vehicle, the method further includes:
[0058] S401, receiving a vehicle identification code transmitted by a diagnostic device, and obtaining first trust ring information corresponding to a mobile data center;
[0059] S402, judging whether the mobile data center meets the trust ring condition according to the first trust ring information and the vehicle identification code;
[0060] S403: If the mobile data center meets the trust ring condition, obtain the second trust ring information generated based on the vehicle identification code, and send the first trust ring information and the second trust ring information to the diagnostic device;
[0061] S404: Receive a device whitelist obtained by the diagnostic device based on the first trust ring information and the second trust ring information, and verify the device whitelist. When the device whitelist is verified, construct a trust ring for indicating that the mobile data center is a trusted device.
[0062] Specifically, in this example, the VDC interacts with the mobile data center to obtain the first trust ring information corresponding to the mobile data center. The first trust ring information is generated by the mobile data center based on the vehicle identification code transmitted by the diagnostic device and the serial number (Serial Number, SN) of the mobile data center itself after the mobile data center receives the vehicle identification code transmitted by the diagnostic device.
[0063] It can be understood that the trust ring conditions can only be met when the mobile data center and the VDC are in the same vehicle; if the mobile data center and the VDC are in different vehicles, it is impossible to meet the trust ring conditions; based on the above principle, after obtaining the first trust ring information, this example will determine whether the mobile data center meets the trust ring conditions based on the first trust ring information and the vehicle identification code; specifically, according to the vehicle manufacturing and setting standards, if the mobile data center and the VDC are in the same vehicle, the VIN received by the mobile data center and the VDC should be the same. Therefore, this example can parse the first trust ring information, obtain the vehicle identification code carried in the first trust ring information, and use the vehicle identification code as the vehicle identification code to be verified, and determine whether the mobile data center meets the trust ring conditions based on the vehicle identification code to be verified and the vehicle identification code received on the VDC.
[0064] Continuing with the above example, if the mobile data center meets the trust ring conditions, this example will send the first trust ring information and the second trust ring information (the trust ring information generated by the VDC based on the VIN information sent by the diagnostic device and its own serial number is the second trust ring information) to the diagnostic device; it can be understood that the VDC will integrate the first trust ring information and the second trust ring information, and after the integration is completed, the integrated trust ring information will be sent to the diagnostic device. After receiving the above-mentioned integrated trust ring information, the diagnostic device will pass it to the electrical inspection server, which will assemble the trust ring data and generate the corresponding device whitelist (Devlist), and then the diagnostic device will send the device whitelist to the VDC.
[0065] In this example, after receiving the device whitelist, the VDC will verify the device whitelist. When the device whitelist verification passes, a trust ring is built to indicate that the mobile data center is a trusted device. When the device whitelist verification fails, the diagnostic trouble codes (DTC) are recorded. The above verification steps can be flexibly set by relevant personnel according to actual needs and will not be repeated here.
[0066] After VDC completes the signature verification of the device whitelist, it will persist the device whitelist. In addition, VDC will send the device whitelist to MDC, so that MDC can verify the device whitelist. When the device whitelist signature verification passes, MDC will persist the device whitelist. When the device whitelist signature verification fails, MDC will also record DTC.
[0067] According to the technical solution provided in the embodiment of the present application, a vehicle identification code transmitted by a diagnostic device is received, and first trust ring information corresponding to a mobile data center is obtained; based on the first trust ring information and the vehicle identification code, it is determined whether the mobile data center meets the trust ring condition; if the mobile data center meets the trust ring condition, second trust ring information generated based on the vehicle identification code is obtained, and the first trust ring information and the second trust ring information are sent to the diagnostic device; a device whitelist obtained by the diagnostic device based on the first trust ring information and the second trust ring information is received, and the device whitelist is verified, and when the device whitelist is verified, a trust ring is constructed to indicate that the mobile data center is a trusted device, thereby realizing the construction of a trust ring between the MDC and the VDC based on the vehicle identification code.
[0068] In some embodiments, Figure 5 As shown, judging whether the mobile data center meets the trust ring condition according to the first trust ring information and the vehicle identification code includes:
[0069] S501, parsing the first trust ring information to obtain a vehicle identification code to be verified;
[0070] S502: Compare the vehicle identification code to be verified with the vehicle identification code. If the vehicle identification code to be verified and the vehicle identification code are the same, determine that the mobile data center meets the trust ring condition.
[0071] Specifically, when the mobile data center and the VDC are in the same vehicle, it is possible to meet the trust ring conditions; if the mobile data center and the VDC are in different vehicles, it is impossible to meet the trust ring conditions; based on the above principle, it can be seen that this example needs to determine whether the mobile data center and the VDC are in the same vehicle.
[0072] Continuing with the above example, since the first trust ring information is generated by the MDC based on the vehicle identification code sent by the diagnostic device and the SN number of the mobile data center itself, the vehicle identification code carried in the first trust ring information can be obtained by parsing the first trust ring information, and the vehicle identification code obtained by parsing is used as the vehicle identification code to be verified.
[0073] After obtaining the vehicle identification code to be verified, this example compares the vehicle identification code to be verified with the vehicle identification code. If the vehicle identification code to be verified and the vehicle identification code are the same, it indicates that the mobile data center and the VDC are different devices on the same vehicle, and it is determined that the mobile data center meets the trust ring condition; if the vehicle identification code to be verified and the vehicle identification code are different, it indicates that the mobile data center and the VDC are different devices on different vehicles, and it is determined that the mobile data center does not meet the trust ring condition.
[0074] In some examples, in order to improve the accuracy of the trust ring conditions, this example also needs to further determine whether its own security certificate has been filled. When the security certificate is filled and the vehicle identification code to be verified is the same as the vehicle identification code, it is determined that the mobile data center meets the trust ring conditions; if the security certificate is not filled, or the vehicle identification code to be verified is different from the vehicle identification code, it is determined that the mobile data center does not meet the trust ring conditions.
[0075] According to the technical solution provided in the embodiment of the present application, the first trust ring information is parsed to obtain the vehicle identification code to be verified; the vehicle identification code to be verified is compared with the vehicle identification code, and if the vehicle identification code to be verified and the vehicle identification code are the same, it is determined that the mobile data center meets the trust ring condition, and the vehicle identification code to be verified is obtained by parsing the first trust ring information, and when the vehicle identification code to be verified and the vehicle identification code are the same, it is determined that the mobile data center meets the trust ring condition, and then based on the vehicle identification code, it is ensured that when it is determined that the mobile data center and the VDC are in the same vehicle, the trust ring condition is determined to be met, thereby improving the accuracy of the trust ring condition.
[0076] In some embodiments, Figure 6 As shown, the device whitelist is signed and verified. When the device whitelist is signed and verified, after a trust ring is constructed to indicate that the mobile data center is a trusted device, the method further includes:
[0077] S601, receiving a trust ring status reading instruction issued by a diagnostic device, and obtaining a trust ring and a trust ring corresponding to a mobile data center according to the trust ring status reading instruction;
[0078] S602: Transmit the trust ring and the trust ring corresponding to the mobile data center to the diagnostic device, so that the diagnostic device displays the trust ring and the trust ring corresponding to the mobile data center through a visual interface.
[0079] In some examples, in order to confirm whether the VDC has generated a trust ring indicating a trust relationship with the mobile data center, the diagnostic device will issue a trust ring status read instruction to the VDC. When the VDC receives the trust ring status read instruction, it will obtain its own trust ring and the trust ring corresponding to the MDC.
[0080] After obtaining the above-mentioned trust ring corresponding to itself and the trust ring corresponding to MDC, VDC will return the trust ring corresponding to itself and the trust ring corresponding to MDC to the diagnostic device, so that the diagnostic device can display the trust ring corresponding to VDC and the trust ring corresponding to MDC through a visual interface, so that relevant personnel can intuitively know whether VDC has successfully built a trust ring with the mobile data center as a trusted device, and whether the mobile data center has successfully built a trust ring with VDC as a trusted device.
[0081] It can be understood that if the VDC fails to successfully build a trust ring with the mobile data center as a trusted device, or the mobile data center fails to successfully build a trust ring with the VDC as a trusted device, the relevant personnel analyze the reasons for the failure to establish a trust relationship, and make corresponding adjustments to the MDC and / or VDC, and then re-execute steps S401 to S404 to achieve the construction of the trust ring corresponding to the VDC and / or MDC.
[0082] In order to better understand the present method, the present embodiment provides a more specific example for illustration. When the vehicle is off the production line, device authentication is performed between the VDC and the MDC. The VDC saves the device authentication result and generates a trust ring for indicating that the mobile data center is a trusted device.
[0083] Among them, the diagnostic device initiates the device authentication process. After the VDC authentication is completed, the authentication results between the devices are finally stored in the EEP and returned to the diagnostic device. The trust ring stored in the VDC is used for subsequent device verification.
[0084] Specifically, Figure 7 As shown, the diagnostic device sends the vehicle VIN information to the VDC and stores the key. The diagnostic device sends the vehicle VIN information to the MDC and stores the key, and the key is used to achieve secure communication between the VDC and the MDC. It can be understood that when the MDC receives the above VIN information, it will generate the first trust ring information based on the VIN and its own SN, and when the VDC receives the above VIN information, it will generate the second trust ring information based on the VIN and its own SN.
[0085] The diagnostic device sends a 31 01 DD 39 instruction to the VDC, which is used to trigger the reading of the trust ring information.
[0086] When VDC receives the above instructions, it will read the first trust ring information of the MDC in the vehicle (the trust ring information generated by the MDC based on the stored VIN and the SN number of the MDC); it can be understood that VDC can also read the trust ring information of other devices in the vehicle, which will not be repeated here.
[0087] If the VDC successfully reads the first trust ring information of the MDC, the subsequent operations will continue to be performed; if the VDC fails to read the first trust ring information of the MDC, the DTC will be recorded.
[0088] In some examples, after the VDC reads the first trust ring information, it will further detect whether the trust ring conditions are met based on the first trust ring information (for example, the trust ring conditions are met if: 1. The VDC itself has completed the filling of the security certificate; 2. The VDC has completed the VIN writing; 3. The VDC reads the first trust ring information and the VIN in the first trust ring information is consistent with the VIN stored in the VDC)).
[0089] In some examples, the VDC confirms that the first trust ring information read meets the trust ring conditions, then the VDC integrates the second trust ring information (the trust ring information generated by the VDC based on the VIN sent by the diagnostic device and its own SN information is the second trust ring information) and the first trust ring information (which may also include the trust ring information read from other devices), and after the integration is completed, replies 71 01DD 39 00+the integrated trust ring information.
[0090] If the VDC confirms that the read first trust ring information meets the trust ring condition, the DTC is recorded.
[0091] In some examples, after the diagnostic device obtains the integrated trust ring information, it transmits the integrated trust ring information to the electrical inspection server, which assembles the integrated trust ring information and generates a corresponding devlist (device whitelist).
[0092] In some examples, the diagnostic device queries the corresponding DevList on the electrical inspection server through the VIN, and sends 3101DD3A+DevList to the VDC. The 1.8VDC verifies the DevList. After the verification is successful, a trust ring is generated to indicate that the mobile data center is a trusted device. At the same time, if the VDC passes the Devlist verification, the DevList is permanently saved. If the VDC fails to verify the Devlist, the DTC is recorded.
[0093] VDC sends DevList to MDC. MDC will verify the signature of DevList. After MDC successfully verifies the signature of Devlist, it generates a trust ring indicating that VDC is a trusted device. After MDC successfully verifies the signature of Devlist, it will also save DevList persistently. When MDC fails to verify the signature of Devlist, it will record DTC and return the error result to VDC.
[0094] After the diagnostic device passes the DevList, it waits for about 3 seconds and sends 22F1 57 to read the trust ring status. After receiving the instruction, the VDC determines and returns the trust ring status to determine whether the VDC has generated a trust ring for indicating that the mobile data center is a trusted device, and whether the MDC has generated a trust ring for indicating that the VDC is a trusted device.
[0095] The diagnostic device displays the reading results of the trust ring according to the content of the VDC reply, so that relevant personnel can intuitively understand the reading results of the trust ring.
[0096] According to the technical solution provided in the embodiment of the present application, a trust ring status reading instruction issued by a diagnostic device is received, and the trust ring and the trust ring corresponding to the mobile data center are obtained according to the trust ring status reading instruction; the trust ring and the trust ring corresponding to the mobile data center are transmitted to the diagnostic device, so that the diagnostic device displays the trust ring and the trust ring corresponding to the mobile data center through a visual interface, thereby enabling relevant personnel to quickly and intuitively know whether a trust relationship is successfully established between the mobile data center and the VDC.
[0097] In some examples, such as Figure 8 As shown, after determining that the power anti-theft authentication request is passed, the method further includes:
[0098] S801, generating a power anti-theft authentication request passing message;
[0099] S802: Transmit the power anti-theft authentication request to the mobile data center through a message, so that the mobile data center executes the power function corresponding to the power anti-theft authentication request.
[0100] Specifically, after the power anti-theft authentication request is passed, the VDC will generate a power anti-theft authentication request passed message, and send the power anti-theft authentication request passed message to the MDC. When the MDC receives the power anti-theft authentication request message, it will execute the power function corresponding to the power anti-theft authentication request; illustratively, for example, the above-mentioned power function includes a valet parking function corresponding to a substitute parking instruction, and the power anti-theft authentication request is issued based on the valet parking instruction. Then, after receiving the power anti-theft authentication request passed message, the MDC will execute the valet parking function; conversely, if the MDC receives a power anti-theft authentication request failed message, it will exit the remote parking function.
[0101] In order to better understand the present method, this embodiment provides a more specific example for illustration. Fig. 9 As shown, the user sends a valet parking instruction to the MDC, the MDC calls the power anti-theft service, transmits the power anti-theft authentication request to the VDC, and sends the corresponding ID verification value 0x236 to the VDC.
[0102] When receiving the power anti-theft authentication request, VDC determines the ID (identity) of MDC; if it is determined that the ID of MDC is the preset target identity (taking the target identity as 0x123 as an example): CallerID==0x123(MDC), VDC returns the anti-theft service call result Success, continues to perform anti-theft condition judgment, and performs double verification. If it is determined that the ID of MDC is different from the preset target identity: CallerID≠123(MDC), VDC returns the anti-theft service call result Failed to MDC.
[0103] Continuing with the above example, after VDC determines that the ID of MDC is the preset target identity, VDC will detect the preconditions; specifically, VDC will further obtain the current mode of the vehicle. If the current mode of the vehicle is anti-theft mode (the anti-theft mode is Inactive / Convenience / Remote), it will enter the subsequent MDC anti-theft process. Conversely, if the current mode of the vehicle is not in anti-theft mode, VDC will maintain the current state and will not respond to the power anti-theft authentication request issued by MDC.
[0104] In some examples, after the VDC enters the MDC anti-theft process, it will read the VDC's trust ring, which is used to indicate the trust relationship with the mobile data center (the trust ring is stored in the EEPROM after the diagnostic equipment verifies it when the vehicle is offline). If the VDC reads the EEPROM successfully: the VDC parses the trust ring stored in the EEPROM. If the VDC fails to read the EEPROM: the EEPROM reading fails, and the VDC feedback anti-theft does not pass the Lock.
[0105] VDC further parses the read trust ring. If the trust ring verification succeeds (the trust ring indicates that the mobile data center is a trusted device, then the trust ring verification is determined to be successful), the ID verification value of the MDC is calculated; if the trust ring verification fails (the trust ring indicates that the mobile data center is a non-trusted device, then the trust ring verification fails): VDC returns anti-theft failure Lock.
[0106] VDC calculates the ID check value sent by MDC according to a known algorithm. Specifically, if the ID check value passes, the first ID check value calculated by VDC is consistent with the second ID check value sent by MDC, and VDC sends the anti-theft pass Release result to MDC via Ethernet. [Algorithm: ID check value = (CallerID–0x8)<<1]; if the ID check value fails, VDC sends the anti-theft fail Lock result to MDC via Ethernet.
[0107] MDC performs the parking function based on the anti-theft results returned by VDC.
[0108] Power anti-theft pass: MDC continues to perform valet parking functions.
[0109] Power anti-theft failure: MDC exits the valet parking function.
[0110] According to the technical solution provided in the embodiment of the present application, a power anti-theft authentication request is generated through a message; the power anti-theft authentication request is transmitted to the mobile data center through the message, so that the mobile data center executes the power function corresponding to the power anti-theft authentication request, thereby ensuring the safety of the vehicle.
[0111] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0112] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0113] This embodiment also provides a power anti-theft authentication device, such as Fig.10 As shown, the device comprises:
[0114] A response module 1001 is used to respond to the power anti-theft authentication request sent by the mobile data center and obtain the current mode of the vehicle;
[0115] The acquisition module 1002 is used to acquire a trust ring indicating a trust relationship with the mobile data center and acquire an identity of the mobile data center when the current mode of the vehicle is the power anti-theft mode;
[0116] The verification module 1003 is used to verify the mobile data center according to the identity identifier and the trust ring, and when the verification of the mobile data center passes, it is determined that the power anti-theft authentication request is passed.
[0117] In some examples, the verification module 1003 is also used to parse the trust ring. When the trust ring characterizes the mobile data center as a trusted device, an identification confusion value is obtained, and the identity identifier is encrypted according to the identification confusion value to obtain an encrypted identity identifier; the encrypted identity identifier is shifted according to a preset shift method to obtain a first verification value, and a second verification value calculated by the mobile data center based on the identity identifier is received; the first verification value is matched with the second verification value, and if the first verification value and the second verification value match successfully, it is determined that the mobile data center verification has passed.
[0118] In some examples, the response module 1001 is further used to match the identity of the mobile data center with a preset target identity; if the identity successfully matches the preset target identity, the current mode of the vehicle is obtained.
[0119] In some examples, the power anti-theft authentication device also includes a construction module for receiving a vehicle identification code transmitted by a diagnostic device and obtaining first trust ring information corresponding to a mobile data center; judging whether the mobile data center meets the trust ring conditions based on the first trust ring information and the vehicle identification code; if the mobile data center meets the trust ring conditions, obtaining second trust ring information generated based on the vehicle identification code, and sending the first trust ring information and the second trust ring information to the diagnostic device; receiving a device whitelist obtained by the diagnostic device based on the first trust ring information and the second trust ring information, and verifying the device whitelist. When the device whitelist is verified, a trust ring is constructed to indicate that the mobile data center is a trusted device.
[0120] In some examples, the construction module is also used to parse the first trust ring information to obtain the vehicle identification code to be verified; compare the vehicle identification code to be verified with the vehicle identification code, and if the vehicle identification code to be verified and the vehicle identification code are the same, it is determined that the mobile data center meets the trust ring conditions.
[0121] In some examples, the building module is also used to receive a trust ring status reading instruction issued by the diagnostic device, perform trust ring verification with the mobile data center according to the trust ring status reading instruction, and obtain a trust ring verification result; return the trust ring verification result to the diagnostic device, so that the diagnostic device displays the trust ring verification result through a visual interface.
[0122] In some examples, the verification module 1003 is further used to generate a power anti-theft authentication request pass message; transmit the power anti-theft authentication request pass message to the mobile data center, so that the mobile data center executes the power function corresponding to the power anti-theft authentication request.
[0123] According to the technical solution provided by the embodiment of the present application, the power anti-theft authentication device provided by the present embodiment obtains the current mode of the vehicle in response to the power anti-theft authentication request issued by the mobile data center; when the current mode of the vehicle is the power anti-theft mode, obtains a trust ring for indicating the trust relationship with the mobile data center, and obtains the identity of the mobile data center; verifies the mobile data center according to the identity and the trust ring, and determines that the power anti-theft authentication request passes when the verification of the mobile data center passes, wherein the mobile data center is verified by the directly obtained identity and trust ring, which reduces the interaction process with the external device, achieves the effect of shortening the power anti-theft authentication process, and ensures the security of the power anti-theft authentication. In addition, the mobile data center is verified by both the identity and the trust ring, which ensures the accuracy of the corresponding verification results of the mobile data center, improves the fault tolerance of the anti-theft authentication process, and can achieve power anti-theft authentication without interacting with the vehicle key, thereby improving the user's car experience and avoiding the problem that the VDC cannot interact with the vehicle key when the vehicle is remotely started, resulting in the failure of power anti-theft authentication and affecting the user's car experience.
[0124] Fig.11 Schematic diagram of an electronic device 11 provided in an embodiment of the present application. Fig.11 As shown, the electronic device 11 of this embodiment includes: a processor 1101, a memory 1102, and a computer program 1103 stored in the memory 1102 and executable on the processor 1101. When the processor 1101 executes the computer program 1103, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 1101 executes the computer program 1103, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0125] The electronic device 11 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 11 may include, but is not limited to, a processor 1101 and a memory 1102. Those skilled in the art will appreciate that Fig.11 The electronic device 11 is merely an example and does not limit the electronic device 11 , and may include more or less components than those shown in the figure, or different components.
[0126] Processor 1101 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0127] The memory 1102 may be an internal storage unit of the electronic device 11, for example, a hard disk or memory of the electronic device 11. The memory 1102 may also be an external storage device of the electronic device 11, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the electronic device 11. The memory 1102 may also include both an internal storage unit of the electronic device 11 and an external storage device. The memory 1102 is used to store computer programs and other programs and data required by the electronic device.
[0128] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0129] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of regional requirements and patent practice. For example, in some areas, according to regional requirements and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0130] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A power anti-theft authentication method, characterized in that: The method comprises: In response to a power anti-theft authentication request sent by the mobile data center, obtaining a current mode of the vehicle; When the current mode of the vehicle is the power anti-theft mode, obtaining a trust ring for indicating a trust relationship with the mobile data center, and obtaining an identity of the mobile data center; The mobile data center is verified according to the identity identifier and the trust ring, and when the mobile data center is verified, it is determined that the power anti-theft authentication request is passed.
2. The method according to claim 1, characterized in that Verifying the mobile data center according to the identity identifier and the trust ring includes: Parsing the trust ring, and when the trust ring indicates that the mobile data center is a trusted device, obtaining an identification obfuscation value, and encrypting the identity according to the identification obfuscation value to obtain an encrypted identity; Performing a shift operation on the encrypted identity identifier according to a preset shift method to obtain a first check value, and receiving a second check value calculated by the mobile data center according to the identity identifier; The first verification value is matched with the second verification value. If the first verification value and the second verification value match successfully, it is determined that the mobile data center verification has passed.
3. The method according to claim 1, characterized in that Get the current mode of the vehicle, including: Matching the identity of the mobile data center with a preset target identity; If the identity identifier successfully matches the preset target identity identifier, the current mode of the vehicle is obtained.
4. The method according to claim 1, characterized in that: Before obtaining the current mode of the vehicle, the method further includes: receiving a vehicle identification code transmitted by a diagnostic device, and obtaining first trust ring information corresponding to the mobile data center; Determining whether the mobile data center meets a trust ring condition according to the first trust ring information and the vehicle identification code; If the mobile data center meets the trust ring condition, obtaining second trust ring information generated based on the vehicle identification code, and sending the first trust ring information and the second trust ring information to the diagnostic device; Receive a device whitelist obtained by the diagnostic device based on the first trust ring information and the second trust ring information, and verify the device whitelist. When the device whitelist is verified, construct a trust ring for indicating that the mobile data center is a trusted device.
5. The method according to claim 4, characterized in that Judging whether the mobile data center meets a trust ring condition according to the first trust ring information and the vehicle identification code includes: Parsing the first trust ring information to obtain a vehicle identification code to be verified; The vehicle identification code to be verified is compared with the vehicle identification code. If the vehicle identification code to be verified is the same as the vehicle identification code, it is determined that the mobile data center meets the trust ring condition.
6. The method according to claim 5, characterized in that The device whitelist is signed and verified. When the device whitelist is signed and verified, after building a trust ring for indicating that the mobile data center is a trusted device, the method further includes: Receive a trust ring status reading instruction issued by the diagnostic device, and obtain the trust ring and the trust ring corresponding to the mobile data center according to the trust ring status reading instruction; The trust ring and the trust ring corresponding to the mobile data center are transmitted to the diagnostic device, so that the diagnostic device displays the trust ring and the trust ring corresponding to the mobile data center through a visual interface.
7. The method according to claim 1, characterized in that After determining that the power anti-theft authentication request is passed, the method further includes: Generate a power anti-theft authentication request pass message; The power anti-theft authentication request is transmitted to the mobile data center through a message, so that the mobile data center executes the power function corresponding to the power anti-theft authentication request.
8. A power anti-theft authentication device, characterized in that: The device comprises: A response module, used for obtaining the current mode of the vehicle in response to the power anti-theft authentication request sent by the mobile data center; an acquisition module, used to acquire a trust ring indicating a trust relationship with the mobile data center and acquire an identity of the mobile data center when the current mode of the vehicle is a power anti-theft mode; The verification module is used to verify the mobile data center according to the identity identifier and the trust ring, and when the verification of the mobile data center passes, it is determined that the power anti-theft authentication request is passed.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
