CN116700802A - Fingerprint module control method and control device - Google Patents

Fingerprint module control method and control device Download PDF

Info

Publication number
CN116700802A
CN116700802A CN202211423002.2A CN202211423002A CN116700802A CN 116700802 A CN116700802 A CN 116700802A CN 202211423002 A CN202211423002 A CN 202211423002A CN 116700802 A CN116700802 A CN 116700802A
Authority
CN
China
Prior art keywords
fingerprint module
terminal device
module
fingerprint
chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211423002.2A
Other languages
Chinese (zh)
Other versions
CN116700802B (en
Inventor
许馨雨
贾雪梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211423002.2A priority Critical patent/CN116700802B/en
Publication of CN116700802A publication Critical patent/CN116700802A/en
Application granted granted Critical
Publication of CN116700802B publication Critical patent/CN116700802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Image Input (AREA)

Abstract

The application provides a control method and a control device of a fingerprint module, and the control method can be applied to terminal equipment. The control method may include: the terminal equipment reads a chip identifier of a chip where the fingerprint module is located; if the number of continuous failure times of reading the chip identification is greater than or equal to the first preset number of times, the terminal equipment performs power-down operation on the fingerprint module. According to the control method provided by the application, when the fingerprint module is abnormal, the fingerprint module can be subjected to abnormal processing, so that the control method can be suitable for various different scenes and is beneficial to reducing the risk of scalding users.

Description

指纹模组的控制方法和控制装置Fingerprint module control method and control device

技术领域technical field

本申请涉及终端技术领域,尤其涉及一种指纹模组的控制方法和控制装置。The present application relates to the technical field of terminals, in particular to a control method and a control device for a fingerprint module.

背景技术Background technique

通常,终端设备可以包括指纹模组,以为用户提供指纹解锁的功能。若终端设备的指纹模组在终端设备磕碰或者跌落场景中损坏,会造成指纹模组所在的芯片短路,导致指纹模组温度升高,存在烫伤用户的风险。Generally, a terminal device may include a fingerprint module to provide a user with a fingerprint unlocking function. If the fingerprint module of the terminal device is damaged when the terminal device is knocked or dropped, it will cause a short circuit on the chip where the fingerprint module is located, which will cause the temperature of the fingerprint module to rise, and there is a risk of scalding the user.

针对上述问题,终端领域提出了如下方法:指纹模组所在的芯片检测该芯片中的电流大小,若电流过大,则输出过流保护(over current protection,OCP)中断信号;终端设备的主控芯片检测到OCP中断信号之后,进行指纹模组异常处理,对指纹模组进行下电操作。In response to the above problems, the terminal field has proposed the following method: the chip where the fingerprint module is located detects the current in the chip, and if the current is too large, it outputs an over current protection (over current protection, OCP) interrupt signal; the main control of the terminal device After the chip detects the OCP interrupt signal, it handles the abnormality of the fingerprint module and powers off the fingerprint module.

但是,上述方法会存在如下问题:在指纹模组所在芯片也出现损坏导致无法生成和输出OCP中断信号的场景下,终端设备的主控芯片无法获知指纹模组所在芯片的异常以进行相应的异常处理,仍然会存在烫伤用户的风险。However, the above method will have the following problems: in the scenario where the chip where the fingerprint module is located is also damaged and the OCP interrupt signal cannot be generated and output, the main control chip of the terminal device cannot know the abnormality of the chip where the fingerprint module is located to perform corresponding abnormalities. handling, there is still a risk of scalding the user.

发明内容Contents of the invention

本申请提供一种指纹模组的控制方法和控制装置,当指纹模组所在异常时,可以对指纹模组进行异常处理,有利于降低烫伤用户的风险。The present application provides a control method and a control device for a fingerprint module. When the location of the fingerprint module is abnormal, abnormal processing can be performed on the fingerprint module, which is beneficial to reduce the risk of scalding the user.

第一方面,提供了一种指纹模组的控制方法,可以应用于终端设备。该方法包括:终端设备读取指纹模组所在芯片的芯片标识;若读取芯片标识连续失败的次数大于或等于第一预设次数,则终端设备对指纹模组进行下电操作。In the first aspect, a method for controlling a fingerprint module is provided, which can be applied to a terminal device. The method includes: the terminal device reads the chip identification of the chip where the fingerprint module is located; if the number of consecutive failures to read the chip identification is greater than or equal to the first preset number of times, the terminal device performs power-off operation on the fingerprint module.

指纹模组所在芯片的芯片标识可以存储于指纹模组所在芯片的寄存器中,终端设备可以从该寄存器中读取芯片标识。The chip identification of the chip where the fingerprint module is located can be stored in a register of the chip where the fingerprint module is located, and the terminal device can read the chip identification from the register.

终端设备可以周期性地或者在固定时间内连续多次读取指纹模组所在芯片的芯片标识。若读取芯片标识连续失败的次数大于或等于第一预设次数,则终端设备对指纹模组进行下电操作。其中,终端设备读取指纹模组所在芯片的芯片标识的次数可以大于或等于第一预设次数。第一预设次数,是开发人员标定后,预设于终端设备中的。第一预设次数可以是3次、4次、5次或者6次等,本申请对此不作限定。The terminal device can periodically or continuously read the chip identification of the chip where the fingerprint module is located multiple times within a fixed period of time. If the number of consecutive failures to read the chip identification is greater than or equal to the first preset number of times, the terminal device powers off the fingerprint module. Wherein, the number of times the terminal device reads the chip identification of the chip where the fingerprint module is located may be greater than or equal to the first preset number of times. The first preset number of times is preset in the terminal device after being calibrated by the developer. The first preset number of times may be 3 times, 4 times, 5 times or 6 times, etc., which is not limited in this application.

示例性地,若终端设备读取芯片标识的次数与第一预设次数相同,均等于3,则终端设备可以每隔1秒钟读取一次指纹模组所在芯片的芯片标识,并连续读取3次。或者,终端设备在1分钟内的第1秒、第5秒以及第60秒各读取一次指纹模组所在芯片的芯片标识。For example, if the number of times the terminal device reads the chip identification is the same as the first preset number of times, both equal to 3, the terminal device can read the chip identification of the chip where the fingerprint module is located every 1 second, and read continuously 3 times. Alternatively, the terminal device reads the chip identification of the chip where the fingerprint module is located at the 1st second, the 5th second and the 60th second each within one minute.

若读取芯片标识连续失败的次数大于或等于第一预设次数,则终端设备对指纹模组进行下电操作。If the number of consecutive failures to read the chip identification is greater than or equal to the first preset number of times, the terminal device powers off the fingerprint module.

示例性地,若终端设备读取芯片标识的次数与第一预设次数相同,则终端设备每次读取均失败,可以说明指纹模组异常,则终端设备对指纹模组进行下电操作。本申请具体实施例中的方法300、方法500以及方法700中所示的示例,终端设备读取芯片标识的次数均与第一预设次数相同。终端设备读取芯片标识的次数也可以称为第一预设次数。For example, if the number of times the terminal device reads the chip identification is the same as the first preset number of times, the terminal device fails to read each time, which can indicate that the fingerprint module is abnormal, and the terminal device powers off the fingerprint module. In the examples shown in method 300, method 500, and method 700 in specific embodiments of the present application, the number of times the terminal device reads the chip identification is the same as the first preset number of times. The number of times the terminal device reads the chip identification may also be referred to as the first preset number of times.

示例性地,若终端设备读取芯片标识的次数大于第一预设次数,且终端设备读取芯片标识的次数为6,第一预设次数为3,则这6次读取结果中存在连续的3次读取失败,则可以说明指纹模组异常,则终端设备对指纹模组进行下电操作。For example, if the number of times the terminal device reads the chip ID is greater than the first preset number, and the number of times the terminal device reads the chip ID is 6, and the first preset number is 3, then there are consecutive If the reading fails for 3 times, it can indicate that the fingerprint module is abnormal, and the terminal device will power off the fingerprint module.

需要说明的是,终端设备读取芯片标识,可以在终端设备的显示屏处于亮屏状态的情况下,也可以在终端设备的显示屏处于灭屏状态的情况下,本申请对此不作限定。It should be noted that the terminal device can read the chip identification when the display screen of the terminal device is in the bright state or in the case that the display screen of the terminal device is in the off state, which is not limited in this application.

本申请提供的指纹模组的控制方法,读取指纹模组所在芯片的芯片标识,若连续读取失败的次数大于或等于第一预设次数,则确定指纹模组异常,对指纹模组进行下电操作,以防止指纹模组温度升高,降低烫伤用户的风险。The control method of the fingerprint module provided by this application reads the chip identification of the chip where the fingerprint module is located, if the number of consecutive reading failures is greater than or equal to the first preset number of times, it is determined that the fingerprint module is abnormal, and the fingerprint module is checked. Power-off operation to prevent the temperature of the fingerprint module from rising and reduce the risk of scalding the user.

结合第一方面,在第一方面的某些实现方式中,上述终端设备读取指纹模组所在芯片的芯片标识,包括:若终端设备的显示屏处于亮屏状态,且指纹模组处于录入状态、认证状态、取消状态或者空闲状态,则终端设备读取芯片标识。With reference to the first aspect, in some implementations of the first aspect, the terminal device reads the chip identification of the chip where the fingerprint module is located, including: if the display screen of the terminal device is in the bright state and the fingerprint module is in the entry state , authentication status, cancellation status or idle status, the terminal device reads the chip identification.

终端设备包括显示屏,该显示屏可以处于亮屏状态或者灭屏状态。当显示屏灭屏时,终端设备可以检测到显示屏处于灭屏状态。The terminal device includes a display screen, and the display screen can be in a screen-on state or a screen-off state. When the display screen is off, the terminal device can detect that the display screen is in the off state.

指纹模组可以包括录入状态(Enroll)、认证状态(Authenticate)、取消状态(Cancel)、空闲状态(Idle)以及休眠状态(Sleep)。其中,录入状态、认证状态以及取消状态是指纹模组录入指纹进行认证时的状态。休眠状态是指低功耗状态。空闲状态是指纹模组上电或复位后默认状态。当指纹模组处于空闲状态时,终端设备可以通过命令将其切换至其他的任意状态。需要说明的是,指纹模组的各个状态之间的切换,都必须先切换至空闲状态再切换至其他模式。The fingerprint module can include an entry state (Enroll), an authentication state (Authenticate), a cancellation state (Cancel), an idle state (Idle) and a sleep state (Sleep). Among them, the entry state, authentication state and cancellation state are the states when the fingerprint module enters the fingerprint for authentication. A sleep state refers to a low power state. The idle state is the default state after the fingerprint module is powered on or reset. When the fingerprint module is in the idle state, the terminal device can switch it to any other state through commands. It should be noted that, to switch between various states of the fingerprint module, it must be switched to the idle state first and then switched to other modes.

还需要说明的是,指纹模组可以处于录入状态、认证状态、取消状态、空闲状态或者休眠状态,也可以称为指纹模组可以处于录入模式、认证模式、取消模式、空闲模式或者休眠模式,本申请对此不作限定。It should also be noted that the fingerprint module can be in the entry state, authentication state, cancellation state, idle state or sleep state, it can also be called the fingerprint module can be in entry mode, authentication mode, cancellation mode, idle mode or sleep mode, This application is not limited to this.

终端设备在读取芯片标识之前,可以获取显示屏以及指纹模组的状态。当显示屏处于亮屏状态,且指纹模组处于录入状态、认证状态或者空闲状态时,终端设备可以读取芯片标识。Before the terminal device reads the chip identification, it can obtain the status of the display screen and fingerprint module. When the display screen is on and the fingerprint module is in the entry state, authentication state or idle state, the terminal device can read the chip identification.

本申请提供的指纹模组的控制方法,在显示屏处于亮屏状态,且指纹模组处于录入状态、认证状态或者空闲状态的场景下,读取芯片标识,可以适用于不同的场景,灵活性更强。The control method of the fingerprint module provided by this application reads the chip identification when the display screen is in the bright state and the fingerprint module is in the input state, authentication state or idle state, which can be applied to different scenarios and has flexibility. stronger.

结合第一方面,在第一方面的某些实现方式中,上述终端设备读取指纹模组所在芯片的芯片标识,包括:若终端设备的显示屏处于亮屏状态且指纹模组处于休眠状态时,则终端设备先唤醒指纹模组,再读取芯片标识。With reference to the first aspect, in some implementations of the first aspect, the terminal device reads the chip identification of the chip where the fingerprint module is located, including: if the display screen of the terminal device is in a bright state and the fingerprint module is in a dormant state , the terminal device wakes up the fingerprint module first, and then reads the chip identification.

指纹模组处于休眠状态,则进入低功耗状态,终端设备可以通过命令或者复位指纹模组所在芯片对指纹模组进行唤醒。指纹模组唤醒后,进入空闲状态。此时,终端设备的显示屏处于亮屏状态且指纹模组处于空闲状态,终端设备可以读取芯片标识。When the fingerprint module is in a dormant state, it enters a low power consumption state, and the terminal device can wake up the fingerprint module by commanding or resetting the chip where the fingerprint module is located. After the fingerprint module wakes up, it enters the idle state. At this time, the display screen of the terminal device is in a bright state and the fingerprint module is in an idle state, and the terminal device can read the chip identification.

本申请提供的指纹模组的控制方法,在显示屏处于亮屏状态下,若指纹模组处于休眠状态,可以唤醒指纹模组,其进入空闲态后读取芯片标识,可以适用于指纹模组休眠场景。The fingerprint module control method provided by this application can wake up the fingerprint module if the fingerprint module is in the dormant state when the display screen is in the bright state, and read the chip identification after entering the idle state, which can be applied to the fingerprint module sleep scene.

结合第一方面,在第一方面的某些实现方式中,上述终端设备读取指纹模组所在芯片的芯片标识,包括:若终端设备的显示屏处于灭屏状态且指纹模组存储有指纹信息,则终端设备读取芯片标识。With reference to the first aspect, in some implementations of the first aspect, the terminal device reads the chip identification of the chip where the fingerprint module is located, including: if the display screen of the terminal device is in the off-screen state and the fingerprint module stores fingerprint information , the terminal device reads the chip identification.

终端设备包括显示屏,该显示屏可以处于亮屏状态或者灭屏状态。当显示屏灭屏时,终端设备可以检测到显示屏处于灭屏状态。The terminal device includes a display screen, and the display screen can be in a screen-on state or a screen-off state. When the display screen is off, the terminal device can detect that the display screen is in the off state.

指纹模组可以采集指纹信息,则指纹模组可以包括录有指纹信息和未录有指纹信息两种情况。若指纹模组录入了用户的指纹,终端设备可以检测到指纹模组录有指纹信息。The fingerprint module can collect fingerprint information, and the fingerprint module can include two situations of recording fingerprint information and not recording fingerprint information. If the fingerprint module records the user's fingerprint, the terminal device can detect that the fingerprint module records fingerprint information.

若终端设备的显示屏处于灭屏状态且指纹模组存储有指纹信息,终端设备可以读取芯片标识。此时,指纹模组的状态可以是认证状态、取消状态、空闲状态或者休眠状态,本申请不作限定。If the display screen of the terminal device is off and the fingerprint module stores fingerprint information, the terminal device can read the chip identification. At this time, the state of the fingerprint module may be an authentication state, a cancel state, an idle state or a dormant state, which is not limited in this application.

本申请提供的指纹模组的控制方法,在显示屏处于灭屏状态,且指纹模组处于录有指纹信息的场景下,读取芯片标识。The control method of the fingerprint module provided by the present application reads the chip identification when the display screen is off and the fingerprint module is in the scene where fingerprint information is recorded.

结合第一方面,在第一方面的某些实现方式中,上述终端设备读取指纹模组所在芯片的芯片标识,包括:若终端设备的显示屏处于灭屏状态、指纹模组未存储有指纹信息且指纹模组处于空闲状态,则终端设备读取芯片标识。In combination with the first aspect, in some implementations of the first aspect, the above-mentioned terminal device reads the chip identification of the chip where the fingerprint module is located, including: if the display screen of the terminal device is in the off-screen state, and the fingerprint module does not store fingerprints information and the fingerprint module is in an idle state, the terminal device reads the chip identification.

在显示屏处于灭屏状态、且指纹模组录有指纹信息的情况下,指纹模组可以包括空闲状态和休眠状态。若指纹模组处于空闲状态,则终端设备读取指纹模组所在芯片的芯片标识。When the display screen is off and the fingerprint module records fingerprint information, the fingerprint module can include an idle state and a dormant state. If the fingerprint module is in an idle state, the terminal device reads the chip identification of the chip where the fingerprint module is located.

本申请提供的指纹模组的控制方法,在显示屏处于灭屏状态、指纹模组未存储有指纹信息且指纹模组处于空闲状态的场景下,读取芯片标识。The method for controlling the fingerprint module provided by the present application reads the chip identification when the display screen is off, no fingerprint information is stored in the fingerprint module, and the fingerprint module is in an idle state.

结合第一方面,在第一方面的某些实现方式中,上述终端设备读取指纹模组所在芯片的芯片标识,包括:若终端设备的显示屏处于灭屏状态、指纹模组未存储有指纹信息且指纹模组处于休眠状态,则终端设备先唤醒指纹模组,再读取芯片标识。In combination with the first aspect, in some implementations of the first aspect, the above-mentioned terminal device reads the chip identification of the chip where the fingerprint module is located, including: if the display screen of the terminal device is in the off-screen state, and the fingerprint module does not store fingerprints information and the fingerprint module is in a dormant state, the terminal device wakes up the fingerprint module first, and then reads the chip identification.

在显示屏处于灭屏状态、且指纹模组录有指纹信息的情况下,指纹模组可以包括空闲状态和休眠状态。若指纹模组处于休眠状态,终端设备可以先唤醒指纹模组,再读取芯片标识。When the display screen is off and the fingerprint module records fingerprint information, the fingerprint module can include an idle state and a dormant state. If the fingerprint module is in a dormant state, the terminal device can wake up the fingerprint module first, and then read the chip identification.

本申请提供的指纹模组的控制方法,在显示屏处于灭屏状态、且指纹模组录有指纹信息的情况下,若指纹模组处于休眠状态,可以唤醒指纹模组,其进入空闲态后读取芯片标识,可以适用于指纹模组休眠场景。The fingerprint module control method provided by this application can wake up the fingerprint module if the fingerprint module is in a dormant state when the display screen is in the off-screen state and the fingerprint module records fingerprint information. Read the chip identification, which can be applied to the dormancy scene of the fingerprint module.

结合第一方面,在第一方面的某些实现方式中,上述方法还包括:终端设备对指纹模组进行上电操作;终端设备重新读取芯片标识;若读取芯片标识连续失败的次数大于或等于第二预设次数,则终端设备对指纹模组进行下电操作,第二预设次数大于或等于第一预设次数。In combination with the first aspect, in some implementations of the first aspect, the above method further includes: the terminal device powers on the fingerprint module; the terminal device re-reads the chip identification; if the number of consecutive failures to read the chip identification is greater than or equal to the second preset number of times, the terminal device powers off the fingerprint module, and the second preset number of times is greater than or equal to the first preset number of times.

若读取芯片标识连续失败的次数大于或等于第一预设次数,终端设备对指纹模组进行下电操作后,还可以进行上电操作。终端设备可以对指纹模组进行下电操作后立即再对指纹模组进行上电操作,也可以对指纹模组进行下电操作后等待一段时间后再对指纹模组进行上电操作,本申请对此不作限定。If the number of consecutive failures to read the chip identification is greater than or equal to the first preset number of times, the terminal device may perform power-on operation after power-off operation of the fingerprint module. The terminal device can power on the fingerprint module immediately after powering off the fingerprint module, or it can power on the fingerprint module after powering off the fingerprint module and then power on the fingerprint module. There is no limit to this.

指纹模组上电后,终端设备可以重新周期性地或者在固定时间连续多次读取芯片标识。其中,终端设备重新读取芯片标识的此时可以大于或等于第二预设次数。第二预设次数可以是3次、4次、5次或者6次等,本申请对此不作限定。第二预设次数与上述第一预设次数可以相同,也可以不同,本申请对此不作限定。After the fingerprint module is powered on, the terminal device can read the chip identification periodically or multiple times in a row at a fixed time. Wherein, the time at which the terminal device re-reads the chip identification may be greater than or equal to the second preset number of times. The second preset number of times may be 3 times, 4 times, 5 times or 6 times, etc., which is not limited in this application. The second preset number of times may be the same as or different from the above-mentioned first preset number of times, which is not limited in this application.

示例性地,若终端设备读取芯片标识的次数与第二预设次数相同,均等于6,则终端设备可以每隔1秒钟读取一次指纹模组所在芯片的芯片标识,并连续读取6次。For example, if the number of times the terminal device reads the chip identification is the same as the second preset number of times, both equal to 6, the terminal device can read the chip identification of the chip where the fingerprint module is located every 1 second, and read continuously 6 times.

若读取芯片标识连续失败的次数大于或等于第二预设次数,则终端设备对指纹模组进行下电操作,第二预设次数大于或等于第一预设次数。If the number of consecutive failures to read the chip identification is greater than or equal to the second preset number of times, the terminal device performs a power-off operation on the fingerprint module, and the second preset number of times is greater than or equal to the first preset number of times.

示例性地,若终端设备重新读取芯片标识的次数与第二预设次数相同,则终端设备每次读取均失败,可以说明指纹模组异常,则终端设备对指纹模组进行下电操作。本申请具体实施例中的方法300、方法500以及方法700中所示的示例,终端设备重新读取芯片标识的次数均与第二预设次数相同。终端设备重新读取芯片标识的次数也可以称为第二预设次数。For example, if the number of times the terminal device re-reads the chip identification is the same as the second preset number of times, the terminal device fails to read each time, which can indicate that the fingerprint module is abnormal, and the terminal device performs power-off operation on the fingerprint module . In the examples shown in method 300, method 500, and method 700 in specific embodiments of the present application, the number of times the terminal device re-reads the chip identification is the same as the second preset number of times. The number of times the terminal device re-reads the chip identification may also be referred to as the second preset number of times.

示例性地,若终端设备重新读取芯片标识的次数大于第二预设次数,且终端设备读取芯片标识的次数为10,第二预设次数为6,则这10次读取结果中存在连续的6次读取失败,则可以说明指纹模组异常,则终端设备对指纹模组进行下电操作。For example, if the number of times the terminal device re-reads the chip identification is greater than the second preset number of times, and the number of times the terminal device reads the chip identification is 10, and the second preset number of times is 6, then there are Six consecutive read failures indicate that the fingerprint module is abnormal, and the terminal device powers off the fingerprint module.

本申请提供的指纹模组的控制方法,对指纹模组下电后再上电,重新判断是否可以读取到指纹模组所在芯片的芯片标识,若连续读取失败的次数大于或等于第二预设次数,则确定指纹模组异常,可以提高识别准确度,有利于降低误判的风险。The control method of the fingerprint module provided by this application is to power off the fingerprint module and then power it on again to judge whether the chip identification of the chip where the fingerprint module is located can be read again. If the number of consecutive reading failures is greater than or equal to the second The preset number of times determines that the fingerprint module is abnormal, which can improve the recognition accuracy and help reduce the risk of misjudgment.

第二方面,提供了一种指纹模组的控制装置,该装置包括:读取模块和处理模块。其中,读取模块用于:读取指纹模组所在芯片的芯片标识;处理模块用于:若读取芯片标识连续失败的次数大于或等于第一预设次数,则对指纹模组进行下电操作。In a second aspect, a control device for a fingerprint module is provided, and the device includes: a reading module and a processing module. Wherein, the reading module is used to: read the chip identification of the chip where the fingerprint module is located; the processing module is used to: if the number of consecutive failures to read the chip identification is greater than or equal to the first preset number of times, power off the fingerprint module operate.

结合第二方面,在第二方面的某些实现方式中,上述读取模块还用于:若上述控制装置的显示屏处于亮屏状态,且指纹模组处于录入状态、认证状态、取消状态或者空闲状态,则读取芯片标识。With reference to the second aspect, in some implementations of the second aspect, the above-mentioned reading module is also used: if the display screen of the above-mentioned control device is in the bright screen state, and the fingerprint module is in the entry state, authentication state, cancel state or In the idle state, read the chip identification.

结合第二方面,在第二方面的某些实现方式中,若上述控制装置的显示屏处于亮屏状态且指纹模组处于休眠状态时,则唤醒指纹模组;上述读取模块还用于:读取芯片标识。In conjunction with the second aspect, in some implementations of the second aspect, if the display screen of the control device is in a bright state and the fingerprint module is in a dormant state, wake up the fingerprint module; the reading module is also used for: Read chip ID.

结合第二方面,在第二方面的某些实现方式中,上述读取模块还用于:若上述控制装置的显示屏处于灭屏状态且指纹模组存储有指纹信息,则读取芯片标识。With reference to the second aspect, in some implementation manners of the second aspect, the reading module is further configured to read the chip identification if the display screen of the control device is off and the fingerprint module stores fingerprint information.

结合第二方面,在第二方面的某些实现方式中,上述读取模块还用于:若上述控制装置的显示屏处于灭屏状态、指纹模组未存储有指纹信息且指纹模组处于空闲状态,则读取指纹模组所在芯片的芯片标识。In conjunction with the second aspect, in some implementations of the second aspect, the above-mentioned reading module is also used for: if the display screen of the above-mentioned control device is in the off-screen state, the fingerprint module does not store fingerprint information and the fingerprint module is idle status, read the chip ID of the chip where the fingerprint module is located.

结合第二方面,在第二方面的某些实现方式中,上述处理模块还用于:若上述控制装置的显示屏处于灭屏状态、指纹模组未存储有指纹信息且指纹模组处于休眠状态,则唤醒指纹模组;上述读取模块还用于:读取芯片标识。With reference to the second aspect, in some implementations of the second aspect, the processing module is further configured to: if the display screen of the control device is off, the fingerprint module does not store fingerprint information, and the fingerprint module is in a dormant state , wake up the fingerprint module; the above-mentioned reading module is also used for: reading the chip identification.

结合第二方面,在第二方面的某些实现方式中,上述处理模块还用于:对指纹模组进行上电操作;上述读取模块还用于:重新读取芯片标识;处理模块还用于:若读取芯片标识连续失败的次数大于或等于第二预设次数,则对指纹模组进行下电操作,第二预设次数大于或等于第一预设次数。In combination with the second aspect, in some implementations of the second aspect, the above-mentioned processing module is also used to: perform power-on operation on the fingerprint module; the above-mentioned reading module is also used to: re-read the chip identification; the processing module is also used to In: if the number of consecutive failures to read the chip identification is greater than or equal to the second preset number of times, power off the fingerprint module, and the second preset number of times is greater than or equal to the first preset number of times.

第三方面,本申请提供一种指纹模组的控制装置,该控制装置包括:处理器和存储器;存储器存储计算机执行指令;处理器执行存储器存储的计算机执行指令,使得控制装置执行如第一方面的方法。In a third aspect, the present application provides a control device for a fingerprint module, the control device includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the control device executes as described in the first aspect Methods.

第四方面,本申请提供一种终端设备,终端设备也可以称为终端(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。终端设备可以是手机(mobile phone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmentedreality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。In a fourth aspect, the present application provides a terminal device, which may also be referred to as a terminal (terminal), user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), etc. . The terminal device can be mobile phone, smart TV, wearable device, tablet computer (Pad), computer with wireless transceiver function, virtual reality (virtual reality, VR) terminal device, augmented reality (augmented reality, AR) terminal device , wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation safety Wireless terminals in (transportation safety), wireless terminals in smart cities, wireless terminals in smart homes, etc.

该终端设备包括:处理器和存储器;存储器存储计算机执行指令;处理器执行存储器存储的计算机执行指令,使得终端设备执行如第一方面的方法。The terminal device includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the method according to the first aspect.

第五方面,本申请提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现如第一方面的方法。In a fifth aspect, the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method in the first aspect is implemented.

第六方面,本申请提供一种计算机程序产品,计算机程序产品包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面的方法。In a sixth aspect, the present application provides a computer program product, the computer program product includes a computer program, and when the computer program is executed, the computer is made to execute the method in the first aspect.

第七方面,本申请提供了一种芯片,芯片包括处理器,处理器用于调用存储器中的计算机程序,以执行如第一方面所述的方法。In a seventh aspect, the present application provides a chip, the chip includes a processor, and the processor is used to call a computer program in a memory to execute the method as described in the first aspect.

应当理解的是,本申请的第二方面至第七方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second aspect to the seventh aspect of the present application correspond to the technical solution of the first aspect of the present application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation manners are similar, so details are not repeated here.

附图说明Description of drawings

图1是一种检测指纹模组异常的示意图;Fig. 1 is a schematic diagram of detecting abnormality of a fingerprint module;

图2是本申请实施例适用的终端设备的一种软件结构框图;FIG. 2 is a software structural block diagram of a terminal device applicable to an embodiment of the present application;

图3是本申请实施例提供的一种指纹模组的控制方法的示意性流程图;FIG. 3 is a schematic flow chart of a fingerprint module control method provided by an embodiment of the present application;

图4是一种指纹模组状态的示意图;Fig. 4 is a schematic diagram of a state of a fingerprint module;

图5是本申请实施例提供的另一种指纹模组的控制方法的示意性流程图;Fig. 5 is a schematic flowchart of another fingerprint module control method provided by the embodiment of the present application;

图6是另一种指纹模组状态的示意图;Fig. 6 is a schematic diagram of another fingerprint module state;

图7是本申请实施例提供的又一种指纹模组的控制方法的示意性流程图;Fig. 7 is a schematic flowchart of another fingerprint module control method provided by the embodiment of the present application;

图8是本申请实施例提供的另一种指纹模组的控制方法的示意性流程图;Fig. 8 is a schematic flowchart of another fingerprint module control method provided by the embodiment of the present application;

图9是本申请实施例提供的又一种指纹模组的控制方法的示意性流程图;Fig. 9 is a schematic flowchart of another fingerprint module control method provided by the embodiment of the present application;

图10是本申请实施例提供的一种指纹模组的控制装置的示意性框图;Fig. 10 is a schematic block diagram of a control device for a fingerprint module provided by an embodiment of the present application;

图11是本申请实施例提供的另一种指纹模组的控制装置的示意性框图。Fig. 11 is a schematic block diagram of another fingerprint module control device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.

终端设备也可以称为终端(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。终端设备可以是手机(mobilephone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。A terminal device may also be called a terminal (terminal), a user equipment (user equipment, UE), a mobile station (mobile station, MS), a mobile terminal (mobile terminal, MT) and so on. The terminal device can be mobile phone, smart TV, wearable device, tablet computer (Pad), computer with wireless transceiver function, virtual reality (virtual reality, VR) terminal device, augmented reality (augmented reality, AR) terminal device , wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation safety Wireless terminals in (transportation safety), wireless terminals in smart cities, wireless terminals in smart homes, etc.

通常,终端设备可以包括指纹模组,以为用户提供指纹解锁的功能。若终端设备的指纹模组在终端设备磕碰或者跌落场景中损坏,会造成指纹模组所在的芯片短路,导致指纹模组温度升高,存在烫伤用户的风险。Generally, a terminal device may include a fingerprint module to provide a user with a fingerprint unlocking function. If the fingerprint module of the terminal device is damaged when the terminal device is knocked or dropped, it will cause a short circuit on the chip where the fingerprint module is located, which will cause the temperature of the fingerprint module to rise, and there is a risk of scalding the user.

示例性地,终端设备可以为手机。当指纹模组嵌入电源键位于手机侧边缘时,在终端设备磕碰或者跌落场景中出现损坏的概率较高。若指纹模组损坏造成指纹模组所在的芯片短路,会导致指纹模组温度升高,当用户触摸电源键位置进行指纹解锁或者按压电源键时,烫伤用户的概率较大。Exemplarily, the terminal device may be a mobile phone. When the fingerprint module is embedded in the power button and located on the side edge of the mobile phone, there is a high probability of damage when the terminal device is bumped or dropped. If the fingerprint module is damaged and the chip where the fingerprint module is located is short-circuited, the temperature of the fingerprint module will rise. When the user touches the position of the power button to unlock the fingerprint or press the power button, the probability of scalding the user is high.

针对上述问题,终端领域提出了如下方法:指纹模组所在的芯片检测该芯片中的电流大小,若电流过大,则输出过流保护(over current protection,OCP)中断信号;终端设备的主控芯片检测到OCP中断信号之后,进行指纹模组异常处理,对指纹模组进行下电操作。In response to the above problems, the terminal field has proposed the following method: the chip where the fingerprint module is located detects the current in the chip, and if the current is too large, it outputs an over current protection (over current protection, OCP) interrupt signal; the main control of the terminal device After the chip detects the OCP interrupt signal, it handles the abnormality of the fingerprint module and powers off the fingerprint module.

示例性地,图1示出了一种检测指纹模组异常的示意图。指纹模组所在的芯片可以包括区域电流选择器(domain current selector),该区域电流选择器可以对芯片中的电流进行检测。区域电流选择器也可以称为过流保护装置,本申请实施例对此不作限定。指纹模组可以包括寄存器,该寄存器可以用于存储数据。Exemplarily, FIG. 1 shows a schematic diagram of detecting an abnormality of a fingerprint module. The chip where the fingerprint module is located may include a domain current selector, which can detect the current in the chip. The regional current selector may also be called an overcurrent protection device, which is not limited in this embodiment of the present application. The fingerprint module can include registers, which can be used to store data.

当区域电流选择器检测到芯片的电流过大时,可以生成OCP中断信号,并将过流中断标记写入寄存器。终端设备的主控芯片检测到OCP中断信号,可以读取寄存器中的过流中断标记,并对指纹模组进行下电操作。When the area current selector detects that the current of the chip is too large, it can generate an OCP interrupt signal and write the over-current interrupt flag into the register. The main control chip of the terminal device detects the OCP interrupt signal, can read the overcurrent interrupt flag in the register, and power off the fingerprint module.

但是,图1所示的这种实现方式,当指纹模组所在芯片发生严重损坏时,存在区域电流选择器无法生成OCP中断信号,或者,终端设备无法对寄存器进行读写的情况,会导致终端设备无法对指纹模组进行下电操作,仍然存在烫伤用户的风险。However, in the implementation shown in Figure 1, when the chip where the fingerprint module is located is severely damaged, the regional current selector cannot generate the OCP interrupt signal, or the terminal device cannot read and write the register, which will cause the terminal The device cannot power off the fingerprint module, and there is still a risk of scalding the user.

有鉴于此,本申请实施例提供一种指纹模组的控制方法和控制装置,多次读取指纹模组所在芯片的标识,若多次读取均失败,确定指纹模组异常,对指纹模组进行下电操作,以防止指纹模组温度升高,降低烫伤用户的风险。In view of this, the embodiment of the present application provides a control method and a control device for a fingerprint module, which reads the identification of the chip where the fingerprint module is located multiple times. The group is powered off to prevent the temperature of the fingerprint module from rising and reduce the risk of scalding the user.

本申请实施例提供的方法,可以适用于任意包括指纹模组的终端设备。例如,手机、平板电脑、个人计算机(personal computer,PC)、以及智能手表等可穿戴终端设备,还可以是各种教学辅助工具(例如学习机、早教机)、智能玩具、便携式机器人、个人数字助理(personal digital assistant,PDA)、增强现实技术(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备等,也可以是具有移动办公功能的设备、具有智能家居功能的设备、具有影音娱乐功能的设备、支持智能出行的设备等。应理解,本申请的实施例对终端设备所采用的具体技术和具体设备形态不做限定。The method provided in the embodiment of the present application can be applied to any terminal device including a fingerprint module. For example, mobile phones, tablet computers, personal computers (personal computers, PCs), and smart watches and other wearable terminal devices can also be various teaching aids (such as learning machines, early education machines), smart toys, portable robots, personal digital Assistant (personal digital assistant, PDA), augmented reality (augmented reality, AR) equipment, virtual reality (virtual reality, VR) equipment, etc., can also be a device with mobile office function, a device with smart home function, a device with audio-visual Devices with entertainment functions, devices supporting smart travel, etc. It should be understood that the embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.

终端设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明终端设备的软件结构。The software system of the terminal device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the terminal device.

图2为本申请实施例适用的终端设备的一种软件结构框图。分层架构将终端设备的软件系统分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,可以将Android系统分为五层,分别为应用程序层(applications)、应用程序框架层(application framework)、安卓运行时(Android runtime)和系统库、硬件抽象层(hardware abstract layer,HAL)以及内核层(kernel)。FIG. 2 is a software structural block diagram of a terminal device applicable to an embodiment of the present application. The layered architecture divides the software system of the terminal device into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system can be divided into five layers, which are applications, application framework, Android runtime, system library, and hardware abstraction layer. layer, HAL) and the kernel layer (kernel).

应用程序层可以包括一系列应用程序包,应用程序层通过调用应用程序框架层所提供的应用程序接口(application programming interface,API)运行应用程序。如图2所示,应用程序包可以包括相机,图库,日历,通话以及地图等应用程序。The application program layer may include a series of application program packages, and the application program layer runs the application program by calling an application program interface (application programming interface, API) provided by the application program framework layer. As shown in Figure 2, the application package may include applications such as a camera, a gallery, a calendar, a call, and a map.

应用程序框架层为应用程序层的应用程序提供API和编程框架。应用程序框架层包括一些预先定义的函数。如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,以及视图系统等。The application framework layer provides API and programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer may include window managers, content providers, and view systems.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. Content providers are used to store and retrieve data and make it accessible to applications. Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.

安卓运行时包括核心库和虚拟机。安卓运行时负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries)以及三维图形处理库(例如:OpenGL ES)等。The Android runtime includes core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android. The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection. A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), and three-dimensional graphics processing library (eg: OpenGL ES), etc.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成和图层处理等。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing and layer processing, etc.

硬件抽象层,可以包含多个库模块,库模块如可以为摄像头库模块等。Android系统可以为设备硬件加载相应的库模块,进而实现应用程序框架层访问设备硬件的目的。设备硬件可以包括如终端设备中的摄像头等。硬件抽象层还可以包括指纹模组异常识别模块,该指纹模组异常识别模块用于读取指纹模组所在芯片的芯片标识,以确定指纹模组是否异常。指纹模组异常识别模块还可以接收指纹模组因采集指纹而产生的中断信号,以通知内核层中的指纹处理模块对采集的指纹进行处理。指纹模组异常识别模块也可以称为指纹HAL层模块,本申请实施例对此不作限定。The hardware abstraction layer can contain multiple library modules, for example, the library module can be a camera library module, etc. The Android system can load corresponding library modules for the device hardware, and then realize the purpose of the application framework layer accessing the device hardware. Device hardware may include, for example, a camera in a terminal device. The hardware abstraction layer may also include a fingerprint module abnormal identification module, which is used to read the chip identification of the chip where the fingerprint module is located to determine whether the fingerprint module is abnormal. The abnormal identification module of the fingerprint module can also receive the interrupt signal generated by the fingerprint module due to the collection of fingerprints, so as to notify the fingerprint processing module in the kernel layer to process the collected fingerprints. The abnormal identification module of the fingerprint module may also be called the fingerprint HAL layer module, which is not limited in this embodiment of the present application.

内核层是硬件和软件之间的层。内核层用于驱动硬件,使得硬件工作。内核层至少包含显示驱动和指纹驱动等,本申请实施例对此不做限制。内核层还包括电源管理模块和指纹处理模块。其中,显示驱动可以用于检测终端设备的显示屏的亮灭屏状态。指纹驱动可以用于接收指纹模组异常识别模块的下电指令,并基于该下电指令,通知电源管理模块对指纹模组进行下电操作,还可以用于接收指纹模组异常识别模块的上电指令,并基于该上电指令,通知电源管理模块对指纹模组进行上电操作。通知电源管理模块可以用于基于指纹驱动的指令,对指纹模组进行上电操作或者下电操作。指纹处理模块用于接收指纹模组采集的指纹,并对指纹进行录入或者认证。指纹处理模块也可以称为指纹受信任的应用程序(trusted application,TA)模块,本申请实施例对此不作限定。The kernel layer is the layer between hardware and software. The kernel layer is used to drive the hardware and make the hardware work. The kernel layer includes at least a display driver and a fingerprint driver, which are not limited in this embodiment of the present application. The kernel layer also includes a power management module and a fingerprint processing module. Wherein, the display driver may be used to detect the on-off state of the display screen of the terminal device. The fingerprint driver can be used to receive the power-off command of the abnormal identification module of the fingerprint module, and based on the power-off command, notify the power management module to power off the fingerprint module, and can also be used to receive the power-on command of the abnormal identification module of the fingerprint module. power-on instruction, and based on the power-on instruction, notify the power management module to perform power-on operation on the fingerprint module. The notification power management module can be used to perform power-on or power-off operations on the fingerprint module based on fingerprint-driven instructions. The fingerprint processing module is used to receive the fingerprints collected by the fingerprint module, and record or authenticate the fingerprints. The fingerprint processing module may also be called a fingerprint trusted application (trusted application, TA) module, which is not limited in this embodiment of the present application.

为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or descriptions. Any embodiment or design described herein as "exemplary" or "for example" is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.

本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .

下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be implemented independently, or may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

图3示出了一种指纹模组的控制方法300的示意性流程图。该方法300可以由终端设备执行,例如,手机。该终端设备可以包括显示屏和指纹模组。该终端设备的软件上可以软件结构可以如上述图2所示,但本申请实施例并不限于此。FIG. 3 shows a schematic flowchart of a fingerprint module control method 300 . The method 300 can be executed by a terminal device, for example, a mobile phone. The terminal device may include a display screen and a fingerprint module. The software structure of the terminal device may be as shown in FIG. 2 above, but this embodiment of the present application is not limited thereto.

如图3所示,该方法300可以包括如下步骤:As shown in FIG. 3, the method 300 may include the following steps:

S301、检测到显示屏处于亮屏状态。S301. It is detected that the display screen is in a bright screen state.

显示屏也可以称为屏幕,本申请实施例对此不作限定。终端设备包括显示屏,该显示屏可以处于亮屏状态或者灭屏状态。当显示屏亮屏时,终端设备可以检测到显示屏处于亮屏状态。A display screen may also be called a screen, which is not limited in this embodiment of the present application. The terminal device includes a display screen, and the display screen can be in a screen-on state or a screen-off state. When the display screen is on, the terminal device can detect that the display screen is on.

示例性地,显示屏的亮灭状态可以通过二进制符号表示。亮屏可以通过二进制0表示,灭屏可以通过二进制1表示。当终端设备检测到二进制0时,终端设备可以检测到显示屏处于亮屏状态。Exemplarily, the on-off state of the display screen may be represented by binary symbols. The bright screen can be represented by a binary 0, and the off screen can be represented by a binary 1. When the terminal device detects a binary 0, the terminal device can detect that the display screen is in a bright state.

S302、判断指纹模组是否处于休眠状态。S302. Determine whether the fingerprint module is in a dormant state.

指纹模组可以采集指纹信息,则指纹模组可以包括录有指纹信息和未录有指纹信息两种情况。指纹模组可以分别在这两种情况下处于不同的状态。The fingerprint module can collect fingerprint information, and the fingerprint module can include two situations of recording fingerprint information and not recording fingerprint information. The fingerprint module can be in different states in these two cases respectively.

示例性地,图4示出了一种指纹模组状态的示意图。如图4所示,在显示屏处于亮屏状态的情况下,若指纹模组录有指纹信息,则指纹模组可以包括录入状态(Enroll)、认证状态(Authenticate)、取消状态(Cancel)、空闲状态(Idle)以及休眠状态(Sleep)。其中,录入状态、认证状态以及取消状态是指纹模组录入指纹进行认证时的状态。若指纹模组未录有指纹信息,则指纹模组可以包括空闲状态(Idle)以及休眠状态(Sleep)。Exemplarily, FIG. 4 shows a schematic diagram of a status of a fingerprint module. As shown in Figure 4, when the display screen is in the bright screen state, if the fingerprint module records fingerprint information, the fingerprint module can include the entry status (Enroll), authentication status (Authenticate), cancellation status (Cancel), Idle state (Idle) and sleep state (Sleep). Among them, the entry state, authentication state and cancellation state are the states when the fingerprint module enters the fingerprint for authentication. If the fingerprint module does not record fingerprint information, the fingerprint module may include an idle state (Idle) and a sleep state (Sleep).

终端设备可以判断指纹模组是否处于休眠状态,该休眠状态可以是指纹模组录有指纹信息时的休眠状态,也可以是指纹模组未录有指纹信息时的休眠状态,本申请实施例对此不作限定。The terminal device can determine whether the fingerprint module is in a dormant state. The dormant state can be the dormant state when the fingerprint module records fingerprint information, or the dormant state when the fingerprint module does not record fingerprint information. This is not limited.

若指纹模组处于休眠状态,终端设备可以对其进行唤醒,即执行S303;若指纹模组未处于休眠状态,终端设备可以直接读取指纹模组所在芯片的芯片标识,即执行S304。可以理解的是,若指纹模组未处于休眠状态,则指纹模组可以处于录入状态、认证状态、取消状态或者空闲状态。If the fingerprint module is in the sleep state, the terminal device can wake it up, that is, execute S303; if the fingerprint module is not in the sleep state, the terminal device can directly read the chip identification of the chip where the fingerprint module is located, that is, execute S304. It can be understood that, if the fingerprint module is not in the dormant state, the fingerprint module can be in the entry state, authentication state, cancellation state or idle state.

S303、若指纹模组处于休眠状态,对指纹模组进行唤醒。S303. If the fingerprint module is in a dormant state, wake up the fingerprint module.

指纹模组处于休眠状态,则进入低功耗状态,终端设备可以通过命令或者复位指纹模组所在芯片对指纹模组进行唤醒。指纹模组唤醒后,进入空闲状态。When the fingerprint module is in a dormant state, it enters a low power consumption state, and the terminal device can wake up the fingerprint module by commanding or resetting the chip where the fingerprint module is located. After the fingerprint module wakes up, it enters the idle state.

空闲状态是指纹模组上电或复位后默认状态。当指纹模组处于空闲状态时,终端设备可以通过命令将其切换至其他的任意状态。需要说明的是,指纹模组的各个状态之间的切换,都必须先切换至空闲状态再切换至其他模式。The idle state is the default state after the fingerprint module is powered on or reset. When the fingerprint module is in the idle state, the terminal device can switch it to any other state through commands. It should be noted that, to switch between various states of the fingerprint module, it must be switched to the idle state first and then switched to other modes.

还需要说明的是,指纹模组可以处于录入状态、认证状态、取消状态、空闲状态或者休眠状态,也可以称为指纹模组可以处于录入模式、认证模式、取消模式、空闲模式或者休眠模式,本申请实施例对此不作限定。It should also be noted that the fingerprint module can be in the entry state, authentication state, cancellation state, idle state or sleep state, it can also be called the fingerprint module can be in entry mode, authentication mode, cancellation mode, idle mode or sleep mode, This embodiment of the present application does not limit it.

S304、连续多次读取指纹模组所在芯片的芯片标识(chip identity,chip ID)。S304. Read the chip identification (chip identity, chip ID) of the chip where the fingerprint module is located multiple times consecutively.

终端设备可以周期性地或者在固定时间内连续多次读取指纹模组所在芯片的芯片标识。终端设备读取指纹模组所在芯片的芯片标识的次数可以称为第一预设次数,是开发人员标定后,预设于终端设备中的。第一预设次数可以是3次、4次、5次或者6次等等,本申请实施例对此不作限定。The terminal device can periodically or continuously read the chip identification of the chip where the fingerprint module is located multiple times within a fixed period of time. The number of times the terminal device reads the chip identification of the chip where the fingerprint module is located can be called the first preset number of times, which is preset in the terminal device after being calibrated by the developer. The first preset number of times may be 3 times, 4 times, 5 times, or 6 times, etc., which is not limited in this embodiment of the present application.

示例性地,终端设备可以每隔1秒钟读取一次指纹模组所在芯片的芯片标识,并连续读取3次。或者,终端设备在一分钟内的第1秒、第5秒以及第60秒各读取一次指纹模组所在芯片的芯片标识。Exemplarily, the terminal device can read the chip identification of the chip where the fingerprint module is located every 1 second, and read 3 times continuously. Alternatively, the terminal device reads the chip identification of the chip where the fingerprint module is located at the 1st second, the 5th second and the 60th second within one minute.

S305、判断是否均读取失败。S305 , judging whether all readings fail.

终端设备判断是否每次均读取失败。The terminal device judges whether reading fails every time.

示例性地,若终端设备连续读取3次指纹模组所在芯片的芯片标识,终端设备可以判断这3次是否均读取失败。Exemplarily, if the terminal device reads the chip identification of the chip where the fingerprint module is located three consecutive times, the terminal device can determine whether the three readings fail.

若终端设备每次均读取失败,终端设备可以执行S307。若终端设备不是每次均读取失败,即存在至少一次读取成功,终端设备可以执行S306。If the terminal device fails to read every time, the terminal device may execute S307. If the terminal device does not fail to read every time, that is, there is at least one successful read, the terminal device may execute S306.

S306、若未均读取失败,终端设备可以确定指纹模组无异常。S306. If none of them fail to be read, the terminal device may determine that the fingerprint module is normal.

若终端设备不是每次均读取失败,可以说明指纹模组无异常,终端设备可以确定指纹模组无异常。If the terminal device does not fail to read every time, it can indicate that the fingerprint module is normal, and the terminal device can determine that the fingerprint module is normal.

示例性地,若终端设备连续读取3次指纹模组所在芯片的芯片标识,且这3次均读取失败,终端设备可以确定指纹模组无异常。For example, if the terminal device reads the chip identification of the chip where the fingerprint module is located three times consecutively, and fails to read all three times, the terminal device can determine that the fingerprint module is normal.

S307、若均读取失败,终端设备可以确定指纹模组异常。S307. If all readings fail, the terminal device may determine that the fingerprint module is abnormal.

若终端设备每次均读取失败,可以说明指纹模组异常,终端设备可以确定指纹模组异常,并可以对指纹模组进行下电操作。If the terminal device fails to read every time, it can indicate that the fingerprint module is abnormal, and the terminal device can determine that the fingerprint module is abnormal, and can power off the fingerprint module.

示例性地,若终端设备连续读取3次指纹模组所在芯片的芯片标识,且这3次均读取失败,终端设备可以确定指纹模组异常。For example, if the terminal device reads the chip identification of the chip where the fingerprint module is located three times consecutively, and fails to read all three times, the terminal device can determine that the fingerprint module is abnormal.

本申请实施例提供的指纹模组的控制方法,在显示屏亮屏状态下,多次读取指纹模组所在芯片的芯片标识,若多次读取均失败,确定指纹模组异常,对指纹模组进行下电操作,以防止指纹模组温度升高,降低烫伤用户的风险。The control method of the fingerprint module provided in the embodiment of the present application reads the chip identification of the chip where the fingerprint module is located multiple times when the display screen is bright. If the multiple readings fail, it is determined that the fingerprint module is abnormal. The module is powered off to prevent the temperature of the fingerprint module from rising and reduce the risk of scalding the user.

图5示出了另一种指纹模组的控制方法500的示意性流程图。该方法500可以由终端设备执行,例如,手机。该终端设备可以包括显示屏和指纹模组。该终端设备的软件上可以软件结构可以如上述图2所示,但本申请实施例并不限于此。FIG. 5 shows a schematic flowchart of another fingerprint module control method 500 . The method 500 can be executed by a terminal device, for example, a mobile phone. The terminal device may include a display screen and a fingerprint module. The software structure of the terminal device may be as shown in FIG. 2 above, but this embodiment of the present application is not limited thereto.

如图5所示,该方法500可以包括如下步骤:As shown in FIG. 5, the method 500 may include the following steps:

S501、检测到显示屏处于灭屏状态。S501. It is detected that the display screen is in a screen-off state.

终端设备包括显示屏,该显示屏可以处于亮屏状态或者灭屏状态。当显示屏灭屏时,终端设备可以检测到显示屏处于灭屏状态。The terminal device includes a display screen, and the display screen can be in a screen-on state or a screen-off state. When the display screen is off, the terminal device can detect that the display screen is in the off state.

示例性地,显示屏的亮灭状态可以通过二进制符号表示。亮屏可以通过二进制0表示,灭屏可以通过二进制1表示。当终端设备检测到二进制1时,终端设备可以检测到显示屏处于灭屏状态。Exemplarily, the on-off state of the display screen may be represented by binary symbols. The bright screen can be represented by a binary 0, and the off screen can be represented by a binary 1. When the terminal device detects binary 1, the terminal device can detect that the display screen is in an off state.

S502、判断指纹模组是否录有指纹信息。S502. Determine whether the fingerprint module records fingerprint information.

指纹模组可以采集指纹信息,则指纹模组可以包括录有指纹信息和未录有指纹信息两种情况。若指纹模组未录入用户的指纹,终端设备可以检测到指纹模组未录有指纹信息,可以继续执行S503。若指纹模组录入了用户的指纹,终端设备可以检测到指纹模组录有指纹信息,可以继续执行S505。The fingerprint module can collect fingerprint information, and the fingerprint module can include two situations of recording fingerprint information and not recording fingerprint information. If the fingerprint module does not record the user's fingerprint, the terminal device may detect that the fingerprint module does not record fingerprint information, and may continue to execute S503. If the fingerprint module records the user's fingerprint, the terminal device can detect that the fingerprint module records fingerprint information, and can continue to execute S505.

S503、若指纹模组未录有指纹信息,判断指纹模组是否处于休眠状态。S503. If the fingerprint module does not record fingerprint information, determine whether the fingerprint module is in a dormant state.

在指纹模组录有指纹信息的情况下,指纹模组可以包括空闲状态和休眠状态。In the case that the fingerprint module records fingerprint information, the fingerprint module may include an idle state and a dormant state.

示例性地,图6示出了一种指纹模组状态的示意图。如图6所示,在显示屏处于灭屏状态的情况下,若指纹模组录有指纹信息,则指纹模组可以包括认证状态(Authenticate)、取消状态(Cancel)、空闲状态(Idle)以及休眠状态(Sleep)。若指纹模组未录有指纹信息,则指纹模组可以包括空闲状态(Idle)以及休眠状态(Sleep)。Exemplarily, FIG. 6 shows a schematic diagram of a status of a fingerprint module. As shown in Figure 6, when the display screen is in the off-screen state, if the fingerprint module records fingerprint information, the fingerprint module can include authentication status (Authenticate), cancellation status (Cancel), idle status (Idle) and Dormant state (Sleep). If the fingerprint module does not record fingerprint information, the fingerprint module may include an idle state (Idle) and a sleep state (Sleep).

终端设备可以判断指纹模组是否处于休眠状态。若指纹模组处于休眠状态,终端设备可以对其进行唤醒,即执行S504;若指纹模组未处于休眠状态,终端设备可以直接读取指纹模组所在芯片的芯片标识,即执行S505。可以理解的是,若指纹模组未处于休眠状态,则指纹模组可以处于空闲状态。The terminal device can determine whether the fingerprint module is in a dormant state. If the fingerprint module is in the sleep state, the terminal device can wake it up, that is, execute S504; if the fingerprint module is not in the sleep state, the terminal device can directly read the chip identification of the chip where the fingerprint module is located, that is, execute S505. It can be understood that, if the fingerprint module is not in the sleep state, the fingerprint module can be in the idle state.

S504、若指纹模组未录有指纹信息,且处于休眠状态,对指纹模组进行唤醒。S504. If the fingerprint module does not record fingerprint information and is in a dormant state, wake up the fingerprint module.

指纹模组处于休眠状态,则进入低功耗状态,终端设备可以通过命令或者复位指纹模组所在芯片对指纹模组进行唤醒。指纹模组唤醒后,进入空闲状态。When the fingerprint module is in a dormant state, it enters a low power consumption state, and the terminal device can wake up the fingerprint module by commanding or resetting the chip where the fingerprint module is located. After the fingerprint module wakes up, it enters the idle state.

空闲状态是指纹模组上电或复位后默认状态。当指纹模组处于空闲状态时,终端设备可以通过命令将其切换至其他的任意状态。需要说明的是,指纹模组的各个状态之间的切换,都必须先切换至空闲状态再切换至其他模式。The idle state is the default state after the fingerprint module is powered on or reset. When the fingerprint module is in the idle state, the terminal device can switch it to any other state through commands. It should be noted that, to switch between various states of the fingerprint module, it must be switched to the idle state first and then switched to other modes.

还需要说明的是,指纹模组可以处于录入状态、认证状态、取消状态、空闲状态或者休眠状态,也可以称为指纹模组可以处于录入模式、认证模式、取消模式、空闲模式或者休眠模式,本申请实施例对此不作限定。It should also be noted that the fingerprint module can be in the entry state, authentication state, cancellation state, idle state or sleep state, it can also be called the fingerprint module can be in entry mode, authentication mode, cancellation mode, idle mode or sleep mode, This embodiment of the present application does not limit it.

S505、连续多次读取指纹模组所在芯片的芯片标识。S505. Read the chip identification of the chip where the fingerprint module is located multiple times consecutively.

终端设备可以周期性地或者在固定时间内连续多次读取指纹模组所在芯片的芯片标识。终端设备读取指纹模组所在芯片的芯片标识的次数可以称为第一预设次数,是开发人员标定后,预设于终端设备中的。第一预设次数可以是3次、4次、5次或者6次等等,本申请实施例对此不作限定。The terminal device can periodically or continuously read the chip identification of the chip where the fingerprint module is located multiple times within a fixed period of time. The number of times the terminal device reads the chip identification of the chip where the fingerprint module is located can be called the first preset number of times, which is preset in the terminal device after being calibrated by the developer. The first preset number of times may be 3 times, 4 times, 5 times, or 6 times, etc., which is not limited in this embodiment of the present application.

示例性地,终端设备可以每隔1秒钟读取一次指纹模组所在芯片的芯片标识,并连续读取3次。或者,终端设备在一分钟内的第1秒、第5秒以及第60秒各读取一次指纹模组所在芯片的芯片标识。Exemplarily, the terminal device can read the chip identification of the chip where the fingerprint module is located every 1 second, and read 3 times continuously. Alternatively, the terminal device reads the chip identification of the chip where the fingerprint module is located at the 1st second, the 5th second and the 60th second within one minute.

S506、判断是否均读取失败。S506 , judging whether all reading fails.

终端设备判断是否每次均读取失败。The terminal device judges whether reading fails every time.

示例性地,若终端设备连续读取3次指纹模组所在芯片的芯片标识,终端设备可以判断这3次是否均读取失败。Exemplarily, if the terminal device reads the chip identification of the chip where the fingerprint module is located three consecutive times, the terminal device can determine whether the three readings fail.

若终端设备每次均读取失败,终端设备可以执行S508。若终端设备不是每次均读取失败,即存在至少一次读取成功,终端设备可以执行S507。If the terminal device fails to read every time, the terminal device may execute S508. If the terminal device does not fail to read every time, that is, there is at least one successful read, the terminal device may execute S507.

S507、若未均读取失败,终端设备可以确定指纹模组无异常。S507. If none of them fail to be read, the terminal device may determine that the fingerprint module is normal.

若终端设备不是每次均读取失败,可以说明指纹模组无异常,终端设备可以确定指纹模组无异常。If the terminal device does not fail to read every time, it can indicate that the fingerprint module is normal, and the terminal device can determine that the fingerprint module is normal.

示例性地,若终端设备连续读取3次指纹模组所在芯片的芯片标识,且这3次不是均读取失败,终端设备可以确定指纹模组无异常。For example, if the terminal device reads the chip identification of the chip where the fingerprint module is located three times consecutively, and the three readings do not all fail, the terminal device can determine that the fingerprint module is normal.

S508、若均读取失败,终端设备可以确定指纹模组异常。S508. If all readings fail, the terminal device may determine that the fingerprint module is abnormal.

若终端设备每次均读取失败,可以说明指纹模组异常,终端设备可以确定指纹模组异常,并可以对指纹模组进行下电操作。If the terminal device fails to read every time, it can indicate that the fingerprint module is abnormal, and the terminal device can determine that the fingerprint module is abnormal, and can power off the fingerprint module.

示例性地,若终端设备连续读取3次指纹模组所在芯片的芯片标识,且这3次均读取失败,终端设备可以确定指纹模组异常。For example, if the terminal device reads the chip identification of the chip where the fingerprint module is located three times consecutively, and fails to read all three times, the terminal device can determine that the fingerprint module is abnormal.

本申请实施例提供的指纹模组的控制方法,在显示屏灭屏状态下,多次读取指纹模组所在芯片的标识,若多次读取均失败,确定指纹模组异常,对指纹模组进行下电操作,以防止指纹模组温度升高,降低烫伤用户的风险。In the control method of the fingerprint module provided in the embodiment of the present application, when the display screen is off, the identification of the chip where the fingerprint module is located is read multiple times. If multiple readings fail, it is determined that the fingerprint module is abnormal. The group is powered off to prevent the temperature of the fingerprint module from rising and reduce the risk of scalding the user.

在灭屏场景下,本申请实施例还提供一种指纹模组的控制方法。In an off-screen scenario, the embodiment of the present application also provides a method for controlling a fingerprint module.

示例性地,图7示出了又一种指纹模组的控制方法700的示意性流程图。如图7所示,该方法700可以包括上述S501~S506。Exemplarily, FIG. 7 shows a schematic flowchart of another fingerprint module control method 700 . As shown in FIG. 7 , the method 700 may include the above S501-S506.

在S506之后,方法700还包括如下步骤:After S506, the method 700 also includes the following steps:

S701、检测到多次读取指纹模组所在芯片的芯片标识均失败。S701. It is detected that the chip identification of the chip where the fingerprint module is located has failed to be read multiple times.

S702、对指纹模组进行下电操作后再进行上电操作。S702. Perform power-off operation on the fingerprint module and then power-on operation.

终端设备可以对指纹模组进行下电操作后立即再对指纹模组进行上电操作,也可以对指纹模组进行下电操作后等待一段时间后再对指纹模组进行上电操作,本申请实施例对此不作限定。The terminal device can power on the fingerprint module immediately after powering off the fingerprint module, or it can power on the fingerprint module after powering off the fingerprint module and then power on the fingerprint module. The embodiment does not limit this.

S703、重新连续多次读取指纹模组所在芯片的芯片标识。S703. Read the chip identification of the chip where the fingerprint module is located for multiple consecutive times again.

终端设备可以重新周期性地或者在固定时间内连续多次读取指纹模组所在芯片的芯片标识。终端设备重新读取指纹模组所在芯片的芯片标识的次数可以称为第二预设次数,是开发人员标定后,预设于终端设备中的。第二预设次数可以是3次、4次、5次或者6次等,本申请实施例对此不作限定。第二预设次数与上述第一预设次数可以相同,也可以不同,本申请实施例对此不作限定。The terminal device can re-read the chip identification of the chip where the fingerprint module is located repeatedly periodically or continuously within a fixed time. The number of times the terminal device re-reads the chip identification of the chip where the fingerprint module is located can be called the second preset number of times, which is preset in the terminal device after being calibrated by the developer. The second preset number of times may be 3 times, 4 times, 5 times or 6 times, etc., which is not limited in this embodiment of the present application. The second preset number of times may be the same as or different from the first preset number of times, which is not limited in this embodiment of the present application.

S704、判断是否均读取失败。S704, judging whether all of the readings fail.

终端设备判断是否每次均读取失败。The terminal device judges whether reading fails every time.

示例性地,若终端设备连续读取6次指纹模组所在芯片的芯片标识,终端设备可以判断这6次是否均读取失败。For example, if the terminal device reads the chip identification of the chip where the fingerprint module is located six times consecutively, the terminal device can determine whether all the six reads fail.

若终端设备每次均读取失败,终端设备可以执行S706。若终端设备不是每次均读取失败,即存在至少一次读取成功,终端设备可以执行S705。If the terminal device fails to read every time, the terminal device may execute S706. If the terminal device does not fail to read every time, that is, there is at least one successful read, the terminal device may execute S705.

S705、若未均读取失败,终端设备可以确定指纹模组无异常。S705. If none of them fail to be read, the terminal device may determine that the fingerprint module is normal.

若终端设备不是每次均读取失败,可以说明指纹模组无异常,终端设备可以确定指纹模组无异常。If the terminal device does not fail to read every time, it can indicate that the fingerprint module is normal, and the terminal device can determine that the fingerprint module is normal.

示例性地,若终端设备连续读取6次指纹模组所在芯片的芯片标识,且这6次不是均读取失败,终端设备可以确定指纹模组无异常。For example, if the terminal device reads the chip identification of the chip where the fingerprint module is located six times consecutively, and not all of the six reads fail, the terminal device can determine that the fingerprint module is normal.

S706、若均读取失败,终端设备可以确定指纹模组异常。S706. If all readings fail, the terminal device may determine that the fingerprint module is abnormal.

若终端设备每次均读取失败,可以说明指纹模组异常,终端设备可以确定指纹模组异常,并可以对指纹模组进行下电操作。If the terminal device fails to read every time, it can indicate that the fingerprint module is abnormal, and the terminal device can determine that the fingerprint module is abnormal, and can power off the fingerprint module.

示例性地,若终端设备连续读取6次指纹模组所在芯片的芯片标识,且这6次均读取失败,终端设备可以确定指纹模组异常。Exemplarily, if the terminal device reads the chip identification of the chip where the fingerprint module is located six times consecutively, and fails to read all six times, the terminal device may determine that the fingerprint module is abnormal.

本申请实施例提供的指纹模组的控制方法,在显示屏灭屏状态下,若多次读取均失败,可以对指纹模组进行下电操作后再进行上电操作,再次判断是否可以读取到指纹模组所在芯片的芯片标识,当重新读取均失败时,确定指纹模组异常,有利于降低误判的风险。In the control method of the fingerprint module provided by the embodiment of the present application, when the display screen is off, if reading fails for many times, the fingerprint module can be powered off and then powered on to judge whether it can be read again. Get the chip ID of the chip where the fingerprint module is located, and when re-reading fails, it is determined that the fingerprint module is abnormal, which helps reduce the risk of misjudgment.

上述方法300、方法500以及方法700中,终端设备连续多次读取指纹模组所在芯片的芯片标识,并对这多次的结果进行判断指纹模组是否异常,这仅仅是一种可能的实现方式。本申请实施例还提供另一种可能的实现方式,终端设备读取指纹模组所在芯片的芯片标识后,判断是否读取失败;若读取失败,终端设备判断连续读取失败的次数是否超过第一预设次数;若连续读取失败的次数未超过第一预设次数,终端设备可以重新读取指纹模组所在芯片的芯片标识,重新判断是否读取成功。若连续读取失败的次数超过第一预设次数,终端设备可以确定指纹模组异常。可以理解的是,若终端设备可以读取成功,则终端设备确定指纹模组无异常。In the above method 300, method 500 and method 700, the terminal device reads the chip identification of the chip where the fingerprint module is located multiple times consecutively, and judges whether the fingerprint module is abnormal based on the results of these multiple times. This is only a possible realization Way. The embodiment of the present application also provides another possible implementation mode. After the terminal device reads the chip identification of the chip where the fingerprint module is located, it judges whether the reading fails; if the reading fails, the terminal device judges whether the number of consecutive reading failures exceeds The first preset number of times; if the number of consecutive reading failures does not exceed the first preset number of times, the terminal device can re-read the chip identification of the chip where the fingerprint module is located, and re-judge whether the reading is successful. If the number of consecutive reading failures exceeds the first preset number, the terminal device may determine that the fingerprint module is abnormal. It can be understood that if the terminal device can read successfully, the terminal device determines that the fingerprint module is normal.

作为一个可选的实施例,上述方法300、方法500或者方法700还可以包括:若终端设备读取到过流保护中断标记,则终端设备确定指纹模组为一级损坏;或者,若终端设备未读取到过流保护中断标记,则终端设备确定指纹模组为二级损坏,二级损坏比一级损坏的损坏等级高。As an optional embodiment, the above-mentioned method 300, method 500 or method 700 may also include: if the terminal device reads the overcurrent protection interruption flag, the terminal device determines that the fingerprint module is damaged at the first level; or, if the terminal device If the overcurrent protection interrupt flag is not read, the terminal device determines that the fingerprint module is damaged at the second level, and the damage level of the second level damage is higher than that of the first level damage.

现有的硬件检测方案中,如上述图1所示,当指纹模组的输入电流过大时,终端设备可以生成过流保护中断标记,并将其写入寄存器。在本申请实施例提供的方法中,终端设备确定指纹模组异常,若终端设备在寄存器中还读取到过流保护中断标记,则终端设备可以确定指纹模组为一级损坏。终端设备确定指纹模组异常,若终端设备在寄存器中未读取到过流保护中断标记,则终端设备可以确定指纹模组为二级损坏。In the existing hardware detection scheme, as shown in FIG. 1 above, when the input current of the fingerprint module is too large, the terminal device can generate an overcurrent protection interrupt flag and write it into the register. In the method provided in the embodiment of the present application, the terminal device determines that the fingerprint module is abnormal, and if the terminal device also reads the overcurrent protection interrupt flag in the register, the terminal device can determine that the fingerprint module is damaged at the first level. The terminal device determines that the fingerprint module is abnormal, and if the terminal device does not read the overcurrent protection interrupt flag in the register, the terminal device can determine that the fingerprint module is damaged at the second level.

本申请实施例提供的指纹模组的控制方法,可以在未读取到芯片标识确定指纹模组异常的基础上,通过是否读取到过流保护中断标记,可以确定指纹模组的损坏程度,可以为后续维修提供信息,有利于提高后续维修的效率。The control method of the fingerprint module provided by the embodiment of the present application can determine the damage degree of the fingerprint module by whether the over-current protection interruption mark is read on the basis of not reading the chip identification to determine the abnormality of the fingerprint module, Information can be provided for follow-up maintenance, which is conducive to improving the efficiency of follow-up maintenance.

本申请实施例提供的方法可以由终端设备中的电源管理模块、显示驱动、指纹驱动、指纹模组异常识别模块以及指纹处理模块执行。The method provided by the embodiment of the present application may be executed by a power management module, a display driver, a fingerprint driver, an abnormal identification module of a fingerprint module, and a fingerprint processing module in a terminal device.

示例性地,图8示出了一种指纹模组的控制方法800的示意性流程图。如图8所示,该方法800可以包括如下步骤:Exemplarily, FIG. 8 shows a schematic flowchart of a fingerprint module control method 800 . As shown in FIG. 8, the method 800 may include the following steps:

S801、显示驱动检测到显示屏处于亮屏状态。S801. The display driver detects that the display screen is in a bright screen state.

当显示屏处于亮屏状态时,用户可以录入指纹信息,也就是保存指纹信息。When the display screen is on, the user can enter fingerprint information, that is, save the fingerprint information.

S802、指纹模组异常识别模块通过指纹模组获取到用户的指纹信息。S802. The abnormal identification module of the fingerprint module obtains the fingerprint information of the user through the fingerprint module.

指纹模组无异常时,可以采集用户的指纹信息。指纹模组采集到指纹信息后,可以发送至指纹模组异常识别模块,对应地,指纹模组异常识别模块可以接收用户的指纹信息。When there is no abnormality in the fingerprint module, the user's fingerprint information can be collected. After the fingerprint information is collected by the fingerprint module, it can be sent to the abnormal identification module of the fingerprint module. Correspondingly, the abnormal identification module of the fingerprint module can receive the fingerprint information of the user.

S803、指纹模组异常识别模块向指纹处理模块发送用户的指纹信息,对应地,指纹处理模块接收用户的指纹信息。S803. The abnormal identification module of the fingerprint module sends the fingerprint information of the user to the fingerprint processing module, and correspondingly, the fingerprint processing module receives the fingerprint information of the user.

指纹处理模块用于对指纹信息进行处理,指纹模组异常识别模块向指纹处理模块发送用户的指纹信息以对用户的指纹信息进行处理。The fingerprint processing module is used to process the fingerprint information, and the abnormal identification module of the fingerprint module sends the user's fingerprint information to the fingerprint processing module to process the user's fingerprint information.

S804、指纹处理模块基于指纹信息,录入指纹信息。S804. The fingerprint processing module records the fingerprint information based on the fingerprint information.

指纹处理模块可以基于用户的录入操作,响应于该操作,对接收到的指纹信息进行录入,也就是保存用户的指纹信息。The fingerprint processing module can record the received fingerprint information based on the user's input operation, that is, save the user's fingerprint information in response to the operation.

S805、指纹处理模块向指纹模组异常识别模块返回录入结果。S805. The fingerprint processing module returns the entry result to the abnormal identification module of the fingerprint module.

录入结果为录入成功或者录入失败。指纹处理模块向指纹模组异常识别模块返回录入结果,以便于反馈结果给用户,并与用户了解录入进度,提高用户体验。The entry result is entry success or entry failure. The fingerprint processing module returns the input result to the abnormal identification module of the fingerprint module, so that the result can be fed back to the user, and the user can understand the progress of the input and improve the user experience.

S806、显示驱动检测到指纹模组处于休眠状态。S806. The display driver detects that the fingerprint module is in a dormant state.

S807、显示驱动向指纹模组异常识别模块发送唤醒指示信息,对应地,指纹模组异常识别模块接收该唤醒指示信息,该唤醒指示信息用于指示指纹模组异常识别模块对指纹模组进行唤醒。S807. The display driver sends wake-up indication information to the fingerprint module abnormal identification module, and correspondingly, the fingerprint module abnormal identification module receives the wake-up indication information, and the wake-up indication information is used to instruct the fingerprint module abnormal identification module to wake up the fingerprint module .

S808、指纹模组异常识别模块基于唤醒指示信息,对指纹模组进行唤醒。S808. The fingerprint module abnormal identification module wakes up the fingerprint module based on the wakeup indication information.

S809、显示驱动向指纹模组异常识别模块发送读取芯片标识的指示信息,对应地,指纹模组异常识别模块接收该读取芯片标识的指示信息,该读取芯片标识的指示信息用于指示指纹模组异常识别模块读取指纹模组所在芯片的芯片标识。S809. The display driver sends the indication information for reading the chip identification to the abnormal identification module of the fingerprint module. Correspondingly, the abnormal identification module of the fingerprint module receives the indication information for reading the chip identification, and the indication information for reading the chip identification is used to indicate The fingerprint module abnormal identification module reads the chip identification of the chip where the fingerprint module is located.

S810、指纹模组异常识别模块基于读取芯片标识的指示信息,创建用于读取芯片标识的线程。S810. The abnormal identification module of the fingerprint module creates a thread for reading the chip ID based on the indication information for reading the chip ID.

指纹模组异常识别模块基于读取芯片标识的指示信息,可以单独创建一个线程,专门用于读取指纹模组所在芯片的芯片标识。The abnormal recognition module of the fingerprint module can independently create a thread based on the indication information of reading the chip identification, which is specially used to read the chip identification of the chip where the fingerprint module is located.

这种实现方式,单独创建一个线程以用于读取芯片标识,可以不对终端设备在亮屏状态时的其它运行线程进行改变,有利于终端设备正常运行。In this implementation mode, a separate thread is created for reading the chip identification, and other running threads of the terminal device in the bright screen state may not be changed, which is beneficial to the normal operation of the terminal device.

S811、指纹模组异常识别模块运行用于读取芯片标识的线程,并得到运行结果。S811. The abnormal identification module of the fingerprint module runs a thread for reading the chip identification, and obtains an operation result.

指纹模组异常识别模块通过运行用于读取芯片标识的线程,对指纹模组所在芯片的芯片标识进行读取。若读取到芯片标识,运行结果可以为读取成功;若未读取到芯片标识,运行结果可以为读取失败。The abnormal identification module of the fingerprint module reads the chip identification of the chip where the fingerprint module is located by running the thread for reading the chip identification. If the chip identification is read, the operation result may be reading success; if the chip identification is not read, the operation result may be reading failure.

若读取成功,可以说明指纹模组无异常。若读取失败,可以说明指纹模组可能存在异常。If the reading is successful, it can indicate that the fingerprint module is normal. If the reading fails, it may indicate that there may be an abnormality in the fingerprint module.

S812、若运行结果为读取失败,指纹模组异常识别模块判断连续读取失败的次数是否大于或等于第一预设次数。S812. If the operation result is reading failure, the abnormal identification module of the fingerprint module determines whether the number of consecutive reading failures is greater than or equal to the first preset number.

第一预设次数可以是3次,但本申请实施例并不限于此。The first preset number of times may be 3 times, but this embodiment of the present application is not limited thereto.

若运行结果为读取失败,指纹模组异常识别模块判断读取失败的次数大于或等于第一预设次数,若读取失败的次数小于第一预设次数,指纹模组异常识别模块可以继续运行用于读取芯片标识的线程,并得到运行结果,若运行结果为读取失败,指纹模组异常识别模块继续判断连续读取失败的次数是否大于或等于第一预设次数,直到连续读取失败的次数大于或等于第一预设次数。If the operation result is read failure, the fingerprint module abnormal identification module judges that the number of read failures is greater than or equal to the first preset number of times, if the number of read failures is less than the first preset number of times, the fingerprint module abnormal identification module can continue Run the thread used to read the chip identification and get the running result. If the running result is reading failure, the abnormal identification module of the fingerprint module continues to judge whether the number of consecutive reading failures is greater than or equal to the first preset number of times until the continuous reading fails. The number of fetch failures is greater than or equal to the first preset number of times.

若运行结果为读取成功,指纹模组异常识别模块可以确定指纹模组无异常。If the operation result is that the reading is successful, the abnormal identification module of the fingerprint module can determine that the fingerprint module has no abnormality.

S813、若连续读取失败的次数大于或等于第一预设次数,指纹模组异常识别模块向指纹驱动模块发送下电指示信息,对应地,指纹驱动模块接收到该下电指示信息,该下电指示模块用于指示电源管理模块对指纹模组进行下电操作。S813. If the number of consecutive reading failures is greater than or equal to the first preset number of times, the abnormal identification module of the fingerprint module sends power-off instruction information to the fingerprint driver module. Correspondingly, the fingerprint driver module receives the power-off instruction information, and the power-off instruction information is The power indication module is used to instruct the power management module to power off the fingerprint module.

若连续读取失败的次数大于或等于第一预设次数,指纹模组异常识别模块可以确定指纹模组异常,并向指纹驱动模块发送下电指示信息。If the number of consecutive reading failures is greater than or equal to the first preset number of times, the fingerprint module abnormal identification module may determine that the fingerprint module is abnormal, and send power-off instruction information to the fingerprint driver module.

S814、指纹驱动模块向电源管理模块发送该下电指示信息,对应地,电源管理模块接收该下电指示信息,并基于该下电指示信息,对指纹模组进行下电操作。S814. The fingerprint driver module sends the power-off instruction information to the power management module. Correspondingly, the power management module receives the power-off instruction information, and performs a power-off operation on the fingerprint module based on the power-off instruction information.

本申请实施例提供的指纹模组的控制方法,在显示屏亮屏状态下,新建线程读取指纹模组所在芯片的标识,若连续读取失败的次数大于或等于第一预设次数,则确定指纹模组异常,对指纹模组进行下电操作,以防止指纹模组温度升高,降低烫伤用户的风险。In the control method of the fingerprint module provided by the embodiment of the present application, when the display screen is bright, a new thread is created to read the identification of the chip where the fingerprint module is located. If the number of consecutive reading failures is greater than or equal to the first preset number of times, then Determine that the fingerprint module is abnormal, and power off the fingerprint module to prevent the temperature of the fingerprint module from rising and reduce the risk of scalding the user.

图9示出了另一种指纹模组的控制方法900的示意性流程图。如图9所示,该方法900可以包括如下步骤:FIG. 9 shows a schematic flowchart of another fingerprint module control method 900 . As shown in FIG. 9, the method 900 may include the following steps:

S901、显示驱动检测到显示屏处于灭屏状态。S901. The display driver detects that the display screen is in an off-screen state.

当显示屏处于灭屏状态时,终端设备处于低功耗的状态。When the display screen is in an off state, the terminal device is in a state of low power consumption.

S902、指纹模组异常识别模块通过指纹模组获取到用户的指纹信息。S902. The abnormal identification module of the fingerprint module acquires the fingerprint information of the user through the fingerprint module.

指纹模组无异常时,可以采集用户的指纹信息。指纹模组采集到指纹信息后,可以发送至指纹模组异常识别模块,对应地,指纹模组异常识别模块可以接收用户的指纹信息。When there is no abnormality in the fingerprint module, the user's fingerprint information can be collected. After the fingerprint information is collected by the fingerprint module, it can be sent to the abnormal identification module of the fingerprint module. Correspondingly, the abnormal identification module of the fingerprint module can receive the fingerprint information of the user.

S903、指纹模组异常识别模块向指纹处理模块发送用户的指纹信息,对应地,指纹处理模块接收用户的指纹信息。S903. The abnormal identification module of the fingerprint module sends the fingerprint information of the user to the fingerprint processing module, and correspondingly, the fingerprint processing module receives the fingerprint information of the user.

指纹处理模块用于对指纹信息进行处理,指纹模组异常识别模块向指纹处理模块发送用户的指纹信息以对用户的指纹信息进行处理。The fingerprint processing module is used to process the fingerprint information, and the abnormal identification module of the fingerprint module sends the user's fingerprint information to the fingerprint processing module to process the user's fingerprint information.

S904、指纹处理模块基于指纹信息,对指纹信息进行验证。S904. The fingerprint processing module verifies the fingerprint information based on the fingerprint information.

当显示屏处于灭屏状态时,用户可以通过指纹对显示屏进行解锁,以使用终端设备。When the display screen is in the off-screen state, the user can unlock the display screen with a fingerprint to use the terminal device.

指纹处理模块可以基于用户的解锁操作,响应于该操作,对接收到的指纹信息进行验证,以确定是否解锁。The fingerprint processing module can verify the received fingerprint information based on the user's unlocking operation in response to the operation, so as to determine whether to unlock.

示例性地,指纹处理模块可以对指纹信息进行预处理、提取特征、并基于特征进行匹配等操作。Exemplarily, the fingerprint processing module may perform operations such as preprocessing fingerprint information, extracting features, and performing matching based on features.

S905、指纹处理模块向指纹模组异常识别模块返回验证结果。S905. The fingerprint processing module returns a verification result to the abnormal identification module of the fingerprint module.

验证结果为验证成功或者验证失败。指纹处理模块向指纹模组异常识别模块返回验证结果,以便于反馈结果给用户,并与用户了解验证进度,提高用户体验。The verification result is verification success or verification failure. The fingerprint processing module returns the verification result to the abnormal identification module of the fingerprint module, so as to feed back the result to the user, and understand the verification progress with the user, so as to improve user experience.

S906、显示驱动检测到指纹模组处于未录有指纹信息、且处于休眠状态。S906. The display driver detects that the fingerprint module does not record fingerprint information and is in a dormant state.

显示驱动可以检测指纹模组是否录有指纹信息,也可以检测指纹模组所处的状态。若指纹模组未录有指纹信息,并处于休眠状态,显示驱动可以检测到指纹模组处于未录有指纹信息、且处于休眠状态。The display driver can detect whether the fingerprint module has recorded fingerprint information, and can also detect the state of the fingerprint module. If the fingerprint module has no fingerprint information recorded and is in a dormant state, the display driver can detect that the fingerprint module has no fingerprint information recorded and is in a dormant state.

S907、显示驱动向指纹模组异常识别模块发送唤醒指示信息,对应地,指纹模组异常识别模块接收该唤醒指示信息,该唤醒指示信息用于指示指纹模组异常识别模块对指纹模组进行唤醒。S907. The display driver sends wake-up indication information to the fingerprint module abnormal identification module, and correspondingly, the fingerprint module abnormal identification module receives the wake-up indication information, and the wake-up indication information is used to instruct the fingerprint module abnormal identification module to wake up the fingerprint module .

S908、指纹模组异常识别模块基于唤醒指示信息,对指纹模组进行唤醒。S908. The fingerprint module abnormal identification module wakes up the fingerprint module based on the wakeup indication information.

S909、显示驱动向指纹模组异常识别模块发送读取芯片标识的指示信息,对应地,指纹模组异常识别模块接收该读取芯片标识的指示信息,该读取芯片标识的指示信息用于指示指纹模组异常识别模块读取指纹模组所在芯片的芯片标识。S909. The display driver sends the indication information for reading the chip identification to the abnormal identification module of the fingerprint module. Correspondingly, the abnormal identification module of the fingerprint module receives the indication information for reading the chip identification, and the indication information for reading the chip identification is used to indicate The fingerprint module abnormal identification module reads the chip identification of the chip where the fingerprint module is located.

S910、指纹模组异常识别模块基于读取芯片标识的指示信息,读取芯片标识。S910. The abnormal identification module of the fingerprint module reads the chip identification based on the indication information for reading the chip identification.

在灭屏状态下,指纹模组异常识别模块无需新建线程读取芯片标识。开发人员可以在已有线程中添加读取芯片标识的代码,并预设与终端设备中。当指纹模组异常识别模块接收读取芯片标识的指示信息后,基于读取芯片标识的指示信息,运行读取芯片标识的代码,无需新建线程读取芯片标识,尽可能使终端设备处于低功耗运行模式。In the off-screen state, the abnormal identification module of the fingerprint module does not need to create a new thread to read the chip identification. Developers can add the code to read the chip identification in the existing thread, and preset it with the terminal device. When the abnormality identification module of the fingerprint module receives the instruction information for reading the chip identification, it runs the code for reading the chip identification based on the instruction information for reading the chip identification. power consumption mode.

S911、若读取失败,指纹模组异常识别模块判断连续读取失败的次数是否大于或等于第一预设次数。S911. If the reading fails, the abnormal identification module of the fingerprint module judges whether the number of consecutive reading failures is greater than or equal to a first preset number of times.

第一预设次数可以是3次,但本申请实施例并不限于此。The first preset number of times may be 3 times, but this embodiment of the present application is not limited thereto.

若运行结果为读取失败,指纹模组异常识别模块判断读取失败的次数大于或等于第一预设次数,若读取失败的次数小于第一预设次数,指纹模组异常识别模块可以继续读取芯片标识。若读取失败,指纹模组异常识别模块判断连续读取失败的次数是否大于或等于第一预设次数,直到连续读取失败的次数大于或等于第一预设次数。If the operation result is read failure, the fingerprint module abnormal identification module judges that the number of read failures is greater than or equal to the first preset number of times, if the number of read failures is less than the first preset number of times, the fingerprint module abnormal identification module can continue Read chip ID. If the reading fails, the abnormal identification module of the fingerprint module judges whether the number of consecutive reading failures is greater than or equal to the first preset number of times until the number of consecutive reading failures is greater than or equal to the first preset number of times.

若运行结果为读取成功,指纹模组异常识别模块可以确定指纹模组无异常。If the operation result is that the reading is successful, the abnormal identification module of the fingerprint module can determine that the fingerprint module has no abnormality.

S912、若读取失败的次数大于或等于第一预设次数,指纹模组异常识别模块向指纹驱动模块发送下电指示信息,对应地,指纹驱动模块接收到该下电指示信息,该下电指示模块用于指示电源管理模块对指纹模组进行下电操作。S912. If the number of reading failures is greater than or equal to the first preset number of times, the fingerprint module abnormal identification module sends power-off instruction information to the fingerprint driver module, and correspondingly, the fingerprint driver module receives the power-off instruction information, and the power-off instruction information is The indication module is used to instruct the power management module to power off the fingerprint module.

若连续读取失败的次数大于或等于第一预设次数,指纹模组异常识别模块可以大致确定指纹模组异常,并向指纹驱动模块发送下电指示信息。If the number of consecutive reading failures is greater than or equal to the first preset number of times, the fingerprint module abnormal identification module can roughly determine that the fingerprint module is abnormal, and send a power-off instruction message to the fingerprint driver module.

S913、指纹驱动模块向电源管理模块发送该下电指示信息,对应地,电源管理模块接收该下电指示信息,并基于该下电指示信息,对指纹模组进行下电操作。S913. The fingerprint driver module sends the power-off instruction information to the power management module. Correspondingly, the power management module receives the power-off instruction information, and performs a power-off operation on the fingerprint module based on the power-off instruction information.

S914、指纹模组异常识别模块向指纹驱动模块发送上电指示信息,对应地,指纹驱动模块接收到该上电指示信息,该上电指示模块用于指示电源管理模块对指纹模组进行上电操作。S914. The fingerprint module abnormal identification module sends power-on instruction information to the fingerprint driver module, and correspondingly, the fingerprint driver module receives the power-on instruction information, and the power-on instruction module is used to instruct the power management module to power on the fingerprint module operate.

为了确保指纹模组确实是异常,指纹模组异常识别模块可以发送上电指示信息,以指示电源管理模块对指纹模组进行上电操作,可以再次判断是否可以读取成功,以提高识别准确度。In order to ensure that the fingerprint module is indeed abnormal, the abnormal identification module of the fingerprint module can send a power-on instruction message to instruct the power management module to perform power-on operation on the fingerprint module, and can judge whether it can be successfully read again, so as to improve the recognition accuracy .

S915、指纹驱动模块向电源管理模块发送该上电指示信息,对应地,电源管理模块接收该上电指示信息,并基于该上电指示信息,对指纹模组进行上电操作。S915. The fingerprint driver module sends the power-on instruction information to the power management module. Correspondingly, the power management module receives the power-on instruction information, and performs a power-on operation on the fingerprint module based on the power-on instruction information.

S916、指纹模组异常识别模块重新读取芯片标识。S916. The abnormal identification module of the fingerprint module reads the chip identification again.

S917、若读取失败,指纹模组异常识别模块判断连续读取失败的次数是否大于或等于第二预设次数。S917. If the reading fails, the abnormal identification module of the fingerprint module judges whether the number of consecutive reading failures is greater than or equal to the second preset number of times.

第一预设次数可以是6次,但本申请实施例并不限于此。The first preset number of times may be 6 times, but this embodiment of the present application is not limited thereto.

若运行结果为读取失败,指纹模组异常识别模块判断读取失败的次数大于或等于第二预设次数,若读取失败的次数小于第二预设次数,指纹模组异常识别模块可以继续读取芯片标识。若读取失败,指纹模组异常识别模块判断连续读取失败的次数是否大于或等于第二预设次数,直到连续读取失败的次数大于或等于第二预设次数。If the operation result is read failure, the fingerprint module abnormal identification module judges that the number of read failures is greater than or equal to the second preset number of times, if the number of read failures is less than the second preset number of times, the fingerprint module abnormal identification module can continue Read chip ID. If the reading fails, the abnormal identification module of the fingerprint module judges whether the number of consecutive reading failures is greater than or equal to the second preset number of times until the number of consecutive reading failures is greater than or equal to the second preset number of times.

S918、若连续读取失败的次数大于或等于第二预设次数,指纹模组异常识别模块向指纹驱动模块发送下电指示信息,对应地,指纹驱动模块接收到该下电指示信息,该下电指示模块用于指示电源管理模块对指纹模组进行下电操作。S918. If the number of consecutive reading failures is greater than or equal to the second preset number of times, the abnormal identification module of the fingerprint module sends power-off instruction information to the fingerprint driver module, and correspondingly, the fingerprint driver module receives the power-off instruction information, and the power-off instruction information is The power indication module is used to instruct the power management module to power off the fingerprint module.

若连续读取失败的次数大于或等于第二预设次数,指纹模组异常识别模块可以确定指纹模组异常,并向指纹驱动模块发送下电指示信息。If the number of consecutive reading failures is greater than or equal to the second preset number of times, the fingerprint module abnormal identification module may determine that the fingerprint module is abnormal, and send power-off instruction information to the fingerprint driver module.

S919、指纹驱动模块向电源管理模块发送该下电指示信息,对应地,电源管理模块接收该下电指示信息,并基于该下电指示信息,对指纹模组进行下电操作。S919. The fingerprint driver module sends the power-off instruction information to the power management module. Correspondingly, the power management module receives the power-off instruction information, and performs a power-off operation on the fingerprint module based on the power-off instruction information.

本申请实施例提供的指纹模组的控制方法,在显示屏灭屏状态下,读取指纹模组所在芯片的标识,若连续读取失败的次数大于或等于第一预设次数,则确定指纹模组异常,对指纹模组进行下电操作,以防止指纹模组温度升高,降低烫伤用户的风险。另外,本申请实施例还可以在对指纹模组下电后再上电,再次判断是否可以读取到指纹模组所在芯片的芯片标识,若连续读取失败的次数大于或等于第二预设次数,则确定指纹模组异常,可以提高识别准确度,有利于降低误判的风险。The fingerprint module control method provided by the embodiment of the present application reads the identification of the chip where the fingerprint module is located when the display screen is off, and if the number of consecutive reading failures is greater than or equal to the first preset number of times, the fingerprint is determined. If the module is abnormal, power off the fingerprint module to prevent the temperature of the fingerprint module from rising and reduce the risk of scalding the user. In addition, in the embodiment of the present application, after the fingerprint module is powered off and then powered on again, it can be judged again whether the chip identification of the chip where the fingerprint module is located can be read. If the number of consecutive reading failures is greater than or equal to the second preset The number of times determines that the fingerprint module is abnormal, which can improve the recognition accuracy and help reduce the risk of misjudgment.

上述实施例中各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。The sequence numbers of the processes in the above embodiments do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

上文中结合图1至图9,详细描述了本申请实施例提供的方法,下面将结合图10和图11,详细描述本申请实施例提供的装置。The method provided by the embodiment of the present application is described in detail above with reference to FIG. 1 to FIG. 9 , and the device provided by the embodiment of the present application will be described in detail below in conjunction with FIG. 10 and FIG. 11 .

图10示出了本申请实施例提供的一种指纹模组的控制装置1000的示意性框图。该指纹模组的控制装置1000包括:读取模块1010和处理模块1020。其中,读取模块1010用于:读取指纹模组所在芯片的芯片标识;处理模块1020用于:若读取芯片标识连续失败的次数大于或等于第一预设次数,则对指纹模组进行下电操作。Fig. 10 shows a schematic block diagram of a fingerprint module control device 1000 provided by an embodiment of the present application. The control device 1000 of the fingerprint module includes: a reading module 1010 and a processing module 1020 . Among them, the reading module 1010 is used to: read the chip identification of the chip where the fingerprint module is located; the processing module 1020 is used to: if the number of consecutive failures to read the chip identification is greater than or equal to the first preset number of times, then perform Power off operation.

可选地,上述读取模块1010还用于:若上述控制装置1000的显示屏处于亮屏状态,且指纹模组处于录入状态、认证状态、取消状态或者空闲状态,则读取芯片标识。Optionally, the reading module 1010 is further configured to read the chip identification if the display screen of the control device 1000 is in the bright state and the fingerprint module is in the entry state, authentication state, cancellation state or idle state.

可选地,若上述控制装置1000的显示屏处于亮屏状态且指纹模组处于休眠状态时,则唤醒指纹模组;上述读取模块1010还用于:读取芯片标识。Optionally, if the display screen of the control device 1000 is in a bright state and the fingerprint module is in a dormant state, wake up the fingerprint module; the reading module 1010 is also used for: reading the chip identification.

可选地,上述读取模块1010还用于:若上述控制装置1000的显示屏处于灭屏状态且指纹模组存储有指纹信息,则读取芯片标识。Optionally, the reading module 1010 is further configured to read the chip identification if the display screen of the control device 1000 is off and the fingerprint module stores fingerprint information.

可选地,上述读取模块1010还用于:若上述控制装置1000的显示屏处于灭屏状态、指纹模组未存储有指纹信息且指纹模组处于空闲状态,则读取指纹模组所在芯片的芯片标识。Optionally, the above-mentioned reading module 1010 is also used to: if the display screen of the above-mentioned control device 1000 is off, the fingerprint module does not store fingerprint information, and the fingerprint module is in an idle state, read the chip where the fingerprint module is located. chip ID.

可选地,上述处理模块1020还用于:若上述控制装置1000的显示屏处于灭屏状态、指纹模组未存储有指纹信息且指纹模组处于休眠状态,则唤醒指纹模组;上述读取模块1010还用于:读取芯片标识。Optionally, the processing module 1020 is further configured to wake up the fingerprint module if the display screen of the control device 1000 is off, the fingerprint module does not store fingerprint information, and the fingerprint module is in a dormant state; Module 1010 is also used for: reading chip identification.

可选地,上述处理模块1020还用于:对指纹模组进行上电操作;上述读取模块1010还用于:重新读取芯片标识;处理模块1020还用于:若读取芯片标识连续失败的次数大于或等于第二预设次数,则对指纹模组进行下电操作,第二预设次数大于或等于第一预设次数。Optionally, the above-mentioned processing module 1020 is also used for: powering on the fingerprint module; the above-mentioned reading module 1010 is also used for: re-reading the chip identification; the processing module 1020 is also used for: if reading the chip identification fails continuously If the number of times is greater than or equal to the second preset number of times, the fingerprint module is powered off, and the second preset number of times is greater than or equal to the first preset number of times.

应理解,这里的控制装置1000以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选的例子中,本领域技术人员可以理解,控制装置1000可以具体为上述方法实施例中的终端设备,或者,上述方法实施例中终端设备的功能可以集成在控制装置1000中,控制装置1000可以用于执行上述方法实施例中与终端设备对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be understood that the control device 1000 here is embodied in the form of functional modules. The term "module" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group of processor, etc.) and memory, incorporated logic, and/or other suitable components to support the described functionality. In an optional example, those skilled in the art can understand that the control device 1000 may specifically be the terminal device in the above method embodiment, or the functions of the terminal device in the above method embodiment may be integrated in the control device 1000 to control Apparatus 1000 may be configured to execute various processes and/or steps corresponding to the terminal device in the foregoing method embodiments, and details are not repeated here to avoid repetition.

上述控制装置1000具有实现上述方法实施例中终端设备执行的相应步骤的功能;上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。The above-mentioned control device 1000 has the function of realizing the corresponding steps executed by the terminal device in the above-mentioned method embodiment; the above-mentioned functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.

在本申请的实施例中,图10中的控制装置1000也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。In the embodiment of the present application, the control device 1000 in FIG. 10 may also be a chip or a chip system, for example: a system on chip (system on chip, SoC).

图11是本申请实施例提供的另一种指纹模组的控制装置1100的示意性框图。该控制装置1100包括:处理器1110、收发器1120和存储器1130。其中,处理器1110、收发器1120和存储器1130通过内部连接通路互相通信,该存储器1130用于存储指令,该处理器1110用于执行该存储器1130存储的指令,以控制该收发器1120发送信号和/或接收信号。Fig. 11 is a schematic block diagram of another fingerprint module control device 1100 provided by an embodiment of the present application. The control device 1100 includes: a processor 1110 , a transceiver 1120 and a memory 1130 . Wherein, the processor 1110, the transceiver 1120 and the memory 1130 communicate with each other through an internal connection path, the memory 1130 is used to store instructions, and the processor 1110 is used to execute the instructions stored in the memory 1130 to control the transceiver 1120 to send signals and /or to receive a signal.

应理解,控制装置1100可以具体为上述方法实施例中的终端设备,或者,上述方法实施例中终端设备的功能可以集成在控制装置1100中,控制装置1100可以用于执行上述方法实施例中与终端设备对应的各个步骤和/或流程。可选地,该存储器1130可以包括只读存储器和随机存取存储器,并向控制装置1100提供指令和数据。存储器1130的一部分还可以包括非易失性随机存取存储器。例如,存储器1130还可以存储设备类型的信息。该处理器1110可以用于执行存储器1130中存储的指令,并且该处理器1110执行该指令时,该处理器1110可以执行上述方法实施例中与终端设备对应的各个步骤和/或流程。It should be understood that the control device 1100 may specifically be the terminal device in the above method embodiment, or the functions of the terminal device in the above method embodiment may be integrated in the control device 1100, and the control device 1100 may be used to execute the above method embodiment and Each step and/or process corresponding to the terminal device. Optionally, the memory 1130 may include a read-only memory and a random access memory, and provides instructions and data to the control device 1100 . A portion of memory 1130 may also include non-volatile random access memory. For example, memory 1130 may also store device type information. The processor 1110 may be configured to execute instructions stored in the memory 1130, and when the processor 1110 executes the instructions, the processor 1110 may execute various steps and/or processes corresponding to the terminal device in the foregoing method embodiments.

应理解,在本申请实施例中,该处理器1110可以是中央处理单元(centralprocessing unit,CPU),该处理器1110还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present application, the processor 1110 may be a central processing unit (central processing unit, CPU), and the processor 1110 may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits ( ASIC), Field Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor executes the instructions in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, no detailed description is given here.

本申请还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序用于实现上述方法实施例中终端设备对应的方法。The present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program is used to implement the method corresponding to the terminal device in the foregoing method embodiments.

本申请还提供了一种芯片系统,该芯片系统用于支持上述方法实施例中终端设备实现本申请实施例所示的功能。The present application also provides a chip system, which is used to support the terminal device in the foregoing method embodiment to realize the functions shown in the embodiment of the present application.

本申请还提供了一种计算机程序产品,该计算机程序产品包括计算机程序(也可以称为代码,或指令),当该计算机程序在计算机上运行时,该计算机可以执行上述方法实施例所示的终端设备对应的方法。The present application also provides a computer program product, which includes a computer program (also referred to as code, or instruction). When the computer program is run on a computer, the computer can execute the method shown in the above method embodiments. The method corresponding to the terminal device.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the modules and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device, and module can refer to the corresponding process in the foregoing method embodiment, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .

以上所述,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应所述以权利要求的保护范围为准。The above is only the specific implementation of the application, but the protection scope of the embodiment of the application is not limited thereto, and any skilled person familiar with the technical field can easily think of changes within the technical scope disclosed in the embodiment of the application Or replacement, should be covered within the scope of protection of the embodiments of the present application. Therefore, the scope of protection of the embodiments of the present application should be based on the scope of protection of the claims.

Claims (10)

1.一种指纹模组的控制方法,其特征在于,应用于终端设备,所述方法包括:1. A control method for a fingerprint module, characterized in that it is applied to a terminal device, and the method comprises: 所述终端设备读取所述指纹模组所在芯片的芯片标识;The terminal device reads the chip identification of the chip where the fingerprint module is located; 若读取所述芯片标识连续失败的次数大于或等于第一预设次数,则所述终端设备对所述指纹模组进行下电操作。If the number of consecutive failures to read the chip identification is greater than or equal to the first preset number of times, the terminal device powers off the fingerprint module. 2.根据权利要求1所述的方法,其特征在于,所述终端设备读取所述指纹模组所在芯片的芯片标识,包括:2. The method according to claim 1, wherein the terminal device reads the chip identification of the chip where the fingerprint module is located, comprising: 若所述终端设备的显示屏处于亮屏状态,且所述指纹模组处于录入状态、认证状态、取消状态或者空闲状态,则所述终端设备读取所述芯片标识。If the display screen of the terminal device is in a bright screen state, and the fingerprint module is in an entry state, an authentication state, a cancellation state or an idle state, then the terminal device reads the chip identification. 3.根据权利要求1或2所述的方法,其特征在于,所述终端设备读取指纹模组所在芯片的所述芯片标识,包括:3. The method according to claim 1 or 2, wherein the terminal device reads the chip identification of the chip where the fingerprint module is located, comprising: 若所述终端设备的显示屏处于亮屏状态且所述指纹模组处于休眠状态时,则所述终端设备先唤醒所述指纹模组,再读取所述芯片标识。If the display screen of the terminal device is in a bright state and the fingerprint module is in a dormant state, the terminal device first wakes up the fingerprint module, and then reads the chip identification. 4.根据权利要求1至3中任一项所述的方法,其特征在于,所述终端设备读取所述指纹模组所在芯片的芯片标识,包括:4. The method according to any one of claims 1 to 3, wherein the terminal device reads the chip identification of the chip where the fingerprint module is located, comprising: 若所述终端设备的显示屏处于灭屏状态且所述指纹模组存储有指纹信息,则所述终端设备读取所述芯片标识。If the display screen of the terminal device is in an off-screen state and the fingerprint module stores fingerprint information, the terminal device reads the chip identification. 5.根据权利要求1至4中任一项所述的方法,其特征在于,所述终端设备读取所述指纹模组所在芯片的芯片标识,包括:5. The method according to any one of claims 1 to 4, wherein the terminal device reads the chip identification of the chip where the fingerprint module is located, comprising: 若所述终端设备的显示屏处于灭屏状态、所述指纹模组未存储有指纹信息且所述指纹模组处于空闲状态,则所述终端设备读取所述芯片标识。If the display screen of the terminal device is in an off-screen state, the fingerprint module does not store fingerprint information, and the fingerprint module is in an idle state, the terminal device reads the chip identification. 6.根据权利要求1至5中任一项所述的方法,其特征在于,所述终端设备读取所述指纹模组所在芯片的芯片标识,包括:6. The method according to any one of claims 1 to 5, wherein the terminal device reads the chip identification of the chip where the fingerprint module is located, comprising: 若所述终端设备的显示屏处于灭屏状态、所述指纹模组未存储有指纹信息且所述指纹模组处于休眠状态,则所述终端设备先唤醒所述指纹模组,再读取所述芯片标识。If the display screen of the terminal device is in the off-screen state, the fingerprint module does not store fingerprint information and the fingerprint module is in a dormant state, the terminal device first wakes up the fingerprint module, and then reads the The above chip ID. 7.根据权利要求4至6中任一项所述的方法,其特征在于,所述方法还包括:7. The method according to any one of claims 4 to 6, wherein the method further comprises: 所述终端设备对所述指纹模组进行上电操作;The terminal device performs power-on operation on the fingerprint module; 所述终端设备重新读取所述芯片标识;The terminal device re-reads the chip identification; 若读取所述芯片标识连续失败的次数大于或等于第二预设次数,则所述终端设备对所述指纹模组进行下电操作,所述第二预设次数大于或等于第一预设次数。If the number of consecutive failures to read the chip identification is greater than or equal to the second preset number of times, the terminal device will power off the fingerprint module, and the second preset number of times is greater than or equal to the first preset number of times. frequency. 8.一种指纹模组的控制装置,其特征在于,包括:处理器和存储器;8. A control device for a fingerprint module, comprising: a processor and a memory; 所述存储器存储计算机执行指令;the memory stores computer-executable instructions; 所述处理器执行所述存储器存储的计算机执行指令,使得所述控制装置执行如权利要求1至7中任一项所述的方法。The processor executes the computer-implemented instructions stored in the memory, causing the control device to perform the method according to any one of claims 1-7. 9.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的方法。9. A computer-readable storage medium, the computer-readable storage medium stores a computer program, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented . 10.一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被运行时,使得计算机执行如权利要求1至7中任一项所述的方法。10. A computer program product, characterized in that it comprises a computer program, and when the computer program is run, causes the computer to execute the method according to any one of claims 1 to 7.
CN202211423002.2A 2022-11-15 2022-11-15 Fingerprint module control method and control device Active CN116700802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211423002.2A CN116700802B (en) 2022-11-15 2022-11-15 Fingerprint module control method and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211423002.2A CN116700802B (en) 2022-11-15 2022-11-15 Fingerprint module control method and control device

Publications (2)

Publication Number Publication Date
CN116700802A true CN116700802A (en) 2023-09-05
CN116700802B CN116700802B (en) 2024-07-30

Family

ID=87843996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211423002.2A Active CN116700802B (en) 2022-11-15 2022-11-15 Fingerprint module control method and control device

Country Status (1)

Country Link
CN (1) CN116700802B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025123735A1 (en) * 2023-12-15 2025-06-19 荣耀终端股份有限公司 Wifi chip control method and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111103963A (en) * 2019-12-10 2020-05-05 惠州Tcl移动通信有限公司 Fingerprint module starting method and device, storage medium and terminal
CN111814586A (en) * 2020-06-18 2020-10-23 维沃移动通信有限公司 Fingerprint module control method, device, electronic device and readable storage medium
CN112560645A (en) * 2020-12-11 2021-03-26 维沃移动通信有限公司 State control method and device and electronic equipment
CN114168395A (en) * 2021-11-12 2022-03-11 天固信息安全系统(深圳)有限公司 Chip power-on control method, control device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111103963A (en) * 2019-12-10 2020-05-05 惠州Tcl移动通信有限公司 Fingerprint module starting method and device, storage medium and terminal
CN111814586A (en) * 2020-06-18 2020-10-23 维沃移动通信有限公司 Fingerprint module control method, device, electronic device and readable storage medium
CN112560645A (en) * 2020-12-11 2021-03-26 维沃移动通信有限公司 State control method and device and electronic equipment
CN114168395A (en) * 2021-11-12 2022-03-11 天固信息安全系统(深圳)有限公司 Chip power-on control method, control device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025123735A1 (en) * 2023-12-15 2025-06-19 荣耀终端股份有限公司 Wifi chip control method and electronic device

Also Published As

Publication number Publication date
CN116700802B (en) 2024-07-30

Similar Documents

Publication Publication Date Title
US12003584B2 (en) Mobile computing device with data cognition software
CN112799728B (en) Terminal control method, terminal and computer readable medium
CN105912091B (en) Electronic device and method for reducing power consumption thereof
CN111814885B (en) Method, system, device and medium for managing image frames
CN114995629B (en) Vibration method and vibration device
CN103703454A (en) On-demand tab rehydration
CN113689574A (en) Digital twinning processing method, apparatus and machine readable medium
US12314148B2 (en) Data storage method using internal and external source tracing regions of a magnetic disk and apparatus, and electronic device and readable storage medium
CN104731593A (en) Information processing method and electronic equipment
CN116700802B (en) Fingerprint module control method and control device
CN105677149A (en) Electronic device and display handling method
CN104516472A (en) Processor and data processing method
CN117130834B (en) Method for preventing magnetic field from interfering with operation of electronic equipment and electronic equipment
CN117130824B (en) A method for handling abnormality, electronic equipment and storage medium
CN108132803B (en) Timing keep-alive and awakening method, system, terminal and medium based on mobile terminal
CN115705231B (en) Screen display method and terminal equipment
CN116501399A (en) Awakening method and electronic equipment
KR20200058175A (en) Method for outputting content in electronic device, electronic device and storage medium
CN117793237A (en) Window display method and related device
CN103853312A (en) Static frame display from memory associated with processor of data processing device
US20120062467A1 (en) Electronic system, method for controlling mobile apparatus, reading apparatus and method for contorlling thereof
CN114567694A (en) Alarm clock reminding method and device
CN118100461B (en) Method, electronic device, chip, system and medium for controlling charging of handwriting pen
CN119003065A (en) Display method, electronic equipment and system
CN117061658B (en) Sleep time identification method, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address