Method and apparatus for controlling serial peripheral interface of fingerprint sensor, and mobile terminal
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorsQiang Zhang, Lizhong Wang, Haitao Zhou, Kui Jiang, Wei He
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a method and an apparatus for controlling a serial peripheral interface of a fingerprint sensor, and a mobile terminal. The method includes: detecting a fingerprint signal via a fingerprint sensor; and when the fingerprint signal is detected, opening the serial peripheral interface of the fingerprint sensor.
Claims12
A method for controlling a serial peripheral interface of a fingerprint sensor, comprising:
- detecting change of an induced capacitance value via the fingerprint sensor, and determining a change event of the induced capacitance value as a signal, or detecting brightness change of reflected light via the fingerprint sensor, and determining a brightness change event of the reflected light as the signal;
- in response to detecting the signal via the fingerprint sensor, sending an interrupt request via the fingerprint sensor to a processor over an interrupt request line, wherein the interrupt request is a request for activating the serial peripheral interface of the fingerprint sensor;
- after the processor has received the interrupt request, responding to the interrupt request, suspending an execution of a currently running program and turning to process the interrupt request, via the processor, wherein a master-slave port of the serial peripheral interface is connected to the processor, and an assistant-slave port of the serial peripheral interface is connected to the fingerprint sensor, such that only the processor can activate the serial peripheral interface of the fingerprint sensor;
- activating the serial peripheral interface of the fingerprint sensor via the processor;
- and
- continuing to execute the suspended program via the processor.
An apparatus for controlling a serial peripheral interface of a fingerprint sensor, comprising:
- a non-transitory computer-readable medium comprising computer-executable instructions stored thereon;
- and
- an instruction execution system configured by the instructions to implement:
- a signal detecting module, comprising:
- a capacitance value change detecting unit, configured to detect change of an induced capacitance value via the fingerprint sensor, and to determine a change event of the induced capacitance value as a signal, or detect brightness change of reflected light via the fingerprint sensor, and determine a brightness change event of the reflected light as the signal, wherein the signal detecting module is configured to, in response to detecting the signal via the fingerprint sensor, send an interrupt request via the fingerprint sensor to a processor over an interrupt request line, wherein the interrupt request is a request for activating the serial peripheral interface of the fingerprint sensor;
- and
- an interface activating module, configured to, after the processor has received the interrupt request, respond to the interrupt request, suspend an execution of a currently running program and turn to process the interrupt request, via the processor, wherein a master-slave port of the serial peripheral interface is connected to the processor, and an assistant-slave port of the serial peripheral interface is connected to the fingerprint sensor, such that only the processor can activate the serial peripheral interface of the fingerprint sensor;
- activate the serial peripheral interface of the fingerprint sensor when the signal is detected;
- and continue to execute the suspended program via the processor.
A mobile terminal, comprising a memory, a processor, a fingerprint sensor and one or more programs, wherein the one or more programs are stored in the memory and are configured to be performed by the processor, and the one or more programs comprise instructions configured to perform operations of:
- detecting change of an induced capacitance value via the fingerprint sensor, and determining a change event of the induced capacitance value as a signal, or detecting brightness change of reflected light via the fingerprint sensor, and determining a brightness change event of the reflected light as the signal;
- in response to detecting the signal via the fingerprint sensor, sending an interrupt request via the fingerprint sensor to a processor over an interrupt request line, wherein the interrupt request is a request for activating the serial peripheral interface of the fingerprint sensor;
- after the processor has received the interrupt request, responding to the interrupt request, suspending an execution of a currently running program and turning to process the interrupt request, via the processor, wherein a master-slave port of the serial peripheral interface is connected to the processor, and an assistant-slave port of the serial peripheral interface is connected to the fingerprint sensor, such that only the processor can activate the serial peripheral interface of the fingerprint sensor;
- activating the serial peripheral interface of the fingerprint sensor via the processor;
- and
- continuing to execute the suspended program via the processor.
Dependencies are inferred from the claim text.