CN108023611B - Antenna switching method and device, storage medium and electronic equipment - Google Patents

Antenna switching method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108023611B
CN108023611B CN201711252503.8A CN201711252503A CN108023611B CN 108023611 B CN108023611 B CN 108023611B CN 201711252503 A CN201711252503 A CN 201711252503A CN 108023611 B CN108023611 B CN 108023611B
Authority
CN
China
Prior art keywords
extension
electronic device
radio frequency
preset area
preset
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
CN201711252503.8A
Other languages
Chinese (zh)
Other versions
CN108023611A (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 CN201711252503.8A priority Critical patent/CN108023611B/en
Publication of CN108023611A publication Critical patent/CN108023611A/en
Application granted granted Critical
Publication of CN108023611B publication Critical patent/CN108023611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • 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)
  • Transceivers (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides an antenna switching method, an antenna switching device, a storage medium and electronic equipment, wherein the antenna switching method comprises the following steps: when the electronic equipment receives and transmits radio frequency signals through a first extension part, detecting whether a functional assembly is in an open state in a first preset area or not, wherein the first extension part is positioned in the first preset area; and if functional components exist in the first preset area and are in an open state, switching the electronic equipment to receive and transmit radio frequency signals through the second extension part. In the antenna switching method, when the functional component in the first preset area where the first extension part is located is in the open state, the electronic device is switched to receive and transmit the radio frequency signal through the second extension part, so that the interference of the functional component in the open state in the first preset area on the communication signal of the electronic device can be avoided, and the signal stability of the electronic device during communication is improved.

Description

Antenna switching method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to an antenna switching method and apparatus, a storage medium, and an electronic device.
Background
With the development of communication technology, electronic devices such as smart phones have more and more functions, and the internal structures of the electronic devices are more and more complex.
Due to the space constraints within the electronic device, the functional components within the electronic device are located in close proximity. Thus, functional components inside the electronic device may interact with each other. For example, certain functional components inside the electronic device may affect the radio frequency signal strength of the electronic device, thereby affecting the communication stability of the electronic device.
Disclosure of Invention
The embodiment of the application provides an antenna switching method, an antenna switching device, a storage medium and an electronic device, which can improve the communication stability of the electronic device.
The embodiment of the application provides an antenna switching method, which is applied to electronic equipment, wherein the electronic equipment comprises a middle frame, the middle frame at least comprises a first extension part and a second extension part, and the first extension part and the second extension part are used for receiving and transmitting radio frequency signals, and the antenna switching method comprises the following steps:
when the electronic equipment receives and transmits radio frequency signals through the first extension part, whether a functional assembly exists in a first preset area or not is detected to be in an opening state, and the first extension part is located in the first preset area;
and if functional components exist in the first preset area and are in an open state, switching the electronic equipment to receive and transmit radio frequency signals through the second extension part.
The embodiment of the present application further provides an antenna switching apparatus, which is applied to an electronic device, where the electronic device includes a middle frame, the middle frame includes at least a first extension portion and a second extension portion, the first extension portion and the second extension portion are used for transceiving a radio frequency signal, and the antenna switching apparatus includes:
the detection module is used for detecting whether a functional component exists in a first preset area and is in an open state or not when the electronic equipment receives and transmits radio frequency signals through the first extension part, and the first extension part is located in the first preset area;
and the switching module is used for switching the electronic equipment to receive and transmit the radio frequency signal through the second extension part when the functional component in the first preset area is in an open state.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is caused to execute the above antenna switching method.
The embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the antenna switching method by calling the computer program stored in the memory.
The antenna switching method provided by the embodiment of the application comprises the following steps: when the electronic equipment receives and transmits radio frequency signals through a first extension part, detecting whether a functional assembly is in an open state in a first preset area or not, wherein the first extension part is positioned in the first preset area; and if functional components exist in the first preset area and are in an open state, switching the electronic equipment to receive and transmit radio frequency signals through the second extension part. In the antenna switching method, when the functional component in the first preset area where the first extension part is located is in the open state, the electronic device is switched to receive and transmit the radio frequency signal through the second extension part, so that the interference of the functional component in the open state in the first preset area on the communication signal of the electronic device can be avoided, and the signal stability of the electronic device during communication is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a first structural diagram of a middle frame in the electronic device shown in fig. 1.
Fig. 3 is a second structural diagram of a middle frame in the electronic device shown in fig. 1.
Fig. 4 is a third structural diagram of a middle frame in the electronic device shown in fig. 1.
Fig. 5 is a second structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 6 is a first flowchart of an antenna switching method according to an embodiment of the present application.
Fig. 7 is a second flowchart of an antenna switching method according to an embodiment of the present application.
Fig. 8 is a third flowchart illustrating an antenna switching method according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of an antenna switching apparatus according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of a second antenna switching apparatus according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a third antenna switching apparatus according to an embodiment of the present application.
Fig. 12 is a third schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 13 is a fourth schematic structural diagram of an electronic device according to 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. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The terms "first," "second," "third," and the like in the description and in the claims of the present application and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, or apparatus, electronic device, system comprising a list of steps is not necessarily limited to those steps or modules or units explicitly listed, may include steps or modules or units not explicitly listed, and may include other steps or modules or units inherent to such process, method, apparatus, electronic device, or system.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure. The electronic device 100 includes a cover plate 101, a display screen 102, a circuit board 103, a middle frame 104, and a housing 105.
The cover plate 101 is mounted to the display screen 102 to cover the display screen 102. The cover plate 101 may be a transparent glass cover plate. In some embodiments, the cover plate 101 may be a glass cover plate made of a material such as sapphire.
The display screen 102 is mounted on the housing 105 to form a display surface of the electronic device 100. In some embodiments, the display screen 102 includes a display area and a non-display area. The display area is used for displaying information such as images and texts. The non-display area does not display information. The non-display area can be used for setting some functional components, such as functional components of a camera, a fingerprint identification module and the like.
In some embodiments, the display screen 102 may be displayed full screen. That is, the display screen 102 includes only display areas and no non-display areas.
In some embodiments, the Display screen 102 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED) Display screen.
The circuit board 103 is mounted inside the housing 105. The circuit board 103 may be a motherboard of the electronic device 100. Functional components such as a camera and a processor can be integrated on the circuit board 103. Meanwhile, the display screen 102 may be electrically connected to the circuit board 103.
In some embodiments, display control circuitry is disposed on the circuit board 103. The display control circuit outputs an electrical signal to the display screen 102 to control the display screen 102 to display information.
The middle frame 104 is mounted inside the housing 105. The middle frame 104 serves as a support inside the electronic device 100 and is used for providing a fixing support function for the functional components inside the electronic device 100. For example, the circuit board 103 may be fixedly mounted on the middle frame 104. In addition, functional components such as a camera inside the electronic device 100 may be fixedly mounted on the middle frame 104.
In some embodiments, the material of the middle frame 104 may be a metal or an alloy. For example, the material of the middle frame 104 may be aluminum alloy. The middle frame 104 may be integrally formed.
The housing 105 is used to form the outer contour of the electronic device 100. The material of the housing 105 may be plastic or metal. The housing 105 may be integrally formed.
In some embodiments, referring to fig. 2, fig. 2 is a schematic structural diagram of middle frame 104. Wherein, the middle frame 104 includes a body 41 and a first extension 42. The body 41 includes a first end 411 and a second end 412. Wherein the first end 411 is disposed opposite to the second end 412. It is understood that the first end 411 and the second end 412 are opposite ends of the middle frame 104.
The first extension 42 is located at one end of the body 41. For example, the first extension 42 is located on the first end 411 of the body 41. The first extension portion 42 may be used as an antenna radiator of the electronic device 100 for transceiving radio frequency signals.
The first extension portion 42 is made of metal or alloy. For example, the first extension portion 42 is made of magnesium alloy. The material of the first extension portion 42 may be the same as or different from the material of the body 41.
The second extending portion 42 may be electrically connected to the body 41, or may be electrically insulated. When the second extending portion 42 is electrically insulated from the body 41, the second extending portion 42 may be fixed to the body 41 by, for example, a plastic member.
In some embodiments, referring to fig. 3, the middle frame 104 further includes a second extension 43. The second extension portion 43 may also be used as an antenna radiator of the electronic device 100 for transceiving radio frequency signals.
The second extension portion 43 is electrically insulated from the first extension portion 42. The second extension 43 and the first extension 42 are both located at the same end of the body 41. For example, the second extension 43 and the first extension 42 are both located at the first end 411 of the body 41. In some embodiments, the second extension 43 and the first extension 42 may also be located at the second end 412 of the body 41.
In some embodiments, the second extension 43 is disposed opposite the first extension 42 on the same side of the body 41. For example, the second extension 43 is disposed opposite to the first extension 42 on both sides of the first end 411 or on both sides of the second end 412.
The second extension 43 may be made of metal or alloy. For example, the second extension 43 is made of magnesium alloy. The material of the second extension portion 43 may be the same as or different from the material of the first extension portion 42.
In some embodiments, referring to fig. 4, the number of the second extension portions 43 may be plural. A plurality of the second extending portions 43 are provided at intervals. The second extending portions 43 are electrically insulated from each other. For example, the middle frame 104 includes one first extension 42 and two second extensions 43. The first extension portion 42 and each of the second extension portions 43 may be used as an antenna radiator of the electronic device 100 to independently complete the transceiving of the radio frequency signal. The number of the second extending portions 43 may be three, four, or the like.
The first extension portion 42 and the plurality of second extension portions 43 are located at the same end of the body 41. For example, the first extension portion 42 and the plurality of second extension portions 43 are located at the first end 411 or the second end 412 of the body 41.
In some embodiments, the first extension 42 and the second extensions 43 are disposed on opposite sides of the same end of the body 41. For example, the first extension portion 42 is disposed at one side of the first end 411 of the body 41, and the plurality of second extension portions 43 are disposed at the other side of the first end 411 of the body 41.
In some embodiments, referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 100 provided in the embodiments of the present application.
The electronic device 100 comprises signal sources 11, 12, 13, 14, 15. Each signal source is for generating a wireless signal. For example, signal source 11 is for generating a bluetooth signal, signal source 12 is for generating a Wireless-Fidelity (Wi-Fi) signal, signal source 13 is for generating a high frequency rf signal, signal source 14 is for generating an intermediate frequency rf signal, and signal source 15 is for generating a low frequency rf signal.
The electronic device 100 further comprises matching circuits 21, 22, 23, 24, 25. The matching circuit 21 is connected to the signal source 11, the matching circuit 22 is connected to the signal source 12, the matching circuit 23 is connected to the signal source 13, the matching circuit 24 is connected to the signal source 14, and the matching circuit 25 is connected to the signal source 15. Each matching circuit may include electronic components such as power amplifiers, filters, and the like. Each matching circuit is used for processing wireless signals generated by the connected signal source such as power amplification, filtering and the like.
The electronic device 100 further includes a combiner 31. The combiner 31 is connected to the matching circuits 24 and 25. The combiner 31 is configured to perform carrier aggregation on the uplink radio frequency signal or perform frequency division on the downlink radio frequency signal.
The electronic device 100 further comprises antenna radiators 51, 52, 53 and an antenna radiator 54. The antenna radiators 51, 52, 53, and 54 are connected to the matching circuits 21, 22, and 23 and the combiner 31, respectively. The antenna radiators 51, 52, and 53 may be antenna radiators disposed inside the electronic device 100. The antenna radiators 51, 52, 53 may be, for example, antenna radiators arranged on a circuit board of the electronic device 100. The antenna radiator 54 may be an extension portion provided on a middle frame of the electronic device 100. For example, the antenna radiator 54 may be a magnesium alloy extension on the middle frame of the electronic device 100.
Each antenna radiator is used for transceiving radio frequency signals. For example, the antenna radiator 51 is used for transceiving bluetooth signals, the antenna radiator 52 is used for transceiving wireless fidelity signals, the antenna radiator 53 is used for transceiving high-frequency radio frequency signals, and the antenna radiator 54 is used for transceiving medium-low frequency radio frequency signals. The medium-low frequency radio frequency signal is a carrier aggregation signal of a medium-frequency radio frequency signal and a low-frequency radio frequency signal.
The electronic device 100 further comprises switches 61, 62, 63, 64. The switches 61, 62, 63, and 64 are connected to the antenna radiators 51, 52, 53, and 54, respectively. The switches 61, 62, 63, 64 may be single pole, single throw switches.
The electronic device 100 further comprises grounding points 71, 72, 73, 74. The grounding points 71, 72, 73, 74 are connected to the switches 61, 62, 63, 64, respectively. The grounding points 71, 72, 73, 74 are used to realize grounding of the antenna radiators 51, 52, 53, 54, respectively. The switches 61, 62, 63, 64 are used to switch on or off the grounding points 71, 72, 73, 74, respectively.
The embodiment of the present application provides an antenna switching method, which can be applied to the electronic device 100 described in any of the above embodiments. The electronic device 100 may be a smart phone, a tablet computer, or the like. The electronic device 100 includes a middle frame including at least a first extension and a second extension for transceiving radio frequency signals.
As shown in fig. 6, the antenna switching method may include the following steps:
s110, when the electronic device receives and transmits the radio frequency signal through the first extension part, whether a functional component exists in a first preset area or not is detected to be in an opening state, and the first extension part is located in the first preset area.
The electronic device can receive and transmit radio frequency signals through the first extension part on the middle frame or receive and transmit radio frequency signals through the second extension part on the middle frame. That is, the electronic device may communicate with the base station through the first extension or the second extension.
When the electronic device receives and transmits the radio frequency signal through the first extension part, whether the functional component in the first preset area is in an opening state or not can be detected. The first preset area is a preset area on the electronic device, and the first extension portion is located in the first preset area. For example, the first preset region may be a region having a radius of 2cm (centimeter) with the first extension as a center.
The functional components may include, for example, a camera, a fill light, a receiver, a proximity sensor, a gyroscope, and the like. The functional block is not limited to the above-mentioned functional blocks as long as it is an electronic component that performs a predetermined function in an electronic device.
The electronic device can detect all the functional components in the first preset area one by one to judge whether the functional components in the opening state exist in the first preset area. As can be understood, the on state is that the functional component is powered on and is in a working state. If all the functional components in the first preset area are not in the opening state, the detection result indicates that no functional component exists in the first preset area and is in the opening state; if at least one functional element in the first preset area is in an on state, the detection result indicates that the functional element in the first preset area is in the on state, and then step S120 is executed.
And S120, if functional components exist in the first preset area and are in an open state, switching the electronic equipment to receive and transmit radio frequency signals through a second extension part.
When a functional element in the first preset area of the electronic device is in an on state, the functional element in the on state may affect the first extension portion to receive and transmit the radio frequency signal, so that the communication signal of the electronic device is unstable. Therefore, the electronic device can switch to transceiving the radio frequency signal through the second extension part. After switching, the electronic device does not receive and transmit the radio frequency signal through the first extension part any more, so that interference of the functional component in the opening state in the first preset area on a communication signal of the electronic device can be avoided, and the communication stability of the electronic device can be improved.
In some embodiments, as shown in fig. 7, before switching to the step S120 of transceiving the radio frequency signal through the second extension portion, the method further includes the following steps:
s130, if functional components exist in the first preset area and are in an open state, judging whether the working power of the functional components in the open state is greater than preset power;
and if the working power of the functional component is greater than the preset power, switching the electronic equipment to receive and transmit radio frequency signals through a second extension part.
When the electronic device detects that a functional component is in an open state in the first preset area, the operating power of the functional component in the open state can be acquired. And then, comparing the working power of the functional component with a preset power to judge whether the working power of the functional component is greater than the preset power. Wherein the preset power may be a power value preset in the electronic device. For example, the preset power may be 20mw (milliwatts).
If the working power of the functional component in the on state is greater than the preset power, the electronic device can be switched to receive and transmit the radio frequency signal through the second extension part. For example, if the operating power of the functional component is 50mw, the operating power of the functional component is greater than the preset power of 20 mw. Then, the electronic device switches to transmit and receive radio frequency signals through the second extension part.
In some embodiments, the preset power for different functional components may be different. For example, the preset power corresponding to the camera is 20mw, the preset power corresponding to the proximity sensor is 5mw, the preset power corresponding to the gyroscope is 8mw, and the like.
When the electronic device detects that a functional component is in an open state in the first preset area, the type of the functional component can be acquired. The types of the functional components are cameras, proximity sensors, gyroscopes and the like. And then acquiring corresponding preset power according to the type of the functional component, and judging whether the working power of the functional component is greater than the preset power.
In some embodiments, when there are a plurality of functional components in the first preset area, the electronic device may sequentially obtain the operating power of each functional component in the on state. Then, the electronic device determines whether the operating power of the functional component with the largest operating power among the plurality of functional components is greater than a preset power.
In some embodiments, as shown in fig. 8, step S120, if there is a functional element in the first preset area in an on state, switching the electronic device to receive and transmit a radio frequency signal through a second extension portion includes the following steps:
s121, if functional components in the first preset area are in an on state, determining target extension parts from a plurality of second extension parts, wherein the functional components in the second preset area where the target extension parts are located are in an off state;
s122, switching the electronic device to transmit and receive radio frequency signals through the target extension portion.
The number of the second extending parts included in the middle frame of the electronic equipment is multiple. The second extending parts are arranged at intervals. Each second extension part is positioned in a second preset area. Each second preset area is a preset area on the electronic equipment. For example, each of the second preset regions is a region with a radius of 2cm and the second extending portion is a circle center. It should be noted that the ranges of the second preset areas may be different.
When the electronic equipment detects that the functional components exist in the first preset area and are in an open state, the electronic equipment determines the target extension part from the plurality of second extension parts. All the functional components in the second preset area where the target extension part is located are in the closed state, that is, no functional component in the open state exists in the second preset area where the target extension part is located.
Specifically, the electronic device may detect whether a functional component in an open state exists in a second preset area where each second extension portion is located one by one. When a functional component in an open state does not exist in a second preset area where a certain second extension part is located, the electronic device may determine the second extension part as a target extension part.
The electronic device then switches to transceiving radio frequency signals through the target extension.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, the antenna switching method provided in the embodiment of the present application includes: when the electronic equipment receives and transmits radio frequency signals through a first extension part, detecting whether a functional assembly is in an open state in a first preset area or not, wherein the first extension part is positioned in the first preset area; and if functional components exist in the first preset area and are in an open state, switching the electronic equipment to receive and transmit radio frequency signals through the second extension part. In the antenna switching method, when the functional component in the first preset area where the first extension part is located is in the open state, the electronic device is switched to receive and transmit the radio frequency signal through the second extension part, so that the interference of the functional component in the open state in the first preset area on the communication signal of the electronic device can be avoided, and the signal stability of the electronic device during communication is improved.
The embodiment of the application also provides an antenna switching device, and the antenna switching device can be applied to electronic equipment. The electronic device can be a smart phone, a tablet computer and the like. The electronic equipment comprises a middle frame, wherein the middle frame at least comprises a first extension part and a second extension part, and the first extension part and the second extension part are used for receiving and transmitting radio frequency signals.
As shown in fig. 9, the antenna switching apparatus 200 may include: a detection module 201 and a switching module 202.
The detecting module 201 is configured to detect whether a functional component is in an open state in a first preset region when the electronic device receives and transmits a radio frequency signal through a first extension portion, where the first extension portion is located in the first preset region.
The electronic device can receive and transmit radio frequency signals through the first extension part on the middle frame or receive and transmit radio frequency signals through the second extension part on the middle frame. That is, the electronic device may communicate with the base station through the first extension or the second extension.
When the electronic device receives and transmits the radio frequency signal through the first extension portion, the detection module 201 may detect whether a functional component exists in the first preset region and is in an on state. The first preset area is a preset area on the electronic device, and the first extension portion is located in the first preset area. For example, the first preset region may be a region having a radius of 2cm (centimeter) with the first extension as a center.
The functional components may include, for example, a camera, a fill light, a receiver, a proximity sensor, a gyroscope, and the like. The functional block is not limited to the above-mentioned functional blocks as long as it is an electronic component that performs a predetermined function in an electronic device.
The detecting module 201 may detect all the functional components in the first preset region one by one to determine whether a functional component in an on state exists in the first preset region. As can be understood, the on state is that the functional component is powered on and is in a working state. If all the functional components in the first preset area are not in the opening state, the detection result indicates that no functional component exists in the first preset area and is in the opening state; if at least one functional component in the first preset area is in an open state, the detection result indicates that the functional component in the first preset area is in the open state.
A switching module 202, configured to switch the electronic device to receive and transmit a radio frequency signal through a second extension portion when a functional component in the first preset region is in an on state.
When a functional element in the first preset area of the electronic device is in an on state, the functional element in the on state may affect the first extension portion to receive and transmit the radio frequency signal, so that the communication signal of the electronic device is unstable. Therefore, the switching module 202 can switch the electronic device to transmit and receive the radio frequency signal through the second extension portion. After switching, the electronic device does not receive and transmit the radio frequency signal through the first extension part any more, so that interference of the functional component in the opening state in the first preset area on a communication signal of the electronic device can be avoided, and the communication stability of the electronic device can be improved.
In some embodiments, as shown in fig. 10, the antenna switching apparatus 200 further includes a determining module 203.
A determining module 203, configured to determine whether a working power of a functional component in an on state is greater than a preset power when the functional component in the first preset region is in the on state;
the switching module 202 is configured to switch the electronic device to receive and transmit a radio frequency signal through the second extension portion when the working power of the functional component is greater than the preset power.
When the detecting module 201 detects that a functional device is in an on state in the first preset region, the determining module 203 may obtain the operating power of the functional device in the on state. Subsequently, the determining module 203 compares the working power of the functional component with a preset power to determine whether the working power of the functional component is greater than the preset power. Wherein the preset power may be a power value preset in the electronic device. For example, the preset power may be 20mw (milliwatts).
If the working power of the functional component in the on state is greater than the preset power, the switching module 202 may switch the electronic device to receive and transmit the radio frequency signal through the second extension portion. For example, if the operating power of the functional component is 50mw, the operating power of the functional component is greater than the preset power of 20 mw. Subsequently, the switching module 202 switches the electronic device to transmit and receive the radio frequency signal through the second extension portion.
In some embodiments, the preset power for different functional components may be different. For example, the preset power corresponding to the camera is 20mw, the preset power corresponding to the proximity sensor is 5mw, the preset power corresponding to the gyroscope is 8mw, and the like.
When the detecting module 201 detects that a functional component exists in the first preset area and is in an open state, the determining module 203 may obtain the type of the functional component. The types of the functional components are cameras, proximity sensors, gyroscopes and the like. Then, the determining module 203 obtains a corresponding preset power according to the type of the functional component, and determines whether the working power of the functional component is greater than the preset power.
In some embodiments, when there are a plurality of functional components in the first preset area, the determining module 203 may sequentially obtain the operating power of each functional component in the on state. Subsequently, the determining module 203 determines whether the operating power of the functional component with the largest operating power among the plurality of functional components is greater than a preset power.
In some embodiments, as shown in fig. 11, the switching module 202 includes: a determination sub-module 2021, a switching sub-module 2022.
The determining submodule 2021 is configured to determine, when functional components are in an on state in the first preset region, a target extension portion from the plurality of second extension portions, where the functional components in the second preset region where the target extension portion is located are all in an off state;
a switching sub-module 2022, configured to switch the electronic device to receive and transmit radio frequency signals through the target extension.
The number of the second extending parts included in the middle frame of the electronic equipment is multiple. The second extending parts are arranged at intervals. Each second extension part is positioned in a second preset area. Each second preset area is a preset area on the electronic equipment. For example, each of the second preset regions is a region with a radius of 2cm and the second extending portion is a circle center. It should be noted that the ranges of the second preset areas may be different.
When the detection module 201 detects that there is a functional component in the first preset area and the functional component is in an on state, the determination sub-module 2021 determines a target extension portion from the plurality of second extension portions. All the functional components in the second preset area where the target extension part is located are in the closed state, that is, no functional component in the open state exists in the second preset area where the target extension part is located.
Specifically, the determining sub-module 2021 may detect whether a functional component in an on state exists in a second preset area where each second extension portion is located one by one. When there is no functional component in the open state in the second preset region where a certain second extension is located, the determining sub-module 2021 may determine the second extension as the target extension.
Then, the switching sub-module 2022 switches to transceiving radio frequency signals through the target extension.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
As can be seen from the above, in the antenna switching apparatus 200 provided in this embodiment of the application, when the electronic device receives and transmits the radio frequency signal through the first extension portion, the detection module 201 detects whether the functional component is in an on state in the first preset area, where the first extension portion is located in the first preset area; when a functional component in the first preset region is in an on state, the switching module 202 switches the electronic device to receive and transmit the radio frequency signal through the second extension portion. When the functional component in the first preset area where the first extension part is located is in the open state, the antenna switching device switches the electronic equipment to receive and transmit the radio frequency signal through the second extension part, so that the interference of the functional component in the open state in the first preset area on the communication signal of the electronic equipment can be avoided, and the signal stability of the electronic equipment during communication is improved.
The embodiment of the application also provides the electronic equipment. The electronic device can be a smart phone, a tablet computer and the like. The electronic equipment comprises a middle frame, wherein the middle frame at least comprises a first extension part and a second extension part, and the first extension part and the second extension part are used for receiving and transmitting radio frequency signals. As shown in fig. 12, the electronic device 300 includes a processor 301 and a memory 302. The processor 301 is electrically connected to the memory 302.
The processor 301 is a control center of the electronic device 300, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling a computer program stored in the memory 302 and calling data stored in the memory 302, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 301 in the electronic device 300 loads instructions corresponding to one or more processes of the computer program into the memory 302 according to the following steps, and the processor 301 runs the computer program stored in the memory 302, so as to implement various functions:
when the electronic equipment receives and transmits radio frequency signals through the first extension part, whether a functional assembly exists in a first preset area or not is detected to be in an opening state, and the first extension part is located in the first preset area;
and if functional components exist in the first preset area and are in an open state, switching the electronic equipment to receive and transmit radio frequency signals through the second extension part.
In some embodiments, before switching the electronic device to transmit and receive radio frequency signals through the second extension portion, the processor 301 is further configured to:
if functional components exist in the first preset area and are in an open state, judging whether the working power of the functional components in the open state is greater than preset power;
and if the working power of the functional component is greater than the preset power, switching the electronic equipment to receive and transmit radio frequency signals through the second extension part.
In some embodiments, the number of the second extension portions is multiple, each of the second extension portions is located in a second preset region, and if a functional element exists in the first preset region and is in an on state, the processor 301 is configured to execute the following steps when the electronic device is switched to receive and transmit a radio frequency signal through the second extension portion:
if functional components exist in the first preset area and are in an open state, determining a target extension part from the plurality of second extension parts, wherein the functional components in the second preset area where the target extension part is located are all in a closed state;
switching the electronic device to transceive radio frequency signals through the target extension.
In some embodiments, the electronic device includes a middle frame including a first end and a second end disposed opposite to each other, the first extension and the second extension being located at either the first end or the second end.
In some embodiments, the first extension and the second extension are disposed opposite to each other on either side of the first end or on both sides of the second end.
Memory 302 may be used to store computer programs and data. The memory 302 stores computer programs containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 301 executes various functional applications and data processing by calling a computer program stored in the memory 302.
In some embodiments, as shown in fig. 13, the electronic device 300 further comprises: radio frequency circuit 303, display screen 304, control circuit 305, input unit 306, audio circuit 307, sensor 308, and power supply 309. The processor 301 is electrically connected to the rf circuit 303, the display 304, the control circuit 305, the input unit 306, the audio circuit 307, the sensor 308, and the power source 309, respectively.
The radio frequency circuit 303 is used for transceiving radio frequency signals to communicate with a network device or other electronic devices through wireless communication.
The display screen 304 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 305 is electrically connected to the display screen 304, and is used for controlling the display screen 304 to display information.
The input unit 306 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 306 may include a fingerprint recognition module.
Audio circuitry 307 may provide an audio interface between the user and the electronic device through a speaker, microphone.
The sensor 308 is used to collect external environmental information. The sensor 308 may include one or more of an ambient light sensor, an acceleration sensor, a gyroscope, and the like.
The power supply 309 is used to power the various components of the electronic device 300. In some embodiments, the power source 309 may be logically coupled to the processor 301 through a power management system, such that functions to manage charging, discharging, and power consumption management are performed through the power management system.
Although not shown in fig. 13, the electronic device 300 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
As can be seen from the above, an embodiment of the present application provides an electronic device, where the electronic device performs the following steps: when the electronic equipment receives and transmits radio frequency signals through a first extension part, detecting whether a functional assembly is in an open state in a first preset area or not, wherein the first extension part is positioned in the first preset area; and if functional components exist in the first preset area and are in an open state, switching the electronic equipment to receive and transmit radio frequency signals through the second extension part. When the functional component in the first preset area where the first extension part is located is in the open state, the electronic equipment is switched to receive and transmit the radio frequency signal through the second extension part, so that the interference of the functional component in the open state in the first preset area on the communication signal of the electronic equipment can be avoided, and the signal stability of the electronic equipment during communication is improved.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the antenna switching method according to any of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The antenna switching method, the antenna switching device, the storage medium and the electronic device provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principles and the embodiments of the present application, and the description of the embodiments above is only used to help understanding the method and the core idea of the present application; meanwhile, for those 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 (6)

1. An antenna switching method is applied to an electronic device, and is characterized in that the electronic device includes a middle frame, the middle frame includes at least a first extension portion and a plurality of second extension portions, the first extension portion is used as an antenna radiator of the electronic device and is used for receiving and transmitting radio frequency signals, the second extension portion is used as an antenna radiator of the electronic device and is used for receiving and transmitting radio frequency signals, the middle frame includes a first end portion and a second end portion which are oppositely arranged, the first extension portion and the plurality of second extension portions are oppositely arranged on two sides of the first end portion or two sides of the second end portion, the first extension portion and the plurality of second extension portions are electrically insulated, the plurality of second extension portions are arranged at intervals, and the plurality of second extension portions are electrically insulated; the antenna switching method comprises the following steps:
when the electronic equipment receives and transmits radio frequency signals through the first extension part, whether a functional assembly exists in a first preset area or not is detected to be in an opening state, and the first extension part is located in the first preset area; if functional components exist in the first preset area and are in an open state, detecting whether functional components in the open state exist in a second preset area where each second extension part is located one by one; determining the second extension corresponding to the second preset region where the functional component in the on state does not exist as a target extension; switching the electronic device to transceive radio frequency signals through the target extension.
2. The antenna switching method according to claim 1, wherein before the step of switching the electronic device to transmit and receive radio frequency signals through the second extension portion, the method further comprises:
if functional components exist in the first preset area and are in an open state, judging whether the working power of the functional components in the open state is greater than preset power;
and if the working power of the functional component is greater than the preset power, switching the electronic equipment to receive and transmit radio frequency signals through the second extension part.
3. An antenna switching device is applied to an electronic device, and is characterized in that the electronic device includes a middle frame, the middle frame includes at least a first extension portion and a plurality of second extension portions, the first extension portion is used as an antenna radiator of the electronic device and is used for receiving and transmitting radio frequency signals, the second extension portion is used as an antenna radiator of the electronic device and is used for receiving and transmitting radio frequency signals, the middle frame includes a first end portion and a second end portion which are oppositely arranged, the first extension portion and the plurality of second extension portions are oppositely arranged on two sides of the first end portion or two sides of the second end portion, the first extension portion and the plurality of second extension portions are electrically insulated, the plurality of second extension portions are arranged at intervals, and the plurality of second extension portions are electrically insulated; the antenna switching apparatus includes:
the detection module is used for detecting whether a functional component exists in a first preset area and is in an open state or not when the electronic equipment receives and transmits radio frequency signals through the first extension part, and the first extension part is located in the first preset area;
the determining submodule is used for detecting whether functional components in an open state exist in a second preset area where each second extension part is located one by one when the functional components in the open state exist in the first preset area; determining the second extension corresponding to the second preset region where the functional component in the on state does not exist as a target extension;
and the switching submodule is used for switching the electronic equipment to transmit and receive radio frequency signals through the target extension part.
4. The antenna switching apparatus according to claim 3, further comprising:
the judging module is used for judging whether the working power of the functional component in the starting state is greater than the preset power or not when the functional component in the first preset area is in the starting state;
the switching module is configured to switch the electronic device to receive and transmit a radio frequency signal through the second extension portion when the working power of the functional component is greater than the preset power.
5. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the antenna switching method of claim 1 or 2.
6. An electronic device, characterized in that the electronic device comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to execute the antenna switching method according to claim 1 or 2 by calling the computer program stored in the memory.
CN201711252503.8A 2017-12-01 2017-12-01 Antenna switching method and device, storage medium and electronic equipment Active CN108023611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711252503.8A CN108023611B (en) 2017-12-01 2017-12-01 Antenna switching method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711252503.8A CN108023611B (en) 2017-12-01 2017-12-01 Antenna switching method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108023611A CN108023611A (en) 2018-05-11
CN108023611B true CN108023611B (en) 2020-04-10

Family

ID=62077892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711252503.8A Active CN108023611B (en) 2017-12-01 2017-12-01 Antenna switching method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108023611B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639368A (en) * 2018-12-04 2019-04-16 Oppo广东移动通信有限公司 Electromagnetic interference control method and relevant apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105281819A (en) * 2015-10-31 2016-01-27 东莞酷派软件技术有限公司 Antenna switching method and terminal
CN105281014A (en) * 2014-06-20 2016-01-27 中兴通讯股份有限公司 Antenna and terminal
CN105826685A (en) * 2015-11-06 2016-08-03 维沃移动通信有限公司 Antenna system, terminal and control method for radio frequency signals

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5505242B2 (en) * 2010-10-07 2014-05-28 富士通株式会社 Communication apparatus and control method
US10237004B2 (en) * 2016-05-25 2019-03-19 Avago Technologies International Sales Pte. Limited Inter-radio communications for scheduling or allocating time-varying frequency resources

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105281014A (en) * 2014-06-20 2016-01-27 中兴通讯股份有限公司 Antenna and terminal
CN105281819A (en) * 2015-10-31 2016-01-27 东莞酷派软件技术有限公司 Antenna switching method and terminal
CN105826685A (en) * 2015-11-06 2016-08-03 维沃移动通信有限公司 Antenna system, terminal and control method for radio frequency signals

Also Published As

Publication number Publication date
CN108023611A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
US10657347B2 (en) Method for capturing fingerprint and associated products
CN108494957A (en) Antenna switching method, device, storage medium and electronic equipment
CN108365881B (en) Antenna control method, antenna control device, storage medium and electronic equipment
US11442493B2 (en) Electronic device for controlling clock frequency and operating method therefor
CN108462522B (en) Antenna control method, antenna assembly, electronic device and storage medium
CN108039897B (en) Antenna switching method and device, storage medium and electronic equipment
CN108494464B (en) Antenna control method, antenna assembly, electronic device and storage medium
US10211516B2 (en) Electronic device including antenna
US20220319378A1 (en) Screen color temperature control method, apparatus, storage medium, and mobile terminal
US10199760B2 (en) Electronic device including bidirectional connector
CN108495359B (en) Antenna control method, antenna control device, storage medium and electronic equipment
US11212020B2 (en) FM channel finding and searching method, mobile terminal and storage apparatus
US10706282B2 (en) Method and mobile terminal for processing image and storage medium
CN108023611B (en) Antenna switching method and device, storage medium and electronic equipment
CN108365882B (en) Antenna control method, antenna control device, storage medium and electronic equipment
CN110011035B (en) Antenna structure and electronic device
CN107979387A (en) antenna switching method, device, storage medium and electronic equipment
KR20210094959A (en) An electronic device performing wireless communication and a method for wireless communication
CN111953389A (en) Antenna tuning method, antenna tuning device, storage medium and electronic terminal
CN111104186A (en) Bluetooth configuration file loading method and device, storage medium and terminal equipment
CN106201536A (en) The replacing options of a kind of application icon and terminal unit
CN112867171B (en) WIFI connection method and device, storage medium and mobile terminal
CN108365867B (en) Antenna switching method and device, storage medium and electronic equipment
CN105635379B (en) Noise suppression method and device
CN108512613B (en) Radiation stray test method, device, storage medium and test system

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant