Antenna switching method and device, electronic equipment and storage medium

By acquiring and analyzing the reference signal reception power of the communication antenna and switching to the target antenna that meets the preset conditions, the problem of low antenna utilization in the prior art is solved, communication efficiency and signal strength are improved, and cost is reduced.

CN119030571APending Publication Date: 2024-11-26BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310601993.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The antenna switching method in the existing communication module fails to effectively improve the antenna utilization rate, resulting in a decrease in communication efficiency. Especially under the influence of antenna direction, angle and base station position, the optimal antenna cannot be selected.

Method used

By obtaining the reference signal reception power of the current antenna, it is determined whether the preset condition is met. If it is satisfied, it is switched to the target antenna to reduce signal attenuation, and the priority order is the first target state, the second target state and the third target state.

Benefits of technology

It improves the switching flexibility of communication antennas, avoids the antenna being blocked, improves signal strength, and reduces the number of switching switch interfaces, and reduces the cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030571A_ABST
    Figure CN119030571A_ABST
Patent Text Reader

Abstract

The invention relates to an antenna switching method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring the current reference signal receiving power of a communication antenna in a working state in a current state; then, a preset condition met by the current reference signal receiving power is determined, and a target state corresponding to the preset condition is obtained; the target state comprises a target antenna to be switched; and then switching from the communication antenna to a target antenna corresponding to the target state. Therefore, by switching to the target antenna, the flexibility of switching the communication antenna can be improved, the antenna can be prevented from being shielded, and the signal strength of the electronic equipment can be improved. Moreover, in the embodiment, only the current reference signal receiving power in the working state is obtained, and the receiving power of other antennas does not need to be obtained, so that the number of interfaces occupied by the change-over switch can be reduced, that is, the change-over switch with fewer interfaces is used, and the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of control technology, and in particular to an antenna switching method and device, an electronic device, and a storage medium. Background Art

[0002] The communication functions of electronic devices (such as smartphones and tablets) are becoming more and more powerful, and the communication modules required are becoming more and more complex. For example, the communication modules contain more and more communication antennas.

[0003] Existing communication modules typically use multiple antenna switching to improve antenna utilization. However, in practice, the antennas used by electronic devices are not optimal due to factors such as antenna direction, angle, and base station location, reducing communication efficiency. Summary of the Invention

[0004] The present disclosure provides an antenna switching method and device, an electronic device, and a storage medium to address the deficiencies of related technologies.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an antenna switching method, applied to an electronic device including a communication antenna, the method comprising:

[0006] Obtaining a current reference signal received power of a communication antenna in a current working state;

[0007] Determining a preset condition satisfied by the current reference signal received power, and obtaining a target state corresponding to the preset condition; the target state includes a target antenna to be switched;

[0008] Switch from the communication antenna to the target antenna corresponding to the target state.

[0009] Optionally, obtaining a current reference signal received power of a communication antenna that is currently in an operating state includes:

[0010] Obtaining a first reference signal received power of a communication antenna that is currently in an operating state;

[0011] Randomly switching the communication antenna to another communication antenna that is not in a working state, and then obtaining a second reference signal received power of the communication antenna that is in a working state after the antenna is switched;

[0012] Determine the first reference signal received power and the second reference signal received power as the current reference signal received power.

[0013] Optionally, the preset condition is used to represent the change in the current reference signal receiving power to determine whether the communication antenna is in a blocked working scenario; the target state is used to represent the next state to be switched to by the communication antenna, and the attenuation of the reference signal receiving power of the communication antenna in the target state is less than the attenuation of the reference signal receiving power in the current state.

[0014] Optionally, determining a preset condition satisfied by the current reference signal received power, and obtaining a target state corresponding to the preset condition includes:

[0015] Obtaining a difference between the reference signal received power of the primary transmitting antenna and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power;

[0016] When it is determined that the difference is greater than or equal to the preset attenuation threshold, determining that the current reference signal received power meets a first preset condition; the first preset condition indicates that the main set transmitting antenna of the communication antenna is blocked;

[0017] A first target state corresponding to the first preset condition is obtained.

[0018] Optionally, the current reference signal received power satisfies the first preset condition, including that the reference signal received power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal received power of the auxiliary receiving antenna has no attenuation.

[0019] Optionally, determining a preset condition satisfied by the current reference signal received power, and obtaining a target state corresponding to the preset condition includes:

[0020] Obtaining a difference between the reference signal received power of the primary transmitting antenna and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power;

[0021] When it is determined that the difference is less than the preset attenuation threshold and the reference signal received power of the main set transmitting antenna is less than the first preset threshold, determining that the current reference signal received power meets a second preset condition; the second preset condition indicates that the main set transmitting antenna and the auxiliary receiving antenna of the communication antenna are blocked at the same time;

[0022] A second target state corresponding to the second preset condition is obtained.

[0023] Optionally, the current reference signal received power satisfies the second preset condition, including that the reference signal received power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal received power of the auxiliary receiving antenna maintains the preset attenuation amount unchanged.

[0024] Optionally, the current reference signal receiving power satisfies the second preset condition, including that the reference signal receiving power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, the reference signal receiving power of the auxiliary receiving antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal receiving power attenuation amount of another communication antenna is the difference.

[0025] Optionally, determining a preset condition satisfied by the current reference signal received power, and obtaining a target state corresponding to the preset condition includes:

[0026] Obtaining a difference between the reference signal received power of the primary set transmitting antenna in the current reference signal received power and the reference signal received power of the primary set transmitting antenna in a previous period;

[0027] When the difference is less than a preset difference threshold and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power is less than a second preset threshold, determining that the current reference signal received power meets a third preset condition; the third preset condition indicates that the auxiliary receiving antenna of the communication antenna is blocked;

[0028] A second target state corresponding to the second preset condition is obtained.

[0029] Optionally, the current reference signal received power satisfies a third preset condition, including that the reference signal received power of the main set transmitting antenna remains in an unattenuated state, and the attenuation of the reference signal received power of the auxiliary receiving antenna is the difference.

[0030] Optionally, the current reference signal receiving power satisfies a third preset condition, including that the reference signal receiving power of the main set transmitting antenna remains in an unattenuated state; the attenuation of the reference signal receiving power of the auxiliary receiving antenna is the difference, and the attenuation of the reference signal receiving power of another communication antenna is the difference.

[0031] Optionally, the order of priority of the target states is: first target state, second target state and third target state.

[0032] Optionally, the operating frequency of the communication antenna is B39 or B40.

[0033] According to a second aspect of an embodiment of the present disclosure, there is provided an antenna switching device, applied to an electronic device including a communication antenna, the device including:

[0034] A receiving power acquisition module is used to obtain the current reference signal receiving power of the communication antenna in the current working state;

[0035] a target state acquisition module, configured to determine a preset condition satisfied by the current reference signal received power, and obtain a target state corresponding to the preset condition; the target state includes a target antenna to be switched;

[0036] The communication antenna switching module is used to switch from the communication antenna to the target antenna corresponding to the target state.

[0037] Optionally, the receiving power acquisition module includes:

[0038] A first power acquisition submodule, configured to acquire a first reference signal received power of a communication antenna that is currently in an operating state;

[0039] A second power acquisition submodule is used to randomly switch the communication antenna to another communication antenna that is in a non-working state, and then obtain a second reference signal received power of the communication antenna that is in a working state after the antenna is switched;

[0040] The current power acquisition submodule is configured to determine the first reference signal received power and the second reference signal received power as the current reference signal received power.

[0041] Optionally, the preset condition is used to represent the change in the current reference signal receiving power to determine whether the communication antenna is in a blocked working scenario; the target state is used to represent the next state to be switched to by the communication antenna, and the attenuation of the reference signal receiving power of the communication antenna in the target state is less than the attenuation of the reference signal receiving power in the current state.

[0042] Optionally, the target state acquisition module includes:

[0043] a power difference acquiring unit, configured to acquire a difference between the reference signal received power of the primary transmitting antenna and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power;

[0044] a preset condition determining unit, configured to, when determining that the difference is greater than or equal to a preset attenuation threshold, determine that the current reference signal received power satisfies a first preset condition; wherein the first preset condition indicates that the main set transmitting antenna of the communication antenna is blocked;

[0045] The first state acquisition unit is configured to acquire a first target state corresponding to the first preset condition.

[0046] Optionally, the current reference signal received power satisfies the first preset condition, including that the reference signal received power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal received power of the auxiliary receiving antenna has no attenuation.

[0047] Optionally, the target state acquisition module includes:

[0048] a power difference acquiring unit, configured to acquire a difference between the reference signal received power of the primary transmitting antenna and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power;

[0049] A preset condition determination unit is used to determine that the current reference signal reception power meets a second preset condition when it is determined that the difference is less than a preset attenuation threshold and the reference signal reception power of the main set transmitting antenna is less than a first preset threshold; the second preset condition indicates that the main set transmitting antenna and the auxiliary receiving antenna of the communication antenna are blocked at the same time.

[0050] Optionally, the current reference signal received power satisfies the second preset condition, including that the reference signal received power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal received power of the auxiliary receiving antenna maintains the preset attenuation amount unchanged.

[0051] Optionally, the current reference signal receiving power satisfies the second preset condition, including that the reference signal receiving power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, the reference signal receiving power of the auxiliary receiving antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal receiving power attenuation amount of another communication antenna is the difference.

[0052] Optionally, the target state acquisition module includes:

[0053] a power difference acquiring unit, configured to acquire a difference between the reference signal received power of the primary set transmitting antenna in the current reference signal received power and the reference signal received power of the primary set transmitting antenna in the previous period;

[0054] a preset condition determining unit, configured to determine that the current reference signal received power satisfies a third preset condition when the difference is less than a preset difference threshold and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power is less than a second preset threshold; the third preset condition indicating that the auxiliary receiving antenna of the communication antenna is blocked;

[0055] The second state acquisition unit is configured to acquire a second target state corresponding to the second preset condition.

[0056] Optionally, the current reference signal received power satisfies a third preset condition, including that the reference signal received power of the main set transmitting antenna remains in an unattenuated state, and the attenuation of the reference signal received power of the auxiliary receiving antenna is the difference.

[0057] Optionally, the current reference signal receiving power satisfies a third preset condition, including that the reference signal receiving power of the main set transmitting antenna remains in an unattenuated state; the attenuation of the reference signal receiving power of the auxiliary receiving antenna is the difference, and the attenuation of the reference signal receiving power of another communication antenna is the difference.

[0058] Optionally, the order of priority of the target states is: first target state, second target state and third target state.

[0059] Optionally, the operating frequency of the communication antenna is B39 or B40.

[0060] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0061] communications antennas, memory, and processors;

[0062] The memory is used to store a computer program executable by the processor;

[0063] The processor is configured to execute the computer program in the memory to implement the method as described in any one of the first aspects.

[0064] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, which, when an executable computer program in the storage medium is executed by a processor, can implement the method described in any one of the first aspects.

[0065] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0066] The solution provided by the embodiment of the present disclosure can obtain the current reference signal received power of the communication antenna in the working state in the current state; then, determine the preset conditions satisfied by the current reference signal received power, and obtain the target state corresponding to the preset conditions; the target state includes the target antenna to be switched; thereafter, switch from the communication antenna to the target antenna corresponding to the target state. In this way, by switching to the target antenna in this embodiment, the flexibility of switching the communication antenna can be improved, and the antenna can be prevented from being blocked (commonly known as "holding"), which is beneficial to improving the signal strength of the electronic device. Moreover, in this embodiment, only the current reference signal received power in the working state is obtained without obtaining the received power of other antennas, which can reduce the number of interfaces of the occupied switching switch, that is, use a switching switch with fewer interfaces, thereby reducing costs.

[0067] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0069] Figure 1 It is a block diagram of an electronic device according to an exemplary embodiment.

[0070] Figure 2 The figure is a communication link diagram of an electronic device in state 0 according to an exemplary embodiment.

[0071] Figure 3 The figure is a flow chart showing an antenna switching method according to an exemplary embodiment.

[0072] Figure 4 The figure is a schematic diagram showing the correspondence between a communication antenna and its functions according to an exemplary embodiment.

[0073] Figure 5 The flowchart of obtaining a first working state is shown according to an exemplary embodiment.

[0074] Figure 6 The figure is a flow chart showing a method of obtaining a second working state according to an exemplary embodiment.

[0075] Figure 7 The flowchart of obtaining the third working state is shown according to an exemplary embodiment.

[0076] Figures 8 to 16 The figures are communication link diagrams of an electronic device in states 1 to 9 according to an exemplary embodiment.

[0077] Figure 17 The figure is a block diagram showing an antenna switching device according to an exemplary embodiment.

[0078] Figure 18 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0079] Exemplary embodiments will be described in detail herein, with examples shown in the accompanying drawings. When the following description refers to the drawings, identical numbers in different drawings represent identical or similar elements, unless otherwise indicated. The exemplary embodiments described below do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure, as detailed in the appended claims. It should be noted that, unless there is a conflict, the features of the following embodiments and implementations may be combined with each other.

[0080] To solve the above technical problems, the embodiments of the present disclosure provide an antenna switching method and apparatus, an electronic device, and a storage medium, which can be applied to electronic devices. Figure 1 The electronic device includes an antenna module, which includes at least one communication antenna. The communication antenna can be a MIMO (Multiple-Input Multiple-Output) antenna, such as a 2x2 MIMO or 4x4 MIMO antenna. The communication antenna supports multiple communication functions, such as cellular communication, Wi-Fi communication, Bluetooth communication, GPS communication, and NFC communication. The communication antenna operates in at least one of the following standards: LTE, GSM, CDMA, WCDMA, and NR. Furthermore, the communication antenna can operate in multiple frequency bands. Taking the LTE standard as an example, the frequency bands include, but are not limited to, B1, B3, B4, B5, B8, B26, B34, B38, B39, B40, and B41. It is understood that the operating standards and frequency bands supported by the communication antenna can be set according to specific scenarios and are not limited here. The solution provided in the embodiments of the present disclosure is applicable to the switching control of the B39 / B40 frequency band in the antenna module.

[0081] In one embodiment, the antenna module of an electronic device includes four communication antennas: a first antenna A0, a second antenna A1, a third antenna A2, and a fourth antenna A3. The electronic device also includes a switching network comprising two cascaded 3P3T switches and one 2P2T switch to control switching of the four communication antennas. The two 3P3T switches and the one 2P2T switch are referred to as the first switching switch, the second switching switch, and the third switching switch, respectively, for ease of description.

[0082] See also Figure 2 The first end of the first switching switch SW1 is electrically connected to the third antenna A2, the second end of the first switching switch SW1 is electrically connected to the fourth antenna A3, and the third end of the first switching switch SW1 is electrically connected to the fourth end of the second switching switch SW2; the fourth end of the first switching switch SW1 is electrically connected to the first RF circuit, the fifth end of the first switching switch SW1 is electrically connected to the third RF circuit, and the sixth end of the first switching switch SW1 is electrically connected to the first end of the second switching switch SW2.

[0083] The second end of the second switching switch SW2 is electrically connected to the second antenna A1, the third end of the second switching switch SW2 is electrically connected to the second antenna A1, the fifth end of the second switching switch SW2 is electrically connected to the second RF circuit and the third RF circuit respectively, and the sixth end of the second switching switch SW2 is electrically connected to other RF circuits (not shown in the figure).

[0084] The first end of the third switching switch SW3 is electrically connected to the second antenna A1, the second end of the third switching switch SW3 is electrically connected to the first antenna A0, the third end of the third switching switch SW3 is electrically connected to the fourth RF circuit, and the fourth end of the third switching switch SW3 is electrically connected to the fourth RF circuit.

[0085] It should be noted that Figure 2 FL1, FL2 and FL3 represent signal switches, respectively, switching to different paths.

[0086] Continue to see Figure 2 , only two communication antennas of the first antenna A0, the second antenna A1, the third antenna A2 and the fourth antenna A3 are in working state at each moment, and Figure 2 The example illustrates a signal link where the third antenna A2 passes through the first switching switch SW1 to reach the first RF circuit PA1 when the third antenna A2 is used as the main transmitting antenna, and a signal link where the fourth antenna A3 passes through the first switching switch SW1 to reach the fourth RF circuit PA3 when the fourth antenna A3 is used as the auxiliary receiving antenna.

[0087] In this way, in this embodiment, only two of the four antennas can be operated through the first switch SW1 , the second switch SW2 , and the third switch SW3 , thereby achieving the effect of transmitting and receiving data.

[0088] based on Figure 1 The electronic device shown in the figure, the embodiment of the present disclosure also provides an antenna switching method, Figure 3 FIG. 1 is a flow chart showing an antenna switching method according to an exemplary embodiment. Figure 3 , an antenna switching method, including steps 31 to 33.

[0089] In step 31, the current reference signal received power of the communication antenna in the current working state is obtained.

[0090] In this embodiment, the electronic device can obtain the current Reference Signal Received Power (RSRP) of the communication antenna. RSRP is the average of the signal power received on all REs (resource elements) that carry the reference signal within a symbol, that is, the subcarrier power. When the carrier bandwidth is known, the subcarriers of the carrier can be determined and the RSRP can be calculated based on the subcarriers. The method for obtaining RSRP can refer to related technologies and is not limited here.

[0091] It should be noted that in this embodiment, the electronic device only obtains the current reference signal received power of the communication antenna in the working state. For example, the electronic device is provided with four communication antennas, namely the first antenna A0, the second antenna A1, the third antenna A2 and the fourth antenna A3. The functions of each communication antenna are as follows: Figure 4 See Figure 4 The third antenna A2 is used as the main transmitting antenna and the main receiving antenna, the fourth antenna A3 is used as the auxiliary receiving antenna, the second antenna A1 is used as the backup main receiving antenna, and the first antenna A0 is used as the backup auxiliary receiving antenna.

[0092] At a certain moment, the third antenna A2 and the fourth antenna A3 are in an active state (i.e., in the "ON" state), and the electronic device can obtain the RSRP of the third antenna A2 and the fourth antenna A3. As for the first antenna A0 and the second antenna A1, they are in an inactive state (i.e., in the "OFF" state), and the electronic device does not obtain the RSRP of the first antenna A0 and the second antenna A1. In other words, because the first antenna A0 and the second antenna A1 are in an inactive state, they do not report RSRP, and therefore the electronic device cannot obtain the RSRP of these two antennas.

[0093] In some possible embodiments, the electronic device may need to obtain the reference signal received power of a communication antenna that is not in operation. In this case, the electronic device may obtain the reference signal received power of the communication antenna that is currently in operation as the first reference signal received power. The electronic device may then switch a communication antenna that is in operation to a communication antenna that is not in operation, and then obtain the reference signal received power of the communication antenna that is currently in operation as the second reference signal received power. Finally, the communication antenna is switched back to the communication antenna corresponding to the first reference signal received power. At this point, the electronic device may determine that the first reference signal received power and the second reference signal received power are the current reference signal received power.

[0094] For example, in the current state, the third antenna A2 and the fourth antenna A3 are in operation. In this example, the third antenna A2 can be switched to the second antenna A1. In this case, the second antenna A1 and the fourth antenna A3 are now in operation, and the reference signal received power of the second antenna A1 and the fourth antenna A3 is obtained. Afterwards, the second antenna A1 is switched back to the third antenna A2. In this way, the electronic device can use the reference signal received power of the second antenna A1, the third antenna A2, and the fourth antenna A3 as the current reference signal received power of the currently operating communication antenna.

[0095] In step 32, a preset condition satisfied by the current reference signal received power is determined, and a target state corresponding to the preset condition is obtained; the target state includes a target antenna to be switched.

[0096] In this embodiment, the electronic device may determine the target antenna to be switched based on the current reference signal received power. For example, the electronic device may determine a preset condition satisfied by the current reference signal received power; then, the electronic device may determine a target state corresponding to the preset condition, where the target state includes the target antenna to be switched.

[0097] In one example, see Figure 5 The electronic device determines the preset conditions satisfied by the current reference signal received power and obtains the target state corresponding to the preset conditions, including steps 51 to 53.

[0098] In step 51, the difference between the reference signal received power of the primary transmitting antenna and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power is obtained.

[0099] In this step, the electronic device can obtain the reference signal power of the main set transmitting antenna TX in the current reference signal receiving power, and obtain the reference signal power of the auxiliary receiving antenna DRX in the current reference signal receiving power; then, the electronic device can obtain the difference between the reference signal power of the main set transmitting antenna TX and the reference signal power of the auxiliary receiving antenna DRX.

[0100] In step 52, when it is determined that the difference is greater than or equal to the preset attenuation threshold, it is determined that the current reference signal received power meets a first preset condition; the first preset condition indicates that the main set transmitting antenna of the communication antenna is blocked.

[0101] In this step, the electronic device stores a preset attenuation threshold value, which can range from -5dB to -20dB. Technicians can set it according to specific scenarios, and the corresponding solution falls within the scope of protection of this disclosure. In this way, the electronic device can obtain the preset attenuation threshold value from the specified location.

[0102] In this step, the electronic device may compare the difference obtained in step 41 with the preset attenuation threshold. If the difference is greater than or equal to the preset attenuation threshold, the electronic device may determine that the current reference signal received power meets a first preset condition. The first preset condition indicates that the primary transmit antenna of the communication antenna is blocked.

[0103] In step 53, a first target state corresponding to the first preset condition is obtained.

[0104] In this step, due to the obstruction of the primary transmit antenna TX, the reference signal received power of the primary transmit antenna is attenuated more than the attenuation of the auxiliary receive antenna DRX. When the attenuation exceeds a preset attenuation threshold, antenna switching is triggered, and the electronic device can obtain a target state corresponding to the first preset condition. In this disclosure, the target state corresponding to the first preset condition is referred to as the first target state to distinguish it from the subsequent second target state or third target state.

[0105] It should be noted that the first target state includes the state of each communication antenna. In one example, the function and state of each communication antenna can be found in Figure 3 The second target state or the third target state in the subsequent embodiments also includes the state of each communication antenna, which will not be described in detail later.

[0106] In one example, the current reference signal received power satisfies the first preset condition, including that the reference signal received power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal received power of the auxiliary receiving antenna has no attenuation.

[0107] In another example, see Figure 6 , the electronic device determines the preset conditions satisfied by the current reference signal received power, including steps 61 to 63.

[0108] In step 61, the difference between the reference signal received power of the primary transmitting antenna and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power is obtained.

[0109] In this step, the solution for obtaining the difference in step 61 is the same as the solution for obtaining the difference in step 51 . For details, please refer to the content of step 51 and will not be repeated here.

[0110] In step 62, when it is determined that the difference is less than the preset attenuation threshold and the reference signal receiving power of the main set transmitting antenna is less than the first preset threshold, it is determined that the current reference signal receiving power meets the second preset condition; the second preset condition indicates that the main set transmitting antenna and the auxiliary receiving antenna of the communication antenna are blocked at the same time.

[0111] In this step, the electronic device determines that the difference is less than the preset attenuation threshold in a similar manner to the determination in step 42 that the difference is greater than or equal to the preset attenuation threshold. For details, please refer to step 42 and will not be repeated here.

[0112] In this step, the electronic device stores a first preset threshold value. The value range of the first preset threshold value can be set according to the specific scenario, for example, -10dB to -30dB, and the corresponding solution falls within the scope of protection of this disclosure. The electronic device can compare the reference signal received power of the primary set transmitting antenna with the first preset threshold value.

[0113] When it is determined that the difference is less than a preset attenuation threshold and the reference signal received power of the primary transmit antenna is less than a first preset threshold, the electronic device may determine that the current reference signal received power satisfies a second preset condition. The second preset condition indicates that both the primary transmit antenna and the auxiliary receive antenna of the communication antenna are blocked.

[0114] In step 63, a second target state corresponding to the second preset condition is obtained.

[0115] In this step, because both the primary transmit antenna TX and the auxiliary receive antenna DRX are blocked, the attenuation of the reference signal received power of both antennas approaches the same level. When the attenuation of the primary transmit antenna TX exceeds a first preset threshold, antenna switching is triggered. At this point, the electronic device can obtain a target state corresponding to a second preset condition. In this disclosure, the target state corresponding to the second preset condition is referred to as the second target state, to distinguish it from the first target state or the third target state.

[0116] In one example, the current reference signal received power satisfies the second preset condition, including that the reference signal received power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal received power of the auxiliary receiving antenna maintains the preset attenuation amount unchanged.

[0117] In another example, the current reference signal receiving power satisfies the second preset condition, including that the reference signal receiving power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, the reference signal receiving power of the auxiliary receiving antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal receiving power attenuation amount of another communication antenna is the difference.

[0118] In another example, see Figure 7 The electronic device determines the preset conditions satisfied by the current reference signal received power and obtains the target state corresponding to the preset conditions, including steps 71 to 73.

[0119] In step 71, a difference between the reference signal received power of the primary set of transmitting antennas in the current reference signal received power and the reference signal received power of the primary set of transmitting antennas in the previous period is obtained.

[0120] In this step, the solution for obtaining the difference in step 71 is the same as the solution for obtaining the difference in step 51 . For details, please refer to the content of step 51 and will not be repeated here.

[0121] In step 72, when the difference is less than the preset difference threshold and the reference signal receiving power of the auxiliary receiving antenna in the current reference signal receiving power is less than the second preset threshold, it is determined that the current reference signal receiving power meets the third preset condition; the third preset condition indicates that the auxiliary receiving antenna of the communication antenna is blocked.

[0122] In this step, the solution for determining whether the third preset condition is satisfied in step 72 is similar to the solution for determining whether the second preset condition is satisfied in step 62, with the difference being that the first preset threshold in step 62 is replaced by the second preset threshold in step 72, and the second preset condition in step 62 is replaced by the third preset condition in step 72. For details, please refer to the content of step 62, which will not be repeated here.

[0123] In step 73, a third target state corresponding to the third preset condition is obtained.

[0124] In this step, because the auxiliary receive antenna DRX is blocked, or the auxiliary receive antenna and another unconnected antenna (non-TX antenna) are blocked simultaneously, the reference signal received power of the main transmit antenna TX remains substantially unchanged, while the attenuation of the auxiliary receive antenna DRX exceeds the second preset threshold. At this time, antenna switching needs to be triggered, and the electronic device can obtain a target state corresponding to the third preset condition. In this disclosure, the target state corresponding to the third preset condition is referred to as the third target state to distinguish it from the first target state or the second target state.

[0125] It should be noted that when determining whether the other non-TX antenna is blocked in step 73, the antenna will be switched to in advance and the RSRP corresponding to the antenna will be obtained. It can be determined whether the RSRP of the antenna is greater than or equal to the RSRP of the communication antenna in the current state, thereby determining whether the non-TX antenna is blocked.

[0126] In one example, the current reference signal received power satisfies the third preset condition, including that the reference signal received power of the main set transmitting antenna remains in an unattenuated state, and the attenuation of the reference signal received power of the auxiliary receiving antenna is the difference.

[0127] In another example, the current reference signal receiving power satisfies the third preset condition, including that the reference signal receiving power of the main set transmitting antenna remains in an unattenuated state; the attenuation amount of the reference signal receiving power of the auxiliary receiving antenna is the difference, and the attenuation amount of the reference signal receiving power of another communication antenna is the difference.

[0128] In step 33, the communication antenna is switched to the target antenna corresponding to the target state.

[0129] In this embodiment, the electronic device switches from the communication antenna to the target antenna corresponding to the target state.

[0130] It should be noted that in this embodiment, the process of switching the communication antenna from the current state to the first target state can be referred to as sensing transmit antenna switching (STx); the process of switching the communication antenna from the current state to the second target state can be referred to as blind transmit antenna switching (BTx); and the process of switching the communication antenna from the current state to the third target state can be referred to as blind receive antenna switching (BRx). In this embodiment, the priority order of the electronic device switching to each target state is: first target state, second target state, and third target state, that is, STx>BTx>BRx.

[0131] In combination with the above-mentioned manner, the embodiment of the present disclosure provides a state switching table for switching the communication antenna from the current state to the target state, as shown in Table 1.

[0132] Table 1 State switching table

[0133]

[0134] It should be noted that Table 1 only illustrates a schematic diagram of the state switching of the communication antenna of an electronic device in some scenarios. Technicians can adjust the state switching table according to specific scenarios, and the corresponding solutions fall within the scope of protection of this disclosure.

[0135] Among them, the communication link in State0 is as follows Figure 2 As shown, the communication links in states State1 to State9 are respectively as follows: Figures 8 to 16 shown.

[0136] In one example, see Figure 2 and Figure 8 , taking the current state as State0 in Table 1 as an example, under the end condition STx>BTx>BRx, the processes of STx, BTx and BRx are respectively:

[0137] (1)STx

[0138] Referring to Table 1, the content in the row where the first state state0 is located and the column where STx is located is state0<—>1, which is explained as follows:

[0139] The current state is the first state state0, which includes: the main set transmitting antenna TX is the third antenna A2, the main set receiving antenna PRX is the third antenna A2 and the auxiliary receiving antenna DRX is the fourth antenna A3; and the reference signal receiving power of the third antenna A2 and the fourth antenna A3 is not attenuated.

[0140] Variable: The reference signal received power P0 of the third antenna A2 is attenuated by more than 9 dB.

[0141] The first preset condition is that the reference signal receiving power P1 of the fourth antenna A3 is not attenuated and the reference signal receiving power P0 of the third antenna A2 is attenuated by more than 9dB, that is, P0-P9<=-9, that is, the preset attenuation threshold is -9dB, at which time STx switching is triggered.

[0142] The first target state is the second state state1, which includes: the main set of transmitting antennas TX is the fourth antenna A3, the main set of receiving antennas PRX is the third antenna A2, and the auxiliary receiving antenna DRX is the fourth antenna A3.

[0143] (2)BTx

[0144] In the first state, state0 is located in the row and BTx is located in the column, and the content is state0<—>2 or state0<—>3, which is explained as follows:

[0145] (21)state0<—>2

[0146] The current state is the first state state0, which includes: the main set transmitting antenna TX is the third antenna A2, the main set receiving antenna PRX is the third antenna A2 and the auxiliary receiving antenna DRX is the fourth antenna A3; the reference signal power P0 of the third antenna A2 is not attenuated, and the reference signal power P1 of the fourth antenna A3 is attenuated by 13dB.

[0147] Variable: The third antenna A2 has an attenuation of 13 dB.

[0148] At this time, the reference signal receiving power P0 of the third antenna A2 and the reference signal receiving power P1 of the fourth antenna A3 have the same attenuation, and the difference between the two is less than the preset attenuation threshold, which can be 0.5dB, and the attenuation value of the reference signal receiving power of the third antenna A2 is less than the first preset threshold, which can be -10dB, triggering BTx switching.

[0149] The second target state is the third state state2, which includes: the main set of transmitting antennas TX is the second antenna A1, the main set of receiving antennas PRX is the second antenna A1, and the auxiliary receiving antennas DRX is the fourth antenna A3.

[0150] (22)state0<—>3

[0151] The current state is the first state state0, which includes: the main set transmitting antenna TX is the third antenna A2, the main set receiving antenna PRX is the third antenna A2 and the auxiliary receiving antenna DRX is the fourth antenna A3; the reference signal power P0 of the third antenna A2 and the reference signal power P1 of the fourth antenna A3 are not attenuated.

[0152] Variable: The third antenna A2, the fourth antenna A3, and the second antenna A1 are all attenuated by 13 dB.

[0153] At this time, the reference signal receiving power P0 of the third antenna A2 and the reference signal receiving power P1 of the fourth antenna A3 have the same attenuation, and the difference between the two is less than the preset attenuation threshold, which can be 0.5dB, and the attenuation value of the reference signal receiving power of the third antenna A2 is less than the first preset threshold, which can be -10dB, triggering BTx switching.

[0154] The second target state is a fourth state state3, which includes: the main set of transmitting antennas TX is the first antenna A0, the main set of receiving antennas PRX is the first antenna A0, and the auxiliary receiving antennas DRX is the fourth antenna A3.

[0155] (3)BRx

[0156] In the first state, state0 is located in the row and BRx is located in the column. The content is state0<—>4 or state0<—>4, which is explained as follows:

[0157] (31)state0<—>4

[0158] The current state is the first state state0, which includes: the main set transmitting antenna TX is the third antenna A2, the main set receiving antenna PRX is the third antenna A2 and the auxiliary receiving antenna DRX is the fourth antenna A3; the reference signal power P0 of the third antenna A2 is not attenuated.

[0159] Variable: The fourth antenna A3 has an attenuation of 13 dB.

[0160] At this time, the difference between the reference signal received power P0 of the third antenna A2 and the reference signal received power P1 of the fourth antenna A3 is less than the preset difference threshold, which can be -10dB, and the attenuation value of the reference signal received power of the fourth antenna A3 is less than the second preset threshold, which can be -10dB. At this time, BRx switching is triggered.

[0161] The third target state is the fifth state state4, which includes: the main set of transmitting antennas TX is the third antenna A2, the main set of receiving antennas PRX is the third antenna A2, and the auxiliary receiving antenna DRX is the second antenna A1.

[0162] (32)state0<—>5

[0163] The current state is the first state state0, which includes: the main set transmitting antenna TX is the third antenna A2, the main set receiving antenna PRX is the third antenna A2 and the auxiliary receiving antenna DRX is the fourth antenna A3; the reference signal power P0 of the third antenna A2 is not attenuated.

[0164] Variable: The fourth antenna A3 and the second antenna A1 are both attenuated by 13 dB.

[0165] At this time, the difference between the reference signal received power P0 of the third antenna A2 and the reference signal received power P1 of the fourth antenna A3 is less than the preset attenuation threshold, which can be 0.5dB, and the attenuation value of the reference signal received power of the fourth antenna A3 is less than the second preset threshold, which can be -10dB. At this time, BRx switching is triggered.

[0166] The second target state is the sixth state state5, which includes: the main set of transmitting antennas TX is the third antenna A2, the main set of receiving antennas PRX is the third antenna A2, and the auxiliary receiving antenna DRX is the first antenna A0.

[0167] It should be noted that the above embodiment only describes the corresponding antenna switching process in state 0. The same analysis process can be used to analyze other states state 1 to state 9, which will not be repeated here.

[0168] In one embodiment, in a call answering scenario, changes in reference signal received power before and after adopting an antenna switching method provided by an embodiment of the present disclosure are shown in Table 2.

[0169] Table 2 Changes in reference signal received power before and after answering a call

[0170]

[0171] Referring to Table 2, in the case of the B39 frequency band and the right hand answering the call, the RSRP before adopting the solution of the present disclosure was -111.76dB, and after adopting the solution of the present disclosure, the RSRP was -109.71dB, that is, the RSRP increased by 2.05dB after adopting the solution of the present disclosure. In the case of the B39 frequency band and the left hand answering the call, the RSRP before adopting the solution of the present disclosure was -108.29dB, and after adopting the solution of the present disclosure, the RSRP was -104.14dB, that is, the RSRP increased by 4.15dB after adopting the solution of the present disclosure. In the case of the B40 frequency band and the right hand answering the call, the RSRP before adopting the solution of the present disclosure was -112.25dB, and after adopting the solution of the present disclosure, the RSRP was -112.49dB, that is, the RSRP decreased by 0.24dB after adopting the solution of the present disclosure. In the B40 frequency band, when answering a call with the left hand, the RSRP before adopting the disclosed solution was -114.41dB, and after adopting the disclosed solution, the RSRP was -110.61dB, indicating a 3.8dB improvement. Based on the above analysis, the disclosed solution optimizes the RSRP of the communication antenna, thereby improving the antenna signal of the electronic device.

[0172] In another embodiment, in a live broadcast viewing scenario, changes in reference signal received power before and after adopting an antenna switching method provided by an embodiment of the present disclosure are shown in Table 3.

[0173] Table 3 Changes in reference signal received power before and after viewing in direct scene

[0174]

[0175] Referring to Table 3, in the B39 band and when held in the right hand, the RSRP before adopting the solution of the present disclosure was -115.90 dB, and after adopting the solution of the present disclosure, the RSRP was -110.85 dB, that is, the RSRP increased by 5.05 dB after adopting the solution of the present disclosure. In the B39 band and when held in the left hand, the RSRP before adopting the solution of the present disclosure was -116.86 dB, and after adopting the solution of the present disclosure, the RSRP was -113.5 dB, that is, the RSRP increased by 3.35 dB after adopting the solution of the present disclosure. In the B40 band and when held in the right hand, the RSRP before adopting the solution of the present disclosure was -110.56 dB, and after adopting the solution of the present disclosure, the RSRP was -108.86 dB, that is, the RSRP increased by 1.7 dB after adopting the solution of the present disclosure. In the B40 frequency band and when held in the left hand, the RSRP before adopting the solution disclosed herein was -114.01dB, and after adopting the solution disclosed herein, the RSRP was -112.10dB, indicating an RSRP improvement of 1.9dB. Based on the above analysis, after adopting the solution disclosed herein, the RSRP of the communication antenna is optimized when watching live broadcasts on electronic devices, thereby improving the antenna signal of the electronic device.

[0176] At this point, the solution provided by the embodiment of the present disclosure can obtain the current reference signal received power of the communication antenna in the working state in the current state; then, determine the preset conditions satisfied by the current reference signal received power, and obtain the target state corresponding to the preset conditions; the target state includes the target antenna to be switched; thereafter, switch from the communication antenna to the target antenna corresponding to the target state. In this way, by switching to the target antenna in this embodiment, the flexibility of switching the communication antenna can be improved, and the antenna can be prevented from being blocked (commonly known as "holding"), which is beneficial to improving the signal strength of the electronic device. Moreover, in this embodiment, only the current reference signal received power in the working state is obtained without obtaining the received power of other antennas, which can reduce the number of interfaces occupied by the switching switch, that is, use a switching switch with fewer interfaces, thereby reducing costs.

[0177] Based on an antenna switching method provided in an embodiment of the present disclosure, an antenna switching device is also provided in an embodiment of the present disclosure, which is applied to an electronic device including a communication antenna. Figure 17 , the device comprises:

[0178] The received power acquisition module 171 is used to obtain the current reference signal received power of the communication antenna in the current working state;

[0179] A target state acquisition module 172 is configured to determine a preset condition satisfied by the current reference signal received power and obtain a target state corresponding to the preset condition; the target state includes a target antenna to be switched;

[0180] The communication antenna switching module 173 is configured to switch from the communication antenna to the target antenna corresponding to the target state.

[0181] Optionally, the receiving power acquisition module includes:

[0182] A first power acquisition submodule, configured to acquire a first reference signal received power of a communication antenna that is currently in an operating state;

[0183] A second power acquisition submodule is used to randomly switch the communication antenna to another communication antenna that is in a non-working state, and then obtain a second reference signal received power of the communication antenna that is in a working state after the antenna is switched;

[0184] The current power acquisition submodule is configured to determine the first reference signal received power and the second reference signal received power as the current reference signal received power.

[0185] Optionally, the preset condition is used to represent the change in the current reference signal receiving power to determine whether the communication antenna is in a blocked working scenario; the target state is used to represent the next state to be switched to by the communication antenna, and the attenuation of the reference signal receiving power of the communication antenna in the target state is less than the attenuation of the reference signal receiving power in the current state.

[0186] Optionally, the target state acquisition module includes:

[0187] a power difference acquiring unit, configured to acquire a difference between the reference signal received power of the primary transmitting antenna and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power;

[0188] a preset condition determining unit, configured to, when determining that the difference is greater than or equal to a preset attenuation threshold, determine that the current reference signal received power satisfies a first preset condition; wherein the first preset condition indicates that the main set transmitting antenna of the communication antenna is blocked;

[0189] The first state acquisition unit is configured to acquire a first target state corresponding to the first preset condition.

[0190] Optionally, the current reference signal received power satisfies the first preset condition, including that the reference signal received power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal received power of the auxiliary receiving antenna has no attenuation.

[0191] Optionally, the target state acquisition module includes:

[0192] a power difference acquiring unit, configured to acquire a difference between the reference signal received power of the primary transmitting antenna and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power;

[0193] A preset condition determination unit is used to determine that the current reference signal reception power meets a second preset condition when it is determined that the difference is less than a preset attenuation threshold and the reference signal reception power of the main set transmitting antenna is less than a first preset threshold; the second preset condition indicates that the main set transmitting antenna and the auxiliary receiving antenna of the communication antenna are blocked at the same time.

[0194] Optionally, the current reference signal received power satisfies the second preset condition, including that the reference signal received power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal received power of the auxiliary receiving antenna maintains the preset attenuation amount unchanged.

[0195] Optionally, the current reference signal receiving power satisfies the second preset condition, including that the reference signal receiving power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, the reference signal receiving power of the auxiliary receiving antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal receiving power attenuation amount of another communication antenna is the difference.

[0196] Optionally, the target state acquisition module includes:

[0197] a power difference acquiring unit, configured to acquire a difference between the reference signal received power of the primary set transmitting antenna in the current reference signal received power and the reference signal received power of the primary set transmitting antenna in the previous period;

[0198] a preset condition determining unit, configured to determine that the current reference signal received power satisfies a third preset condition when the difference is less than a preset difference threshold and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power is less than a second preset threshold; the third preset condition indicating that the auxiliary receiving antenna of the communication antenna is blocked;

[0199] The second state acquisition unit is configured to acquire a second target state corresponding to the second preset condition.

[0200] Optionally, the current reference signal received power satisfies a third preset condition, including that the reference signal received power of the main set transmitting antenna remains in an unattenuated state, and the attenuation of the reference signal received power of the auxiliary receiving antenna is the difference.

[0201] Optionally, the current reference signal receiving power satisfies a third preset condition, including that the reference signal receiving power of the main set transmitting antenna remains in an unattenuated state; the attenuation of the reference signal receiving power of the auxiliary receiving antenna is the difference, and the attenuation of the reference signal receiving power of another communication antenna is the difference.

[0202] Optionally, the order of priority of the target states is: first target state, second target state and third target state.

[0203] Optionally, the operating frequency of the communication antenna is B39 or B40.

[0204] It should be noted that the device embodiment shown in this embodiment matches the content of the above method embodiment. You can refer to the content of the above method embodiment and will not repeat it here.

[0205] Figure 18 1 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 1800 may be a smartphone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0206] Reference Figure 18 The electronic device 1800 may include one or more of the following components: a processing component 1802 , a memory 1804 , a power component 1806 , a multimedia component 1808 , an audio component 1810 , an input / output (I / O) interface 1812 , a sensor component 1814 , a communication component 1816 , and an image acquisition component 1818 .

[0207] The processing component 1802 generally controls the overall operation of the electronic device 1800, such as operations associated with the display, phone calls, data communications, camera operation, and recording operations. The processing component 1802 may include one or more processors 1820 to execute computer programs. In addition, the processing component 1802 may include one or more modules to facilitate interaction between the processing component 1802 and other components. For example, the processing component 1802 may include a multimedia module to facilitate interaction between the multimedia component 1808 and the processing component 1802.

[0208] The memory 1804 is configured to store various types of data to support operations on the electronic device 1800. Examples of such data include computer programs for any application or method operating on the electronic device 1800, contact data, phone book data, messages, pictures, videos, etc. The memory 1804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0209] The power supply assembly 1806 provides power to various components of the electronic device 1800. The power supply assembly 1806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1800. The power supply assembly 1806 may include a power chip, and the controller may communicate with the power chip to control the power chip to turn on or off the first switching device, thereby enabling or disabling the battery to supply power to the mainboard circuit.

[0210] The multimedia component 1808 includes a screen that provides an output interface between the electronic device 1800 and the target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input information from the target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0211] The audio component 1810 is configured to output and / or input audio file information. For example, the audio component 1810 includes a microphone (MIC), which is configured to receive external audio file information when the electronic device 1800 is in an operating mode, such as a call mode, a record mode, and a voice recognition mode. The received audio file information can be further stored in the memory 1804 or transmitted via the communication component 1816. In some embodiments, the audio component 1810 also includes a speaker for outputting the audio file information.

[0212] The I / O interface 1812 provides an interface between the processing component 1802 and a peripheral interface module, such as a keyboard, a click wheel, a button, etc.

[0213] Sensor assembly 1814 includes one or more sensors for providing various status assessments for electronic device 1800. For example, sensor assembly 1814 can detect the open / closed state of electronic device 1800, the relative positioning of components, such as the display screen and keypad of electronic device 1800. Sensor assembly 1814 can also detect changes in the position of electronic device 1800 or a component, the presence or absence of contact between a target object and electronic device 1800, the orientation or acceleration / deceleration of electronic device 1800, and changes in the temperature of electronic device 1800. In this example, sensor assembly 1814 may include a magnetic sensor, a gyroscope, and a magnetic field sensor, and may also include an inertial sensor, an image sensor, etc., wherein the magnetic field sensor includes at least one of the following: a Hall effect sensor, a thin-film magnetoresistive sensor, and a magnetic fluid acceleration sensor.

[0214] The communication component 1816 is configured to facilitate wired or wireless communication between the electronic device 1800 and other devices. The electronic device 1800 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 1816 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0215] In an exemplary embodiment, the electronic device 1800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0216] In an exemplary embodiment, the present disclosure further provides an electronic device, including:

[0217] An antenna module, the antenna module comprising at least one communication antenna;

[0218] The memory is used to store a computer program executable by the processor;

[0219] The processor is used to execute the computer program in the memory to implement the following Figure 2 The method described.

[0220] In an exemplary embodiment, the present disclosure further provides a non-transitory computer-readable storage medium, which can implement the above-mentioned method when an executable computer program in the storage medium is executed by a processor.

[0221] In an exemplary embodiment, a chip is further provided, comprising a processor and an interface for reading a computer program through the interface to implement the above method. The chip may be a conventional CPU (central processing unit) chip, a GPU (graphics processing unit) chip, or an acceleration chip dedicated to artificial intelligence technology, such as an AI (artificial intelligence) accelerator.

[0222] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0223] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An antenna switching method, characterized in that: Applied to an electronic device including a communication antenna, the method comprises: Obtaining a current reference signal received power of a communication antenna in a working state in a current state; Determine a preset condition satisfied by the current reference signal received power, and obtain a target state corresponding to the preset condition; the target state includes a target antenna to be switched; Switch from the communication antenna to the target antenna corresponding to the target state.

2. The method according to claim 1, characterized in that Obtaining the current reference signal received power of the communication antenna in the current working state, including: Acquire a first reference signal received power of a communication antenna in a working state in a current state; Randomly switching the communication antenna to another communication antenna that is not in a working state, and then obtaining a second reference signal received power of the communication antenna that is in a working state after the antenna is switched; Determine the first reference signal received power and the second reference signal received power as the current reference signal received power.

3. The method according to claim 1, characterized in that The preset condition is used to indicate the change in the current reference signal received power to determine whether the communication antenna is in an obstructed working scenario; the target state is used to indicate the next state to be switched by the communication antenna, and the attenuation of the reference signal received power of the communication antenna in the target state is less than the attenuation of the reference signal received power in the current state.

4. The method according to claim 3, characterized in that Determining a preset condition satisfied by the current reference signal received power, and obtaining a target state corresponding to the preset condition, including: Obtaining a difference between a reference signal received power of a primary transmitting antenna and a reference signal received power of an auxiliary receiving antenna in the current reference signal received power; When it is determined that the difference is greater than or equal to the preset attenuation threshold, it is determined that the current reference signal received power meets a first preset condition; the first preset condition indicates that the main set transmitting antenna of the communication antenna is blocked; A first target state corresponding to the first preset condition is obtained.

5. The method according to claim 4, characterized in that The current reference signal received power satisfies the first preset condition, including that the reference signal received power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal received power of the auxiliary receiving antenna has no attenuation.

6. The method according to claim 3, characterized in that Determining a preset condition satisfied by the current reference signal received power, and obtaining a target state corresponding to the preset condition, including: Obtaining a difference between a reference signal received power of a primary transmitting antenna and a reference signal received power of an auxiliary receiving antenna in the current reference signal received power; When it is determined that the difference is less than the preset attenuation threshold and the reference signal received power of the main set transmitting antenna is less than the first preset threshold, it is determined that the current reference signal received power meets the second preset condition; the second preset condition indicates that the main set transmitting antenna and the auxiliary receiving antenna of the communication antenna are blocked at the same time; A second target state corresponding to the second preset condition is obtained.

7. The method according to claim 6, characterized in that The current reference signal received power satisfies the second preset condition, including that the reference signal received power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal received power of the auxiliary receiving antenna maintains a preset attenuation amount unchanged.

8. The method according to claim 6, characterized in that The current reference signal receiving power satisfies the second preset condition, including that the reference signal receiving power of the main set transmitting antenna changes from no attenuation to an attenuation amount equal to the difference, the reference signal receiving power of the auxiliary receiving antenna changes from no attenuation to an attenuation amount equal to the difference, and the reference signal receiving power attenuation amount of another communication antenna is equal to the difference.

9. The method according to claim 3, characterized in that: Determining a preset condition satisfied by the current reference signal received power, and obtaining a target state corresponding to the preset condition, including: Obtaining a difference between the reference signal received power of the main set transmitting antenna in the current reference signal received power and the reference signal received power of the main set transmitting antenna in the previous period; When the difference is less than the preset difference threshold and the reference signal received power of the auxiliary receiving antenna in the current reference signal received power is less than the second preset threshold, it is determined that the current reference signal received power meets a third preset condition; the third preset condition indicates that the auxiliary receiving antenna of the communication antenna is blocked; A second target state corresponding to the second preset condition is obtained.

10. The method according to claim 9, characterized in that The current reference signal received power satisfies the third preset condition, including that the reference signal received power of the main set transmitting antenna remains in an unattenuated state, and the attenuation amount of the reference signal received power of the auxiliary receiving antenna is the difference.

11. The method according to claim 9, characterized in that The current reference signal receiving power satisfies the third preset condition, including that the reference signal receiving power of the main set transmitting antenna remains in an unattenuated state; the attenuation of the reference signal receiving power of the auxiliary receiving antenna is the difference, and the attenuation of the reference signal receiving power of another communication antenna is the difference.

12. The method according to claim 1, characterized in that The order of priority of the target states is: first target state, second target state and third target state.

13. The method according to claim 1, characterized in that The operating frequency of the communication antenna is B39 or B40.

14. An antenna switching device, characterized in that: Applicable to an electronic device including a communication antenna, the device comprising: A receiving power acquisition module, used to obtain the current reference signal receiving power of the communication antenna in the current working state; A target state acquisition module, used to determine a preset condition satisfied by the current reference signal received power, and obtain a target state corresponding to the preset condition; the target state includes a target antenna to be switched; The communication antenna switching module is used to switch from the communication antenna to the target antenna corresponding to the target state.

15. An electronic device, characterized in that: include: communications antennas, memory and processors; The memory is used to store a computer program executable by the processor; The processor is used to execute the computer program in the memory to implement the method according to any one of claims 1 to 5.

16. A non-transitory computer-readable storage medium, characterized in that: When the executable computer program in the storage medium is executed by a processor, the method according to any one of claims 1 to 5 can be implemented.