State control method, device and electronic device
By detecting the working status of the side fingerprint module and putting it in a dormant state in abnormal situations, the problem of easy damage and heat generation of the side fingerprint module is solved, improving security and user experience.
Patent Information
- Application Number
- CN202011447738.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-11
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2040-12-11
AI Technical Summary
In electronic devices that use side fingerprint modules to stack vertically with power buttons, side fingerprint modules are prone to damage and heat due to frequent pressing, resulting in safety hazards.
By obtaining the module information of the fingerprint module, determine its working state, and put it in a dormant state when an abnormal state is detected to avoid damage and heat generation.
It improves the safety of the use of fingerprint modules, avoids safety hazards caused by damage and heat generation, and enhances the overall safety and user experience of electronic devices.
Smart Images

Figure CN112560645B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and specifically relates to a state control method, device and electronic equipment. Background Art
[0002] With the popularity of full-screen phones, capacitive fingerprints tend to develop towards side fingerprints. The side fingerprint is stacked vertically with the power button, which can adapt to the unlocking habits of traditional users.
[0003] Currently, when using an electronic device with a side fingerprint module stacked vertically with a power button, the side fingerprint will be pressed during the power-on, restart, unlock or screen-off actions. Therefore, the side fingerprint module is easily damaged and heated, thus causing safety accidents. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a state control method, which can improve the safety of using a side fingerprint module when an electronic device uses a side fingerprint.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a state control method, the method comprising:
[0007] Get the module information corresponding to the fingerprint module;
[0008] Determining the working state of the fingerprint module according to the module information;
[0009] When it is determined according to the working state that the fingerprint module is in an abnormal state, the fingerprint module is controlled to be in a dormant state.
[0010] In a second aspect, an embodiment of the present application provides a state control device, the device comprising:
[0011] An acquisition module is used to obtain module information corresponding to the fingerprint module;
[0012] A determination module, used to determine the working state of the fingerprint module according to the module information;
[0013] The control module is used to control the fingerprint module to be in a dormant state when it is determined that the fingerprint module is in an abnormal state according to the working state.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the state control method described in the first aspect.
[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the state control method as described in the first aspect is implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the state control method as described in the first aspect.
[0017] In the embodiment of the present application, the working state of the fingerprint module is determined by obtaining the module information corresponding to the fingerprint module, and when the fingerprint module is determined to be in an abnormal state according to the working state, the fingerprint module is controlled to be in a dormant state. The embodiment of the present application can improve the use safety of the fingerprint module by controlling the fingerprint module to be in a dormant state when an abnormality occurs in the fingerprint module, avoid the potential safety hazard caused by damage and heating of the fingerprint module, further improve the safety of the electronic device, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flow chart showing a state control method provided by an embodiment of the present application;
[0019] Figure 2 A flowchart showing another state control method provided by an embodiment of the present application;
[0020] Figure 3 A structural block diagram showing a state control device provided in an embodiment of the present application;
[0021] Figure 4 A structural block diagram showing an electronic device provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram showing the hardware structure of an electronic device provided by an embodiment of the present application for implementing each embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0025] The state control method and electronic device provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0026] See also Figure 1 , an embodiment of the present application provides a state control method, such as Figure 1 As shown, the state control method includes:
[0027] Step 101, obtaining module information corresponding to the fingerprint module.
[0028] In the embodiment of the present application, the module information refers to the relevant parameter information corresponding to the fingerprint module, which may include at least one of the power-on voltage value, temperature value, power consumption value and fingerprint communication information corresponding to the fingerprint module.
[0029] Among them, the power-on voltage value refers to the voltage value corresponding to the fingerprint module after power-on, the temperature value can represent the temperature of the fingerprint module, the power consumption value refers to the current value used by the fingerprint module in the current working state, and the fingerprint communication information can include any one of the communication response information, the number of bad pixels information and the fingerprint pattern information. The communication response information can represent whether the fingerprint module can perform communication response normally, the number of bad pixels information refers to the number of bad pixels corresponding to the fingerprint module, and the fingerprint pattern information refers to the pattern data information related to the user's fingerprint detected by the fingerprint module.
[0030] When it is necessary to detect whether the fingerprint module is damaged, the module information of the fingerprint module can be obtained.
[0031] After the module information corresponding to the fingerprint module is obtained, step 102 is executed.
[0032] Step 102: Determine the working status of the fingerprint module according to the module information.
[0033] The working state of the fingerprint module may include an abnormal state and a normal state.
[0034] After obtaining the module information corresponding to the fingerprint module, the working state of the fingerprint module can be determined according to the module information. For example, when the module information is a power-on voltage value or a temperature value, the working state of the fingerprint module can be determined by the power-on voltage value or the temperature value. For example, when the power-on voltage value is outside the preset voltage threshold range, or the temperature value is outside the preset temperature threshold range, the electronic device can determine that the fingerprint module is in an abnormal state. For example, when the module information is a power consumption value, the working state of the fingerprint module can be determined by the power consumption value. For example, when the power consumption value is outside the preset power consumption threshold range, it can be determined that the fingerprint module is in an abnormal state. For example, when the module information is fingerprint communication information, the fingerprint communication information includes any one of communication response information, bad pixel quantity information and fingerprint pattern information. For example, when the communication response information is abnormal response information, it can be determined that the fingerprint module is in an abnormal state, or, when the bad pixel quantity information is less than the preset bad pixel quantity threshold, it can be determined that the fingerprint module is in an abnormal state, or, when it is determined according to the fingerprint pattern information that there is a crack in the fingerprint module, it can be determined that the fingerprint module is in an abnormal state.
[0035] After the working state of the fingerprint module is determined according to the module information, step 103 is executed.
[0036] Step 103: When it is determined that the fingerprint module is in an abnormal state according to the working state, the fingerprint module is controlled to be in a dormant state.
[0037] In the present application, when it is determined that the fingerprint module is in an abnormal state, it means that the fingerprint module is abnormal. At this time, the fingerprint module can be controlled to be in a dormant state to avoid heating of the fingerprint module, thereby improving the safety of the fingerprint module.
[0038] The state control method provided in the embodiment of the present application can obtain the module information corresponding to the fingerprint module, determine the working state of the fingerprint module according to the module information, and control the fingerprint module to be in a dormant state when the fingerprint module is determined to be in an abnormal state according to the working state. The embodiment of the present application can improve the use safety of the fingerprint module by controlling the fingerprint module to be in a dormant state when an abnormality occurs in the fingerprint module, avoid the potential safety hazards caused by damage and heating of the fingerprint module, further improve the safety of the electronic device, and improve the user experience.
[0039] See also Figure 2 Another embodiment of the present application provides a state control method, such as Figure 2 As shown, the state control method includes:
[0040] Step 201, obtaining a power-on voltage value or a temperature value corresponding to the fingerprint module.
[0041] Among them, the power-on voltage value refers to the voltage value corresponding to the fingerprint module after power is turned on, and the temperature value can represent the temperature of the fingerprint module.
[0042] In the present application, the fingerprint module may include a voltage detection circuit, a current detection circuit and a temperature detection circuit of a fingerprint power supply, wherein specifically it may include: a voltage and current detection circuit, a temperature detection circuit of the fingerprint module and a current limiting circuit of the fingerprint module power supply, etc. The voltage detection circuit can detect the power-on voltage value of the fingerprint module, the current detection circuit can detect the power consumption value of the fingerprint module, and the temperature detection circuit can detect the temperature value of the fingerprint module.
[0043] After obtaining the power-on voltage value or temperature value corresponding to the fingerprint module, step 202 or step 203 is executed.
[0044] Step 202: When the power-on voltage value is outside the preset voltage threshold range, or the temperature value is outside the preset temperature threshold range, it is determined that the fingerprint module is in an abnormal state.
[0045] In this embodiment, the voltage threshold range refers to the range of power-on voltage of the fingerprint module preset by the business personnel for determining whether the fingerprint module is damaged. The temperature threshold range refers to the range of temperature of the fingerprint module preset by the business personnel for determining whether the fingerprint module is damaged.
[0046] The voltage threshold range can be [-0.1V, +0.1V], and the temperature threshold range can be greater than or equal to 2 degrees Celsius. The embodiment of the present application only illustrates the above two threshold ranges. The specific threshold range setting values can be adjusted according to the actual application scenario, and the embodiment of the present application does not limit this.
[0047] When the power-on voltage value is not within the preset voltage threshold range, or the temperature value is not within the preset temperature threshold range, it indicates that the fingerprint module is in an abnormal state. At this time, the fingerprint module needs to be controlled to be in a dormant state to prevent heating safety accidents.
[0048] When the power-on voltage value is outside the preset voltage threshold range, or the temperature value is outside the preset temperature threshold range, it can be determined that the fingerprint module is in an abnormal state, and then step 209 is executed.
[0049] Step 203, when the power-on voltage value is within the preset voltage threshold range and the temperature value is within the preset temperature threshold range, the power consumption value corresponding to the fingerprint module is obtained.
[0050] The power consumption value refers to the current value used by the fingerprint module in the current working state.
[0051] In the present application, when the power-on voltage value is within a preset voltage threshold range and the temperature value is within a preset temperature threshold range, the power consumption value corresponding to the fingerprint module can be further obtained.
[0052] Specifically, the power consumption value corresponding to the fingerprint module can be detected by a current detection circuit; or the power consumption value corresponding to the fingerprint module can be obtained by a current limiting circuit.
[0053] When the power-on voltage value is within the preset voltage threshold range and the temperature value is within the preset temperature threshold range, after obtaining the power consumption value corresponding to the fingerprint module, step 204 or step 205 is executed.
[0054] Step 204 : when the power consumption value is outside the preset power consumption threshold range, it is determined that the fingerprint module is in an abnormal state.
[0055] The current detection circuit is used to detect whether the power consumption value of the fingerprint module meets the preset power consumption threshold range (wherein the preset power consumption threshold range may be greater than or equal to 10 mA); or by setting the preset power consumption threshold of the current limiting circuit (wherein the preset power consumption threshold may be greater than or equal to 10 mA), it is possible to detect whether the power consumption value of the fingerprint module at this time triggers the protection action parameter of the current limiting circuit. When the power consumption value is outside the preset power consumption threshold range or triggers the protection action parameter, it indicates that the fingerprint module is in an abnormal state. At this time, the fingerprint module can be controlled to be in a dormant state to prevent a heating safety accident.
[0056] When the power consumption value is outside the preset power consumption threshold range, after determining that the fingerprint module is in an abnormal state, step 209 is executed.
[0057] Step 205 , when the power consumption value is within the preset power consumption threshold range, the fingerprint communication information corresponding to the fingerprint module is obtained.
[0058] The fingerprint communication information includes any one of communication response information, bad pixel quantity information and fingerprint pattern information.
[0059] The communication response information can indicate whether the fingerprint module can perform communication response normally. The number of bad pixels refers to the number of bad pixels corresponding to the fingerprint module. The fingerprint pattern information refers to the pattern data information related to the user's fingerprint detected by the fingerprint module.
[0060] When the power consumption value is within the preset power consumption threshold range, the software communication detection can be started to obtain the fingerprint communication information corresponding to the fingerprint module through the fingerprint communication signal.
[0061] When the power consumption value is within the preset power consumption threshold range, after the fingerprint communication information corresponding to the fingerprint module is obtained, step 206, step 207 or step 208 is executed.
[0062] Step 206: When the communication response information is abnormal response information, it is determined that the fingerprint module is in an abnormal state.
[0063] When the communication response information is abnormal response information, it means that the communication response of the fingerprint module fails, and the fingerprint of the fingerprint module is invalid, that is, it can be determined that the fingerprint module is in an abnormal state.
[0064] When the communication response information is abnormal response information, after determining that the fingerprint module is in an abnormal state, step 209 is executed.
[0065] Step 207: When the bad pixel quantity information is less than a preset bad pixel quantity threshold, it is determined that the fingerprint module is in an abnormal state.
[0066] The preset bad pixel number threshold refers to a preset threshold of the number of bad pixels in the pressed fingerprint for determining whether the fingerprint module is damaged. The preset bad pixel number threshold may be 95%, which is not specifically limited in the embodiment of the present application.
[0067] The bad pixel quantity information includes the number of bad pixels of the fingerprint. When the communication response information is normal response information, when the number of bad pixels of the fingerprint is less than the preset bad pixel quantity threshold, it can be determined that the fingerprint module has failed, that is, it can be determined that the fingerprint module is in an abnormal state. For example, when the number of bad pixels in the acquired fingerprint is 91%, and the preset bad pixel quantity threshold is 95%, it can be determined that the fingerprint module is in an abnormal state.
[0068] When the bad pixel quantity information is less than the preset bad pixel quantity threshold, after determining that the fingerprint module is in an abnormal state, step 209 is executed.
[0069] Step 208: When it is determined according to the fingerprint pattern information that the fingerprint module has cracks, it is determined that the fingerprint module is in an abnormal state.
[0070] When the number of bad pixels is greater than or equal to the preset bad pixel number threshold, a comparison is performed based on the fingerprint pattern information and the pre-stored fingerprint information data; when several other fine lines other than the fingerprint pattern information and the pre-stored fingerprint information data are detected at least twice in a row, it can be determined that cracks have appeared in the fingerprint module, which may scratch the user's finger, and it can be determined that the fingerprint module is in an abnormal state. At this time, the fingerprint module can be controlled to be in a sleep state, and the fingerprint module can be turned off to avoid overheating.
[0071] When it is determined according to the fingerprint pattern information that the fingerprint module has cracks, after it is determined that the fingerprint module is in an abnormal state, step 209 is executed.
[0072] Step 209: When it is determined that the fingerprint module is in an abnormal state according to the working state, the fingerprint module is controlled to be in a dormant state.
[0073] When it is determined that the fingerprint module is in an abnormal state, it means that there is a problem with the fingerprint module. At this time, the fingerprint module can be controlled to be in a dormant state to avoid heating, thereby improving the safety of the fingerprint module.
[0074] When it is determined according to the working state that the fingerprint module is in an abnormal state, after the fingerprint module is controlled to be in a dormant state, step 210 is executed.
[0075] Step 210, generating and sending abnormal reminder information corresponding to the fingerprint module.
[0076] After controlling the fingerprint module to be in a dormant state, abnormal reminder information corresponding to the fingerprint module can also be generated and sent to remind the user to repair the fingerprint module in time, which can improve the safety of the fingerprint module.
[0077] Optionally, it may include a wireless access point (AP) module, a power module, a detection circuit, a temperature detection unit and a fingerprint module.
[0078] Among them, the power module can mainly supply power to the fingerprint module, and it contains a current limiting circuit inside, which mainly limits the working current of the fingerprint module. Specifically, the current limiting circuit may include but is not limited to an optional overcurrent protection (OCP) protection circuit, a voltage drop detection circuit, etc. Among them, the current limiting circuit is a hardware current limiting measure that can protect the power consumption value of the fingerprint module from exceeding the preset power consumption threshold. If the preset power consumption threshold is exceeded, it will automatically disconnect and report to the AP module.
[0079] The detection circuit can mainly detect the voltage value and power consumption value of the fingerprint module. Specifically, it can include but is not limited to high-precision current detection resistors, metal-oxide-semiconductor field effect transistors (Metal Oxide Semiconductor, MOS) tubes, current detection integrated circuits (Integrated Circuit, IC), etc. When the AP module detects that the voltage value or power consumption value is abnormal, it can disconnect the power supply of the fingerprint module and control the fingerprint module to be in a sleep state.
[0080] The AP module can monitor the power-on voltage value, temperature value, power consumption value and fingerprint communication information, and determine the working status of the fingerprint module based on the above information.
[0081] The temperature detection unit mainly detects the temperature value of the fingerprint module. The form of the unit may include but is not limited to negative temperature coefficient thermistor (NTC) resistor, positive temperature coefficient thermistor (PTC) resistor, infrared temperature sensor or thermal resistance wire, etc. It can detect the temperature value of the fingerprint module in real time and feed it back to the AP module. When the temperature value exceeds the preset temperature threshold range, the AP module can disconnect the power supply of the fingerprint module and control the fingerprint module to be in a dormant state. The fingerprint module is mainly used to detect user fingerprints.
[0082] The state control method provided in the embodiment of the present application, in addition to having the beneficial effects of the above-mentioned method embodiments, can also detect whether the fingerprint module is damaged in combination with the power-on voltage value, temperature value, fingerprint communication information, etc. of the fingerprint module, which can further improve the accuracy of fingerprint module damage detection and further avoid the problem of harm to users caused by fingerprint module damage.
[0083] It should be noted that the state control method provided in the embodiment of the present application can be executed by a state control device or a control module in the state control device for executing the method for loading state control. In the embodiment of the present application, the state control method provided in the embodiment of the present application is described by taking the method for the state control device to execute the loading state control as an example.
[0084] Figure 3 A structural block diagram of a state control device provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the state control device 300 includes:
[0085] The acquisition module 301 is used to acquire the module information corresponding to the fingerprint module;
[0086] A determination module 302, used to determine the working state of the fingerprint module according to the module information;
[0087] The control module 303 is used to control the fingerprint module to be in a dormant state when it is determined that the fingerprint module is in an abnormal state according to the working state.
[0088] Optionally, the acquisition module 301 includes:
[0089] The first acquisition submodule 3011 is used to acquire the power-on voltage value or temperature value corresponding to the fingerprint module;
[0090] The determination module 302 includes:
[0091] The first determination submodule 3021 is used to determine that the fingerprint module is in an abnormal state when the power-on voltage value is outside the preset voltage threshold range or the temperature value is outside the preset temperature threshold range.
[0092] Optionally, the acquisition module 301 includes:
[0093] The second acquisition submodule 3012 is used to acquire the power consumption value corresponding to the fingerprint module when the power-on voltage value is within the preset voltage threshold range and the temperature value is within the preset temperature threshold range;
[0094] The determination module 302 includes:
[0095] The second determining submodule 3022 is configured to determine that the fingerprint module is in an abnormal state when the power consumption value is outside a preset power consumption threshold range.
[0096] Optionally, the acquisition module 301 includes:
[0097] The third acquisition submodule 3013 is used to acquire fingerprint communication information corresponding to the fingerprint module when the power consumption value is within the preset power consumption threshold range; the fingerprint communication information includes any one of communication response information, bad pixel quantity information and fingerprint pattern information;
[0098] The determination module 302 includes:
[0099] The third determination submodule 3023 is used to determine that the fingerprint module is in an abnormal state when the communication response information is abnormal response information; or
[0100] The fourth determination submodule 3024 is configured to determine that the fingerprint module is in an abnormal state when the bad pixel quantity information is less than a preset bad pixel quantity threshold; or
[0101] The fifth determining submodule 3025 is used to determine that the fingerprint module is in an abnormal state when it is determined according to the fingerprint pattern information that the fingerprint module has cracks.
[0102] Optionally, the apparatus 300 further includes:
[0103] The generating module 304 is used to generate and send abnormal reminder information corresponding to the fingerprint module.
[0104] The state control device provided in the embodiment of the present application can obtain the module information corresponding to the fingerprint module through the acquisition module, and then determine the working state of the fingerprint module according to the module information through the determination module, and finally control the fingerprint module to be in a dormant state through the control module when the fingerprint module is determined to be in an abnormal state according to the working state. The embodiment of the present application can improve the use safety of the fingerprint module by controlling the fingerprint module to be in a dormant state when an abnormality occurs in the fingerprint module, avoid the potential safety hazards caused by damage and heating of the fingerprint module, further improve the safety of the electronic device, and improve the user experience.
[0105] The state control device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0106] The state control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0107] The state control device provided in the embodiment of the present application can achieve Figure 1 to Figure 2 In order to avoid repetition, the various processes implemented by the state control device in the method embodiment will not be described here.
[0108] Optional, such as Figure 4 As shown, an embodiment of the present application also provides an electronic device 400, including a processor 401, a memory 402, and a program or instruction stored in the memory 402 and executable on the processor 401. When the program or instruction is executed by the processor 401, each process of the above-mentioned state control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0109] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0110] picture 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0111] The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510.
[0112] Those skilled in the art will appreciate that the electronic device 500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 510 through a power management system, so that the power management system can manage charging, discharging, power consumption, and other functions. 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0113] The processor 510 is used to obtain module information corresponding to the fingerprint module; determine the working state of the fingerprint module according to the module information; and control the fingerprint module to be in a dormant state when the fingerprint module is determined to be in an abnormal state according to the working state.
[0114] The state control method provided in the embodiment of the present application can enable the electronic device to obtain the module information corresponding to the fingerprint module, determine the working state of the fingerprint module according to the module information, and control the fingerprint module to be in a dormant state when the fingerprint module is determined to be in an abnormal state according to the working state. The embodiment of the present application can improve the use safety of the fingerprint module by controlling the fingerprint module to be in a dormant state when an abnormality occurs in the fingerprint module, avoid the potential safety hazard caused by damage and heating of the fingerprint module, further improve the safety of the electronic device, and improve the user experience.
[0115] The processor 510 is further used to obtain a power-on voltage value or a temperature value corresponding to the fingerprint module;
[0116] When the power-on voltage value is outside the preset voltage threshold range, or the temperature value is outside the preset temperature threshold range, it is determined that the fingerprint module is in an abnormal state.
[0117] When the power-on voltage value is within a preset voltage threshold range and the temperature value is within a preset temperature threshold range, obtaining the power consumption value corresponding to the fingerprint module;
[0118] When the power consumption value is outside the preset power consumption threshold range, it is determined that the fingerprint module is in an abnormal state.
[0119] When the power consumption value is within a preset power consumption threshold range, fingerprint communication information corresponding to the fingerprint module is obtained; the fingerprint communication information includes any one of communication response information, bad pixel quantity information and fingerprint pattern information;
[0120] When the communication response information is abnormal response information, it is determined that the fingerprint module is in an abnormal state; or
[0121] When the number of bad pixels is less than a preset bad pixel number threshold, it is determined that the fingerprint module is in an abnormal state; or
[0122] When it is determined according to the fingerprint pattern information that there is a crack in the fingerprint module, it is determined that the fingerprint module is in an abnormal state.
[0123] Generate and send abnormal reminder information corresponding to the fingerprint module.
[0124] It should be understood that in the embodiment of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch controller. Other input devices 5072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 509 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 510 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 510.
[0125] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned state control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0126] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0127] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned state control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0128] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0129] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0130] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0131] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A state control method, characterized in that: The method comprises: Get the module information corresponding to the fingerprint module; Determining the working state of the fingerprint module according to the module information; When it is determined according to the working state that the fingerprint module is in an abnormal state, controlling the fingerprint module to be in a dormant state; The obtaining of module information corresponding to the fingerprint module includes: Obtaining the power-on voltage value and temperature value corresponding to the fingerprint module; Determining the working state of the fingerprint module according to the module information includes: When the power-on voltage value is outside the preset voltage threshold range, determining that the fingerprint module is in an abnormal state; The obtaining of module information corresponding to the fingerprint module also includes: When the power-on voltage value is within a preset voltage threshold range, and the temperature value is within a preset temperature threshold range, obtaining a power consumption value corresponding to the fingerprint module; When the power consumption value is within a preset power consumption threshold range, acquiring fingerprint communication information corresponding to the fingerprint module; Determining the working state of the fingerprint module according to the module information includes: When the fingerprint communication information includes fingerprint pattern information, and it is determined according to the fingerprint pattern information that the fingerprint module has cracks, it is determined that the fingerprint module is in an abnormal state.
2. The method according to claim 1, characterized in that Determining the working state of the fingerprint module according to the module information includes: When the power consumption value is outside the preset power consumption threshold range, it is determined that the fingerprint module is in an abnormal state.
3. The method according to claim 2, characterized in that The fingerprint communication information also includes any one of communication response information and bad pixel quantity information; Determining the working state of the fingerprint module according to the module information includes: In a case where the fingerprint communication information includes communication response information, and the communication response information is abnormal response information, determining that the fingerprint module is in an abnormal state; or When the fingerprint communication information includes bad pixel quantity information, and the bad pixel quantity information is less than a preset bad pixel quantity threshold, it is determined that the fingerprint module is in an abnormal state.
4. The method according to claim 1, characterized in that: After controlling the fingerprint module to be in a dormant state, the method further includes: Generate and send abnormal reminder information corresponding to the fingerprint module.
5. A state control device, characterized in that: The device comprises: An acquisition module is used to obtain module information corresponding to the fingerprint module; A determination module, used to determine the working state of the fingerprint module according to the module information; A control module, configured to control the fingerprint module to be in a dormant state when it is determined that the fingerprint module is in an abnormal state according to the working state; The acquisition module comprises: A first acquisition submodule is used to acquire a power-on voltage value and a temperature value corresponding to the fingerprint module; The determination module comprises: A first determination submodule, configured to determine that the fingerprint module is in an abnormal state when the power-on voltage value is outside a preset voltage threshold range; The acquisition module comprises: A second acquisition submodule, configured to acquire a power consumption value corresponding to the fingerprint module when the power-on voltage value is within a preset voltage threshold range and the temperature value is within a preset temperature threshold range; A third acquisition submodule, configured to acquire fingerprint communication information corresponding to the fingerprint module when the power consumption value is within a preset power consumption threshold range; The determination module comprises: The fifth determining submodule is used to determine that the fingerprint module is in an abnormal state when the fingerprint communication information includes fingerprint pattern information and it is determined according to the fingerprint pattern information that the fingerprint module has cracks.
6. The device according to claim 5, characterized in that The determination module comprises: The second determining submodule is used to determine that the fingerprint module is in an abnormal state when the power consumption value is outside a preset power consumption threshold range.
7. The device according to claim 6, characterized in that The acquisition module comprises: The determination module comprises: A third determination submodule is configured to determine that the fingerprint module is in an abnormal state when the fingerprint communication information includes communication response information and the communication response information is abnormal response information; or The fourth determination submodule is used to determine that the fingerprint module is in an abnormal state when the fingerprint communication information includes bad pixel quantity information and the bad pixel quantity information is less than a preset bad pixel quantity threshold.
8. The device according to claim 5, characterized in that The device also includes: The generation module is used to generate and send abnormal reminder information corresponding to the fingerprint module.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the state control method according to any one of claims 1 to 4.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the state control method according to any one of claims 1 to 4 are implemented.
