Security authentication method and device and vehicle

By obtaining the interface type of external devices and performing security certification, the problem of reduced security when the vehicle is interconnected with external devices is solved, security certification for a variety of devices and on-board service provision are realized, improving the overall safety of the vehicle.

CN118713893APending Publication Date: 2024-09-27GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410852464.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the era of software-defined cars, when vehicles and external devices are interconnected, the safety of the vehicle may be reduced, and it is difficult for existing technology to effectively perform safety certification of multiple external devices.

Method used

By obtaining the interface type of the external device, the corresponding security authentication algorithm is determined, and the external device is security authenticated based on the algorithm. If it passes, the vehicle-side service is provided to ensure that multiple devices are security authenticated before providing services.

Benefits of technology

It improves the security of the vehicle, prevents attacks from uncertified external devices, and enhances the safe interoperability between the vehicle and external devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713893A
    Figure CN118713893A
Patent Text Reader

Abstract

The embodiment of the invention discloses a security authentication method and device and a vehicle. The method comprises the following steps: when external equipment is connected to a vehicle, acquiring an interface type corresponding to the external equipment; determining a security authentication algorithm corresponding to the external equipment based on the interface type; performing security authentication on the external equipment based on the security authentication algorithm; and if the external device passes the security authentication, providing a vehicle end service for the external device. Through the above mode, different security authentication algorithms can be set according to the interface types of the external devices, so that the vehicle can perform security authentication on various external devices before providing vehicle end services for the external devices, thereby improving the security of the vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and more specifically, to a security authentication method, device and vehicle. Background Art

[0002] In the era of software-defined cars, vehicles and external devices need to be interconnected to build a richer ecosystem, maximize the commercial value of software-defined cars, and improve the user experience. In related methods, the interconnection between vehicles and external devices can be achieved through wireless interfaces or wired interfaces, but during the connection process, the safety of the vehicle may be reduced. Summary of the invention

[0003] In view of the above problems, the present application proposes a security authentication method, device and vehicle to improve the above problems.

[0004] In the first aspect, the present application provides a security authentication method, which includes: when an external device is connected to a vehicle, obtaining an interface type corresponding to the external device; determining a security authentication algorithm corresponding to the external device based on the interface type; performing security authentication on the external device based on the security authentication algorithm; if the external device passes the security authentication, providing vehicle-side services to the external device.

[0005] In the second aspect, the present application provides a security authentication device, which includes: an interface type acquisition unit, used to obtain the interface type corresponding to the external device when the external device is connected to the vehicle; a security authentication algorithm determination unit, used to determine the security authentication algorithm corresponding to the external device based on the interface type; a security authentication unit, used to perform security authentication on the external device based on the security authentication algorithm; and a service providing unit, used to provide vehicle-side services to the external device if the external device passes the security authentication.

[0006] In a third aspect, the present application provides a vehicle comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.

[0007] In a fourth aspect, the present application provides a computer-readable storage medium, in which program code is stored, wherein the above method is executed when the program code is run.

[0008] The present application provides a security authentication method, device, vehicle, and storage medium. When an external device is connected to the vehicle, the interface type corresponding to the external device is obtained, the security authentication algorithm corresponding to the external device is determined based on the interface type, and the external device is security authenticated based on the security authentication algorithm. If the external device passes the security authentication, the vehicle-side service is provided to the external device. Through the above method, different security authentication algorithms can be set according to the interface type of the external device, so that the vehicle can perform security authentication on multiple external devices before providing vehicle-side services to the external device, thereby improving the safety of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] 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 those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A schematic diagram showing an application scenario proposed in this application is shown;

[0011] Figure 2 A flow chart of a security authentication method proposed in an embodiment of the present application is shown;

[0012] Figure 3 A schematic diagram of an external device acquiring a vehicle-side service proposed in the present application is shown;

[0013] Figure 4 A schematic diagram of a vehicle acquisition device service proposed in the present application is shown;

[0014] Figure 5 A schematic diagram of an encryption security authentication proposed in this application is shown;

[0015] Figure 6 A flowchart of a security authentication method proposed in another embodiment of the present application is shown;

[0016] Figure 7 A schematic diagram of a heartbeat data verification proposed in the present application is shown;

[0017] Figure 8 A structural block diagram of a security authentication device proposed in an embodiment of the present application is shown;

[0018] Fig. 9 A structural block diagram of a vehicle proposed in this application is shown. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0020] In an embodiment of the present application, the inventor proposes a security authentication method, device, and vehicle. When an external device is connected to the vehicle, the interface type corresponding to the external device is obtained, the security authentication algorithm corresponding to the external device is determined based on the interface type, and the external device is security authenticated based on the security authentication algorithm. If the external device passes the security authentication, the vehicle-side service is provided to the external device. Through the above method, different security authentication algorithms can be set according to the interface type of the external device, so that the vehicle can perform security authentication on multiple external devices before providing vehicle-side services to the external device, thereby improving the safety of the vehicle.

[0021] In order to better understand the embodiments of the present application, the application scenarios are first introduced below.

[0022] See also Figure 1 The security authentication system 10 includes a vehicle 100, an external device 200 and a server 300. The vehicle 100 may include an access management module 101, an in-vehicle HMI module (Human Machine Interface) 103, and a vehicle-side service module 105.

[0023] Among them, the access management module 101 can be used to manage the communication connection and data transmission between the vehicle 100 and the external device 200. The access management module 101 may include an access driver management submodule 1011 for confirming the interface type of the external device 200, a SOA service gateway 1013 for performing communication protocol conversion, an access device management submodule 1015 for managing the communication connection between the vehicle 100 and the external device 200, a security authentication service submodule 1017 for authenticating the legitimacy of the external device 200, and an access device permission management submodule 1019 for managing the access rights of the external device 200. The in-vehicle human-machine interface module 103 can be used to realize the interaction between the user and the vehicle 100, the device service of the external device 200 and the vehicle-side service of the vehicle 100. The vehicle-side service module 105 can be used to manage vehicle-side services.

[0024] The external device 200 may include wirelessly connected and / or wired external devices. The wireless connection may refer to connection through a wireless interface, which may include Bluetooth, WiFi (Wireless-Fidelity), ZigBee (ZigBee technology), etc. The wired connection may refer to connection through a wired interface, which may include USB (Universal Serial Bus), etc. The external device 200 may be an external diagnostic instrument, a game controller, an atmosphere light, etc. The server 300 may be used to authenticate the external device 100.

[0025] The embodiments of the present application are introduced below in conjunction with the accompanying drawings.

[0026] See also Figure 2 , a security authentication method provided in an embodiment of the present application, the method comprising:

[0027] S110: When an external device is connected to the vehicle, an interface type corresponding to the external device is obtained.

[0028] As a method, when an external device is connected to the vehicle, the in-vehicle human-machine interface module in the vehicle can send a prompt message to the user through voice interaction or display on the central control display screen, and the prompt message can be used to prompt the user to confirm the interface type corresponding to the external device; based on the feedback information corresponding to the prompt message, the interface type corresponding to the external device is obtained.

[0029] Taking the central control display screen as an example, when the vehicle detects that an external device is connected, a prompt message "Please enter or select the access method of the current external device" can be displayed in the display interface of the central control display screen, so that the user can enter the interface type or select the interface type in the display interface based on the prompt message, and the interface type entered or selected by the user will be used as the interface type of the external device.

[0030] S120: Determine a security authentication algorithm corresponding to the external device based on the interface type.

[0031] Among them, the security authentication algorithm corresponding to the external device may include a protocol conversion algorithm, a security authentication process, a data encryption and decryption algorithm, etc.

[0032] In the embodiment of the present application, since external devices with different interface types may have different communication protocols, and the vehicle also has its own communication protocol, in order for the vehicle to understand the information sent by the external device, it is necessary to set different protocol conversion algorithms for different communication protocols of the external device. In addition, since the size, manufacturing process or importance of different external devices may also be different, different encryption and decryption algorithms may be set for different external devices. In general, the encryption and decryption algorithms of external devices with smaller sizes can be simpler, the encryption and decryption algorithms of external devices with simpler manufacturing processes can be simpler, and the encryption and decryption algorithms of external devices with lower importance can be simpler.

[0033] In the embodiment of the present application, there are multiple ways to determine the importance of the external device.

[0034] As a determination method, the importance may be determined based on the access rights of the external device itself, and the higher the access rights, the higher the importance.

[0035] As another determination method, it can be determined based on user needs. When the external device is connected to the vehicle, importance confirmation information can be sent to the user, so that the user can set the importance of the external device based on his or her own needs.

[0036] As another way, the importance level may be determined based on the device type of the external device. For example, the importance level when the external device is an external light switch is lower than the importance level when the external device is a diagnostic instrument.

[0037] As a way, the protocol type of the external device may be determined based on the interface type of the external device; and the security authentication algorithm of the external device may be determined based on the protocol type of the external device.

[0038] S130: Perform security authentication on the external device based on the security authentication algorithm.

[0039] As a method, in response to receiving an identity authentication request from an external device, the identity authentication request can be converted into a target identity authentication request based on a security authentication algorithm, and the protocol type of the identity authentication request can be different from the target identity authentication request; the target identity request is sent to a server, and a first security authentication result from the server is accepted; if the first authentication result is passed, continue to perform a second security authentication on the external device.

[0040] The protocol type of the target authentication request may be a protocol type corresponding to a SOA (Service-Oriented Architecture) service. The format of the authentication request may be as shown in Table 1. The format of the authentication request is consistent with that of the target authentication request.

[0041] Table 1

[0042]

[0043] Optionally, if the first authentication result is passed, device information of the external device can be received from the server, and the device information can represent the access rights of the external device; and the vehicle-side service can be published to the external device.

[0044] The device information may include the device name, device serial number, permission information, etc. The permission information may be understood as the data that the external device can read and write into the vehicle and the vehicle-side services that can be used.

[0045] Optionally, before executing step S110, the developer of the external device or the staff of the vehicle 4S shop or the user can obtain an SDK (Software Development Kit) for security authentication from the server, install the SDK in the external device, and register the external device with the server so that the server can obtain the device information of the external device. The SDK can also be used to generate an identity authentication request.

[0046] Optionally, if the first authentication result is passed and a vehicle-side service acquisition request is received from an external device, a second security authentication result is obtained based on the vehicle-side service acquisition request and device information.

[0047] The vehicle-side service acquisition request may be used to acquire the vehicle-side service required by the external device. For example, when the external device is a diagnostic instrument, the required vehicle-side service may be a fault detection service, a data transmission service, and the like.

[0048] Optionally, the vehicle-side service identifier in the vehicle-side service acquisition request can be matched with the permission information in the device information. If the match is successful, the second security authentication result is determined to be passed, indicating that the external device has passed the security authentication; if the match fails, the second security authentication result is determined to be failed, indicating that the external device has not passed the security authentication. At this time, the communication connection between the vehicle and the external device can be disconnected. If it is a wired external device, the vehicle must also be controlled to stop powering the external device.

[0049] Optionally, if the first authentication result is failure, indicating that the external device has not passed the security authentication, the communication connection between the vehicle and the external device can be disconnected. When it is a wired external device, the vehicle needs to be controlled to stop supplying power to the external device.

[0050] In the embodiment of the present application, two security authentications are performed to ensure the validity of identity authentication. At the same time, combined with the management of the power supply of the access device, when any security authentication fails, the power supply to the external device is cut off, which can prevent the external device from attacking the vehicle by continuously sending vehicle identity authentication requests, thereby further improving safety and reducing damage to the vehicle.

[0051] For example, Figure 3 As shown, when an external device is connected to the vehicle, the in-vehicle human-machine interface module and the access management module can configure the access channel (i.e., determine the channel corresponding to the interface type and the protocol conversion algorithm) and the power supply for the external device based on steps S101 and S103, respectively. The external device can send an identity authentication request to the access management module based on step S105. The access management module can execute step S107 to send the target identity authentication request obtained based on the identity authentication request to the server, and obtain the first security authentication result based on step S109. If the first security authentication result is passed, the access management module can also obtain the device information of the external device based on step S111, and then publish the vehicle-side service to the external device based on step S113. When the external device sends a vehicle-side service acquisition request to the access management module based on step S115, the access management module can execute step S117 to perform a secondary security authentication on the external device. If the secondary security authentication passes, step S119 can be executed to call the vehicle-side service corresponding to the vehicle-side service acquisition request, and return the service content of the vehicle-side service.

[0052] As a method, in a scenario where an external device publishes a device service to a vehicle, if the first authentication result is passed and a device service publishing request is received from the external device, a second security authentication result is obtained based on the device service publishing request and the device information.

[0053] The device service publishing request may be used to publish the device service to the vehicle. For example, when the external device is an ambient light, the device service may be to control the display of the ambient light according to the rhythm of music.

[0054] Optionally, the device service identifier in the device service publishing request can be matched with the permission information in the device information. If the match is successful, the second security authentication result is determined to be passed, indicating that the external device has passed the security authentication; if the match fails, the second security authentication result is determined to be failed, indicating that the external device has not passed the security authentication. At this time, the communication connection between the vehicle and the external device can be disconnected. If it is a wired external device, the vehicle must also be controlled to stop supplying power to the external device.

[0055] For example, Figure 4As shown, when an external device is connected to the vehicle, the in-vehicle human-machine interface module and the access management module can configure the access channel (i.e., determine the channel corresponding to the interface type and the protocol conversion algorithm) and the power supply for the external device based on steps S201 and S203, respectively. The external device can send an identity authentication request to the access management module based on step S205, and the access management module can execute step S207 to send the identity authentication request to the server, and obtain the first security authentication result based on step S209. If the first security authentication result is passed, the access management module can also obtain the device information of the external device based on step S211. Then, the external device can send a device service publishing request to the access management module based on step S213, and the access management module can execute step S215 to perform secondary security authentication on the external device. If the secondary security authentication passes, the external device can execute step S217 to publish the device service, so that when the in-vehicle human-machine interface module sends a device service acquisition request based on step S219, the access management module can execute step S221 to call the device service corresponding to the device service acquisition request, and execute step S223 to obtain the service content corresponding to the device service.

[0056] Optional, such as Figure 5 As shown, in the security authentication process after step S301 and step S303, the transmission information can be encrypted, such as the target identity authentication request in step S305, and subsequent steps S307 and step S309 are executed based on the encrypted target identity authentication information, thereby improving the security of the security authentication process.

[0057] S140: If the external device passes the security authentication, provide vehicle-side services to the external device.

[0058] Among them, vehicle-side services can refer to the services included in the vehicle.

[0059] As a method, if the external device passes the security authentication, the vehicle-side service can be called to obtain the vehicle-side service corresponding to the request; and the service content of the vehicle-side service is sent to the external device.

[0060] As a method, if the external device passes the security authentication, the device service provided by the external device can be called.

[0061] Optionally, if the external device passes the security authentication, after receiving the device service published by the external device, a device service acquisition request may be sent to the external device to call the device service provided by the external device and obtain the service content of the device service.

[0062] This embodiment provides a security authentication method. When an external device is connected to a vehicle, the interface type corresponding to the external device is obtained, the security authentication algorithm corresponding to the external device is determined based on the interface type, and the external device is security authenticated based on the security authentication algorithm. If the external device passes the security authentication, the vehicle-side service is provided to the external device. Through the above method, different security authentication algorithms can be set according to the interface type of the external device, so that the vehicle can perform security authentication on multiple external devices before providing vehicle-side services to the external device, thereby improving the safety of the vehicle.

[0063] See also Figure 6 , a security authentication method provided in an embodiment of the present application, the method comprising:

[0064] S210: When an external device is connected to the vehicle, an interface type corresponding to the external device is obtained.

[0065] S220: Determine a security authentication algorithm corresponding to the external device based on the interface type.

[0066] S230: Perform security authentication on the external device based on the security authentication algorithm.

[0067] S240: If the external device passes the security authentication, provide vehicle-side services to the external device.

[0068] S250: If the external device passes the security authentication, periodically send a periodic authentication request to the server.

[0069] The periodic authentication request may be used to obtain keys and encryption algorithms between external devices and vehicles within a time period. The time period may refer to the time interval between two adjacent periodic authentication requests, which may be obtained based on multiple tests.

[0070] As a way, Figure 7 As shown, if the external device passes the security authentication, the vehicle can periodically send a periodic authentication request to the server, so that the server can send periodic authentication information after receiving the periodic authentication request.

[0071] Optionally, if the external device passes the security authentication, the vehicle can sign the device information of the external device through the signature interface in the security authentication module, and send the device information and the signature value of the device information to the server as part of the periodic authentication request.

[0072] Optionally, after receiving the periodic authentication request, the server can calculate the hash value based on the device information, and then decrypt the signature value of the device information using the PKI public key to obtain the hash value corresponding to the signature value. If the hash value corresponding to the device information is the same as the hash value corresponding to the signature value, the server can issue the periodic authentication information.

[0073] In an embodiment of the present application, the safety of the vehicle can be further improved by periodically changing the key and encryption algorithm.

[0074] S260: Receive periodic authentication information from the server, where the periodic authentication information includes a key and an encryption algorithm for the current period.

[0075] As a way, please continue to see Figure 7 , the access management module can receive periodic authentication information from the server.

[0076] S270: Send the key and the encryption algorithm to the external device, so that the external device periodically generates heartbeat data based on the key and the encryption algorithm.

[0077] The heartbeat data may refer to data that the external device and the vehicle periodically notify each other of their own status. The format of the heartbeat data may be as shown in Table 2.

[0078] Table 2

[0079]

[0080] As a way, please continue to see Figure 7 The access management module may send the key and the encryption algorithm to the external device so that the external device may execute step S403, that is, periodically generate heartbeat data based on the key and the encryption algorithm.

[0081] Optionally, the access management module may encrypt the key and encryption algorithm according to the encryption algorithm agreed upon in the previous cycle and send the encrypted data to the external device, and the external device may decrypt the encrypted data to obtain the key and encryption algorithm of the current cycle.

[0082] Optionally, in order to correctly determine whether the communication connection between the external device and the vehicle is secure through heartbeat data when the keys and encryption algorithms of adjacent periods are different, the time interval between two adjacent heartbeat data can be smaller than the time interval between two adjacent periodic authentication requests.

[0083] It should be noted that when the external device registers with the server through the SDK, the key and encryption algorithm of the first cycle authentication information can be sent to the external device.

[0084] S280: Receive and verify the heartbeat data.

[0085] As a way, please continue to see Figure 7 The security authentication service submodule in the access management module can execute step S407, that is, the heartbeat data can be verified based on the key and the encryption algorithm.

[0086] S290: If the heartbeat data verification fails for a specified number of consecutive times, disconnect the connection with the external device.

[0087] As a way, if the heartbeat data verification fails for a specified number of consecutive times, the connection with the external device is disconnected.

[0088] Exemplarily, if the heartbeat data verification fails twice in a row, the connection with the external device can be disconnected, and for the wired external device, the power supply to the wired external device also needs to be stopped.

[0089] The present embodiment provides a security authentication method, which can set different security authentication algorithms according to the interface type of the external device through the above-mentioned method, so that the vehicle can perform security authentication on a variety of external devices before providing vehicle-side services to the external device, thereby improving the safety of the vehicle. In addition, in the present embodiment, the security of the external device can be periodically authenticated through periodic heartbeat data encryption authentication, and it can be detected whether the external device is replaced by other external devices that have not been authenticated by the security device after the security authentication is passed, so that the entire process of service call between the external device and the vehicle is safe, thereby improving the safety of the vehicle.

[0090] See also Figure 8 The present application provides a security authentication device 400, the device 400 comprising:

[0091] The interface type acquisition unit 410 is used to acquire the interface type corresponding to the external device when the external device is connected to the vehicle;

[0092] A security authentication algorithm determining unit 420, configured to determine a security authentication algorithm corresponding to the external device based on the interface type;

[0093] A security authentication unit 430, configured to perform security authentication on the external device based on the security authentication algorithm;

[0094] The service providing unit 440 is used to provide vehicle-side services to the external device if the external device passes the security authentication.

[0095] As a method, the interface type acquisition unit 410 is specifically used to send a prompt message to the user when the external device is connected to the vehicle, and the prompt message is used to prompt the user to confirm the interface type corresponding to the external device; based on the feedback information corresponding to the prompt message, the interface type corresponding to the external device is acquired.

[0096] As a method, the security authentication algorithm determination unit 420 is specifically used to determine the protocol type of the external device based on the interface type; and determine the security authentication algorithm based on the protocol type.

[0097] As a method, the security authentication unit 430 is specifically used to respond to receiving an identity authentication request from the external device, convert the identity authentication request into a target identity authentication request based on the security authentication algorithm, and the protocol type of the identity authentication request is different from that of the target identity authentication request; send the target identity request to the server, and accept a first security authentication result from the server; if the first authentication result is passed, continue to perform a second security authentication on the external device.

[0098] Optionally, the security authentication unit 430 is specifically used to receive device information of the external device from the server if the first authentication result is passed, the device information representing access rights of the external device; publish vehicle-side services to the external device; if the first authentication result is passed and a vehicle-side service acquisition request is received from the external device, obtain a second security authentication result based on the vehicle-side service acquisition request and the device information.

[0099] Optionally, the security authentication unit 430 is specifically used to periodically send a periodic authentication request to the server if the external device passes the security authentication; receive periodic authentication information from the server, the periodic authentication information including the key and encryption algorithm of the current period; send the key and the encryption algorithm to the external device, so that the external device periodically generates heartbeat data based on the key and the encryption algorithm; receive and verify the heartbeat data; if the heartbeat data verification fails for a specified number of consecutive times, disconnect the connection with the external device.

[0100] As a method, the service providing unit 440 is specifically used to call the vehicle-side service to obtain the vehicle-side service corresponding to the request if the external device passes the security authentication; and send the service content of the vehicle-side service to the external device.

[0101] As another way, the service providing unit 440 is specifically configured to call the device service provided by the external device if the external device passes the security authentication.

[0102] The following will be combined Fig. 9A vehicle provided in the present application is described.

[0103] See also Fig. 9 Based on the above security authentication method and device, the embodiment of the present application also provides another vehicle 100 that can execute the above security authentication method. The vehicle 100 includes a processor 102, a memory 104, and a communication module 106. The memory 104 stores a program that can execute the content of the above embodiment, and the backup processor 102 can execute the program stored in the memory 104.

[0104] Among them, the processor 102 may include one or more processing cores. The processor 102 uses various interfaces and lines to connect various parts in the entire vehicle 100, and executes various functions and processes data of the vehicle 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 104, and calling data stored in the memory 104. Optionally, the processor 102 can be implemented in at least one hardware form of a network processor (Neural network Processing Unit, NPU), a digital signal processing (Digital Signal Processing, DSP), a field programmable gate array (Field-Programmable Gate Array, FPGA), and a programmable logic array (Programmable Logic Array, PLA). The processor 102 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a network processor (Neural network Processing Unit, NPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; the NPU is responsible for processing multimedia data such as video and images; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 102, but may be implemented separately through a communication chip.

[0105] The memory 104 may include a random access memory (RAM), and may also include a read-only memory (RAM) and a double data rate synchronous dynamic random access memory (DDR). The memory 104 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 104 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the vehicle 100 during use (such as a phone book, audio and video data, chat record data), etc.

[0106] The communication module 106 may be used to implement information exchange between the vehicle 100 and other devices, for example, to transmit device control instructions, operation request instructions, and status information acquisition instructions, etc. When the other devices are different devices, the corresponding communication modules 106 may be different.

[0107] An embodiment of the present application provides a computer-readable storage medium in which a program code is stored, and the program code can be called by a processor to execute the method described in the above method embodiment.

[0108] The computer readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium includes a non-transitory computer-readable storage medium. The computer readable storage medium has storage space for program codes that execute any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.

[0109] In summary, the present application provides a security authentication method, device, and vehicle. When an external device is connected to the vehicle, the interface type corresponding to the external device is obtained, the security authentication algorithm corresponding to the external device is determined based on the interface type, and the external device is security authenticated based on the security authentication algorithm. If the external device passes the security authentication, the vehicle-side service is provided to the external device. Through the above method, different security authentication algorithms can be set according to the interface type of the external device, so that the vehicle can perform security authentication on a variety of external devices before providing vehicle-side services to the external device, thereby improving the safety of the vehicle.

[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. 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. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A security authentication method, characterized in that: The method comprises: When an external device is connected to the vehicle, obtaining the interface type corresponding to the external device; Determining a security authentication algorithm corresponding to the external device based on the interface type; Performing security authentication on the external device based on the security authentication algorithm; If the external device passes the security authentication, the vehicle-side service is provided to the external device.

2. The method according to claim 1, characterized in that: The determining, based on the interface type, a security authentication algorithm corresponding to the external device includes: Based on the interface type, determining a protocol type of the external device; The security authentication algorithm is determined based on the protocol type.

3. The method according to claim 1, characterized in that The performing security authentication on the external device based on the security authentication algorithm includes: In response to receiving an identity authentication request from the external device, converting the identity authentication request into a target identity authentication request based on the security authentication algorithm, the protocol type of the identity authentication request being different from that of the target identity authentication request; Sending the target identity request to a server, and accepting a first security authentication result from the server; If the first authentication result is passed, continue to perform a second security authentication on the external device.

4. The method according to claim 3, characterized in that If the first authentication result is passed, before continuing to perform the second security authentication on the external device, the method further includes: If the first authentication result is passed, receiving device information of the external device from the server, the device information representing the access rights of the external device; Publishing vehicle-side services to the external device; If the first authentication result is passed, continuing to perform a second security authentication on the external device includes: If the first authentication result is passed and a vehicle-side service acquisition request is received from the external device, a second security authentication result is obtained based on the vehicle-side service acquisition request and the device information.

5. The method according to claim 4, characterized in that If the external device passes the security authentication, providing the vehicle-side service to the external device includes: If the external device passes the security authentication, the vehicle-side service is called to obtain the vehicle-side service corresponding to the request; The service content of the vehicle-side service is sent to the external device.

6. The method according to claim 1, characterized in that When the external device is connected to the vehicle, obtaining the interface type corresponding to the external device includes: When an external device is connected to the vehicle, a prompt message is sent to the user, wherein the prompt message is used to prompt the user to confirm the interface type corresponding to the external device; Based on feedback information corresponding to the prompt information, an interface type corresponding to the external device is acquired.

7. The method according to claim 1, characterized in that The method further comprises: If the external device passes the security authentication, the device service provided by the external device is called.

8. The method according to any one of claims 1 to 7, characterized in that: After performing security authentication on the external device based on the security authentication algorithm, the method further includes: If the external device passes the security authentication, periodically sending a periodic authentication request to the server; receiving periodic authentication information from the server, the periodic authentication information including a key and an encryption algorithm for a current period; Sending the key and the encryption algorithm to the external device so that the external device periodically generates heartbeat data based on the key and the encryption algorithm; Receiving and verifying the heartbeat data; If the heartbeat data verification fails for a specified number of consecutive times, the connection with the external device is disconnected.

9. A security authentication device, characterized in that: The device comprises: An interface type acquisition unit, used to acquire the interface type corresponding to the external device when the external device is connected to the vehicle; A security authentication algorithm determining unit, configured to determine a security authentication algorithm corresponding to the external device based on the interface type; A security authentication unit, configured to perform security authentication on the external device based on the security authentication algorithm; The service providing unit is used to provide vehicle-side services to the external device if the external device passes the security authentication.

10. A vehicle, characterized in that: comprising one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, wherein when the program code is run, the method according to any one of claims 1 to 8 is executed.