CN108900231B - Dynamic antenna adjustment method and related product - Google Patents

Dynamic antenna adjustment method and related product Download PDF

Info

Publication number
CN108900231B
CN108900231B CN201810531541.5A CN201810531541A CN108900231B CN 108900231 B CN108900231 B CN 108900231B CN 201810531541 A CN201810531541 A CN 201810531541A CN 108900231 B CN108900231 B CN 108900231B
Authority
CN
China
Prior art keywords
antenna
signal
antennas
electronic device
distance
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
CN201810531541.5A
Other languages
Chinese (zh)
Other versions
CN108900231A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810531541.5A priority Critical patent/CN108900231B/en
Publication of CN108900231A publication Critical patent/CN108900231A/en
Application granted granted Critical
Publication of CN108900231B publication Critical patent/CN108900231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/0404Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas the mobile station comprising multiple antennas, e.g. to provide uplink diversity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a dynamic antenna adjustment method and a related product, wherein the method is applied to an electronic device, and the electronic device comprises: the system comprises a plurality of antennas, a touch display screen and a sensor; when the electronic equipment is in voice call, detecting the signal intensity of a first antenna of the voice call and whether the touch display screen is in a screen-off state or not by the electronic equipment; if the signal intensity is lower than the signal threshold value and the touch display screen is in a screen-off state, the electronic equipment acquires at least two distance levels between the remaining at least two antennas and the obstacle; the electronic equipment determines the priority of the at least two antennas according to the at least two distance levels, and the electronic equipment performs dynamic antenna adjustment DAT switching on the voice call according to the priority. The technical scheme provided by the application has the advantage of high user experience.

Description

Dynamic antenna adjustment method and related product
Technical Field
The present application relates to the field of communications and terminals, and in particular, to a dynamic antenna adjustment method and related products.
Background
In the prior art, mobile terminals (such as mobile phones, tablet computers, etc.) have become electronic devices preferred and most frequently used by users. With the popularization of the design of the comprehensive screen body of the mobile phone, the performance of the mobile phone antenna is greatly challenged. When a mobile phone is used for a call in a head-to-hand scene, the influence of hand holding on Antenna signal attenuation is very large, Dynamic Antenna adjustment (hereinafter abbreviated as DAT) is needed, and an existing DAT adjustment scheme is to randomly select one Antenna from antennas of a mobile terminal as an adjusted Antenna, so that the adjusted Antenna signal may be not good, which leads to reduction of call quality, and thus affects user experience of using the mobile phone.
Content of application
The embodiment of the application provides a dynamic antenna adjustment method and a related product, wherein when DAT antenna adjustment is executed, the priority of antenna switching is adjusted according to the level of the distance between an antenna and an obstacle, so that the influence of the obstacle on the antenna switching is avoided, and the user experience is improved.
In a first aspect, an embodiment of the present application provides a dynamic antenna adjustment method, where the method is applied to an electronic device, and the electronic device includes: the system comprises a plurality of antennas, a touch display screen and a sensor; wherein,
when the voice call is carried out, the electronic equipment detects the signal intensity of a first antenna of the voice call and whether the touch display screen is in a screen-off state;
if the signal intensity is lower than the signal threshold value and the touch display screen is in a screen-off state, the electronic equipment acquires at least two distance levels between the remaining at least two antennas and the obstacle;
the electronic equipment determines the priority of the at least two antennas according to the at least two distance levels, and the electronic equipment performs dynamic antenna adjustment DAT switching on the voice call according to the priority.
In a second aspect, an electronic device is provided, the electronic device comprising: the system comprises a plurality of antennas, a touch display screen, a sensor and a processor; wherein,
the processor is used for detecting the signal intensity of a first antenna of the voice call and whether the touch display screen is in a screen-off state or not during the voice call;
the processor is further configured to control the sensor to acquire at least two distance levels between the remaining at least two antennas and the obstacle if the signal strength is lower than the signal threshold and the touch display screen is in a screen-off state;
the processor is further configured to determine priorities of the at least two antennas according to the at least two distance levels, and the electronic device performs dynamic antenna adjustment DAT switching for the voice call according to the priorities.
In a third aspect, a computer-readable storage medium is provided, which stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method provided in the first aspect.
In a fourth aspect, there is provided a computer program product comprising a non-transitory computer readable storage medium having a computer program stored thereon, the computer program being operable to cause a computer to perform the method provided by the first aspect.
The embodiment of the application has the following beneficial effects:
it can be seen that, when the voice call is performed, the signal strength of the first antenna for detecting the signal strength of the voice call and whether the touch display screen is in the screen-off state are detected, if the signal strength is lower than the signal threshold and in the screen-off state, the distance grade between the remaining antennas (at least two or more antennas) and the obstacle is detected, the priority of the antennas is determined according to the distance grade, and the electronic device selects the antenna with the highest priority as the switching antenna for the voice call.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic diagram of an electronic device disclosed in an embodiment of the present application.
Fig. 3 is a flowchart illustrating a dynamic antenna adjustment method according to an embodiment of the present application.
Fig. 4 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a mobile phone disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In the method provided in the first aspect, the step of the electronic device performing dynamic antenna adjustment DAT switching for the voice call according to the priority specifically includes:
if the antenna with the highest priority is one, the electronic equipment switches the first antenna for voice call to a second antenna through a DAT, wherein the second antenna is the antenna with the highest priority in the at least two antennas;
if the number of antennas with the highest priority is multiple, the electronic device obtains the coordinates of the current position, determines the geographic range of the coordinates according to the coordinates, searches first historical switching information matched with the geographic range from historical switching information according to the geographic range, obtains an antenna identifier in the first historical switching information, searches a third antenna matched with the antenna identifier from the antennas with the highest priority, and starts a DAT (data access protocol) to switch the voice call to the third antenna.
In the method provided in the first aspect, the determining, by the electronic device, the priority of the at least two antennas according to the at least two distance levels specifically includes:
the electronic device determines the priority of the at least two antennas according to the positive sequence of the at least two distance levels.
In the method provided by the first aspect, if the electronic device includes an ultrasonic sensor and an angle sensor, the electronic device specifically acquires at least two distance levels between the remaining at least two antennas and the obstacle;
determining an ultrasonic sensor closest to any one of at least two antennas, wherein the angle sensor detects an angle of the electronic device, if the angle changes, the ultrasonic sensor is controlled to emit an ultrasonic signal in a first time interval, the starting time of the first time interval is first time t1 when the angle changes, the duration of the first time interval is a set value, a reflected signal of the ultrasonic signal is received, n signal strength values in the reflected signal are collected, and if the absolute value of the difference between the maximum value and the minimum value in the n signal strength values is lower than a difference threshold value and the average value of the n signal strength values is greater than the signal strength threshold value, the distance grade of any one antenna is determined to be low; if the absolute value of the maximum value and the minimum value in the n signal intensity values is higher than the difference threshold value and the average value of the n signal intensity values is larger than the signal intensity threshold value, determining that the distance grade belongs to the distance grade, and if the absolute value of the maximum value and the minimum value in the n signal intensity values is lower than the difference threshold value and the average value of the n signal intensity values is smaller than the signal intensity threshold value, determining that the distance grade belongs to the high distance grade; n is an integer greater than or equal to 2.
In the electronic device provided in the second aspect, the processor is specifically configured to, if the antenna with the highest priority is one, switch the first antenna for the voice call to the second antenna through the DAT, where the second antenna is the antenna with the highest priority of the at least two antennas; if the number of antennas with the highest priority is multiple, the electronic device obtains the coordinates of the current position, determines the geographic range of the coordinates according to the coordinates, searches first historical switching information matched with the geographic range from historical switching information according to the geographic range, obtains an antenna identifier in the first historical switching information, searches a third antenna matched with the antenna identifier from the antennas with the highest priority, and starts a DAT (data access protocol) to switch the voice call to the third antenna.
In an electronic device provided in the second aspect, the processor is specifically configured to determine the priority of the at least two antennas according to a positive order of the at least two distance levels.
In the electronic device provided in the second aspect, the electronic device as described above includes an ultrasonic sensor and an angle sensor;
the angle sensor is used for detecting the angle of the electronic equipment;
the processor is specifically configured to determine an ultrasonic sensor closest to any one of the at least two antennas, and if the angle changes, control the ultrasonic sensor to transmit an ultrasonic signal in a first time interval, where a start time of the first time interval is a first time t1 when the angle changes, and a duration of the first time interval is a set value, receive a reflected signal of the ultrasonic signal, and acquire n signal strength values in the reflected signal, and if an absolute value of a difference between a maximum value and a minimum value in the n signal strength values is lower than a difference threshold and an average value of the n signal strength values is greater than the signal strength threshold, determine that a distance level of any one antenna is a low distance level; if the absolute value of the maximum value and the minimum value in the n signal intensity values is higher than the difference threshold value and the average value of the n signal intensity values is larger than the signal intensity threshold value, determining that the distance grade belongs to the distance grade, and if the absolute value of the maximum value and the minimum value in the n signal intensity values is lower than the difference threshold value and the average value of the n signal intensity values is smaller than the signal intensity threshold value, determining that the distance grade belongs to the high distance grade; n is an integer greater than or equal to 2.
Referring to fig. 1, fig. 1 is a block diagram of an electronic device according to an embodiment of the present disclosure, fig. 1 is a block diagram of an electronic device 100 according to an embodiment of the present disclosure, where the electronic device 100 includes: the touch display device comprises a shell 110, a circuit board 120, a battery 130, a cover plate 140, a touch display screen 150 and a transceiver 180, wherein the circuit board 120, the battery 130 and the cover plate 140 are arranged on the shell 110, and the circuit board 120 is also provided with a circuit connected with the touch display screen 150; the circuit board 120 may further include: the application processor AP 190. The transceiver 180 may specifically be a plurality of antennas and a circuit configured with the antennas, and the antennas in the electronic device in this application are a plurality of antennas.
The touch Display screen may be a Thin Film Transistor-Liquid Crystal Display (TFT-LCD), a Light Emitting Diode (LED) Display screen, an Organic Light Emitting Diode (OLED) Display screen, or the like.
Referring to fig. 2, fig. 2 is a schematic structural diagram of another electronic device 100 disclosed in the embodiment of the present application, where the electronic device 100 includes a storage and processing circuit 110, and a communication circuit 120 and an audio component 140 connected to the storage and processing circuit 110, and a display component 130 or a touch component may also be disposed in some specific electronic devices 100.
The electronic device 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuitry 110 may be a memory, such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as Voice Over Internet Protocol (VOIP) telephone call applications, simultaneous interpretation functions, media playing applications, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functions implemented based on a status indicator such as a status indicator light of a light emitting diode, touch event detection based on a touch sensor, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, to name a few.
The electronic device 100 may also include input-output circuitry 150. The input-output circuit 150 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to the external device. The input-output circuit 150 may further include a sensor 170. The sensors 170 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
Input-output circuitry 150 may also include a touch sensor array (i.e., display 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 100 may also include an audio component 140. The audio component 140 may be used to provide audio input and output functionality for the electronic device 100. The audio components 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuit 120 may be used to provide the electronic device 100 with the capability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 120 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 120 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuitry and antenna, and so forth.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes or other status indicators, and the like.
A user may input commands through input-output circuitry 150 to control the operation of electronic device 100, and may use output data of input-output circuitry 150 to enable receipt of status information and other outputs from electronic device 100.
Referring to fig. 3, fig. 3 provides a dynamic antenna adjustment method, which is implemented in the electronic device shown in fig. 1 or fig. 2, where the electronic device includes a plurality of antennas, a touch display screen, a sensor, and a processor, the processor is connected to the touch display screen and the sensor, and the sensor can be used to detect parameters during a call, such as a distance, a position, and the like of an obstacle during the call, as shown in fig. 3, and the method includes the following steps:
step S301, during voice call, the electronic equipment detects the signal intensity of a first antenna of the voice call and whether a touch display screen is in a screen-off state;
the voice communication in step S301 may be implemented by using a communication standard or a protocol, where the communication standard or the protocol includes, but is not limited to, any one or any combination of Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), and Long Term Evolution (LTE).
The screen-off state in this step is to avoid executing DAT switching during hands-free, because if the voice call is in the hands-free state or is not answered by the handset, the signal strength of each antenna is generally good at this time, so that it is not necessary to activate DAT to increase extra overhead at this time, and it has a certain practical meaning only to activate DAT in the screen-off state.
Step S302, if the signal intensity is lower than the signal threshold value and the touch display screen is in a screen-off state, the electronic equipment acquires at least two distance levels between the remaining at least two antennas and the obstacle;
the above-mentioned manner of at least two distance levels between the remaining at least two antennas of the electronic device and the obstacle in step S302 includes, but is not limited to: detecting at least two levels of distance between the at least two antennas and the obstruction by a sensor including, but not limited to: one or any combination of an ultrasonic sensor, a proximity sensor or an infrared sensor.
Step S303, the electronic device determines priorities of the at least two antennas according to the at least two distance levels, and the electronic device performs DAT switching for the voice call according to the priorities.
According to the technical scheme, when voice call is carried out, whether the signal intensity of the first antenna for detecting the signal intensity of the voice call and the touch display screen are in the screen-off state or not is detected, if the signal intensity is lower than a signal threshold value and is in the screen-off state, the distance grade between the residual antennas (at least two or more than two antennas) and the obstacle is detected, the priority of the antennas is determined according to the distance grade, the antennas with the highest priority are selected by the electronic equipment to serve as the switching antennas of the voice call, the antennas after switching are far away from the obstacle, the influence of the obstacle on the signal quality of the antennas is avoided, the voice call quality is improved, and the user experience degree is improved.
Optionally, the determining, by the electronic device, the priority of the at least two antennas according to the at least two distance levels may specifically include:
the electronic device determines the priority of the at least two antennas according to the positive sequence of the at least two distance levels. Specifically, taking three antennas as an example, the distance levels of the three antennas are respectively, the distance level is low (the corresponding distance is short), the distance level is medium (the corresponding distance is moderate), and the distance level is high (the corresponding distance is long), and the priorities of the three antennas determined according to the positive sequence of the distance levels of the three antennas respectively correspond to: the priority is low, and the priority neutralization priority is high.
The principle of the method is that the distance between the antenna and the obstacle has the largest influence on the signal strength of the antenna, and for the influence, the technical scheme provided by the application determines the distance grade between the remaining antenna and the obstacle, wherein the distance grade is determined mainly because if the cost required for determining the accurate distance between the antenna and the obstacle is high, the space of the electronic equipment is limited, and an excessive number of sensors cannot be configured, so that the priority is determined to be most suitable by the distance grade.
Optionally, if the antenna with the highest priority is one, the electronic device switches the first antenna for the voice call to the second antenna through the DAT, where the second antenna is the antenna with the highest priority of the at least two antennas.
Optionally, if the antennas with the highest priority are multiple antennas, the electronic device obtains the coordinate of the current location, determines a geographic range of the coordinate according to the coordinate (which may be set by a user, for example, a circle of 10 meters with the coordinate as a center of the circle, or may be in other manners, for example, a building name corresponding to the coordinate, such as a company address of the user, determines the geographic range as a geographic range of a company), finds, according to the geographic range, first history switching information matched with the geographic range from the history switching information, obtains an antenna identifier in the first history switching information, finds, from the antennas with the highest priority, a third antenna matched with the antenna identifier, and starts a DAT to switch the voice call to the third antenna.
The finding of the first historical switching information matching the geographic range from the historical switching information may specifically include:
and searching the historical switching information for the first historical switching information within the geographic range.
Optionally, if the electronic device includes an ultrasonic sensor and an angle sensor, the electronic device detecting at least two distance levels between the remaining at least two antennas and the obstacle specifically includes:
the method comprises the steps of determining an ultrasonic sensor closest to any one of at least two antennas, detecting the angle of the electronic equipment by the angle sensor, controlling the ultrasonic sensor to emit an ultrasonic signal in a first time interval if the angle changes, wherein the starting time of the first time interval is a first time t1 when the angle changes, the duration of the first time interval is a set value (for example, 2 seconds), receiving a reflected signal of the ultrasonic signal, collecting n signal strength values in the reflected signal, and determining that the distance grade belongs to the lowest grade (specifically, the distance grade can be low) if the absolute value of the difference between the maximum value and the minimum value in the n signal strength values is lower than a difference threshold and the average value of the n signal strength values is greater than the signal strength threshold. The value of n is an integer greater than or equal to 2. If the absolute value of the maximum value and the minimum value in the n signal intensity values is higher than the difference threshold value and the average value of the n signal intensity values is larger than the signal intensity threshold value, the distance is determined to belong to the middle level (namely, the distance is moderate), and if the absolute value of the maximum value and the minimum value in the n signal intensity values is lower than the difference threshold value and the average value of the n signal intensity values is smaller than the signal intensity threshold value, the distance is determined to belong to the highest level (namely, the distance is larger).
The technical scheme that the ultrasonic sensor that the antenna is nearest is confirmed to this application, when angle sensor detects the angle change, sends ultrasonic signal, and receive ultrasonic reflection signal, gathers n signal strength values of reflection signal, confirms the influence of angle to the barrier according to the absolute value of the difference between the maximum value and the minimum value of these n signal strength values and the average value of n signal strength value and judges the grade that its distance belongs to. The reason for this is that, for the ultrasonic signal and the reflected signal, the reflected signal is generally reflected by an obstacle on a plane perpendicular to the ultrasonic signal, and the angle greatly affects the change of the intensity of the transmitted signal, and the technical scheme of the present application selects a first time interval of angle change, in which the angle between the ultrasonic sensor on the electronic device and the obstacle changes due to the change of the angle of the electronic device, in which case the distance of the obstacle is generally far from the electronic device, and because of the obstacle at a far distance, the area of a vertical plane with respect to the ultrasonic signal changes after the angle of the electronic device changes, and the area change is mainly represented by the decrease or increase of the signal intensity on the reflected signal. In another case, the first distance between the obstacle and the electronic device is very small, and in this case, after the angle of the electronic device changes, since the angle is very close to the obstacle, the area of the vertical plane with respect to the ultrasonic signal does not change much, and the signal intensity is substantially unchanged in the expression of the reflected signal, that is, the absolute value of the difference between the maximum value and the minimum value of the n signal intensity values is lower than the difference threshold. In addition, there is a case where the area of the obstacle is large but the distance is relatively long, and in this case, the change in the angle of the electronic device has little influence on the area of the vertical surface of the obstacle, but since the distance is relatively long, the average value of the signal strength of the reflected signal is relatively small due to the long transmission distance, and therefore the above-mentioned scheme excludes this case by the feature that the average value of the n signal strength values is larger than the signal strength threshold value. The distance level is determined by setting the situation to be very close to the obstacle by the above-described setting of the two directions, i.e., the setting in which the absolute value of the difference between the maximum value and the minimum value among the n signal intensity values is lower than the difference threshold and the average value of the n signal intensity values is larger than the signal intensity threshold.
Optionally, if the electronic device includes an ultrasonic sensor, an angle sensor, and a positioning sensor, the detecting, by the electronic device, at least two distance levels between the remaining at least two antennas and the obstacle specifically includes:
determining an ultrasonic sensor closest to any one of at least two antennas, detecting the angle of the electronic device by the angle sensor, if the frequency of the angle change is higher than a frequency threshold, controlling the ultrasonic sensor to emit an ultrasonic signal in a second time interval, if the starting time of the second time interval is a second time t1 when the frequency of the angle change is higher than the frequency threshold, and the duration of the second time interval is a set value (for example, 2 seconds), receiving a reflected signal of the ultrasonic signal, collecting m signal strength values in the reflected signal, if the absolute value of the difference between the maximum value and the minimum value in the m signal strength values is lower than a difference threshold and the average value of the m signal strength values is greater than the signal strength threshold, determining that the distance belongs to the lowest level (the distance is small), if the absolute value of the maximum value and the minimum value in the m signal strength values is greater than or equal to 2, and if the absolute value of the maximum value and the minimum value in the m signal strength values If the absolute value of the maximum value and the minimum value in the m signal strength values is lower than the difference threshold value and the average value of the m signal strength values is smaller than the signal strength threshold value, the distance is determined to belong to the highest grade (namely, the distance is larger).
According to the technical scheme, when the angle sensor detects the angle change, whether the frequency of the angle change is higher than a frequency threshold value or not is detected, if the frequency of the angle change is higher than the frequency threshold value, the ultrasonic signal is transmitted in a second time interval, the ultrasonic reflection signal is received, n signal intensity values of the reflection signal are collected, the influence of the angle on an obstacle is determined according to the absolute value of the difference value between the maximum value and the minimum value of the n signal intensity values and the average value of the n signal intensity values, whether the first distance of the obstacle is smaller than a distance threshold value or not is judged, and then whether a DAT is started or not is determined. The reason for this is that, for the ultrasonic signal and the reflected signal, the reflected signal is generally reflected by an obstacle on a plane perpendicular to the ultrasonic signal, and the angle greatly affects the change of the intensity of the transmitted signal, and the technical scheme of the present application selects a first time interval of angle change, in which the angle between the ultrasonic sensor on the electronic device and the obstacle changes due to the change of the angle of the electronic device, in which case the distance of the obstacle is generally far from the electronic device, and because of the obstacle at a far distance, the area of a vertical plane with respect to the ultrasonic signal changes after the angle of the electronic device changes, and the area change is mainly represented by the decrease or increase of the signal intensity on the reflected signal. In another case, the first distance between the obstacle and the electronic device is very small, and in this case, after the angle of the electronic device changes, since the angle is very close to the obstacle, the area of the vertical plane with respect to the ultrasonic signal does not change much, and the signal intensity is substantially unchanged in the expression of the reflected signal, that is, the absolute value of the difference between the maximum value and the minimum value among the m signal intensity values is lower than the difference threshold. In addition, there is a case where the area of the obstacle is large but the distance is relatively long, and in this case, the change in the angle of the electronic device has little influence on the area of the vertical surface of the obstacle, but since the distance is relatively long, the average value of the signal strength of the reflected signal is relatively small due to the long transmission distance, and therefore the above-mentioned scheme excludes this case by the feature that the average value of the m signal strength values is larger than the signal strength threshold value. Therefore, through the setting in the two directions, that is, if the absolute value of the difference between the maximum value and the minimum value in the m signal intensity values is lower than the difference threshold and the average value of the m signal intensity values is greater than the signal intensity threshold, the situation is set to be the situation where the obstacle is very close, so that a basis for judging the starting of the DAT is provided, unnecessary DAT switching can be reduced, voice call quality is improved, power consumption is reduced, and user experience is improved.
Referring to fig. 4, fig. 4 provides an electronic device including: the touch screen display device comprises a plurality of antennas 401, a touch display screen 402, a sensor 403 and a processor 404, wherein the plurality of antennas 401, the touch display screen 402 and the sensor 403 are connected with the processor 404, and the connection mode may be a plurality of modes, for example, as shown in fig. 4, the connection mode is a mode of using a bus 405.
The processor 404 is configured to detect, during a voice call, a signal strength of a first antenna of the voice call and whether the touch display screen is in a screen-off state;
a processor 404, configured to control the sensor to obtain at least two distance levels between the remaining at least two antennas and the obstacle if the signal strength is lower than the signal threshold and the touch display screen is in a screen-off state;
the processor 404 is further configured to determine priorities of the at least two antennas according to the at least two distance levels, and the electronic device performs dynamic antenna adjustment DAT switching for the voice call according to the priorities.
Optionally, the electronic device comprises an ultrasonic sensor and an angle sensor;
the angle sensor is used for detecting the angle of the electronic equipment;
a processor 404, configured to specifically determine an ultrasonic sensor closest to any one of the at least two antennas, and if the angle changes, control the ultrasonic sensor to emit an ultrasonic signal in a first time interval, where a start time of the first time interval is a first time t1 when the angle changes, and a duration of the first time interval is a set value, receive a reflected signal of the ultrasonic signal, and acquire n signal strength values in the reflected signal, and if an absolute value of a difference between a maximum value and a minimum value in the n signal strength values is lower than a difference threshold and an average value of the n signal strength values is greater than the signal strength threshold, determine that a distance level of any one antenna is a low distance level; if the absolute value of the maximum value and the minimum value in the n signal intensity values is higher than the difference threshold value and the average value of the n signal intensity values is larger than the signal intensity threshold value, determining that the distance grade belongs to the distance grade, and if the absolute value of the maximum value and the minimum value in the n signal intensity values is lower than the difference threshold value and the average value of the n signal intensity values is smaller than the signal intensity threshold value, determining that the distance grade belongs to the high distance grade; n is an integer greater than or equal to 2.
The technical scheme that the ultrasonic sensor that the antenna is nearest is confirmed to this application, when angle sensor detects the angle change, sends ultrasonic signal, and receive ultrasonic reflection signal, gathers n signal strength values of reflection signal, confirms the influence of angle to the barrier according to the absolute value of the difference between the maximum value and the minimum value of these n signal strength values and the average value of n signal strength value and judges the grade that its distance belongs to. The reason for this is that, for the ultrasonic signal and the reflected signal, the reflected signal is generally reflected by an obstacle on a plane perpendicular to the ultrasonic signal, and the angle greatly affects the change of the intensity of the transmitted signal, and the technical scheme of the present application selects a first time interval of angle change, in which the angle between the ultrasonic sensor on the electronic device and the obstacle changes due to the change of the angle of the electronic device, in which case the distance of the obstacle is generally far from the electronic device, and because of the obstacle at a far distance, the area of a vertical plane with respect to the ultrasonic signal changes after the angle of the electronic device changes, and the area change is mainly represented by the decrease or increase of the signal intensity on the reflected signal. In another case, the first distance between the obstacle and the electronic device is very small, and in this case, after the angle of the electronic device changes, since the angle is very close to the obstacle, the area of the vertical plane with respect to the ultrasonic signal does not change much, and the signal intensity is substantially unchanged in the expression of the reflected signal, that is, the absolute value of the difference between the maximum value and the minimum value of the n signal intensity values is lower than the difference threshold. In addition, there is a case where the area of the obstacle is large but the distance is relatively long, and in this case, the change in the angle of the electronic device has little influence on the area of the vertical surface of the obstacle, but since the distance is relatively long, the average value of the signal strength of the reflected signal is relatively small due to the long transmission distance, and therefore the above-mentioned scheme excludes this case by the feature that the average value of the n signal strength values is larger than the signal strength threshold value. The distance level is determined by setting the situation to be very close to the obstacle by the above-described setting of the two directions, i.e., the setting in which the absolute value of the difference between the maximum value and the minimum value among the n signal intensity values is lower than the difference threshold and the average value of the n signal intensity values is larger than the signal intensity threshold.
A processor 404, configured to determine an ultrasonic sensor closest to any one of the at least two antennas, where the angle sensor detects an angle of the electronic device, and if a frequency of a change in the angle is higher than a frequency threshold, control the ultrasonic sensor to emit an ultrasonic signal in a second time interval, where a start time of the second time interval is a second time t1 when the frequency of the change in the angle is higher than the frequency threshold, a duration of the second time interval is a set value (e.g., 2 seconds), receive a reflected signal of the ultrasonic signal, collect m signal strength values in the reflected signal, where, if an absolute value of a difference between a maximum value and a minimum value of the m signal strength values is lower than the difference threshold and an average value of the m signal strength values is greater than the signal strength threshold, determine that the distance belongs to a lowest level (the distance is small), where, the m is an integer greater than or equal to 2, and, if an absolute value of a maximum value and a minimum value of the m signal strength The average of the values is greater than the signal strength threshold, and the distance is determined to be of an intermediate rank (i.e., the distance is moderate), e.g., the absolute value of the maximum and minimum of the m signal strength values is less than the difference threshold and the average of the m signal strength values is less than the signal strength threshold, and the distance is determined to be of the highest rank (i.e., the distance is greater).
According to the technical scheme, when the angle sensor detects the angle change, whether the frequency of the angle change is higher than a frequency threshold value or not is detected, if the frequency of the angle change is higher than the frequency threshold value, the ultrasonic signal is transmitted in a second time interval, the ultrasonic reflection signal is received, n signal intensity values of the reflection signal are collected, the influence of the angle on an obstacle is determined according to the absolute value of the difference value between the maximum value and the minimum value of the n signal intensity values and the average value of the n signal intensity values, whether the first distance of the obstacle is smaller than a distance threshold value or not is judged, and then whether a DAT is started or not is determined. The reason for this is that, for the ultrasonic signal and the reflected signal, the reflected signal is generally reflected by an obstacle on a plane perpendicular to the ultrasonic signal, and the angle greatly affects the change of the intensity of the transmitted signal, and the technical scheme of the present application selects a first time interval of angle change, in which the angle between the ultrasonic sensor on the electronic device and the obstacle changes due to the change of the angle of the electronic device, in which case the distance of the obstacle is generally far from the electronic device, and because of the obstacle at a far distance, the area of a vertical plane with respect to the ultrasonic signal changes after the angle of the electronic device changes, and the area change is mainly represented by the decrease or increase of the signal intensity on the reflected signal. In another case, the first distance between the obstacle and the electronic device is very small, and in this case, after the angle of the electronic device changes, since the angle is very close to the obstacle, the area of the vertical plane with respect to the ultrasonic signal does not change much, and the signal intensity is substantially unchanged in the expression of the reflected signal, that is, the absolute value of the difference between the maximum value and the minimum value among the m signal intensity values is lower than the difference threshold. In addition, there is a case where the area of the obstacle is large but the distance is relatively long, and in this case, the change in the angle of the electronic device has little influence on the area of the vertical surface of the obstacle, but since the distance is relatively long, the average value of the signal strength of the reflected signal is relatively small due to the long transmission distance, and therefore the above-mentioned scheme excludes this case by the feature that the average value of the m signal strength values is larger than the signal strength threshold value. Therefore, through the setting in the two directions, that is, if the absolute value of the difference between the maximum value and the minimum value in the m signal intensity values is lower than the difference threshold and the average value of the m signal intensity values is greater than the signal intensity threshold, the situation is set to be the situation where the obstacle is very close, so that a basis for judging the starting of the DAT is provided, unnecessary DAT switching can be reduced, voice call quality is improved, power consumption is reduced, and user experience is improved.
Fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal provided in an embodiment of the present application. Referring to fig. 5, the handset includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, sensor 950, audio collector 960, Wireless Fidelity (WiFi) module 970, application processor AP980, power supply 990, and sensor. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components, for example, the rf circuitry 910 may be coupled to multiple antennas.
The following describes each component of the mobile phone in detail with reference to fig. 5:
the input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a touch display screen 933, a fingerprint recognition apparatus 931, a face recognition apparatus 936, an iris recognition apparatus 937, and other input devices 932. The input unit 930 may also include other input devices 932. In particular, other input devices 932 may include, but are not limited to, one or more of physical keys, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. Wherein,
the AP980 is used for detecting the signal intensity of the first antenna of the voice call and whether the touch display screen is in a screen-off state or not during the voice call;
the AP980 is used for controlling the sensor to acquire at least two distance levels between the remaining at least two antennas and the obstacle if the signal intensity is lower than the signal threshold value and the touch display screen is in a screen-off state;
and the AP980 is also used for determining the priority of the at least two antennas according to the at least two distance levels, and the electronic equipment performs dynamic antenna adjustment DAT switching on the voice call according to the priority.
Optionally, the AP980 is specifically configured to, if the antenna with the highest priority is one, switch, by the electronic device, the first antenna for the voice call to the second antenna through the DAT, where the second antenna is the antenna with the highest priority in the at least two antennas; if the number of antennas with the highest priority is multiple, the electronic device obtains the coordinates of the current position, determines the geographic range of the coordinates according to the coordinates, searches first historical switching information matched with the geographic range from historical switching information according to the geographic range, obtains an antenna identifier in the first historical switching information, searches a third antenna matched with the antenna identifier from the antennas with the highest priority, and starts a DAT (data access protocol) to switch the voice call to the third antenna.
Optionally, the first parameter includes: distance and position coordinates of the first antenna from the obstruction, the historical parameters comprising: antenna-to-obstruction distance, antenna identification, coordinates, and time;
AP980, in particular for determining priorities of at least two antennas according to a positive order of at least two distance levels;
optionally, for example, the sensor 950 includes: an ultrasonic sensor 890, an angle sensor 891;
an angle sensor 891 for detecting an angle of the electronic device;
the AP980 is further configured to determine an ultrasonic sensor closest to any one of the at least two antennas, and if the angle changes, control the ultrasonic sensor to emit an ultrasonic signal in a first time interval, where a start time of the first time interval is a first time t1 when the angle changes, and a duration of the first time interval is a set value, receive a reflected signal of the ultrasonic signal, and acquire n signal strength values in the reflected signal, where if an absolute value of a difference between a maximum value and a minimum value of the n signal strength values is lower than a difference threshold and an average value of the n signal strength values is greater than the signal strength threshold, determine that a distance level of any one antenna is a low distance level; if the absolute value of the maximum value and the minimum value in the n signal intensity values is higher than the difference threshold value and the average value of the n signal intensity values is larger than the signal intensity threshold value, determining that the distance grade belongs to the distance grade, and if the absolute value of the maximum value and the minimum value in the n signal intensity values is lower than the difference threshold value and the average value of the n signal intensity values is smaller than the signal intensity threshold value, determining that the distance grade belongs to the high distance grade; n is an integer greater than or equal to 2.
Optionally, an angle sensor 891 for detecting the angle of the electronic device,
the AP980 is further configured to be used for an ultrasonic sensor closest to any one of the at least two antennas, the angle sensor detects an angle of the electronic device, if a frequency of a change of the angle is higher than a frequency threshold, the ultrasonic sensor is controlled to emit an ultrasonic signal in a second time interval, a starting time of the second time interval is a second time t1 when the frequency of the change of the angle is higher than the frequency threshold, a duration of the second time interval is a set value (e.g., 2 seconds), a reflected signal of the ultrasonic signal is received, m signal strength values in the reflected signal are collected, if an absolute value of a difference between a maximum value and a minimum value in the m signal strength values is lower than the difference threshold and an average value of the m signal strength values is greater than the signal strength threshold, it is determined that the distance belongs to a lowest level (the distance is small), where the m value is an integer greater than or equal to 2, and if an absolute value of a maximum value and a minimum value in the m signal If the absolute value of the maximum value and the minimum value in the m signal strength values is lower than the difference threshold value and the average value of the m signal strength values is smaller than the signal strength threshold value, the distance is determined to belong to the highest grade (i.e. the distance is larger).
The AP980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions and processes of the mobile phone by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Optionally, AP980 may include one or more processing units; alternatively, the AP980 may integrate an application processor that handles primarily the operating system, user interface, and applications, etc., and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the AP 980.
Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications, general packet radio service, code division multiple access, wideband code division multiple access, long term evolution, new air interface, email, short message service, etc.
The handset may also include at least one sensor 950, such as an ultrasonic sensor, an angle sensor, a light sensor, a motion sensor, and others. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the touch display screen according to the brightness of ambient light, and the proximity sensor may turn off the touch display screen and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio collector 960, speaker 961, microphone 962 may provide an audio interface between the user and the handset. The audio collector 960 can transmit the received electrical signal converted from the audio data to the speaker 961, and the audio data is converted into a sound signal by the speaker 961 for playing; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the electrical signal is received by the audio collector 960 and converted into audio data, and then the audio data is processed by the audio data playing AP980, and then the audio data is sent to another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 5 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope of not changing the essence of the application.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to various components, and optionally, the power supply may be logically connected to the AP980 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, a light supplement device, a light sensor, and the like, which are not described herein again.
It can be seen that the technical scheme that this application provided confirms whether to be in the sleep state through acquireing position coordinate and time, if be in the sleep state, judge whether contain the baby through the picture of gathering, when containing the baby, control wireless transceiver's communication function, reduce the influence of wireless transceiver's radiation to the baby like this, improve user's experience degree.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the dynamic antenna adjustment methods as described in the above method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the dynamic antenna adjustment methods as set forth in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of 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 of some interfaces, devices or units, and may be an electric 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 integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A dynamic antenna adjustment method is applied to an electronic device, and the electronic device comprises: the device comprises a plurality of antennas, a touch display screen, an ultrasonic sensor and an angle sensor; wherein,
when the voice call is carried out, the electronic equipment detects the signal intensity of a first antenna of the voice call and whether the touch display screen is in a screen-off state;
if the signal intensity is lower than the signal threshold value and the touch display screen is in a screen-off state, the electronic equipment determines an ultrasonic sensor which is closest to any one of the remaining at least two antennas, the angle sensor detects the angle of the electronic equipment, if the angle changes, the ultrasonic sensor is controlled to transmit an ultrasonic signal, a reflected signal of the ultrasonic signal is received, and at least two distance levels between the at least two antennas and the obstacle are determined according to the reflected signal;
the electronic equipment determines the priority of the at least two antennas according to the at least two distance levels, and the electronic equipment performs dynamic antenna adjustment DAT switching on the voice call according to the priority.
2. The method of claim 1, wherein the electronic device performing dynamic antenna adjustment DAT switching for voice calls based on the priority comprises:
if the antenna with the highest priority is one, the electronic equipment switches the first antenna for voice call to a second antenna through a DAT, wherein the second antenna is the antenna with the highest priority in the at least two antennas;
if the number of antennas with the highest priority is multiple, the electronic device obtains the coordinates of the current position, determines the geographic range of the coordinates according to the coordinates, searches first historical switching information matched with the geographic range from historical switching information according to the geographic range, obtains an antenna identifier in the first historical switching information, searches a third antenna matched with the antenna identifier from the antennas with the highest priority, and starts a DAT (data access protocol) to switch the voice call to the third antenna.
3. The method according to claim 1 or 2, wherein the electronic device determining the priority of the at least two antennas according to the at least two distance classes comprises:
the electronic device determines the priority of the at least two antennas according to the positive sequence of the at least two distance levels.
4. The method of claim 3, wherein controlling the ultrasonic sensor to emit the ultrasonic signal comprises: controlling the ultrasonic sensor to emit an ultrasonic signal in a first time interval, wherein the starting time of the first time interval is a first time t1 when the angle changes, and the duration of the first time interval is a set value;
said determining at least two distance levels between the at least two antennas and an obstruction from the reflected signal comprises: acquiring n signal strength values in the reflected signals, and determining that the distance grade of any one antenna is low if the absolute value of the difference between the maximum value and the minimum value in the n signal strength values is lower than a difference threshold and the average value of the n signal strength values is greater than the signal strength threshold; if the absolute value of the maximum value and the minimum value in the n signal intensity values is higher than the difference threshold value and the average value of the n signal intensity values is larger than the signal intensity threshold value, determining that the distance grade belongs to the distance grade, and if the absolute value of the maximum value and the minimum value in the n signal intensity values is lower than the difference threshold value and the average value of the n signal intensity values is smaller than the signal intensity threshold value, determining that the distance grade belongs to the high distance grade; n is an integer greater than or equal to 2.
5. An electronic device, characterized in that the electronic device comprises: the device comprises a plurality of antennas, a touch display screen, an ultrasonic sensor, an angle sensor and a processor; wherein,
the processor is used for detecting the signal intensity of a first antenna of the voice call and whether the touch display screen is in a screen-off state or not during the voice call;
the processor is further configured to control the sensor to determine an ultrasonic sensor closest to any one of the remaining at least two antennas if the signal strength is lower than the signal threshold and the touch display screen is in a screen-off state;
the angle sensor is used for detecting the angle of the electronic equipment;
the processor is further configured to control the ultrasonic sensor to transmit an ultrasonic signal, receive a reflected signal of the ultrasonic signal, and determine at least two distance levels between the at least two antennas and the obstacle according to the reflected signal, when the angle of the electronic device changes;
the processor is further configured to determine priorities of the at least two antennas according to the at least two distance levels, and the electronic device performs dynamic antenna adjustment DAT switching for the voice call according to the priorities.
6. The electronic device of claim 5,
the processor is specifically configured to, if the antenna with the highest priority is one, switch, by the electronic device, the first antenna for the voice call to the second antenna through the DAT, where the second antenna is the antenna with the highest priority among the at least two antennas; if the number of antennas with the highest priority is multiple, the electronic device obtains the coordinates of the current position, determines the geographic range of the coordinates according to the coordinates, searches first historical switching information matched with the geographic range from historical switching information according to the geographic range, obtains an antenna identifier in the first historical switching information, searches a third antenna matched with the antenna identifier from the antennas with the highest priority, and starts a DAT (data access protocol) to switch the voice call to the third antenna.
7. The electronic device of claim 5 or 6,
the processor is specifically configured to determine priorities of the at least two antennas according to a positive order of the at least two distance levels.
8. The electronic device of claim 7,
the processor is specifically configured to control the ultrasonic sensor to emit an ultrasonic signal in a first time interval, where a start time of the first time interval is a first time t1 when an angle changes, and a duration of the first time interval is a set value;
the processor is specifically configured to acquire n signal strength values in the reflected signal, and determine that the distance level of any one antenna is low if an absolute value of a difference between a maximum value and a minimum value of the n signal strength values is lower than a difference threshold and an average value of the n signal strength values is greater than the signal strength threshold; if the absolute value of the maximum value and the minimum value in the n signal intensity values is higher than the difference threshold value and the average value of the n signal intensity values is larger than the signal intensity threshold value, determining that the distance grade belongs to the distance grade, and if the absolute value of the maximum value and the minimum value in the n signal intensity values is lower than the difference threshold value and the average value of the n signal intensity values is smaller than the signal intensity threshold value, determining that the distance grade belongs to the high distance grade; n is an integer greater than or equal to 2.
9. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-4.
CN201810531541.5A 2018-05-29 2018-05-29 Dynamic antenna adjustment method and related product Active CN108900231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810531541.5A CN108900231B (en) 2018-05-29 2018-05-29 Dynamic antenna adjustment method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810531541.5A CN108900231B (en) 2018-05-29 2018-05-29 Dynamic antenna adjustment method and related product

Publications (2)

Publication Number Publication Date
CN108900231A CN108900231A (en) 2018-11-27
CN108900231B true CN108900231B (en) 2021-05-28

Family

ID=64343478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810531541.5A Active CN108900231B (en) 2018-05-29 2018-05-29 Dynamic antenna adjustment method and related product

Country Status (1)

Country Link
CN (1) CN108900231B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739300B (en) * 2018-12-25 2020-10-30 维沃移动通信有限公司 Antenna control method and terminal
CN109819103A (en) * 2018-12-26 2019-05-28 努比亚技术有限公司 Prevent backlight interference antenna method and mobile terminal, computer readable storage medium
US11683106B2 (en) * 2019-03-13 2023-06-20 Apple Inc. Dynamic antenna selection and beam steering
CN110891121B (en) * 2019-11-20 2021-03-23 Oppo广东移动通信有限公司 Antenna module switching method and device, electronic equipment and computer readable storage medium
CN115314073B (en) * 2021-05-07 2023-09-19 Oppo广东移动通信有限公司 Antenna selection device and method and wearable equipment
CN115021774B (en) * 2022-05-17 2024-05-28 Oppo广东移动通信有限公司 Radio frequency system, antenna selection method and communication equipment
CN115097377B (en) * 2022-06-16 2024-05-24 Oppo广东移动通信有限公司 Angle measurement method and related device
WO2024000195A1 (en) * 2022-06-28 2024-01-04 北京小米移动软件有限公司 Terminal antenna control method and apparatus, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973408A (en) * 2017-03-27 2017-07-21 努比亚技术有限公司 Antenna allocation method and device
CN107465439A (en) * 2017-08-30 2017-12-12 努比亚技术有限公司 Trigger method, multi-antenna terminal and the computer-readable recording medium of antenna switching
CN107743175A (en) * 2017-10-31 2018-02-27 广东欧珀移动通信有限公司 Terminal, antenna module, have store function device and antenna switching method
CN108039897A (en) * 2018-02-08 2018-05-15 广东欧珀移动通信有限公司 Antenna switching method, device, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6316205B2 (en) * 2012-12-06 2018-04-25 シャープ株式会社 Base station apparatus, terminal apparatus, radio communication system, and integrated circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973408A (en) * 2017-03-27 2017-07-21 努比亚技术有限公司 Antenna allocation method and device
CN107465439A (en) * 2017-08-30 2017-12-12 努比亚技术有限公司 Trigger method, multi-antenna terminal and the computer-readable recording medium of antenna switching
CN107743175A (en) * 2017-10-31 2018-02-27 广东欧珀移动通信有限公司 Terminal, antenna module, have store function device and antenna switching method
CN108039897A (en) * 2018-02-08 2018-05-15 广东欧珀移动通信有限公司 Antenna switching method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN108900231A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN108900231B (en) Dynamic antenna adjustment method and related product
CN109240551B (en) Method for controlling electronic device by using gestures and related product
CN109561420B (en) Emergency help-seeking method and related equipment
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN107172267B (en) Fingerprint identification control method and related product
CN108966317B (en) Network searching method based on mobile terminal and mobile terminal
CN106453840B (en) The method for adjusting performance and mobile terminal of mobile terminal
CN107317918B (en) Parameter setting method and related product
CN108881778B (en) Video output method based on wearable device and wearable device
CN109274812B (en) Method for controlling electronic device through ultrasonic gestures and related product
CN108810261B (en) Antenna switching method in call and related product
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
CN108307075B (en) Incoming call processing method and mobile terminal
CN107659718B (en) Method and device for controlling mobile terminal, mobile terminal and storage medium
CN107424393B (en) Mobile terminal searching method, mobile terminal and storage medium
CN106851784B (en) network scanning method and terminal equipment
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal
CN110277097B (en) Data processing method and related equipment
CN108966290B (en) Network connection method and related product
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN108600906B (en) Playing control method and device for multiple sound boxes
CN110602766A (en) Personal hotspot identification method and method for determining association relationship between terminals
CN106484529B (en) The Memory adjustments method and terminal of terminal
CN112367425B (en) Volume adjusting method and device and terminal

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