CN114389727B - Method for detecting approach of life body to terminal equipment, terminal equipment and chip - Google Patents

Method for detecting approach of life body to terminal equipment, terminal equipment and chip Download PDF

Info

Publication number
CN114389727B
CN114389727B CN202210281836.8A CN202210281836A CN114389727B CN 114389727 B CN114389727 B CN 114389727B CN 202210281836 A CN202210281836 A CN 202210281836A CN 114389727 B CN114389727 B CN 114389727B
Authority
CN
China
Prior art keywords
signal
antennas
antenna
difference
terminal 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.)
Active
Application number
CN202210281836.8A
Other languages
Chinese (zh)
Other versions
CN114389727A (en
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210281836.8A priority Critical patent/CN114389727B/en
Publication of CN114389727A publication Critical patent/CN114389727A/en
Application granted granted Critical
Publication of CN114389727B publication Critical patent/CN114389727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3827Portable transceivers
    • H04B1/3833Hand-held transceivers
    • H04B1/3838Arrangements for reducing RF exposure to the user, e.g. by changing the shape of the transceiver while in use
    • 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

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application is suitable for the technical field of terminals, and provides a method for detecting that a living body approaches to a terminal device, the terminal device and a chip, wherein the method comprises the following steps: the method comprises the steps of obtaining a first signal and a second signal of each antenna in N antennas, and obtaining indication information according to the first signal and the second signal of each antenna in the N antennas, wherein each first signal is used for indicating the signal strength of a signal received by one antenna in the N antennas at a first moment, and each second signal is used for indicating the signal strength of the signal received by one antenna in the N antennas after the first moment. The condition that the terminal equipment is additionally provided with the bidirectional coupler to obtain the indication information is avoided, and the cost of the terminal equipment is further avoided from increasing. In addition, the indication information obtained by the first signal and the second signal of each of the N antennas is more accurate than the indication information obtained by the first signal and the second signal of only one antenna.

Description

Method for detecting approaching of living body to terminal equipment, terminal equipment and chip
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a method for detecting that a living body approaches a terminal device, the terminal device and a chip.
Background
With the popularization of the knowledge related to mobile communication, people pay more and more attention to the influence of electromagnetic radiation of terminal equipment on human bodies, a Specific Absorption Rate (SAR) value is generally adopted as a parameter for measuring electromagnetic wave energy Absorption, and when the SAR value is smaller than a preset threshold value, the electromagnetic wave signal radiation intensity of the terminal equipment meets a preset requirement. In order to meet the requirements of people, when the distance between a human body and the terminal equipment is smaller than a preset threshold value, the output power of the terminal equipment can be reduced, so that the SAR value meets the index requirement.
In a conventional method, an antenna for transmitting a signal on a terminal device is used as a sensor for detecting whether a human body approaches the terminal device, and when the human body approaches the terminal device, boundary conditions of the antenna change, which causes a standing wave and impedance of the antenna to change. Therefore, a forward directional coupler and a backward directional coupler can be added on an antenna radio frequency link, signals radiated by an antenna are collected through the forward coupler, the signals are coupled to the signals reflected by the antenna through the backward coupler, whether a human body is close to the terminal equipment or not is judged according to the change of relevant parameters (such as S parameters, impedance and the like) of the radiated and reflected signals, and the output power of the terminal equipment is reduced when the human body is close to the terminal equipment. However, the above method for detecting whether a human body is close to the terminal device requires an additional bidirectional coupler, which results in a higher cost of the terminal device.
Therefore, how to reduce the cost of the terminal equipment becomes an urgent problem to be solved.
Disclosure of Invention
The embodiment of the application provides a method for detecting that a living body approaches a terminal device, the terminal device, a chip and a readable storage medium, which can reduce the cost of the terminal device.
In a first aspect, a method for detecting that a living body approaches a terminal device is provided, where the method is applied to a terminal device including N antennas, where N is a positive integer greater than or equal to 2, and includes:
acquiring a first signal and a second signal of each antenna in N antennas, wherein each first signal is used for indicating the signal strength of a signal received by one antenna in the N antennas at a first moment, and each second signal is used for indicating the signal strength of a signal received by one antenna in the N antennas after the first moment;
and obtaining indication information according to the first signal and the second signal of each antenna in the N antennas, wherein the indication information is used for indicating that the distance between the living body and the target object is smaller than a first preset threshold value, and the target object comprises terminal equipment or a target antenna in the terminal equipment.
The first signal is used to indicate the signal strength of a signal received by each antenna at a first time, and the second signal is used to indicate the signal strength of a signal received by each antenna after the first time, that is, the second signal may be one signal or multiple signals, which is not limited in this embodiment of the present application.
In the embodiment of the application, a first signal and a second signal of each of N antennas are obtained, and indication information is obtained according to the first signal and the second signal of each of the N antennas, where each first signal is used to indicate the signal strength of a signal received by one of the N antennas at a first time, each second signal is used to indicate the signal strength of a signal received by one of the N antennas after the first time, and the indication information is used to indicate that the distance between a living body and a target object is smaller than a first preset threshold, and the target object includes a terminal device or a target antenna in the terminal device. That is to say, the indication information can be obtained only according to the first signal obtained at the first moment and the second signal obtained after the first moment, so that the situation that the terminal equipment additionally adds the bidirectional coupler to obtain the indication information is avoided, and further the cost of the terminal equipment is avoided from increasing. In addition, the indication information obtained by the first signal and the second signal of each of the N antennas is more accurate than the indication information obtained by the first signal and the second signal of only one antenna.
In one embodiment, a method for detecting that a living body approaches a terminal device is provided, and the method is applied to a terminal device comprising N antennas, where N is a positive integer greater than or equal to 2, and includes:
acquiring a first signal and a second signal of each antenna in N antennas, wherein each first signal is used for indicating the signal strength of a signal received by one antenna in the N antennas at a first moment, and each second signal is used for indicating the signal strength of a signal received by one antenna in the N antennas after the first moment;
obtaining a difference value of a first signal and a second signal of each antenna in N antennas;
and obtaining indication information according to a difference value between the first signal and the second signal of each antenna in the N antennas, wherein the indication information is used for indicating that the distance between the living body and the target object is smaller than a first preset threshold value, and the target object comprises terminal equipment or a target antenna in the terminal equipment.
In an embodiment, the obtaining the indication information according to a difference between the first signal and the second signal of each of the N antennas includes: and obtaining the indication information when the difference value of the first signal and the second signal of each antenna in the N antennas comprises a first difference value and a second difference value, wherein the first difference value is a numerical value larger than a first threshold value, and the second difference value is a numerical value smaller than or equal to the first threshold value.
It should be understood that the first threshold may be 0, or may be a value greater than 0, which is not limited in this embodiment of the application.
It should be understood that the difference between the first signal and the second signal for each of the N antennas includes the following three cases.
Situation one
The difference of the first signal and the second signal for each of the N antennas comprises a first difference and a second difference.
Situation two
The difference between the first signal and the second signal of each of the N antennas is a first difference.
Situation three
The difference between the first signal and the second signal for each of the N antennas is a second difference.
And in the case that the difference value of the first signal and the second signal of each of the N antennas is the second difference value, the situation shows that no living body absorbing the electromagnetic wave signal exists near the terminal equipment.
In the embodiment of the application, when the difference value between the first signal and the second signal of each antenna in the N antennas includes the first difference value and the second difference value, the indication information indicating that the distance between the living body and the terminal device is smaller than the first preset threshold value is obtained, so that the terminal device can judge whether the living body approaches the terminal device only through the difference value between the first signal and the second signal obtained by each antenna, and the convenience of obtaining the indication information is improved.
In one embodiment, obtaining the indication information according to a difference between the first signal and the second signal of each of the N antennas includes:
under the condition that the difference value of the first signal and the second signal of each antenna in the N antennas is a first difference value, obtaining a third signal and a fourth signal of each antenna in the N antennas, wherein the first difference value is a numerical value larger than a first threshold value, each third signal is used for indicating the signal strength of a reference signal received by one antenna in the N antennas in other connection modes except the current connection mode at a second moment, and each fourth signal is used for indicating the signal strength of the reference signal received by one antenna in the N antennas in other connection modes after the second moment;
obtaining a difference value of a third signal and a fourth signal of each antenna in the N antennas; and obtaining the indication information according to the difference value of the third signal and the fourth signal of each antenna in the N antennas.
It should be understood that the difference between the third signal and the fourth signal for each of the N antennas includes the following three cases.
Situation one
The difference of the third signal and the fourth signal for each of the N antennas comprises a third difference and a fourth difference.
Situation two
The difference between the third signal and the fourth signal for each of the N antennas is a third difference.
Situation three
The difference between the third signal and the fourth signal of each of the N antennas is a fourth difference.
And in the case that the difference value of the third signal and the fourth signal of each of the N antennas is the fourth difference value, it is described that there is no living body absorbing the electromagnetic wave signal in the vicinity of the terminal device.
In one embodiment, obtaining the indication information according to a difference between the third signal and the fourth signal of each of the N antennas includes: and obtaining the indication information when the difference value between the third signal and the fourth signal of each antenna in the N antennas comprises a third difference value and a fourth difference value, wherein the third difference value is a numerical value larger than a second threshold, and the fourth difference value is a numerical value smaller than or equal to the second threshold.
In the embodiment of the application, when the difference between the first signal and the second signal of each antenna in the N antennas is the first difference, it is determined whether the connection mode between the terminal device and the network device is switched at the current time, and when the connection mode between the terminal device and the network device is not switched, the third signal and the fourth signal of each antenna in the N antennas are obtained, and the difference between the third signal and the fourth signal of each antenna in the N antennas is obtained, so that when the difference between the third signal and the fourth signal of each antenna in the N antennas includes the first difference and the second difference, the indication information is obtained. Each third signal is used for indicating the signal strength of the reference signal received by one antenna of the N antennas in the other connection modes except the current connection mode at the second time, and each fourth signal is used for indicating the signal strength of the reference signal received by one antenna of the N antennas in the other connection modes after the second time. Therefore, under the condition that the indication information cannot be obtained according to the fact that the difference value of the first signal and the second signal is the first difference value, the indication information is further determined according to the difference value of the third signal and the fourth signal of each antenna in the N antennas, and therefore the indication information is obtained through obtaining the difference value of the received reference signals twice, and accuracy of the obtained indication information is improved.
In one embodiment, a method for detecting that a living body approaches a terminal device is provided, and the method is applied to a terminal device comprising N antennas, where N is a positive integer greater than or equal to 2, and includes:
determining whether the terminal equipment is held by a user or not by adopting a preset algorithm; determining a target antenna under the condition that the terminal equipment is held by a user, wherein the target antenna is any one of the antennas in the terminal equipment;
under the condition that the difference value between the first signal and the second signal of the target antenna is larger than a first threshold value, acquiring a third signal and a fourth signal of each antenna in the N antennas, wherein each third signal is used for indicating the signal strength of a signal received by one antenna in the N antennas at a second moment, and each fourth signal is used for indicating the signal strength of a signal received by one antenna in the N antennas after the second moment;
obtaining a difference value of a third signal and a fourth signal of each antenna in the N antennas;
and obtaining indication information under the condition that the difference value of the third signal and the fourth signal of the target antenna is a third difference value and the difference value of the third signal and the fourth signal of at least one other antenna is a fourth difference value, wherein the other antennas are antennas except the target antenna in the N antennas, and the indication information is used for indicating that the distance between the living body and the target antenna is smaller than a first preset threshold value.
In the embodiment of the application, a preset algorithm is adopted to determine whether the terminal device is held by a user, and when the terminal device is held by the user, a target antenna is determined, and further when a difference value between a first signal and a second signal of the target antenna is larger than a first threshold value, a connection mode between the terminal device and the network device is switched, then a third signal and a fourth signal of each antenna in the N antennas are obtained, and finally indication information is obtained according to the third signal and the fourth signal of each antenna in the N antennas, wherein the target antenna is any one of the terminal devices, each third signal is used for indicating the signal strength of a reference signal received by one antenna in the N antennas in a connection mode other than the current connection mode at a second moment, and each fourth signal is used for indicating the signal strength of a reference signal received by one antenna in the N antennas in other connection modes after the second moment, the indication information is used for indicating that the distance between the life body and the target antenna is smaller than a first preset threshold value. That is to say, without additionally adding other devices, the indication information indicating that the distance between the living body and the target antenna is smaller than the first preset threshold value can be obtained through the first signal, the second signal, the third signal and the fourth signal acquired by the terminal device, and the cost of obtaining the indication information by the terminal device is reduced.
In one embodiment, the method further comprises:
before the first time, determining whether the transmitting power of the terminal equipment is greater than a third threshold value;
and under the condition that the transmitting power of the terminal equipment is greater than a third threshold value, acquiring a first signal and a second signal of each antenna in the N antennas.
It should be appreciated that a terminal device transmit power greater than a preset threshold generally indicates poor communication quality between the terminal device and the network device, and/or insufficient power headroom of the terminal device. In this case, on the one hand, it can be further determined whether the transmission power of the terminal device needs to be reduced to meet the index requirement of the SAR. On the other hand, when the power headroom of the terminal device is large, the SAR value can generally satisfy the index requirement, and frequent detection is not required.
In the embodiment of the application, when the transmission power of the terminal device is greater than a preset threshold, the first signal and the second signal are obtained, and whether the distance between the life body and the terminal device is smaller than the first preset threshold is further determined, so that the terminal device can further determine whether the distance between the life body and the terminal device is smaller than the first preset threshold only under the condition that the power of the transmission signal is high or the communication between the terminal device and the network device is in a weak field, that is, only under the condition that the risk that the SAR value of the terminal device exceeds the standard is high, and when the distance between the life body and the terminal device is smaller than the first preset threshold, the transmission power of the terminal device is reduced, and the problem that the resource waste of the terminal device is caused by frequently determining whether the distance between the life body and the terminal device is smaller than the first preset threshold is avoided.
In one embodiment, prior to acquiring the first signal and the second signal for each of the N antennas, the method further comprises:
determining the current working state of the terminal equipment;
obtaining a first signal and a second signal for each of N antennas, comprising: and under the condition that the current working state of the terminal equipment is a preset working state, acquiring a first signal and a second signal of each antenna in the N antennas.
The preset operating state may be an operating state in which the power of the transmission signal is allowed to be adjusted. For example, the preset operating state may be a game state, and when the terminal device is in the game state, if it is recognized that the terminal device is far away from the human body, the power of the signal transmitted by the terminal device may be adjusted.
In the embodiment of the application, the current working state of the terminal device is determined, and whether the indication information is obtained is further determined when the current working state of the terminal device is the preset working state, so that whether the current working state of the terminal device is the preset working state capable of reducing the power of the transmission signal is determined before whether the power of the transmission signal is to be reduced is determined by the terminal device, and whether the power of the transmission signal is to be reduced is determined only when the current working state of the terminal device is the preset working state, namely, the power of the transmission signal can be adjusted, and therefore the waste of terminal device resources caused by executing an unnecessary process when the power of the transmission signal cannot be reduced by the terminal device is avoided.
In one embodiment, acquiring the first signal and the second signal for each of the N antennas comprises:
the first signal and the second signal for each of the N antennas are obtained from a modem processor on the terminal device.
The modem processor includes a measurement module, and the measurement module in the modem processor can acquire the first signal and the second signal of each of the N antennas.
In the embodiment of the application, the first signal and the second signal are obtained from the measurement module in the modem processor on the terminal device, so that in the process of obtaining the indication information according to the first signal and the second signal, the terminal device does not need to additionally add other devices, and the cost for obtaining the indication information is reduced.
In one embodiment, the first signal refers to at least one of reference signal received power, RSRP, received signal strength indication, RSSI, received signal code power, RSCP, reference signal received quality, RSRQ, independent signal unit, ASU, signal to noise ratio, SNR, and error vector magnitude, EVM; the second signal is at least one of reference signal received power RSRP, received signal strength indication RSSI, received signal code power RSCP, reference signal received quality RSRQ, independent signal unit ASU, signal to noise ratio SNR, and error vector magnitude EVM.
It should be understood that, for different communication systems, the corresponding received reference signals may be different. Typically, the first signal and the second signal are the same received reference information. For example, in the first LTE standard, the first signal is RSRP, and correspondingly, the second signal is also RSRP.
In a second aspect, there is provided an apparatus for detecting proximity of a living being to a terminal device, comprising means for performing any of the methods of the first aspect. The device can be a terminal device and also can be a chip in the terminal device. The apparatus may include an input unit and a processing unit.
When the apparatus is a terminal device, the processing unit may be a processor, and the input unit may be a communication interface; the terminal device may further comprise a memory for storing computer program code which, when executed by the processor, causes the terminal device to perform any of the methods of the first aspect.
When the apparatus is a chip in a terminal device, the processing unit may be a processing unit inside the chip, and the input unit may be an output interface, a pin, a circuit, or the like; the chip may also include a memory, which may be a memory within the chip (e.g., registers, cache, etc.) or a memory external to the chip (e.g., read-only memory, random access memory, etc.); the memory is adapted to store computer program code which, when executed by the processor, causes the chip to perform any of the methods of the first aspect.
In one possible implementation, the memory is configured to store computer program code; a processor executing the computer program code stored by the memory, the processor when the computer program code stored by the memory is executed operable to: acquiring a first signal and a second signal of each antenna in N antennas, wherein each first signal is used for indicating the signal strength of a signal received by one antenna in the N antennas at a first moment, and each second signal is used for indicating the signal strength of a signal received by one antenna in the N antennas after the first moment; and obtaining indication information according to the first signal and the second signal of each antenna in the N antennas, wherein the indication information is used for indicating that the distance between the living body and the target object is smaller than a first preset threshold value, and the target object comprises terminal equipment or a target antenna in the terminal equipment.
In the embodiment of the application, a first signal and a second signal of each of N antennas are obtained, and indication information is obtained according to the first signal and the second signal of each of the N antennas, where each first signal is used to indicate the signal strength of a signal received by one of the N antennas at a first time, each second signal is used to indicate the signal strength of a signal received by one of the N antennas after the first time, and the indication information is used to indicate that the distance between a living body and a target object is smaller than a first preset threshold, and the target object includes a terminal device or a target antenna in the terminal device. That is to say, the indication information can be obtained only according to the first signal obtained at the first moment and the second signal obtained after the first moment, so that the situation that the terminal equipment additionally adds the bidirectional coupler to obtain the indication information is avoided, and further the cost of the terminal equipment is avoided from increasing. In addition, the indication information obtained by the first signal and the second signal of each of the N antennas is more accurate than the indication information obtained by the first signal and the second signal of only one antenna.
In one possible implementation, the memory is configured to store computer program code; a processor executing the computer program code stored in the memory, the processor being operable when the computer program code stored in the memory is executed to perform: acquiring a first signal and a second signal of each antenna in N antennas, wherein each first signal is used for indicating the signal strength of a signal received by one antenna in the N antennas at a first moment, and each second signal is used for indicating the signal strength of a signal received by one antenna in the N antennas after the first moment; obtaining a difference value between a first signal and a second signal of each antenna in N antennas; and obtaining indication information according to a difference value between the first signal and the second signal of each antenna in the N antennas, wherein the indication information is used for indicating that the distance between the living body and the target object is smaller than a first preset threshold value, and the target object comprises terminal equipment or a target antenna in the terminal equipment.
In the embodiment of the application, when the difference between the first signal and the second signal of each antenna in the N antennas is the first difference, it is determined whether the connection mode between the terminal device and the network device is switched at the current time, and when the connection mode between the terminal device and the network device is not switched, the third signal and the fourth signal of each antenna in the N antennas are obtained, and the difference between the third signal and the fourth signal of each antenna in the N antennas is obtained, so that when the difference between the third signal and the fourth signal of each antenna in the N antennas includes the first difference and the second difference, the indication information is obtained. Each third signal is used for indicating the signal strength of the reference signal received by one antenna of the N antennas in the other connection modes except the current connection mode at the second time, and each fourth signal is used for indicating the signal strength of the reference signal received by one antenna of the N antennas in the other connection modes after the second time. Therefore, under the condition that the indication information cannot be obtained according to the fact that the difference value of the first signal and the second signal is the first difference value, the indication information is further determined according to the difference value of the third signal and the fourth signal of each antenna in the N antennas, and therefore the indication information is obtained through obtaining the difference value of the received reference signals twice, and accuracy of the obtained indication information is improved.
In one possible implementation, the memory is configured to store computer program code; a processor executing the computer program code stored in the memory, the processor being operable when the computer program code stored in the memory is executed to perform: determining whether the terminal equipment is held by a user or not by adopting a preset algorithm; determining a target antenna under the condition that the terminal equipment is held by a user, wherein the target antenna is any one of the terminal equipment; under the condition that the difference value between the first signal and the second signal of the target antenna is larger than a first threshold value, acquiring a third signal and a fourth signal of each antenna in the N antennas, wherein each third signal is used for indicating the signal strength of a signal received by one antenna in the N antennas at a second moment, and each fourth signal is used for indicating the signal strength of a signal received by one antenna in the N antennas after the second moment; obtaining a difference value of a third signal and a fourth signal of each antenna in the N antennas; and obtaining indication information under the condition that the difference value of the third signal and the fourth signal of the target antenna is a third difference value and the difference value of the third signal and the fourth signal of at least one other antenna is a fourth difference value, wherein the other antennas are antennas except the target antenna in the N antennas, and the indication information is used for indicating that the distance between the living body and the target antenna is smaller than a first preset threshold value.
In the embodiment of the application, a preset algorithm is adopted to determine whether the terminal device is held by a user, a target antenna is determined when the terminal device is held by the user, the connection mode between the terminal device and the network device is switched when the difference value between a first signal and a second signal of the target antenna is larger than a first threshold value, then a third signal and a fourth signal of each antenna in the N antennas are obtained, and finally indication information is obtained according to the third signal and the fourth signal of each antenna in the N antennas, wherein the target antenna is any one of the terminal devices, each third signal is used for indicating the signal strength of a reference signal received by one antenna in the N antennas in other connection modes except the current connection mode at a second moment, and each fourth signal is used for indicating the signal strength of a reference signal received by one antenna in the N antennas in other connection modes after the second moment, the indication information is used for indicating that the distance between the living body and the target antenna is smaller than a first preset threshold value. That is to say, without additionally adding other devices, the indication information indicating that the distance between the living body and the target antenna is smaller than the first preset threshold value can be obtained through the first signal, the second signal, the third signal and the fourth signal acquired by the terminal device, and the cost of obtaining the indication information by the terminal device is reduced.
In a third aspect, an electronic device is provided, where the electronic device includes a processor, and the processor is configured to couple with a memory, read instructions in the memory, and cause the electronic device to perform the method provided in the first aspect according to the instructions.
In the embodiment of the application, the electronic device obtains indication information according to a first signal and a second signal of each of N antennas by obtaining the first signal and the second signal of each of the N antennas, where each first signal is used to indicate a signal strength of a signal received by one of the N antennas at a first time, each second signal is used to indicate a signal strength of a signal received by one of the N antennas after the first time, the indication information is used to indicate that a distance between a living body and a target object is smaller than a first preset threshold, and the target object includes a terminal device or a target antenna in the terminal device. That is to say, the indication information can be obtained only according to the first signal obtained at the first moment and the second signal obtained after the first moment, so that the situation that the terminal equipment additionally adds the bidirectional coupler to obtain the indication information is avoided, and further the cost of the terminal equipment is avoided from increasing. In addition, the indication information obtained by the first signal and the second signal of each of the N antennas is more accurate than the indication information obtained by the first signal and the second signal of only one antenna.
In a fourth aspect, a computer-readable storage medium is provided, which stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the method provided in the first aspect.
In an embodiment of the application, a computer-readable storage medium obtains indication information according to a first signal and a second signal of each of N antennas by obtaining the first signal and the second signal of each of the N antennas, where each first signal is used to indicate a signal strength of a signal received by one of the N antennas at a first time, each second signal is used to indicate a signal strength of a signal received by one of the N antennas after the first time, the indication information is used to indicate that a distance between a living body and a target object is smaller than a first preset threshold, and the target object includes a terminal device or a target antenna in the terminal device. That is to say, the indication information can be obtained only according to the first signal obtained at the first moment and the second signal obtained after the first moment, so that the situation that the terminal equipment additionally adds the bidirectional coupler to obtain the indication information is avoided, and further the cost of the terminal equipment is avoided from increasing. In addition, the indication information obtained by the first signal and the second signal of each of the N antennas is more accurate than the indication information obtained by the first signal and the second signal of only one antenna.
In a fifth aspect, a chip is provided, the chip comprising a processor configured to couple with a memory and execute a computer program in the memory to perform the method provided in the first aspect.
In the embodiment of the application, the chip obtains the indication information according to the first signal and the second signal of each of the N antennas by obtaining the first signal and the second signal of each of the N antennas, where each first signal is used to indicate the signal strength of a signal received by one of the N antennas at a first time, each second signal is used to indicate the signal strength of a signal received by one of the N antennas after the first time, the indication information is used to indicate that the distance between the living body and the target object is smaller than a first preset threshold, and the target object includes the terminal device or the target antenna in the terminal device. That is to say, the indication information can be obtained only according to the first signal obtained at the first moment and the second signal obtained after the first moment, so that the situation that the terminal equipment additionally adds the bidirectional coupler to obtain the indication information is avoided, and further the cost of the terminal equipment is avoided from increasing. In addition, the indication information obtained by the first signal and the second signal of each of the N antennas is more accurate than the indication information obtained by the first signal and the second signal of only one antenna.
In a sixth aspect, a computer program product comprising instructions for causing an electronic device to perform the method as provided by the first aspect when the computer program product is run on the electronic device is provided.
In an embodiment of the application, a computer program product obtains indication information according to a first signal and a second signal of each of N antennas by obtaining the first signal and the second signal of each of the N antennas, where each first signal is used to indicate a signal strength of a signal received by one of the N antennas at a first time, each second signal is used to indicate a signal strength of a signal received by one of the N antennas after the first time, the indication information is used to indicate that a distance between a living body and a target object is smaller than a first preset threshold, and the target object includes a terminal device or a target antenna in the terminal device. That is to say, the indication information can be obtained only according to the first signal obtained at the first moment and the second signal obtained after the first moment, so that the condition that the terminal equipment additionally adds a bidirectional coupler to obtain the indication information is avoided, and further the increase of the cost of the terminal equipment is avoided. In addition, the indication information obtained by the first signal and the second signal of each of the N antennas is more accurate than the indication information obtained by the first signal and the second signal of only one antenna.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 2 is a schematic diagram of an application scenario of a method for detecting that a living body approaches a terminal device according to an embodiment of the present application;
fig. 3 is a schematic diagram of an application scenario of a method for detecting that a living body approaches a terminal device according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for detecting that a living body approaches a terminal device according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating positions of multiple antennas in a terminal device according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a method for detecting that a living body approaches a terminal device according to another embodiment of the present application;
FIG. 7 is a schematic diagram of a signal receiving process by an antenna according to an embodiment of the present application;
fig. 8 is a schematic flowchart of a method for detecting that a living body approaches a terminal device according to another embodiment of the present application;
fig. 9 is a schematic flowchart of a method for detecting that a living body approaches a terminal device according to another embodiment of the present application;
FIG. 10 is a schematic structural diagram of an apparatus for detecting an approaching of a living body to a terminal device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described in detail and clearly with reference to the accompanying drawings. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" in the text is only an association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: three cases of a alone, a and B both, and B alone exist, and in addition, "a plurality" means two or more than two in the description of the embodiments of the present application.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows a hardware system of an electronic device suitable for use in the present application.
The electronic device may be a terminal device, and the electronic device is described as an example below.
The electronic device 100 may be a mobile phone, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an Augmented Reality (AR) device, a Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a projector, and the like, and the embodiment of the present application does not limit the specific type of the electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The configuration shown in fig. 1 is not intended to specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown in FIG. 1, or electronic device 100 may include a combination of some of the components shown in FIG. 1, or electronic device 100 may include sub-components of some of the components shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
The connection relationship between the modules shown in fig. 1 is only illustrative and does not limit the connection relationship between the modules of the electronic apparatus 100. Alternatively, the modules of the electronic device 100 may also adopt a combination of the connection manners in the above embodiments.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch. In some embodiments, when the distance between the living body and the electronic device is small, since the living body is a lossy medium of electromagnetic waves, the boundary condition of the antenna 1 and/or the antenna 2 may be changed, and the efficiency of the antenna 1 and/or the antenna 2 may be affected.
The mobile communication module 150 may provide a solution for wireless communication applied on the electronic device 100, such as at least one of the following: second generation (2) th generation, 2G) mobile communication solution, third generation (3) th generation, 3G) mobile communication solution, fourth generation (4) th generation, 5G) mobile communication solution, fifth generation (5) th generation, 5G) mobile communication solutions. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processes on the received electromagnetic waves, and then transmit the electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and the amplified signal is converted into electromagnetic waves by the antenna 1 to be radiated. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (e.g., speaker 170A, microphone 170B) or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110. In some embodiments, a received reference signal indicating a signal strength of a received signal may be obtained from a measurement module in a modem processor.
Similar to the mobile communication module 150, the wireless communication module 160 may also provide a wireless communication solution applied on the electronic device 100, such as at least one of the following: wireless Local Area Networks (WLANs), Bluetooth (BT), Bluetooth Low Energy (BLE), Ultra Wide Band (UWB), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR) technologies. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive, frequency modulate and amplify the signal to be transmitted from the processor 110, which is converted into electromagnetic waves via the antenna 2 for radiation.
In some embodiments, antenna 1 of electronic device 100 and mobile communication module 150 are coupled and antenna 2 of electronic device 100 and wireless communication module 160 are coupled such that electronic device 100 may communicate with networks and other electronic devices through wireless communication techniques. The wireless communication technology may include at least one of the following communication technologies: global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), time division code division multiple access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, IR technologies. The GNSS may include at least one of the following positioning techniques: global Positioning System (GPS), global navigation satellite system (GLONASS), beidou satellite navigation system (BDS), quasi-zenith satellite system (QZSS), Satellite Based Augmentation System (SBAS).
The hardware system of electronic device 100 is described in detail above, it being understood that electronic device 100 may include more or fewer modules, and FIG. 1 is merely an example.
The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture, which is not limited in this embodiment.
The following provides a brief description of an application scenario of the embodiments of the present application.
Application scenario one
When the terminal equipment works, electromagnetic wave signals can be emitted outwards. The signal intensity of the electromagnetic wave signal is attenuated along with the increase of the distance, and when the distance between the living body and the terminal equipment is smaller, the signal intensity of the electromagnetic wave signal received by the living body is larger. At present, a Specific Absorption Rate (SAR) value is usually adopted as a parameter for measuring the signal intensity of the electromagnetic wave signal, and when the SAR value is smaller than a preset threshold, the radiation intensity of the electromagnetic wave signal of the terminal device meets a preset requirement. When the distance between the life body and the terminal equipment is detected to be small, the SAR value can be reduced by reducing the power of the signal transmitted by the terminal equipment. Taking the example that the terminal device is a mobile phone and the living body is a human body, as shown in fig. 2, the electromagnetic wave signal radiated by the mobile phone has a large signal intensity in the virtual coil, the SAR value exceeds the preset threshold value, and the electromagnetic wave signal radiation intensity of the terminal device does not meet the preset requirement. Therefore, when the distance between the human body and the mobile phone is detected to be small, namely the human body is in the virtual coil, the power of the output signal of the mobile phone can be reduced, so that the SAR value of the mobile phone is reduced. In one example, as shown in fig. 3, in a case where a user holds a mobile phone, the SAR value may exceed the preset threshold, and the radiation intensity of the electromagnetic wave signal of the terminal device does not meet the preset requirement.
Application scenario two
On the basis of the first application scenario, when the terminal device determines that the user holds the terminal device by a preset algorithm, whether a certain antenna on the terminal device is held by the user needs to be determined. Illustratively, as shown in fig. 3, the terminal device has determined that the user holds the mobile phone, and needs to determine whether the distance between the antenna 4 and the hand is smaller than a preset threshold.
It should be understood that the above description is illustrative of the application scenario and does not limit the application scenario of the present application in any way.
The method for detecting the proximity of a living body to a terminal device according to the embodiment of the present application is described in detail below with reference to fig. 4 to 9.
Fig. 4 is a flowchart illustrating a method for detecting that a living body approaches a terminal device according to an embodiment of the present application, where the method is applied to a terminal device including multiple antennas, and as shown in fig. 4, the method includes the following steps:
s101, a first signal and a second signal of each of the N antennas are obtained, where each first signal is used to indicate a signal strength of a signal received by one of the N antennas at a first time, and each second signal is used to indicate a signal strength of a signal received by one of the N antennas after the first time.
Wherein N is an integer greater than 2. With the development of multiple-in multiple out (MIMO) technology on terminal devices, most terminal devices support 2 × 2MIMO, or 4 × 4 MIMO. This requires more than 2 antennas to be provided on the terminal device. Illustratively, as shown in fig. 5, the mobile phone includes 4 antennas, namely, an antenna 1, an antenna 2, an antenna 3, and an antenna 4. The following description will be given taking an example in which 4 antennas are provided in a mobile phone.
When the mobile phone establishes a communication connection with a network device (e.g., a base station), the network device sends a reference signal according to a preset frequency, and correspondingly, the mobile phone receives the reference signal through an antenna. In the case of 4 antennas on the handset, each antenna receives the reference signal. The mobile phone analyzes the received signals of each antenna to obtain a reception reference signal indicating the signal strength of the received signal of each antenna. The greater the signal strength indicated by the received reference signal, the better the signal quality of the mobile phone, and the mobile phone can keep the current power of the transmitted signal; the smaller the signal strength indicated by the received reference signal, the poorer the signal quality of the mobile phone, and the mobile phone will usually increase the current power of the transmitted signal to improve the signal quality of the mobile phone. The network device sends the reference information according to the preset frequency, and correspondingly, each antenna on the mobile phone receives the reference signal according to the preset frequency.
The first signal may refer to a received reference signal received at a first time. The first time may be a time determined according to an instruction input by a user, or may also be a time determined when the terminal device determines that the signal quality is degraded, which is not limited in this embodiment of the present application.
It should be understood that each antenna on the handset receives the reference signal transmitted by the network device. Therefore, each antenna has a corresponding first signal, i.e. the handset can obtain 4 first signals.
The second signal may be used to indicate the signal strength of the signal received by the antenna after the first time. Similar to the first signal, the 4 antennas on the handset each receive the reference signal sent by the base station. Thus, each of the 4 antennas has its corresponding second signal. The second signal corresponding to each antenna may be one or multiple, and this is not limited in this embodiment of the application.
In an example, in a case that the second signal of each antenna is one, the second signal may be a first received reference signal obtained by the antenna periodically according to a preset frequency after a first time, or may be a received reference signal obtained after the first time with a preset time interval, which is not limited in this embodiment of the application.
In an example, in a case that the second signal of each antenna is multiple, the second signal may be multiple received reference signals after a first time that the antenna periodically obtains according to a preset frequency, or may be received reference signals that are obtained multiple times after the first time specified by the user, which is not limited in this embodiment of the application.
To sum up, the antenna 1 on the mobile phone has the first signal and the second signal corresponding thereto, the antenna 2 has the first signal and the second signal corresponding thereto, the antenna 3 has the first signal and the second signal corresponding thereto, and the antenna 4 has the first signal and the second signal corresponding thereto.
Optionally, the first Signal refers to at least one of Reference Signal Receiving Power (RSRP), Received Signal Strength Indicator (RSSI), Received Signal Code Power (RSCP), Reference Signal Receiving Quality (RSRQ), independent Signal unit (ASU), Signal to Noise Ratio (SNR), and Error Vector Magnitude (EVM). Correspondingly, the second Signal is at least one of Reference Signal Receiving Power (RSRP), Received Signal Strength Indicator (RSSI), Received Signal Code Power (RSCP), Reference Signal Receiving Quality (RSRQ), independent Signal unit (ASU), Signal to Noise Ratio (SNR), and Error Vector Magnitude (EVM).
It should be understood that, for different communication systems, the corresponding received reference signals may be different. Typically, the first signal and the second signal are the same received reference information. For example, in the first LTE standard, the first signal is RSRP, and the second signal is also RSRP.
S102, obtaining indication information according to the first signal and the second signal of each antenna in the N antennas, wherein the indication information is used for indicating that the distance between the living body and the target object is smaller than a first preset threshold value, and the target object comprises terminal equipment or a target antenna in the terminal equipment.
After the first signal and the second signal of each antenna are obtained, indication information indicating that the distance between the living body and the target object is smaller than a first preset threshold value may be obtained according to the first signal and the second signal.
For example, as shown in application scenario one, the indication information indicating that the distance between the human body and the terminal device is smaller than the first preset threshold may be obtained according to the first signal and the second signal of each antenna.
For example, as shown in application scenario two, in a case that a mobile phone is held by a user according to a preset algorithm, indication information indicating that a distance between a human body and an antenna 4 on the mobile phone is smaller than a first preset threshold may be obtained according to a first signal and a second signal of each antenna.
In the embodiment of the application, a first signal and a second signal of each of N antennas are obtained, and indication information is obtained according to the first signal and the second signal of each of the N antennas, where each first signal is used to indicate the signal strength of a signal received by one of the N antennas at a first time, each second signal is used to indicate the signal strength of a signal received by one of the N antennas after the first time, and the indication information is used to indicate that a distance between a living body and a target object is smaller than a first preset threshold, and the target object includes a terminal device or a target antenna in the terminal device. That is to say, the indication information can be obtained only according to the first signal obtained at the first moment and the second signal obtained after the first moment, so that the situation that the terminal equipment additionally adds the bidirectional coupler to obtain the indication information is avoided, and further the cost of the terminal equipment is avoided from increasing. In addition, the indication information obtained by the first signal and the second signal of each of the N antennas is more accurate than the indication information obtained by the first signal and the second signal of only one antenna.
In a possible case, the indication information may be obtained according to a difference between the first signal and the second signal of each of the N antennas, which is described in detail by the embodiment shown in fig. 6 below.
Fig. 6 is a flowchart illustrating a method for detecting a living body approaching a terminal device according to another embodiment of the present application, where the method is applied to a terminal device including multiple antennas, and as shown in fig. 6, the method includes the following steps:
s201, before the first time, determining whether the transmitting power of the terminal equipment is larger than a preset threshold value, and if so, executing S202.
Before the terminal device acquires the first signal, that is, before the first time, it may first detect whether the transmission power of the terminal device is greater than a preset threshold. It should be appreciated that a terminal device transmit power greater than a preset threshold generally indicates poor communication quality between the terminal device and the network device, and/or insufficient power headroom of the terminal device. In this case, on one hand, it can be further determined whether the transmission power of the terminal device needs to be reduced to meet the index requirement of the SAR. On the other hand, when the power headroom of the terminal device is large, the SAR value can generally satisfy the index requirement, and frequent detection is not required.
The terminal device may determine whether the communication quality between the terminal device and the network device is poor by receiving a cell signal transmitted by the network device. For example, if the reception reference signal received by the terminal device and sent by the network device is smaller than the preset threshold, it indicates that the communication quality between the terminal device and the network device is poor.
The terminal device may obtain a Power Headroom Report (PHR), and determine whether the Power Headroom of the terminal device is small. For example, if the PHR acquired by the terminal device is greater than the preset threshold (the third threshold), it indicates that the power headroom of the terminal device is greater, that is, the transmission power of the terminal device is greater than the preset threshold. It is to be understood that the above-mentioned preset threshold value may be a value not less than 0.
In the embodiment of the application, under the condition that the transmission power of the terminal equipment is greater than the third threshold value, the first signal and the second signal are obtained, and whether the distance between the living body and the terminal equipment is smaller than the first preset threshold value or not is further determined, so that the terminal equipment only has higher power of the transmission signal, or the communication between the terminal equipment and the network equipment is in a weak field, namely only under the condition that the risk that the SAR value of the terminal equipment exceeds the standard is higher, whether the distance between the life body and the terminal equipment is smaller than a first preset threshold value or not can be further determined, and when the distance between the life body and the terminal equipment is smaller than the first preset threshold, the transmitting power of the terminal equipment is reduced, so that the problem that the resource waste of the terminal equipment is caused by frequently determining whether the distance between the life body and the terminal equipment is smaller than the first preset threshold is avoided.
Optionally, the first signal and the second signal are obtained from a measurement module in a modem processor on the terminal device.
As shown in fig. 7, the reference signal transmitted by the base station is usually an electromagnetic wave signal, and after each antenna receives the reference signal, the corresponding diversity receiving apparatus or main set receiving apparatus is selected by the control switch, and the electromagnetic wave signal is converted into an ac signal. Then the alternating current signal is sent to a low-noise amplifier for amplification and filtering, then sent to an incident frequency circuit for frequency modulation, and the modulated signal is sent to a modulation and demodulation processor to be demodulated with a local oscillator signal, so that a baseband signal is obtained. Wherein the received reference signal indicative of the signal strength of the received signal is obtained from a measurement module in the modem processor. The received reference signal obtained before the first time may be a fifth signal, the received reference signal obtained at the first time may be a first signal, and the received reference signal obtained after the first time may be a second signal.
In the embodiment of the application, the first signal and the second signal are obtained from the measurement module in the modem processor on the terminal device, so that in the process of obtaining the indication information according to the first signal and the second signal, the terminal device does not need to additionally add other devices, and the cost for obtaining the indication information is reduced.
Before acquiring the reference signal received before the first time, optionally, determining a current working state of the terminal device, and acquiring the reference signal received before the first time when the current working state of the terminal device is a preset working state.
For example, the current working state of the terminal device may refer to that the terminal device is in a call state, or the terminal device is in a game state, or the terminal device is in a data downloading state, which is not limited in this embodiment of the present application. The terminal device may determine the current operating state of the terminal device according to the currently running process.
The preset operating state may be an operating state in which the power of the transmission signal is allowed to be adjusted. For example, the preset operating state may be a game state, and when the terminal device is in the game state, if it is recognized that the terminal device is far away from the human body, the power of the signal transmitted by the terminal device may be adjusted. Based on this, when it is determined that the current operating state of the terminal device is the game state, the terminal device may decrease the power of the transmission signal. The terminal device may proceed to determine whether the indication is available. Correspondingly, when the current working state of the terminal device is not the preset working state, for example, the call state, the terminal device needs to perform data interaction with the base station, and if the power of the transmission signal is reduced, the call quality may be affected. Therefore, when it is determined that the current operating state of the terminal device is a call state, even if it is further determined that the distance between the terminal device and the living body is small, the transmission power of the terminal device cannot be reduced, and therefore it may not be further determined whether or not the instruction information is obtained.
In the embodiment of the application, the current working state of the terminal device is determined, and whether the indication information is obtained is further determined when the current working state of the terminal device is the preset working state, so that whether the current working state of the terminal device is the preset working state capable of reducing the power of the transmission signal is determined before whether the power of the transmission signal is to be reduced is determined by the terminal device, and whether the power of the transmission signal is to be reduced is determined only when the current working state of the terminal device is the preset working state, namely, the power of the transmission signal can be adjusted, and therefore the waste of terminal device resources caused by executing an unnecessary process when the power of the transmission signal cannot be reduced by the terminal device is avoided.
S202, a first signal and a second signal of each of the N antennas are obtained, where each first signal is used to indicate a signal strength of a signal received by one of the N antennas at a first time, and each second signal is used to indicate a signal strength of a signal received by one of the N antennas after the first time.
S203, obtaining the difference value of the first signal and the second signal of each antenna in the N antennas.
As can be seen from the above description, there are multiple antennas on the handset, and each antenna has its corresponding first signal and second signal. For example, if a mobile phone includes four antennas, namely antenna 1, antenna 2, antenna 3 and antenna 4, the difference 1 between the first signal and the second signal of antenna 1, the difference 2 between the first signal and the second signal of antenna 2, the difference 3 between the first signal and the second signal of antenna 3, and the difference 4 between the first signal and the second signal of antenna 4 can be obtained.
It should be understood that the second signal may be a plurality of received reference signals, and when specifically obtaining the difference between the first signal and the second signal of each antenna, the difference between the first signal and the average value of all the plurality of received reference signals may be used as the difference between the first signal and the second signal, and the difference between the first signal and the average value of part of the plurality of received reference signals may also be used as the difference between the first signal and the second signal, which is not limited in this embodiment of the present application.
Taking n received reference signals obtained within a preset time duration after the second signal of the antenna 1 is the first time as an example, where n is a positive integer greater than 0. Obtaining the difference between the first signal and the second signal may refer to obtaining the difference between the first signal and an average value of m received reference signals of the n received reference signals.
For example, m may be a positive integer smaller than n and larger than a second preset threshold, and obtaining a difference between the first signal and the second signal is equivalent to obtaining a difference between the first signal and an average value of a part of received reference signals in the second signal.
In the embodiment of the application, the difference between the first signal and the second signal is obtained by only partially receiving the reference signal in the second signal, so that the resource of the terminal device required to be consumed for obtaining the difference between the first signal and the second signal is reduced.
Illustratively, m may be n, and the difference between the first signal and the second signal is obtained to be equivalent to the difference between the first signal and the average value of all received reference signals in the second signal.
In the embodiment of the application, the difference between the first signal and the second signal is obtained by adopting all the received reference signals in the second signal, so that the difference between the first signal and the second signal is more accurately obtained.
In the case of obtaining the difference between the first signal and the second signal of each antenna, the difference between the first signal and the second signal of each antenna may be compared with a first threshold, the difference that the difference between the first signal and the second signal is greater than the first threshold is used as a first difference, and the difference that the difference between the first signal and the second signal is less than or equal to the first threshold is used as a second difference.
It should be understood that the first threshold may be 0, and may also be a value greater than 0, which is not limited in this embodiment of the application.
It should be understood that the difference between the first signal and the second signal for each of the N antennas includes the following three cases.
Situation one
The difference of the first signal and the second signal for each of the N antennas comprises a first difference and a second difference.
Situation two
The difference between the first signal and the second signal of each of the N antennas is a first difference.
Situation three
The difference between the first signal and the second signal for each of the N antennas is a second difference.
And in the case that the difference value of the first signal and the second signal of each of the N antennas is the second difference value, the situation shows that no living body absorbing the electromagnetic wave signal exists near the terminal equipment.
How to obtain the indication information according to the first case and the second case is described in detail by steps S204 to S210.
S204, in case that the difference value of the first signal and the second signal of each of the N antennas includes a first difference value and a second difference value, S209 is performed.
In the case where the difference between the first signal and the second signal in the N antennas includes both the first difference and the second difference, it is equivalent to that the signal quality of a part of the N antennas is deteriorated, and the signal quality of another part of the N antennas is not deteriorated. Generally, when the connection between the network device and the terminal device causes the signal of the terminal device to deteriorate, the signal quality of all antennas on the terminal device may deteriorate. The signal quality of a part of antennas in the terminal device is deteriorated, and the signal quality of another part of antennas is not deteriorated, which is generally caused by the interference of the received signal of a part of antennas. Therefore, in the case where the difference between the first signal and the second signal in the N antennas includes both the first difference and the second difference, the indication information indicating that the distance between the living body and the terminal device is smaller than the first preset threshold may be obtained.
In the embodiment of the application, when the difference value between the first signal and the second signal of each antenna in the N antennas includes the first difference value and the second difference value, the indication information indicating that the distance between the living body and the terminal device is smaller than the first preset threshold value is obtained, so that the terminal device can judge whether the living body approaches the terminal device only through the difference value between the first signal and the second signal obtained by each antenna, and convenience in obtaining the indication information is improved.
S205, if the difference between the first signal and the second signal of each of the N antennas is the first difference, then S206 is executed.
When the difference between the first signal and the second signal of each of the N antennas is the first difference, that is, the signal quality of all the antennas on the terminal device is deteriorated. When the signal quality between the terminal device and the network device becomes poor, for example, the distance between the terminal device and the currently connected network device becomes large, the terminal device cannot meet the residence condition for continuing to reside in the current cell. The network equipment issues an instruction of switching the connection mode to the terminal equipment based on the conditions so as to improve the current communication quality. For example, the network device issues an instruction to the terminal device to switch to another cell adjacent to the current cell, and the terminal device switches from the currently connected cell to another cell according to the instruction. Or the network equipment sends an instruction of switching to other frequency bands to the terminal equipment, and the terminal equipment switches to the frequency band of 925MHz-960MHz from the currently working frequency band of 1.805GHz-1.86GHz based on the instruction. Or, the network device issues an instruction to the terminal device to switch to another system, and the terminal device switches from the currently operating fifth Generation Mobile Communication Technology (5G) frequency band to the fourth Generation Mobile Communication Technology (4G) based on the instruction.
S206, a third signal and a fourth signal of each of the N antennas are obtained, where each third signal is used to indicate the signal strength of the reference signal received by one of the N antennas in another connection manner than the current connection manner at the second time, and each fourth signal is used to indicate the signal strength of the reference signal received by one of the N antennas in another connection manner after the second time.
It should be understood that, before the terminal device switches the connection mode with the network device, the terminal device may first acquire the reception reference signal for confirming the signal quality between the terminal device and the network device after the switching, and then switch the connection mode between the terminal device and the network device. For example, before the terminal device is switched from the current cell to another adjacent cell, the terminal device first obtains a reception reference signal indicating the signal quality of the other cell, and when the signal strength of the reception reference signal is greater than a preset threshold, the communication quality between the terminal device and the other cell is good and meets the requirement of a relevant index, and then the terminal device is switched to the other cell adjacent to the current cell.
Wherein the third signal may be indicative of a strength of a signal received by the antenna at the second time, and the third signal may be a received reference signal received by the antenna at the second time, similar to the first signal. It should be understood that the second time refers to a time after the antenna receives the second signal, that is, a time before the terminal device switches the connection mode with the network device. At this time, the third signal may be used to indicate the communication quality of the connection method between the terminal device and the network device after the switching. It will be appreciated that each antenna has its corresponding third signal.
The fourth signal may indicate a strength of a signal received after the second time instant, and the fourth signal may be a received reference signal received by the antenna after the second time instant, similar to the second signal. It should be appreciated that the fourth signal may be used to indicate the communication quality between the antenna and the network device via the switched connection. The fourth signal may be one received reference signal or multiple received reference signals, which is not limited in this embodiment of the present application.
In an example, in a case that the fourth signal of each antenna is one, the fourth signal may be a first received reference signal obtained by the antenna periodically according to a preset frequency after the second time, or may be a received reference signal obtained after the second time and with a preset time interval, which is not limited in this embodiment of the application.
In an example, when the number of the fourth signals of each antenna is multiple, the fourth signals may be multiple received reference signals after the second time that the antenna periodically obtains according to a preset frequency, or may be received reference signals obtained multiple times after the second time that is specified by the user, which is not limited in this embodiment of the application.
It should be understood that each of the N antennas has its corresponding third and fourth signals present.
Optionally, the third signal and the fourth signal are obtained from a measurement module in a modem processor on the terminal device.
And S207, acquiring a difference value of the third signal and the fourth signal of each antenna in the N antennas.
As can be seen from the above description, there are multiple antennas on the handset, and each antenna has its corresponding third signal and fourth signal. For example, if a mobile phone includes four antennas, namely antenna 1, antenna 2, antenna 3, and antenna 4, the difference 1 between the third signal and the fourth signal of antenna 1, the difference 2 between the third signal and the fourth signal of antenna 2, the difference 3 between the third signal and the fourth signal of antenna 3, and the difference 4 between the third signal and the fourth signal of antenna 4 can be obtained.
It should be understood that the fourth signal may be a plurality of received reference signals, and when specifically obtaining the difference between the third signal and the fourth signal of each antenna, the difference between the third signal and the average value of all the plurality of received reference signals may be used as the difference between the third signal and the fourth signal, and the difference between the third signal and the average value of part of the plurality of received reference signals may also be used as the difference between the third signal and the fourth signal, which is not limited in this embodiment of the present application.
Taking n receiving reference signals obtained within a preset time after the fourth signal of the antenna 1 is the second time as an example, where n is a positive integer greater than 0. Obtaining the difference between the third signal and the fourth signal may refer to obtaining the difference between the third signal and an average value of m received reference signals of the n received reference signals.
For example, m may be a positive integer smaller than n and larger than a second preset threshold, and obtaining a difference between the third signal and the fourth signal is equivalent to obtaining a difference between the third signal and an average value of a part of the received reference signals in the fourth signal.
In the embodiment of the application, only part of the received reference signal in the fourth signal is used to obtain the difference between the third signal and the fourth signal, so that the resource of the terminal device required to be consumed when the difference between the third signal and the fourth signal is obtained is reduced.
Illustratively, m may be n, and the difference between the third signal and the fourth signal is obtained to be equivalent to the difference between the third signal and the average value of all received reference signals in the fourth signal.
In the embodiment of the application, the difference between the third signal and the fourth signal is obtained by using all the received reference signals in the fourth signal, so that the difference between the third signal and the fourth signal is more accurately obtained.
In the case of obtaining the difference between the third signal and the fourth signal of each antenna, the difference between the third signal and the fourth signal of each antenna may be compared with a first threshold, the difference between the third signal and the fourth signal greater than a second threshold is used as a third difference, and the difference between the third signal and the fourth signal smaller than or equal to the second threshold is used as a fourth difference.
It should be understood that the second threshold may be 0, or may be a value greater than 0, which is not limited in the embodiment of the present application. The second threshold may be the same as or different from the first threshold, and this is not limited in this embodiment of the application.
It should be understood that the difference between the third signal and the fourth signal for each of the N antennas includes the following three cases.
Situation one
The difference of the third signal and the fourth signal for each of the N antennas comprises a third difference and a fourth difference.
Situation two
The difference between the third signal and the fourth signal of each of the N antennas is a third difference.
Situation three
The difference between the third signal and the fourth signal of each of the N antennas is a fourth difference.
And in the case that the difference value of the third signal and the fourth signal of each of the N antennas is the fourth difference value, it is described that there is no living body absorbing the electromagnetic wave signal in the vicinity of the terminal device.
S208, in case that the difference value of the third signal and the fourth signal of each of the N antennas includes the third difference value and the fourth difference value, S209 is performed.
In the case where the difference between the third signal and the fourth signal in the N antennas includes both the third difference and the fourth difference, it is equivalent to that the signal quality of a part of the N antennas is degraded, and the signal quality of another part of the N antennas is not degraded. Since the third signal and the fourth signal are obtained after the terminal device switches the connection mode between the terminal device and the network device, that is, under the condition that the signal quality of all the antennas in the N antennas is not deteriorated due to the switching of the connection mode, the difference value between the third signal and the fourth signal still indicates that the signal quality of a part of the antennas is deteriorated, and the signal quality of another part of the antennas is not deteriorated. Thus, it can be determined that the antenna with the deteriorated signal quality is caused by the fact that the living body absorbs the energy of the electromagnetic wave signal because the distance between the living body and the antenna is smaller than the first preset threshold.
And S209, obtaining the indication information.
In the embodiment of the application, when the difference between the first signal and the second signal of each antenna in the N antennas is the first difference, it is determined whether the connection mode between the terminal device and the network device is switched at the current time, and when the connection mode between the terminal device and the network device is not switched, the third signal and the fourth signal of each antenna in the N antennas are obtained, and the difference between the third signal and the fourth signal of each antenna in the N antennas is obtained, so that when the difference between the third signal and the fourth signal of each antenna in the N antennas includes the first difference and the second difference, the indication information is obtained. Each third signal is used for indicating the signal strength of the reference signal received by one antenna of the N antennas in the other connection modes except the current connection mode at the second time, and each fourth signal is used for indicating the signal strength of the reference signal received by one antenna of the N antennas in the other connection modes after the second time. Therefore, under the condition that the indication information cannot be obtained according to the fact that the difference value of the first signal and the second signal is the first difference value, the indication information is further determined according to the difference value of the third signal and the fourth signal of each antenna in the N antennas, and therefore the indication information is obtained through obtaining the difference value of the received reference signals twice, and accuracy of the obtained indication information is improved.
The above embodiments mainly describe a specific process how to obtain the indication information according to the difference between the first signal and the second signal of each of the N antennas, where the indication information may be used to indicate that the distance between the living body and the terminal device is smaller than the first preset threshold. In one possible case, the indication information may be used to indicate that the distance between the living body and the target antenna in the terminal device is smaller than a first preset threshold. In this case, it may be determined that the distance between the living body and the terminal device is smaller than the first preset threshold through a preset algorithm, and then the indication information may be obtained according to the first signal and the second signal. This is explained in more detail below by means of the embodiment shown in fig. 8.
Fig. 8 is a flowchart illustrating a method for detecting a living body approaching a terminal device according to another embodiment of the present application, where the method is applied to a terminal device including multiple antennas, and as shown in fig. 8, the method includes the following steps:
s301, determining whether the terminal equipment is held by a user or not by adopting a preset algorithm.
The preset algorithm may be a Touch Panel (TP) algorithm, and the TP algorithm may be used to determine whether the terminal device is held by the user. In the case where the terminal device is held by the user, S302 is executed.
S302, determining a target antenna, wherein the target antenna is any one antenna in the terminal equipment.
On the basis of S301, when it is determined that the terminal device is held by the user, one or more target antennas may be selected from the N antennas in the terminal device. The target antenna may be any one of the terminal devices or an antenna in which M users are interested, where M < N, that is, the target antenna indicated by the indication information obtained in the embodiment of the present application.
And S303, acquiring a first signal and a second signal of the target antenna.
The first signal may be used to indicate the strength of a signal received by the target antenna at a first time, and the second signal may be used to indicate the strength of a signal received by the target antenna after the first time.
S304, under the condition that the difference value between the first signal and the second signal of the target antenna is larger than a first threshold value, acquiring a third signal and a fourth signal of each antenna in the N antennas.
Each third signal is used for indicating the signal strength of the reference signal received by one antenna of the N antennas in the other connection modes except the current connection mode at the second time, and each fourth signal is used for indicating the signal strength of the reference signal received by one antenna of the N antennas in the other connection modes after the second time.
S305, obtaining the difference value of the third signal and the fourth signal of each antenna in the N antennas.
S306, obtaining the indication information under the condition that the difference value of the third signal and the fourth signal of the target antenna is a third difference value and the difference value of the third signal and the fourth signal of at least one other antenna is a fourth difference value.
The first difference is a difference greater than a first threshold, and the first threshold is a value greater than 0. And when the difference value of the third signal and the fourth signal of the target antenna is a first difference value, indicating that the signal quality of the target antenna is poor.
The second difference is a difference less than or equal to the first threshold. And when the difference value of the third signal and the fourth signal of the antenna is a second difference value, indicating that the signal quality of the antenna is not deteriorated.
The situation that the signal quality of the target antenna is degraded and the signal quality of any other antenna on the terminal device is not degraded is usually caused by that the living body approaches the target antenna and absorbs the electromagnetic wave signal near the target antenna. Therefore, the indication information indicating that the distance between the living being and the target antenna in the terminal device is smaller than the first preset threshold can be obtained when the difference between the third signal and the fourth signal of the target antenna is the first difference and the difference between the third signal and the fourth signal of at least one other antenna is the second difference.
In the embodiment of the application, a preset algorithm is adopted to determine whether the terminal device is held by a user, a target antenna is determined when the terminal device is held by the user, the connection mode between the terminal device and the network device is switched when the difference value between a first signal and a second signal of the target antenna is larger than a first threshold value, then a third signal and a fourth signal of each antenna in the N antennas are obtained, and finally indication information is obtained according to the third signal and the fourth signal of each antenna in the N antennas, wherein the target antenna is any one of the terminal devices, each third signal is used for indicating the signal strength of a reference signal received by one antenna in the N antennas in other connection modes except the current connection mode at a second moment, and each fourth signal is used for indicating the signal strength of a reference signal received by one antenna in the N antennas in other connection modes after the second moment, the indication information is used for indicating that the distance between the living body and the target antenna is smaller than a first preset threshold value. That is to say, without additionally adding other devices, the indication information indicating that the distance between the living body and the target antenna is smaller than the first preset threshold value can be obtained through the first signal, the second signal, the third signal and the fourth signal acquired by the terminal device, and the cost of obtaining the indication information by the terminal device is reduced.
In a possible case, under the condition that the terminal device is held by a user, before the target antenna is determined, the current communication quality of the terminal device may be detected, and under the condition that the current communication quality meets the requirement, whether the distance between the living body and the target antenna is smaller than a preset threshold value is determined. This is described in detail below with respect to the embodiment shown in fig. 9.
Fig. 9 is a flowchart illustrating a method for detecting a living body approaching a terminal device according to another embodiment of the present application, where the method is applied to a terminal device including multiple antennas, and as shown in fig. 9, the method includes the following steps:
s401, determining whether the terminal equipment is held by a user or not by adopting a preset algorithm.
In a case where the terminal device is held by the user, S402 is executed.
S402, acquiring a received reference signal before the first time, or acquiring a power headroom of the terminal device before the first time.
S403, determining whether the received reference signal before the first time is greater than a first threshold, or determining whether the power headroom of the terminal device before the first time is greater than a second threshold, if yes, performing S404 and S405 respectively.
S404, acquiring a first signal and a second signal of the target antenna.
The first signal is used for indicating the signal strength of the signal received by the antenna at the first time, and each second signal is used for indicating the signal strength of the signal received by the antenna after the first time.
S405, acquiring first signals and second signals of other antennas except the target antenna in the N antennas.
S406, obtaining a difference value between the first signal and the second signal of the target antenna.
S407, under the condition that the difference value of the first signal and the second signal of the target antenna is larger than a preset threshold value, acquiring a third signal and a fourth signal of the target antenna.
S408, obtaining the difference value of the first signal and the second signal of the other antennas except the target antenna in the N antennas.
And S409, acquiring third signals and fourth signals of other antennas except the target antenna in the N antennas.
Each third signal is used for indicating the signal strength of the signal received by one of the N antennas at the second time, and each fourth signal is used for indicating the signal strength of the signal received by one of the N antennas after the second time.
S410, obtaining the difference value of the third signal and the fourth signal of each antenna in the N antennas.
S411, obtaining the indication information under the condition that the difference value of the third signal and the fourth signal of the target antenna is a third difference value and the difference value of the third signal and the fourth signal of at least one other antenna is a fourth difference value.
The implementation manner and the beneficial effects of the method for detecting the proximity of the living body to the terminal device are similar to those of the embodiment shown in fig. 10, and are not described again here.
It should be understood that, although the steps in the flowcharts in the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Fig. 10 is a schematic structural diagram of an apparatus for detecting that a living body approaches a terminal device according to an embodiment of the present application.
It should be understood that the apparatus 600 for detecting the proximity of a living body to a terminal device is applied to a terminal device including N antennas, where N is a positive integer greater than or equal to 2, and may perform the method for detecting the proximity of a living body to a terminal device shown in fig. 4 to 9; the apparatus 600 for detecting the approach of a living body to a terminal device includes: an acquisition unit 610 and a processing unit 620.
In one example, the obtaining unit 610 is configured to obtain a first signal and a second signal for each of N antennas, where each first signal is used to indicate a signal strength of a signal received by one of the N antennas at a first time, and each second signal is used to indicate a signal strength of a signal received by one of the N antennas after the first time;
the processing unit 620 is configured to obtain indication information according to the first signal and the second signal of each of the N antennas, where the indication information is used to indicate that a distance between the living body and a target object is smaller than a first preset threshold, and the target object includes a terminal device or a target antenna in the terminal device.
The obtaining unit 610 is configured to obtain a first signal and a second signal for each of the N antennas, where each first signal is used to indicate a signal strength of a signal received by one of the N antennas at a first time, and each second signal is used to indicate a signal strength of a signal received by one of the N antennas after the first time; obtaining a difference value between a first signal and a second signal of each antenna in N antennas;
the processing unit 620 is configured to obtain indication information according to a difference between the first signal and the second signal of each of the N antennas, where the indication information is used to indicate that a distance between the living body and a target object is smaller than a first preset threshold, and the target object includes a terminal device or a target antenna in the terminal device.
In one embodiment, the processing unit 620 is configured to obtain the indication information when a difference between the first signal and the second signal of each of the N antennas includes a first difference and a second difference, where the first difference is a value greater than a first threshold, and the second difference is a value less than or equal to the first threshold.
In an embodiment, the processing unit 620 is configured to, when a difference between a first signal and a second signal of each antenna of the N antennas is a first difference, obtain a third signal and a fourth signal of each antenna of the N antennas, where the first difference is a value greater than a first threshold, each third signal is used to indicate a signal strength of a reference signal received by one antenna of the N antennas in a connection manner other than a current connection manner at the second time, and each fourth signal is used to indicate a signal strength of a reference signal received by one antenna of the N antennas in another connection manner after the second time;
the obtaining unit 610 is configured to obtain a difference between the third signal and the fourth signal of each of the N antennas; and obtaining the indication information according to the difference value of the third signal and the fourth signal of each antenna in the N antennas.
In one embodiment, the processing unit 620 is configured to obtain the indication information when the difference between the third signal and the fourth signal of each of the N antennas includes a third difference value and a fourth difference value, where the third difference value is a value greater than the second threshold, and the fourth difference value is a value less than or equal to the second threshold.
In one embodiment, the processing unit 620 is configured to determine whether the terminal device is held by the user using a preset algorithm; determining a target antenna under the condition that the terminal equipment is held by a user, wherein the target antenna is any one of the antennas in the terminal equipment;
the obtaining unit 610 is configured to obtain, when a difference between a first signal and a second signal of a target antenna is greater than a first threshold, a third signal and a fourth signal of each of N antennas, where each third signal is used to indicate a signal strength of a signal received by one of the N antennas at a second time, and each fourth signal is used to indicate a signal strength of a signal received by one of the N antennas after the second time; obtaining a difference value of a third signal and a fourth signal of each antenna in the N antennas;
the processing unit 620 is configured to obtain indication information when a difference between the third signal and the fourth signal of the target antenna is a third difference, and a difference between the third signal and the fourth signal of at least one other antenna is a fourth difference, where the other antenna is an antenna other than the target antenna among the N antennas, and the indication information is used to indicate that a distance between the living body and the target antenna is smaller than a first preset threshold.
In one embodiment, processing unit 620 is configured to determine, prior to the first time, whether the terminal device transmission power is greater than a third threshold; and under the condition that the transmitting power of the terminal equipment is greater than a third threshold value, acquiring a first signal and a second signal of each antenna in the N antennas.
In one embodiment, before acquiring the first signal and the second signal of each of the N antennas, the acquiring unit 610 is further configured to determine a current operating state of the terminal device; and under the condition that the current working state of the terminal equipment is a preset working state, acquiring a first signal and a second signal of each antenna in the N antennas.
In one embodiment, the obtaining unit 610 is specifically configured to obtain the first signal and the second signal of each antenna of the N antennas from a modem processor on the terminal device.
In one embodiment, the first signal refers to at least one of reference signal received power, RSRP, received signal strength indication, RSSI, received signal code power, RSCP, reference signal received quality, RSRQ, independent signal unit, ASU, signal to noise ratio, SNR, and error vector magnitude, EVM; the second signal is at least one of reference signal received power RSRP, received signal strength indication RSSI, received signal code power RSCP, reference signal received quality RSRQ, independent signal unit ASU, signal to noise ratio SNR, and error vector magnitude EVM.
The apparatus for detecting proximity of a living body to a terminal device according to this embodiment is used to execute the method for detecting proximity of a living body to a terminal device according to the foregoing embodiment, and the technical principle and the technical effect are similar, and are not described herein again.
For example, a "unit" may be a software program, a hardware circuit, or a combination of both that implement the above-described functions. The hardware circuitry may include an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group of processors) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality.
Accordingly, the units of the respective examples described in the embodiments of the present application can be realized in electronic hardware, or a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Fig. 11 shows a schematic structural diagram of a terminal device provided in the present application. The dashed lines in fig. 11 indicate that the unit or the module is optional. The terminal device 700 may be used to implement the method of detecting the proximity of a living body to the terminal device described in the above method embodiments.
The terminal device 700 includes one or more processors 701. The one or more processors 701 may enable the terminal device 700 to implement the method of detecting a living being approaching the terminal device in the method embodiments. The processor 701 may be a general purpose processor or a special purpose processor. For example, the processor 701 may be a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other programmable logic device, such as a discrete gate, a transistor logic device, or a discrete hardware component.
The processor 701 may be configured to control the terminal device 700, execute a software program, and process data of the software program. The terminal apparatus 700 may further include a communication unit 705 to enable input (reception) and output (transmission) of signals.
For example, the terminal device 700 may be a chip and the communication unit 705 may be an input and/or output circuit of the chip, or the communication unit 705 may be a communication interface of the chip, and the chip may be an integral part of the terminal device or other terminal devices.
Also for example, the communication unit 705 may be a transceiver of the terminal device, or the communication unit 705 may be a transceiver circuit of the terminal device.
The terminal device 700 may include one or more memories 702, on which programs 704 are stored, and the programs 704 may be executed by the processor 701 to generate instructions 703, so that the processor 701 executes the method for detecting the proximity of the living body to the terminal device according to the instructions 703, which is described in the above method embodiments.
Optionally, data may also be stored in the memory 702. Alternatively, the processor 701 may also read data stored in the memory 702, the data may be stored at the same memory address as the program 704, and the data may be stored at a different memory address from the program 704.
The processor 701 and the memory 702 may be provided separately or integrated together; for example, on a System On Chip (SOC) of the terminal device.
Illustratively, the memory 702 may be configured to store a related program 704 of the method for detecting the proximity of the living body to the terminal device provided in the embodiment of the present application, and the processor 701 may be configured to call the related program 704 of the method for detecting the proximity of the living body to the terminal device stored in the memory 702 when the terminal device is detected that the living body is in proximity to the terminal device, and execute the method for detecting the proximity of the living body to the terminal device according to the embodiment of the present application; for example, a first signal and a second signal of each of N antennas are obtained, where each first signal is used to indicate the signal strength of a signal received by one of the N antennas at a first time, and each second signal is used to indicate the signal strength of a signal received by one of the N antennas after the first time; and obtaining indication information according to the first signal and the second signal of each antenna in the N antennas, wherein the indication information is used for indicating that the distance between the living body and the target object is smaller than a first preset threshold value, and the target object comprises terminal equipment or a target antenna in the terminal equipment.
Illustratively, the memory 702 may be configured to store a related program 704 of the method for detecting the proximity of the living body to the terminal device provided in the embodiment of the present application, and the processor 701 may be configured to call the related program 704 of the method for detecting the proximity of the living body to the terminal device stored in the memory 702 when the terminal device is detected that the living body is in proximity to the terminal device, and execute the method for detecting the proximity of the living body to the terminal device according to the embodiment of the present application; for example, a first signal and a second signal of each of N antennas are obtained, where each first signal is used to indicate the signal strength of a signal received by one of the N antennas at a first time, and each second signal is used to indicate the signal strength of a signal received by one of the N antennas after the first time; obtaining a difference value of a first signal and a second signal of each antenna in N antennas; and obtaining indication information according to a difference value between the first signal and the second signal of each antenna in the N antennas, wherein the indication information is used for indicating that the distance between the living body and the target object is smaller than a first preset threshold value, and the target object comprises terminal equipment or a target antenna in the terminal equipment.
Illustratively, the memory 702 may be configured to store a related program 704 of the method for detecting the proximity of the living body to the terminal device provided in the embodiment of the present application, and the processor 701 may be configured to call the related program 704 of the method for detecting the proximity of the living body to the terminal device stored in the memory 702 when the terminal device is detected that the living body is in proximity to the terminal device, and execute the method for detecting the proximity of the living body to the terminal device according to the embodiment of the present application; for example, a preset algorithm is adopted to determine whether the terminal equipment is held by a user; determining a target antenna under the condition that the terminal equipment is held by a user, wherein the target antenna is any one of the terminal equipment; under the condition that the difference value between the first signal and the second signal of the target antenna is larger than a first threshold value, acquiring a third signal and a fourth signal of each of the N antennas, wherein each third signal is used for indicating the signal strength of a signal received by one of the N antennas at a second moment, and each fourth signal is used for indicating the signal strength of a signal received by one of the N antennas after the second moment; obtaining a difference value of a third signal and a fourth signal of each antenna in the N antennas; and obtaining indication information under the condition that the difference value of the third signal and the fourth signal of the target antenna is a third difference value and the difference value of the third signal and the fourth signal of at least one other antenna is a fourth difference value, wherein the other antennas are antennas except the target antenna in the N antennas, and the indication information is used for indicating that the distance between the living body and the target antenna is smaller than a first preset threshold value.
The present application further provides a computer program product, which when executed by the processor 701 implements the method for detecting that a living being approaches a terminal device according to any of the method embodiments of the present application.
The computer program product may be stored in the memory 702, for example, as the program 704, and the program 704 is finally converted into an executable object file capable of being executed by the processor 701 through preprocessing, compiling, assembling, linking and the like.
The present application further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a computer, implements the method for detecting the approach of a living body to a terminal device according to any of the method embodiments of the present application. The computer program may be a high-level language program or an executable object program.
Such as memory 702. Memory 702 may be either volatile memory or nonvolatile memory, or memory 702 may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM, enhanced SDRAM, SLDRAM, Synchronous Link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
In the present application, "at least one" means one or more, "a plurality" means two or more. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative; for example, the division of the unit is only a logic function division, and there may be another division manner in actual implementation; for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method for detecting that a living body approaches a terminal device, wherein the method is applied to a terminal device comprising N antennas, N being a positive integer greater than or equal to 2, and comprises:
obtaining, from a modem processor on the terminal device, a first signal and a second signal for each of the N antennas, where each of the first signals is used to indicate a signal strength of a signal received by one of the N antennas at a first time, and each of the second signals is used to indicate a signal strength of a signal received by one of the N antennas after the first time;
obtaining indication information according to the first signal and the second signal of each antenna in the N antennas, where the indication information is used to indicate that a distance between a living body and a target object is smaller than a first preset threshold, and the target object includes the terminal device or a target antenna in the terminal device;
wherein the obtaining the indication information according to the first signal and the second signal of each of the N antennas includes:
obtaining a difference between the first signal and the second signal for each of the N antennas;
obtaining the indication information according to a difference value between the first signal and the second signal of each antenna in the N antennas;
wherein the obtaining the indication information by the difference between the first signal and the second signal of each of the N antennas comprises:
under the condition that the difference value between the first signal and the second signal of each antenna in the N antennas is a first difference value, obtaining a third signal and a fourth signal of each antenna in the N antennas, where the first difference value is a numerical value greater than a first threshold, each third signal is used to indicate the signal strength of a received reference signal of one antenna in the N antennas in a connection mode other than the current connection mode at a second time, and each fourth signal is used to indicate the signal strength of a received reference signal of one antenna in the N antennas in the other connection mode after the second time;
obtaining a difference between the third signal and the fourth signal for each of the N antennas;
and obtaining the indication information according to the difference value of the third signal and the fourth signal of each antenna in the N antennas.
2. The method of claim 1, wherein obtaining the indication information according to a difference between the first signal and the second signal of each of the N antennas comprises:
and obtaining the indication information when the difference between the first signal and the second signal of each of the N antennas includes a first difference and a second difference, where the first difference is a value greater than a first threshold, and the second difference is a value less than or equal to the first threshold.
3. The method of claim 1, wherein obtaining the indication information according to a difference between the third signal and the fourth signal of each of the N antennas comprises:
and obtaining the indication information when the difference between the third signal and the fourth signal of each of the N antennas includes a third difference and a fourth difference, where the third difference is a value greater than a second threshold, and the fourth difference is a value less than or equal to the second threshold.
4. The method of claim 1, wherein prior to obtaining the first signal and the second signal for each of the N antennas, further comprising:
determining whether the terminal equipment is held by a user or not by adopting a preset algorithm;
determining a target antenna under the condition that the terminal equipment is held by the user, wherein the target antenna is any one of the terminal equipment;
the obtaining the indication information according to the first signal and the second signal of each of the N antennas includes:
under the condition that the difference value between the first signal and the second signal of the target antenna is greater than a first threshold value, acquiring a third signal and a fourth signal of each of the N antennas, wherein each third signal is used for indicating the signal strength of a signal received by one of the N antennas at a second time, and each fourth signal is used for indicating the signal strength of a signal received by one of the N antennas after the second time;
obtaining a difference value of a third signal and a fourth signal of each antenna in the N antennas;
and obtaining the indication information under the condition that the difference value of the third signal and the fourth signal of the target antenna is a third difference value and the difference value of the third signal and the fourth signal of at least one other antenna is a fourth difference value, wherein the other antennas are antennas except the target antenna in the N antennas, and the indication information is used for indicating that the distance between the living body and the target antenna is smaller than a first preset threshold value.
5. The method according to any one of claims 1 to 4, further comprising:
before the first time, determining whether the transmitting power of the terminal equipment is larger than a third threshold value;
the acquiring the first signal and the second signal of each of the N antennas includes:
and acquiring the first signal and the second signal of each antenna in the N antennas under the condition that the transmitting power of the terminal equipment is greater than the third threshold value.
6. The method according to any one of claims 1 to 4, further comprising:
determining the current working state of the terminal equipment;
the obtaining the first signal and the second signal of each of the N antennas includes:
and acquiring the first signal and the second signal of each antenna in the N antennas under the condition that the current working state of the terminal equipment is a preset working state.
7. The method according to any of claims 1 to 4, wherein the first signal is at least one of reference signal received power, RSRP, received signal strength indication, RSSI, received signal code power, RSCP, reference signal received quality, RSRQ, independent signal unit, ASU, signal to noise ratio, SNR, and error vector magnitude, EVM; the second signal is at least one of Reference Signal Received Power (RSRP), Received Signal Strength Indication (RSSI), Received Signal Code Power (RSCP), Reference Signal Received Quality (RSRQ), independent signal unit (ASU), signal-to-noise ratio (SNR) and Error Vector Magnitude (EVM).
8. An apparatus for detecting proximity of a living body to a terminal device, the apparatus comprising a processor and a memory, the memory storing a computer program, the processor being configured to call and run the computer program from the memory, so that the apparatus performs the method of detecting proximity of a living body to a terminal device according to any one of claims 1 to 7.
9. An electronic device, comprising a processor configured to couple with a memory and to read instructions in the memory and to cause the electronic device to perform the method according to any of claims 1 to 7 according to the instructions.
10. A computer-readable storage medium having stored thereon computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1-7.
11. A chip comprising a processor for coupling with a memory and executing a computer program in the memory to perform the method of any one of claims 1 to 7.
CN202210281836.8A 2022-03-22 2022-03-22 Method for detecting approach of life body to terminal equipment, terminal equipment and chip Active CN114389727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210281836.8A CN114389727B (en) 2022-03-22 2022-03-22 Method for detecting approach of life body to terminal equipment, terminal equipment and chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210281836.8A CN114389727B (en) 2022-03-22 2022-03-22 Method for detecting approach of life body to terminal equipment, terminal equipment and chip

Publications (2)

Publication Number Publication Date
CN114389727A CN114389727A (en) 2022-04-22
CN114389727B true CN114389727B (en) 2022-08-26

Family

ID=81204827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210281836.8A Active CN114389727B (en) 2022-03-22 2022-03-22 Method for detecting approach of life body to terminal equipment, terminal equipment and chip

Country Status (1)

Country Link
CN (1) CN114389727B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208438B (en) * 2022-09-05 2023-02-03 荣耀终端有限公司 Antenna control method and electronic equipment
CN115765802A (en) * 2022-10-24 2023-03-07 维沃移动通信有限公司 Electronic device, detection method, and readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5073517B2 (en) * 2008-01-29 2012-11-14 パナソニック株式会社 MIMO antenna apparatus and wireless communication apparatus including the same
CN103327589A (en) * 2012-03-19 2013-09-25 联想(北京)有限公司 Human body sensor, method for adjusting antenna module power and electronic device
US9667279B2 (en) * 2013-12-20 2017-05-30 Google Technology Holdings LLC Systems and methods for a universal antenna module
CN105554834A (en) * 2015-08-18 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Antenna switching method of user terminal and user terminal
CN107733534A (en) * 2017-08-29 2018-02-23 深圳市盛路物联通讯技术有限公司 A kind of method of controlling antenna and electronic equipment
CN108429575A (en) * 2018-05-29 2018-08-21 Oppo(重庆)智能科技有限公司 antenna switching method, mobile terminal and computer readable storage medium
CN109067418B (en) * 2018-09-19 2019-12-17 维沃移动通信有限公司 Antenna control method and mobile terminal

Also Published As

Publication number Publication date
CN114389727A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN114389727B (en) Method for detecting approach of life body to terminal equipment, terminal equipment and chip
US11329516B2 (en) Charging method and apparatus
CN111869264B (en) Method for returning to high-standard network from low-standard network and communication device
CN112020130B (en) Interference processing method and equipment
CN111867058B (en) Beam selection method and device
CN114731197A (en) Transmission method based on backscattering, electronic equipment and storage medium
CN114430281B (en) Impedance matching method and device, electronic equipment and readable storage medium
US20090280801A1 (en) Cell Sensor for Access Ports
CN113382363B (en) Method and device for sending messages based on different networks
EP3443763B1 (en) Enhanced system acquisition for wearables
CN103368662A (en) Detection method of electromagnetic radiation and electronic equipment
CN112136335A (en) Positioning measurement method, positioning measurement device, and storage medium
EP3249985B1 (en) Wireless communication device, communication system, and information processing method and program
CN113890648B (en) Method for detecting approach of living body to terminal equipment, storage medium and chip
CN114095104A (en) Communication method and electronic equipment
WO2021197115A1 (en) Antenna tuning method and apparatus, and electronic device and network device
CN114915359B (en) Method, apparatus, electronic device and readable storage medium for selecting channel
CN113541762A (en) Power adjustment method, device and system
US20230370176A1 (en) Antenna blocking alarm method, and communication chip and device
EP3907894A1 (en) Antenna selection method and terminal device
CN115208438B (en) Antenna control method and electronic equipment
CN117956558A (en) Method for transmitting channel sounding reference signal SRS and electronic equipment
CN117135654B (en) Voice service establishment method and electronic equipment
CN115604779B (en) Information sharing method and device and terminal equipment
CN115085826B (en) Transmitting power detection circuit, method and wireless communication device

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
GR01 Patent grant
GR01 Patent grant