CN115994346A - Fingerprint application program loading method and device, electronic equipment and medium - Google Patents

Fingerprint application program loading method and device, electronic equipment and medium Download PDF

Info

Publication number
CN115994346A
CN115994346A CN202310156990.7A CN202310156990A CN115994346A CN 115994346 A CN115994346 A CN 115994346A CN 202310156990 A CN202310156990 A CN 202310156990A CN 115994346 A CN115994346 A CN 115994346A
Authority
CN
China
Prior art keywords
fingerprint
chip
application program
identifier
preset
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.)
Pending
Application number
CN202310156990.7A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310156990.7A priority Critical patent/CN115994346A/en
Publication of CN115994346A publication Critical patent/CN115994346A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a fingerprint application program loading method, a fingerprint application program loading device, electronic equipment and a fingerprint application program medium, and belongs to the technical field of electronic equipment. The method comprises the following steps: reading a chip identifier of a fingerprint chip in the electronic equipment through a fingerprint chip identification application program; under the condition that the chip identifier is matched with a target chip identifier in N preset chip identifiers, loading a fingerprint application program corresponding to the fingerprint chip, wherein the fingerprint application program is used for realizing the fingerprint detection function of the fingerprint chip, and N is an integer greater than or equal to 2.

Description

Fingerprint application program loading method and device, electronic equipment and medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a fingerprint application program loading method and device, electronic equipment and a medium.
Background
Currently, electronic devices may support different types of fingerprint chips. But different types of fingerprint chips have different serial peripheral interface (Serial Peripheral Interface, SPI) communication protocols. In order to improve compatibility of fingerprint driving, different types of fingerprint chips can be distinguished through a plurality of identification pins on hardware.
However, according to the above method, since a plurality of identification pins are required to be added to the hardware to improve the compatibility of the fingerprint driver, the hardware cost for improving the compatibility of the fingerprint driver is high.
Disclosure of Invention
The embodiment of the application aims to provide a fingerprint application program loading method, a fingerprint application program loading device, electronic equipment and a fingerprint application program medium, which can solve the problem of higher hardware cost for improving fingerprint drive compatibility.
In a first aspect, an embodiment of the present application provides a fingerprint application program loading method, where the method includes: reading a chip identifier of a fingerprint chip in the electronic equipment through a fingerprint chip identification application program; under the condition that the chip identifier is matched with a target chip identifier in N preset chip identifiers, loading a fingerprint application program corresponding to the fingerprint chip, wherein the fingerprint application program is used for realizing the fingerprint detection function of the fingerprint chip, and N is an integer greater than or equal to 2.
In a second aspect, an embodiment of the present application provides a fingerprint application program loading device, where the device includes a reading module and a loading module; the reading module is used for reading the chip identification of the fingerprint chip in the device through the fingerprint chip identification application program; the loading module is used for loading a fingerprint application program corresponding to the fingerprint chip under the condition that the chip identifier read by the reading module is matched with the target chip identifier in the N preset chip identifiers, wherein N is an integer greater than or equal to 2, and the fingerprint application program is used for realizing the fingerprint detection function of the fingerprint chip.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the application program can be identified through the fingerprint chip, and the chip identification of the fingerprint chip in the electronic equipment can be read; and loading a fingerprint application program corresponding to the fingerprint chip under the condition that the chip identifier is matched with a target chip identifier in N preset chip identifiers, wherein N is an integer greater than or equal to 2, and the fingerprint application program is used for realizing the fingerprint detection function of the fingerprint chip. According to the scheme, the fingerprint application program corresponding to the fingerprint chip can be loaded under the condition that the chip identifier of the fingerprint chip read by the fingerprint chip identification application program is matched with the target chip identifier in the N preset chip identifiers, so that the fingerprint detection function of the fingerprint chip is realized; therefore, the compatibility of fingerprint driving can be improved only by software, and the hardware cost for improving the compatibility of fingerprint driving can be reduced without additionally arranging an identification pin on hardware.
Drawings
FIG. 1 is a flowchart of a fingerprint application loading method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a fingerprint application loading apparatus provided in an embodiment of the present application;
fig. 3 is a schematic diagram of an electronic device provided in an embodiment of the present application;
fig. 4 is a hardware schematic of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The fingerprint application program loading method, device, electronic equipment and medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Currently, with the continuous richness of functions of mobile terminals, the types of peripheral devices of mobile terminals are increasing, and as an example, fingerprint devices are various fingerprint devices (such as capacitive fingerprint devices, off-screen optical fingerprint devices, off-screen ultrasonic fingerprint devices, etc.). Fingerprint devices typically communicate using an SPI bus that includes a master input slave output (i.e., MISO), a master output slave input (i.e., MOSI), a clock line (i.e., CLK), and a chip select line (i.e., CS). SPI output of the host computer end and the fingerprint chip end is initiated by the host computer end, CLK clock is output, and then data reading and writing between the host computer and the slave computer can be carried out.
Because of the current general trend of limitation of chip end, when purchasing fingerprint chips, only fingerprint chips of a single manufacturer are usually not purchased, but fingerprint chips of two or more manufacturers (i.e. fingerprint chips of different types) are purchased, so as to reduce cost, supply risk and the like. In order to improve fingerprint drive compatibility, fingerprint chips of different manufacturers can be distinguished through a plurality of identification pins on hardware. However, while this may improve fingerprint drive compatibility, it adds additional hardware circuit costs. In the large environment of reducing the cost of the mobile terminal, the method can improve the compatibility of fingerprint driving due to the fact that a plurality of identification pins are additionally arranged on hardware, so that the hardware cost for improving the compatibility of fingerprint driving is high.
In order to solve the above problem, in the fingerprint application program loading method provided in the embodiment of the present application, an application program may be identified by a fingerprint chip, and a chip identifier of the fingerprint chip in the electronic device may be read; and loading a fingerprint application program corresponding to the fingerprint chip under the condition that the chip identifier is matched with a target chip identifier in N preset chip identifiers, wherein N is an integer greater than or equal to 2, and the fingerprint application program is used for realizing the fingerprint detection function of the fingerprint chip. According to the scheme, the fingerprint application program corresponding to the fingerprint chip can be loaded under the condition that the chip identifier of the fingerprint chip read by the fingerprint chip identification application program is matched with the target chip identifier in the N preset chip identifiers, so that the fingerprint detection function of the fingerprint chip is realized; therefore, the compatibility of fingerprint driving can be improved only by software, and the hardware cost for improving the compatibility of fingerprint driving can be reduced without additionally arranging an identification pin on hardware.
It can be seen that the fingerprint application program loading method provided by the embodiment of the application can easily realize the compatibility of fingerprint chips of multiple manufacturers on software drivers, and is very in line with the cost reduction requirement of the current intelligent equipment. And the unified architecture in the software design also reduces the test and maintenance cost of the software and improves the working efficiency of the system.
An embodiment of the application provides a fingerprint application program loading method, and fig. 1 shows a flowchart of the fingerprint application program loading method provided by the embodiment of the application. As shown in fig. 1, the fingerprint application loading method provided in the embodiment of the present application may include the following steps 101 and 102. The method is exemplarily described below taking an electronic device as an example of executing the method.
Step 101, the electronic device identifies an application program through the fingerprint chip, and reads the chip identification of the fingerprint chip in the electronic device.
In this embodiment of the present application, the fingerprint chip identification application is configured to read an identifier of a fingerprint chip, so as to identify the fingerprint chip.
Alternatively, in the embodiment of the present application, the fingerprint chip may be a fingerprint chip of any vendor (or any type).
Optionally, in an embodiment of the present application, the chip identifier may be used to indicate a model of the fingerprint chip.
Optionally, in an embodiment of the present application, the fingerprint chip identification application may include a first client application (Client Application, CA) and a first trusted application (Trusted Application, TA); the above step 101 can be realized by the following steps 101a to 101 c.
Step 101a, the electronic device sends a read chip identification command to the first TA through the first CA.
Optionally, in the embodiment of the present application, the first CA is an application program in a normal execution environment (Rich Execution Environment, REE) in the fingerprint chip identification application program; the REE is a system of the electronic equipment.
Optionally, in the embodiment of the present application, the first TA is an application program under a trusted execution environment (Trusted Execution Environment, TEE) in the fingerprint chip identification application program; where a TEE is an environment that can be executed separately from an electronic device system.
In this embodiment of the present application, the first CA corresponds to the first TA, and the first CA may instruct the first TA to execute the operation corresponding to the command by sending the command to the first TA.
Optionally, in an embodiment of the present application, the reading chip identifier command may be used to instruct the first TA to read the chip identifier of the fingerprint chip.
Optionally, in this embodiment of the present application, before the electronic device sends the above-mentioned chip identification reading command to the first TA through the first CA, the first CA may be loaded first, so that the first TA is opened to perform the corresponding initialization action.
Step 101b, under the condition that the first TA receives a command for reading the chip identification, the electronic device invokes the target SPI communication interface through the first TA to read the chip identification.
The target SPI communication interface is used for SPI communication with the fingerprint chip.
Specifically, the target SPI communication interface may be used for the first TA to perform SPI communication with the fingerprint chip.
It should be noted that, the electronic device generally includes a plurality of SPI communication interfaces, where only one SPI communication interface (i.e., the target SPI communication interface) may be used to communicate with the fingerprint chip, and the identification numbers of the SPI communication interfaces of different electronic devices are different.
Optionally, in this embodiment of the present application, before the electronic device reads the chip identifier by calling the target SPI communication interface through the first TA, a code capable of indicating the target SPI communication interface may be written in the fingerprint chip identification application program, so that, when the first TA receives the command for reading the chip identifier, the first TA directly calls the target SPI communication interface to read the chip identifier; this simplifies the process of reading the chip identification.
Step 101c, the electronic device sends the chip identifier to the first CA through the first TA.
Optionally, in the embodiment of the present application, after reading the chip identifier, the first TA may return the chip identifier to the first CA.
In the embodiment of the application, the electronic device can call the target SPI communication interface to read the chip identifier through interaction between the first CA and the first TA, so that the security of the process of reading the chip identifier can be ensured.
Step 102, the electronic device loads a fingerprint application program corresponding to the fingerprint chip under the condition that the chip identifier is matched with a target chip identifier in the N preset chip identifiers.
The fingerprint application program is used for realizing the fingerprint detection function of the fingerprint chip, and N is an integer greater than or equal to 2.
Alternatively, in the embodiment of the present application, the fingerprint detection function may include a fingerprint unlocking function or a fingerprint payment function.
Optionally, in an embodiment of the present application, the target chip identifier may be: any one of the N preset chip identifiers is preset.
Optionally, in this embodiment of the present application, the matching between the chip identifier and the target chip identifier may be understood as: the chip identity is the same as the target chip identity.
Optionally, in the embodiment of the present application, after the first CA receives the chip identifier returned by the first TA, the electronic device may determine, by using the first CA, whether the chip identifier is matched with the target chip identifier.
Optionally, in this embodiment of the present application, the N preset chip identifiers may be N preset chip identifiers having a preset arrangement sequence; after receiving the chip identifier, the first CA may first determine whether the chip identifier is matched with a first preset chip identifier of the N preset chip identifiers, if so, load a fingerprint application program corresponding to the fingerprint chip, and if not, determine whether the chip identifier is matched with a second preset chip identifier of the N preset chip identifiers; and so on until the chip identifier is matched with one preset chip identifier (namely the target chip identifier) in the N preset chip identifiers, and loading a corresponding fingerprint application program.
Optionally, in this embodiment of the present application, if the chip identifier is not matched with the N preset chip identifiers, it is indicated that the fingerprint chip is in an abnormal state, and at this time, the fingerprint chip may be powered down, all resources may be released, and the unavailable state of the fingerprint chip may be returned.
Alternatively, in the embodiment of the present application, the loading the fingerprint application may be: the CA and TA of the fingerprint application are loaded to complete the initialization of the fingerprint application.
In the fingerprint application program loading method provided by the embodiment of the application, the fingerprint application program corresponding to the fingerprint chip can be loaded under the condition that the chip identifier of the fingerprint chip read by the fingerprint chip identification application program is matched with the target chip identifier in the N preset chip identifiers, so that the fingerprint detection function of the fingerprint chip is realized; therefore, the compatibility of fingerprint driving can be improved only by software, and the hardware cost for improving the compatibility of fingerprint driving can be reduced without additionally arranging an identification pin on hardware.
Optionally, in the embodiment of the present application, before step 101, the method for loading a fingerprint application provided in the embodiment of the present application may further include step 103 described below.
Step 103, the electronic device stores N preset chip identifiers and N fingerprint drivers.
The N preset chip identifiers and the N fingerprint drivers are respectively in one-to-one correspondence with the N fingerprint chips.
It can be understood that the N preset chip identifiers are in one-to-one correspondence with the N fingerprint chips, and the N fingerprint drivers are in one-to-one correspondence with the fingerprint chips; namely, each fingerprint chip in the N fingerprint chips corresponds to a preset chip identifier and a fingerprint driver one by one.
In this embodiment of the present application, any two fingerprint chips among the N fingerprint chips are all different, that is, the N fingerprint chips are N fingerprint chips different from each other.
Alternatively, in the embodiment of the present application, the N fingerprint chips may be in one-to-one correspondence with N vendors (or N types, or N models).
It should be noted that, on the one hand, for a plurality of fingerprint chips supported by an electronic device in a certain project, a plurality of manufacturers corresponding to the fingerprint chips are determined, that is, the chip types (that is, chip identifiers) of the fingerprint chips are also determined. On the other hand, the SPI communication of the fingerprint chip is required to rely on the corresponding application of hardware resources (e.g., SPI, power supply, etc.) driven by the fingerprint.
Optionally, in the embodiment of the present application, the storing, by the electronic device, the N preset chip identifiers and the N fingerprint drivers may be: and the electronic equipment writes codes corresponding to the N preset chip identifiers and codes corresponding to the N fingerprint drivers into the fingerprint chip identification application program.
Optionally, in the embodiment of the present application, the electronic device stores the N preset chip identifiers, so that the first CA may compare with the read chip identifiers.
Optionally, in the embodiment of the present application, the electronic device stores the N drivers, so as to receive a power-up or power-down command sent by the first CA, and control a power-up state of the fingerprint chip.
Optionally, in the embodiment of the present application, after storing the N fingerprint drivers, the electronic device first powers up the fingerprint chip without using the stored fingerprint drivers.
In this embodiment of the present application, before the electronic device reads the chip identifier, the N preset chip identifiers and N fingerprint drivers corresponding to the N fingerprint chips one to one may be stored first, so that flexibility of fingerprint driver compatibility may be improved.
Optionally, in the embodiment of the present application, after the step 103, the fingerprint application loading method provided in the embodiment of the present application may further include steps 104 to 106 described below, or may include steps 104, 105 and 107 described below.
Step 104, the electronic device sets a preset working sequence for the N fingerprint drivers based on rated working parameters of the N fingerprint chips.
Alternatively, in the embodiment of the present application, the rated operating parameter may be any possible parameter such as a rated voltage, a rated current, or a rated power.
Alternatively, in the embodiment of the present application, the foregoing preset working sequence may be: and the rated working parameters of the corresponding fingerprint chips are in sequence from small to large.
It can be understood that the fingerprint chip is powered on and powered off in sequence through the sequence from small to large of the rated working parameters of the corresponding fingerprint chip, so that the influence on the functions of the fingerprint chip and the hardware damage to the fingerprint chip can be avoided.
Step 105, the electronic device controls the electrification of a fingerprint chip in the electronic device through the ith fingerprint driver in the N fingerprint drivers according to a preset working sequence so as to read the chip identification.
Wherein i is a positive integer less than N.
Optionally, in an embodiment of the present application, an ith fingerprint driver in the N fingerprint drivers may be: the 1 st fingerprint driver of the N fingerprint drivers.
And 106, under the condition that the electronic equipment reads the chip identifier matched with the target chip identifier, the electronic equipment keeps controlling the power-on of the fingerprint chip in the electronic equipment through the ith fingerprint drive.
It can be understood that, when the electronic device reads the chip identifier matched with the target chip identifier, the fingerprint application program corresponding to the fingerprint chip is loaded, so that the fingerprint chip in the i-th fingerprint driving control electronic device needs to be kept powered on, so that the fingerprint chip is kept in a working state.
And 107, under the condition that the electronic equipment does not read the chip identifier matched with the target chip identifier, controlling the electrification of the fingerprint chip in the electronic equipment through the ith fingerprint driver, and controlling the electrification of the fingerprint chip in the electronic equipment through the (i+1) th fingerprint driver in the N fingerprint drivers.
Optionally, in the embodiment of the present application, the electronic device does not read the chip identifier that matches the target chip identifier, may include: the electronic device does not read any chip identity or reads a chip identity that does not match the target chip identity.
The fingerprint application loading method provided in the embodiment of the present application is described below by way of example.
Taking the rated operating parameter as the rated voltage as an example, the N fingerprint chips are assumed to be: a fingerprint chip 1 with rated voltage a, a fingerprint chip 2 with rated voltage b and a fingerprint chip 3 with rated voltage c, wherein a is smaller than c and smaller than b; the N fingerprint drivers are: a fingerprint drive 1 corresponding to the fingerprint chip 1, a fingerprint drive 2 corresponding to the fingerprint chip 2, and a fingerprint drive 3 corresponding to the fingerprint chip 3; then, the electronic device may set a preset working order for the 3 fingerprint drives based on the rated voltages of the 3 fingerprint chips as follows: fingerprint drive 1, fingerprint drive 3, and fingerprint drive 2.
Further, the electronic device may control the fingerprint chip in the electronic device to be powered on through the fingerprint driver 1 (i.e. the ith fingerprint driver) according to the preset working sequence, and if the electronic device reads the chip identifier matched with the target chip identifier, the electronic device keeps controlling the fingerprint chip to be powered on through the fingerprint driver 1; if the electronic equipment does not read the chip identifier matched with the target chip identifier, the fingerprint driver 1 controls the fingerprint chip to be powered down, and the fingerprint driver 3 (i.e. the i+1th fingerprint driver) controls the fingerprint chip to be powered up. Secondly, after the fingerprint chip is controlled to be electrified through the fingerprint driver 3, if the electronic equipment reads the chip identifier matched with the target chip identifier, the fingerprint chip is kept to be electrified through the fingerprint driver 3; if the electronic equipment does not read the chip identifier matched with the target chip identifier, the fingerprint driver 3 controls the fingerprint chip to be powered down, and the fingerprint driver 2 controls the fingerprint chip to be powered up. Then, after the fingerprint chip is controlled to be powered on through the fingerprint driver 2, if the electronic equipment reads the chip identifier matched with the target chip identifier, the fingerprint chip is kept to be powered on through the fingerprint driver 2; if the electronic equipment does not read the chip identifier matched with the target chip identifier, the fingerprint chip is in an abnormal state, the electronic equipment can control the fingerprint chip to be powered down and release all resources through the fingerprint driver 2, and the unavailable state of the fingerprint chip is returned.
In the embodiment of the application, the electronic device may drive and control the electrification of the fingerprint chip in the electronic device through the ith fingerprint according to the preset working sequence set based on the rated working parameters of the N fingerprint chips, so as to read the chip identifier; and under the condition that the chip identifier matched with the target chip identifier is read, keeping the fingerprint chip to be electrified through the ith fingerprint drive control, otherwise, controlling the fingerprint chip to be electrified through the ith fingerprint drive control, and controlling the fingerprint chip to be electrified through the (i+1) th fingerprint drive control; therefore, the functional influence and hardware damage caused by the trade on the electrification of the fingerprint chip can be avoided.
It should be noted that, the fingerprint application program loading method provided in the embodiment of the present application is only exemplified by a fingerprint chip, and in practical implementation, the method may be applied not only to a fingerprint chip, but also to a touch screen chip or a liquid crystal display chip (i.e. LCM), etc., and similar effects may be achieved, which is not limited by the embodiment of the present application.
According to the fingerprint application program loading method, the execution main body can be the fingerprint application program loading device. In this embodiment of the present application, a fingerprint application loading device executes a fingerprint application loading method by using a fingerprint application loading device as an example, and the fingerprint application loading device provided in this embodiment of the present application is described.
Referring to fig. 2, an embodiment of the present application provides a fingerprint application program loading apparatus 20, where the fingerprint application program loading apparatus 20 may include a reading module 21 and a loading module 22. The reading module 21 may be configured to identify an application program by using a fingerprint chip, and read a chip identifier of the fingerprint chip in the fingerprint application program loading device 20. The loading module 22 may be configured to load a fingerprint application corresponding to the fingerprint chip when the chip identifier read by the reading module 21 matches with a target chip identifier in N preset chip identifiers, where N is an integer greater than or equal to 2, where the fingerprint application is used to implement a fingerprint detection function of the fingerprint chip.
In one possible implementation, the fingerprint chip identification application may include a first CA and a first TA. The reading module 21 may specifically be configured to send a read chip identification command to the first TA through the first CA; under the condition that the first TA receives the command for reading the chip identification, the first TA calls a target SPI communication interface to read the chip identification, and the target SPI communication interface is used for SPI communication with the fingerprint chip; and sending the chip identification to the first CA via the first TA.
In a possible implementation manner, the fingerprint application program loading apparatus 20 further includes a storage module. A storage module, configured to store the N preset chip identifiers and the N fingerprint drivers before the reading module 21 reads the chip identifiers of the fingerprint chips in the fingerprint application loading device 20 through the fingerprint chip identification application; the N preset chip identifiers and the N fingerprint drivers are respectively in one-to-one correspondence with the N fingerprint chips; any two fingerprint chips in the N fingerprint chips are different.
In a possible implementation manner, the fingerprint application loading apparatus 20 further includes a setting module and a control module. The setting module can be used for setting a preset working sequence for the N fingerprint drivers based on rated working parameters of the N fingerprint chips after the N preset chip identifiers and the N fingerprint drivers are stored in the storage module. The control module may be configured to control, according to the preset working sequence set by the setting module, powering up a fingerprint chip in the fingerprint application program loading device 20 through an ith fingerprint driver in the N fingerprint drivers, so as to read the chip identifier, where i is a positive integer smaller than N. The control module is further configured to keep controlling the fingerprint chip in the fingerprint application program loading device 20 to be powered on through the ith fingerprint drive when the reading module 21 reads the chip identifier matched with the target chip identifier; or, if the reading module 21 does not read the chip identifier matched with the target chip identifier, the i-th fingerprint driver controls the fingerprint chip in the fingerprint application program loading device 20 to power down, and the i+1th fingerprint driver in the N fingerprint drivers controls the fingerprint chip in the fingerprint application program loading device 20 to power up.
In the fingerprint application program loading device provided by the embodiment of the application, the fingerprint application program corresponding to the fingerprint chip can be loaded under the condition that the chip identifier of the fingerprint chip read by the fingerprint chip identification application program is matched with the target chip identifier in the N preset chip identifiers, so that the fingerprint detection function of the fingerprint chip is realized; therefore, the compatibility of fingerprint driving can be improved only by software, and the hardware cost for improving the compatibility of fingerprint driving can be reduced without additionally arranging an identification pin on hardware.
The fingerprint application program loading device in the embodiment of the application may be an electronic device, or may be a component in the electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The fingerprint application program loading device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The fingerprint application program loading device provided in the embodiment of the present application can implement each process implemented by the method embodiment of fig. 1, and in order to avoid repetition, a detailed description is omitted here.
As shown in fig. 3, the embodiment of the present application further provides an electronic device 300, including a processor 301 and a memory 302, where the memory 302 stores a program or an instruction that can be executed on the processor 301, and the program or the instruction implements the steps of the embodiment of the loading method of the fingerprint application when executed by the processor 301, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 4 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1010 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 1010 may be configured to identify an application program by using a fingerprint chip, and read a chip identifier of the fingerprint chip in the electronic device 1000; and loading a fingerprint application program corresponding to the fingerprint chip under the condition that the read chip identifier is matched with a target chip identifier in N preset chip identifiers, wherein N is an integer greater than or equal to 2, and the fingerprint application program is used for realizing the fingerprint detection function of the fingerprint chip.
In one possible implementation, the fingerprint chip identification application may include a first CA and a first TA. The processor 1010 may be specifically configured to send a read chip identification command to the first TA through the first CA; under the condition that the first TA receives the command for reading the chip identification, the first TA calls a target SPI communication interface to read the chip identification, and the target SPI communication interface is used for SPI communication with the fingerprint chip; and sending the chip identification to the first CA via the first TA.
In a possible implementation manner, the processor 1010 may be further configured to store the N preset chip identifiers and the N fingerprint drivers before reading the chip identifiers of the fingerprint chips in the electronic device 1000 by the fingerprint chip identification application program; the N preset chip identifiers and the N fingerprint drivers are respectively in one-to-one correspondence with the N fingerprint chips; any two fingerprint chips in the N fingerprint chips are different.
In a possible implementation manner, the processor 1010 may be further configured to set a preset working order for the N fingerprint drivers based on rated working parameters of the N fingerprint chips after storing the N preset chip identifiers and the N fingerprint drivers; and according to the preset working sequence, the fingerprint chip in the electronic device 1000 is controlled to be electrified by the ith fingerprint driver in the N fingerprint drivers so as to read the chip identification, wherein i is a positive integer smaller than N. The processor 1010 may be further configured to keep the fingerprint chip in the electronic device 1000 powered up by the ith fingerprint driver in case the chip identifier matching the target chip identifier is read; or under the condition that the chip identifier matched with the target chip identifier is not read, powering down the fingerprint chip in the ith fingerprint driving control electronic equipment 1000, and powering up the fingerprint chip in the (i+1) th fingerprint driving control electronic equipment 1000 in the N fingerprint driving.
In the electronic device provided by the embodiment of the application, the fingerprint application program corresponding to the fingerprint chip is loaded under the condition that the chip identifier of the fingerprint chip read by the fingerprint chip identification application program is matched with the target chip identifier in the N preset chip identifiers, so that the fingerprint detection function of the fingerprint chip is realized; therefore, the compatibility of fingerprint driving can be improved only by software, and the hardware cost for improving the compatibility of fingerprint driving can be reduced without additionally arranging an identification pin on hardware.
The beneficial effects of the various implementation manners in this embodiment may be specifically referred to the beneficial effects of the corresponding implementation manners in the foregoing method embodiment, and in order to avoid repetition, the description is omitted here.
It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 can include two portions, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory 1009 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1009 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, where the program or the instruction realizes each process of the fingerprint application loading method embodiment described above when being executed by a processor, and the same technical effects can be achieved, so that repetition is avoided and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is configured to run a program or an instruction, so as to implement each process of the fingerprint application loading method embodiment, and achieve the same technical effect, so that repetition is avoided, and no further description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the fingerprint application program loading method embodiment described above, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A method for loading a fingerprint application, the method comprising:
reading a chip identifier of a fingerprint chip in the electronic equipment through a fingerprint chip identification application program;
and loading a fingerprint application program corresponding to the fingerprint chip under the condition that the chip identifier is matched with a target chip identifier in N preset chip identifiers, wherein the fingerprint application program is used for realizing the fingerprint detection function of the fingerprint chip, and N is an integer greater than or equal to 2.
2. The method of claim 1, wherein the fingerprint chip recognition application comprises a first client application CA and a first trusted application TA;
the application program is identified through the fingerprint chip, and the reading of the chip identification of the fingerprint chip in the electronic equipment comprises the following steps:
sending a read chip identification command to the first TA through the first CA;
under the condition that the first TA receives the chip identification reading command, a target serial peripheral interface SPI communication interface is called by the first TA to read the chip identification, and the target SPI communication interface is used for SPI communication with the fingerprint chip;
and sending the chip identification to the first CA through the first TA.
3. The method according to claim 1 or 2, wherein before the application program is identified by the fingerprint chip, and the chip identification of the fingerprint chip in the electronic device is read, the method further comprises:
storing the N preset chip identifiers and N fingerprint drivers;
the N preset chip identifiers and the N fingerprint drivers are respectively in one-to-one correspondence with the N fingerprint chips; any two fingerprint chips in the N fingerprint chips are different.
4. The method of claim 3, wherein after storing the N preset chip identifications and N fingerprint drives, the method further comprises:
setting a preset working sequence for the N fingerprint drives based on rated working parameters of the N fingerprint chips;
according to the preset working sequence, controlling a fingerprint chip in the electronic equipment to be electrified through an ith fingerprint driver in the N fingerprint drivers so as to read the chip identification, wherein i is a positive integer smaller than N;
under the condition that the chip identifier matched with the target chip identifier is read, keeping controlling the power-on of a fingerprint chip in the electronic equipment through the ith fingerprint drive; or alternatively, the process may be performed,
And under the condition that the chip identifier matched with the target chip identifier is not read, controlling the electrification of the fingerprint chip in the electronic equipment through the ith fingerprint driver, and controlling the electrification of the fingerprint chip in the electronic equipment through the (i+1) th fingerprint driver in the N fingerprint drivers.
5. A fingerprint application program loading device, which is characterized by comprising a reading module and a loading module;
the reading module is used for reading the chip identification of the fingerprint chip in the device through the fingerprint chip identification application program;
the loading module is used for loading a fingerprint application program corresponding to the fingerprint chip under the condition that the chip identifier read by the reading module is matched with a target chip identifier in N preset chip identifiers, wherein N is an integer greater than or equal to 2, and the fingerprint application program is used for realizing the fingerprint detection function of the fingerprint chip.
6. The apparatus of claim 5, wherein the fingerprint chip recognition application comprises a first CA and a first TA;
the reading module is specifically configured to send a chip identification reading command to the first TA through the first CA; under the condition that the first TA receives the command for reading the chip identification, the first TA calls a target SPI communication interface for reading the chip identification, and the target SPI communication interface is used for SPI communication with the fingerprint chip; and sending the chip identification to the first CA through the first TA.
7. The apparatus of claim 5 or 6, further comprising a memory module;
the storage module is used for storing the N preset chip identifications and N fingerprint drivers before the reading module reads the chip identifications of the fingerprint chips in the device through the fingerprint chip identification application program;
the N preset chip identifiers and the N fingerprint drivers are respectively in one-to-one correspondence with the N fingerprint chips; any two fingerprint chips in the N fingerprint chips are different.
8. The apparatus of claim 7, further comprising a setup module and a control module;
the setting module is used for setting a preset working sequence for the N fingerprint drives based on rated working parameters of the N fingerprint chips after the N preset chip identifications and the N fingerprint drives are stored in the storage module;
the control module is used for controlling the fingerprint chip in the device to be electrified through the ith fingerprint driver in the N fingerprint drivers according to the preset working sequence set by the setting module so as to read the chip identifier, wherein i is a positive integer smaller than N;
The control module is further used for keeping the fingerprint chip in the device to be powered on through the ith fingerprint drive control under the condition that the reading module reads the chip identifier matched with the target chip identifier; or alternatively, the process may be performed,
and under the condition that the reading module does not read the chip identifier matched with the target chip identifier, controlling the fingerprint chip in the device to be powered down through the ith fingerprint driver, and controlling the fingerprint chip in the device to be powered up through the (i+1) th fingerprint driver in the N fingerprint drivers.
9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the fingerprint application program loading method of any one of claims 1-4.
10. A readable storage medium, characterized in that it stores thereon a program or instructions, which when executed by a processor, implement the steps of the fingerprint application program loading method according to any of claims 1-4.
CN202310156990.7A 2023-02-21 2023-02-21 Fingerprint application program loading method and device, electronic equipment and medium Pending CN115994346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310156990.7A CN115994346A (en) 2023-02-21 2023-02-21 Fingerprint application program loading method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310156990.7A CN115994346A (en) 2023-02-21 2023-02-21 Fingerprint application program loading method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN115994346A true CN115994346A (en) 2023-04-21

Family

ID=85990387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310156990.7A Pending CN115994346A (en) 2023-02-21 2023-02-21 Fingerprint application program loading method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115994346A (en)

Similar Documents

Publication Publication Date Title
CN107430424B (en) Techniques for improved hybrid sleep power management
US20060212694A1 (en) Method of updating firmware in computer server systems
US20040093489A1 (en) System and method for quick boot and application switching for a computer system
CN103412769A (en) External card parameter configuration method, equipment and system
CN100472402C (en) Power management method for built-in camera
US7480905B2 (en) Interface device, and method and computer readable product for updating firmware in the interface device
CN104765623A (en) Data processing method of multiple operating systems and terminal equipment
US20220100490A1 (en) Firmware updating method, and electronic apparatus and storage media for same
EP3751407A1 (en) Electronic device and method of utilizing storage space thereof
US20190079558A1 (en) Docking device, electrical device, and mac address cloning method
CN101017439A (en) Computer and control method thereof
CN102880479B (en) A kind of method of remotely modifying BIOS property parameters and device
RU2679253C1 (en) Method, device and terminal for processing fingerprint event
US20220137982A1 (en) Systems and methods for achieving faster boot times using bios attribute mitigation
KR101624178B1 (en) Portable computer system and method to switch operating system using hotkey
CN115994346A (en) Fingerprint application program loading method and device, electronic equipment and medium
KR20210046426A (en) Application optimizing method and electronic device supporting the same
CN109710292B (en) Mobile terminal machine brushing control processing method, mobile terminal and storage medium
US20090063712A1 (en) Kvm switch identifying peripheral for computer and method thereof
CN112527425A (en) Startup picture display method, terminal and storage medium
CN110324714A (en) Television set and its TV control method, control device and readable storage medium storing program for executing
CN113032290B (en) Flash memory configuration method, flash memory configuration device, electronic equipment and storage medium
CN107093408B (en) The control method and device of backlight lightening when smart machine is switched on
CN112182599A (en) Method and device for automatically loading master key, electronic equipment and readable storage medium
CN113747043A (en) Image processor starting 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