Identity authentication method and device, electronic equipment and storage medium

Through the coordinated work of the system chip and the authentication chip, the power stored in the bypass capacitor is used for identity authentication, which solves the problem of increased power consumption of electronic devices during the accessory authentication process, realizes low-power identity authentication, and extends the use time of the device.

CN120408575APending Publication Date: 2025-08-01FU TAI HUA IND SHENZHEN +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410135278.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-31
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

When electronic devices authenticate accessories, they will increase their power consumption, affecting the service life of the device.

Method used

Through the coordinated work of the system chip and the authentication chip, the power stored in the bypass capacitor is used for identity authentication to avoid unnecessary high loads. The system chip and the authentication chip communicate and power through the general input and output ports to reduce the power consumption of the authentication process.

Benefits of technology

It effectively reduces the power consumption of the accessory identity authentication process, reduces the power consumption of electronic devices, and extends the use time of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120408575A_ABST
    Figure CN120408575A_ABST
Patent Text Reader

Abstract

The invention relates to the field of communication, and provides an identity authentication method and device, electronic equipment and a storage medium, a system chip in the electronic equipment is connected with an authentication chip through a universal input and output port and supplies power to the authentication chip, and when it is detected that an accessory is connected to the electronic equipment, first identity information of the accessory is obtained. A high-level signal is sent to an authentication chip through a system chip, so that the authentication chip charges a bypass capacitor connected with the authentication chip by using the high-level signal. And when it is detected that the voltage of the authentication chip is greater than a preset voltage threshold, sending an identity information query request corresponding to the accessory to the authentication chip. And the authentication chip sends second identity information to the system chip, and the system chip compares the first identity information with the second identity information, obtains an identity authentication result of the accessory and closes a universal input / output port of the system chip. Through the method, the power consumption of the authentication process of the accessory can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to an identity authentication method, apparatus, electronic device, and storage medium. Background Art

[0002] With the rapid development of electronic information technology, the hardware performance of common electronic devices such as mobile phones and tablet computers has also been greatly improved. For example, the performance improvements of multi-core high-speed central processing units (CPUs), graphics processing units (GPUs), application-specific network elements (ANEs), coprocessors, high-refresh-rate displays, etc. have improved the user experience. However, with the improvement of the hardware performance of electronic devices, some problems have also emerged. For example, the power consumption of electronic devices has increased significantly. Since the volume of electronic devices is limited, the battery capacity of electronic devices is also limited, resulting in a greater impact on the standby time of electronic devices.

[0003] To ensure the security of electronic devices and their data, electronic devices often need to perform identity (ID) authentication on the connected accessories (such as charging devices, external storage devices, or other types of expansion hardware, etc.) to prevent unauthorized or unqualified accessories from being connected. In the case where the battery capacity of the electronic device itself is limited, performing identity authentication on the accessories will further increase the power consumption of the electronic device, thereby affecting the usage duration of the electronic device. Summary of the Invention

[0004] In view of this, this application provides an identity authentication method, apparatus, electronic device, and storage medium to solve the problem in the related art that the power consumption of the electronic device increases due to identity authentication of accessories, thereby affecting the usage duration of the electronic device.

[0005] A first aspect of an embodiment of the present application provides an identity authentication method, which is applied to an electronic device. The electronic device includes a system chip and an authentication chip. The system chip is connected to the authentication chip through a general-purpose input / output port and supplies power to the authentication chip. The identity authentication method includes: when it is detected that an accessory is connected to the electronic device, obtaining first identity information of the accessory; sending a high-level signal to the authentication chip through the system chip, so that the authentication chip charges a bypass capacitor connected to the authentication chip by using the high-level signal; if it is detected that the voltage of the authentication chip is greater than a preset voltage threshold, sending an identity information query request corresponding to the accessory to the authentication chip; in response to the identity information query request, the authentication chip sends second identity information to the system chip, and the system chip compares the first identity information with the second identity information to obtain an identity authentication result of the accessory, and closes the general-purpose input / output port of the system chip.

[0006] In some embodiments, the method further includes: if it is detected that the voltage of the authentication chip is greater than a preset voltage threshold, controlling the authentication chip to stop charging the bypass capacitor of the authentication chip.

[0007] In some embodiments, the method further includes: detecting a charging current when the authentication chip charges the bypass capacitor of the authentication chip by using the high-level signal; if it is detected that the charging current is less than a preset current threshold, controlling the authentication chip to stop charging the bypass capacitor of the authentication chip.

[0008] In some embodiments, when it is detected that an accessory is connected to the electronic device, obtaining first identity information of the accessory includes: when the electronic device is started, detecting whether any accessory is connected; if it is determined that there is an accessory connected, obtaining first identity information of the connected accessory.

[0009] In some embodiments, the identity authentication result includes identity authentication passed and identity authentication not passed. Comparing the first identity information with the second identity information to obtain the identity authentication result of the accessory includes: if the first identity information is consistent with the second identity information, determining that the identity authentication of the accessory is passed; if the first identity information is inconsistent with the second identity information, determining that the identity authentication of the accessory is not passed.

[0010] In some embodiments, the method further includes: if the identity authentication of the accessory is not passed, triggering a preset mechanism; based on the preset mechanism, controlling the function operation of the accessory.

[0011] In some embodiments, the method further includes: if the identity authentication of the accessory is not passed, outputting a prompt message to prompt the user that there is a security risk with the accessory.

[0012] In a second aspect of the embodiments of the present application, an identity authentication device is provided, which is applied to an electronic device. The electronic device includes a system chip and an authentication chip. The system chip is connected to the authentication chip through a general-purpose input / output port and powers the authentication chip. The identity authentication device includes: a detection module, configured to obtain first identity information of a accessory when detecting that the accessory is connected to the electronic device; a charging module, configured to send a high-level signal to the authentication chip through the system chip, so that the authentication chip charges a bypass capacitor connected to the authentication chip by using the high-level signal; a query module, configured to send an identity information query request corresponding to the accessory to the authentication chip if it is detected that the voltage of the authentication chip is greater than a preset voltage threshold; an authentication module, configured to, in response to the identity information query request, send second identity information from the authentication chip to the system chip. The system chip compares the first identity information with the second identity information, obtains an identity authentication result of the accessory, and closes the general-purpose input / output port of the system chip.

[0013] In a third aspect of the embodiments of the present application, an electronic device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the above identity authentication method is implemented.

[0014] In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores computer-readable instructions. When the computer-readable instructions are executed by a processor, the above identity authentication method is implemented.

[0015] In an identity authentication method provided by the embodiments of the present application, identity authentication of an accessory connected to an electronic device is implemented through data interaction between a system chip and an authentication chip in the electronic device. The system chip is connected to the authentication chip through a general-purpose input / output port, and sends a high-level signal to the authentication chip through the general-purpose input / output port, so that the authentication chip charges a bypass capacitor connected to the authentication chip by using the high-level signal. The electric energy stored in the bypass capacitor is used to supply power for communication between the authentication chip and the system chip to implement identity authentication of the accessory. The system chip and the authentication chip are started successively to avoid unnecessary simultaneous high load. In the embodiments of the present application, the general-purpose input / output port serves as both a communication port and a power port, effectively reducing the power consumption during the authentication process of the accessory. Description of the Drawings

[0016] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0017] Figure 1 is an application scenario diagram of the identity authentication method provided by the embodiments of the present application;

[0018] Figure 2 is an implementation flowchart of the identity authentication method provided by the embodiments of the present application;

[0019] Figure 3 is a schematic structural diagram of the identity authentication device provided by the embodiments of the present application;

[0020] Figure 4 is a schematic structural diagram of the electronic device provided by the embodiments of the present application. Specific Embodiments

[0021] It should be noted that the terms "first" and "second" in the description and claims of the present application and the drawings are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0022] In addition, it should be noted that the methods disclosed in the embodiments of the present application or shown in the flowcharts include one or more steps for implementing the methods. Without departing from the scope of the claims, the execution order of multiple steps can be interchanged with each other, and some steps can also be deleted.

[0023] The following will describe some embodiments in conjunction with the drawings. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.

[0024] In the related art, electronic devices usually use encryption chips or use encryption chips and authentication chips to authenticate accessories to prevent unqualified accessories, such as display screens, cameras, etc., from accessing the electronic devices and causing damage to the devices or data leakage. During the process of authenticating accessories, the encryption chip needs to execute complex algorithms to authenticate the accessories. These algorithms usually require a large amount of calculations and operations, thereby increasing the power consumption of the electronic device. The encryption chip requires additional security protection mechanisms to ensure the security of identity authentication. These mechanisms may include data encryption, etc. These additional mechanisms will also consume the electrical energy of the electronic device.

[0025] To solve the above problems, the present application provides an identity authentication method. The electronic device executing this method includes a system chip and an authentication chip. The system chip is connected to the authentication chip through a general-purpose input / output port and powers the authentication chip when the electronic device is powered on and started. After the power supply is completed, the system chip communicates with the authentication chip to implement the identity authentication of the accessories accessing the electronic device. The power consumption of the entire process is extremely low, so the impact on the usage duration of the electronic device is also small.

[0026] Please refer to Figure 1 As shown, it is an application scenario diagram of the identity authentication method provided by an embodiment of the present application. As Figure 1 shown, the electronic device 100 includes a system chip 10 and an authentication chip 20. The system chip 10 is connected to the authentication chip 20 through a general-purpose input / output port (General-Purpose Input / Output Ports, GPIO) and powers the authentication chip 20. One end of the connection line between the system chip 10 and the authentication chip 20 is connected to the general-purpose input / output port of the system chip 10, and the other end is connected to the accessory interface (AID, Accessory ID Interface) of the authentication chip 20. The AID interface is used to read the standard identity information of the accessories of the electronic device 100, and the accessories that are consistent with the corresponding standard identity information are the accessories that meet the authentication. The accessories can be, for example, a charging device, an external storage device, etc. accessing the electronic device 100, or a display screen, a camera, etc. installed on the electronic device 100.

[0027] In some embodiments, when the electronic device 100 is powered on and started, it detects whether there is an accessory connected. If it is determined that there is an accessory connected to the electronic device 100, the electronic device 100 obtains the first identity information of the accessory and sends a high-level signal to the authentication chip 20 through the system chip 10, so that the authentication chip 20 charges the bypass capacitor connected to the authentication chip 20 using the high-level signal. When it is detected that the voltage of the authentication chip 20 is greater than the preset voltage threshold, the electronic device can control to stop charging the bypass capacitor, and the electric energy stored in the bypass capacitor provides electric energy support for the authentication process of the accessory. The electronic device 100 sends a query request for the identity information of the accessory to the authentication chip 20 through the system chip 10. The authentication chip 20 responds to the identity information query request, obtains the corresponding standard identity information as the second identity information according to the information of the accessory, and sends the second identity information to the system chip 10. The system chip 10 can determine the identity authentication result of the accessory by comparing the first identity information with the second identity information. After determining the identity authentication result, the electronic device 100 can close the general-purpose input / output port through the system chip 10 and disconnect the connection between the system chip 10 and the authentication chip 20 to save energy consumption.

[0028] In some embodiments, the electronic device 100 includes, but is not limited to, any one or more of devices such as mobile phones, tablets, laptop computers, etc. The system-on-a-chip (SOC) 10 is a key component in the electronic device 100, which includes components such as a central processing unit (CPU), a graphics processing unit (GPU), memory, a communication interface, etc., and is used to implement functions such as computing, communication, graphics processing, and audio processing of the electronic device 100. The authentication chip 20 includes an ID chip. Standard identity information of each accessory is pre-stored in the ID chip when the electronic device leaves the factory, such as the serial number, manufacturer information, identifier, etc. of the original display screen. The authentication chip 20 also includes an External Capacitance (EXTCap) interface, an Alert interface, a Ground (GND) interface, etc. The EXTCap interface is used to connect a bypass capacitor. The Alert interface is used to display or process warning information, such as errors, warnings, or prompts, etc. The Alert interface can exist in various forms, such as a pop-up box, a dialog box, a prompt box, etc. These interfaces usually contain detailed information about the warning, such as error messages, information that the identity authentication fails, etc., to help users better understand the problem and take corresponding measures. The GND interface is used to connect to the potential reference point.

[0029] In some embodiments, the system chip 10 communicates with the authentication chip 20 based on a single-bus protocol.

[0030] Please refer to Figure 2 As shown, it is a flowchart of the implementation of the identity authentication method provided by the embodiment of the present application. This method is applied to an electronic device. The embodiment of the present application takes the electronic device 100 in which this method is applied as an example for illustration, and includes the following steps. Figure 1 For example, in the electronic device 100, it includes the following steps.

[0031] S11: When it is detected that an accessory is connected to the electronic device, obtain the first identity information of the accessory.

[0032] In some embodiments, the accessory includes, but is not limited to, external devices, such as a charging device, an external storage device, other types of expansion hardware, etc. connected to the electronic device, or components installed in the electronic device, such as a display screen, a camera, etc. The first identity information includes information such as the unique serial number, manufacturer, production date, etc. of the accessory.

[0033] In some embodiments, when the accessory is connected to the electronic device, the system chip and the accessory can establish a communication connection, so that the electronic device can obtain the first identity information of the accessory through the system chip. The present application does not limit the manner of obtaining the first identity information of the accessory. For example, the first identity information of the accessory connected to the electronic device can also be obtained by manual input or scanning a code, etc.

[0034] In some embodiments of the present application, when it is detected that an accessory is connected to an electronic device, the first identity information of the accessory is obtained, including: when the electronic device is started, it is detected whether any accessory is connected; if it is determined that there is an accessory connected, the first identity information of the connected accessory is obtained.

[0035] In some embodiments, considering that the identity authentication of the accessory corresponding to the electronic device usually only needs to be performed once after the electronic device is started, there is no need for the chips or components performing the identity authentication to maintain a long-term communication state. To save energy consumption and avoid the impact of unauthenticated accessory connection on the data security of the electronic device, etc., the electronic device can detect the accessory only when it is powered on and started, and perform identity authentication on the accessory when it is determined that there is an accessory connected.

[0036] In some embodiments, the electronic device can detect whether any accessory is connected to the electronic device through hardware detection, software detection, etc. For example, a hardware detection module can be configured in the electronic device to detect the working state of each component in the electronic device. If an accessory is connected to the electronic device, such as replacing components such as a display screen, the hardware detection module will detect that there is an abnormality in the corresponding component. Further, the hardware detection module can send the abnormality information to the system chip in the electronic device. The system chip can determine the connected accessory according to the abnormality information and obtain the first identity information of the accessory.

[0037] S12: Send a high-level signal to the authentication chip through the system chip, so that the authentication chip charges the bypass capacitor connected to the authentication chip by using the high-level signal.

[0038] In some embodiments, the high-level signal sent by the system chip to the authentication chip can be used to charge the bypass capacitor of the authentication chip. The bypass capacitor can be used for energy storage, filtering high-frequency noise in the circuit, improving the stability of the circuit, etc.

[0039] In some embodiments, one end of the bypass capacitor is connected to the authentication chip, and the other end is grounded. When the authentication chip receives the high-level signal, the bypass capacitor can be charged to the high-level state through the high-level signal, thereby realizing the charging process of the bypass capacitor of the authentication chip.

[0040] S13: If it is detected that the voltage of the authentication chip is greater than the preset voltage threshold, send a query request for the identity information corresponding to the accessory to the authentication chip.

[0041] In some embodiments, the preset voltage threshold can be custom - set according to factors such as the type of the electronic device. For example, the preset voltage threshold can be set to 3V or the like. The authentication chip stores the identity information of each original component (such as a display screen, a camera, etc.) or original accessory (such as a charger, etc.) of the electronic device, or the identity information of components and accessories that are certified to be allowed to access. The identity information query request corresponding to the accessory includes information such as the accessory type of the accessory.

[0042] In some embodiments, the electronic device can detect the voltage across the authentication chip through the system chip. When it is determined that the voltage across the authentication chip is greater than the preset voltage threshold, the bypass capacitor is in a high - level state, and the voltage across the authentication chip is at a high level. At this time, the system chip and the authentication chip can communicate. The system chip can send an identity information query request corresponding to the accessory to the authentication chip and read the identity information of the accessory of the same type as the accessory stored in the authentication chip.

[0043] In other embodiments, the electronic device can detect the voltage across the authentication chip through a sensor or the like. The embodiments of the present application do not limit the method of detecting the voltage across the authentication chip.

[0044] In the embodiments of the present application, the electronic device first sends a high - level signal to the authentication chip through the system chip, so that the authentication chip charges the bypass capacitor connected to the authentication chip using the high - level signal. When the voltage of the authentication chip is greater than the preset voltage threshold, the system chip and the authentication chip communicate to achieve the identity authentication of the accessory, which can avoid unnecessary simultaneous high loads. Moreover, in the embodiments of the present application, the general - purpose input / output port serves as both a communication port and a power supply port, which can effectively reduce the power consumption during the process of authenticating the accessory.

[0045] In some embodiments of the present application, if it is detected that the voltage of the authentication chip is greater than the preset voltage threshold, control the authentication chip to stop charging the bypass capacitor of the authentication chip.

[0046] In some embodiments, when the electronic device determines through the system chip that the voltage across the authentication chip is greater than the preset voltage threshold, it can be determined that the charging of the bypass capacitor connected to the authentication chip is completed, and the electric energy stored in the bypass capacitor can meet the power consumption during the authentication process. To avoid unnecessary power loss, the electronic device can control the authentication chip to stop charging the bypass capacitor of the authentication chip through the system chip.

[0047] In some embodiments of the present application, detect the charging current when the authentication chip charges the bypass capacitor of the authentication chip using the high - level signal; if it is detected that the charging current is less than the preset current threshold, control the authentication chip to stop charging the bypass capacitor of the authentication chip.

[0048] In some embodiments, the preset current threshold can be custom - set.

[0049] In some embodiments, the electronic device can determine whether the bypass capacitor of the authentication chip is fully charged by detecting the charging current when the authentication chip uses a high - level signal to charge the bypass capacitor of the authentication chip. When it is determined that the bypass capacitor is fully charged, the bypass capacitor is in a high - level state. At this time, the system chip and the authentication chip can communicate. For example, the system chip can send a query request for the identity information corresponding to the accessory to the authentication chip, and control the authentication chip to stop charging the bypass capacitor of the authentication chip and other operations.

[0050] S14: In response to the identity information query request, the authentication chip sends the second identity information to the system chip. The system chip compares the first identity information with the second identity information, obtains the identity authentication result of the accessory, and closes the general - purpose input / output port of the system chip.

[0051] In some embodiments, the second identity information includes the identity information of the accessory that is the same as the type of the accessory connected to the electronic device and stored in the authentication chip. For example, when the detected accessory is a display screen, the second identity information is the identity information of the original display screen of the electronic device stored in the authentication chip. The second identity information includes, but is not limited to, the unique serial number, manufacturer, production date, etc. of the accessory - corresponding component stored in the authentication chip. The second identity information is the identity information of the component or accessory related to the electronic device that is authorized by the electronic device or meets the authentication.

[0052] In some embodiments, when the authentication chip receives the identity information query request, it can parse the identity information query request to obtain information such as the type of the accessory. According to the information such as the type of the accessory, it can match the accessory with the same type as the accessory connected to the electronic device from the information pre - stored in the authentication chip, and use the identity information of the matched accessory as the second identity information, and return the second identity information to the system chip.

[0053] In some embodiments, if no accessory with the same type as the accessory connected to the electronic device is matched from the information pre - stored in the authentication chip according to the identity information query request, it can be determined that the identity authentication of the accessory connected to the electronic device fails and does not meet the authentication. In some embodiments, when the system chip receives the second identity information sent by the authentication chip, it can determine whether the first identity information of the accessory is consistent with the corresponding second identity information by comparing the second identity information with the first identity information of the accessory, so as to implement the identity authentication of the accessory and obtain the identity authentication result. The identity authentication result includes identity authentication passed and identity authentication failed.

[0054] In some embodiments, since the electronic device usually performs identity authentication on the accessory only once after being powered on and started up, after the electronic device completes the identity authentication of the accessory through the system chip and obtains the identity authentication result, the electronic device can interrupt the communication between the system chip and the authentication chip by closing the general input / output port of the system chip, avoiding unnecessary power consumption loss and further saving power.

[0055] In some embodiments of the present application, comparing the first identity information with the second identity information to obtain the identity authentication result of the accessory includes: if the first identity information is consistent with the second identity information, determining that the identity authentication of the accessory passes; if the first identity information is inconsistent with the second identity information, determining that the identity authentication of the accessory fails.

[0056] In some embodiments, during the process that the electronic device compares the first identity information with the second identity information through the system chip to obtain the identity authentication result of the accessory, when it is determined that the first identity information is consistent with the second identity information of the accessory, it is determined that the identity authentication of the accessory passes, the accessory meets the authentication, and the electronic device can maintain normal communication when the accessory is connected. When it is determined that the first identity information is inconsistent with the second identity information of the accessory, it is determined that the identity authentication of the accessory fails, the accessory does not meet the authentication, and at this time, the electronic device can trigger some device protection mechanisms or generate prompt information to prevent the unqualified accessory from affecting the data security of the electronic device, etc.

[0057] In some embodiments of the present application, if the identity authentication of the accessory fails, a preset mechanism is triggered; based on the preset mechanism, the function operation of the accessory is controlled.

[0058] In some embodiments, the electronic device can preset the preset mechanism as a device protection mechanism. For example, if the accessory is a third-party display screen, not the original display screen of the electronic device, when the third-party display screen does not meet the authentication, the preset mechanism can be performance limitation, such as poor display effect, insensitive touch, etc., or limiting the signal strength of the electronic device, or enabling a firewall, etc.

[0059] When it is determined that the accessory does not meet the authentication through the identity authentication of the accessory, the electronic device can trigger a preset mechanism and control the function operation of the accessory based on the preset mechanism to protect the security of the electronic device. For example, when the electronic device is connected to an unauthorized or unqualified charging device, the charging speed or charging amount of the charging device can be limited to reduce the risk of abnormal charging.

[0060] In some embodiments, the electronic device can also record the log information of the unauthorized or unqualified accessory, such as the access time, accessory type, etc., for subsequent problem tracing and investigation.

[0061] In some embodiments of the present application, if it is determined that the identity authentication of the accessory fails, the electronic device may disconnect the communication with the accessory to prevent unauthenticated or unauthorized accessories from affecting the security of the electronic device and causing problems such as data loss of the electronic device.

[0062] In some embodiments of the present application, if the identity authentication of the accessory fails, a prompt message is output to prompt the user that there is a security risk with the accessory.

[0063] In some embodiments, when it is determined that the accessory does not meet the authentication through the identity authentication of the accessory, the electronic device may output a prompt message to prompt the user that there is a security risk with the accessory, such as compatibility issues, unstable performance, easy damage, etc., or prompt the user that the accessory may affect the data security of the electronic device, and recommend that the user select software and hardware with data encryption functions to protect the data security.

[0064] In the identity authentication method provided by the embodiments of the present application, when the electronic device is powered on and started, a high-level signal is sent from the system chip to the authentication chip, so that the authentication chip charges the bypass capacitor connected to the authentication chip using the high-level signal. When the voltage across the authentication chip is greater than the preset voltage threshold, the charging is completed. Then the electronic device can use the electric energy stored in the bypass capacitor to execute the authentication process of the accessory. On the one hand, the system chip can more precisely control the startup sequence and timing of each component. This can avoid unnecessary simultaneous high loads and reasonably allocate power resources according to actual needs to perform system initialization in the best way, thereby saving energy consumption. On the other hand, throughout the process, the system chip is connected to the authentication chip through the general-purpose input / output port for communication and power supply to the authentication chip, without the need for connection of other interfaces and without additional power supply settings, which can further reduce power consumption and save the use of ports.

[0065] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The order of execution of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0066] In an embodiment of the present application, an identity authentication device 300 is provided, which is applied to an electronic device. The electronic device includes a system chip and an authentication chip. The system chip is connected to the authentication chip through the general-purpose input / output port and powers the authentication chip. The functions that the identity authentication device 300 can implement correspond to the identity authentication method in the above embodiments. As Figure 3As shown in the figure, the identity authentication device 300 includes a detection module 301, a charging module 302, a query module 303, and an authentication module 304. The detailed description of each functional module is as follows: The detection module 301 is configured to obtain the first identity information of the accessory when detecting that the accessory is connected to the electronic device; the charging module 302 is configured to send a high-level signal to the authentication chip through the system chip, so that the authentication chip charges the bypass capacitor connected to the authentication chip by using the high-level signal; the query module 303 is configured to send an identity information query request corresponding to the accessory to the authentication chip if it is detected that the voltage of the authentication chip is greater than a preset voltage threshold; the authentication module 304 is configured to, in response to the identity information query request, send the second identity information to the system chip by the authentication chip, and the system chip compares the first identity information with the second identity information to obtain the identity authentication result of the accessory, and closes the general-purpose input / output port of the system chip.

[0067] For the specific limitations of the identity authentication device 300, reference can be made to the limitations of the identity authentication method in the foregoing text, which will not be elaborated here. Each module in the above identity authentication device 300 can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the electronic device in hardware form or be independent of the processor, or can be stored in the memory in the electronic device in software form, so as to facilitate the processor to call and execute the operations corresponding to the above modules.

[0068] Please refer to Figure 4 As shown in the figure, a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application is shown. The electronic device 100 includes, but is not limited to, any one or more of devices such as a mobile phone, a tablet computer, and a notebook computer. The network where the electronic device 100 is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.

[0069] As Figure 4 As shown in the figure, the electronic device 100 includes a communication module 101, a memory 102, a processor 103, an input / output (I / O) interface 104, and a bus 105. The processor 103 is respectively coupled to the communication module 101, the memory 102, and the I / O interface 104 through the bus 105.

[0070] The communication module 101 can be a wireless communication module or a mobile communication module. The wireless communication module can provide solutions for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLAN) (e.g., Wireless Fidelity (Wi-Fi) network), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), etc. The mobile communication module can provide solutions for wireless communication applied to the electronic device 100, including 2G / 3G / 4G / 5G, etc.

[0071] The memory 102 can include one or more Random Access Memories (RAM) and one or more Non-volatile Memories (NVM). The random access memory can be directly read and written by the processor 103, can be used to store the operating system or executable programs (e.g., machine instructions) of other running programs, and can also be used to store user and application data, etc. The random access memory can include Static Random-access memory (SRAM), Dynamic Random-access memory (DRAM), Synchronous Dynamic Random-access memory (SDRAM), Double Data Rate Synchronous Dynamic Random-access memory (DDR SDRAM, e.g., the fifth-generation DDR SDRAM is generally called DDR5 SDRAM), etc.

[0072] The non-volatile memory can also store executable programs and store user and application data, etc., and can be pre-loaded into the random access memory for direct reading and writing by the processor 103. The non-volatile memory can include disk storage devices, flash memory.

[0073] The memory 102 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 103. The one or more computer programs include a plurality of instructions, and when the plurality of instructions are executed by the processor 103, an authentication method executable on the electronic device 100 can be implemented.

[0074] In other embodiments, the electronic device 100 further includes an external memory interface for connecting to an external memory to implement the expansion of the storage capacity of the electronic device 100.

[0075] The processor 103 may include one or more processing units. For example, the processor 103 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0076] The processor 103 provides computing and control capabilities. For example, the processor 103 is used to execute the computer program stored in the memory 102 to implement the above authentication method.

[0077] The I / O interface 104 is used to provide a channel for user input or output. For example, the I / O interface 104 can be used to connect various input and output devices, such as a mouse, a keyboard, a touch device, a display screen, etc., so that the user can enter information or visualize information.

[0078] The bus 105 is at least used to provide a communication channel between the communication module 101, the memory 102, the processor 103, and the I / O interface 104 in the electronic device 100.

[0079] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0080] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions, and the method implemented when the program instructions are executed may refer to the identity authentication methods in the above various embodiments of the present application.

[0081] Among them, the computer-readable storage medium may be the internal memory of the electronic device described in the above embodiment, such as the hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk equipped on the electronic device, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc.

[0082] Furthermore, the computer-readable storage medium mainly includes a storage program area and a storage data area. Among them, the storage program area may store an operating system, application programs required for at least one function, etc.; the storage data area may store data created according to the use of the electronic device.

[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and not to limit them. Although the present application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. An identity authentication method, applied to an electronic device, characterized in that, The electronic device includes a system chip and an authentication chip. The system chip is connected to the authentication chip through a general-purpose input / output port and supplies power to the authentication chip. The identity authentication method includes: When it is detected that an accessory is connected to the electronic device, obtain first identity information of the accessory; Send a high-level signal to the authentication chip through the system chip, so that the authentication chip charges a bypass capacitor connected to the authentication chip by using the high-level signal; If it is detected that the voltage of the authentication chip is greater than a preset voltage threshold, send an identity information query request corresponding to the accessory to the authentication chip; In response to the identity information query request, the authentication chip sends second identity information to the system chip. The system chip compares the first identity information with the second identity information, obtains the identity authentication result of the accessory, and closes the general-purpose input / output port of the system chip.

2. The identity authentication method according to claim 1, wherein The method further includes: If it is detected that the voltage of the authentication chip is greater than a preset voltage threshold, control the authentication chip to stop charging the bypass capacitor of the authentication chip.

3. The identity authentication method according to claim 1, characterized in that, The method further includes: Detect the charging current when the authentication chip charges the bypass capacitor of the authentication chip by using the high-level signal; If it is detected that the charging current is less than a preset current threshold, control the authentication chip to stop charging the bypass capacitor of the authentication chip.

4. The identity authentication method according to claim 1, characterized in that, When it is detected that an accessory is connected to the electronic device and the first identity information of the accessory is obtained, it includes: When the electronic device starts up, detect whether any accessory is connected; If it is determined that there is an accessory connected, obtain the first identity information of the connected accessory.

5. The identity authentication method according to claim 1, wherein, The identity authentication result includes identity authentication passed and identity authentication failed. The system chip compares the first identity information with the second identity information and obtains the identity authentication result of the accessory, including: If the first identity information and the second identity information are compared and are consistent, determine that the identity authentication of the accessory has passed; If the first identity information and the second identity information are compared and are inconsistent, determine that the identity authentication of the accessory has failed.

6. The identity authentication method according to claim 5, characterized in that The method further includes: If the identity authentication of the accessory fails, trigger a preset mechanism; Based on the preset mechanism, control the function operation of the accessory.

7. The identity authentication method according to claim 5, characterized in that The method further includes: If the identity authentication of the accessory fails, output a prompt message to prompt the user that there is a security risk with the accessory.

8. An identity authentication device, which is applied to an electronic device, is characterized in that The electronic device includes a system chip and an authentication chip. The system chip is connected to the authentication chip through a general-purpose input / output port and supplies power to the authentication chip. The identity authentication device includes: A detection module, configured to obtain first identity information of an accessory when it is detected that an accessory is connected to the electronic device; A charging module, configured to send a high-level signal to the authentication chip through the system chip, so that the authentication chip charges a bypass capacitor connected to the authentication chip by using the high-level signal; A query module, configured to send an identity information query request corresponding to the accessory to the authentication chip if it is detected that the voltage of the authentication chip is greater than a preset voltage threshold; The authentication module is configured to respond to the identity information query request. The authentication chip sends second identity information to the system chip. The system chip compares the first identity information with the second identity information, obtains the identity authentication result of the accessory, and closes the general-purpose input / output port of the system chip.

9. An electronic device, comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, characterized in that, When the computer-readable instructions are executed by a processor, the identity authentication method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions. When the computer-readable instructions are executed by a processor, the identity authentication method according to any one of claims 1 to 7 is implemented.