Antenna selection method, communication module, electronic device, and storage medium
By automatically selecting the optimal combination of signal levels and controlling the antenna switch connection, the problem of low signal adjustment efficiency in 5G terminals is solved, achieving efficient antenna performance adjustment and simplified operation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- FIBOCOM WIRELESS
- Filing Date
- 2023-08-16
- Publication Date
- 2026-06-05
AI Technical Summary
In existing technologies, 5G terminal signal adjustment is inefficient and cumbersome, requiring manual adjustment of antenna position and orientation using tools to improve performance.
By acquiring the performance parameter values of N data ports under K level signal combinations, the system automatically selects the optimal level signal combination and controls the antenna switch to connect the optimal antenna to the RF port, thereby achieving automatic adjustment of antenna performance.
It improves antenna adjustment efficiency, simplifies operation procedures, and ensures that the communication module always maintains optimal performance without human intervention.
Smart Images

Figure CN117318782B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication, and more particularly to an antenna selection method, a communication module, an electronic device, and a storage medium. Background Technology
[0002] With the development of 5G technology, more and more 5G terminals are emerging, such as CPEs, MiFi devices, and routers. To achieve higher speeds, 5G terminals typically use multiple antennas to receive signals from multiple frequency bands.
[0003] In existing technologies, when the signal performance of a 5G terminal is poor, it is typically necessary to use tools such as logs or web pages to check parameters such as the Reference Singular Received Power (RSRP) and Reference Singular Received Quality (RSRQ) of each antenna. This is done to manually assess the performance of each antenna, and then adjust the antenna's position and orientation manually to improve its performance. Therefore, this method is inefficient and cumbersome. Summary of the Invention
[0004] This application provides an antenna selection method, a communication module, an electronic device, and a storage medium to solve the technical problem in the prior art that requires the use of tools to determine the performance of each antenna and to manually adjust the antenna position and direction to adjust the antenna performance, resulting in low adjustment efficiency and cumbersome operation.
[0005] In a first aspect, embodiments of this application provide an antenna selection method applied to a communication module. The communication module includes a processor, M antennas, N antenna switches, and N data ports and N radio frequency ports corresponding to the N antenna switches. The processor is connected to the N antenna switches through the N data ports. The N data ports are used to output different level signals to control the conduction state of the N antenna switches, thereby selecting different antennas to connect to the N radio frequency ports. The N radio frequency ports are used to transmit and receive radio frequency signals. N is an integer greater than or equal to 1, and M is a multiple of N. The method includes:
[0006] Obtain the K performance parameter values corresponding to the N data ports under K combinations of level signals, wherein each of the N data ports supports outputting i level signals, where i is an integer greater than 1, and K is equal to i raised to the power of N;
[0007] Based on the K performance parameter values, the optimal level signal combination is determined from the K level signal combinations, wherein the optimal level signal combination is the level signal combination corresponding to the optimal performance parameter value among the K performance parameter values;
[0008] Based on the optimal level signal combination, the N antenna switches are controlled to select N target antennas from the M antennas and connect them to the N radio frequency ports.
[0009] Optionally, determining the optimal level signal combination from the K level signal combinations based on the K performance parameter values includes:
[0010] The optimal performance parameter value is determined from the K performance parameter values;
[0011] From the K combinations of level signals, determine the level signal combination corresponding to the optimal performance parameter value;
[0012] The combination of level signals corresponding to the optimal performance parameter value is determined as the optimal level signal combination.
[0013] Optionally, before determining the combination of level signals corresponding to the optimal performance parameter value as the optimal level signal combination, the method further includes:
[0014] Determine whether the optimal performance parameter value is greater than a preset threshold;
[0015] If the optimal performance parameter value is determined to be greater than a preset threshold, the following step is performed: the combination of level signals corresponding to the optimal performance parameter value is determined as the optimal level signal combination.
[0016] Optionally, the optimal performance parameter value is used to characterize the maximum spectral efficiency of the communication module under the K level signal combinations;
[0017] Determining whether the optimal performance parameter value is greater than a preset threshold includes:
[0018] Determine whether the maximum spectral efficiency is greater than the preset threshold.
[0019] Optionally, the step of controlling the N antenna switches to select N target antennas from the M antennas and connect them to the N radio frequency ports based on the optimal level signal combination includes:
[0020] Based on the optimal combination of level signals, determine the N level signals that need to be output by the N data ports, wherein each of the N data ports corresponds one-to-one with a level signal in the N level signals;
[0021] The N data ports are controlled to output the N level signals to the N antenna switches, so that the N antenna switches, under the control of the N level signals, select the N target antennas from the M antennas and connect the N target antennas to the N radio frequency ports.
[0022] Optionally, obtaining the K performance parameter values corresponding to the N data ports under K combinations of level signals includes:
[0023] The level signal of each of the N data ports is switched sequentially, and the performance parameter value corresponding to the current level signal combination is obtained after each switch, until each of the N data ports has completed the switch.
[0024] Secondly, embodiments of this application also provide a communication module, the communication module comprising:
[0025] M antennas;
[0026] There are N antenna switches, where N is an integer greater than or equal to 1, and M is a multiple of N;
[0027] The system includes N data ports and N radio frequency ports corresponding to the N antenna switches. The N data ports are used to output different level signals to control the conduction state of the N antenna switches, so as to select different antennas to connect with the N radio frequency ports. The N radio frequency ports are used to transmit and receive radio frequency signals.
[0028] The processor is connected to the N antenna switches through the N data ports. The processor is used to acquire K performance parameter values corresponding to the N data ports under K combinations of level signals, wherein each of the N data ports supports i level signals, where i is an integer greater than 1, and K is equal to the power of i. Based on the K performance parameter values, the processor determines the optimal level signal combination from the K combinations of level signals, wherein the optimal level signal combination is the level signal combination corresponding to the optimal performance parameter value among the K performance parameter values. Based on the optimal level signal combination, the processor controls the N antenna switches to select N target antennas from the M antennas and connect them to the N radio frequency ports.
[0029] Thirdly, embodiments of this application also provide an electronic device, including the communication module described in the second aspect.
[0030] Fourthly, embodiments of this application also provide an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0031] Memory, used to store computer programs;
[0032] When a processor executes a program stored in a memory, it implements the steps of the antenna selection method described in any embodiment of the first aspect.
[0033] Fifthly, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the antenna selection method as described in any embodiment of the first aspect.
[0034] The technical solutions provided in this application have the following advantages compared with the prior art:
[0035] The method provided in this application embodiment obtains K performance parameter values corresponding to K level signal combinations for the N data ports, wherein each of the N data ports supports outputting i level signals, where i is an integer greater than 1, and K is equal to the power of i; based on the K performance parameter values, an optimal level signal combination is determined from the K level signal combinations, wherein the optimal level signal combination is the level signal combination corresponding to the optimal performance parameter value among the K performance parameter values; based on the optimal level signal combination, the N antenna switches are controlled to select N target antennas from the M antennas and connect them to the N radio frequency ports. In this way, the communication module can automatically obtain the optimal level signal combination corresponding to the optimal performance parameter value under K level signal combinations. Then, it controls N antenna switches through N data ports to select the N target antennas corresponding to the optimal level signal combination and connect them to the N radio frequency ports. This allows the communication module to automatically maintain the optimal performance state without the need to manually check the performance of each antenna using logs or web pages, or to manually adjust the antenna position and direction to adjust the antenna performance. This improves adjustment efficiency and simplifies manual operation. Attached Figure Description
[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 A flowchart illustrating an antenna selection method provided in an embodiment of this application;
[0039] Figure 2 This is a schematic diagram of the structure of a communication module provided in an embodiment of this application;
[0040] Figure 3 A flowchart illustrating yet another antenna selection method provided in an embodiment of this application;
[0041] Figure 4 This is a schematic diagram of the structure of another communication module provided in an embodiment of this application;
[0042] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0044] See Figure 1 , Figure 1 This is a flowchart illustrating an antenna selection method provided in an embodiment of this application. Figure 1 As shown, the antenna selection method may include the following steps:
[0045] Step 101: Obtain the K performance parameter values corresponding to the N data ports under the K level signal combinations. Each of the N data ports supports outputting i level signals, where i is an integer greater than 1, and K is equal to i raised to the power of N.
[0046] It should be noted that the antenna selection method provided in this application is applied to a communication module. This communication module includes a processor, M antennas, N antenna switches, and N data ports and N radio frequency (RF) ports corresponding to the N antenna switches. The processor is connected to the N antenna switches through the N data ports. The N data ports output different level signals to control the conduction state of the N antenna switches, thereby selecting different antennas to connect to the N RF ports. The N RF ports are used to transmit and receive RF signals. N is an integer greater than or equal to 1, and M is a multiple of N. For example, assuming the antenna switch is a single-pole double-throw (SPDT) switch, the data port can output two levels of signals. By setting four SPDT switches, four antennas can be expanded to eight antennas. This allows for the selection of four antennas from the eight antennas to connect to the RF ports, expanding the antenna selection range of the communication module and enabling the communication module to maintain optimal performance using the four selected antennas. The structure of this communication module is as follows: Figure 2 As shown. Specifically, Figure 2 Each antenna switch can be selectively connected to two antennas. When the data port outputs a first-level signal (e.g., a high-level signal), the RF port can be connected to the left antenna via the antenna switch; when the data port outputs a second-level signal (e.g., a low-level signal), the RF port can be connected to the right antenna via the antenna switch. Alternatively, when the data port outputs a first-level signal (e.g., a high-level signal), the RF port can be connected to the right antenna via the antenna switch; when the data port outputs a second-level signal (e.g., a low-level signal), the RF port can be connected to the left antenna via the antenna switch. This embodiment does not impose limitations. Furthermore, the antenna switch in this embodiment can also be a single-pole three-throw switch or a single-pole four-throw switch, etc., and the data port can also support three or four equal-level signal outputs depending on the type of antenna switch. The above examples do not constitute a limitation of this application.
[0047] In this step, the processor can control the level signal of each data port, thereby switching between K combinations of level signals to obtain the corresponding performance parameter value for each combination of level signals. For example, in Figure 2In the communication module shown, since each data port can output either a high-level or low-level signal, the four antenna switches can acquire a total of 16 (2 to the power of 4) combinations of level signals, thus providing 16 performance parameter values. These performance parameters can include parameters such as Reference Signal Received Power (RSRP), Reference Signal Received Quality (RSRQ), Signal-to-Interference & Noise Ratio (SINR), and Spectral Efficiency (SE).
[0048] Step 102: Based on the K performance parameter values, determine the optimal level signal combination from the K level signal combinations, where the optimal level signal combination is the level signal combination corresponding to the optimal performance parameter value among the K performance parameter values.
[0049] In this step, after obtaining K performance parameter values, these K values can be sorted to select the optimal performance parameter value. Then, based on the optimal performance parameter value, the optimal level signal combination is obtained. Here, the optimal level signal combination refers to the combination of level signals output by the N data ports of the communication module when the performance parameter values are optimal.
[0050] Step 103: Based on the optimal level signal combination, control N antenna switches to select N target antennas from M antennas and connect them to N radio frequency ports.
[0051] In this step, after determining the optimal combination of level signals, the N data ports can be controlled to output the N level signals corresponding to the optimal combination of level signals, so as to control the N antenna switches to select N target antennas from the M antennas and connect them to the N radio frequency ports.
[0052] In this embodiment, the communication module can automatically obtain the optimal level signal combination corresponding to the optimal performance parameter value under K level signal combinations. Then, it controls N antenna switches through N data ports to select N target antennas corresponding to the optimal level signal combination and connect them to N radio frequency ports. This allows the communication module to automatically maintain its optimal performance state without the need to manually check the performance of each antenna using logs or web pages, or to manually adjust the antenna position and direction to adjust the antenna performance. This improves adjustment efficiency and simplifies manual operation.
[0053] Further, step 102 above, determining the optimal level signal combination from the K level signal combinations based on the K performance parameter values, includes:
[0054] Determine the optimal performance parameter value from K performance parameter values;
[0055] From K combinations of level signals, determine the combination of level signals corresponding to the optimal performance parameter value;
[0056] The combination of level signals corresponding to the optimal performance parameter value is determined as the optimal level signal combination.
[0057] In one embodiment, when determining the optimal level signal combination, the K performance parameter values can be sorted first to select the optimal performance parameter value among the K performance parameter values. Then, based on the optimal performance parameter value, the level signal combination corresponding to the optimal performance parameter value is determined from the K level signal combinations, and this level signal combination corresponding to the optimal performance parameter value is determined as the optimal level signal combination. For example, continuing with... Figure 2 Taking the communication module shown as an example, a total of 16 performance parameter values corresponding to 16 different level signal combinations can be obtained. These 16 performance parameter values can then be sorted in descending order, and the level signal combination corresponding to the largest performance parameter value can be selected as the optimal level signal combination. This ensures that the optimal level signal combination selected by the communication module each time corresponds to the optimal performance parameter value, thus guaranteeing that the communication module signal is in an optimal state and improving the product's competitiveness.
[0058] Furthermore, before determining the optimal level signal combination corresponding to the optimal performance parameter value as the optimal level signal combination in the above steps, the method further includes:
[0059] Determine whether the optimal performance parameter value is greater than a preset threshold;
[0060] If the optimal performance parameter value is determined to be greater than the preset threshold, the following steps are performed: the combination of level signals corresponding to the optimal performance parameter value is determined as the optimal level signal combination.
[0061] In one embodiment, before determining the level signal combination corresponding to the optimal performance parameter value as the optimal level signal combination, it is also necessary to determine whether the optimal performance parameter value is greater than a preset threshold. If the optimal performance parameter value is greater than the preset threshold, the following steps are performed: determining the level signal combination corresponding to the optimal performance parameter value as the optimal level signal combination; if the optimal performance parameter value is less than or equal to the preset threshold, the state of the N antenna switches remains unchanged, that is, the currently connected antennas of the communication module remain unchanged. It should be noted that the preset threshold here can be set according to the actual situation, and this embodiment does not impose a specific limitation.
[0062] In this way, the conditions for antenna switching can be increased. The communication module will only switch the currently connected antenna when the optimal performance parameter value is greater than the preset threshold, thereby avoiding excessive antenna switching, which would affect the normal use of the communication module.
[0063] Furthermore, the optimal performance parameter value is used to characterize the maximum spectral efficiency of the communication module under the combination of K level signals;
[0064] The above steps, including determining whether the optimal performance parameter value is greater than the preset threshold, include:
[0065] Determine whether the maximum spectral efficiency is greater than a preset threshold.
[0066] In one embodiment, spectral efficiency can be selected as a performance parameter. This way, when determining whether the optimal performance parameter value is greater than a preset threshold, it is only necessary to check whether the maximum spectral efficiency is greater than the preset threshold. This approach is more accurate than using parameters such as Reference Signal Received Power (RSRP), Reference Signal Received Quality (RSRQ), or Signal-to-Noise Ratio (SINR) as performance parameters in existing technologies. This is because spectral efficiency, also known as system capacity or bandwidth utilization, is defined as the effective information rate R of the system divided by the communication channel bandwidth B, i.e., the number of bits that can be transmitted per second on a unit bandwidth channel. In other words, spectral efficiency comprehensively considers factors such as base station overload and environmental interference, thus providing a more comprehensive consideration than parameters such as Reference Signal Received Power (RSRP), Reference Signal Received Quality (RSRQ), or SINR.
[0067] Further, step 103 above, based on the optimal level signal combination, controls N antenna switches to select N target antennas from M antennas to connect with N RF ports, including:
[0068] Based on the optimal combination of level signals, determine the N level signals that need to be output from the N data ports, where each of the N data ports corresponds one-to-one with a level signal in the N level signals.
[0069] Control N data ports to output N level signals to N antenna switches, so that the N antenna switches, under the control of the N level signals, select N target antennas from M antennas and connect the N target antennas to the N RF ports.
[0070] In one embodiment, after determining the optimal combination of signal levels, the required N signal levels for output from the N data ports can be determined based on this optimal combination. Then, the N data ports are controlled to output the N signal levels to the N antenna switches. Under the control of these N signal levels, the N antenna switches select N target antennas from the M antennas and connect these N target antennas to the N RF ports. This allows the communication module to quickly find the optimal signal in weak environments or during rapid movement, ensuring the signal remains in its optimal state and thus improving the product's competitiveness.
[0071] Furthermore, step 101 above, obtaining the K performance parameter values corresponding to the N data ports under K combinations of level signals, includes:
[0072] The level signal of each of the N data ports is switched sequentially, and the performance parameter value corresponding to the current level signal combination is obtained after each switch, until each of the N data ports has been switched.
[0073] In one embodiment, when acquiring K performance parameter values, the level signal of each of the N data ports can be switched sequentially, and the corresponding performance parameter value under the current level signal combination can be acquired after each switch, until each of the N data ports has completed the switch. It should be noted that after switching the level signal combination, the spectral efficiency can be obtained by issuing a QMI-GET command, and the original spectral efficiency under that level signal combination can be updated after obtaining the spectral efficiency. In this way, the performance parameter values of the communication module can be known without manually adjusting the antenna or checking logs, resulting in a better user experience.
[0074] In one embodiment, the antenna selection process provided by this application is as follows: Figure 3 As shown, the specific steps may include the following:
[0075] Step 301: Determine whether the switching of all level signal combinations of the data port is complete.
[0076] If all level signal combinations of the data port have been switched, proceed to step 302; if all level signal combinations of the data port have not been switched, proceed to step 305.
[0077] Step 302: Obtain the maximum spectral efficiency.
[0078] Step 303: Determine whether the maximum spectral efficiency is greater than a preset threshold. This preset threshold can be a pre-set threshold value for switching spectral efficiency.
[0079] If the maximum spectral efficiency is greater than the preset threshold, then proceed to step 304; if the maximum spectral efficiency is less than or equal to the preset threshold, then end the process.
[0080] Step 304: Switch the antenna switch according to the combination of level signals corresponding to the maximum spectral efficiency.
[0081] Step 305: Continue switching the level signal combination of the data port.
[0082] Step 306: Issue the QMI-GET command to obtain the spectrum efficiency.
[0083] Step 307: Update the spectral efficiency of the current level signal combination.
[0084] Through steps 301 to 307 above, the redundant general-purpose input / output ports (GPIOs) in the radio frequency (RF) front-end design can be used to control the diversity antenna switching, facilitating operation and debugging. Furthermore, the SPEFF value for each combination can be obtained through self-adjustment to select a better antenna channel; this parameter is more accurate than previous parameters such as RSRP, RSRQ, and SINR. Additionally, end users do not need to constantly monitor the antenna placement and orientation; instead, the software automatically matches and selects the best antenna channel.
[0085] See Figure 4 This application also provides a communication module, which includes:
[0086] M antennas 410;
[0087] There are N antenna switches 420, where N is an integer greater than or equal to 1, and M is a multiple of N;
[0088] N data ports 430 and N radio frequency ports 440 are provided corresponding to N antenna switches 420. The N data ports 430 are used to output different level signals to control the conduction state of the N antenna switches 420, so as to select different antennas to connect to the N radio frequency ports 440; the N radio frequency ports 440 are used to realize the transmission and reception of radio frequency signals.
[0089] The processor 450 is connected to N antenna switches 420 through N data ports 430. The processor 450 is used to acquire K performance parameter values corresponding to K combinations of level signals for the N data ports 430. Each of the N data ports 430 supports outputting i kinds of level signals, where i is an integer greater than 1 and K is equal to the power of i. Based on the K performance parameter values, the processor 450 determines the optimal level signal combination from the K combinations of level signals. The optimal level signal combination is the level signal combination corresponding to the best performance parameter value among the K performance parameter values. Based on the optimal level signal combination, the processor 450 controls the N antenna switches 420 to select N target antennas from M antennas 410 and connect them to the N radio frequency ports 440.
[0090] Furthermore, the processor 450 is also used to determine the optimal performance parameter value from the K performance parameter values; to determine the level signal combination corresponding to the optimal performance parameter value from the K level signal combinations; and to determine the level signal combination corresponding to the optimal performance parameter value as the optimal level signal combination.
[0091] Furthermore, the processor 450 is also used to determine whether the optimal performance parameter value is greater than a preset threshold; if it is determined that the optimal performance parameter value is greater than the preset threshold, the following step is performed: the combination of level signals corresponding to the optimal performance parameter value is determined as the optimal level signal combination.
[0092] Furthermore, the optimal performance parameter value is used to characterize the maximum spectral efficiency of the communication module under the combination of K level signals; the processor 450 is also used to determine whether the maximum spectral efficiency is greater than a preset threshold.
[0093] Furthermore, the processor 450 is also used to determine the N level signals required to be output by the N data ports 430 based on the optimal combination of level signals, wherein the data ports 430 of the N data ports 430 correspond one-to-one with the level signals of the N level signals; and control the N data ports 430 to output the N level signals to the N antenna switches 420, so that the N antenna switches 420 select N target antennas from the M antennas 410 under the control of the N level signals, and connect the N target antennas to the N radio frequency ports 440.
[0094] Furthermore, the processor 450 is also used to sequentially switch the level signal of each of the N data ports 430, and obtain the corresponding performance parameter value under the current level signal combination after each switch, until each of the N data ports 430 has completed the switch.
[0095] It should be noted that the communication module provided in this application embodiment can implement the steps of the antenna selection method provided in any of the aforementioned method embodiments and can achieve the same technical effect, which will not be described in detail here.
[0096] In addition, this application embodiment also provides an electronic device, which includes the communication module in the foregoing embodiments. The electronic device provided in this application embodiment can specifically be a module capable of realizing communication functions or a terminal device containing such a module, etc., where the terminal device can be a mobile terminal or a smart terminal. A mobile terminal can specifically be at least one of a mobile phone, tablet computer, laptop computer, etc.; a smart terminal can specifically be a smart car, smartwatch, shared bicycle, smart cabinet, etc., containing a wireless communication module; a module can specifically be a wireless communication module, such as any one of a 2G communication module, 3G communication module, 4G communication module, 5G communication module, NB-IoT communication module, etc. It should be noted that this electronic device can implement the steps of the antenna selection method provided in any of the foregoing method embodiments and achieve the same technical effect, which will not be elaborated further here.
[0097] like Figure 5As shown in the illustration, this application also provides an electronic device, including a processor 511, a communication interface 512, a memory 513, and a communication bus 514, wherein the processor 511, the communication interface 512, and the memory 513 communicate with each other via the communication bus 514.
[0098] Memory 513 is used to store computer programs;
[0099] In one embodiment of this application, when the processor 511 executes the program stored in the memory 513, it implements the antenna selection method provided in any of the foregoing method embodiments, including:
[0100] Obtain the K performance parameter values corresponding to N data ports under K combinations of level signals, where each of the N data ports supports outputting i level signals, where i is an integer greater than 1, and K is equal to i raised to the power of N;
[0101] Based on K performance parameter values, the optimal level signal combination is determined from K level signal combinations, where the optimal level signal combination is the level signal combination corresponding to the best performance parameter value among the K performance parameter values;
[0102] Based on the optimal combination of level signals, control N antenna switches to select N target antennas from M antennas and connect them to N radio frequency ports.
[0103] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the antenna selection method provided in any of the foregoing method embodiments.
[0104] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0105] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. An antenna selection method, characterized in that, An application is made in a communication module, the communication module including a processor, M antennas, N antenna switches, and N data ports and N radio frequency ports corresponding to the N antenna switches. The processor is connected to the N antenna switches through the N data ports. The N data ports are used to output different level signals to control the conduction state of the N antenna switches, thereby selecting different antennas to connect to the N radio frequency ports. The N radio frequency ports are used to transmit and receive radio frequency signals. N is an integer greater than or equal to 1, and M is a multiple of N. The method includes: Obtain the K performance parameter values corresponding to the N data ports under K combinations of level signals, wherein each of the N data ports supports outputting i level signals, where i is an integer greater than 1, and K is equal to i raised to the power of N; Based on the K performance parameter values, the optimal level signal combination is determined from the K level signal combinations, wherein the optimal level signal combination is the level signal combination corresponding to the optimal performance parameter value among the K performance parameter values; Based on the optimal level signal combination, the N antenna switches are controlled to select N target antennas from the M antennas and connect them to the N radio frequency ports.
2. The method according to claim 1, characterized in that, The step of determining the optimal level signal combination from the K level signal combinations based on the K performance parameter values includes: The optimal performance parameter value is determined from the K performance parameter values; From the K combinations of level signals, determine the level signal combination corresponding to the optimal performance parameter value; The combination of level signals corresponding to the optimal performance parameter value is determined as the optimal level signal combination.
3. The method according to claim 2, characterized in that, Before determining the optimal performance parameter value corresponding to the combination of level signals as the optimal level signal combination, the method further includes: Determine whether the optimal performance parameter value is greater than a preset threshold; If the optimal performance parameter value is determined to be greater than a preset threshold, the following step is performed: the combination of level signals corresponding to the optimal performance parameter value is determined as the optimal level signal combination.
4. The method according to claim 3, characterized in that, The optimal performance parameter value is used to characterize the maximum spectral efficiency of the communication module under the K level signal combinations; Determining whether the optimal performance parameter value is greater than a preset threshold includes: Determine whether the maximum spectral efficiency is greater than the preset threshold.
5. The method according to claim 1, characterized in that, The step of controlling the N antenna switches to select N target antennas from the M antennas and connect them to the N radio frequency ports based on the optimal level signal combination includes: Based on the optimal combination of level signals, determine the N level signals that need to be output by the N data ports, wherein each of the N data ports corresponds one-to-one with a level signal in the N level signals; The N data ports are controlled to output the N level signals to the N antenna switches, so that the N antenna switches, under the control of the N level signals, select the N target antennas from the M antennas and connect the N target antennas to the N radio frequency ports.
6. The method according to claim 1, characterized in that, The step of obtaining the K performance parameter values corresponding to the N data ports under K combinations of level signals includes: The level signal of each of the N data ports is switched sequentially, and the performance parameter value corresponding to the current level signal combination is obtained after each switch, until each of the N data ports has completed the switch.
7. A communication module, characterized in that, The communication module includes: M antennas; There are N antenna switches, where N is an integer greater than or equal to 1, and M is a multiple of N; The system includes N data ports and N radio frequency ports corresponding to the N antenna switches. The N data ports are used to output different level signals to control the conduction state of the N antenna switches, so as to select different antennas to connect with the N radio frequency ports. The N radio frequency ports are used to transmit and receive radio frequency signals. The processor is connected to the N antenna switches through the N data ports. The processor is used to acquire K performance parameter values corresponding to the N data ports under K combinations of level signals, wherein each of the N data ports supports i level signals, where i is an integer greater than 1, and K is equal to the power of i. Based on the K performance parameter values, the processor determines the optimal level signal combination from the K combinations of level signals, wherein the optimal level signal combination is the level signal combination corresponding to the optimal performance parameter value among the K performance parameter values. Based on the optimal level signal combination, the processor controls the N antenna switches to select N target antennas from the M antennas and connect them to the N radio frequency ports.
8. An electronic device, characterized in that, Includes the communication module as described in claim 7.
9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in a memory, it implements the steps of the antenna selection method according to any one of claims 1-6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the antenna selection method as described in any one of claims 1-6.