Antenna selection method and device

By selecting a combination of omnidirectional and directional antennas in electronic devices and selecting them based on antenna status information, the problem of poor communication performance of electronic devices in uplink transmission is solved, and the uplink random access performance and uplink service gain is improved.

CN115514399BActive Publication Date: 2025-08-29HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110632733.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-07
Publication Date
2025-08-29
Estimated Expiration
2041-06-07

AI Technical Summary

Technical Problem

In electronic devices, how to choose the right antenna to improve communication performance, especially in uplink transmission, taking into account the performance of uplink random access and uplink service gain.

Method used

By using a combination of omnidirectional antenna and directional antenna, by obtaining the status information of the candidate antenna, X first mode antennas (omnidirectional antennas) and Y second mode antennas (directional antennas) are selected to improve data transmission capabilities and ensure effective access during the uplink transmission process, and avoid data packet loss.

Benefits of technology

It improves the data transmission capability of the uplink, ensures effective access to uplink services and high-speed data transmission, takes into account the uplink random access performance and uplink service gain, and avoids the delay caused by antenna switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115514399B_ABST
    Figure CN115514399B_ABST
Patent Text Reader

Abstract

The present application provides an antenna selection method and device; it relates to the field of communication technology, and by setting an omnidirectional antenna and a directional antenna in the uplink antenna, it is possible to take into account both the effectiveness of uplink random access and the gain of uplink services. The method is applied in an electronic device, and the method includes: obtaining the states corresponding to multiple candidate antennas of multiple radio frequency channels, determining X first-mode antennas and Y second-mode antennas according to the states corresponding to the multiple candidate antennas, and then receiving information through the X first-mode antennas and Y second-mode antennas. Among them, one radio frequency channel corresponds to one or more candidate antennas; X and Y are both positive integers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an antenna selection method and device. Background Art

[0002] Electronic devices can transmit and receive signals through antennas. To improve the transmission and reception performance of electronic devices, current electronic devices can be equipped with multiple antennas, and one or more target antennas are selected from the multiple antennas for receiving or transmitting signals.

[0003] Considering that different antennas may have different transceiver performance, the communication performance of an electronic device may vary when different antennas are selected for reception or transmission. Therefore, how to select an antenna for communication among multiple antennas provided in an electronic device in order to enhance the communication performance of the electronic device has become a technical problem that needs to be solved urgently. Summary of the Invention

[0004] The present invention provides an antenna selection method and apparatus that enables a device to configure an omnidirectional antenna and a directional antenna in an uplink antenna, thereby balancing the performance of uplink random access and uplink service gain.

[0005] In a first aspect, an embodiment of the present application provides an antenna selection method, which is applied to an electronic device or a component capable of realizing wireless transceiver functions (such as, but not limited to, a chip system, etc.). The method includes: obtaining the states corresponding to multiple candidate antennas of multiple radio frequency channels, determining X first-mode antennas and Y second-mode antennas according to the states corresponding to the multiple candidate antennas, and then receiving information through the X first-mode antennas and Y second-mode antennas. Among them, one radio frequency channel corresponds to one or more candidate antennas; X and Y are both positive integers.

[0006] The first pattern antenna may be an omnidirectional antenna, and the second pattern antenna may be a directional antenna. The above method, by using a directional antenna during uplink transmission, helps improve the data transmission capability of the uplink of the service terminal, ensures effective access of the uplink service terminal, large-capacity data transmission, and high-speed data transmission, avoids data packet loss, and ensures uplink service gain as much as possible. Furthermore, an omnidirectional antenna can also be used during uplink transmission, which can improve the performance of terminal uplink random access and ensure connection with multiple terminals. In other words, the antenna selection method provided in the embodiment of the present application can take into account both uplink service gain and uplink random access performance.

[0007] In one possible design, for a single candidate antenna, the state of the candidate antenna includes the directional state of the candidate antenna and the communication parameters of the candidate antenna. The directional state of the candidate antenna includes a directional state and an omnidirectional state. The communication parameters of the candidate antenna include any one or more of the following parameters: channel state information CSI, received signal strength indication RSSI, and signal-to-noise ratio SNR. The communication parameters of the candidate antenna are used to characterize the quality of the channel corresponding to the candidate antenna.

[0008] It should be noted that the same antenna can be switched between an omnidirectional state and a directional state, for example, by switching on a switch or by beamforming.

[0009] In one possible design, determining X first-mode antennas and Y second-mode antennas according to states corresponding to a plurality of candidate antennas includes:

[0010] If there is a connected first pattern antenna and a connected second pattern antenna among the multiple candidate antennas, it is determined that the X first pattern antennas include the connected first pattern antenna and the Y second pattern antennas include the connected second pattern antenna.

[0011] Among them, if there is a connected first mode antenna in multiple radio frequency channels and a connected second mode antenna, it means that the first mode antenna and the second mode antenna are connected in the radio frequency channel. Then, the electronic device can continue to maintain the connection of the above-mentioned first mode antenna and the second mode antenna during uplink transmission. In this way, the antenna used for uplink transmission may include the first mode antenna and the second mode antenna, which can take into account the performance of uplink random access and uplink service gain. In this implementation method, the electronic device does not need to switch antennas, which can avoid the transmission and reception delay caused by switching antennas.

[0012] In one possible design, determining X first-mode antennas and Y second-mode antennas according to states corresponding to a plurality of candidate antennas includes:

[0013] If a connected first-mode antenna exists among the multiple candidate antennas and a connected second-mode antenna does not exist, the operating mode of a first antenna operating in the multiple candidate antennas that is operating in the first mode is switched to the second mode, where the first antenna is an antenna of the first mode among the multiple candidate antennas whose channel quality is lower than a first threshold. The Y antennas operating in the second mode include the first antenna, and the X antennas operating in the first mode include antennas among the multiple candidate antennas excluding the first antenna.

[0014] When there are connected directional antennas among multiple candidate antennas and there are no connected omnidirectional antennas, considering that the uplink random access performance needs to be improved for uplink transmission, the router can switch some of the connected directional antennas to omnidirectional antennas, so that the antennas used for uplink transmission include directional antennas and omnidirectional antennas. Optionally, for a directional antenna whose channel quality is less than a first threshold (the channel quality is poor), the router switches the directional antenna to an omnidirectional antenna. For a directional antenna with better channel quality, the router can keep the directional antenna connected and receive uplink information through the directional antenna. In this way, due to the better channel quality of the uplink directional antenna, the uplink service gain can be improved.

[0015] In one possible design, determining X first-mode antennas and Y second-mode antennas according to states corresponding to a plurality of candidate antennas includes:

[0016] If a connected second-mode antenna exists among the multiple candidate antennas and a connected first-mode antenna does not exist, the operating mode of a second antenna operating in the second mode among the multiple candidate antennas is switched to the first mode, where the second antenna is a second-mode antenna among the multiple candidate antennas whose channel quality is lower than a second threshold. The X first-mode antennas include the second antenna, and the Y second-mode antennas include antennas among the multiple candidate antennas excluding the second antenna.

[0017] In one possible design, the number of second-mode antennas and / or first-mode antennas in a receiving antenna within a period of time can be set, including setting the number of second-mode antennas in a receiving antenna within a period of time, setting the number of first-mode antennas in a receiving antenna within a period of time, or setting the number of second-mode antennas and the number of first-mode antennas in a receiving antenna within a period of time. The set number can be a range of numbers, or a minimum number, a maximum number, etc., and this embodiment of the application does not limit this.

[0018] As a possible implementation, when the number of second-mode antennas used for receiving signals does not reach a preset number, the router may select a second-mode antenna based on the signal quality of the antenna.

[0019] As a possible implementation manner, when the number of first-mode antennas used for receiving signals does not reach a preset number, the router may select first-mode antennas based on the signal quality of the antennas.

[0020] As a possible implementation, if a connected first-mode antenna and a connected second-mode antenna exist among the multiple candidate antennas, and the number of connected second-mode antennas meets a preset condition, it is determined that the X first-mode antennas include the connected first-mode antenna, and the Y second-mode antennas include the connected second-mode antenna.

[0021] As a possible implementation, if there are connected first-mode antennas and connected second-mode antennas among the multiple candidate antennas, and the number of connected first-mode antennas and the number of connected second-mode antennas meet a preset condition (for example, the condition is: the number of connected second-mode antennas is greater than the number of connected first-mode antennas), then it is determined that the X first-mode antennas include the connected first-mode antenna, and the Y second-mode antennas include the connected second-mode antenna.

[0022] As a possible implementation, if a connected first-mode antenna and a connected second-mode antenna exist among the multiple candidate antennas, the number of connected second-mode antennas does not meet a preset condition, and the number of connected first-mode antennas is at least two, then the second first-mode antenna among the connected first-mode antennas is switched to the second second-mode antenna. The Y second-mode antennas include the connected second-mode antenna and the second second-mode antenna, and the X first-mode antennas include the connected first-mode antennas excluding the second first-mode antenna.

[0023] In a second aspect, the present application provides an antenna selection device, which may be an electronic device or a component capable of implementing the functions of an electronic device (such as a chip system), and the device includes:

[0024] An acquisition module, configured to acquire states corresponding to multiple candidate antennas of multiple radio frequency channels, wherein one radio frequency channel corresponds to one or more candidate antennas;

[0025] A determination module, configured to determine X first-mode antennas and Y second-mode antennas according to states corresponding to the plurality of candidate antennas; X and Y are both positive integers;

[0026] The receiving module is configured to receive information through X first-mode antennas and Y second-mode antennas.

[0027] In one possible design, for a single candidate antenna, the state of the candidate antenna includes the directional state of the candidate antenna (or working state) and the communication parameters of the candidate antenna. The directional state of the candidate antenna includes the second mode state and the first mode state. The communication parameters of the candidate antenna include any one or more of the following parameters: channel state information CSI, received signal strength indication RSSI, and signal-to-noise ratio SNR. The communication parameters of the candidate antenna are used to characterize the quality of the channel corresponding to the candidate antenna.

[0028] In one possible design, a determination module, configured to determine X first-mode antennas and Y second-mode antennas based on states corresponding to a plurality of candidate antennas, includes:

[0029] If there is a connected first-mode antenna and a connected second-mode antenna among the multiple candidate antennas, determining that the X first-mode antennas include the connected first-mode antenna and the Y second-mode antennas include the connected second-mode antenna.

[0030] In one possible design, a determination module, configured to determine X first-mode antennas and Y second-mode antennas based on states corresponding to a plurality of candidate antennas, includes:

[0031] If a connected first-mode antenna exists among the multiple candidate antennas and a connected second-mode antenna does not exist, switching a first omnidirectional antenna among the multiple candidate antennas to a first directional antenna, where the first omnidirectional antenna is a first-mode antenna among the multiple candidate antennas whose channel quality is lower than a first threshold, wherein the Y second-mode antennas include the first directional antenna, and the X first-mode antennas include antennas among the multiple candidate antennas excluding the first omnidirectional antenna.

[0032] In one possible design, a determination module, configured to determine X first-mode antennas and Y second-mode antennas based on states corresponding to a plurality of candidate antennas, includes:

[0033] If a connected second-mode antenna exists among the multiple candidate antennas and a connected first-mode antenna does not exist, the operating mode of a second antenna operating in the second mode among the multiple candidate antennas is switched to the first mode, where the second antenna is a second-mode antenna among the multiple candidate antennas whose channel quality is lower than a second threshold. The X first-mode antennas include the second antenna, and the Y second-mode antennas include antennas among the multiple candidate antennas excluding the second antenna.

[0034] In one possible design, the number of second-mode antennas and / or first-mode antennas in a receiving antenna within a period of time can be set, including setting the number of second-mode antennas in a receiving antenna within a period of time, setting the number of first-mode antennas in a receiving antenna within a period of time, or setting the number of second-mode antennas and the number of first-mode antennas in a receiving antenna within a period of time. The set number can be a range of numbers, or a minimum number, a maximum number, etc., and this embodiment of the application does not limit this.

[0035] As a possible implementation, when the number of second-mode antennas for receiving signals does not reach a preset number, the determination module may be configured to determine the second-mode antennas based on signal quality of the antennas.

[0036] As a possible implementation manner, when the number of first-mode antennas used for receiving signals does not reach a preset number, the determination module may be configured to select first-mode antennas based on signal quality of the antennas.

[0037] As a possible implementation manner, the determination module is further configured to, if a connected first-mode antenna and a connected second-mode antenna exist among the multiple candidate antennas, and the number of connected second-mode antennas meets a preset condition, determine that the X first-mode antennas include the connected first-mode antenna, and the Y second-mode antennas include the connected second-mode antenna.

[0038] As a possible implementation manner, the determination module is further configured to determine that the X first-mode antennas include the connected first-mode antenna, and the Y second-mode antennas include the connected second-mode antenna, if there are connected first-mode antennas and connected second-mode antennas among the multiple candidate antennas, and the number of connected first-mode antennas and the number of connected second-mode antennas meet a preset condition (for example, the condition is that the number of connected second-mode antennas is greater than the number of connected first-mode antennas).

[0039] As a possible implementation, the determination module is further configured to, if a connected first-mode antenna and a connected second-mode antenna are present among the multiple candidate antennas, the number of connected second-mode antennas does not meet a preset condition, and the number of connected first-mode antennas is at least two, switch the second first-mode antenna among the connected first-mode antennas to the second second-mode antenna. The Y second-mode antennas include the connected second-mode antenna and the second second-mode antenna, and the X first-mode antennas include the connected first-mode antennas excluding the second first-mode antenna.

[0040] In a third aspect, the present application provides an antenna selection device that implements any of the antenna selection methods described in the first aspect. This functionality can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functionality.

[0041] In a fourth aspect, an antenna selection device is provided, comprising: a processor and a memory; the memory is used to store computer-executable instructions, and when the antenna selection device is running, the processor executes the computer-executable instructions stored in the memory, so that the antenna selection device performs the antenna selection method as described in any one of the first aspects above.

[0042] In a fifth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the computer-readable storage medium is run on a computer, the computer can execute the antenna selection method of any one of the above-mentioned first aspects.

[0043] In a sixth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the antenna selection method according to any one of the first aspects.

[0044] In a seventh aspect, a circuit system is provided, the circuit system including a processing circuit, the processing circuit being configured to execute the antenna selection method as described in any one of the first aspects above.

[0045] In an eighth aspect, a chip is provided, comprising a processor, the processor being coupled to a memory, the memory storing program instructions, and implementing any one of the antenna selection methods of the first aspect when the program instructions stored in the memory are executed by the processor.

[0046] Among them, the technical effects brought about by any design method in the second to eighth aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of a scenario of an antenna selection method in the prior art;

[0048] Figure 2 A schematic diagram of the system architecture provided in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0050] Figure 4 、 Figure 5 A schematic diagram of the structure of the radio frequency channel provided in an embodiment of the present application;

[0051] Figure 6A 、 Figure 6B 、 Figure 6C A schematic diagram of a scenario of the antenna selection method provided in an embodiment of the present application;

[0052] Figure 7-11 A schematic diagram of a scenario of the antenna selection method provided in an embodiment of the present application;

[0053] Figures 12A-12D A schematic diagram of a scenario of the antenna selection method provided in an embodiment of the present application;

[0054] Figure 13 、 Figure 14 A schematic diagram of a scenario of the antenna selection method provided in an embodiment of the present application;

[0055] Figure 15 A flowchart of an antenna selection method according to an embodiment of the present application;

[0056] Figure 16 A schematic diagram of the structure of the antenna selection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] The terms "first" and "second" and so on in the specification and drawings of this application are used to distinguish different objects, or to distinguish different treatments of the same object, rather than to describe the specific order of objects. "At least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. For example, A / B can mean A or B.

[0058] Furthermore, the terms "including," "having," and any variations thereof, as used in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to the process, method, product, or apparatus.

[0059] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being more preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0060] In the specification and drawings of this application, “of”, “corresponding”, “relevant” and “corresponding” may sometimes be used interchangeably. It should be pointed out that when the distinction is not emphasized, the meanings they intend to express are consistent.

[0061] First, the technical terms involved in the embodiments of this application are introduced:

[0062] According to the antenna's radiation or reception capabilities in different directions of space, the antenna may include an omnidirectional antenna or a directional antenna.

[0063] Directional antennas: These antennas have a certain degree of directionality and can enhance signals in one or more specific directions. These antennas have the following characteristics: their radiation pattern is within a certain angle range, and their gain in a specific direction is higher than in other directions.

[0064] Directional antennas are generally used in scenarios with small coverage and long communication distances. For example, electronic devices can communicate with other electronic devices in a specific direction through high-gain directional antennas. For example, a directional antenna can be a millimeter wave antenna (or a millimeter wave array antenna). Due to the large loss of millimeter waves, millimeter wave antennas usually appear in array form to ensure high gain. Millimeter wave antennas are often used for point-to-point high-speed data transmission. It should be understood that the directional transmission millimeter wave antenna can operate at any frequency such as 28 GHz, 60 GHz, 45 GHz, 38 GHz, 73 GHz, etc.

[0065] Exemplarily, directional antennas include but are not limited to array antennas, Yagi antennas, etc. It should be noted that, in some cases, array antennas can also constitute omnidirectional antennas.

[0066] Omnidirectional antenna: An antenna with no or weak directionality. Features of an omnidirectional antenna include, but are not limited to, uniform radiation across 360° and low gain.

[0067] Omnidirectional antennas are generally used in scenarios where coverage is large and communication distance is short. For example, an electronic device can communicate with multiple electronic devices that are relatively close to each other through an omnidirectional antenna.

[0068] Exemplarily, the omnidirectional antenna includes but is not limited to an electric dipole antenna, a microstrip antenna, and the like.

[0069] It should be noted that, in some cases, the array antenna can constitute a directional antenna or an omnidirectional antenna.

[0070] In some solutions, omnidirectional antennas and directional antennas can be applied to wireless communication systems. Wireless communication systems include, but are not limited to, wireless fidelity (Wi-Fi) systems and wireless cellular communication systems. Wireless cellular communication systems include, but are not limited to, third-generation (3G) mobile communication systems, fourth-generation (4G) mobile communication systems, fifth-generation (5G) mobile communication systems, or future mobile communication systems. Taking the application to a Wi-Fi system as an example, the Wi-Fi system may include an access point (AP) and a station (STA). An access point may be, for example, a router, and a station may be, for example, a mobile phone, a computer, or other terminal. Both access points and stations may be equipped with directional antennas and omnidirectional antennas to improve communication performance.

[0071] Typically, in a Wi-Fi system, multiple stations can randomly access an access point in the uplink direction from a station to an access point. Furthermore, due to factors such as the station's transmit power, the random access of stations is limited accordingly. To ensure that stations can perform effective random access via the uplink, such as Figure 1 In (b), the antenna of each receiving channel of the access point is the first mode antenna (for example, omnidirectional antenna) during uplink communication. In this way, stations in all directions can initiate effective random access to the access point. In the downlink direction from the access point to the station, since service data needs to be sent to the station through the link, and the service data volume is large, such as Figure 1 As shown in (a), the access point uses a second pattern antenna (eg, a directional antenna) for data transmission to enhance the signal received by the station.

[0072] Although the current access point antenna selection scheme can improve the success rate of site uplink random access through omnidirectional antennas, with the development of fifth-generation mobile communications, in order to meet the requirements of high speed, low latency, and large capacity, uplink services may also have large data volumes (for example, live streaming, virtual reality device interaction, large-capacity file uploads, high-definition video calls, etc.). For example, when users use virtual reality devices to play interactive games, they need large-capacity data and high-speed, low-latency data transmission to ensure smooth and uninterrupted user experience. Or, when users are live streaming, they need to upload data in real time for sharing. The omnidirectional antenna uplink transmission scheme cannot simultaneously guarantee the gain of uplink services at certain sites. Therefore, setting the uplink to omnidirectional antennas for all uplinks cannot guarantee communication performance during uplink transmission (including uplink random access and uplink service transmission).

[0073] To improve communication performance during uplink transmission, an embodiment of the present application provides an antenna selection method that can obtain the status of one or more antennas and select an antenna for uplink transmission based on the status of the one or more antennas. The antennas used for uplink transmission include x first-mode antennas (e.g., omnidirectional antennas) and y second-mode antennas (e.g., directional antennas). This method can be applied in Wi-Fi systems or other systems that require antenna selection.

[0074] like Figure 1 The system architecture shown is applicable to the technical solution of the embodiment of the present application. The system includes a first electronic device and a second electronic device. The first electronic device can be a network device (e.g. Figure 1 The network device 1 shown in FIG, the second electronic device may be a terminal device (eg Figure 1 Optionally, the system may further include other terminal devices (e.g., Figure 2 Terminal device 2).

[0075] In the embodiment of the present application, the network device is located on the network side of the above-mentioned system. It should be understood that in some embodiments, the network device may also be a wireless transceiver or a chip or chip system with wireless transceiver functions. Specifically, the network device 1 is an AP in a Wi-Fi system, such as but not limited to a home gateway, a router, a server, a switch, a bridge, CPE (Customer Premise Equipment), etc. In some embodiments, the network device may also be a mobile terminal such as a mobile phone (for example, a mobile phone terminal that provides hotspot access), a tablet, or a PC (Personal Computer).

[0076] The terminal device is a terminal located in the system and having wireless transceiver capabilities, or a chip or chip system having wireless transceiver capabilities. For example, the terminal device may be a mobile phone, a tablet computer, a computer with wireless transceiver capabilities, a virtual reality (VR) terminal device, etc.

[0077] In some embodiments of the present application, for a network device, the antennas available for uplink transmission in the network device include at least one directional antenna and at least one omnidirectional antenna. The antennas available for downlink transmission in the network device may include at least one directional antenna and at least one omnidirectional antenna.

[0078] In some other embodiments, the network device may include at least one antenna, and the same antenna can be switched between an omnidirectional state and a directional state (for example, by switching through a switch, or switching from an omnidirectional state to a directional state through beamforming). During uplink transmission, the antenna is in an omnidirectional antenna state, which facilitates access to more terminal devices. During downlink transmission, the antenna is switched to a directional state to ensure service transmission.

[0079] Figure 2 The figure shows a communication diagram of a terminal device and a network device provided by an embodiment of the present application. Assuming that a white ellipse (for example, Figure 2 201 and 202 in the figure represent the radiation range (e.g., directional pattern) of the uplink antenna (the antenna that receives uplink signals, also called the receiving antenna) of the network device, and the black ellipse 203 represents the radiation range of the downlink antenna (the antenna that sends downlink signals, also called the transmitting antenna). Figure 2It can be seen that the radiation range of the uplink antenna of network device 1 includes two parts. Among them, the white oval 201 part can be the radiation range generated by the omnidirectional antenna. Therefore, the omnidirectional antenna can receive uplink signals within a larger angular direction range, which can be used to ensure that multiple terminals initiate effective random access from uncertain directions. The white oval 202 part can be the radiation range generated by the directional antenna. The directional antenna can receive uplink signals within a certain direction range (for example, a fixed small-angle beam range). It can be used to ensure the gain of the received terminal signal in the determined direction, and can ensure the uplink service gain within the radiation range.

[0080] It can be seen that the technical solution of the embodiment of the present application can take into account both the effectiveness of uplink random access and the gain of uplink services by providing an omnidirectional antenna and a directional antenna in the uplink antenna.

[0081] In the embodiments of the present application, for a network device, the uplink antenna of the network device (the receiving antenna of the network device) may refer to the antenna through which the network device receives uplink signals from a terminal. The downlink antenna of the network device (the transmitting antenna of the network device) may refer to the antenna through which the network device sends downlink signals to a terminal. The uplink antenna of a terminal (the transmitting antenna of the terminal) may refer to the antenna through which the terminal sends uplink signals to the network device. The downlink antenna of a terminal (the receiving antenna of the terminal) may refer to the antenna through which the terminal receives downlink signals from the network device.

[0082] It should be noted that in some scenarios, the roles of the uplink antenna and the downlink antenna can be interchangeable. For example, the same antenna in the same device can be used for both receiving and transmitting signals.

[0083] The system architecture and business scenarios described in this application are intended to more clearly illustrate the technical solutions of this application and do not constitute the sole limitation on the technical solutions provided in this application. A person skilled in the art will appreciate that, with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in this application are equally applicable to similar technical problems.

[0084] Optionally, the electronic devices (terminal devices, network devices) in the embodiments of the present application can be implemented by different devices or by the same electronic device. For example, the terminal devices and network devices in the embodiments of the present application can be implemented by having Figure 3 The described structure is implemented by the network device. Figure 3 FIG2 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The present embodiment of the present application is illustrated by taking device 400 as an example. The device 400 includes at least one processor 401, a memory 403, and at least one transceiver 404. The memory 403 may also be included in the processor 401.

[0085] In some embodiments, the device 400 also has an antenna (not shown in FIG. Figure 3 (shown in FIG), the antenna is used to transmit and receive electromagnetic wave signals. Each antenna in device 400 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antennas can be reused as diversity antennas for a wireless local area network. Device 400 can be equipped with one or more antennas, and the layout of the antennas can be flexibly configured, which is not limited in this embodiment of the present application.

[0086] The processor 401 may be composed of one or more processing units, which may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0087] Path coupling may exist between the above components to facilitate information transmission between the above components.

[0088] Transceiver 404 is used to communicate with other devices. In the embodiments of the present application, transceiver 404 can be a module, circuit, interface, or other device capable of implementing communication functions, used to communicate with other devices. Optionally, the transceiver 404 can be a standalone transmitter that can be used to send information to other devices, or a standalone receiver that can be used to receive information from other devices. The transceiver 404 can also be a component that integrates the functions of sending and receiving information. The embodiments of the present application do not limit the specific implementation of the transceiver 404.

[0089] The transceiver 404 may include one or more radio frequency channels, each of which includes one or more radio frequency devices. The radio frequency devices process the signals transmitted between the antenna and the baseband processor, and implement functions such as frequency conversion, filtering, and amplification of the signals. For example, the radio frequency devices may be used to process the radio frequency (RF) signals received from the antenna, convert them to a lower intermediate frequency, and then convert them to baseband signals for processing by the baseband processor. For example, the transceiver 404 integrates the functions of sending and receiving information, that is, the transceiver 404 includes a receiver and a transmitter. Figure 4 and Figure 5As shown, as a possible implementation method, the radio frequency components of the receiving channel in the transceiver 404 include radio frequency integrated circuits (RFIC), low noise amplifiers (LNA), filters, switches, and duplexers. The radio frequency devices of the transmitting channel in the transceiver 404 include radio frequency integrated circuits, power amplifiers (PA), filters, switches, and duplexers. Among them, the radio frequency integrated circuit may include a modem to realize modulation and demodulation of the signal, that is, up-mixing or down-mixing. The switch is used to realize the switching between receiving and transmitting radio frequency signals, or switching between different frequency bands. The duplexer is used to isolate the transmitting and receiving signals to ensure that both receiving and transmitting can work normally at the same time.

[0090] Among them, such as Figure 4 As shown, when the switch is switched to the signal transmission mode, the RF transmission channel of the device 400 is in operation and the device 400 can transmit signals. Specifically, the signal passes through the RF integrated circuit, PA, filter, switch and duplexer in the RF components and is transmitted through the antenna.

[0091] like Figure 5 As shown, the RF channel can switch between transmit and receive. A switch is used to switch between the receive and transmit channels. When device 400 controls the switch to switch the RF channel to the receive channel, device 400 can receive signals. Specifically, after being received by the antenna, the signal passes through the duplexer, switch, filter, and LNA in the RF components before reaching the modem in the RF integrated circuit for demodulation.

[0092] It should be noted that in some scenarios, the antenna can be used to receive information, and in some scenarios, the antenna can also be used to send information. In other words, the same antenna can have the function of receiving information and the function of sending information. For example, Figure 4 As shown in , in the transmission channel, directional antennas can be used to transmit information. Figure 5 As shown, in the receiving channel, the same directional antenna can be used to receive information. Alternatively, there can be an antenna specifically used to send information, or an antenna specifically used to receive information. The embodiments of the present application do not limit the specific implementation of the antenna.

[0093] In different communication scenarios of the embodiments of the present application, the type and number of antennas used by the device 400 may be different. The antenna types may include omnidirectional antennas and directional antennas.

[0094] Taking device 400 as a router as an example, in an uplink communication scenario, the router uses at least one directional antenna and at least one omnidirectional antenna to receive uplink signals. Uplink signals include random access signals and / or uplink service signals. In a downlink communication scenario, the router can use a directional antenna to transmit downlink signals to terminals in a specific direction.

[0095] It should be noted that, for a certain antenna, the antenna may be an omnidirectional antenna or a directional antenna.

[0096] Alternatively, in some other embodiments, an antenna can be used as both a directional antenna and an omnidirectional antenna. In other words, the antenna can be in both directional and omnidirectional states. When used in the directional state, it can be considered a directional antenna, while when used in the omnidirectional state, it can be considered an omnidirectional antenna.

[0097] As a possible implementation manner, the antenna state may be switched between omnidirectional and directional through a technology such as beamforming.

[0098] The embodiment of the present application does not limit the radiation angle range of the directional antenna.

[0099] In the embodiment of the present application, the number of antennas in the same radio frequency channel can be one or more. For example, Figure 4 In this context, antennas in a radio frequency channel include omnidirectional antennas and directional antennas. When multiple antennas are included in the same radio frequency channel, they can be of the same or different types. For example, all antennas can be omnidirectional, all antennas can be directional, or some antennas can be omnidirectional and some can be directional.

[0100] As a possible implementation, the device 400 may select an antenna through switch control. Figure 4 As shown, the directional antenna can be selected by a switch.

[0101] The memory 403 may be a read-only memory (ROM) or other type of storage module capable of storing static information and instructions, a random access memory (RAM) or other type of storage module capable of dynamically storing information and instructions, or an electrically erasable programmable read-only memory (EEPROM), an optical disc, a magnetic disk, or other magnetic storage device. The memory may be independent and connected to the processor via a communication line. The memory may also be integrated with the processor.

[0102] The memory 403 is used to store computer-executable instructions, and the computer-executable instructions can be called by one or more processing units in the processor 401 to execute corresponding steps in various methods provided in the following embodiments.

[0103] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, instructions, computer programs or other names, which are not specifically limited in the embodiments of the present application.

[0104] In a specific implementation, as an embodiment, the device 400 may include multiple processors, such as Figure 2 4 and 5. Each of these processors may be a single-core processor or a multi-core processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0105] In some embodiments, the processor of the device 400 includes various types of processors. For example, the baseband processor, the above-mentioned modem processor (not shown in FIG. Figure 2 ), the modem processor may include a modulator and a demodulator.

[0106] The wireless communication function of the device 400 can be implemented through the antenna, the transceiver 404, the modem processor and the baseband processor.

[0107] In a specific implementation, as an embodiment, device 400 may further include an output device 405 and an input device 406. Output device 405 communicates with processor 401 and can display information in a variety of ways. For example, output device 405 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. Input device 406 communicates with processor 401 and can receive user input in a variety of ways. For example, input device 406 can be a mouse, keyboard, touch screen device, or sensor device.

[0108] It should be understood that if Figure 3 The diagram shows an exemplary structure of a device 400 having wireless transceiver functions. The device 400 is only an example, and in actual applications, the communication device may have more than Figure 3 More or fewer components may be shown, two or more components may be combined, or the illustrations may have different configurations of components.

[0109] The above-mentioned device 400 can be a general device or a dedicated device. The embodiment of the present application does not limit the type of the device 400. The terminal device or network device can be a device having Figure 3 Devices of similar structure.

[0110] The present invention provides an antenna selection method that can be applied to an electronic device or a component capable of implementing wireless transceiver functions (such as a chip system). The electronic device can be a network device or a terminal. The present invention does not limit the type of electronic device or the specific implementation form.

[0111] The following mainly takes the electronic device as a router as an example to introduce the technical solution of the embodiment of the present application. Here, a unified description is given and no further details are given below.

[0112] In the embodiment of the present application, the router may have one or more radio frequency channels, such as 4, and may have more radio frequency channels in the future, such as 8, 16, etc. The terminal may also have one or more radio frequency channels, such as 2, and may have more radio frequency channels in the future, such as 4.

[0113] When sending information to a terminal, a router usually uses a directional antenna to send information in order to improve the gain of downlink services to the directional terminal.

[0114] For example, Figure 6A As shown in the figure, the router has four RF channels: RF Channel 1 through RF Channel 4. Each RF channel can switch between a receive channel and a transmit channel. During the time period t1-t2, RF Channel 1, RF Channel 2, and RF Channel 4 are all transmit channels. RF Channel 1 is connected to directional antenna 1, RF Channel 2 is connected to directional antenna 2, and RF Channel 4 is connected to directional antenna 4. Thus, RF Channel 1, RF Channel 2, and RF Channel 4 can send downlink signals to the terminal via directional antenna 1, directional antenna 2, and directional antenna 4, respectively. During the time period t1-t2, RF Channel 3 is a receive channel and is connected to omnidirectional antenna 3. Therefore, the router can receive uplink signals from the terminal (such as uplink signals during random access) via omnidirectional antenna 3.

[0115] At time t2, the information transmission and reception status of RF channel 1, RF channel 2, and RF channel 4 switches from sending information to receiving information. As a possible implementation method, the router can switch the RF channel from the sending channel to the receiving channel by controlling a switch. In this case, the router needs to reselect the antenna for uplink transmission. For example, Figure 6AAs shown, at time t2, the router needs to determine whether directional antennas 1, 2, and 4 connected to receive channels 1, 2, and 4 continue to be connected, so as to determine the antenna for uplink transmission in receive channels 1, 2, and 4. The following example will introduce the method of selecting antennas.

[0116] In some embodiments, the router detects antenna connectivity in each radio frequency channel. Antenna connectivity includes two conditions: the first condition is that a connected omnidirectional antenna and a connected directional antenna exist in the radio frequency channel; the second condition is that no connected omnidirectional antenna or no connected directional antenna exists in the radio frequency channel.

[0117] It can be understood that in the first case, when a connected omnidirectional antenna and a connected directional antenna are detected in the RF channel, the router can continue to receive uplink information through the connected omnidirectional antenna and the connected directional antenna without switching antennas. In this way, the uplink random access performance can be improved by using the uplink omnidirectional antenna, and the uplink service gain can be improved by using the uplink directional antenna.

[0118] In the second case, when it is detected that there are no connected omnidirectional antennas in the RF channel and only connected directional antennas exist, the router can switch some of the connected directional antennas to omnidirectional antennas to ensure that the uplink antennas used to receive information include both directional antennas and omnidirectional antennas, thereby balancing uplink random access performance and uplink service gain. Similarly, when it is detected that there are no connected directional antennas in the RF channel and only connected omnidirectional antennas exist, the router can switch some of the connected omnidirectional antennas to directional antennas to ensure that the uplink antennas used to receive information include both directional antennas and omnidirectional antennas. The antenna selection schemes for the two cases are described below.

[0119] Scenario 1: Before time t2, radio channels 1, 2, and 4 are transmit channels 1, 2, and 4, respectively, and are connected to directional antennas 1, 2, and 4, respectively. At time t2, the router determines that radio channels 1, 2, and 4 need to be switched from transmit channels 1, 2, and 4 to receive channels 1, 2, and 4. The router needs to determine the antenna selection method for receive channels 1, 2, and 4. Specifically, the router needs to determine whether to continue connecting to directional antenna 1 after switching radio channel 1 to receive channel 1, or to switch directional antenna 1 to omnidirectional antenna 1 after switching radio channel 1 to receive channel 1. Similarly, the router needs to determine whether to continue connecting to directional antenna 2 after switching radio channel 2 to receive channel 2, or to switch directional antenna 2 to omnidirectional antenna 2. The router needs to determine whether to continue connecting to directional antenna 4 after switching radio channel 4 to receive channel 4, or to switch directional antenna 4 to omnidirectional antenna 4.

[0120] In order to determine the antenna selection mode for receiving channels 1, 2, and 4, the router can obtain the directional status of the antennas connected to each radio frequency channel. As a possible implementation method, for the radio frequency channel that is converted from receiving signals to sending signals, the router obtains the directional status of the antenna connected to the sending channel before the signal is converted from receiving to sending. Figure 6A For example, to obtain the directional status of the antennas connected to transmission channels 1, 2, and 4, transmission channels 1, 2, and 4 are connected to directional antennas 1, 2, and 4 respectively, that is, the antennas connected to transmission channels 1, 2, and 4 are all directional antennas. For RF channels where the direction of the transmit and receive signals is not changed, such as Figure 6A The router detects a connected omnidirectional antenna in receive channel 3. In this case, considering that both omnidirectional antenna 3 and directional antennas 1, 2, and 4 are connected in the RF channel, the router can maintain receive channels 1, 2, and 4 connected to directional antennas 1, 2, and 4, respectively, and maintain receive channel 3 connected to omnidirectional antenna 3, eliminating the need for antenna switching. As can be seen, after time t2, the router can maintain random access performance through uplink omnidirectional antenna 3 and uplink service gain through uplink directional antennas 1, 2, and 4.

[0121] In other embodiments, the number of directional antennas and / or omnidirectional antennas in the receiving antenna can be set within a period of time, including setting the number of directional antennas in the receiving antenna within a period of time, or setting the number of omnidirectional antennas in the receiving antenna within a period of time, or setting the number of directional antennas and the number of omnidirectional antennas in the receiving antenna within a period of time. The set number can be a range of numbers, or a minimum number, a maximum number, etc., and the embodiments of the present application do not limit this. Taking the setting of the number of directional antennas as an example, within a period of time (which can be set), the number of directional antennas in the receiving antenna of the router can be set to a preset number, for example, the preset number can be greater than or equal to 2. In this way, there can be multiple directional antennas within a period of time, and even if one of the directional antennas fails or has poor receiving performance, the signal reception can continue to be completed by other directional antennas. Among them, the preset number can be set flexibly, and the embodiments of the present application do not limit the specific value of the preset number.

[0122] For example, it is assumed that at any time, the number of directional antennas in the receiving antenna of the router is two. Figure 6BAs shown, at time t2, the router determines that transmit channels 1, 2, and 4 need to be switched to receive channels (the antennas for receive channels 1, 2, and 4 have not yet been selected). The router detects that transmit channels 1, 2, and 4 are connected to directional antennas 1, 2, and 4, and receive channel 3 is connected to omnidirectional antenna 3. Currently, there are three connected directional antennas. To meet the requirement of two directional antennas for receive antennas, the router needs to switch one of the connected directional antennas 1, 2, and 4 to an omnidirectional antenna. For example, the router switches directional antenna 1 for receive channel 1 to omnidirectional antenna 1. For RF channels 2 and 4, after switching to receive channels 2 and 4, receive channels 2 and 4 remain connected to directional antennas 2 and 4. For RF channel 3, RF channel 3 remains connected to omnidirectional antenna 3. Thus, starting at time t2, the router can receive uplink signals from the terminal via omnidirectional antenna 1, omnidirectional antenna 3, directional antenna 2, and directional antenna 4, meeting the specified number of uplink directional antennas of two.

[0123] As a possible implementation, when the number of directional antennas used to receive signals does not reach a preset number, the router can select a directional antenna based on the signal quality of the antenna. Figure 6B For example, before time t2, transmit channels 1, 2, and 4 have three connected directional antennas—directive antennas 1, 2, and 4—which do not meet the required number of two directional antennas. Therefore, the router can select one directional antenna from directional antennas 1, 2, and 4 and switch it to an omnidirectional antenna, ensuring that after time t2, only two directional antennas are used to receive uplink signals. For example, directional antenna 1, with the best signal quality (as indicated by indicators such as channel state information (CSI) and received signal strength indication (RSSI)), is selected from directional antennas 1, 2, and 4, and switched from directional antenna 1 to omnidirectional antenna 1. After time t2, the receive channel connects to omnidirectional antenna 1.

[0124] Assume that at any time, the number of omnidirectional antennas in the router's receiving antennas does not exceed (is less than or equal to) two. In other examples, for example, Figure 6CAs shown, at time t2, if the router switches both transmit channels 1 and 2 to receive channels (the antennas required for the corresponding receive channels have not yet been selected), and the router already has two omnidirectional antennas among its receive antennas (i.e., omnidirectional antenna 3 for receive channel 3 and omnidirectional antenna 4 for receive channel 4), meeting the specified conditions, then the router can no longer select an omnidirectional antenna from among omnidirectional antennas 3 and 4. The antennas connected by receive channels 1 and 2 can remain unchanged, that is, receive channel 1 continues to connect to directional antenna 2, which was previously connected to transmit channel 1, and receive channel 2 continues to connect to directional antenna 2. In this way, starting at time t2, the router can receive uplink signals from the terminal through multi-directional antenna 1, directional antenna 2, omnidirectional antenna 3, and omnidirectional antenna 4.

[0125] Case 2: At time t2, the router determines that RF channels 1, 2, and 4 need to be switched from transmit channels to receive channels. To determine the antennas that need to be connected after RF channels 1, 2, and 4 are switched to receive channels 1, 2, and 4, the router first obtains the antenna connectivity status of each RF channel. Specifically, receive channel 3 is connected to directional antenna 3; before the RF channel is switched to the receive channel, transmit channels 1, 2, and 4 are connected to directional antennas 1, 2, and 4. It can be seen that the antennas connected in the RF channels are all directional antennas, and there are no connected omnidirectional antennas. In this case, to ensure the effectiveness of uplink random access, the router can switch the antenna connected to at least one of receive channels 1, 2, and 4 to an omnidirectional antenna (assuming that the antenna connected to receive channel 1 is switched from directional antenna 1 to omnidirectional antenna 1). In this way, the receive antennas used to receive uplink information may include directional antennas 3, 2, and 4, as well as omnidirectional antenna 1.

[0126] As a possible implementation, Figure 7For example, at time t2, RF channels 1, 2, and 4 are switched from transmit channels to receive channels, and the router detects that the current receive channel 3 is not connected to the omnidirectional antenna. Then, when determining the antenna that needs to be connected among receive channels 1, 2, and 4, in order to ensure the effectiveness of random access, the router can switch the directional antenna 1 connected to receive channel 1 to the omnidirectional antenna 1. Optionally, receive channels 2 and 4 can maintain the connectivity of directional antenna 2 and directional antenna 4, so that the uplink service gain of the terminal within the radiation range of directional antenna 2 and directional antenna 4 can be guaranteed. That is, one of the receive channels 1, 2, and 4 needs to be connected to the omnidirectional antenna, and the other receive channels remain connected to the directional antenna. In this way, only one omnidirectional antenna that can receive uplink signals is retained, and the other antennas that receive uplink signals use directional antennas. The number of directional antennas is sufficient, and it is possible to take into account the uplink service gain in a specific direction while ensuring the existence of an omnidirectional antenna (which can be used to ensure the effectiveness of random access). Among them, the router can flexibly determine which receive channel is connected to the directional antenna to switch to the omnidirectional antenna according to the application scenario, and the embodiment of the present application does not limit it. For example, the router can randomly select a receiving channel from channels 1, 2, and 4 and switch the antenna connected to that receiving channel from a directional antenna to an omnidirectional antenna. Alternatively, the router can select a receiving channel in a round-robin manner, for example, selecting receiving channel 1 this time, channel 2 next time, and so on. Alternatively, the router can select the omnidirectional antenna with the best signal quality.

[0127] For example, at time t2, only RF channel 1 switches from the transmitting channel to the receiving channel, and the router detects that the current receiving channels (receiving channels 1, 2, and 4) are not connected to the omnidirectional antenna. Then, when determining the antenna that receiving channel 1 needs to be connected to, in order to ensure the effectiveness of random access, the router can switch the antenna connected to receiving channel 1 from a directional antenna to an omnidirectional antenna.

[0128] Or, as another possible implementation, Figure 8As shown, at time t2, RF channels 1, 2, and 4 switch from transmit channels to receive channels, and the router detects that the current receive channel 3 is not connected to an omnidirectional antenna. To ensure the effectiveness of uplink random access, when determining the antennas that need to be connected among receive channels 1, 2, and 4, the router may switch, for example, directional antenna 1 connected to receive channel 1 to omnidirectional antenna 1, and directional antenna 2 connected to receive channel 2 to omnidirectional antenna 2. Optionally, the router maintains the connection of directional antenna 4 for receive channel 4. In this way, after time period t2, there are at least two omnidirectional antennas available for receiving uplink signals. If a signal failure occurs on one omnidirectional antenna, the other omnidirectional antenna can continue to be used to receive uplink signals. The specific receive channel to which the router switches the directional antenna connected to the omnidirectional antenna can be flexibly determined based on the application scenario and is not limited in this embodiment of the present application. For example, the router may randomly select two receive channels from receive channels 1, 2, and 4 and switch the antennas connected to these two receive channels from directional antennas to omnidirectional antennas. For another example, the two receive channels may be selected in a round-robin manner.

[0129] In other embodiments, when it is detected that the RF channel switches from the transmitting channel to the receiving channel, the router may continue to connect the antenna that was previously connected to the corresponding transmitting channel in the receiving channel. The holding time can be flexibly set, and the embodiment of the present application does not limit the holding time. Figure 9 As shown, at time t2, RF channels 1 and 4 are switched from transmit channels to receive channels. The router can maintain the directional antennas connected to receive channels 1 and 4 for a period of time t2-t3. At time t3, the router can switch the antennas connected to receive channels 1 and 4 from directional antennas to omnidirectional antennas. In the time dimension, during the period t2-t3, the router's receiving antennas include directional antennas. After time t3 (for example, during the period t3-t4), the router's receiving antennas include omnidirectional antennas. In other words, during the period t2-t4, the router's receiving antennas include both directional and omnidirectional antennas, which can maximize the balance between the effectiveness of uplink random access and uplink service gain.

[0130] Among them, the time interval t2-t3 is flexibly set by the router according to the actual application scenario, and the embodiment of the present application does not limit the time interval t2-t3.

[0131] and Figure 7 、 Figure 8 Compared with the corresponding scheme, Figure 9 In the corresponding solution, at time t2, the router does not need to determine whether there is an omnidirectional antenna among the receiving antennas. Instead, the directional antenna used to receive signals before time t2 can be used to send signals during the period t2-t3. That is, the directional antenna is kept in use for a period of time in the uplink transmission, and at time t3, the signal reception using the directional antenna is switched to the signal reception using the omnidirectional antenna.

[0132] In other embodiments of the present application, the router can obtain the communication parameters of one or more antennas and select the antenna used for uplink transmission based on these communication parameters. The antennas used for uplink transmission include x omnidirectional antennas and y directional antennas. Both x and y are integers greater than or equal to 1. The values ​​of x and y are related to the actual radio frequency channel, the number of antennas, etc. The communication parameters include but are not limited to one or more of the following parameters: CSI, RSSI. CSI can be used to characterize the downlink channel status. For example, CSI can be used to characterize the downlink channel quality. The following two cases introduce how the router selects the antenna used for uplink transmission based on the communication parameters.

[0133] Case 1: Communication parameter is CSI

[0134] Typically, one or more channels may be formed between a router and a terminal. For example, Figure 10 As shown in the figure, assume that the router has four RF channels, each channel has two antennas, and the terminal has two RF channels, each RF channel has one antenna. Each antenna connected in the router's RF channel can form a channel with each antenna of the terminal. Figure 10 The channel formed between the directional antenna 1 of the router and the antenna 1 of the terminal is recorded as channel(1,1), the channel formed between the directional antenna 2 of the router and the antenna 1 of the terminal is recorded as channel(1,2), the channel formed between the directional antenna 3 of the router and the antenna 1 of the terminal is recorded as channel(1,3), the channel formed between the directional antenna 4 of the router and the antenna 1 of the terminal is recorded as channel(1,4), the channel formed between the directional antenna 1 of the router and the antenna 2 of the terminal is recorded as channel(2,1), the channel formed between the directional antenna 2 of the router and the antenna 2 of the terminal is recorded as channel(2,2), the channel formed between the directional antenna 3 of the router and the antenna 2 of the terminal is recorded as channel(2,3), and the channel formed between the directional antenna 4 of the router and the antenna 2 of the terminal is recorded as channel(2,4).

[0135] In some solutions, a router can send a channel state information reference signal (CSI-RS) to a terminal, and the terminal receives the CSI-RS. The CSI-RS sent by the router is known to both the router and the terminal. Due to channel influences, the CSI-RS received by the terminal may vary, such as experiencing power attenuation compared to the transmitted CSI-RS. Therefore, the terminal can measure the received CSI-RS and estimate the downlink channel based on the CSI-RS sent by the router and the CSI-RS received by the terminal.

[0136] Figure 11 The figure shows the process of the terminal estimating the downlink channel. The CSI-RS signals sent by the router to the terminal via different antennas are denoted as X1, X2, X3, and X4, respectively, and the CSI-RS signals received by the terminal via antenna 1 and antenna 2 are denoted as Y1 and Y2, respectively. X1 can be sent via the channel between the router's directional antenna 1 and terminal antenna 1, or via the channel between router antenna 1 and terminal antenna 2. Similarly, X2 can be sent via the channel between the router's directional antenna 2 and terminal antenna 1, or via the channel between router antenna 2 and terminal antenna 2. X3 can be sent via the channel between the router's directional antenna 3 and terminal antenna 1, or via the channel between router antenna 3 and terminal antenna 2. X4 can be sent via the channel between the router's directional antenna 4 and terminal antenna 1, or via the channel between router antenna 4 and terminal antenna 2.

[0137] After receiving Y1 and Y2 through antenna 1 and antenna 2 respectively, the terminal can calculate the downlink channel matrix based on X1, X2, X3, X4, Y1, and Y2. As a possible implementation method, the downlink channel matrix can be calculated using the following formula:

[0138]

[0139] Here, . represents the matrix multiplication operator, H is the downlink channel matrix, and h(1,1) represents the channel model between the router's directional antenna 1 and the terminal's antenna 1. Similarly, h(2,4) represents the channel model between the router's directional antenna 4 and the terminal's antenna 2.

[0140] The terminal then determines the CSI (Cell Signal Indicator) used to characterize the channel state based on the calculated channel matrix and reports it to the router. After obtaining the CSI between the terminal and the router, the router uses this CSI to determine the channel matrix between the terminal and the router, and thus the channel quality of different downlink channels. Based on this downlink channel quality, the router can then determine the antenna to use for uplink transmission.

[0141] As a possible approach, if the downlink channel quality corresponding to a channel between the router and the terminal is greater than or equal to a certain threshold, the router antenna corresponding to the channel is determined as the antenna used for uplink transmission. For example, if the downlink channel quality corresponding to channel (1,1), channel (2,1), channel (1,2), and channel (2,2) is greater than the threshold, then Figure 11As shown, the router antennas corresponding to channels (channel (1,1), channel (2,1), channel (1,2), and channel (2,2), namely, directional antenna 1 and directional antenna 2, are determined as antennas for uplink transmission. In other words, because the downlink channel gains corresponding to directional antennas 1 and 2 are high, based on the uplink and downlink mutual differences, the uplink channel gains corresponding to directional antennas 1 and 2 are generally also high. Therefore, directional antennas 1 and 2 are considered for continued use in uplink transmission. Specifically, directional antennas 1 and 2 can be used to enhance uplink service gain.

[0142] As a possible implementation method, the antennas with the highest downlink channel quality are determined as the antennas used for uplink transmission. Figure 12A As shown in the figure, before time t2, transmit channels 1, 2, and 4 are connected to directional antennas 1, 2, and 4, and receive channel 3 is connected to omnidirectional antenna 3. The downlink channel quality corresponding to directional antennas 1, 2, and 4, and omnidirectional antenna 3, in descending order, is directional antenna 1, directional antenna 2, omnidirectional antenna 3, and directional antenna 4. Therefore, for antennas with better downlink quality (i.e., directional antenna 1, directional antenna 2, and omnidirectional antenna 3), the router will continue to use directional antenna 1, directional antenna 2, and omnidirectional antenna 3 as receiving antennas to receive uplink signals. For directional antenna 4, which has poor downlink channel quality, the router can switch from directional antenna 4 to omnidirectional antenna 4 and use omnidirectional antenna 4 as the receiving antenna to receive uplink signals.

[0143] As a possible implementation, for one or more antennas whose downlink channel quality is lower than a threshold, the router does not use the one or more antennas as receiving antennas for receiving uplink signals. Figure 12A Before time t2, transmit channels 1, 2, and 4 are connected to directional antennas 1, 2, and 4, and receive channel 3 is connected to omnidirectional antenna 3. Among directional antennas 1, 2, and 4, and omnidirectional antenna 3, the downlink channel quality of directional antenna 4 is below the threshold. Therefore, for the antenna with poor downlink channel quality, namely directional antenna 4, the router determines not to use directional antenna 4 as the receiving antenna after time t2. Instead, it can switch directional antenna 4 to omnidirectional antenna 4 and use omnidirectional antenna 4 as the receiving antenna for uplink signals. For antennas with better channel quality, namely directional antennas 1, 2, and omnidirectional antenna 3, the router can continue to connect directional antennas 1, 2, and omnidirectional antenna 3 after time t2, that is, use directional antennas 1, 2, and omnidirectional antenna 3 as the receiving antennas for uplink signals.

[0144] It should be noted that there may be other antenna selection methods in the embodiments of the present application. Due to space limitations, the embodiments of the present application cannot list all these selection methods one by one. Generally, antenna selection methods that can ensure that the receiving channel is connected with at least one omnidirectional antenna and a directional antenna can be understood as being within the scope of the technical solutions of the embodiments of the present application.

[0145] Figure 10-11 The calculation method of CSI between a terminal and a router is described using a terminal as an example. In other scenarios, there may be multiple terminals, and multiple channels are formed between the multiple terminals and the router's antenna. For example, Figure 13 The figure shows the channels (channel (1,1)-channel (4,4)) formed between terminals 1 and 2 and the router antennas. Multiple channels between the router and multiple terminals can have corresponding channel matrices. Based on the channel matrix, the router can determine the target antenna corresponding to a channel with good downlink channel quality (for example, downlink channel quality above a threshold) and continue to use the target antenna for uplink transmission.

[0146] Case 2: Communication parameter is RSSI

[0147] The router can detect the RSSI of the uplink signal received by each antenna. As a possible implementation method, if the RSSI of a certain antenna is greater than or equal to the threshold, it means that the uplink channel quality of the antenna is good. Then, the antenna can be used to receive the uplink signal for a period of time. For example, Figure 14 The router detects that before time t2, the RSSI of directional antennas 1 and 4 are both greater than the threshold. Then, for a period of time after time t2, the router keeps directional antennas 1 and 2 connected to improve the uplink signal reception quality through directional antennas 1 and 2.

[0148] As a possible implementation, if the router detects that the RSSI of a certain antenna is less than a threshold, indicating that the uplink channel quality of the antenna is poor, the router can control the switch to disconnect the antenna and connect other antennas in the corresponding receiving channel. Figure 14 If the router detects that the RSSI of directional antenna 3 and directional antenna 4 is less than the threshold, it can switch the antenna connected to receiving channel 3 from directional antenna 3 to omnidirectional antenna 3 after time t2, and switch the antenna connected to receiving channel 4 from directional antenna 4 to omnidirectional antenna 4. Omnidirectional antenna 3 and omnidirectional antenna 4 can be used to receive uplink information.

[0149] Alternatively, the communication parameter used by the router to select the uplink transmission antenna may also be other parameters, which are not limited in the embodiment of the present application. For example, the communication parameter used to select the antenna may also be the signal-to-noise ratio (SNR).

[0150] Figure 15 The following is a flow chart showing an example of the antenna selection method according to an embodiment of the present application. Figure 15 , the method comprising:

[0151] S101: Obtain states corresponding to multiple candidate antennas of multiple radio frequency channels.

[0152] Wherein, one receiving channel corresponds to one or more candidate antennas. For example, Figure 14 As shown, each receiving channel may correspond to two antennas. For a single antenna, the state of the antenna includes the working mode of the antenna and the communication parameters of the antenna. The working mode of the antenna includes a second mode (for example, a directional state) and a first mode (for example, an omnidirectional state). It should be understood that the first mode may also be referred to as the first state, and the second mode may also be referred to as the second state. The communication parameters of the antenna include: CSI, RSSI, SNR. Exemplarily, there may be one or two working modes for an antenna. For example, a single physical antenna may be made to present a directional state through beamforming. In this second state (or second mode), the antenna may be called a directional antenna. The physical antenna may also be made to present an omnidirectional state through beamforming. In this first state (or first mode), the antenna may be called an omnidirectional antenna.

[0153] It should be noted that the candidate antennas may be all antennas of the access point that can be used to receive information, or may be antennas selected within a specific range. Figure 12B For example, the candidate antennas may be omnidirectional antennas 1-4 and directional antennas 1-4.

[0154] Alternatively, considering that there is no change in the receiving and transmitting state of receiving channel 3, the channel has been receiving all the time. Therefore, the antenna of this channel can be used without switching the antenna, thereby reducing the receiving and transmitting delay caused by switching the antenna. Accordingly, the antennas that can be switched, that is, the candidate antennas can be the directional antennas 1, 2, 4 and the omnidirectional antennas 1, 2, 4 in the receiving channels 1, 2, 4 (that is, the channels where the information receiving and transmitting state changes at time t2). Alternatively, the candidate antenna is the connected antenna in the receiving channel whose information receiving and transmitting state changes from sending information to receiving information. For example, Figure 12BAs shown, at time t2, the information transmission and reception status of channels 1, 2, and 4 changes from transmitting information to receiving information. Therefore, the candidate antennas are the directional antennas 1, 2, and 4 that were connected in channels 1, 2, and 4 before time t2. The embodiment of the present application does not limit the method for selecting candidate antennas.

[0155] S102: Determine X first-mode antennas and Y second-mode antennas for receiving information according to states corresponding to a plurality of candidate antennas.

[0156] Wherein, X and Y are both positive integers. The first pattern antenna is an omnidirectional antenna, and the second pattern antenna is a directional antenna.

[0157] As a possible implementation method, if there are connected omnidirectional antennas in multiple radio frequency channels and there are connected directional antennas, then considering that the omnidirectional antennas and directional antennas are connected in the radio frequency channels, the router determines that the X omnidirectional antennas used to receive information are the antennas in the connected omnidirectional state in the multiple receiving channels, and determines that the Y directional antennas used to receive information are the antennas in the connected directional state. In other words, the router can continue to maintain the connectivity of the above-mentioned omnidirectional antennas and directional antennas during uplink transmission. In this way, the antennas used for uplink transmission may include omnidirectional antennas and directional antennas, which can take into account the performance of uplink random access and uplink service gain. For example, Figure 6A As shown, at time t2, since omnidirectional antenna 3 is already connected to receive channel 3 among receive channels 1-4, it can continue to use omnidirectional antenna 3 to receive information, thereby ensuring uplink random access performance. For receive channels 1, 2, and 4, the directional antennas that were connected when information was sent before time t2 can continue to be used, that is, directional antennas 1, 2, and 4 can continue to be used for information reception, without having to switch the connected directional antennas to omnidirectional antennas. This allows the directional antennas to improve the directional uplink service gain. This shows that when at least one omnidirectional antenna and at least one directional antenna are already connected in a receive channel, the connected antennas can continue to be used for information reception, without having to switch the antenna direction. This ensures communication continuity as much as possible and reduces the implementation complexity of the access point.

[0158] As another possible implementation, if there are connected directional antennas among multiple candidate antennas, and there are no connected omnidirectional antennas, then considering that the uplink random access performance needs to be improved for uplink transmission, the router can switch some of the connected directional antennas to omnidirectional antennas, so that the antennas used for uplink transmission include directional antennas and omnidirectional antennas. Optionally, the router switches the first directional antenna among the multiple candidate antennas to the first omnidirectional antenna. The first directional antenna is the directional antenna with the lowest channel quality among the multiple candidate antennas. The X omnidirectional antennas include the first omnidirectional antenna, and the Y directional antennas include the antennas among the multiple candidate antennas except the first directional antenna. Figure 12B For example, before time t2, transmit channel 1 is connected to directional antenna 1, transmit channel 2 is connected to directional antenna 2, transmit channel 4 is connected to directional antenna 4, and receive channel 3 is connected to directional antenna 3. At time t2, the router determines that transmit channels 1, 2, and 4 need to be switched to receive channels 1, 2, and 4. Therefore, the router must select an antenna for each receive channel to receive uplink information. Because all directional antennas connected in the RF channel before time t2 (i.e., directional antennas 1-4) are directional antennas, to ensure that the receiving antennas used for uplink transmission after time t2 include both omnidirectional and directional antennas, the router can switch some of the directional antennas 1-4 to omnidirectional antennas. As a possible implementation, the router can obtain the communication parameters of directional antennas 1, 2, 3, and 4. Among directional antennas 1, 2, 3, and 4, directional antenna 4 has the lowest channel quality. For directional antenna 4, which has the lowest channel quality, the router switches directional antenna 4 (the first directional antenna) to an omnidirectional antenna, for example, to omnidirectional antenna 4 (i.e., the first omnidirectional antenna). In this way, after time t2, the router can receive uplink information through the switched omnidirectional antenna 4. That is, the X omnidirectional antennas receiving uplink information include omnidirectional antenna 4. For directional antennas 1-3 with better channel quality, after time t2, the router can maintain connectivity with directional antennas 1-3 and receive uplink information through directional antennas 1-3. That is, the Y directional antennas receiving uplink information include directional antennas 1-3. This improves uplink service gain due to the better channel quality of the uplink directional antennas.

[0159] In some examples, the omnidirectional antenna 4 and the directional antenna 4 can be integrated into one physical antenna. Then, when the physical antenna is switched to the omnidirectional state, it can be called the omnidirectional antenna 4, and when the physical antenna is switched to the directional state, it can be called the directional antenna 4. Correspondingly, switching the antenna connected to the receiving channel 4 from a directional antenna to an omnidirectional antenna can be switching the antenna connected to the receiving channel 4 from a directional state to an omnidirectional state. Since the channel quality of the antenna of the receiving channel 4 is better in the directional state, the channel quality of the antenna in the omnidirectional state is usually also better. In this way, the omnidirectional antenna with better channel quality can be used to ensure the performance of uplink random access. The connected antennas other than the directional antenna 4 among the candidate antennas (i.e., the directional antenna 1 connected in the receiving channel 1 and the directional antenna 2 connected in the receiving channel 2) can be used as additional antennas for receiving uplink information. It can be seen that after time t2, the receiving antennas used to receive uplink information include directional antennas 1 and 2 (and may also include directional antenna 3) and omnidirectional antenna 4, and the channel quality of omnidirectional antenna 4 is good, so the performance of uplink random access can be guaranteed.

[0160] As another possible implementation, if there are connected directional antennas in multiple RF channels and no connected omnidirectional antennas, then considering that the uplink random access performance needs to be improved for uplink transmission, the router can switch some of the connected directional antennas to omnidirectional antennas, so that the antennas used for uplink transmission include directional antennas and omnidirectional antennas. Optionally, the router can switch the first directional antenna among multiple candidate antennas to the first omnidirectional antenna. The first directional antenna is a directional antenna whose channel quality is less than a threshold among multiple candidate antennas. The X omnidirectional antennas include the first omnidirectional antenna, and the Y directional antennas include antennas other than the first omnidirectional antenna among the candidate antennas. Figure 12B For example, before time t2, transmit channel 1 is connected to directional antenna 1, transmit channel 2 is connected to directional antenna 2, transmit channel 4 is connected to directional antenna 4, and receive channel 3 is connected to directional antenna 3. At time t2, the router determines that transmit channels 1, 2, and 4 need to be switched to receive channels 1, 2, and 4. Therefore, the router must select an antenna for each receive channel to receive uplink information. Because all directional antennas connected in the RF channel before time t2 (i.e., directional antennas 1-4) are directional antennas, to ensure that the receiving antennas used for uplink transmission after time t2 include both omnidirectional and directional antennas, the router can switch some of the directional antennas 1-4 to omnidirectional antennas. As one possible implementation, the router obtains the communication parameters of directional antennas 1, 2, 3, and 4 and determines that the channel quality of directional antenna 4 among directional antennas 1, 2, 3, and 4 is less than a threshold. Then, for directional antenna 4, which has a lower channel quality, the router switches directional antenna 4 (the first directional antenna) to an omnidirectional antenna, for example, switching to omnidirectional antenna 4 (i.e., the first omnidirectional antenna). In this way, after time t2, the router can receive uplink information through the switched omnidirectional antenna 4. That is, the X omnidirectional antennas receiving uplink information include omnidirectional antenna 4. For directional antennas 1-3 with better channel quality, after time t2, the router can maintain connectivity with directional antennas 1-3 and receive uplink information through directional antennas 1-3. That is, the Y directional antennas receiving uplink information include directional antennas 1-3. This improves uplink service gain due to the better channel quality of the uplink directional antennas.

[0161] The above-mentioned method of selecting the uplink directional antenna and omnidirectional antenna by judging whether the antenna channel quality is the best, and the method of selecting the uplink directional antenna and omnidirectional antenna by judging whether the antenna channel quality meets the threshold conditions can also be used in combination. For example, you can first judge whether there is an antenna that meets the threshold conditions. If so, select the antenna according to the scheme for setting the threshold conditions. If there is no antenna that meets the threshold conditions, for example, if there is no antenna with a channel quality greater than the threshold, then you can select the antenna with the largest channel quality as the first directional antenna, and continue to execute the subsequent antenna selection scheme after selecting the first directional antenna.

[0162] As another possible implementation, if there is a connected omnidirectional antenna among multiple candidate antennas, and there is no connected directional antenna, then considering that the uplink random access performance needs to be improved for uplink transmission, the router can switch some of the connected omnidirectional antennas to directional antennas, so that the antennas used for uplink transmission include directional antennas and omnidirectional antennas. Optionally, the router switches the first omnidirectional antenna among the multiple candidate antennas to the first directional antenna. The first omnidirectional antenna can be the omnidirectional antenna with the lowest channel quality among the multiple candidate antennas. Alternatively, the first omnidirectional antenna is the omnidirectional antenna with a channel quality less than or equal to a threshold among the multiple candidate antennas. The Y directional antennas include the first directional antenna, and the X omnidirectional antennas include the antennas among the multiple candidate antennas except the first omnidirectional antenna. Figure 12D For example, before time t2, receiving channels 1-4 are connected to omnidirectional antennas 1-4 respectively. Since the antennas connected in the RF channel before time t2 (i.e., omnidirectional antennas 1-4) are all omnidirectional antennas, in order to ensure that the receiving antennas used for uplink transmission after time t2 include omnidirectional antennas and directional antennas, the router can switch some of the omnidirectional antennas 1-4 to directional antennas. As a possible implementation method, the router can obtain the communication parameters of directional antennas 1, 2, 3, and 4, and the channel quality of omnidirectional antennas 2 and 3 among omnidirectional antennas 1-4 is less than a threshold. For omnidirectional antennas 2 and 3 whose channel quality is less than the threshold, the router can switch omnidirectional antennas 2 and 3 (first omnidirectional antennas) to directional antennas, for example, switching to directional antennas 2 and 3 (i.e., first omnidirectional antennas). In this way, after time t2, the router can receive uplink information through the switched directional antennas 2 and 3, that is, the Y directional antennas receiving uplink information include omnidirectional antenna 4. For omnidirectional antennas 1 and 4 with higher channel quality, after time t2, the router can maintain connectivity between omnidirectional antennas 1 and 4 and receive uplink information through omnidirectional antennas 1 and 4. That is, the X omnidirectional antennas receiving uplink information may include omnidirectional antennas 1 and 4.

[0163] In the embodiment of the present application, the channel quality can be calculated using the following formula:

[0164]

[0165] Among them, W represents the quality of the channel, p i Represents the quantized value of the communication parameter, w i Indicates p i The corresponding weights, N, represent the number of communication parameters. Communication parameters include but are not limited to RSSI, CSI, and SNR.

[0166] As another possible implementation, the candidate antennas may also be all antennas of the access point that can be used to receive uplink information. Figure 14For example, after time t2, the channels available for receiving information include receiving channels 1-4, and the antennas available for receiving information include directional antennas 1-4 and omnidirectional antennas 1-4. Figure 12C For example, after time t2, the channels available for receiving information include receiving channels 1, 2, and 4. Therefore, the antennas available for receiving information include directional antennas 1, 2, and 4, and omnidirectional antennas 1, 2, and 4. Accordingly, in some solutions, the communication parameters of each candidate antenna can be obtained, and the directional antenna and omnidirectional antenna for receiving information can be selected accordingly.

[0167] For example, Figure 12C For example, at time t2, the access point obtains the communication parameters of the candidate antennas (directional antennas 1, 2, 4 and omnidirectional antennas 1, 2, 4 for receiving channels 1, 2, and 4). Afterwards, the access point can determine the omnidirectional antenna with a channel quality greater than a threshold among the candidate antennas as the omnidirectional antenna for receiving information, so as to improve the performance of uplink random access. For example, Figure 12C In the example, omnidirectional antenna 1 and omnidirectional antenna 4 are determined by the access point to be omnidirectional antennas for receiving information. Then, the access point switches the directional antennas 1 and 4 connected to receiving channels 1 and 4 to omnidirectional antennas 1 and 4 respectively, so as to receive information through the omnidirectional antennas. For other receiving channels, the access point continues to maintain the directional antennas connected to the corresponding receiving channels. For example, Figure 12C In the example, for receiving channel 2, the access point maintains directional antenna 2 connected to receiving channel 2. In summary, in this solution, the access point can use the omnidirectional antenna with better channel quality (meeting the threshold) among the candidate antennas for uplink transmission, thereby enhancing the performance of uplink random access.

[0168] As another example, the access point may use the omnidirectional antenna with the best channel quality among the candidate antennas for uplink transmission.

[0169] As another example, the access point may use omnidirectional antennas with channel quality less than a threshold among the candidate antennas for uplink transmission, and directional antennas with channel quality greater than a threshold among the candidate antennas for uplink transmission, so as to improve the gain of directional uplink services. Figure 12C For example, after time t2, among the candidate antennas for receiving information (i.e., directional antennas 1, 2, and 4, and omnidirectional antennas 1, 2, and 4), the channel quality of directional antenna 2 exceeds the threshold. The access point then selects directional antenna 2 as the directional antenna for this uplink transmission and maintains the receive channel connected to directional antenna 2. This improves the gain of directional uplink services. For receive channels other than receive channel 2 (i.e., receive channels 1 and 4), the antennas connected to receive channels 1 and 4 can be switched from directional antennas 1 and 4 to omnidirectional antennas 1 and 4.

[0170] As another example, the access point may use the omnidirectional antenna with the lowest channel quality among the candidate antennas for uplink transmission.

[0171] The above only lists several exemplary methods for selecting antennas. The embodiments of the present application do not limit the specific method for selecting antennas, as long as both directional antennas and omnidirectional antennas are included in the uplink transmission. For example, the router can also count the service characteristics to determine which time periods the terminals mainly initiate uplink random access and which time periods the terminals mainly initiate uplink services. Afterwards, according to the time periods corresponding to different services, the directional antennas and omnidirectional antennas used to receive information in the corresponding time periods are selected. For example, if it is determined that the uplink random access service is mainly concentrated between 6:00 and 8:00, then between 6:00 and 8:00, the router will give priority to omnidirectional antennas with better channel quality and at least one directional antenna to receive information, so as to ensure the performance of the frequent uplink random access service in this time period.

[0172] S103 : Receive information through X first-mode antennas and Y second-mode antennas.

[0173] The above embodiments primarily use a router as an access point to describe the antenna selection method of the present application. In other embodiments, the access point may also be a terminal. For example, in some scenarios where a mobile phone or tablet is used to activate a hotspot, other devices can access the network through the mobile phone or tablet. In these scenarios, the mobile phone or tablet serving as the hotspot can select an antenna for receiving information according to the above embodiments, so that at least one directional antenna and at least one omnidirectional antenna are used when receiving information, thereby balancing the performance of uplink random access and uplink service gain, thereby maximizing the communication performance of uplink transmission.

[0174] It is understandable that the device in the embodiment of the present application includes a hardware structure and / or software module for performing each function in order to realize the above functions. In combination with the units and algorithm steps of each example described in the embodiment disclosed in this application, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present application.

[0175] In the embodiment of the present application, the components in the device, such as processor 401 and / or 407, can be divided into functional units according to the above method examples. For example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0176] Figure 16 A schematic block diagram of an electronic device provided in an embodiment of the present application is shown. The device 700 may exist in the form of software, hardware, or a combination thereof, and may also be a chip that can be used in the device. The device 700 may be located in the processor 401 and / or 407, or include the processor 401 and / or 407 and other necessary components. The device 700 includes: an acquisition module 701, a determination module 702, and a receiving module 703.

[0177] The acquisition module 701 is configured to acquire states corresponding to multiple candidate antennas of multiple radio frequency channels, wherein one radio frequency channel corresponds to one or more candidate antennas;

[0178] A determination module 702 is configured to determine X omnidirectional antennas and Y directional antennas according to states corresponding to the plurality of candidate antennas; X and Y are both positive integers;

[0179] The receiving module 703 is configured to receive information via X omnidirectional antennas and Y directional antennas.

[0180] Other actions performed by each module can refer to the relevant method descriptions of the above method embodiments.

[0181] One or more of the above modules may be implemented in software, hardware, or a combination of both. Software and hardware modules may be implemented on processor 401 and / or 407 and other necessary components. When at least part of the process is implemented in software, the software exists in the form of computer program instructions and may be stored in a computer program such as a computer program. Figure 3 The internal memory 403 shown or the external memory device connected to the external memory interface, such as Figure 3The processors 401 and / or 407 shown can be used to execute program instructions to implement the above method flow. Processors 401 and / or 407 include, but are not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor, among other types of computing devices that run software. Each computing device may include one or more cores for executing software instructions to perform operations or processing. The processor can be a separate semiconductor chip or integrated into a semiconductor chip with other circuits. For example, it can form an SoC (system on a chip) with other circuits (such as codec circuits, hardware acceleration circuits, or various bus and interface circuits). Alternatively, it can be integrated into an application-specific integrated circuit (ASIC) as a built-in processor. The ASIC with the integrated processor can be packaged separately or with other circuits. In addition to including a core for executing software instructions to perform operations or processing, the processor can further include necessary hardware accelerators, such as a field programmable gate array (FPGA), a PLD (programmable logic device), or logic circuits that implement specialized logic operations. When the above modules are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a DSP, an MCU, an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator or a non-integrated discrete device, which can run the necessary software or not rely on the software to execute the above method flow. The memory includes but is not limited to volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache.By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), high bandwidth memory (HBM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DRRAM).

[0182] Those skilled in the art will appreciate that in the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. Available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital video discs (DVDs)), or semiconductor media (eg, solid state disks (SSDs)).

[0183] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (such as infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state drive.

[0184] It should be understood that in various embodiments of the present application, the size of the sequence number of each process described above does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0185] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0186] If the functions described in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0187] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. An antenna selection method, characterized in that: The method comprises: Obtaining states corresponding to multiple candidate antennas of multiple radio frequency channels, respectively; wherein one radio frequency channel corresponds to one or more candidate antennas, the states of the candidate antennas including an operating mode of the candidate antennas, wherein the operating modes of the candidate antennas include a first mode and a second mode, the first mode being omnidirectional radiation and the second mode being directional radiation; Determine, according to the states corresponding to the plurality of candidate antennas, X first pattern antennas and Y second pattern antennas from the candidate antennas; X and Y are both positive integers; Information is received through the X first-mode antennas and the Y second-mode antennas.

2. The method according to claim 1, characterized in that Determining, according to states corresponding to the plurality of candidate antennas, X first-mode antennas and Y second-mode antennas from the candidate antennas, includes: If there is a connected first pattern antenna and a connected second pattern antenna among the multiple candidate antennas, it is determined that the X first pattern antennas include the connected first pattern antenna, and the Y second pattern antennas include the connected second pattern antenna.

3. The method according to claim 1, characterized in that Determining, according to states corresponding to the plurality of candidate antennas, X first-mode antennas and Y second-mode antennas from the candidate antennas, includes: If a connected first-mode antenna exists among the multiple candidate antennas and a connected second-mode antenna does not exist, the operating mode of a first antenna operating in the first mode among the multiple candidate antennas is switched to the second mode, where the first antenna is a first-mode antenna among the multiple candidate antennas whose channel quality is lower than a first threshold. The Y second-mode antennas include the first antenna, and the X first-mode antennas include antennas among the multiple candidate antennas excluding the first antenna.

4. The method according to claim 1, wherein Determining, according to states corresponding to the plurality of candidate antennas, X first-mode antennas and Y second-mode antennas from the candidate antennas, includes: If a connected second-mode antenna exists among the multiple candidate antennas and a connected first-mode antenna does not exist, the operating mode of a second antenna operating in the second mode among the multiple candidate antennas is switched to the first mode, where the second antenna is a second-mode antenna among the multiple candidate antennas whose channel quality is lower than a second threshold. The X first-mode antennas include the second antenna, and the Y second-mode antennas include antennas among the multiple candidate antennas excluding the second antenna.

5. The method according to any one of claims 1 to 4, characterized in that: The state of the candidate antenna also includes communication parameters of the candidate antenna, wherein the communication parameters of the candidate antenna include any one or more of the following parameters: channel state information CSI, received signal strength indication RSSI, signal-to-noise ratio SNR; the communication parameters of the candidate antenna are used to characterize the quality of the channel corresponding to the candidate antenna.

6. A device with wireless transceiver function, characterized in that: The apparatus comprises a memory and one or more processors, wherein the memory comprises instructions, and when the instructions are executed by the one or more processors, the apparatus performs the following steps: Obtaining states corresponding to multiple candidate antennas of multiple radio frequency channels of the device, respectively; wherein one radio frequency channel corresponds to one or more candidate antennas, and the states of the candidate antennas include operating modes of the candidate antennas, wherein the operating modes of the candidate antennas include a first mode and a second mode, the first mode being omnidirectional radiation and the second mode being directional radiation; Determine X first mode antennas and Y second mode antennas according to the states corresponding to the multiple candidate antennas; X and Y are both positive integers; Information is received through the X first-mode antennas and the Y second-mode antennas.

7. The device according to claim 6, characterized in that Determining, according to states corresponding to the plurality of candidate antennas, X first-mode antennas and Y second-mode antennas from the candidate antennas, includes: If there is a connected first-mode antenna and a connected second-mode antenna among the multiple candidate antennas, the apparatus determines that the X first-mode antennas include the connected first-mode antenna and the Y second-mode antennas include the connected second-mode antenna.

8. The device according to claim 6, characterized in that Determining, according to states corresponding to the plurality of candidate antennas, X first-mode antennas and Y second-mode antennas from the candidate antennas, includes: If a connected first-mode antenna exists among the multiple candidate antennas and a connected second-mode antenna does not exist, the apparatus switches the operating mode of a first antenna operating in the first mode among the multiple candidate antennas to a second mode, where the first antenna is a first-mode antenna among the multiple candidate antennas whose channel quality is lower than a first threshold, wherein the Y second-mode antennas include the first antenna, and the X first-mode antennas include antennas among the multiple candidate antennas excluding the first antenna.

9. The device according to claim 6, characterized in that Determining, according to states corresponding to the plurality of candidate antennas, X first-mode antennas and Y second-mode antennas from the candidate antennas, includes: If a connected second-mode antenna exists among the multiple candidate antennas and a connected first-mode antenna does not exist, the apparatus switches the operating mode of a second antenna operating in the second mode among the multiple candidate antennas to the first mode, where the second antenna is a second-mode antenna among the multiple candidate antennas whose channel quality is lower than a second threshold, wherein the X first-mode antennas include the second antenna, and the Y second-mode antennas include antennas among the multiple candidate antennas excluding the second antenna.

10. The device according to any one of claims 6 to 9, characterized in that: The state of the candidate antenna also includes communication parameters of the candidate antenna, wherein the communication parameters of the candidate antenna include any one or more of the following parameters: channel state information CSI, received signal strength indication RSSI, signal-to-noise ratio SNR; the communication parameters of the candidate antenna are used to characterize the quality of the channel corresponding to the candidate antenna.

11. A device with wireless transceiver function, comprising an acquisition module, a determination module and a receiving module, characterized in that: The device is configured to execute the antenna selection method according to any one of claims 1 to 5.

12. A computer-readable storage medium, characterized in that The device stores a program or instruction, which, when executed on a computer or a processor, enables the computer or processor to execute the antenna selection method according to any one of claims 1 to 5.

13. A computer program product, characterized in that The method comprises a computer program code, which, when executed on a computer or a processor, causes the computer or the processor to execute the antenna selection method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and Wireless Device for Antenna Selection

    US20140010156A1