Control method and device, electronic equipment and storage medium

By switching the antenna position during fingerprint entry or unlocking, the problem of antenna interference on the capacitive fingerprint module is solved, improving the fingerprint image quality and user experience.

CN120825539APending Publication Date: 2025-10-21VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510691213.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2025-10-21

AI Technical Summary

Technical Problem

The capacitive fingerprint module on the smartphone is subject to antenna radio frequency interference, resulting in poor fingerprint image quality and affecting the fingerprint unlocking and entry effects.

Method used

When a fingerprint entry or unlocking action is recognized, the first antenna close to the fingerprint module is switched to the second antenna far away from the module, and the original parameters are recorded and restored to avoid radio frequency interference and improve image quality.

Benefits of technology

By switching the antenna position, radio frequency interference is reduced, the quality of fingerprint image acquisition is improved, a good entry and unlocking experience is provided, and the risk of misidentification is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120825539A_ABST
    Figure CN120825539A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and device, electronic equipment and a storage medium, and belongs to the technical field of communication. The method comprises the steps of switching a first antenna to a second antenna under the condition that a target action is recognized; wherein the target action comprises a fingerprint input action or a fingerprint unlocking action, the first antenna is an antenna closer to a fingerprint module of the electronic equipment than the second antenna, and the fingerprint module is a capacitive fingerprint module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a control method, device, electronic device and storage medium. Background Art

[0002] Nowadays, fingerprint unlocking has almost become a standard feature of smartphones. The mainstream ones include capacitive fingerprint, optical or ultrasonic fingerprint solutions.

[0003] Capacitive fingerprint modules are currently used on smartphones, such as Figure 1 As shown, it is usually found on the side of a smartphone ( Figure 1 The red box marks the capacitive fingerprint module), which is packaged together with the physical power button of the smartphone. There are usually multiple antennas around the capacitive fingerprint module ( Figure 1 The blue box marks the antenna).

[0004] The capacitive fingerprint module using the above layout design is affected by the antenna, and there is a problem of poor quality of the collected fingerprint image. Summary of the Invention

[0005] The purpose of the embodiments of the present application is to provide a control method, device, electronic device and storage medium that can solve the problem of poor quality of fingerprint images collected by a capacitive fingerprint module.

[0006] In order to solve the above technical problems, in a first aspect, an embodiment of the present application provides a control method applied to an electronic device, the method comprising:

[0007] When a target action is recognized, the first antenna is switched to the second antenna;

[0008] The target action includes a fingerprint entry action or a fingerprint unlocking action, the first antenna is an antenna of a fingerprint module of the electronic device that is closer to the second antenna, and the fingerprint module is a capacitive fingerprint module.

[0009] In some embodiments, switching the first antenna to the second antenna includes:

[0010] First parameter information related to the first antenna is recorded, and the first antenna is switched to a second antenna.

[0011] In some embodiments, the method further comprises:

[0012] When it is recognized that the target action is completed, the working antenna is restored to the first antenna, and the parameter information used by the first antenna is the first parameter information recorded before the first antenna is switched.

[0013] In some embodiments, the target action is a fingerprint entry action, and the method further includes:

[0014] If antenna switching fails, controlling the first antenna to perform switching again;

[0015] When the number of consecutive switching failures reaches a preset threshold, the fingerprint entry interface is exited and a notification message is generated, which is used to notify the user of the entry abnormality.

[0016] In some embodiments, the target action is a fingerprint unlocking action, and the method further includes:

[0017] When the target action is recognized, start the timer;

[0018] When the timer times out or the antenna switching is completed, the fingerprint module is controlled to collect a first fingerprint image.

[0019] In some embodiments, the method further comprises:

[0020] Calculating the radio frequency interference amount of the first fingerprint image;

[0021] When the radio frequency interference amount of the first fingerprint image is less than a first threshold and the electronic device is successfully unlocked using the first fingerprint image, the first fingerprint image is added to the fingerprint template library, which stores fingerprint templates of users used to unlock electronic devices.

[0022] In a second aspect, an embodiment of the present application provides a control device, applied to an electronic device, comprising:

[0023] A first control module is configured to switch the first antenna to the second antenna when a target motion is recognized;

[0024] The target action includes a fingerprint entry action or a fingerprint unlocking action, the first antenna is an antenna of a fingerprint module of the electronic device that is closer to the second antenna, and the fingerprint module is a capacitive fingerprint module.

[0025] In some embodiments, the first control module includes:

[0026] The first control unit is configured to record first parameter information related to the first antenna and switch the first antenna to a second antenna.

[0027] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the control method described in the first aspect are implemented.

[0028] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the control method described in the first aspect are implemented.

[0029] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the control method described in the first aspect.

[0030] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the control method as described in the first aspect.

[0031] In an embodiment of the present application, when a fingerprint entry action or a fingerprint unlocking action is identified, the first antenna of the fingerprint module, which is closer to the electronic device than the second antenna, is switched to the second antenna. This prevents the image quality collected by the fingerprint module from being affected by the radio frequency interference of the first antenna, thereby improving the quality of the collected fingerprint image and providing the user with a good fingerprint entry and unlocking experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a schematic diagram of the location of an existing capacitive fingerprint module on an electronic device;

[0033] Figure 2 This is one of the flow charts of the control method according to the embodiment of the present application;

[0034] Figure 3 Schematic diagram comparing the fingerprint image of the present application when it is disturbed and when it is not disturbed;

[0035] Figure 4 This is the second flow chart of the control method of the embodiment of the present application;

[0036] Figure 5 This is the third flow chart of the control method of the embodiment of the present application;

[0037] Figure 6 is a module schematic diagram of a control device according to an embodiment of the present application;

[0038] Figure 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;

[0039] Figure 8 It is a schematic diagram of the hardware structure of the electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0040] The following will be combined with the accompanying drawings in the embodiments of this application to clearly describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0041] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0042] It should be known that the capacitive fingerprint module restores the user's fingerprint image by collecting the change in finger capacitance.

[0043] If the capacitive signal is subject to external interference, that is, because the capacitive fingerprint module is exposed to the outside, the capacitive fingerprint is susceptible to radio frequency interference from the antenna next to it. This means that the capacitance change value cannot accurately restore the user's fingerprint image, affecting the fingerprint image quality. This will cause the user's fingerprint unlocking to fail, and the recorded fingerprint image will be poor during fingerprint registration.

[0044] In addition, when the antenna is working, it emits radio frequency waveforms to the outside, and the internal chip of the capacitive fingerprint module also emits waveforms to collect fingerprint capacitance signals. There is an interference effect between the waves, which will cause the collected fingerprint capacitance signals to change, which will also result in poor quality of the collected fingerprint image.

[0045] In order to solve the above technical problems, the present application provides a control method, device, electronic device, storage medium and program product, wherein the method and device are based on the same application concept. Since the principles of solving problems by the method and device are similar, the implementation of the device and method can refer to each other, and the repeated parts will not be repeated.

[0046] The control method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0047] like Figure 2 FIG. 1 is a flow chart of a control method provided in an embodiment of the present application. The method is applied to an electronic device, that is, the method is executed by the electronic device. The method may include:

[0048] Step 201: When a target action is identified, the first antenna is switched to the second antenna; wherein the target action includes a fingerprint entry action or a fingerprint unlocking action, the first antenna is an antenna of a fingerprint module closer to the electronic device than the second antenna, and the fingerprint module is a capacitive fingerprint module.

[0049] Fingerprint registration refers to the process of a user pressing the fingerprint module's corresponding area with their fingerprint, allowing the fingerprint module to capture the user's image. After the capture is complete, the user's fingerprint image is saved.

[0050] It should be noted that if the target action is a fingerprint registration action, the fingerprint registration action is determined to be recognized when the user first inputs the first button, where the first button is a button used to indicate adding a fingerprint. Here, the first input can be a pre-set input such as a click input, a double-click input, a press input, or a long press input.

[0051] A fingerprint unlock action refers to the user unlocking an electronic device using a registered fingerprint. Specifically, if the target action is a fingerprint unlock action, the fingerprint unlock action is determined to be recognized upon receiving a second input from the user to the fingerprint module. The second input is a press input.

[0052] It should be noted that when a fingerprint entry or fingerprint unlocking action is recognized, the first antenna of the fingerprint module, which is closer to the electronic device than the second antenna, is switched to the second antenna. This prevents the image quality collected by the fingerprint module from being affected by the radio frequency interference of the first antenna, thereby improving the quality of the collected fingerprint image and providing the user with a good fingerprint entry and unlocking experience.

[0053] See also Figure 3 The left side of the figure shows a fingerprint image with antenna interference, and the right side shows the fingerprint image after the antenna is switched. If the antenna is not switched, the vertical lines of the interference image on the left will be superimposed on the fingerprint image, causing the fingerprint image to deteriorate.

[0054] In some embodiments, step 201 of switching the first antenna to the second antenna includes:

[0055] First parameter information related to the first antenna is recorded, and the first antenna is switched to a second antenna.

[0056] The purpose of recording the first parameter information associated with the first antenna is to ensure that the parameter information of the first antenna remains consistent with the first parameter information when switching back from the second antenna to the first antenna after completing the target event corresponding to the target action. Optionally, the first parameter information includes the operating frequency and transmit power of the first antenna.

[0057] In some embodiments, step 201 of switching the first antenna to the second antenna includes:

[0058] a1, controlling the first antenna to perform a switching action;

[0059] Among them, controlling the first antenna to perform the switching action can be achieved through the coordination logic between the fingerprint software corresponding to the fingerprint module (also called fingerprint control software) and the antenna software corresponding to the antenna (also called antenna control software). Specifically:

[0060] The antenna software receives the antenna switching command from the fingerprint software; and based on the antenna switching command, performs switching from the first antenna to the second antenna.

[0061] a2, after the switching action of the first antenna is completed, determining whether the antenna switching is successful;

[0062] a3. If the antenna switching is successful, determine that the first antenna is switched to the second antenna.

[0063] In this way, through the above operation, switching from the first antenna to the second antenna can be achieved, thereby ensuring that during the entire fingerprint entry process or fingerprint unlocking process, the antenna close to the fingerprint module will not be switched back to avoid interference, thereby improving the quality of the fingerprint image collected by the fingerprint module.

[0064] Based on this, as an optional embodiment, the target action is a fingerprint entry action, and the method of the present application further includes:

[0065] If antenna switching fails, controlling the first antenna to perform switching again;

[0066] That is, if the antenna switching fails, the process returns to steps a1 to a2.

[0067] When the number of consecutive switching failures reaches a preset threshold, the fingerprint entry interface is exited and a notification message is generated, which is used to notify the user of the entry abnormality.

[0068] It should be noted that in actual applications, antenna switching failure generally does not occur, but just in case, the logic of designing this point is mainly to ensure:

[0069] During the entire entry process, the antenna needs to work away from the fingerprint module to avoid interference with the fingerprint module.

[0070] If the antenna RF signal interferes with the fingerprint module, these interference images will be recorded in the fingerprint template. In other words, the fingerprint algorithm will think that these interference images are normal because the recorded fingerprint image represents the image captured from the user's real finger. If, in the subsequent fingerprint unlocking process, a non-user's unrecorded finger is used to unlock, assuming that the non-user's fingerprint also has an RF interference image superimposed on the image, then part of the non-user's fingerprint image will match the real user's fingerprint image, and the fingerprint algorithm may mistakenly judge it as a real user's finger, resulting in fingerprint misidentification.

[0071] Here, fingerprint misidentification refers to a finger that is not the user's own and has not been recorded, which can unlock the user's electronic device.

[0072] The coordination logic between the fingerprint software and the antenna software in this application can be found in Table 1 below:

[0073] Table 1

[0074]

[0075] See also Figure 4 , below, refer to Example 1 to illustrate the implementation process of the method of the present application when the target action is a fingerprint entry action.

[0076] Assuming that a total of 15 presses are required for complete entry, the same applies to other presses, which will not be repeated here.

[0077] Step 400: receiving user input on the "Add Fingerprint" button and starting to record a new fingerprint;

[0078] That is, the user starts to enter a new fingerprint and clicks the "Add Fingerprint" button in the phone to trigger the start.

[0079] Step 401: The fingerprint software sends an input antenna switching command to the antenna software;

[0080] That is, the fingerprint software sends an entry switching antenna command to the antenna software to notify the antenna software to switch the antenna, switch the antenna to the side away from the fingerprint module, and inform the antenna software that it is currently entering the switch, passing the parameter Param=0.

[0081] In step 402, the antenna software receives the input antenna switching command, records the operating frequency and transmission power of the antenna close to the fingerprint module for recovery, and then starts to execute the switching action.

[0082] After antenna switching, the antenna can be locked at the antenna end away from the fingerprint module to ensure that the antenna will not switch back to the end close to the fingerprint module during the entire fingerprint entry process, avoiding radio frequency interference.

[0083] Step 403: After the antenna completes the switching operation, determine whether the switching is successful.

[0084] If not, execute step 404; if so, execute step 406.

[0085] Step 404: Retry switching and determine whether the number of retries reaches 3 times.

[0086] If not, return to step 402; if yes, execute step 405.

[0087] Step 405: Exit the fingerprint entry interface and inform the user that the entry is abnormal and ask to try again.

[0088] That is, if the antenna fails to switch three times in a row, the fingerprint entry interface will be exited and the user will be informed that the entry is abnormal and asked to try again.

[0089] Step 406: The antenna switching is completed and successful, and the information is sent back to the fingerprint software, and then the fingerprint registration process begins.

[0090] The returned information specifically refers to returning Result=0, Result=0, and the antenna entry switching is successful.

[0091] Step 407: The mobile phone pre-sets an initial image quality threshold value Pr and records the number of fingerprint templates N=0;

[0092] Image quality refers to the features extracted from the recorded finger image when recording the fingerprint, and the image clarity score given by the algorithm, which is generally 0-100 points, with 100 points being the full score.

[0093] The image quality threshold refers to the image quality score control threshold when recording fingerprints. Images with scores below this threshold will not be saved as fingerprint templates.

[0094] A fingerprint template is a file that contains the features extracted from the fingerprint image when the fingerprint is recorded. It is used to match the features extracted from the image when unlocking the device.

[0095] After step 407 , step 408 is executed.

[0096] In step 408, the user presses the fingerprint module with his finger, and the fingerprint algorithm is used to obtain the quality score P of the collected finger image (fingerprint image).

[0097] Step 409, determining whether the acquired image quality score P is greater than a threshold value Pr;

[0098] If not, execute step 410; if so, execute step 411.

[0099] Step 410, prompting the user "Low image quality, please press again", and then the user continues to press, repeating step 408;

[0100] Step 411: The image is valid, and the image data is saved to the fingerprint template, and the fingerprint template number N+1 is recorded.

[0101] Step 412, determining whether the number N of accumulated fingerprint templates is equal to 15;

[0102] If yes, execute step 413; if no, repeat step 408.

[0103] Step 413: Save the current fingerprint image as finger0.so.

[0104] That is, the user has completed the input. For example, the first finger can be saved as finger0.so, and the other fingers are saved similarly.

[0105] In step 414, the fingerprint software notifies the antenna software to switch the antenna back to the original antenna.

[0106] That is, the user has completed the entry, and the fingerprint software notifies the antenna to switch back to the original antenna state.

[0107] In step 415, the antenna restores the antenna corresponding to the original backup working frequency and transmission power.

[0108] That is, the antenna switches back to the antenna close to the fingerprint module.

[0109] In some embodiments, the target action is a fingerprint unlocking action, and the method of the present application further includes:

[0110] When the target action is recognized, start the timer;

[0111] When the timer times out or the antenna switching is completed, the fingerprint module is controlled to collect a first fingerprint image.

[0112] It should be noted that in actual applications, fingerprint unlocking requires high real-time performance. At most, it can only wait for the antenna switching to return the result within a short time, such as 50ms. If no result is returned within a short time, it will not continue to wait and will directly execute the fingerprint unlocking process, that is, in response to receiving the user's second input to the fingerprint module, collect the first fingerprint image, so as to meet the real-time requirements of fingerprint unlocking.

[0113] In some embodiments, the method of the present application further comprises:

[0114] Calculating the radio frequency interference amount of the first fingerprint image;

[0115] When the radio frequency interference amount of the first fingerprint image is less than a first threshold and the electronic device is successfully unlocked using the first fingerprint image, the first fingerprint image is added to the fingerprint template library, which stores fingerprint templates of users used to unlock electronic devices.

[0116] Here, the first fingerprint image is matched with the fingerprint template in the fingerprint template library; if the match is successful, the fingerprint unlocking is successful.

[0117] It should be noted that the purpose of calculating the RF interference level of the first fingerprint image based on the fingerprint algorithm is to subsequently determine whether fingerprint template learning is needed to ensure that fingerprint unlocking does not cause fingerprint misidentification. Specifically, if the RF interference level of the first fingerprint image (the fingerprint image that successfully unlocked the electronic device) is less than a first threshold, the first fingerprint image is added to the fingerprint template library for fingerprint template learning.

[0118] Here, fingerprint template learning refers to the fingerprint algorithm adding the fingerprint image of the user's fingerprint that has been successfully recognized this time to the fingerprint template library, making the fingerprint template library closer to the user's finger and having a better recognition success rate.

[0119] See also Figure 5 , refer to Example 2 below to illustrate the implementation process of the method of this application when the target action is a fingerprint unlocking action.

[0120] Step 500: receiving a user's press input on the fingerprint module and starting fingerprint unlocking;

[0121] That is, when the user presses his finger on the fingerprint module, the fingerprint software will receive the user's pressing information.

[0122] Step 501: The fingerprint software sends an unlock and switch antenna command to the antenna software and starts a timer with a duration of 50ms.

[0123] That is, the fingerprint software sends an unlock and switch antenna command to the antenna software to notify the antenna software to switch the antenna, switch the antenna to the side away from the fingerprint module, and inform the antenna software that it is currently unlocking and switching, passing parameter Param=1.

[0124] The timer is set to 50ms to ensure real-time fingerprint unlocking. For example, if the antenna software switching process takes one second to return a successful switch message due to some fluctuations, the fingerprint module cannot wait for one second to capture the image. Therefore, the user may have already lifted their finger by then, meaning that their finger has left the fingerprint module.

[0125] In step 502, the antenna software receives the unlock and switch antenna command, records the operating frequency and transmit power of the antenna close to the fingerprint module for recovery, and then starts to execute the switch action.

[0126] After antenna switching, the antenna can be locked at the antenna end away from the fingerprint module to ensure that the antenna will not switch back to the end close to the fingerprint module during the entire fingerprint unlocking process, avoiding radio frequency interference.

[0127] Step 503: The timer times out or the line switching is successful. The message is sent back to the fingerprint software within 50ms.

[0128] In step 504, the fingerprint module collects the current fingerprint image and calculates the radio frequency interference amount of the fingerprint image using a fingerprint algorithm.

[0129] The radio frequency interference amount is the interference amount determined by the fingerprint algorithm after analyzing the image.

[0130] Step 505: If the antenna switching success message is received, the fingerprint software notifies the antenna software to switch the antenna back to the original antenna.

[0131] That is, the user has already collected the fingerprint image, so if a message indicating that the antenna switching is successful is received, the fingerprint software notifies the antenna to switch back to the original antenna state.

[0132] Of course, it is also possible that after the user collects the fingerprint image, the user receives a message that the antenna switching fails. In this case, the fingerprint software notifies the antenna to restore to the original antenna state, that is, to keep the original antenna state unchanged.

[0133] Step 506, determining whether the collected fingerprint image matches the fingerprint image in the fingerprint template library;

[0134] If not, execute step 507; if so, execute step 508.

[0135] Step 507: Unlocking fails, waiting for the user to lift his finger, and then executing the next step.

[0136] Step 508: If the unlocking is successful, the mobile phone system is entered. It is determined whether the RF interference level of the fingerprint image exceeds the threshold. If it exceeds, the fingerprint template learning is not performed; if it does not exceed, the fingerprint image that is successfully unlocked is added to the fingerprint template library.

[0137] It should be noted that after a successful fingerprint unlock, fingerprint template learning is generally performed on the fingerprint image corresponding to the successful unlock. However, due to the presence of radio frequency interference, it is necessary to determine whether the radio frequency interference exceeds a predetermined threshold. If it exceeds, fingerprint template learning will not be performed to prevent the entry of images with interference into the fingerprint template library, which may cause fingerprint misidentification. If it does not exceed, fingerprint template learning will be performed, that is, the fingerprint image corresponding to the successful unlock will be added to the fingerprint template library, making the fingerprint template library more closely aligned with the user's finger and achieving a better recognition success rate.

[0138] In some embodiments, the method of the present application further comprises:

[0139] When it is recognized that the target action is completed, the working antenna is restored to the first antenna, and the parameter information used by the first antenna is the first parameter information recorded before the first antenna is switched.

[0140] Here, if the target action is a fingerprint registration action, when it is recognized that the fingerprint registration action is completed, restoring the working antenna to the first antenna means switching the second antenna to the first antenna.

[0141] For the target action being a fingerprint unlocking action, when it is recognized that the fingerprint unlocking action is completed, the working antenna is restored to the first antenna. The second antenna (this case corresponds to the case where the antenna switching is successful) can be switched to the first antenna, or the working antenna (the first antenna, this case corresponds to the case where the antenna switching fails) can be restored to the first antenna, that is, the first antenna is kept unchanged.

[0142] When the user performs fingerprint registration or fingerprint unlocking, the antenna is first switched to a position away from the fingerprint module. Then, after the action is completed, it is switched back to the original antenna state. This ensures that the fingerprint image quality is not affected by the interference caused by the antenna radio frequency, giving the user a good fingerprint registration and unlocking experience. In addition, the different software solution details for fingerprint registration and fingerprint unlocking ensure real-time unlocking while also minimizing the occurrence of fingerprint misidentification.

[0143] It should be noted that the control method provided in the embodiment of the present application can be executed by a control device or a control module in the control device for executing the control method. In the embodiment of the present application, the control device provided in the embodiment of the present application is described by taking the control device executing the control method as an example.

[0144] like Figure 6 FIG. 6 is a schematic diagram of the structure of a control device provided in an embodiment of the present application. The device 600 may include:

[0145] A first control module 601 is configured to switch the first antenna to the second antenna when a target motion is recognized;

[0146] The target action includes a fingerprint entry action or a fingerprint unlocking action, the first antenna is an antenna of a fingerprint module of the electronic device that is closer to the second antenna, and the fingerprint module is a capacitive fingerprint module.

[0147] Optionally, the first control module 601 includes:

[0148] The first control unit is configured to record first parameter information related to the first antenna and switch the first antenna to a second antenna.

[0149] Optionally, the apparatus 600 further includes:

[0150] The second control module is used to restore the working antenna to the first antenna when it is recognized that the target action is completed, and the parameter information used by the first antenna is the first parameter information recorded before the first antenna is switched.

[0151] Optionally, the target action is a fingerprint entry action, and the apparatus 600 further includes:

[0152] a third control module, configured to control the first antenna to perform a switching action again if the antenna switching fails;

[0153] The first processing module is used to exit the fingerprint entry interface and generate a notification message when the number of consecutive switching failures reaches a preset threshold, where the notification message is used to notify the user of the entry abnormality.

[0154] Optionally, the target action is a fingerprint unlocking action, and the device 600 further includes:

[0155] The second processing module is configured to start a timer when a target action is recognized;

[0156] The third processing module is configured to control the fingerprint module to collect a first fingerprint image when the timer times out or the antenna switching is completed.

[0157] Optionally, the apparatus 600 further includes:

[0158] a calculation module, configured to calculate the radio frequency interference amount of the first fingerprint image;

[0159] a fourth processing module, configured to add the first fingerprint image to the fingerprint template library, where the fingerprint template library stores fingerprint templates of users for unlocking electronic devices, when the radio frequency interference amount of the first fingerprint image is less than a preset threshold and the electronic device is successfully unlocked using the first fingerprint image.

[0160] The control device of the embodiment of the present application switches the first antenna of the fingerprint module, which is closer to the electronic device than the second antenna, to the second antenna when a fingerprint entry action or a fingerprint unlocking action is recognized. This prevents the image quality collected by the fingerprint module from being affected by the radio frequency interference of the first antenna, thereby improving the quality of the collected fingerprint image and providing the user with a good fingerprint entry and unlocking experience.

[0161] The control device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

[0162] The 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.

[0163] The control device provided in the embodiment of the present application can achieve 2 to Figure 7 To avoid repetition, the various processes implemented in the method embodiment are not described here.

[0164] Alternatively, as Figure 7 As shown, an embodiment of the present application also provides an electronic device 700, including a processor 701 and a memory 702, wherein the memory 702 stores a program or instruction that can be run on the processor 701, and when the program or instruction is executed by the processor 701, the various steps of the above-mentioned control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0165] 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.

[0166] Figure 8 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0167] The electronic device 800 includes but is not limited to components such as a radio frequency unit 801 , a network module 802 , an audio output unit 803 , an input unit 804 , a sensor 805 , a display unit 806 , a user input unit 807 , an interface unit 808 , a memory 809 , and a processor 810 .

[0168] Those skilled in the art will understand that the electronic device 800 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 8 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 repeated here.

[0169] Among them, the processor 810 is used to switch the first antenna to the second antenna when a target action is identified; wherein, the target action includes a fingerprint entry action or a fingerprint unlocking action, and the first antenna is an antenna of a fingerprint module that is closer to the electronic device than the second antenna, and the fingerprint module is a capacitive fingerprint module.

[0170] The electronic device of the present application can prevent the image quality collected by the fingerprint module from being interfered with by the radio frequency of the first antenna, thereby improving the quality of the collected fingerprint image, thereby providing users with a good fingerprint entry and unlocking experience.

[0171] Optionally, the processor 810 is further configured to: record first parameter information related to the first antenna, and switch the first antenna to a second antenna.

[0172] Optionally, the processor 810 is further configured to: upon identifying the target action, restore the working antenna to the first antenna, and parameter information used by the first antenna is the first parameter information recorded before the first antenna is switched.

[0173] Optionally, the target action is a fingerprint entry action, and the processor 810 is also used to: in the case of antenna switching failure, control the first antenna to perform the switching action again; in the case of continuous switching failures reaching a preset threshold, exit the fingerprint entry interface and generate a notification message, which is used to notify the user of the entry abnormality.

[0174] Optionally, the target action is a fingerprint unlocking action, and the processor 810 is further used to: start a timer when the target action is recognized; when the timer times out or the antenna switching is completed, control the fingerprint module to collect the first fingerprint image.

[0175] Optionally, the processor 810 is also used to: calculate the radio frequency interference amount of the first fingerprint image; when the radio frequency interference amount of the first fingerprint image is less than a first threshold and the electronic device is successfully unlocked using the first fingerprint image, add the first fingerprint image to the fingerprint template library, and the fingerprint template library stores the fingerprint template of the user used to unlock the electronic device.

[0176] It should be understood that in an embodiment of the present application, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.

[0177] The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 809 may include a volatile memory or a non-volatile memory, or the memory 809 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0178] Processor 810 may include one or more processing units. Optionally, processor 810 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 810.

[0179] 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 control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0180] The processor is the 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.

[0181] 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 control method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0182] 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.

[0183] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0184] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted 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 the opposite 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.

[0185] 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 the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0186] 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 this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A control method, applied to electronic equipment, characterized in that: include: When a target action is recognized, the first antenna is switched to the second antenna; The target action includes a fingerprint entry action or a fingerprint unlocking action, the first antenna is an antenna of a fingerprint module of the electronic device that is closer to the second antenna, and the fingerprint module is a capacitive fingerprint module.

2. The method according to claim 1, characterized in that Switching the first antenna to the second antenna includes: First parameter information related to the first antenna is recorded, and the first antenna is switched to a second antenna.

3. The method according to claim 1 or 2, characterized in that The method further comprises: When it is recognized that the target action is completed, the working antenna is restored to the first antenna, and the parameter information used by the first antenna is the first parameter information recorded before the first antenna is switched.

4. The method according to claim 1, wherein The target action is a fingerprint entry action, and the method further includes: If antenna switching fails, controlling the first antenna to perform switching again; When the number of consecutive switching failures reaches a preset threshold, the fingerprint entry interface is exited and a notification message is generated, which is used to notify the user of the entry abnormality.

5. The method according to claim 1, wherein The target action is a fingerprint unlocking action, and the method further includes: When the target action is recognized, start the timer; When the timer times out or the antenna switching is completed, the fingerprint module is controlled to collect a first fingerprint image.

6. The method according to claim 5, characterized in that The method further comprises: Calculating the radio frequency interference amount of the first fingerprint image; When the radio frequency interference amount of the first fingerprint image is less than a first threshold and the electronic device is successfully unlocked using the first fingerprint image, the first fingerprint image is added to a fingerprint template library, which stores fingerprint templates of users used to unlock electronic devices.

7. A control device, applied to electronic equipment, characterized in that: include: A first control module is configured to switch the first antenna to the second antenna when a target motion is recognized; Among them, the target action includes a fingerprint entry action or a fingerprint unlocking action, the first antenna is an antenna of a fingerprint module closer to the electronic device than the second antenna, the second antenna is an antenna far away from the fingerprint module, and the fingerprint module is a capacitive fingerprint module.

8. The device according to claim 7, characterized in that The first control module includes: The first control unit is configured to record first parameter information related to the first antenna and switch the first antenna to a second antenna.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control method according to any one of claims 1 to 6 are implemented.

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 a processor, the steps of the control method according to any one of claims 1 to 6 are implemented.