CN111740748B - Antenna control method, antenna control device, electronic equipment and computer readable medium - Google Patents

Antenna control method, antenna control device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN111740748B
CN111740748B CN202010611551.7A CN202010611551A CN111740748B CN 111740748 B CN111740748 B CN 111740748B CN 202010611551 A CN202010611551 A CN 202010611551A CN 111740748 B CN111740748 B CN 111740748B
Authority
CN
China
Prior art keywords
antenna
communication mode
antennas
signal
target
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
CN202010611551.7A
Other languages
Chinese (zh)
Other versions
CN111740748A (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 CN202010611551.7A priority Critical patent/CN111740748B/en
Publication of CN111740748A publication Critical patent/CN111740748A/en
Application granted granted Critical
Publication of CN111740748B publication Critical patent/CN111740748B/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/005Details 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 adapting radio receivers, transmitters andtransceivers for operation on two or more bands, i.e. frequency ranges
    • H04B1/0053Details 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 adapting radio receivers, transmitters andtransceivers for operation on two or more bands, i.e. frequency ranges with common antenna for more than one band
    • 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
    • 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
    • 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/0413MIMO systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses an antenna control method, an antenna control device, electronic equipment and a computer readable medium, and relates to the technical field of communication. The method comprises the following steps: determining a first communication mode when an antenna for transmitting a 4G communication mode signal collides with an antenna for transmitting a 5G communication mode signal, the first communication mode being one of the 4G communication mode and the 5G communication mode; determining an antenna supporting a first communication mode from at least two antennas as an alternative antenna; determining a first target antenna from the alternative antennas as an antenna for transmitting signals of the first communication mode; a second target antenna is determined from antennas other than the first target antenna among the at least two antennas as an antenna for transmitting a signal of the second communication mode. Therefore, when the antenna of the 4G communication mode collides with the antenna of the 5G communication mode, the antennas can be allocated to the 4G and the 5G, and the 4G and the 5G antennas can be prevented from colliding.

Description

Antenna control method, antenna control device, electronic equipment and computer readable medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to an antenna control method and apparatus, an electronic device, and a computer-readable medium.
Background
With the widespread use of a large number of electronic devices such as smart phones, smart phones have more and more applications and more powerful functions, and smart phones are developed towards diversification and personalization directions and become indispensable electronic products in user life.
With The rapid development of communication Technology, The 4th Generation mobile communication Technology (4G) has gradually become difficult to meet The user's requirements, especially The user's requirements for higher network speed and lower network delay. With this, The fifth Generation mobile communication Technology (5G) is gradually emerging.
At present, in order to enable the electronic device to support the 4G network and the 5G network simultaneously, a plurality of independent antennas need to be set for the 4G network in the electronic device, and a plurality of independent antennas need to be set for the 5G network, so that a large layout space inside the electronic device needs to be occupied, and the space inside the electronic device is not utilized. And to save space, the electronic device may be configured with antennas that support both 4G networks and 5G networks. However, this may cause antenna collisions between the 4G network and the 5G network, which may affect the use.
Disclosure of Invention
The application provides an antenna control method, an antenna control device, an electronic device and a computer readable medium, so as to overcome the defects.
In a first aspect, an embodiment of the present application provides an antenna control method, which is applied to an electronic device, where the electronic device further includes a plurality of antennas, and the plurality of antennas include at least two antennas supporting a 4G communication mode and at least two antennas supporting a 5G communication mode, where at least one common antenna exists in the at least two antennas supporting the 4G communication mode and the at least two antennas supporting the 5G communication mode. The method comprises the following steps: determining a first communication mode when an antenna for transmitting a 4G communication mode signal and an antenna for transmitting a 5G communication mode signal are the same antenna, the first communication mode being one of the 4G communication mode and the 5G communication mode; determining, by the plurality of antennas, an antenna that supports the first communication mode as an alternative antenna; determining a first target antenna from the alternative antennas as an antenna for transmitting signals of the first communication mode; determining a second target antenna from antennas other than the first target antenna among the plurality of antennas as an antenna for transmitting a signal of a second communication mode, the second communication mode being a communication mode other than the first communication mode among the 4G communication mode and the 5G communication mode.
In a second aspect, an embodiment of the present application further provides an antenna control apparatus applied to an electronic device, where the electronic device includes a plurality of antennas, and the plurality of antennas include at least two antennas supporting a 4G communication mode and at least two antennas supporting a 5G communication mode, where at least one common antenna exists in the at least two antennas supporting the 4G communication mode and the at least two antennas supporting the 5G communication mode, and the antenna control apparatus includes: the device comprises a first determining unit, a second determining unit, a first switching unit and a second switching unit. A first determining unit, configured to determine a first communication mode when an antenna used for transmitting a 4G communication mode signal and an antenna used for transmitting a 5G communication mode signal are the same antenna, where the first communication mode is one of the 4G communication mode and the 5G communication mode. A second determining unit, configured to determine, as an alternative antenna, an antenna that supports the first communication mode from among the plurality of antennas. A first switching unit, configured to determine a first target antenna from the alternative antennas, as an antenna for transmitting the signal of the first communication mode. A second switching unit configured to determine a second target antenna from antennas other than the first target antenna among the plurality of antennas as an antenna for transmitting a signal of a second communication mode, the second communication mode being a communication mode other than the first communication mode among the 4G communication mode and the 5G communication mode.
In a third aspect, an embodiment of the present application further provides an electronic device, including: the antenna switching device comprises a switching device and a plurality of antennas, wherein the plurality of antennas comprise at least two antennas supporting a 4G communication mode and at least two antennas supporting a 5G communication mode, and at least one shared antenna exists in the at least two antennas supporting the 4G communication mode and the at least two antennas supporting the 5G communication mode; the switching device is used for executing the method.
In a fourth aspect, the present application also provides a computer-readable storage medium, where a program code executable by a processor is stored, and when executed by the processor, the program code causes the processor to execute the above method.
The application provides an antenna control method, an apparatus, an electronic device and a computer readable medium, the electronic device includes a plurality of antennas, the plurality of antennas includes at least two antennas supporting a 4G communication mode and at least two antennas supporting a 5G communication mode, wherein at least one common antenna exists in the at least two antennas supporting the 4G communication mode and the at least two antennas supporting the 5G communication mode, when an antenna for transmitting a 4G communication mode signal and an antenna for transmitting a 5G communication mode signal are unified antennas, a first communication mode is determined in the 4G communication mode and the 5G communication mode, an antenna is preferentially configured for the first communication mode, that is, an antenna supporting the first communication mode is determined from the at least two antennas to be used as an alternative antenna, and then a first target antenna is determined from the alternative antennas, as an antenna for transmitting signals of the first communication mode; determining a second target antenna from antennas other than the first target antenna of the at least two antennas as an antenna for transmitting a signal of a second communication mode. Therefore, when the antenna of the 4G communication mode collides with the antenna of the 5G communication mode, the antennas can be allocated to the 4G and the 5G, and the 4G and the 5G antennas can be prevented from colliding.
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 only 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 illustrates a flowchart of a method for controlling an antenna according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a method of controlling an antenna according to another embodiment of the present application;
FIG. 3 illustrates a schematic diagram of a radio frequency circuit provided by an embodiment of the present application;
FIG. 4 illustrates a schematic diagram of a radio frequency circuit provided by another embodiment of the present application;
fig. 5 is a flowchart illustrating a method of controlling an antenna according to another embodiment of the present application;
FIG. 6 shows a schematic diagram of a radio frequency circuit provided by yet another embodiment of the present application;
fig. 7 is a block diagram illustrating an antenna control apparatus according to an embodiment of the present application;
fig. 8 is a block diagram illustrating an antenna control apparatus according to another embodiment of the present application;
fig. 9 shows a block diagram of an electronic device provided in an embodiment of the present application;
fig. 10 illustrates a storage unit for storing or carrying program codes for implementing an antenna control method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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.
With the widespread use of a large number of electronic devices such as smart phones, smart phones have more and more applications and more powerful functions, and smart phones are developed towards diversification and personalization directions and become indispensable electronic products in user life.
With The rapid development of communication Technology, The 4th Generation mobile communication Technology (4G) has gradually become difficult to meet The user's requirements, especially The user's requirements for higher network speed and lower network delay. With this, The fifth Generation mobile communication Technology (5G) is gradually emerging.
Currently, 5G networks have two architectures, namely a non-independent Networking (NSA) network and an independent networking (SA) network. NSA is a 5G network that merges the current 4G base station and network architecture deployments. Therefore, the construction speed is very high, and 5G network coverage can be realized by directly utilizing the 4G base station and additionally installing the 5G base station. However, the architecture is also a 4G network architecture, so that the massive internet of things access and low-delay characteristics of the 5G network cannot be brought into play. SA networking is referred to as independent networking. Namely, the 5G base station and the back-end 5G network are reconstructed, so that all characteristics and functions of the 5G network are completely realized. But because all base stations and infrastructure need to be rebuilt, the construction costs are quite high.
The NSA network needs to transmit and receive signals of Long Term Evolution (LTE) technology and signals of New Radio (NR) technology at the same time. Among them, LTE is also referred to as 4G, which is a long term evolution of UMTS (Universal Mobile Telecommunications System) technical standard established by The 3GPP (The 3rd Generation Partnership Project) organization. A 5G (5th Generation, 5G) communication system (or referred to as a New Radio (NR) system), a future evolution system or a multiple communication convergence system, and so on. A variety of application scenarios may be included, for example, scenarios such as machine to machine (M2M), D2M, macro and micro communication, enhanced mobile broadband (eMBB), ultra and low reliability communication (urrllc), and mass internet of things communication (mtc). These scenarios include, but are not limited to: the communication between the terminals, the communication between the network devices, or the communication between the network devices and the terminals.
That is, an EN-DC dual connection is required in the NSA network architecture. The EN-DC is a dual connection between a 4G radio access network and a 5G NR, and is a network connection mode in a non-independent Networking (NSA) mode of 5G. Generally, in one radio architecture, the LTE radio path only requires TX (transmit signal), PRX (primary set receive signal), DRX (diversity receive signal). The NR path requires TX (transmit signal), PRX (primary set receive signal), DRX (diversity receive signal), multiple input multiple output PRX (mimo PRX), multiple input multiple output DRX (mimo DRX) signals.
The inventor finds in research that in the EN-DC dual connection mode, there is a problem of sharing antennas, and then, at present, the smart switching of antennas can be performed only in a pure LTE network or only in a pure NR network. In the EN-DC dual connection, if the antenna is shared, there is no related antenna intelligent switching technology, which may cause antenna collision between the 4G network and the 5G network, and affect the use.
Therefore, in order to solve the above-mentioned drawbacks, embodiments of the present application provide an antenna control method, an apparatus, an electronic device, and a computer-readable medium, which can allocate antennas for 4G and 5G when an antenna in a 4G communication mode collides with an antenna in a 5G communication mode, so as to avoid the collision between the 4G and 5G antennas. In this embodiment, the antenna control method and apparatus may be applied to an electronic device, where the electronic device includes a switching device and multiple antennas, where the multiple antennas include at least two antennas supporting a 4G communication mode and at least two antennas supporting a 5G communication mode, where at least one common antenna exists in the at least two antennas supporting the 4G communication mode and the at least two antennas supporting the 5G communication mode, where the common antenna refers to an antenna supporting both 4G and 5G networks, that is, the electronic device includes at least one antenna capable of supporting both 4G and 5G networks.
In the embodiment of the present application, the number of the plurality of antennas may be at least two, that is, two or more. If the number of antennas is two, both antennas support the antennas of the 4G and 5G networks simultaneously. If the number of antennas is three or more, then if there is one antenna supporting both 4G and 5G networks, then at least one 4G-capable antenna and one 5G-capable antenna are included in addition to the shared antenna, e.g., if the number of antennas is three, there is one shared antenna, one 4G-only antenna and one 5G-only antenna. For another example, if there are two common antennas when the number of antennas is three, the other antenna may be an antenna supporting 4G or an antenna supporting 5G. Specifically, please refer to the following embodiments, which specifically describe the control method for different numbers of antennas.
Specifically, referring to fig. 1, fig. 1 illustrates an antenna control method provided in an embodiment of the present application, where an execution subject of the method may be a switching device, and specifically, the method may include: s101 to S104.
S101: the first communication mode is determined when an antenna for transmitting the 4G communication mode signal collides with an antenna for transmitting the 5G communication mode signal.
Wherein the first communication mode is one of the 4G communication mode and the 5G communication mode.
As an embodiment, the antenna for transmitting the 4G communication mode signal and the antenna for transmitting the 5G communication mode signal may collide with each other by the same antenna for transmitting the 4G communication mode signal and the same antenna for transmitting the 5G communication mode signal, that is, by simultaneously transmitting the 4G communication mode signal and the 5G communication mode signal using the common antenna as described above. That is, when the electronic device simultaneously uses the same antenna to simultaneously transmit the 4G signal and the 5G signal, there is a conflict in the use of the antenna when the signals of the two different modes occur, especially when the electronic device simultaneously uses the 4G signal and the 5G signal, for example, the electronic device is a dual-card dual-standby mobile phone, the two used mobile phone cards are two, one is a 4G card and one is a 5G card, and the two mobile phone cards can simultaneously transmit or receive signals, and when it is monitored that the 4G signal and the 5G signal jointly use the same antenna to transmit the signals, it is determined that the antenna for transmitting the 4G communication mode signal conflicts with the antenna for transmitting the 5G communication mode signal. Moreover, when the antennas are switched between 4G and 5G, two transmission paths may contend for the same transmitting antenna, so that the 4G and 5G frequency bands collide during the switching of the transmitting antennas, thereby affecting the communication quality.
A first communication mode, which is a communication mode in which an antenna is preferentially de-allocated among the 4G communication mode and the 5G communication mode in a case where an antenna for transmitting a 4G communication mode signal collides with an antenna for transmitting a 5G communication mode signal, is determined from among the 4G communication mode and the 5G communication mode when the antenna for transmitting the 4G communication mode signal collides with the antenna for transmitting the 5G communication mode signal, which communication mode is more likely to be used or which communication mode is more concerned in a case where the antennas collide. Because the range selected by the first communication mode determined first is larger than the range selected by the communication mode determined later.
The 4G network has better network-residing performance, namely, the stability of the connection network within the network range is better, and the 5G network has better uploading and downloading throughput, namely, faster data downloading speed and data uploading speed.
As an embodiment, the first communication mode may be determined by presetting a preferred communication mode, that is, presetting a preferred communication mode when antennas collide. For example, the 4G communication mode is set as the priority communication mode, and therefore, when the antenna collision described above occurs, the 4G communication mode is determined as the first communication mode.
As another embodiment, the first communication mode may also be determined according to an operating state of the electronic device. In particular, the operating state may include a high data throughput state and a mobility state. The high data throughput state refers to that the electronic device is currently in a high data download amount or an upload amount, for example, the electronic device plays an audio/video or runs an application program with a high data transmission requirement, such as a game. As an embodiment, the first communication mode is determined to be the 5G communication mode if it is determined that the electronic device is in the high data throughput state, and the first communication mode is determined to be the 4G communication mode if it is determined that the electronic device is in the moving state. Therefore, in the case of a high data throughput state, if the electronic device has a high requirement on the data download speed and the upload speed, the antenna may be preferentially configured in the 5G communication mode, and if the electronic device is in a mobile state, the antenna may be preferentially configured in the 4G communication mode, considering that the electronic device has a large change in location and a high requirement on the stability of the network.
Specifically, in some embodiments, the electronic device detects whether an audio application or a video application is running, and if so, further determines whether the video application is running on the screen of the electronic device, and if so, determines that the electronic device is playing video. Of course, it may also be determined whether a video playing interface is displayed on the screen of the electronic device, and if so, it is determined that the electronic device is playing audio and video, that is, it is determined that the electronic device is in a high data throughput state.
Additionally, if the electronic device detects that a video application is currently running in the background, it may determine whether it is in a high data throughput state in conjunction with time. Specifically, when it is detected that a video application is currently running in the background and no video application is currently running in the foreground, that is, under the condition that the video applications currently in the running state are all detected to be running in the background, the current time is obtained, whether the current time is within the preset time range is determined, and if yes, the electronic device is determined to be in the high data throughput state. The preset time range may be a time period, counted in advance, during which the user often watches the video, for example, 21 to 23, and further, whether the electronic device is in the high data throughput state may be further determined by combining the position of the electronic device, specifically, after determining that the current time is within the preset time range, obtaining current position information of the electronic device, determining whether the current position information is within the preset position range, and if so, determining that the electronic device is in the high data throughput state. The preset position range can be a certain range of the home address or the work address of the user.
In addition, if the electronic device detects that a video application is currently running in the background, it may determine whether the video application belongs to the high data throughput state in combination with the content of the video played when the video application was last running in the foreground. Specifically, the content of the video played by the video application program when the video application program operates in the foreground last time is determined, namely the reference video content, the reference playing progress of the reference video content is determined, namely the reference playing progress is the playing progress of the application program when the video application program operates in the foreground last time, and whether the electronic equipment is in the high data throughput state or not is determined according to the playing progress.
Specifically, a playlist corresponding to the reference video content is obtained, whether the playlist has video content other than the reference video content is determined, if the video content other than the reference video content exists, for example, the video content may be an episode, the play progress is a reference position of the reference video content in the playlist, and whether the reference position is an end position, where the end position is a position of the last N video contents located in the playlist, where N is a positive integer and may be 1, and the end position is a position of the last video content in the playlist, and therefore, if the reference position is not the end position, it is determined that the electronic device is in a high data throughput state.
If the playlist does not have video content other than the reference video content, the playing progress may be a time stamp of a video frame currently being played by the reference video content. Each image frame in the reference video corresponds to a time stamp, and the time stamp of each image frame can reflect the playing sequence of the image frame in the reference video. The video can be regarded as a plurality of image frames which are synthesized and played according to a certain sequence, therefore, an image set obtained after the plurality of image frames are coded according to the certain sequence can be regarded as the video, and the timestamp can be the marking information for representing the playing sequence of a certain image frame in the video. Generally, a first image frame of a video is taken as a starting image, a corresponding time stamp is taken as a starting time stamp, then, image frames following the starting image are increased by a certain value on the basis of the starting time stamp according to a playing sequence, and a difference value between every two adjacent image frames can be fixed.
Therefore, each image frame in the video corresponds to a time point on the playing time axis of the video, and the time point is a time stamp of the image frame. The playing time axis of the video is related to the playing time length of the video, and may be 0 as a starting point, and the total playing time length of the video is a starting point, for example, if the total length of the video is 10 seconds, the playing time axis of the video is a time axis with 0 as a starting point and 10 seconds as an end point. And the time stamp of each image frame in the video is positioned on the playing time axis, so that the position of each image frame on the time playing axis can be determined.
In one embodiment, a time stamp of a video frame currently played by the reference video content is recorded as a reference time stamp, a time stamp corresponding to a last video frame of the video is recorded as an end time stamp, an absolute value of a time difference between the reference time stamp and the start time stamp is obtained and recorded as a first time difference, and an absolute value of a time difference between the reference time stamp and the end time stamp is obtained and recorded as a second time difference. And acquiring a smaller time difference between the first time difference and the second time difference, taking the smaller time difference as a third time difference, determining whether the third time difference is greater than a preset value, if so, determining that the reference video is likely to be continuously switched to be played on the screen, and if so, determining that the video content is likely to be continuously downloaded, and determining that the electronic equipment is in a high data throughput state. And if not, the video content can be played completely. The timestamp corresponding to the head content ending image frame of the reference video may be obtained and recorded as a head ending timestamp, and the timestamp of the tail content starting image frame of the reference video may also be obtained and recorded as a tail starting timestamp, where the head content may include content such as advertisement content and a head song, and the tail content may include content such as a tail song. When the third time difference is calculated, the start time stamp is replaced with a slice head end time stamp, and the end time stamp is replaced with a slice tail start time stamp, so that the third time difference is obtained.
In addition, if the electronic device is running the audio application, it is determined whether the audio application plays audio data within a specified time period, where the specified time period may be a time period corresponding to a certain length of time before the time when the electronic device is currently determined to be running the audio application.
The embodiment of determining whether the audio application plays the audio data within the specified time period may be determining whether the audio application calls a speaker or an audio playing module within the specified time period, where the audio playing module may be a program used by the audio application to play audio and video, and for example, the audio playing module may be a default playing module, that is, a system playing module, in an operating system of the electronic device.
Specifically, when the system playing module acquires the data to be played, the audio/video data is analyzed next. The general video file is composed of two parts of video stream and audio stream, and the packaging formats of audio and video in different video formats are definitely different. The process of combining audio and video streams into a file is called muxer, whereas the process of separating audio and video streams from a media file is called demux. The system playing module is a default playing module in an operating system of the electronic device, that is, when a client installed in the electronic device plays a video file, the default playing module is to call the system playing module to play the video file. In the android system, the system play module may be a Media Framework module. Therefore, whether the audio playing module is called in a specified time period can be determined by detecting the calling of the audio application program to the system playing module, so that whether the audio application program runs and plays audio in a foreground or plays audio in a background can be ensured to be detected.
As another embodiment, an application program that has a high demand for data transmission amount, such as a game, may be defined as a high data amount application program. Specifically, the high data volume application may be a type of application, may be a type set for each application by the electronic device, or may be a type set for an application by a user when the application is installed. Specifically, the type of the high-data-volume application program may be further divided into a video type, an audio type and a game type, if it is determined that the type of the currently running application program is the high-data-volume application program, then a sub-type is further determined, if the sub-type is the video type or the audio type, it may be determined whether the electronic device is in the high-data-throughput state according to the aforementioned manner that the electronic device is determining to play audio and video, if the sub-type is the game type, it is determined that the electronic device is in the high-data-throughput state when it is determined that the high-data-volume application program is running in the foreground, and otherwise, it is determined that the electronic device is not in the high-data-throughput state.
As an embodiment, the determining the moving state of the electronic device may be implemented by acquiring location information of the electronic device during a detection period, and determining whether the electronic device is in the moving state according to a plurality of acquired location information of the electronic device during the detection period. Specifically, a position change range of the electronic device in the detection time period may be fitted according to the position information, and if the position change range is greater than a preset range, it is determined that the electronic device is in the moving state. The position information may be physical coordinates of the electronic device in a world coordinate system, and the preset range may be M kilometers, where M is a positive number.
As an embodiment, the moving state may be determined according to a moving speed of the electronic device. Specifically, the moving speed of the electronic device may be acquired, whether the moving speed is greater than a specified speed is determined, and if the moving speed is greater than the specified speed, the electronic device is determined to be in a moving state. Wherein the specified speed of the electronic device may be measured by a motion detection means within the electronic device, for example the motion detection means may be an inertial measurement unit.
S102: determining, by the plurality of antennas, an antenna that supports the first communication mode as an alternative antenna.
As an embodiment, an antenna management table may be preset, in which an identification of each antenna and a communication mode supported by each antenna and a function of each antenna, for example, for transmitting or transmitting a signal, or capable of both transmitting and receiving a signal, are recorded. Therefore, by referring to the antenna management table, an antenna supporting the first communication mode can be determined, and is denoted as an alternative antenna.
S103: determining a first target antenna from the alternative antennas as an antenna for transmitting signals of the first communication mode.
As an embodiment, the manner of determining the first target antenna from the alternative antennas may be to obtain an antenna usage record, where the antenna usage record includes the number of times each antenna is used, the usage time, the applied communication mode, and the like. And determining the number of times of use of each antenna for the first communication mode in the first reference time period according to the antenna use record, and determining a first target antenna according to the number of times of use. In some embodiments, the antenna with the highest number of uses is used as the first target antenna.
As another embodiment, the first target antenna may be determined from the alternative antennas by obtaining the use time and the applied communication mode of each antenna in the antenna use record, searching for the antenna that is most recently applied to the first communication mode, and using the antenna as the first target antenna.
As another implementation, the first target antenna may also be determined according to the capability of each antenna to transmit the signal of the first communication mode, specifically, please refer to the following embodiments.
S104: determining a second target antenna from antennas other than the first target antenna among the plurality of antennas as an antenna for transmitting a signal of a second communication mode.
Wherein the second communication mode is a communication mode other than the first communication mode of the 4G communication mode and the 5G communication mode.
Specifically, in all the antennas, except for the first target antenna, the second target antenna is determined from the remaining antennas as the antenna for transmitting the signal of the second communication mode, and the determination manner may refer to the foregoing manner of determining the first target antenna, that is, the determination manner is determined according to the antenna usage record, and may also be determined according to the capability of each antenna to transmit the signal of the second communication mode, and may also be determined by combining the architecture and the number of the entire antennas, specifically, please refer to the subsequent embodiments.
Therefore, the antenna control method provided by the embodiment of the application can allocate the antennas for 4G and 5G when the antennas in the 4G communication mode collide with the antennas in the 5G communication mode, so as to avoid the collision between the 4G antennas and the 5G antennas.
As an embodiment, the radio frequency circuit of the electronic device may have multiple architectures, and the number of antennas included in different architectures is different, so that the number of antennas that can be selected is different when the antennas collide. Specifically, it can be divided into a radio frequency circuit that switches between three antennas and a radio frequency circuit that switches between two antennas. Different switching modes will be described below for different rf circuits.
Referring to fig. 2, fig. 2 illustrates an antenna control method provided in an embodiment of the present application, where an execution subject of the method may be a switching device, and specifically, the method may include: s201 to S205.
S201: the first communication mode is determined when an antenna for transmitting the 4G communication mode signal collides with an antenna for transmitting the 5G communication mode signal.
In the embodiment of the present application, the first communication mode is a 4G communication mode, and the second communication mode is a 5G communication mode.
In an embodiment of the present application, an electronic device includes a radio frequency circuit including a plurality of antennas of a switching device. The plurality of antennas include a first antenna, a second antenna, and a third antenna, the first antenna and the second antenna both support the 4G communication mode and the 5G communication mode simultaneously, the third antenna supports the 5G communication mode, and the alternative antenna includes the first antenna and the second antenna.
Specifically, as shown in fig. 3, fig. 3 shows a radio frequency circuit provided by an embodiment of the present application, specifically, the radio frequency circuit includes: a switching device 301, a main set receiving module 302, a diversity receiving module 303, a mimo receiving duplexer assembly 304, a mimo receiving module 305, a multi-mode multi-band amplifier 306, a wireless transceiver 307, an antenna 308, an antenna 309, an antenna 310, and an antenna 311.
The wireless Transceiver (4G +5G Transceiver)307 is connected to the switching device 301 through a main set receiving module (PAMID module) 302, a diversity receiving module (DRX)303, and a Multiple Input Multiple Output (MIMO) receiving duplexer assembly 304, the switching device 301 is connected to the antenna 308, the antenna 309, and the antenna 310, respectively, the wireless Transceiver 307 is connected to the Multiple Input Multiple Output (MIMO) receiving module 305 and the antenna 311, and the wireless Transceiver 307 is further connected to the multiple input multiple output receiving duplexer assembly 304 through a multi-mode multi-band amplifier 306.
Wherein 4G and 5G are switched among antenna 308, antenna 309 and antenna 310, as an embodiment, antenna 308 is used for transmitting and receiving 5G signals and receiving 4G signals, specifically, antenna 308 is used for receiving 5G signals and receiving 4G signals by PRX (i.e. primary set receiving module 302), antenna 309 is used for receiving 5G signals, specifically, antenna 309 is used for receiving 5G signals by DRX, antenna 310 is used for receiving 5G signals and transmitting and receiving 4G signals, specifically, antenna 310 is used for receiving 5G signals by MIMO.
Antenna 308 and antenna 310 support both the 4G communication mode and the 5G communication mode, and antenna 309 supports the 5G communication mode, then antenna 308 is a first antenna, antenna 310 is a second antenna, and antenna 309 is a third antenna. As shown in fig. 3, the bold line represents the EN-DC dual connection.
As shown in fig. 4, fig. 4 shows a radio frequency circuit provided by another embodiment of the present application, which is different from fig. 3 only in the functions of an antenna 308 and an antenna 309, specifically, in the radio frequency circuit shown in fig. 4, the antenna 308 is used for transmitting and receiving a 5G signal, specifically, the antenna 308 is used for receiving a 5G signal by PRX, the antenna 309 is used for receiving a 5G signal and receiving a 4G signal, specifically, the antenna 309 is used for receiving a 5G signal and receiving a 4G signal by DRX.
In the rf circuit shown in fig. 4, the antenna 309 and the antenna 310 support both the 4G communication mode and the 5G communication mode, and the antenna 308 supports the 5G communication mode, then the antenna 309 is a first antenna, the antenna 310 is a second antenna, and the antenna 308 is a third antenna. Similarly, the bold lines shown in fig. 4 represent EN-DC dual connections.
In the radio frequency circuits shown in fig. 3 and 4, the functions of the antennas and the supported communication modes are only two examples, and in practical application, the functions of the antennas and the supported communication modes may be set according to practical requirements, and specifically, the connection relationships between the antennas and the main set receiving module 302, the diversity receiving module 303, and the mimo receiving duplexer integrated module 304 may be set by turning on or off the switching device 301. For example, as shown in fig. 3, the antenna 308 is conducted with the mimo duplexer assembly 304 through the switching device 301, so that the antenna 308 has a function of transmitting 4G signals.
In addition, it should be noted that 4G or 5G signals can be received by multiple antennas, but there is usually one antenna for transmitting 4G or 5G signals, for example, in fig. 3, the antenna 310 is used for transmitting 4G signals, and both the antenna 308 and the antenna 310 can receive 4G signals.
S202: determining, by the plurality of antennas, an antenna that supports the first communication mode as an alternative antenna.
As an embodiment, the alternative antennas are a first antenna and a second antenna. Specifically, for the radio frequency circuit shown in fig. 3, the alternative antennas are antenna 308 and antenna 310, and for the radio frequency circuit shown in fig. 4, the alternative antennas are antenna 309 and antenna 310.
The first communication mode is a 4G mode, and the antenna of the first communication mode is a 4G antenna, that is, an LTE frequency band antenna. Then a 4G antenna is determined by antenna 308 and antenna 310 for the rf circuit shown in fig. 3 and a 4G antenna is determined by antenna 309 and antenna 310 for the rf circuit shown in fig. 4.
S203: and acquiring the strength of the signal of the first communication mode transmitted by each antenna in the alternative antennas.
Specifically, the strength of the first antenna transmitting the 4G signal and the strength of the second antenna transmitting the 4G signal are acquired. The embodiment of determining the strength of the transmitted 4G signal may be to determine the strength of the first antenna for receiving the 4G signal and determine the strength of the second antenna for receiving the 4G signal, as shown in fig. 3, where the antennas 308 and 310 are both used for receiving the 4G signal, and then detect the strength of the 4G signal received by the antennas 308 and 310, and since the strength of the received signal can reflect the strength of the transmitted signal, the strength of the 4G signal of the received signal may be taken as the strength of the transmitted 4G signal.
S204: and taking the antenna with the strength meeting the specified condition as a first target antenna in the alternative antennas.
In an embodiment, if the strength satisfying the specified condition is that the strength is greater than a specified value, and the specified value may be a preset strength value, then the embodiment that the antenna of the candidate antennas whose strength satisfies the specified condition is used as the first target antenna may be that the antenna of the candidate antennas whose strength is greater than the specified value is used as the first target antenna.
As another embodiment, if the strength satisfying the specified condition may be the maximum strength, then the embodiment that the antenna with the strength satisfying the specified condition among the alternative antennas is taken as the first target antenna may be that the antenna with the maximum strength among the alternative antennas is taken as the first target antenna. Specifically, the strength of the 4G signal transmitted by the first antenna is obtained and recorded as a first strength, the strength of the 4G signal transmitted by the second antenna is obtained and recorded as a second strength, whether the first strength is greater than the second strength is judged, if so, the first antenna is taken as a first target antenna, and otherwise, the second antenna is taken as a second target antenna.
S205: determining a second target antenna from the third antenna and the reference antenna.
The second target antenna is an antenna for transmitting a signal of a second communication mode, where the second communication mode is a communication mode other than the first communication mode in the 4G communication mode and the 5G communication mode, and in this embodiment, the second target antenna is an antenna for transmitting a 5G signal. The reference antenna is an antenna other than the first target antenna in the alternative antennas, for example, if the first antenna is used as the first target antenna and the reference antenna is the second antenna, the second target antenna is determined from the third antenna and the second antenna. And if the second antenna is taken as the first target antenna, the reference antenna is taken as the first antenna, and the second target antenna is determined from the third antenna and the first antenna.
Specifically, in the third antenna and the reference antenna, the manner of determining the second target antenna may refer to the manner of determining the first target antenna. In this embodiment, in the third antenna and the reference antenna, the second target antenna may be determined by obtaining the strength of the signal in the second communication mode transmitted by the third antenna, which is recorded as a third strength, obtaining the strength of the signal in the second communication mode transmitted by the reference antenna, which is recorded as a fourth strength, and using an antenna corresponding to the maximum strength of the third strength and the fourth strength as the second target antenna, that is, an antenna for transmitting a 5G signal.
The above process will be described with reference to fig. 3 and 4.
As shown in fig. 3, assume that at the present time, a 5G signal is transmitted via antenna 308, a 4G signal is transmitted via antenna 310, when the antenna for transmitting the 4G signal collides with the antenna for transmitting the 5G signal, for example, when a 4G signal antenna switching operation occurs, resulting in the 4G antenna being switched to antenna 308, alternatively, when an operation of antenna switching for 5G signals occurs, resulting in the 5G antenna being switched to the antenna 310, the switching device 301 compares the performance of the antenna 308 and the antenna 310 for transmitting 4G signals, specifically, since the antennas 308 and 310 are already configured to receive 4G signals, it is possible to improve the quality of the 4G signals by comparing the performance of the antennas 308 and 310 to receive 4G signals, in addition, it is also possible to try to transmit the 4G signal through the antennas 308 and 310 by means of blind cut to obtain the performance of the antennas 308 and 310 for transmitting the 4G signal.
Wherein the property may be at least one of a strength and a quality of the signal. Then, the antenna with the best performance among the antennas 308 and 310 is taken as the first target antenna, i.e., the antenna for transmitting signals newly configured for 4G signals. For example, of the antennas 308 and 310, the antenna 308 has better performance for transmitting 4G signals, and the antenna for transmitting 4G signals is switched from the antenna 310 to the antenna 308. Then, after configuring the transmitting antenna for the 4G signal, the antenna configuration operation for the 5G signal is performed. Specifically, compared with the performance of transmitting 5G signals by the antenna 309 and the antenna 310, the antenna with the best performance is used as the antenna for transmitting 5G signals. For example, if the performance of antenna 310 for transmitting 5G signals is better, the antenna for transmitting 5G signals is switched from antenna 308 to antenna 310, i.e. the second target antenna becomes antenna 310.
Then, after the antenna intelligent switching operation is completed, and after a specified time period, the next antenna intelligent switching operation is executed.
As shown in fig. 4, assuming that a 5G signal is transmitted through the antenna 308 and a 4G signal is transmitted through the antenna 310 at the present time, when the antenna for transmitting the 4G signal collides with the antenna for transmitting the 5G signal, the switching apparatus 301 compares the performance of the antenna 309 and the antenna 310 for transmitting the 4G signal, and then, takes the antenna with the best performance among the antenna 309 and the antenna 310 as the first target antenna, that is, the antenna for transmitting the signal newly configured for the 4G signal. For example, of the antennas 309 and 310, the antenna 309 has better performance for transmitting 4G signals, and the antenna for transmitting 4G signals is switched from the antenna 310 to the antenna 309. Then, after configuring the transmitting antenna for the 4G signal, the antenna configuration operation for the 5G signal is performed. Specifically, compared to the performance of the antennas 308 and 310 for transmitting 5G signals, the antenna with the best performance is used as the antenna for transmitting 5G signals. For example, if the performance of antenna 310 for transmitting 5G signals is better, the antenna for transmitting 5G signals is switched from antenna 308 to antenna 310, i.e. the second target antenna becomes antenna 310.
As an embodiment, the above-mentioned manner for determining the performance of the antenna for transmitting the 4G signal or the 5G signal may be obtained by the performance of the 4G signal or the 5G signal received by the antenna for receiving the 4G signal or the 5G signal, and of course, the antenna may be directly switched to transmit the 4G signal or the 5G signal by blind cutting, so as to obtain the performance of the antenna for transmitting the 4G signal or the 5G signal, and in this manner, the switching of the 4G antenna or the 5G antenna may not be necessarily performed only on the antenna for receiving the 4G signal or the 5G signal. The above-mentioned alternative antennas may also be the first antenna, the second antenna and the third antenna. That is, when it is determined that the antenna for transmitting the 4G communication mode signal collides with the antenna for transmitting the 5G communication mode signal, the first antenna, the second antenna, and the third antenna are used as the alternative antennas, and then, the best antenna among the first antenna, the second antenna, and the third antenna is selected as the antenna for the 4G signal. Then, the antenna with the best performance is selected as the antenna for the 5G signal from the remaining antennas.
Referring to fig. 5, fig. 5 illustrates an antenna control method provided in an embodiment of the present application, where an execution subject of the method may be a switching device, and specifically, the method may include: s501 to S506.
S501: the first communication mode is determined when an antenna for transmitting the 4G communication mode signal collides with an antenna for transmitting the 5G communication mode signal.
In the embodiment of the present application, the first communication mode is a 4G communication mode, and the second communication mode is a 5G communication mode. In the embodiment of the present application, the electronic device includes a radio frequency circuit, as shown in fig. 6, fig. 6 shows the radio frequency circuit provided in an embodiment of the present application, and compared with fig. 3, if the antenna 308 and the antenna 309 are applied to the EN-DC dual connection, an antenna for transmitting a 4G or 5G signal is selected from the antenna 308 and the antenna 309, as shown in fig. 6, and the switching device 301 is connected to the antenna 308 and the antenna 309. Antenna 308 is used to receive 4G signals and transmit 5G signals and receive 5G signals over PRX, and antenna 309 is used to receive 5G signals over DRX and transmit 4G signals and receive 4G signals over DRX. Thus, antenna 308 and antenna 309 both support the 4G communication mode and the 5G communication mode simultaneously.
S502: determining, by the plurality of antennas, an antenna that supports the first communication mode as an alternative antenna.
The alternative antennas include a first antenna and a second antenna. For example, as shown in FIG. 6, alternative antennas include antenna 308 and antenna 309.
S503: and acquiring the strength of the signal of the first communication mode transmitted by each antenna in the alternative antennas.
S504: and taking the antenna with the strength meeting the specified condition as a first target antenna in the alternative antennas.
The above embodiments of S503 and S504 can refer to the foregoing embodiments, and are not described herein again.
S505: a first strength of the 4G signal transmitted by the first antenna and a second strength of the 4G signal transmitted by the second antenna are obtained.
As an implementation manner, in the embodiment of the present application, a first target antenna for transmitting a 4G signal and a second target antenna for transmitting a 5G signal are disposed in a first antenna and a second antenna, and after the first target antenna is disposed first, the other antenna may be used as the second target antenna by default. For example, if the first antenna is used as the first target antenna, the second target antenna is used as the second target antenna.
Of course, it may be that after the first target antenna is configured for 4G, if the performance of the transmitted signal is not greatly different in the case where it is determined whether the 4G signal is transmitted using the first antenna or the second antenna, the configuration operation of the 5G antenna, that is, the operation of configuring the transmission antenna for 5G among the first antenna and the second antenna may be performed.
Specifically, after the first target antenna is set, a first strength of the 4G signal transmitted by the first antenna and a second strength of the 4G signal transmitted by the second antenna are obtained, where a manner of obtaining the strength may refer to the foregoing embodiment, and is not described herein again.
S506: determining a second target antenna and re-determining a first target antenna from the plurality of antennas if the first strength and the second strength are both above the first specified threshold.
Wherein the re-determined first target antenna is different from the second target antenna.
And if the first strength and the second strength are both higher than the first specified threshold, which indicates that the performances of the first antenna and the second antenna for transmitting the 4G signal are not poor, specifically selecting the first antenna or the second antenna has little influence on the transmission of the 4G signal. Thus, a second target antenna and a first target antenna may be determined and re-determined from the plurality of antennas if both the first strength and the second strength are above the first specified threshold.
And if the first strength and the second strength are not uniform to be higher than the first specified threshold, the strength of the 4G signal transmitted by the antenna with poorer performance in the first antenna and the second antenna in the specification is lower, that is, the performance of the antenna is poorer, and the performance of the antenna for 4G is better in the two antennas, the antenna intelligent switching operation of 5G is not executed, but the antenna except the first target antenna in the alternative antennas is directly used as the second target antenna, so that an antenna with poorer performance is prevented from being configured for 4G.
And if the first strength and the second strength are both higher than the first specified threshold value, acquiring the strength of the 5G signal transmitted by antennas other than the first target antenna in the alternative antennas. Specifically, at this time, antennas other than the first target antenna in the alternative antennas are marked as antennas to be selected, then the strength of the antennas to be selected for transmitting 5G signals is obtained, and if the degree of precedence is smaller than a second specified threshold, it indicates that the performance of the current 5G antenna for transmitting signals is poor under the condition that the performance of the two antennas for 4G is not too poor, and in order to avoid the performance of the 5G antenna being too poor, an antenna may be configured for 5G according to the capabilities of the first antenna and the second antenna for transmitting 5G signals.
Specifically, if the strength of the 5G signal transmitted by an antenna other than the first target antenna among the alternative antennas is less than a second specified threshold, a second target antenna is determined from the first antenna and the second antenna as an antenna for transmitting a signal of the 5G communication mode. Specifically, the second target antenna may be determined by comparing an antenna corresponding to a greater strength of the 5G signal transmitted through the first antenna and the strength of the 5G signal transmitted through the second antenna, as the second target antenna.
And taking the antenna except the second target antenna in the first antenna and the second antenna as a new first target antenna as an antenna for transmitting the signals of the 4G communication mode. For example, the 4G antenna determined in S504 is a first antenna, so that the antenna for transmitting the 5G signal is a second antenna, then, if the strength of the transmitted 4G signal of the first antenna and the second antenna is greater than a first specified threshold value, and the strength of the transmitted 5G signal of the second antenna is lower than a second threshold value, the strength of the transmitted 5G signal through the first antenna and the strength of the transmitted 5G signal through the second antenna are compared, if the strength of the first antenna is greater, the first antenna is used as the antenna for transmitting the 5G signal, and the second antenna is used again as the antenna for transmitting the 4G signal, of course, it is also possible that when the strength of the transmitted 5G signal through the first antenna and the strength of the transmitted 5G signal through the second antenna are compared regardless of whether the strengths of the first antenna and the second antenna for transmitting the 5G signal are lower than the second threshold value, the determined antenna may still be the second antenna and the antenna used to transmit the 4G signal is still the first antenna.
And if the first strength and the second strength are both higher than the first specified threshold and the strength of the 5G signal transmitted by the antenna other than the first target antenna in the alternative antennas is greater than or equal to the second specified threshold, the antenna other than the first target antenna in the alternative antennas can be used as the second target antenna, that is, the operation of intelligently switching the 5G antenna is not performed.
Specifically, the following procedure is explained in conjunction with fig. 6.
As shown in fig. 6, assuming that a 5G signal is transmitted through the antenna 308 and a 4G signal is transmitted through the antenna 309 at the present time, when the antenna for transmitting the 4G signal collides with the antenna for transmitting the 5G signal, the switching apparatus 301 compares the performance of the antenna 309 and the antenna 310 for transmitting the 4G signal, and then, takes the antenna with the best performance among the antennas 309 and 310 as the first target antenna, that is, the antenna for transmitting the signal newly configured for the 4G signal. For example, among the antennas 308 and 309, the antenna 308 has better performance for transmitting 4G signals, and the antenna for transmitting 4G signals is switched from the antenna 309 to the antenna 308. Then, after configuring the transmitting antenna for the 4G signal, the strength of the 4G signal transmitted through the antenna 308 and the antenna 309 is obtained, if both are greater than the first specified threshold, then, the strength of the 5G signal transmitted through the antenna 309 is determined, if the strength is lower than the second specified threshold, the strength of the 5G signal transmitted through the antenna 308 and the antenna 309 is determined, and if the strength of the antenna 308 is greater, the antenna for transmitting the 5G signal is switched to the antenna 308, and the antenna for transmitting the 4G signal is switched to the antenna 309.
Then, after the antenna intelligent switching operation is completed, and after a specified time period, the next antenna intelligent switching operation is executed.
Referring to fig. 7, a block diagram of an antenna control apparatus 700 according to an embodiment of the present application is shown, where the apparatus is applied to the electronic device, and the apparatus may include: a first determination unit 701, a second determination unit 702, a first switching unit 703, and a second switching unit 704.
A first determining unit 701, configured to determine a first communication mode when an antenna used for transmitting a 4G communication mode signal collides with an antenna used for transmitting a 5G communication mode signal, where the first communication mode is one of the 4G communication mode and the 5G communication mode.
A second determining unit 702, configured to determine, as an alternative antenna, an antenna supporting the first communication mode from the multiple antennas.
A first switching unit 703, configured to determine a first target antenna from the alternative antennas, as an antenna for transmitting the signal of the first communication mode.
A second switching unit 704 configured to determine a second target antenna from antennas other than the first target antenna among the plurality of antennas as an antenna for transmitting a signal of a second communication mode, the second communication mode being a communication mode other than the first communication mode among the 4G communication mode and the 5G communication mode.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 8, a block diagram of an antenna control apparatus 800 according to an embodiment of the present application is shown, where the apparatus is applied to the electronic device, and the apparatus may include: a first determination unit 810, a second determination unit 820, a first switching unit 830, and a second switching unit 840.
A first determining unit 810 for determining a first communication mode when an antenna for transmitting a 4G communication mode signal collides with an antenna for transmitting a 5G communication mode signal, the first communication mode being one of the 4G communication mode and the 5G communication mode.
Specifically, the first determining unit 810 is further configured to take the 4G communication mode as the first communication mode when an antenna for transmitting a 4G communication mode signal collides with an antenna for transmitting a 5G communication mode signal.
A second determining unit 820, configured to determine, as an alternative antenna, an antenna that supports the first communication mode from the multiple antennas.
A first switching unit 830, configured to determine a first target antenna from the alternative antennas as an antenna for transmitting the signal of the first communication mode.
Further, the first switching unit 830 is further configured to obtain the strength of the signal in the first communication mode transmitted through each antenna of the alternative antennas; and taking the antenna with the strength meeting the specified condition as a first target antenna in the alternative antennas.
A second switching unit 840 configured to determine a second target antenna from antennas other than the first target antenna among the plurality of antennas as an antenna for transmitting a signal of a second communication mode, the second communication mode being a communication mode other than the first communication mode from among the 4G communication mode and the 5G communication mode.
As an embodiment, the plurality of antennas includes a first antenna, a second antenna and a third antenna, the first antenna and the second antenna both support the 4G communication mode and the 5G communication mode simultaneously, the third antenna supports the 5G communication mode, and the alternative antenna includes the first antenna and the second antenna. The second switching unit 840 is further configured to determine a second target antenna from the third antenna and a reference antenna, where the reference antenna is an antenna other than the first target antenna in the alternative antenna.
As another embodiment, the plurality of antennas includes a first antenna and a second antenna, the first antenna and the second antenna both support the 4G communication mode and the 5G communication mode simultaneously, and the alternative antenna includes the first antenna and the second antenna. The second switching unit 840 includes an acquisition subunit 841 and a determination subunit 842.
The obtaining sub-unit 841 is configured to obtain a first strength of the 4G signal transmitted through the first antenna and a second strength of the 4G signal transmitted through the second antenna.
The determining subunit 842 is configured to determine a second target antenna from the plurality of antennas and re-determine a first target antenna if the first strength and the second strength are both higher than the first specified threshold, where the re-determined first target antenna is different from the second target antenna.
Further, the determining subunit 842 is further configured to, if the first strength and the second strength are not equal to or higher than the first specified threshold, take an antenna other than the first target antenna in the alternative antennas as a second target antenna.
Further, the determining subunit 842 is further configured to, if both the first strength and the second strength are higher than the first specified threshold, obtain the strength of the 5G signal transmitted by the antenna other than the first target antenna in the alternative antennas; determining a second target antenna from the first antenna and the second antenna as an antenna for transmitting a signal of a 5G communication mode if the strength of the 5G signal is less than a second specified threshold; and taking the antenna except the second target antenna in the first antenna and the second antenna as a new first target antenna as an antenna for transmitting the signals of the 4G communication mode.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 9, a block diagram of an electronic device according to an embodiment of the present application is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, radio frequency circuitry 130, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform the methods as described in the foregoing method embodiments. In the above embodiments, a processor is connected to the switching device of the radio frequency circuit, and the processor is configured to instruct the switching device to perform the above method.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
Referring to fig. 10, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 1000 has stored therein program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 1000 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 1000 includes a non-volatile computer-readable storage medium. The computer readable storage medium 1000 has storage space for program code 1010 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 1010 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. An antenna control method is applied to an electronic device, wherein the electronic device comprises a plurality of antennas, the plurality of antennas comprise at least two antennas supporting a 4G communication mode and at least two antennas supporting a 5G communication mode, and at least one common antenna exists in the at least two antennas supporting the 4G communication mode and the at least two antennas supporting the 5G communication mode; the method comprises the following steps:
when the electronic equipment is connected with a 4G communication network and a 5G communication network simultaneously and an antenna used for transmitting a 4G communication mode signal and an antenna used for transmitting a 5G communication mode signal are the same antenna, detecting that a video application program runs in a background at present;
determining the content of a video played by the video application program when the video application program operates in a foreground at the last time, and taking the content as reference video content;
determining a reference playing progress of the reference video content;
if the electronic equipment is determined to be in a high data throughput state according to the reference playing progress, taking the 5G communication mode as a first communication mode;
determining, by the plurality of antennas, an antenna that supports the first communication mode as an alternative antenna;
determining a first target antenna from the alternative antennas as an antenna for transmitting signals of the first communication mode;
determining a second target antenna from antennas other than the first target antenna among the plurality of antennas as an antenna for transmitting a signal of a second communication mode, the second communication mode being a communication mode other than the first communication mode among the 4G communication mode and the 5G communication mode.
2. The method of claim 1, further comprising:
when the electronic equipment is connected with a 4G communication network and a 5G communication network simultaneously, and an antenna used for transmitting a 4G communication mode signal and an antenna used for transmitting a 5G communication mode signal are the same antenna, if the electronic equipment is determined to be in a moving state, the 4G communication mode is taken as a first communication mode.
3. The method of claim 2, wherein the plurality of antennas comprises a first antenna, a second antenna, and a third antenna, wherein the first antenna and the second antenna each support the 4G communication mode and the 5G communication mode simultaneously, wherein the third antenna supports the 5G communication mode, and wherein the alternative antenna comprises the first antenna and the second antenna;
determining a second target antenna from antennas other than the first target antenna of the plurality of antennas, comprising:
and determining a second target antenna from the third antenna and a reference antenna, wherein the reference antenna is an antenna other than the first target antenna in the alternative antennas.
4. The method of claim 2, wherein the plurality of antennas comprises a first antenna and a second antenna, wherein the first antenna and the second antenna both support the 4G communication mode and the 5G communication mode simultaneously, and wherein the alternative antenna comprises the first antenna and the second antenna;
determining a second target antenna from antennas other than the first target antenna of the plurality of antennas, comprising:
acquiring a first strength of the 4G signal transmitted through the first antenna and a second strength of the 4G signal transmitted through the second antenna;
determining a second target antenna and re-determining a first target antenna from the at least two antennas if the first and second strengths are both above a first specified threshold, wherein the re-determined first target antenna is different from the second target antenna.
5. The method of claim 4, further comprising:
and if the first intensity and the second intensity are not uniform and are higher than the first designated threshold value, taking antennas except the first target antenna in the alternative antennas as second target antennas.
6. The method of claim 4, wherein determining a second target antenna from among antennas other than the first target antenna from among the at least two antennas if the first strength and the second strength are both above the first specified threshold comprises:
if the first strength and the second strength are both higher than the first specified threshold, acquiring the strength of 5G signals transmitted by antennas other than the first target antenna in the alternative antennas;
determining a second target antenna from the first antenna and the second antenna as an antenna for transmitting a signal of a 5G communication mode if the strength of the 5G signal is less than a second specified threshold;
and taking the antenna except the second target antenna in the first antenna and the second antenna as a new first target antenna as an antenna for transmitting the signals of the 4G communication mode.
7. The method according to any of claims 1-6, wherein said determining a first target antenna from said alternative antennas comprises:
acquiring the strength of a signal of a first communication mode transmitted by each antenna in the alternative antennas;
and taking the antenna with the strength meeting the specified condition as a first target antenna in the alternative antennas.
8. An antenna control apparatus applied to an electronic device including a plurality of antennas, the plurality of antennas including at least two antennas supporting a 4G communication mode and at least two antennas supporting a 5G communication mode, wherein at least one common antenna is present in the at least two antennas supporting the 4G communication mode and the at least two antennas supporting the 5G communication mode, the antenna control apparatus comprising:
the first determining unit is used for detecting that a video application program runs in the background when the electronic equipment is connected with a 4G communication network and a 5G communication network simultaneously and an antenna used for transmitting a 4G communication mode signal and an antenna used for transmitting a 5G communication mode signal are the same antenna; determining the content of a video played by the video application program when the video application program operates in a foreground at the last time, and taking the content as reference video content; determining a reference playing progress of the reference video content; if the electronic equipment is determined to be in a high data throughput state according to the reference playing progress, taking the 5G communication mode as a first communication mode;
a second determining unit, configured to determine, as an alternative antenna, an antenna that supports the first communication mode from among the plurality of antennas;
a first switching unit for determining a first target antenna from the alternative antennas as an antenna for transmitting a signal of the first communication mode;
a second switching unit configured to determine a second target antenna from antennas other than the first target antenna among the plurality of antennas as an antenna for transmitting a signal of a second communication mode, the second communication mode being a communication mode other than the first communication mode among the 4G communication mode and the 5G communication mode.
9. An electronic device, comprising: the antenna switching device comprises a switching device and a plurality of antennas, wherein the plurality of antennas comprise at least two antennas supporting a 4G communication mode and at least two antennas supporting a 5G communication mode, and at least one shared antenna exists in the at least two antennas supporting the 4G communication mode and the at least two antennas supporting the 5G communication mode; the switching device is adapted to perform the method of any of claims 1-7.
10. A computer-readable medium having stored program code executable by a processor, the program code causing the processor to perform the method of any one of claims 1-7 when executed by the processor.
CN202010611551.7A 2020-06-29 2020-06-29 Antenna control method, antenna control device, electronic equipment and computer readable medium Active CN111740748B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010611551.7A CN111740748B (en) 2020-06-29 2020-06-29 Antenna control method, antenna control device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010611551.7A CN111740748B (en) 2020-06-29 2020-06-29 Antenna control method, antenna control device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN111740748A CN111740748A (en) 2020-10-02
CN111740748B true CN111740748B (en) 2022-03-18

Family

ID=72653676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010611551.7A Active CN111740748B (en) 2020-06-29 2020-06-29 Antenna control method, antenna control device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN111740748B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301593B (en) * 2021-06-17 2023-05-26 展讯通信(上海)有限公司 Dual-card mobile terminal performance optimization device and method and terminal equipment
CN114124143B (en) * 2021-12-02 2023-05-05 Oppo广东移动通信有限公司 Radio frequency system and customer premises equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8467363B2 (en) * 2011-08-17 2013-06-18 CBF Networks, Inc. Intelligent backhaul radio and antenna system
CN109873245A (en) * 2017-12-04 2019-06-11 惠州硕贝德无线科技股份有限公司 A kind of antenna rf system that 4G antenna mutually switches with 5G antenna
KR102482667B1 (en) * 2018-04-16 2022-12-29 삼성전자주식회사 Electronic device and method for performin communication in designated frequency band and controlling a plurality of antennas
CN109361444B (en) * 2018-11-30 2021-08-24 维沃移动通信有限公司 Transmitting antenna switching method and terminal equipment
CN109831223B (en) * 2019-03-21 2021-07-02 Oppo广东移动通信有限公司 Antenna multiplexing radio frequency device and terminal
CN110212965B (en) * 2019-06-25 2022-05-17 Oppo广东移动通信有限公司 Antenna switching method and related product
CN110266329B (en) * 2019-07-08 2021-09-10 Oppo(重庆)智能科技有限公司 Radio frequency circuit, electronic equipment and radio frequency circuit control method

Also Published As

Publication number Publication date
CN111740748A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN110383870B (en) Radio frequency resource processing method and terminal
US9271322B2 (en) Supporting simultaneous communication interfaces
CN109274407B (en) Data transmission method, device, electronic equipment and storage medium
CN111740748B (en) Antenna control method, antenna control device, electronic equipment and computer readable medium
CN109450851B (en) Device connection method, electronic device, and computer-readable medium
CN109152016B (en) Communication method and device
CN110299930B (en) Antenna switching method and related equipment
CN112272404A (en) Network registration method, device, storage medium and electronic equipment
CN113114300B (en) Electronic equipment and control method
US8649788B1 (en) Dynamic wireless transceiver selection in a wireless communication device
EP3258617B1 (en) Antenna configuration method and terminal
CN112867069A (en) Interference processing method and device, storage medium and electronic equipment
CN112351461B (en) WiFi network switching method, wiFi network switching device, terminal and storage medium
US10608692B1 (en) Dual receivers for advertisement scans
CN110198183B (en) Antenna switching method and related equipment
CN116437329A (en) Data transmission method, device, storage medium and terminal equipment
CN109565826B (en) Data transmission method and related product
JP2024518516A (en) METHOD FOR DETERMINING MEASUREMENT GAP, TERMINAL AND NETWORK SIDE DEVICE
US8718705B2 (en) Dual mode communications device and method of improving data rate thereof
CN110710315B (en) Method for reporting capability of terminal and related product
CN114584809A (en) Data transmission method and system and electronic equipment
CN116471707B (en) Method, device and system for connecting router
CN115173885B (en) Method and device for switching access, electronic equipment and computer readable medium
CN111262964B (en) Split type mobile terminal, data transmission method and computer readable storage medium
US8483682B1 (en) Method and system for acquiring a wireless communication channel in a wireless communication 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
GR01 Patent grant
GR01 Patent grant