CN115765802A - Electronic device, detection method, and readable storage medium - Google Patents

Electronic device, detection method, and readable storage medium Download PDF

Info

Publication number
CN115765802A
CN115765802A CN202211303216.6A CN202211303216A CN115765802A CN 115765802 A CN115765802 A CN 115765802A CN 202211303216 A CN202211303216 A CN 202211303216A CN 115765802 A CN115765802 A CN 115765802A
Authority
CN
China
Prior art keywords
antennas
antenna
target
human body
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211303216.6A
Other languages
Chinese (zh)
Inventor
李志光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202211303216.6A priority Critical patent/CN115765802A/en
Publication of CN115765802A publication Critical patent/CN115765802A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Near-Field Transmission Systems (AREA)

Abstract

The application discloses electronic equipment, a detection method and a readable storage medium, and belongs to the technical field of communication. An electronic device, comprising: the first antennas are connected in series and arranged at intervals, and each first antenna can perform card reading detection by receiving and transmitting near field communication signals; the first controller is connected with the plurality of first antennas and used for acquiring voltage signals of the plurality of first antennas; and under the condition that the signal value variation of the voltage signal is greater than the preset variation, controlling the plurality of first antennas to perform card reading detection and human body detection.

Description

Electronic device, detection method, and readable storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to an electronic device, a detection method and a readable storage medium.
Background
With the development of electronic technology and sensor technology, people have higher and higher requirements on the safety and convenience of electronic equipment. For reducing the radiation damage of the electronic device to the human body, a sensor is usually arranged to detect whether the human body is approaching, and when the human body approaches the electronic device, the transmission power of the electronic device is properly reduced. For the use condition of using the electronic device as a card reader in daily life, the NFC card reading function can be generally adopted.
In the related art, in order for an electronic device to simultaneously satisfy a human body approach detection function and an NFC card reading function, a SAR sensor and an NFC antenna need to be respectively disposed in the electronic device. Resulting in increased manufacturing costs and increased space footprint.
Disclosure of Invention
An object of the embodiments of the present application is to provide an electronic device, a detection method, and a readable storage medium, which achieve reduction of manufacturing cost of the electronic device and save an internal space of the electronic device.
In a first aspect, an embodiment of the present application provides an electronic device, including: the first antennas are connected in series and arranged at intervals, and each first antenna can perform card reading detection by receiving and transmitting near field communication signals; the first controller is connected with the plurality of first antennas and is used for acquiring voltage signals of the plurality of first antennas; and under the condition that the signal value variation of the voltage signal is greater than the preset variation, controlling the plurality of first antennas to perform card reading detection and human body detection.
In a second aspect, an embodiment of the present application provides a detection method, which is used for the electronic device in the first aspect. The detection method comprises the following steps: acquiring voltage signals of a plurality of first antennas; and under the condition that the signal value variation of the voltage signal is greater than the preset variation, controlling the plurality of first antennas to perform card reading detection and human body detection.
In a third aspect, an embodiment of the present application provides an electronic device. The electronic device includes a memory and a processor. A memory having a program or instructions stored thereon; a processor, configured to implement the steps of the detection method provided in the second aspect when executing the program or the instructions.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when the program or instructions are executed by a processor, the program or instructions implement the steps of the detection method provided in the second aspect.
In a fifth aspect, the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the method according to the second aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored in a storage medium, which is executed by at least one processor to implement a method as in the second aspect.
The embodiment of the application has the advantages that the plurality of first antennas are arranged in series, the signal value variation of the voltage signal of the equivalent antenna formed by the series connection of the plurality of first antennas is detected through the first controller, so that the human body detection and the NFC card reading detection can be synchronously performed, hardware such as a sensor for performing the human body detection is not required to be independently installed in the electronic equipment, the manufacturing cost of the electronic equipment is reduced, and the inner space of the electronic equipment is saved.
According to the embodiment of the application, the human body detection is carried out on the plurality of first antennas with the NFC identification function, no additional human body detection hardware is arranged, the interference influence caused by hardware between NFC card reading detection and human body detection is fundamentally avoided, and the hardware design is simplified.
Drawings
Fig. 1 shows one of the structural block diagrams of an electronic device provided in an embodiment of the present application;
fig. 2 shows one of the schematic structural diagrams of the electronic device provided in the embodiment of the present application;
fig. 3 shows one of the circuit diagrams of the electronic device provided by the embodiment of the present application;
fig. 4 shows a second schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 shows a second circuit diagram of an electronic device provided by an embodiment of the present application;
FIG. 6 shows a graph of the distance between a metal equivalent and a first antenna and the voltage value at the first antenna provided by an embodiment of the present application;
fig. 7 shows a schematic flowchart of a detection method provided in an embodiment of the present application;
FIG. 8 is a block diagram illustrating a structure of a detection apparatus provided in an embodiment of the present application;
fig. 9 shows a second block diagram of the electronic device according to the embodiment of the present application;
fig. 10 shows a hardware structure diagram of an electronic device according to an embodiment of the present application.
Wherein, the corresponding relation between the reference numbers and the part names in fig. 1 to 5 is as follows:
100 electronic device, 110 first antenna, 120 first controller, 130NFC chip, 140 application processor, 150 antenna matching circuit, 160 second antenna.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application are capable of operation in sequences other than those illustrated or described herein, and that the terms "first," "second," etc. are generally used in a generic sense and do not limit the number of terms, e.g., a first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The electronic device, the detection method, and the readable storage medium provided by the embodiments of the present application are described in detail with reference to fig. 1 to 10 through specific embodiments and application scenarios thereof.
In some embodiments of the present application, an electronic device is provided, and fig. 1 shows one of the structural block diagrams of the electronic device provided in the embodiments of the present application. As shown in fig. 1, the electronic device 100 includes: a plurality of first antennas 110 and a first controller 120.
The plurality of first antennas 110 are connected in series, the plurality of first antennas 110 are arranged at intervals, and each first antenna 110 can perform card reading detection by receiving and transmitting near field communication signals;
near Field Communication (NFC) is a Near Field Communication technology based on 13.56MHz, and is mainly used in scenes such as user access cards, traffic cards, attendance cards, identity cards and the like.
The first controller 120 is connected to the plurality of first antennas 110, and the first controller 120 is configured to obtain voltage signals of the plurality of first antennas 110;
and under the condition that the signal value variation of the voltage signal is greater than the preset variation, controlling the plurality of first antennas 110 to perform card reading detection and human body detection.
In the embodiment of the present application, the plurality of first antennas 110 are connected in series to form an equivalent antenna. When the metal equivalent is close to or far from one or more of the first antennas 110, the inductance value and the capacitance value of the close or far first antenna 110 are changed, and the corresponding inductance value and capacitance value of the whole equivalent antenna are changed, so that the signal value of the voltage signal at the whole equivalent antenna is changed. Therefore, when the detected signal value variation of the voltage signal is greater than the preset variation, it can be determined that a metal equivalent is close to or away from the plurality of first antennas 110, that is, a human body or an NFC (Near Field Communication) identification card is detected to be close to, and at this time, the plurality of first antennas 110 are controlled to perform card reading detection and human body detection synchronously, so as to determine whether the human body is close to or away from the plurality of first antennas 110 or the NFC identification card is close to the plurality of first antennas 110.
The first antenna 110 is an antenna capable of transceiving near field communication signals. When detecting that a metal equivalent is close to or far from the plurality of first antennas 110, the first controller 120 attempts to wake up the metal equivalent by controlling the plurality of first antennas 110 to read a card, and when the wake-up is successful, the close metal equivalent can be determined to be an NFC card, and when the wake-up is failed, the close metal equivalent can be determined to be a human body, so that whether the human body is close to or far away from the NFC identification card can be detected. In the embodiment of the present application, the plurality of first antennas 110 are provided at intervals, so that the plurality of first antennas 110 can be distributed at intervals inside the electronic device 100.
Fig. 2 shows one of the structural schematic diagrams of the electronic device 100 provided in the embodiment of the present application, and as shown in fig. 2, the number of the first antennas 110 is 4, and the 4 first antennas 110 are distributed at intervals on the inner peripheral side of the electronic device 100. In the process of performing NFC card reading detection and human body detection by a user, the metal equivalent can be detected and identified by the electronic device 100 from which direction the metal equivalent is close to or away from the electronic device 100, so that the detection performance of NFC is improved, and the situation that the card reading of the NFC identification card is invalid due to the fact that the NFC identification card is close to the electronic device 100 from a certain position is avoided.
Illustratively, the first antennas 110 are antennas obtained by designing coils on a Flexible Printed Circuit Board (FPC), each of the first antennas 110 includes two terminals, ANT + (Antenna +, positive Antenna) and ANT- (Antenna-, negative Antenna), and the plurality of first antennas 110 are connected in series by ANT + and ANT-in sequence. Specifically, the ANT + of one first antenna 110 of the adjacent two first antennas 110 is connected to the ANT-of the other first antenna 110.
Fig. 3 shows one of the circuit diagrams of the electronic device 100 provided in the embodiment of the present application, and as shown in fig. 3, the electronic device 100 includes an application processor 140, an NFC chip 130, an antenna matching circuit 150, and a plurality of first antennas 110 connected in series. Wherein the first controller 120 is disposed in the NFC chip 130. The NFC chip 130 is an integrated circuit, and the NFC chip 130 includes the first controller 120 and the radio frequency modem, and can control the multiple first antennas 110 to perform human body detection and card reading detection, so as to accurately detect a metal equivalent, for example: human body, NFC identification card, metal, etc. The antenna matching circuit 150 is disposed between the NFC chip 130 and the plurality of first antennas 110, and the antenna matching circuit 150 includes a passive device required by the first antennas 110, so that the plurality of first antennas 110 can normally transmit signals. The application processor 140 is a process in the electronic device 100 that is responsible for software system operation, mobile phone terminal function timing, and control of peripheral devices. The first controller 120 in the NFC chip 130 can transmit the collected information to the application processor 140 for uniform processing.
According to the embodiment of the application, the plurality of first antennas 110 are arranged in series, and the first controller 120 is used for detecting the signal value variation of the voltage signal of the equivalent antenna formed by the series connection of the plurality of first antennas 110, so that the human body detection and the NFC card reading detection can be synchronously performed, hardware such as a sensor for performing the human body detection does not need to be independently installed in the electronic device 100, the manufacturing cost of the electronic device 100 is reduced, and the internal space of the electronic device 100 is saved.
According to the embodiment of the application, the human body detection is performed on the plurality of first antennas 110 with the NFC identification function, no additional human body detection hardware is arranged, the interference influence caused by hardware between NFC card reading detection and human body detection is fundamentally avoided, and the hardware design is simplified.
In some embodiments of the present application, the first controller 120 controls the plurality of first antennas 110 to perform card reading detection and human body detection based on that the signal value variation of the voltage signal is greater than a preset variation, including: determining that the distance between the target human body and the electronic device 100 is out of a preset distance range under the condition that the plurality of first antennas 110 read the target identification card; in a case where the plurality of first antennas 110 do not read the target identification card, it is determined that the distance between the target human body and the electronic apparatus 100 is within a preset distance range.
In the embodiment of the present application, the target identification card may be an NFC identification card matched with the plurality of first antennas 110. Illustratively, when the first controller 120 detects that the metal equivalent is approaching or moving away from the electronic device 100 through the plurality of first antennas 110, the first controller 120 periodically sends out different card reading detection signals through the plurality of first antennas 110, and the first controller 120 sequentially sends out the card reading detection signals of the four protocols of ISO14443A protocol, ISO14443B protocol, ISO18902 Felica protocol and ISO15693 through the plurality of first antennas 110 during the card reading process. In case of an NFC card being close, the electronic device 100 is able to receive a corresponding reply signal.
The first controller 120 determines that there is a metal equivalent approaching or departing from the electronic device 100 by the amount of change in the signal value of the voltage signal. The first controller 120 controls the plurality of first antennas 110 to transmit a card reading detection signal, detects whether a target identification card approaches the electronic device 100, and determines that the electronic device 100 needs to read a card at this time and determines that a human body does not approach the electronic device 100 at this time when it is detected that the target identification card approaches the electronic device 100. In the case where it is detected that the target identification card does not approach the electronic apparatus 100, it is determined that a human body approaches the electronic apparatus 100 at this time.
In the embodiment of the present application, when the first controller 120 determines that a metal equivalent is close to or far from the electronic device 100, the first antennas 110 are controlled to send a card reading detection signal, so as to execute a complete card reading detection process, and detect whether the metal equivalent is a target identification card. In the case where it is determined that the metal equivalent is not the target identification card, the first controller 120 reads the target identification card, and in the case where it is determined that the metal equivalent is not the target identification card, it is determined that the human body approaches or moves away from the electronic device 100. Under the condition that the first controller 120 detects that the metal equivalent is close to or far away from the electronic device 100, the card reading detection signals are sent through the plurality of first antennas 110, so that whether the metal equivalent is a target identification card or not can be accurately judged, and whether a human body is close to or far away from the electronic device 100 or not can be determined according to the card reading detection signals, so that card reading detection and human body detection are performed synchronously, and the human body detection function is realized while card reading detection accuracy is ensured.
In some embodiments of the present application, the antenna parameters of the plurality of first antennas 110 are different, the antenna parameters including at least one of: size of coil, inductance value, capacitance value.
The electronic device 100 further comprises: a plurality of second antennas 160. The plurality of second antennas 160 are connected to the first controller 120, and the plurality of second antennas 160 correspond to the plurality of first antennas 110 one to one.
The first controller 120, after determining that the distance between the target human body and the electronic device 100 is within the preset distance range under the condition that the plurality of first antennas 110 do not read the target identification card, further includes: and under the condition that the distance between the target human body and the electronic device 100 is within the preset distance range, controlling the target antenna in the plurality of second antennas 160 to perform down-conversion operation according to the signal value of the voltage signal.
In the embodiment of the present application, the plurality of first antennas 110 are connected in series to form an equivalent antenna, and when the metal equivalent is close to or far from different first antennas 110 in the plurality of first antennas 110 under the condition that the antenna parameters of the plurality of first antennas 110 are different, the signal value variation of the voltage signal at the plurality of first antennas 110 is different. After determining that the metal equivalent approaching or departing from the electronic device 100 is a human body, the first controller 120 can determine the approaching or departing direction of the human body according to the signal values of the voltage signals of the plurality of first antennas 110.
Specifically, the inductance L and the capacitance C of the plurality of first antennas 110 are significantly different. The number of the first antennas 110 is 3, which are an antenna a, an antenna B, and an antenna C, respectively. The L1, C1 of the antenna A is much smaller than the L2, C2 of the antenna B, and the L2, C2 of the antenna B is much smaller than the L3, C3 of the antenna C. When a human body approaches to the antenna a, the antenna B, and the antenna C, detuning ranges of equivalent antennas of the antenna a, the antenna B, and the antenna C are different, for example: the detuning range of the equivalent antenna is 2% -8% when the equivalent antenna is close to the antenna A, 10% -18% when the equivalent antenna is close to the antenna B, and 20% -28% when the equivalent antenna is close to the antenna C. Therefore, when a human body approaches or moves away from different antennas of the plurality of first antennas 110, the signal value variation amounts of the voltage signals at the plurality of first antennas 110 are different, and which one of the plurality of first antennas 110 the human body approaches can be determined according to the signal values, thereby determining the direction in which the human body approaches the electronic device 100.
The antenna parameters of the first antenna 110 may include at least one of a size, an inductance value and a capacitance value of the coil, and when a target object is close to or far from the first antenna 110, the inductance value and the capacitance value of the close first antenna 110 are changed, so that the inductance value and the capacitance value of the total equivalent antenna are changed.
In the embodiment of the present application, by setting the antenna parameters of the first antenna 110 to include at least one of the size, the inductance value, and the capacitance value of the coil, it is achieved that, when the metal equivalent is close to the plurality of first antennas 110, the capacitance value and the inductance value of the equivalent antenna of the plurality of first antennas 110 are changed accordingly, so that the signal value of the voltage signal at the plurality of first antennas 110 is changed accordingly, and accurate detection of whether the metal equivalent is close to or away from the electronic device 100 is achieved.
In this embodiment, the electronic device 100 further includes a plurality of second antennas 160, the number of the second antennas 160 is the same as the number of the first antennas 110, and the setting position of the second antennas 160 is adjacent to the setting position of the first antennas 110, that is, the second antennas 160 and the first antennas 110 are arranged in a one-to-one correspondence manner. The plurality of second antennas 160 are rf antennas for transceiving rf signals, and the electronic device 100 transmits the rf signals through the second antennas 160 for communication during the wireless communication process. When detecting that the human body approaches or leaves a certain first antenna 110 of the plurality of first antennas 110, the second antenna 160 corresponding to the first antenna 110 is controlled to perform down-conversion operation, so as to avoid the influence of an excessively high operating frequency of the second antenna 160 on the human body.
Fig. 4 shows a second structural schematic diagram of the electronic device 100 according to the embodiment of the present application, and as shown in fig. 4, the number of the first antennas 110 and the number of the second antennas 160 are both 3, 3 first antennas 110 are distributed at intervals on the inner peripheral side of the electronic device 100, and 3 second antennas 160 and 3 first antennas 110 are adjacently disposed in a one-to-one correspondence manner.
Fig. 5 shows a second circuit diagram of the electronic device 100 according to the embodiment of the application, as shown in fig. 5, the electronic device 100 includes an application processor 140, an NFC chip 130, an antenna matching circuit 150, and a plurality of first antennas 110 connected in series. The coils of the plurality of first antennas 110 are different in size.
Fig. 6 shows a graph of the distance between the metal equivalent and the first antenna 110 and the voltage value at the first antenna 110, as shown in fig. 6, the number of the first antennas 110 is 3, namely, the first antenna a, the first antenna B and the first antenna C. Due to the fact that the antenna parameters of the antenna A, the antenna B and the antenna C are different, the antenna A, the antenna B and the antenna C correspond to different voltage value ranges respectively, namely a voltage value range A, a voltage value range B and a voltage value range C. The voltage value range A and the voltage value range B have intersection, and the voltage value range B and the voltage value range C have intersection. When the voltage value of the first antenna 110 is detected to be in the voltage value range a, it is determined that the human body approaches the antenna a, at this time, the second antenna 160 corresponding to the antenna a is controlled to perform down-conversion operation, and when the voltage value of the first antenna 110 is detected to be in the intersection of the voltage value range B and the voltage value range C, the two second antennas 160 corresponding to the antenna B and the antenna C are controlled to perform down-conversion operation. The accurate detection of the direction of the human body approaching to or departing from the electronic device 100 is realized, and the accurate down-conversion control is performed on the corresponding second antenna 160 based on the detected direction, so that the accuracy of the control is further improved.
Illustratively, when detecting that a human body is close to the electronic device 100, the corresponding second antenna 160 is controlled to perform down-frequency operation, and when detecting that a human body is far away from the electronic device 100, the corresponding second antenna 160 is controlled to resume the original frequency operation. Specifically, it is determined that the human body is close to the electronic device 100 or away from the electronic device 100 according to the variation trend of the signal value of the voltage signal, and when the signal value of the voltage signal is detected to be changed from small to large, it is determined that the human body is close to the electronic device 100, and when the signal value of the voltage signal is detected to be changed from large to small, it is determined that the human body is away from the electronic device 100.
Illustratively, when the distance between the human body and the electronic device 100 is detected to be within the preset range, the corresponding second antenna 160 is controlled to perform down-frequency operation, and when the distance between the human body and the electronic device 100 is detected to be outside the preset range, the corresponding second antenna 160 is controlled to perform operation at the original frequency. Specifically, the relative distance between the human body and the plurality of first antennas 110 is determined according to the signal value of the voltage signal, and the corresponding second antenna 160 is controlled to perform down-conversion operation when the relative distance is within a preset range, and the corresponding second antenna 160 is controlled to perform operation at the original frequency when the relative distance is outside the preset range.
In the embodiment of the present application, the antenna parameters of the plurality of first antennas 110 are different, so that the corresponding voltage value ranges are different, and thus which first antenna 110 is the first antenna 110 close to or far away from the human body can be accurately determined according to the signal value of the voltage signal, thereby realizing the distinguishing of the direction in which the human body is close to the electronic device 100. And according to the direction of the human body approaching the electronic device 100, the second antenna 160 approaching the direction is determined as the target antenna, and the target antenna is controlled to perform the frequency reduction operation, so that the accuracy of controlling the frequency reduction operation of the second antenna 160 is improved.
In the embodiment of the present application, since the antenna parameters of the plurality of first antennas 110 are set differently, when the metal equivalent is at different distances from different first antennas 110, the signal values of the voltage signals at the equivalent antennas corresponding to all the plurality of first antennas 110 are different, and therefore, the absolute distance between the metal equivalent and the electronic device 100 can be estimated by presetting and calibrating in advance.
Note that, the signal values of the voltage signals corresponding to different first antennas 110 in the plurality of first antennas 110, which are close to the metal equivalent, are calibrated before the electronic device 100 is shipped.
In some embodiments of the present application, the antenna parameters of the plurality of first antennas 110 are the same.
In the embodiment of the present application, when it is detected that the human body approaches or moves away from the electronic device 100, the plurality of second antennas 160 are controlled to synchronously perform the down-conversion operation. The arrangement positions of the plurality of second antennas 160 are not particularly limited in the arrangement in which the antenna parameters of the plurality of first antennas 110 are the same. Since the antenna parameters of different antennas in the plurality of first antennas 110 are the same, when the metal equivalent is close to different first antennas 110, the signal values of the voltage signals of the equivalent antennas of the plurality of first antennas 110 are similar, and at this time, in order to prevent the radio frequency signal of the second antenna 160 from affecting the human body, the frequency reduction operation is performed on all the second antennas 160.
In some embodiments of the present application, the electronic device 100 further comprises an antenna matching circuit 150. The first terminal and the second terminal of the antenna matching circuit 150 are connected to the first controller 120 and the plurality of first antennas 110, respectively. The antenna matching circuit 150 includes passive components required by the first antenna 110, so that the plurality of first antennas 110 can transmit signals normally.
In some embodiments of the present application, a detection method is provided, where the detection method is applied to an electronic device in any of the above embodiments, and fig. 7 shows a schematic flow chart of the detection method provided in the embodiments of the present application, and as shown in fig. 7, the detection method includes:
step 702, acquiring voltage signals of a plurality of first antennas;
in the embodiment of the application, a plurality of first antennas are connected in series to form an equivalent antenna. Under the condition that the metal equivalent is close to or far away from one or more first antennas, the inductance value and the capacitance value of the first antenna close to or far away from are changed, and the corresponding inductance value and capacitance value of the whole equivalent antenna are changed, so that the signal value of the voltage signal at the whole equivalent antenna is changed. Before the electronic device is controlled to perform card reading detection and human body detection, voltage signals of a plurality of first antennas need to be acquired.
Step 704, controlling the plurality of first antennas to perform card reading detection and human body detection when the signal value variation of the voltage signal is greater than a preset variation.
In the embodiment of the application, under the condition that the detected signal value variation of the voltage signal is greater than the preset variation, it can be determined that the metal equivalent is close to or away from the first antennas, that is, a human body or an NFC identification card is detected to be close to, and at the moment, the first antennas are controlled to synchronously perform card reading detection and human body detection, so that whether the human body is close to or away from the first antennas or the NFC identification card is close to the first antennas is determined.
The first antenna is an antenna capable of transceiving near field communication signals. Under the condition that the metal equivalent is detected to be close to or far away from the first antennas, card reading detection is conducted by controlling the first antennas, the metal equivalent is tried to be awakened, under the condition that awakening is successful, the close metal equivalent can be determined to be an NFC card, and under the condition that awakening is failed, the close metal equivalent can be determined to be a human body, so that whether the human body is close to or far away is detected, and card reading detection of the NFC identification card is conducted.
According to the embodiment of the application, the plurality of first antennas are arranged in series, and the signal value variation of the voltage signal of the equivalent antenna formed by the series connection of the plurality of first antennas is detected, so that the human body detection and the NFC card reading detection can be synchronously performed, hardware such as a sensor for performing the human body detection is not required to be independently installed in the electronic equipment, the manufacturing cost of the electronic equipment is reduced, and the inner space of the electronic equipment is saved.
In some embodiments of the present application, in a case that a signal value variation amount of the voltage signal is greater than a preset variation amount, controlling the plurality of first antennas to perform card reading detection and human body detection includes:
determining that the distance between the target human body and the electronic equipment is out of a preset distance range under the condition that the plurality of first antennas read the target identification card;
and under the condition that the target identification cards are not read by the plurality of first antennas, determining that the distance between the target human body and the electronic equipment is within a preset distance range.
In the embodiment of the application, the metal equivalent is determined to be close to or far away from the electronic equipment through the signal value variation of the voltage signal. And controlling the plurality of first antennas to send card reading detection signals, detecting whether a target identification card approaches the electronic equipment, judging that the electronic equipment needs to read the card at the moment when the target identification card approaches the electronic equipment, and determining that the human body does not approach the electronic equipment at the moment. And under the condition that the target identification card is not close to the electronic equipment, determining that the human body is close to the electronic equipment at the moment.
The target identification card may be an NFC identification card that matches the plurality of first antennas. Illustratively, when the approach or the departure of the electronic equipment from the metal equivalent is detected through the plurality of first antennas, different card reading detection signals are periodically sent out through the plurality of first antennas, and card reading detection signals of the four protocols of the ISO14443A protocol, the ISO14443B protocol, the ISO18902 Felia protocol and the ISO15693 are sequentially sent out through the plurality of first antennas during card reading. And under the condition that the NFC card is close to the electronic equipment, the electronic equipment can receive a corresponding reply signal.
In the embodiment of the application, when the metal equivalent is determined to be close to or far away from the electronic equipment, the plurality of first antennas are controlled to send the card reading detection signals so as to execute a complete card reading detection process and detect whether the metal equivalent is a target identification card. And reading the target identification card under the condition that the metal equivalent is determined not to be the target identification card, and determining that the human body approaches to or is far away from the electronic equipment under the condition that the metal equivalent is determined not to be the target identification card. Under the condition that the metal equivalent is detected to be close to or far away from the electronic equipment, card reading detection signals are sent through the first antennas, whether the metal equivalent is a target identification card or not can be accurately judged, whether a human body is close to or far away from the electronic equipment or not is determined according to the card reading detection signals, card reading detection and human body detection are carried out synchronously, card reading detection accuracy is guaranteed, and meanwhile a human body detection function is achieved.
In some embodiments of the present application, the antenna parameters of the plurality of first antennas are different, and the electronic device further includes: the plurality of second antennas correspond to the plurality of first antennas one by one;
the antenna parameters include at least one of: size of coil, inductance value, capacitance value.
The antenna parameters of the first antenna may include at least one of a size, an inductance value and a capacitance value of the coil, and when a target object approaches or leaves the first antenna, the inductance value and the capacitance value of the first antenna that is approached may be changed, so that the inductance value and the capacitance value of the total equivalent antenna may be changed.
In the embodiment of the application, the antenna parameters of the first antenna are set to at least one of the size, the inductance value and the capacitance value of the coil, so that under the condition that the metal equivalent is close to the plurality of first antennas, the capacitance value and the inductance value of the equivalent antenna of the plurality of first antennas are changed accordingly, the signal value of the voltage signal at the plurality of first antennas is changed accordingly, and whether the metal equivalent is close to or away from the electronic device is accurately detected.
The electronic equipment further comprises a plurality of second antennas, the number of the second antennas is the same as that of the first antennas, and the setting positions of the second antennas are adjacent to that of the first antennas, namely, the second antennas and the first antennas are arranged in a one-to-one correspondence mode. The plurality of second antennas are radio frequency antennas and are used for receiving and transmitting radio frequency signals, and the electronic equipment transmits the radio frequency signals through the second antennas to carry out communication in the wireless communication process. When the human body is detected to be close to or far away from one of the first antennas, the second antenna corresponding to the first antenna is controlled to carry out frequency reduction operation, and the influence of overhigh operation frequency of the second antenna on the human body is avoided.
Under the condition that the target identification card is not read by the plurality of first antennas, after the distance between the target human body and the electronic device is determined to be within a preset distance range, the method further comprises the following steps:
and controlling a target antenna in the plurality of second antennas to perform frequency reduction operation according to the signal value of the voltage signal.
In this embodiment of the application, when the plurality of first antennas do not read the target identification card, after determining that the distance between the target human body and the electronic device is within the preset distance range, the method further includes: and under the condition that the distance between the target human body and the electronic equipment is within a preset distance range, controlling the target antenna in the plurality of second antennas to perform frequency reduction operation according to the signal value of the voltage signal.
In the embodiment of the application, the plurality of first antennas are connected in series to form an equivalent antenna, and under the condition that the antenna parameters of the plurality of first antennas are different, when the metal equivalent is close to or far away from different first antennas in the plurality of first antennas, the signal value variation of the voltage signals at the plurality of first antennas is different. Therefore, after the metal equivalent approaching or departing from the electronic equipment is determined to be the human body, the approaching or departing direction of the human body can be determined according to the signal values of the plurality of first antenna voltage signals.
Specifically, the inductance L and the capacitance C of the plurality of first antennas are significantly different. The number of the first antennas is 3, which are respectively an antenna A, an antenna B and an antenna C. The L1, C1 of the antenna A is far smaller than the L2, C2 of the antenna B, and the L2, C2 of the antenna B is far smaller than the L3, C3 of the antenna C. When a human body approaches to the antenna a, the antenna B, and the antenna C, detuning ranges of equivalent antennas of the antenna a, the antenna B, and the antenna C are different, for example: the detuning range of the equivalent antenna is 2% -8% when the equivalent antenna is close to the antenna A, 10% -18% when the equivalent antenna is close to the antenna B, and 20% -28% when the equivalent antenna is close to the antenna C. Therefore, when the human body approaches or leaves different antennas of the plurality of first antennas, the signal value variation amounts of the voltage signals at the plurality of first antennas are different, and which of the plurality of first antennas the human body approaches can be determined according to the signal values, so that the direction of the human body approaching the electronic device is determined.
After determining which first antenna of the multiple first antennas the human body approaches, determining a second antenna corresponding to the adjacent first antenna as a target antenna, and controlling the target antenna to perform frequency reduction operation.
Illustratively, when the human body is detected to be close to the electronic equipment, the corresponding second antenna is controlled to perform frequency reduction operation, and when the human body is detected to be far away from the electronic equipment, the corresponding second antenna is controlled to recover the frequency operation. Specifically, whether the human body is close to the electronic equipment or is far away from the electronic equipment is judged according to the change trend of the signal value of the voltage signal, when the signal value of the voltage signal is detected to be changed from small to large, the fact that the human body is close to the electronic equipment is determined, and when the signal value of the voltage signal is detected to be changed from large to small, the fact that the human body is far away from the electronic equipment is determined.
Exemplarily, when the distance between the human body and the electronic device is detected to be within a preset range, the corresponding second antenna is controlled to perform down-frequency operation, and when the distance between the human body and the electronic device is detected to be outside the preset range, the corresponding second antenna is controlled to perform operation at the original frequency. Specifically, the relative distances between the human body and the plurality of first antennas are determined according to the signal values of the voltage signals, the corresponding second antennas are controlled to perform frequency reduction operation under the condition that the relative distances are within a preset range, and the corresponding second antennas are controlled to perform operation at the original frequency under the condition that the relative distances are outside the preset range.
In the embodiment of the application, the antenna parameters of the first antennas are different, so that the corresponding voltage value ranges are different, and the first antenna close to or far away from the human body can be accurately determined according to the signal value of the voltage signal, so that the distinguishing of the direction of the human body close to the electronic equipment is realized. And according to the direction of the human body approaching the electronic equipment, the second antenna approaching the direction is determined as the target antenna, and the target antenna is controlled to perform frequency reduction operation, so that the accuracy of controlling the frequency reduction operation of the second antenna is improved.
In the embodiment of the application, since the antenna parameters among the plurality of first antennas are set in a differentiated manner, when the metal equivalent is at different distances from different first antennas, the signal values of the voltage signals at the equivalent antennas corresponding to the plurality of first antennas are different, and therefore, the absolute distance between the metal equivalent and the electronic device can be estimated by presetting and calibrating in advance.
It should be noted that, when the metal equivalent is close to the signal value of the voltage signal corresponding to different first antennas in the plurality of first antennas, calibration is performed before the electronic device is shipped.
In some embodiments of the present application, controlling a target antenna of the plurality of second antennas to operate down according to a signal value of the voltage signal includes:
determining a target signal value range in a plurality of signal value ranges according to the signal value of the voltage signal, wherein the signal value of the voltage signal is within the target signal value range, and the plurality of signal value ranges are in one-to-one correspondence with the plurality of second antennas; and controlling the target antenna to perform frequency reduction operation, wherein the target antenna corresponds to the target signal value range.
In the embodiment of the present application, the plurality of signal value ranges correspond to the plurality of first antennas one by one, and the signal value ranges of the corresponding voltage signals are different because the antenna parameters of different first antennas are different. Before the electronic equipment leaves a factory, calibrating the signal value range of the voltage signal corresponding to the approach or the distance of the metal equivalent relative to different first antennas to obtain the signal value range corresponding to the first antennas one by one.
After the signal values of the voltage signals of the plurality of first antennas are acquired, a signal value range in which the signal values are located is determined as a target signal value range.
The number of target signal value ranges may be plural. And an intersection exists between two adjacent signal value ranges in the plurality of signal value ranges corresponding to the plurality of first antennas. If the signal value is in the intersection of two signal value ranges, both signal value ranges are taken as target signal ranges.
After the target signal range is determined, the plurality of signal ranges, the plurality of first antennas and the plurality of second antennas are in one-to-one correspondence, so that the corresponding first antennas and the corresponding target antennas in the plurality of second antennas can be determined according to the target signal range, and the target antennas are controlled to perform frequency reduction operation. And under the condition that the target signal range is two adjacent signal ranges, controlling the two corresponding target antennas to perform frequency reduction operation.
In the embodiment of the application, signal value ranges in one-to-one correspondence with the plurality of first antennas are stored in the electronic device. After the signal values of the voltage signals of the first antennas are determined, the target signal value range in the signal value ranges can be determined, the second antenna corresponding to the target signal value range is used as the target antenna, the target antenna is controlled to operate in a frequency reduction mode, and the influence caused when a human body approaches the second antenna which operates in a high frequency mode is avoided. Under the condition that the target signal value ranges are multiple, the operating frequencies of the corresponding second antennas are synchronously reduced, and the stability of controlling the frequency reduction operation of the second antennas is further improved.
In some embodiments of the present application, obtaining voltage signals for a plurality of first antennas comprises:
voltage signals at the plurality of first antennas are collected while the target application is in an operational state, the target application being associated with card reading detection.
In this embodiment of the application, the target application is an application program that needs to read the NFC card, for example: access control applications, bus card applications, and the like. When the electronic equipment runs the target application, the fact that the user possibly has the card reading detection requirement at the moment is judged.
Before the electronic equipment controls the first antenna to perform card reading detection and human body detection, the running state of the target application is detected, when the target application is in the running state, it is judged that the user possibly has the card reading detection requirement at the moment, and the electronic equipment executes and controls the first antenna to perform card reading detection and human body detection. The number of target applications may be plural.
It should be noted that, when the target application is in a non-running state, the electronic device does not need to perform card reading detection, and directly performs human body detection, and the specific detection logic is as follows: the electronic equipment collects voltage signals at the plurality of first antennas, and under the condition that the signal value variation of the voltage signals is larger than the preset variation, the human body is determined to be close to or far away from the electronic equipment. When the target application is in a non-running state, the electronic device judges that the user does not need to read the NFC identification card at the moment, and judges that the metal equivalent approaching or far away from the electronic device is a human body.
And the user starts the functions of card reading detection and human body detection to set based on the target application. Under the condition that a user sets the electronic equipment to continuously start card reading detection, the electronic equipment is always in a state of waiting for the NFC identification card to approach, namely, the card reading is carried out through a corresponding protocol every time the metal equivalent is detected to approach or be far away from the electronic equipment, and the metal equivalent is determined to be a human body if the card reading fails. When a user sets that the electronic equipment starts the target application and then starts card reading detection, the electronic equipment executes the card reading detection only under the condition that the target application is operated, and when the target application is not operated, the electronic equipment directly judges that a human body is close to or far from the electronic equipment if a metal equivalent is detected to be close to or far from the electronic equipment.
In the embodiment of the application, before the electronic device controls the first antenna to perform card reading detection, the running state of the target application is detected through the electronic device, so that the function that the electronic device controls the first antenna to perform card reading detection only when the target application runs is realized, and the processes of card reading detection of the electronic device and human body approach detection are simplified.
According to the detection method provided by the embodiment of the application, the execution main body can be a detection device. In the embodiment of the present application, a detection device executing a detection method is taken as an example, and the detection device provided in the embodiment of the present application is described.
In some embodiments of the present application, a detection apparatus is provided, where the detection apparatus is applied to a first controller of an electronic device in any of the above embodiments, fig. 8 shows a schematic structural diagram of the detection apparatus provided in the embodiments of the present application, and as shown in fig. 8, the detection apparatus 800 includes:
an obtaining module 802, configured to obtain voltage signals of multiple first antennas;
the control module 804 is configured to control the plurality of first antennas to perform card reading detection and human body detection when the signal value variation of the voltage signal is greater than a preset variation.
According to the embodiment of the application, the plurality of first antennas are arranged in series, and the signal value variation of the voltage signal of the equivalent antenna formed by the series connection of the plurality of first antennas is detected, so that the human body detection and the NFC card reading detection can be synchronously performed, hardware such as a sensor for performing the human body detection is not required to be independently installed in the electronic equipment, the manufacturing cost of the electronic equipment is reduced, and the inner space of the electronic equipment is saved.
In some embodiments of the present application, the detection apparatus 800 further comprises:
the first determining module is used for determining that the distance between the target human body and the electronic equipment is out of a preset distance range under the condition that the plurality of first antennas read the target identification card;
the determining module is used for determining that the distance between the target human body and the electronic equipment is within a preset distance range under the condition that the target identification card is not read by the plurality of first antennas.
In the embodiment of the application, when the metal equivalent is determined to be close to or far away from the electronic equipment, the plurality of first antennas are controlled to send the card reading detection signals so as to execute a complete card reading detection process and detect whether the metal equivalent is a target identification card. And reading the target identification card under the condition that the metal equivalent is determined not to be the target identification card, and determining that the human body approaches to or is far away from the electronic equipment under the condition that the metal equivalent is determined not to be the target identification card. Under the condition that the metal equivalent is detected to be close to or far away from the electronic equipment, the card reading detection signals are sent through the first antennas, whether the metal equivalent is a target identification card or not can be accurately judged, whether a human body is close to or far away from the electronic equipment or not is determined according to the card reading detection signals, card reading detection and human body detection are conducted synchronously, card reading detection accuracy is guaranteed, and meanwhile a human body detection function is achieved.
In some embodiments of the present application, the antenna parameters of the plurality of first antennas are different, and the electronic device further includes: the plurality of second antennas correspond to the plurality of first antennas one by one;
the control module 804 is configured to control a target antenna of the multiple second antennas to perform down-conversion operation according to the signal value of the voltage signal.
In the embodiment of the application, the antenna parameters of the first antennas are different, so that the corresponding voltage value ranges are different, and the first antenna close to or far away from the human body can be accurately determined according to the signal value of the voltage signal, so that the direction of the human body close to the electronic equipment is distinguished. And according to the direction of the human body approaching the electronic equipment, the second antenna approaching the direction is determined as the target antenna, and the target antenna is controlled to perform frequency reduction operation, so that the accuracy of controlling the frequency reduction operation of the second antenna is improved.
In some embodiments of the present application, the detection apparatus 800 further comprises:
the second determining module is used for determining a target signal value range in a plurality of signal value ranges according to the signal value of the voltage signal, wherein the signal value of the voltage signal is located in the target signal value range, and the plurality of signal value ranges are in one-to-one correspondence with the plurality of second antennas;
and the control module 804 is configured to control a target antenna to perform frequency reduction operation, where the target antenna corresponds to a target signal value range.
In the embodiment of the application, signal value ranges corresponding to the first antennas one to one are stored in the electronic device. After the signal values of the voltage signals of the first antennas are determined, a target signal value range in the multiple signal value ranges can be determined, the second antenna corresponding to the target signal value range is used as the target antenna, the target antenna is controlled to operate in a frequency reduction mode, and the influence caused when a human body approaches the second antenna in high-frequency operation is avoided. Under the condition that the target signal value ranges are multiple, the operating frequencies of the corresponding second antennas are synchronously reduced, and the stability of controlling the frequency reduction operation of the second antennas is further improved.
In some embodiments of the present application, the obtaining module 802 is configured to collect voltage signals at a plurality of first antennas when a target application is in an operating state, the target application being associated with card reading detection. In the embodiment of the application, before the electronic device controls the first antenna to perform card reading detection, the running state of the target application is detected through the electronic device, so that the function of controlling the first antenna to perform card reading detection by the electronic device only when the target application runs is realized, and the processes of card reading detection and human body approach detection of the electronic device are simplified.
The detection device in the embodiment of the present application may be an electronic device, and may also be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted 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), and the like, and may also be a server, a Network Attached Storage (Network Attached Storage, NAS), a personal computer (NAS), a Television (TV), an assistant, a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The detection 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 (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The detection apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiment, and is not described here again to avoid repetition.
Optionally, an embodiment of the present application further provides an electronic device, which includes the detection apparatus in any of the above embodiments, so that the electronic device has all the beneficial effects of the detection apparatus in any of the embodiments, and redundant description is not repeated here.
Optionally, an electronic device is further provided in an embodiment of the present application, fig. 9 shows a second block diagram of the electronic device according to the embodiment of the present application, and as shown in fig. 9, the electronic device 900 includes a processor 902, a memory 904, and a program or an instruction stored in the memory 904 and executable on the processor 902, and when the program or the instruction is executed by the processor 902, the process of the embodiment of the detection method is implemented, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation to the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 is configured to obtain voltage signals of a plurality of first antennas;
and the processor 1010 is used for controlling the plurality of first antennas to perform card reading detection and human body detection under the condition that the signal value variation of the voltage signal is greater than the preset variation.
According to the embodiment of the application, the plurality of first antennas are arranged in series, and the signal value variation of the voltage signal of the equivalent antenna formed by the series connection of the plurality of first antennas is detected, so that the human body detection and the NFC card reading detection can be synchronously performed, hardware such as a sensor for performing the human body detection is not required to be independently installed in the electronic equipment, the manufacturing cost of the electronic equipment is reduced, and the inner space of the electronic equipment is saved.
Further, the processor 1010 is configured to determine that the distance between the target human body and the electronic device is outside a preset distance range when the plurality of first antennas are read to the target identification card;
the processor 1010 is configured to determine that a distance between the target human body and the electronic device is within a preset distance range when the target identification card is not read by the plurality of first antennas.
In the embodiment of the application, when the metal equivalent is determined to be close to or far away from the electronic equipment, the plurality of first antennas are controlled to send the card reading detection signals so as to execute a complete card reading detection process and detect whether the metal equivalent is a target identification card. And under the condition that the metal equivalent is determined not to be the target identification card, reading the target identification card, and under the condition that the metal equivalent is determined not to be the target identification card, determining that the human body approaches to or is far away from the electronic equipment. Under the condition that the metal equivalent is detected to be close to or far away from the electronic equipment, the card reading detection signals are sent through the first antennas, whether the metal equivalent is a target identification card or not can be accurately judged, whether a human body is close to or far away from the electronic equipment or not is determined according to the card reading detection signals, card reading detection and human body detection are conducted synchronously, card reading detection accuracy is guaranteed, and meanwhile a human body detection function is achieved.
Further, the antenna parameters of the plurality of first antennas are different, and the electronic device further includes: the plurality of second antennas correspond to the plurality of first antennas one by one;
and the processor 1010 is configured to control a target antenna of the plurality of second antennas to perform a down-conversion operation according to the signal value of the voltage signal.
In the embodiment of the application, the antenna parameters of the first antennas are different, so that the corresponding voltage value ranges are different, and the first antenna close to or far away from the human body can be accurately determined according to the signal value of the voltage signal, so that the direction of the human body close to the electronic equipment is distinguished. And according to the direction of the human body approaching the electronic equipment, the second antenna approaching the direction is determined as the target antenna, and the target antenna is controlled to perform frequency reduction operation, so that the accuracy of controlling the frequency reduction operation of the second antenna is improved.
Further, the processor 1010 is configured to determine a target signal value range in a plurality of signal value ranges according to a signal value of the voltage signal, where the signal value of the voltage signal is located in the target signal value range, and the plurality of signal value ranges are in one-to-one correspondence with the plurality of second antennas;
and a processor 1010 configured to control a target antenna to perform a down-conversion operation, where the target antenna corresponds to a target signal value range.
In the embodiment of the application, signal value ranges corresponding to the first antennas one to one are stored in the electronic device. After the signal values of the voltage signals of the first antennas are determined, a target signal value range in the multiple signal value ranges can be determined, the second antenna corresponding to the target signal value range is used as the target antenna, the target antenna is controlled to operate in a frequency reduction mode, and the influence caused when a human body approaches the second antenna in high-frequency operation is avoided. Under the condition that the target signal value ranges are multiple, the operating frequencies of the corresponding second antennas are synchronously reduced, and the stability of controlling the frequency reduction operation of the second antennas is further improved.
In some embodiments of the present application, the processor 1010 is configured to collect voltage signals at the plurality of first antennas when the target application is in an operational state, the target application being associated with card reading detection.
In the embodiment of the application, before the electronic device controls the first antenna to perform card reading detection, the running state of the target application is detected through the electronic device, so that the function of controlling the first antenna to perform card reading detection by the electronic device only when the target application runs is realized, and the processes of card reading detection and human body approach detection of the electronic device are simplified.
It should be understood that, in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like.
Further, the memory 1009 may include volatile memory or non-volatile memory, or the memory 1009 may include both volatile and non-volatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 1009 in the embodiments of the subject application includes, but is not limited to, these and any other suitable types of memory.
Processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor, which primarily handles operations involving the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as computer read only memory ROM, random access memory RAM, magnetic or optical disks, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing detection method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, or a system-on-chip.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing detection method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element. Further, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions recited, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may 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) and includes several instructions for enabling a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method of the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. An electronic device, comprising:
the antenna comprises a plurality of first antennas, a plurality of second antennas and a plurality of antenna units, wherein the plurality of first antennas are connected in series and arranged at intervals, and each first antenna can carry out card reading detection by transceiving near field communication signals;
the first controller is connected with the plurality of first antennas and is used for acquiring voltage signals of the plurality of first antennas;
and under the condition that the signal value variation of the voltage signal is larger than a preset variation, controlling the plurality of first antennas to perform card reading detection and human body detection.
2. The electronic device of claim 1, wherein the first controller controls the plurality of first antennas to perform card reading detection and human body detection based on a condition that a signal value variation of the voltage signal is greater than a preset variation, and the method comprises:
determining that the distance between the target human body and the electronic equipment is out of a preset distance range under the condition that the plurality of first antennas read the target identification card;
and under the condition that the target identification card is not read by the plurality of first antennas, determining that the distance between the target human body and the electronic equipment is within the preset distance range.
3. The electronic device of claim 2, wherein the plurality of first antennas differ in antenna parameters including at least one of size of coil, inductance value, capacitance value;
the electronic device further includes:
the second antennas are connected with the first controller and correspond to the first antennas one by one;
the first controller, after determining that the distance between the target human body and the electronic device is within the preset distance range under the condition that the target identification card is not read by the plurality of first antennas, further includes: and under the condition that the distance between the target human body and the electronic equipment is within a preset distance range, controlling a target antenna in the plurality of second antennas to perform frequency reduction operation according to the signal value of the voltage signal.
4. The electronic device of any of claims 1-3, further comprising:
and a first end of the antenna matching circuit is connected with the first controller, and a second end of the antenna matching circuit is connected with the plurality of first antennas.
5. A detection method applied to the electronic device of any one of claims 1 to 4, comprising:
acquiring voltage signals of the plurality of first antennas;
and under the condition that the signal value variation of the voltage signal is larger than a preset variation, controlling the plurality of first antennas to perform card reading detection and human body detection.
6. The detection method according to claim 5, wherein the controlling the plurality of first antennas to perform card reading detection and human body detection when the signal value variation of the voltage signal is larger than a preset variation comprises:
determining that the distance between the target human body and the electronic equipment is out of a preset distance range under the condition that the plurality of first antennas read the target identification card;
and under the condition that the target identification card is not read by the plurality of first antennas, determining that the distance between the target human body and the electronic equipment is within the preset distance range.
7. The method of claim 6, wherein the antenna parameters of the first antennas are different, the electronic device further comprising: a plurality of second antennas in one-to-one correspondence with the plurality of first antennas;
after determining that the distance between the target human body and the electronic device is within the preset distance range under the condition that the target identification card is not read by the plurality of first antennas, the method further includes:
and controlling a target antenna in the plurality of second antennas to perform frequency reduction operation according to the signal value of the voltage signal.
8. The method according to claim 7, wherein the controlling a target antenna of the plurality of second antennas to operate down according to the signal value of the voltage signal comprises:
determining a target signal value range in a plurality of signal value ranges according to the signal value of the voltage signal, wherein the signal value of the voltage signal is within the target signal value range, and the plurality of signal value ranges are in one-to-one correspondence with the plurality of second antennas;
and controlling the target antenna to perform frequency reduction operation, wherein the target antenna corresponds to the target signal value range.
9. The method according to any one of claims 5 to 8, wherein the obtaining voltage signals of the plurality of first antennas comprises:
collecting voltage signals at the plurality of first antennas while a target application is in a running state, the target application being associated with the card reading detection.
10. An electronic device, comprising:
a memory having a program or instructions stored thereon;
a processor for implementing the steps of the detection method of any one of claims 5 to 9 when executing the program or instructions.
11. A readable storage medium on which a program or instructions are stored, characterized in that said program or instructions, when executed by a processor, implement the steps of the detection method according to any one of claims 5 to 9.
CN202211303216.6A 2022-10-24 2022-10-24 Electronic device, detection method, and readable storage medium Pending CN115765802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211303216.6A CN115765802A (en) 2022-10-24 2022-10-24 Electronic device, detection method, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211303216.6A CN115765802A (en) 2022-10-24 2022-10-24 Electronic device, detection method, and readable storage medium

Publications (1)

Publication Number Publication Date
CN115765802A true CN115765802A (en) 2023-03-07

Family

ID=85352933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211303216.6A Pending CN115765802A (en) 2022-10-24 2022-10-24 Electronic device, detection method, and readable storage medium

Country Status (1)

Country Link
CN (1) CN115765802A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107636893A (en) * 2015-05-06 2018-01-26 微软技术许可有限责任公司 It is configured to the multiple antenna communication of detection object
CN108700938A (en) * 2017-02-16 2018-10-23 华为技术有限公司 It is a kind of detection electronic equipment close to human body method, apparatus and equipment
CN111405652A (en) * 2020-04-23 2020-07-10 闻泰通讯股份有限公司 Electronic device, radiation power control method, radiation power control device, and storage medium
US20210376866A1 (en) * 2018-10-15 2021-12-02 Samsung Electronics Co., Ltd. Electronic device for controlling output of antenna by using apc of communication module, and method for operation of electronic device
CN114389727A (en) * 2022-03-22 2022-04-22 荣耀终端有限公司 Method for detecting approach of life body to terminal equipment, terminal equipment and chip
CN115226185A (en) * 2021-04-16 2022-10-21 华为技术有限公司 Transmission power control method and related equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107636893A (en) * 2015-05-06 2018-01-26 微软技术许可有限责任公司 It is configured to the multiple antenna communication of detection object
CN108700938A (en) * 2017-02-16 2018-10-23 华为技术有限公司 It is a kind of detection electronic equipment close to human body method, apparatus and equipment
US20210376866A1 (en) * 2018-10-15 2021-12-02 Samsung Electronics Co., Ltd. Electronic device for controlling output of antenna by using apc of communication module, and method for operation of electronic device
CN111405652A (en) * 2020-04-23 2020-07-10 闻泰通讯股份有限公司 Electronic device, radiation power control method, radiation power control device, and storage medium
CN115226185A (en) * 2021-04-16 2022-10-21 华为技术有限公司 Transmission power control method and related equipment
CN114389727A (en) * 2022-03-22 2022-04-22 荣耀终端有限公司 Method for detecting approach of life body to terminal equipment, terminal equipment and chip

Similar Documents

Publication Publication Date Title
EP3246801B1 (en) Combined fingerprint recognition touch screen device, method of driving the touch screen device, and electronic device including the touch screen device
US10446910B2 (en) Electronic device with antenna
EP2728510B1 (en) NFC device and communication method
US11616294B2 (en) Antenna for wireless communication and electronic device including the same
US9935359B2 (en) Antenna and electronics device including the same
EP3476004B1 (en) Electronic device employing antenna impedance matching and corresponding method
EP3335270B1 (en) Antenna device and electronic device including the same
CN107818296A (en) Including luminescence display to provide the electronic installation based on optical fingerprint detection
US10993191B2 (en) Electronic device having array antenna and power backoff method for antenna array
CN108875643B (en) Fingerprint module, fingerprint identification method and device, storage medium and mobile terminal
CN107527048B (en) Fingerprint identification method and device, storage medium and mobile terminal
EP3547253B1 (en) Image analysis method and device
US11435462B2 (en) Electronic device for performing ranging and method thereof
US20110256832A1 (en) Apparatus and method for controlling smart card comprised of multi sensor
EP3309733A1 (en) Electronic device for transmitting data and method for controlling the same
US20220120885A1 (en) Electronic device for recognizing object, and operating method thereof
CN104066052A (en) Positioning data processing method and device
US11503451B2 (en) Device and method for transmitting signals in plurality of frequency bands
CN113989963A (en) Signal processing method and related equipment
US20240032123A1 (en) Ultra-wideband communication method based on bluetooth communication quality sharing and electronic device therefor
US9824246B2 (en) Radio frequency identification tag having input device
CN115765802A (en) Electronic device, detection method, and readable storage medium
US20230024636A1 (en) Method for performing positioning operation on basis of ultra-wideband signal and electronic device supporting same
US20230004288A1 (en) Method and electronic device for configuring user interface based on input field
US20210099862A1 (en) Electronic device for transmitting/receiving data and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination