Interface display method and device, electronic equipment, storage medium and program product
By setting multiple NFC antennas on the electronic device and determining the interaction type according to the electrical signal, the problem of electronic devices accidentally triggering the NFC interface during non-NFC interaction is solved, and the recognition accuracy and user experience of NFC interaction are improved.
Patent Information
- Application Number
- CN202510496087.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, electronic devices are prone to accidentally triggering the NFC interface when performing non-NFC interactions such as QR code scanning, blocking the QR code in the screen, affecting the user experience, resulting in low accuracy of NFC interaction recognition.
By setting multiple NFC antennas on the electronic device, the electrical signals of each antenna under the magnetic field of the external NFC device are obtained, and the interaction type is determined as NFC interaction or non-NFC interaction based on the electrical signal, and whether to display the NFC information interface is determined based on the interaction type.
It improves the recognition accuracy of NFC interaction, avoids the NFC information interface popping up during non-NFC interaction, and improves the user experience.
Smart Images

Figure CN120409507A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an interface display method, device, electronic device, storage medium and program product. Background Art
[0002] Near Field Communication (NFC) is a short-range wireless communication technology that allows electronic devices to exchange data when in contact with or near a target device. It is currently widely used. In addition to NFC interaction with a target device, electronic devices can also perform other non-NFC interactions, such as placing the electronic device's screen close to the target device to allow the target device to scan a QR code displayed on the screen. These interactions require the electronic device to be in close proximity to the target device.
[0003] In related technologies, in some scenarios, when a user approaches a target device with an electronic device to perform other non-NFC interactions, such as scanning a QR code, the electronic device may mistakenly identify the interaction as NFC and trigger the NFC interface to pop up on the screen, obscuring the QR code on the screen and preventing the target device from scanning the QR code. Therefore, there is an urgent need to solve the problem of how to accurately identify NFC interactions and accurately display the NFC interface to avoid affecting other interaction processes. Summary of the Invention
[0004] Based on this, it is necessary to provide an interface display method, device, electronic device, storage medium and program product that can improve the accuracy of NFC interaction recognition in response to the above technical problems.
[0005] In a first aspect, the present application provides an interface display method for an electronic device, wherein the electronic device includes multiple NFC antennas disposed at different locations; the method comprises:
[0006] Obtaining the electrical signals generated by each NFC antenna under the influence of the magnetic field of the external NFC device;
[0007] determining an interaction type of the electronic device according to each electrical signal; the interaction type is NFC interaction or non-NFC interaction;
[0008] Determine whether to display the NFC information interface based on the interaction type.
[0009] In a second aspect, the present application further provides an interface display device for an electronic device, wherein the electronic device includes multiple NFC antennas disposed at different locations; the device includes:
[0010] An acquisition module, configured to acquire an electrical signal generated by each NFC antenna under the action of a magnetic field of an external NFC device;
[0011] A determination module, configured to determine an interaction type of the electronic device according to each electrical signal; the interaction type is NFC interaction or non-NFC interaction;
[0012] A display module, configured to determine whether to display an NFC information interface according to the interaction type.
[0013] In a third aspect, the present application further provides an electronic device, which includes a plurality of NFC antennas and an NFC chip; each NFC antenna is arranged at a different position of the electronic device; each NFC antenna is configured to generate an electrical signal under the action of a magnetic field of an external device; the NFC chip is configured to determine an interaction type of the electronic device according to each electrical signal; the interaction type is NFC interaction or non-NFC interaction; and determine whether to display an NFC information interface according to the interaction type.
[0014] In a fourth aspect, the present application further provides an electronic device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the steps described in the first aspect are implemented.
[0015] In a fifth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0016] In a sixth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0017] The above interface display method, device, electronic device, storage medium, and program product obtain electrical signals generated by each NFC antenna located at different positions in the electronic device under the action of the magnetic field of an external NFC device; determine whether the interaction type of the electronic device is NFC interaction or non-NFC interaction according to each electrical signal; and determine whether to display the NFC information interface according to the interaction type. Since the positions of the NFC antennas are different, and the postures of the user holding the electronic device close to the external NFC device are also different for different interaction types, the magnitudes of the electrical signals generated by each NFC antenna under the magnetic field of the external NFC device when the user holds the electronic device close to the external NFC device in the NFC interaction type are different from those in the non-NFC interaction type. Therefore, the interaction type between the electronic device and the external NFC device can be determined according to each electrical signal, and thus it can be determined whether to display the NFC information interface, improving the accuracy of NFC interaction. It can be understood that if it is non-NFC interaction, the NFC information interface may not be displayed, and at this time, there will be no situation where the NFC information interface blocks the content currently displayed on the screen of the electronic device, improving the intelligence during the interaction between the electronic device and the external NFC device. Description of the Drawings
[0018] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0019] Figure 1 It is an application environment diagram of the interface display method in an embodiment;
[0020] Figure 2 It is a flowchart of the interface display method in an embodiment;
[0021] Figure 3 It is a flowchart of determining the interaction type of the electronic device according to each electrical signal in an embodiment;
[0022] Figure 4 It is a flowchart of determining the interaction type according to each induced field strength in an embodiment;
[0023] Figure 5 It is a flowchart of displaying the NFC information interface in an embodiment;
[0024] Figure 6 It is a schematic structural diagram of an electronic device in an embodiment;
[0025] Figure 7 Schematic diagram of the side of an electronic device in an embodiment;
[0026] Figure 8 Schematic diagram of the structure of an electronic device in another embodiment;
[0027] Figure 9 Schematic diagram of the structure of an electronic device in another embodiment;
[0028] Figure 10 Block diagram of the structure of an interface display device in an embodiment;
[0029] Figure 11 Internal structure diagram of an electronic device in an embodiment. Detailed implementation manners
[0030] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0031] NFC (Near Field Communication) is a short-range wireless communication technology that allows electronic devices to exchange data when in contact with or close to a target device and is currently widely used.
[0032] In the related art, when one side of the screen of an electronic device or the side of the electronic device facing away from the screen approaches a target device, NFC interaction can be triggered, and an NFC interface will pop up on the screen.
[0033] However, as mentioned above, in addition to NFC interaction with a target device, an electronic device can also perform other non-NFC interactions such as bringing the screen of the electronic device close to the target device for the target device to scan a two-dimensional code displayed on the screen, and all these interactions require the electronic device to be close to the target device.
[0034] In some scenarios, when a user wants to use an electronic device to approach a target device for other non-NFC interactions such as scanning a two-dimensional code, when the screen approaches the target device, due to the short induction distance, the electronic device may mistakenly think it is an NFC interaction and accidentally trigger the NFC interface to pop up on the screen of the electronic device, covering the two-dimensional code on the screen and affecting the target device's scanning of the two-dimensional code, thus affecting the user experience. Therefore, there is a problem of low accuracy in NFC interaction recognition in the related art.
[0035] In view of this, an embodiment of the present application provides an interface display method, which includes obtaining electrical signals generated by each NFC antenna located at different positions in an electronic device under the action of the magnetic field of an external NFC device; determining whether the interaction type of the electronic device is NFC interaction or non-NFC interaction according to each electrical signal; and determining whether to display an NFC information interface according to the interaction type. Since the positions of the NFC antennas are different, and the postures of the user holding the electronic device close to the external NFC device are also different for different interaction types, therefore, the magnitudes of the electrical signals generated by each NFC antenna under the magnetic field of the external NFC device when the user holds the electronic device close to the external NFC device in the NFC interaction type are different from those in the non-NFC interaction type. Therefore, the interaction type between the electronic device and the external NFC device can be determined according to each electrical signal, so as to determine whether to display the NFC information interface, improving the accuracy of identifying NFC interaction. Moreover, if it is a non-NFC interaction, the NFC information interface may not be displayed, and at this time, there will be no situation where the NFC information interface obscures the content currently displayed on the screen of the electronic device, improving the intelligence during the interaction between the electronic device and the external NFC device.
[0036] In an exemplary embodiment, the interface display method can be applied to an application environment as Figure 1 shown. The electronic device 101 and the external NFC device 102 can perform NFC interaction or non-NFC interaction. Among them, when the electronic device 101 approaches the external NFC device 102, multiple NFC antennas in the electronic device 101 generate electrical signals under the action of the magnetic field of the external NFC device 102, and the electronic device 101 determines the interaction type according to the electrical signals and determines whether to display the NFC information interface. Optionally, an NFC chip is provided in the electronic device, and the NFC chip executes the steps included in the interface display method. [[ID=?]] [[ID=?]]
[0037] The electronic device 101 can be a laptop computer, a smart phone, a tablet computer, an Internet of Things device, a portable wearable device, etc. Among them, the Internet of Things device can be a smart speaker, a smart vehicle-mounted device, etc., and the portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, a smart glasses, etc.
[0038] In an exemplary embodiment, as Figure 2 shown, an interface display method is provided. Taking the method applied to the electronic device 101 in Figure 1 as an example, the method includes the following steps:
[0039] Step 201: Obtain the electrical signals generated by each NFC antenna under the action of the magnetic field of an external NFC device.
[0040] Among them, the electronic device includes multiple NFC antennas arranged at different positions on the electronic device.
[0041] The external NFC device has NFC communication function. During the operation of the external NFC device, a magnetic field will be generated. When the NFC function of the electronic device is turned on and the electronic device is close to the external NFC device, the NFC antenna will induce a current under the action of this magnetic field. Among them, each NFC antenna includes an NFC radiator. The distances between the NFC radiators and the external NFC device are different, the magnitudes of the induced magnetic fields are different, and the electrical signals generated by the NFC radiators are different.
[0042] In the embodiment of the present application, when the user wants to use the electronic device to interact with an external NFC device, the user holds the electronic device close to the external NFC device. When the electronic device is within a preset range around the external NFC device, the electrical signals are generated by the NFC antennas in the electronic device under the action of the magnetic field of the external NFC device.
[0043] Step 202: Determine the interaction type of the electronic device according to each electrical signal. The interaction type is NFC interaction or non-NFC interaction.
[0044] In an optional embodiment of the present application, as Figure 1 shown, the NFC induction area of the external NFC device can emit a magnetic field. It can be understood that when the interaction type is NFC interaction, the user needs to hold the electronic device close to the NFC induction area. At this time, even though the installation positions of the multiple NFC antennas in the electronic device are different, since the entire electronic device is close to the NFC induction area, the multiple NFC antennas can all sense a relatively strong field strength and generate electrical signals with relatively small differences. When the interaction type is non-NFC interaction, for example, it is a QR code interaction. At this time, the user needs to hold the electronic device close to the area for scanning the QR code. Since the installation positions of the multiple NFC antennas in the electronic device are different, the distances between each NFC antenna and the NFC induction area vary greatly, and the magnetic fields acting on each NFC antenna also have differences, and thus the differences in the generated electrical signals are relatively large.
[0045] Therefore, in the embodiment of the present application, when it is determined that the electronic device wants to interact with an external NFC device, the electrical signals generated by each NFC antenna can be obtained, and the interaction type can be determined according to each electrical signal, so as to determine whether to display the NFC information interface.
[0046] Step 203: Determine whether to display the NFC information interface according to the interaction type.
[0047] If the interaction type is NFC interaction, an NFC information interface is displayed for the user to clarify the specific information of the NFC interaction between the electronic device and an external NFC device. For example, if the NFC information interface includes a pre-set virtual bus card, the current NFC interaction is based on this virtual bus card with an external NFC device.
[0048] If the interaction type is non-NFC interaction, the NFC information interface is not displayed to avoid obscuring other information displayed on the screen of the electronic device.
[0049] It can be understood that the above only uses the interaction method of QR code scanning as an example of non-NFC interaction. The electronic device can also perform other non-NFC interactions with an external NFC device, which are not fully exemplified here.
[0050] The interface display method provided in this application obtains the electrical signals generated by each NFC antenna located at different positions in the electronic device under the action of the magnetic field of an external NFC device; determines whether the interaction type of the electronic device is NFC interaction or non-NFC interaction according to each electrical signal; and determines whether to display the NFC information interface according to the interaction type. Since the positions of each NFC antenna are different, and the postures of the user holding the electronic device close to the external NFC device are also different for different interaction types, therefore, when the user holds the electronic device close to the external NFC device in the NFC interaction type, the magnitudes of the electrical signals generated by each NFC antenna under the magnetic field of the external NFC device are different from those when the user holds the electronic device close to the external NFC device in the non-NFC interaction type. Therefore, the interaction type between the electronic device and the external NFC device can be determined according to each electrical signal, so as to determine whether to display the NFC information interface, improving the accuracy of NFC interaction. It can be understood that if it is non-NFC interaction, the NFC information interface may not be displayed, and at this time, there will be no situation where the NFC information interface obscures the content currently being displayed on the screen of the electronic device, improving the intelligence during the interaction between the electronic device and the external NFC.
[0051] Please refer to Figure 3 , in an alternative embodiment of the present application, an alternative technical process for determining the interaction type of the electronic device according to each electrical signal is provided. As Figure 3 shown, this technical process includes the following steps:
[0052] Step 301: Determine the induction field strength of the external environment where each NFC antenna is located according to each electrical signal.
[0053] In an alternative embodiment of the present application, the closer the NFC antenna is to the NFC induction area, the greater the magnetic field strength acting on the NFC antenna, that is, the greater the induction field strength of the external environment where the NFC antenna is located.
[0054] In a possible implementation, for each electrical signal, the electronic device can amplify, perform analog-to-digital conversion, and other processing on the electrical signal to obtain a digital signal. These digital signals contain a direct current component, and the direct current component is related to the induced field strength of the external environment where the antenna corresponding to the electrical signal is located; Exemplarily, according to the direct current component in the digital signal, the induced field strength of the external environment where the antenna corresponding to the electrical signal is located can be calculated.
[0055] In another possible implementation, the electronic device can determine the signal strength of each electrical signal, and according to the pre-determined correspondence between different signal strengths and induced field strengths, determine the induced field strength of the external environment where the NFC antenna corresponding to each electrical signal is located.
[0056] Step 302: Determine the interaction type according to each induced field strength.
[0057] In a possible implementation, determine the difference between each induced field strength, and determine the interaction type according to the magnitude of the difference.
[0058] In another possible implementation, pre-determine the possible value ranges of the induced field strengths of the NFC antennas at different positions when the interaction type is non-NFC interaction, and determine the possible value ranges of the induced field strengths of the NFC antennas at different positions when the interaction is NFC interaction. In this way, the electronic device is pre-set with the induced field strength ranges corresponding to each NFC antenna for the NFC interaction type and the induced field strength ranges corresponding to each NFC antenna for the non-NFC interaction type.
[0059] When obtaining the induced field strength of each NFC signal, determine the induced field strength range to which each induced field strength belongs, so as to determine the interaction type.
[0060] In the embodiments of the present application, considering that the user's postures are different when using the electronic device to perform different types of interactions with external NFC devices, the electrical signals generated by each NFC antenna of the electronic device under the action of the magnetic field of the external NFC device are different during different types of interactions. Based on the differences in the electrical signals, trace back the induced field strength of the external environment where each NFC antenna is located, so as to quickly and accurately determine whether the current user wants to hold the electronic device for NFC interaction or non-NFC interaction, and reduce the probability of incorrectly popping up the NFC information interface.
[0061] In an exemplary embodiment, the multiple NFC antennas include a first NFC antenna and a second NFC antenna. Taking this as an example, the process of determining the interaction type will be described.
[0062] Please refer to Figure 4 , in an alternative embodiment of the present application, an alternative technical process for determining the interaction type according to each induced field strength is provided. As Figure 4 shown, this technical process includes the following steps:
[0063] Step 401: Subtract the first induced field strength corresponding to the first NFC antenna from the second induced field strength corresponding to the second NFC antenna to obtain a field strength difference.
[0064] Step 402: Determine the interaction type according to the magnitude relationship between the field strength difference and a preset field strength threshold.
[0065] A preset field strength threshold is preset in the electronic device. Exemplarily, in an experimental environment, the reference field strength differences between the first induced field strength and the second induced field strength detected by the first NFC antenna and the second NFC antenna during multiple detections of NFC interactions, and the reference field strength differences between the first induced field strength and the second induced field strength detected by the first NFC antenna and the second NFC antenna during multiple detections of non-NFC interactions are compared, and the critical reference field strength difference between NFC interactions and non-NFC interactions is determined as the preset field strength threshold.
[0066] In an alternative embodiment of the present application, if the field strength difference is less than the preset field strength threshold, the interaction type is determined to be an NFC interaction. If the field strength difference is not less than the preset field strength threshold, the interaction type is determined to be a non-NFC interaction.
[0067] It can be understood that if the field strength difference is less than the preset field strength threshold, it means that the difference in the induced field strengths of the external environments where the first NFC antenna and the second NFC antenna are located is small, that is, the distance difference between the two and the NFC induction area is small, that is, the electronic device is in a scenario where it is close to the NFC induction area and intends to perform an NFC interaction. Therefore, the interaction type is determined to be an NFC interaction at this time.
[0068] On the contrary, if the field strength difference is not less than the preset field strength threshold, it means that the difference in the induced field strengths of the external environments where the first NFC antenna and the second NFC antenna are located is large, that is, the distance difference between the two and the NFC induction area is large, that is, the electronic device is in a scenario of performing a non-NFC interaction. Therefore, the interaction type is determined to be a non-NFC interaction at this time.
[0069] In the embodiment of the present application, setting two NFC antennas can identify the interaction type and improve the accuracy of NFC interaction recognition.
[0070] Please refer to Figure 5 , in an alternative embodiment of the present application, an alternative technical process for displaying an NFC information interface is provided. As Figure 5 shown, this technical process includes the following steps:
[0071] Step 501: Determine target card information according to the first induced field strength and the second induced field strength.
[0072] Step 502: Display an NFC information interface including the target card information.
[0073] Among them, the electronic device can perform NFC interaction with different external NFC devices based on different virtual cards. Therefore, multiple virtual cards can be set in the electronic device, such as virtual bus cards, virtual access cards, etc. In the embodiments of the present application, the corresponding relationship between different virtual cards and different NFC antennas can be determined in advance. In this way, the electronic device can determine which virtual card to perform NFC interaction based on according to the induction field strength of the environment where each NFC antenna is located.
[0074] Taking the first card information corresponding to the first NFC antenna and the second card information corresponding to the second NFC antenna as an example, in an exemplary embodiment, determining the target card information according to the first induction field strength and the second induction field strength includes: if the first induction field strength is greater than the second induction field strength, then taking the first card information corresponding to the first NFC antenna as the target card information. If the first induction field strength is not greater than the second induction field strength, then taking the second card information corresponding to the second NFC antenna as the target card information.
[0075] For example, the first card information is the card information of a bus card, and the second card information is the card information of an access card. When the user wants to use the bus card in the electronic device to perform NFC interaction with an external NFC device on the bus, the user not only brings the electronic device close to the NFC induction area, but also can make the position where the first NFC antenna in the electronic device is located closer to the NFC induction area. At this time, the field strength difference between the first induction field strength and the second induction field strength is less than the preset field strength threshold and the first induction field strength is greater than the second induction field strength. At this time, the electronic device determines that the current scenario is based on the bus card for NFC interaction, and then determines the target card information as the card information of the bus card, and displays an NFC information interface including the card information of the bus card on the screen of the electronic device. When the user wants to use the access card in the electronic device to perform NFC interaction with an external NFC device on the bus, the user not only brings the electronic device close to the NFC induction area, but also can make the position where the second NFC antenna in the electronic device is located closer to the NFC induction area. At this time, the field strength difference between the first induction field strength and the second induction field strength is less than the preset field strength threshold and the first induction field strength is not greater than the second induction field strength. At this time, the electronic device determines that the current scenario is based on the access card for NFC interaction, and then determines the target card information as the card information of the access card, and displays an NFC information interface including the card information of the access card on the screen of the electronic device.
[0076] In an alternative embodiment of the present application, the NFC information interface covers part or all of the area of the electronic device screen, and no specific limitation is made here.
[0077] In an alternative embodiment of the present application, presenting an NFC information interface including target card information includes presenting an NFC information interface including at least the target card information. That is to say, in addition to including the target card information, the NFC information interface may further include other information. The other information is, for example, other virtual card information pre-set in the electronic device. Optionally, the display positions of the target card information and the other information are different.
[0078] In this way, the electronic device can not only present the NFC information interface at an appropriate time, but also flexibly use the currently required virtual card for NFC interaction, improving the intelligence of NFC interaction.
[0079] In summary, this interface display method can reduce the probability of accidental pop-up of the NFC information interface during QR code payment without affecting the user's NFC interaction experience, improving the user experience of interacting with external NFC devices using the electronic device.
[0080] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless clearly stated in this document, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0081] Based on the same inventive concept, an embodiment of the present application further provides an electronic device for implementing the above-mentioned interface display method. The solution provided by this electronic device for solving problems is similar to the solution described in the above method. Therefore, other specific limitations in one or more of the following electronic device embodiments can be referred to the limitations on the interface display method in the above text, and will not be repeated here. And other specific limitations of the interface display method provided above can also be referred to the limitations on the electronic device below, and will not be repeated here.
[0082] Please refer to Figure 6 ... provides an electronic device, which includes multiple NFC antennas and an NFC chip. Each NFC antenna is disposed at a different position of the electronic device.
[0083] Each NFC antenna is used to generate an electrical signal under the action of the magnetic field of an external device.
[0084] NFC chip, configured to determine an interaction type of an electronic device according to each electrical signal; the interaction type is NFC interaction or non-NFC interaction; and determine whether to display an NFC information interface according to the interaction type.
[0085] The above-mentioned electronic device obtains electrical signals generated by each NFC antenna located at different positions in the electronic device under the action of the magnetic field of an external NFC device; determines whether the interaction type of the electronic device is NFC interaction or non-NFC interaction according to each electrical signal; and determines whether to display an NFC information interface according to the interaction type. Since the positions of each NFC antenna are different, and the postures of the user holding the electronic device close to the external NFC device are also different for different interaction types, therefore, when the electronic device is in the NFC interaction type and the user holds the electronic device close to the external NFC device, the magnitudes of the electrical signals generated by each NFC antenna under the magnetic field of the external NFC device are different from those when the electronic device is in the non-NFC interaction type and the user holds the electronic device close to the external NFC device. Therefore, the interaction type between the electronic device and the external NFC device can be determined according to each electrical signal, so as to determine whether to display the NFC information interface, improving the accuracy of NFC interaction. It can be understood that if it is non-NFC interaction, the NFC information interface may not be displayed, and at this time, there will be no situation where the NFC information interface blocks the content currently displayed on the screen of the electronic device, improving the intelligence during the interaction between the electronic device and the external NFC.
[0086] In an exemplary embodiment, the types of each NFC antenna are different.
[0087] For example, multiple NFC antennas include a first NFC antenna and a second NFC antenna. The first NFC antenna is a metal frame antenna, and the second NFC antenna is an FPC antenna.
[0088] Among them, the electronic device includes a middle frame assembly, and the middle frame assembly includes a metal frame, and the metal frame is arranged around the screen of the electronic device. The radiator of the first NFC antenna can be composed of part of the metal frame.
[0089] In addition, an FPC (Flexible Printed Circuit Antenna) antenna is an antenna based on a flexible printed circuit board, with characteristics such as being thin, light, flexible, and bendable. It is made of flexible materials and can adapt to various complex and compact device spaces. The radiator of the second NFC antenna can be an FPC radiator.
[0090] Since the types of the first NFC antenna and the second NFC antenna are different, the selection of their installation positions in the electronic device is different, so the first NFC antenna and the second NFC antenna can be more flexibly arranged in the electronic device.
[0091] Optionally, in addition to the metal frame radiator and the FPC radiator, other radiators made of conductive materials can also be used as antenna radiators, which are not fully exemplified here.
[0092] In an alternative implementation, each NFC antenna is disposed on different sides of the electronic device.
[0093] Among them, each NFC antenna being disposed on different sides of the electronic device may mean that the NFC antenna radiators included in each NFC antenna are disposed on different sides of the electronic device.
[0094] It can be understood that the electronic device includes six sides. As Figure 7 shown, the electronic device includes a first side, a second side, a third side, and a fourth side surrounding the screen. Among them, the first side and the third side are opposite, the second side and the fourth side are opposite. In addition, it also includes a fifth side close to the screen of the electronic device and a sixth side away from the screen of the electronic device. The fifth side and the sixth side are both connected to the first side, the second side, the third side, and the fourth side, and the fifth side and the sixth side are opposite.
[0095] In an alternative embodiment of the present application, taking the electronic device including a first NFC antenna and a second NFC antenna as an example, the first NFC antenna is disposed on one of the first side, the second side, the third side, the fourth side, the fifth side, and the sixth side, and the second NFC antenna is disposed on another one of the first side, the second side, the third side, the fourth side, the fifth side, and the sixth side.
[0096] Taking the first NFC antenna as a metal frame antenna and the second NFC antenna as an FPC antenna as an example, in a possible implementation, since the metal frame of the electronic device is disposed on the first side, the second side, the third side, and the fourth side, and the first NFC antenna is composed of the metal frame, the first NFC antenna is disposed on the first side, the second side, the third side, or the fourth side; the second NFC antenna is an FPC antenna and can be attached to the sixth side. In this way, when the user holds the electronic device and wants to make an external NFC device scan the QR code displayed on the screen of the electronic device, since the screen is close to the external NFC device, that is, the distance between the sixth side and the external NFC device is greater than the distance between the fifth side and the external NFC device. In this way, in the case of non-NFC interaction, the difference in the induced field strength of the environments where the first NFC antenna and the second NFC antenna are located will be more obvious, further improving the accuracy of NFC interaction recognition.
[0097] In another alternative implementation, the distance between each NFC antenna is greater than a preset distance threshold.
[0098] Among them, the distance between each NFC antenna being greater than a preset distance threshold may mean that the distance between the NFC antenna radiators included in each NFC antenna is greater than the preset distance threshold.
[0099] In this way, by limiting the setting positions of each NFC antenna through distance, as long as the condition that the distance between each NFC antenna is greater than the preset distance threshold is satisfied. It can be understood that when the distance between each NFC antenna is greater than the preset distance threshold, there may be a situation where two NFC antennas are set on the same side of the electronic device.
[0100] In the embodiments of the present application, each NFC antenna can be set on different sides, or each NFC antenna can be set according to the preset distance threshold, which improves the flexibility of setting the NFC antenna radiators.
[0101] In an exemplary embodiment, such as Figure 8 shows a schematic structural diagram of another electronic device. Each NFC antenna includes an NFC antenna radiator and a matching circuit, and each matching circuit is arranged between the NFC chip and the corresponding NFC antenna radiator. It can be understood that Figure 8 taking the electronic device including a first NFC antenna and a second NFC antenna as an example, the first NFC antenna includes a first NFC antenna radiator and a matching circuit 1, and the second NFC antenna includes a second NFC antenna radiator and a matching circuit 2.
[0102] The matching circuit is used to transmit the electrical signal generated by the NFC antenna radiator to the NFC chip; and, in the case where the interaction type is NFC interaction, filter the NFC signal output by the NFC chip and then transmit it to the NFC antenna radiator, and tune the NFC antenna radiator to work at the target NFC frequency point.
[0103] In an alternative embodiment of the present application, the circuit structures of each matching circuit are the same.
[0104] In an alternative embodiment of the present application, each matching circuit is connected to the port of the NFC chip to transmit electrical signals and NFC signals through the corresponding ports.
[0105] In an exemplary embodiment, the matching circuit includes a receiving circuit, a filtering circuit, and a tuning circuit.
[0106] The receiving circuit is used to perform signal strength attenuation processing on the electrical signal and then transmit the electrical signal to the NFC chip. Among them, the NFC antenna transmits the electrical signal to the NFC chip through the receiving circuit. However, if the field strength of the external environment where the NFC chip is located is relatively large, it is necessary to use the receiving circuit to attenuate the electrical signal to prevent the receiving circuit from being overloaded.
[0107] A filtering circuit for filtering NFC signals; a tuning circuit for tuning the NFC antenna radiator to operate at a target NFC frequency band. That is, during NFC interaction, the NFC chip needs to output an NFC signal. The NFC signal is filtered by the filtering circuit to remove signals in other non-NFC frequency bands, and the filtered NFC signal is transmitted to the NFC antenna radiator for transmission. Here, the tuning circuit tunes the NFC antenna radiator to operate at the target NFC frequency band to achieve impedance matching of the NFC antenna to support the NFC interaction process.
[0108] Exemplarily, taking an electronic device including a first NFC antenna and a second NFC antenna as an example, the first NFC antenna includes a first NFC antenna radiator and a matching circuit 1, and the second NFC antenna includes a second NFC antenna radiator and a matching circuit 2, as Figure 9 FIG. shows a schematic structural diagram of another electronic device. The matching circuit 1 includes a receiving circuit 1, a filtering circuit 1, and a tuning circuit 1; the matching circuit 2 includes a receiving circuit 2, a filtering circuit 2, and a tuning circuit 2.
[0109] For the matching circuit 1, as Figure 9 shown, the receiving circuit 1 includes a capacitor Crx and a resistor Rrx. The receiving circuit 1 is connected to the RX1 receiving port of the NFC chip to transmit an electrical signal to the NFC chip through this port. The filtering circuit 1 includes an inductor L0b, a capacitor C0, and a capacitor C0'. The tuning circuit 1 includes parallel tuning capacitors C1a and C1b and tuning capacitors C2a, C2b, C2c, and C2d for impedance matching. One end of the filtering circuit is connected to the transmitting port TX1 of the NFC chip. TX1 can be used as the feed source of the first NFC antenna. The NFC chip transmits the NFC signal from this port to the matching circuit 1 and then to the first NFC radiator. In addition, optionally, when the first NFC radiator is a metal frame radiator, if the first NFC radiator is also reused for antennas in other frequency bands, such as being reused for a cellular antenna, the matching circuit 1 can also include an isolation inductor L0a to filter out signals in other non-NFC frequency bands, such as signals in other high-frequency bands.
[0110] The matching circuit 2 has the same structure as the matching circuit 1. As Figure 9As shown, the receiving circuit 2 includes a capacitor Crx and a resistor Rrx. The receiving circuit 2 is connected to the RX2 receiving port of the NFC chip to transmit an electrical signal through this port to the NFC chip. The filtering circuit 2 includes an inductor L0b, a capacitor C0, and a capacitor C0'. The tuning circuit 2 includes a parallel combination of tuning capacitors C1a and C1b and tuning capacitors C2a, C2b, C2c, and C2d for impedance matching. The tuning capacitors C2a, C2b, C2c, and C2d are directly grounded. One end of the filtering circuit is connected to the transmitting port TX2 of the NFC chip. TX2 can be used as the feed of the second NFC antenna. The NFC chip transmits the NFC signal from this port to the matching circuit 2 and then to the second NFC radiator.
[0111] In addition, optionally, if the NFC chip can only receive dot signals through the RX1 port, the matching circuit further includes a bridging capacitor for transmitting the electrical signal generated by the second NFC radiator to the tuning circuit 1, and after passing through the tuning circuit 1 and the receiving circuit 1, it is transmitted to the RX1 port. In this way, the electrical signals generated by the two radiators can enter the NFC chip through RX1. Similarly, if the NFC chip can only receive dot signals through the RX2 port, the matching circuit further includes a bridging capacitor for transmitting the electrical signal generated by the first NFC radiator to the tuning circuit 2, and after passing through the tuning circuit 2 and the receiving circuit 2, it is transmitted to the RX2 port. In this way, the electrical signals generated by the two radiators can enter the NFC chip through RX2.
[0112] Optionally, the capacitance value of the bridging capacitor is less than a preset capacitance threshold, that is, a capacitor with a small capacitance value is used as the bridging capacitor. For example, the preset capacitance threshold is 100 PF. In this way, for the 13.56 MHz NFC signal, the NFC signal is more likely to pass through.
[0113] In an alternative embodiment of the present application, the electronic device includes a floor, and the grounding points of the respective NFC antenna radiators are connected to the floor to be grounded.
[0114] The electronic device provided in the embodiments of the present application is provided with multiple types of different NFC antennas, and uses the NFC chip to identify the interaction type, reducing the probability of incorrect pop-up of the NFC information interface during QR code payment and improving the NFC recognition accuracy.
[0115] Based on the same inventive concept, the embodiments of the present application also provide an interface display device for implementing the above-mentioned interface display method. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more of the following interface display device embodiments can refer to the limitations on the interface display method in the above text and will not be repeated here.
[0116] In one embodiment, as Figure 10As shown, an interface display device 1000 is provided, including: an acquisition module 1001, a determination module 1002, and a display module 1003, where:
[0117] The acquisition module 1001 is configured to acquire electrical signals generated by each NFC antenna under the action of the magnetic field of an external NFC device;
[0118] The determination module 1002 is configured to determine the interaction type of the electronic device according to each electrical signal; the interaction type is NFC interaction or non-NFC interaction;
[0119] The display module 1003 is configured to determine whether to display the NFC information interface according to the interaction type.
[0120] In an alternative embodiment of the present application, the determination module 1002 is specifically configured to: determine the induction field strength of the external environment where each NFC antenna is located according to each electrical signal; determine the interaction type according to each induction field strength.
[0121] In an alternative embodiment of the present application, the determination module 1002 is specifically configured to: subtract the first induction field strength corresponding to the first NFC antenna from the second induction field strength corresponding to the second NFC antenna to obtain a field strength difference; determine the interaction type according to the magnitude relationship between the field strength difference and a preset field strength threshold.
[0122] In an alternative embodiment of the present application, the determination module 1002 is specifically configured to: if the field strength difference is less than the preset field strength threshold, determine that the interaction type is NFC interaction; if the field strength difference is not less than the preset field strength threshold, determine that the interaction type is non-NFC interaction.
[0123] In an alternative embodiment of the present application, the display module 1003 is specifically configured to: if the interaction type is non-NFC interaction, do not display the NFC information interface; if the interaction type is NFC interaction, display the NFC information interface.
[0124] In an alternative embodiment of the present application, the display module 1003 is specifically configured to: determine target card information according to the first induction field strength and the second induction field strength; display the NFC information interface including the target card information.
[0125] In an alternative embodiment of the present application, the display module 1003 is specifically configured to: if the first induction field strength is greater than the second induction field strength, use the first card information corresponding to the first NFC antenna as the target card information; if the first induction field strength is not greater than the second induction field strength, use the second card information corresponding to the second NFC antenna as the target card information.
[0126] Each module in the above interface display device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0127] In an exemplary embodiment, an electronic device is provided, and its internal structural diagram can be as Figure 11 shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used for exchanging information between the processor and external devices. The communication interface of the electronic device is used for communicating with external terminals in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC), or other technologies. The computer program, when executed by the processor, implements an interface display method. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the electronic device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the electronic device, or an external keyboard, touchpad, or mouse, etc.
[0128] Those skilled in the art can understand that Figure 11 the structure shown in
[0129] is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.
[0130] In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0131] In one embodiment, a computer program product is provided, including a computer program which, when executed by a processor, implements the steps in the above method embodiments.
[0132] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above method embodiments. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0133] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope described in this specification.
[0134] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several variations and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. An interface display method, characterized in that, For an electronic device, the electronic device includes a plurality of NFC antennas disposed at different positions; the method includes: Obtaining electrical signals generated by each of the NFC antennas under the action of the magnetic field of an external NFC device; Determining an interaction type of the electronic device according to each of the electrical signals; the interaction type is NFC interaction or non-NFC interaction; Determining whether to display an NFC information interface according to the interaction type.
2. The method according to claim 1, characterized in that, The determining the interaction type of the electronic device according to each of the electrical signals includes: Determining an induction field strength of an external environment where each of the NFC antennas is located according to each of the electrical signals; Determining the interaction type according to each induction field strength.
3. The method according to claim 2, wherein The plurality of NFC antennas includes a first NFC antenna and a second NFC antenna, and the determining the interaction type according to each induction field strength includes: Taking a difference between a first induction field strength corresponding to the first NFC antenna and a second induction field strength corresponding to the second NFC antenna to obtain a field strength difference; Determining the interaction type according to a magnitude relationship between the field strength difference and a preset field strength threshold.
4. The method according to claim 3, wherein The determining the interaction type according to the magnitude relationship between the field strength difference and the preset field strength threshold includes: If the field strength difference is less than the preset field strength threshold, determining that the interaction type is the NFC interaction; If the field strength difference is not less than the preset field strength threshold, determining that the interaction type is non-NFC interaction.
5. The method according to claim 3, characterized in that, The determining whether to display an NFC information interface according to the interaction type includes: If the interaction type is non-NFC interaction, not displaying the NFC information interface; If the interaction type is NFC interaction, displaying the NFC information interface.
6. The method according to claim 5, wherein The displaying the NFC information interface includes: Determining target card information according to the first induction field strength and the second induction field strength; Displaying the NFC information interface including the target card information.
7. The method according to claim 6, wherein The determining the target card information according to the first induction field strength and the second induction field strength includes: If the first induction field strength is greater than the second induction field strength, using first card information corresponding to the first NFC antenna as the target card information; If the first induction field strength is not greater than the second induction field strength, using second card information corresponding to the second NFC antenna as the target card information.
8. An interface display device, characterized in that, For an electronic device, the electronic device includes a plurality of NFC antennas disposed at different positions; the apparatus includes: An obtaining module, configured to obtain electrical signals generated by each of the NFC antennas under the action of the magnetic field of an external NFC device; A determining module, configured to determine an interaction type of the electronic device according to each of the electrical signals; the interaction type is NFC interaction or non-NFC interaction; A displaying module, configured to determine whether to display an NFC information interface according to the interaction type.
9. An electronic device, characterized in that, The electronic device includes a plurality of NFC antennas and an NFC chip; each of the NFC antennas is disposed at different positions of the electronic device; Each of the NFC antennas is configured to generate an electrical signal under the action of the magnetic field of an external device; The NFC chip is configured to determine an interaction type of the electronic device according to each of the electrical signals; the interaction type is NFC interaction or non-NFC interaction; and determine whether to display an NFC information interface according to the interaction type.
10. The electronic device according to claim 9, wherein Each of the NFC antennas is disposed on different sides of the electronic device.
11. The electronic device according to claim 9, wherein The distance between each of the NFC antennas is greater than a preset distance threshold.
12. The electronic device according to claim 9, wherein The multiple NFC antennas include a first NFC antenna and a second NFC antenna; The first NFC antenna is a metal frame antenna, and the second NFC antenna is an FPC antenna.
13. The electronic device according to any one of claims 9 to 12, characterized in that, Each of the NFC antennas includes an NFC antenna radiator and a matching circuit; each of the matching circuits is disposed between the NFC chip and the corresponding NFC antenna radiator; The matching circuit is configured to transmit the electrical signal generated by the NFC antenna radiator to the NFC chip; and, in the case where the interaction type is NFC interaction, perform filtering processing on the NFC signal output by the NFC chip and then transmit it to the NFC antenna radiator, and tune the NFC antenna radiator to operate at a target NFC frequency point.
14. The electronic device according to claim 13, characterized in that, The matching circuit includes a receiving circuit, a filtering circuit, and a tuning circuit; The receiving circuit is configured to perform signal strength attenuation processing on the electrical signal and then transmit the electrical signal to the NFC chip; The filtering circuit is configured to perform filtering processing on the NFC signal; The tuning circuit is configured to tune the NFC antenna radiator to operate at a target NFC frequency point.
15. An electronic device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
16. A storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 7 are implemented.
17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Short-distance wireless communication method and electronic equipment
CN114638605A
Near field communication function management method and device, electronic equipment and storage medium
CN115438689A
Display method, electronic equipment and computer storage medium
CN117749936A
Mobile terminal
CN118175227A