Antenna configuration method and device, electronic equipment and medium
By acquiring signal quality parameters during scene switching and optimizing antenna configuration parameters, the problem of antenna performance attenuation caused by user grip posture is solved, thereby improving signal quality and user experience.
Patent Information
- Application Number
- CN202410961959.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2026-01-20
AI Technical Summary
Because users have different hand sizes and grip positions, electronic devices may determine the wrong usage scenario and switch the antenna configuration parameters to the wrong ones, resulting in poor antenna performance and a poor user experience.
During scene switching, signal quality parameters before and after the scene switching are obtained, and target configuration parameters for each antenna are determined based on the signal quality parameters to achieve positive optimization of antenna performance and improvement of signal quality.
By optimizing antenna configuration parameters, signal quality was improved, enhancing the user experience.
Smart Images

Figure CN121367515A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of antenna configuration, and particularly relates to an antenna configuration method and device, electronic equipment and medium. BACKGROUND
[0002] Multiple antennas are provided in an electronic device, and the antennas can be used to receive and transmit signals. Each antenna has a corresponding configuration parameter, and by changing the configuration parameter of the antenna, the resonant wave of the antenna can be changed, and thus the performance of the antenna can be changed. For the electronic device, in different scenarios, the holding operation of the user on the electronic device can interfere with the antennas of the electronic device, causing the performance of some antennas to degrade.
[0003] Therefore, in order to ensure that the performance of each antenna is in a normal state, the electronic device sets the configuration parameters of the antennas based on the use scenario. However, due to different palm sizes of the user, different holding positions, and different interfered antennas, the electronic device is likely to determine an incorrect use scenario, thereby switching the configuration parameters of the antennas to incorrect configuration parameters, causing negative optimization of the performance of the antennas, and thus the performance of the antennas is degraded and the user experience is poor. SUMMARY
[0004] To overcome the problems in the related art, the present disclosure provides an antenna configuration method, device, electronic equipment and medium.
[0005] According to a first aspect of an embodiment of the present disclosure, an antenna configuration method is provided, comprising:
[0006] In a case where the electronic device is in a first scenario, and the configuration parameters of each antenna of the multiple antennas are first configuration parameters corresponding to the first scenario, a first target signal quality parameter is obtained; the first target signal quality parameter is used to represent the signal quality of a signal in a radio frequency channel in the first scenario;
[0007] In a case where the electronic device switches from the first scenario to a second scenario, and the configuration parameters of each antenna are second configuration parameters corresponding to the second scenario, a second target signal quality parameter is obtained, and the second target signal quality parameter is used to represent the signal quality of a signal in a radio frequency channel in the second scenario;
[0008] Based on the first target signal quality parameter and the second target signal quality parameter, a target configuration parameter of each antenna is determined.
[0009] In some embodiments, the determination of the target configuration parameter of each antenna based on the first target signal quality parameter and the second target signal quality parameter comprises:
[0010] determining the first configuration parameter as the target configuration parameter when the first target signal quality parameter is greater than the second target signal quality parameter; or
[0011] determining the second configuration parameter as the target configuration parameter when the first target signal quality parameter is less than or equal to the second target signal quality parameter.
[0012] In some embodiments, the obtaining the first target signal quality parameter comprises:
[0013] obtaining a first signal quality parameter of each antenna to obtain a plurality of first signal quality parameters;
[0014] determining the first target signal quality parameter based on the plurality of first signal quality parameters.
[0015] In some embodiments, the method further comprises:
[0016] obtaining a first combined signal quality parameter corresponding to the plurality of antennas;
[0017] The determining the first target signal quality parameter based on the plurality of first signal quality parameters comprises:
[0018] determining the first target signal quality parameter based on the plurality of first signal quality parameters and the first combined signal quality parameter.
[0019] In some embodiments, the determining the first target signal quality parameter based on the plurality of first signal quality parameters and the first combined signal quality parameter comprises:
[0020] performing weighting processing on the plurality of first signal quality parameters and the first combined signal quality parameter to obtain the first target signal quality parameter.
[0021] In some embodiments, the obtaining the second target signal quality parameter comprises:
[0022] obtaining a second signal quality parameter of each antenna to obtain a plurality of second signal quality parameters;
[0023] determining the second target signal quality parameter based on the plurality of second signal quality parameters.
[0024] In some embodiments, the method further comprises:
[0025] obtaining a second combined signal quality parameter corresponding to the plurality of antennas;
[0026] The determining the second target signal quality parameter based on the plurality of second signal quality parameters comprises:
[0027] determine the second target signal quality parameter based on the plurality of second signal quality parameters and the second combined signal quality parameter.
[0028] In some embodiments, the determining the second target signal quality parameter based on the plurality of second signal quality parameters and the second combined signal quality parameter comprises:
[0029] weighting the plurality of second signal quality parameters and the second combined signal quality parameter to obtain the second target signal quality parameter.
[0030] In some embodiments, after the determining the second configuration parameter as the target configuration parameter, the method further comprises:
[0031] when the electronic device is in a second scenario and the configuration parameter of each antenna is a second configuration parameter corresponding to the second scenario, obtaining a third target signal quality parameter, the third target signal quality parameter being used to represent signal quality of a signal in a radio frequency channel in the second scenario;
[0032] re-determining the target configuration parameter based on the first target signal quality parameter and the third target signal quality parameter.
[0033] According to a second aspect of the embodiments of the present disclosure, an antenna configuration apparatus is provided, comprising:
[0034] a first obtaining module configured to, when an electronic device is in a first scenario and a configuration parameter of each antenna in a plurality of antennas is a first configuration parameter corresponding to the first scenario, obtain a first target signal quality parameter, the first target signal quality parameter being used to represent signal quality of a signal in a radio frequency channel in the first scenario;
[0035] a second obtaining module configured to, when the electronic device switches from the first scenario to a second scenario and the configuration parameter of each antenna is a second configuration parameter corresponding to the second scenario, obtain a second target signal quality parameter, the second target signal quality parameter being used to represent signal quality of a signal in a radio frequency channel in the second scenario;
[0036] a determination module configured to determine a target configuration parameter of each antenna based on the first target signal quality parameter and the second target signal quality parameter.
[0037] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, comprising:
[0038] a processor;
[0039] a memory for storing processor-executable instructions;
[0040] The processor is configured to perform the antenna configuration method according to the first aspect of the present disclosure.
[0041] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the antenna configuration method according to the first aspect of the present disclosure.
[0042] The above method of the present disclosure has the following beneficial effects: the present disclosure can obtain the signal quality of the signal when the configuration parameter of the antenna before the scene switching is the first configuration parameter and the signal quality of the signal when the configuration parameter of the antenna after the scene switching is the second configuration parameter when the scene switching occurs, thereby determining the target configuration parameter of each antenna based on the signal quality before and after the scene switching, to realize the positive optimization of the antenna performance and the improvement of the signal quality, and further improve the user experience.
[0043] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0044] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure.
[0045] Figure 1 is a flowchart of an antenna configuration method according to an exemplary embodiment.
[0046] Figure 2 is a flowchart of an antenna configuration method according to an exemplary embodiment.
[0047] Figure 3 is a flowchart of an antenna configuration method according to an exemplary embodiment.
[0048] Figure 4 is a flowchart of an antenna configuration method according to an exemplary embodiment.
[0049] Figure 5 is a flowchart of an antenna configuration method according to an exemplary embodiment.
[0050] Figure 6 is a flowchart of an antenna configuration method according to an exemplary embodiment.
[0051] Figure 7 is a block diagram of an antenna configuration device according to an exemplary embodiment.
[0052] Figure 8 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0053] The exemplary embodiments will be described in detail with reference to the accompanying drawings. In the following description, same drawing reference numerals are used to denote elements having the same or similar functions and / or configurations. The following exemplary embodiments are not representative of all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure, as detailed in the appended claims.
[0054] A plurality of antennas are provided in an electronic device, and the antennas can be used to receive and transmit signals. Each antenna has a respective corresponding configuration parameter, and by changing the configuration parameter of the antenna, the resonant wave of the antenna can be changed, and thus the performance of the antenna can be changed. For the electronic device, in different scenarios, the holding and other operations of the user on the electronic device can interfere with the antennas of the electronic device, causing the performance of some antennas to degrade. For example, in a charging scenario, the antenna located at the bottom of the electronic device can be interfered, and the performance of the bottom antenna can degrade. For another example, in a gaming scenario, the user can hold the electronic device with both hands, and the antennas located at the top and bottom of the electronic device can be interfered, and the performance of the bottom antenna and the top antenna can degrade.
[0055] Therefore, in order to ensure that the performance of each antenna is in a normal state, the electronic device sets the configuration parameter of the antenna based on the use scenario. The use scenario can be determined based on the holding and other operations of the user on the electronic device. Accordingly, when the use scenario changes, that is, when the holding and other operations of the user on the electronic device change, the electronic device switches the configuration parameter of the antenna based on the current use scenario to optimize the performance of the antenna. However, due to the different sizes of the palms of the user, different holding positions, and different interfered antennas, the electronic device can determine the wrong use scenario, and thus switch the configuration parameter of the antenna to the wrong configuration parameter, resulting in negative optimization of the performance of the antenna, and thus the performance of the antenna is degraded and the user's use experience is poor. It should be noted that the configuration parameter of the antenna in the present disclosure can refer to a Tuner code, which is a kind of configuration code.
[0056] To solve the above problems, the present disclosure provides an antenna configuration method, which can acquire a first target signal quality parameter when an electronic device is in a first scene and the configuration parameter of each antenna in a plurality of antennas is a first configuration parameter corresponding to the first scene, the first target signal quality parameter being used to represent the signal quality of a signal in a radio frequency channel in the first scene, and acquire a second target signal quality parameter when the electronic device switches from the first scene to a second scene and the configuration parameter of each antenna is a second configuration parameter corresponding to the second scene, the second target signal quality parameter being used to represent the signal quality of a signal in a radio frequency channel in the second scene, and then determine the target configuration parameter of each antenna based on the first target signal quality parameter and the second target signal quality parameter.
[0057] The present disclosure can acquire the signal quality of a signal when the configuration parameter of an antenna before scene switching is a first configuration parameter and the signal quality of a signal when the configuration parameter of an antenna after scene switching is a second configuration parameter when the scene switches, so as to determine the target configuration parameter of each antenna based on the signal quality before and after the scene switches, so as to realize positive optimization of antenna performance and improvement of signal quality, and further improve the user experience.
[0058] The antenna configuration method provided by the embodiment of the present disclosure is executed by an electronic device, and the electronic device can be specifically a smart device such as a mobile phone, a tablet computer, a notebook computer, a smart robot, and a smart wearable device. In addition, the electronic device is also provided with various hardware resources and an energy storage device for providing power for the operation of various hardware resources.
[0059] Figure 1 FIG. 1 is a flowchart of an antenna configuration method according to an exemplary embodiment, which is executed by an electronic device, and FIG. 2 is a schematic diagram of the electronic device, which is used to illustrate the method of FIG. 1. Figure 1 The method comprises the following steps:
[0060] In step S101, a first target signal quality parameter is acquired when an electronic device is in a first scene and the configuration parameter of each antenna in a plurality of antennas is a first configuration parameter corresponding to the first scene, the first target signal quality parameter being used to represent the signal quality of a signal in a radio frequency channel in the first scene.
[0061] In some embodiments, before step S101 is performed, the configuration parameters corresponding to each antenna in each scenario can be acquired and stored. In this way, when the electronic device is in a first scenario, the first configuration parameters of each antenna corresponding to the first scenario can be directly called and each antenna in the plurality of antennas can be configured using the first configuration parameters of each antenna corresponding to the first scenario. Optionally, a plurality of scenarios in which the electronic device can be located can be set, and the configuration parameters of each antenna in the plurality of scenarios can be tested. The plurality of scenarios in which the electronic device can be located can include a game scenario, a USB scenario (such as a charging scenario, a file wired transmission scenario), a holding scenario, a call scenario, a USB&game scenario, and the like. In addition, for some models of electronic devices, customized scenarios can also be determined based on the model of the electronic device, for example, the electronic device is a folding model, and the plurality of scenarios in which the electronic device can be located can further include a folding scenario and a hovering scenario, and the like. In addition, customized scenarios can also be determined based on the antenna design of the electronic device.
[0062] It should be noted that, in order to ensure the accuracy of the configuration parameters of each antenna in each scenario, the electronic device can be placed in an antenna darkroom environment, and the configuration parameters of each antenna in each scenario can be tested in the antenna darkroom environment. The antenna darkroom environment refers to an environment that can be used for radio frequency measurement and testing. The environment can be covered with an absorbing material. The antenna darkroom environment can effectively reduce the interference signals from the external environment, thereby obtaining more accurate test results.
[0063] In some embodiments, for each scenario, the configuration parameters of each antenna can be continuously tuned in the antenna darkroom environment, and the performance of the antenna under the configuration parameters of each antenna can be measured. In an example, the configuration parameters corresponding to the optimal performance of each antenna can be determined as the configuration parameters corresponding to each antenna in the scenario. For example, the electronic device is provided with four antennas, i.e., antenna 1, antenna 2, antenna 3, and antenna 4. Taking the antenna 1 as an example, in the current scenario, when the configuration parameter of the antenna 1 is configuration parameter A, the antenna performance of the antenna 1 is a; when the configuration parameter of the antenna 1 is configuration parameter B, the antenna performance of the antenna is b; and when the configuration parameter of the antenna 1 is configuration parameter C, the antenna performance of the antenna 1 is c. Wherein, the antenna performance a is better than the antenna performance b, and the antenna performance b is better than the antenna performance c. That is, when the configuration parameter of the antenna 1 is configuration parameter A, the antenna performance of the antenna 1 is optimal, and accordingly, the configuration parameter A is the configuration parameter corresponding to the antenna 1 in the current scenario. The determination process of the configuration parameters of the antenna 2, the antenna 3, and the antenna 4 is the same as the above example, and will not be described here. In this way, the configuration parameters of each antenna in each scenario can be determined.
[0064] The first scene can be any of multiple scenes of the electronic device, and each antenna is provided with a corresponding first configuration parameter in the first scene. The embodiments of the present disclosure do not limit the type of each antenna in the multiple antennas. For example, the type of the antenna can include a monopole antenna, a dipole antenna, a Bell antenna, and the like.
[0065] Each antenna corresponds to a radio frequency path. The antenna can receive and convert a signal, and the radio frequency path can receive the signal converted by the antenna and process the signal and transmit the processed signal. In this way, the combination of the antenna and the radio frequency path can ensure rapid processing and stable transmission of the signal, thereby realizing the normal work of the wireless communication system. In an example, the antenna can convert an electromagnetic wave into a signal and transmit the signal to a receiving end or a sending end, and the radio frequency path can process the received signal, such as amplifying, filtering, mixing, modulating, and the like. Optionally, the radio frequency path can include a signal amplifier, a filter, a mixer, a local oscillator, a power amplifier, and the like.
[0066] In this step, by pre-acquiring the configuration parameters corresponding to each antenna in each scene and storing each scene and the configuration parameters corresponding to each antenna in each scene, a configuration parameter database can be built, thereby facilitating subsequent use. It should be noted that each scene and the configuration parameters corresponding to each antenna in each scene in the configuration parameter database can be increased, deleted, modified, and the like based on actual needs.
[0067] Step S102, in a case where the electronic device switches from the first scene to the second scene and the configuration parameters of each antenna are second configuration parameters corresponding to the second scene, a second target signal quality parameter is acquired, the second target signal quality parameter being used to represent the signal quality of the signal in the radio frequency path in the second scene.
[0068] The second scene can be any of multiple scenes of the electronic device, and the second scene is different from the first scene. For example, the first scene can be a charging scene, and the second scene can be a holding scene.
[0069] In some embodiments, the second configuration parameters of each antenna corresponding to the second scene can be directly acquired based on the configuration parameter database. For example, in the pre-stored configuration parameter data, the second scene is determined, and it is determined that the configuration parameters corresponding to the second scene are the second configuration parameters.
[0070] Step S103, based on the first target signal quality parameter and the second target signal quality parameter, a target configuration parameter of each antenna is determined.
[0071] The first target signal quality parameter and the second target signal quality parameter can be used to represent signal quality of signals in the radio frequency channel in the first scenario and the second scenario respectively. Therefore, the change of the signal quality of the signals in the radio frequency channel after the scenario switching and the configuration parameter switching can be determined based on the first target signal quality parameter and the second target signal quality parameter.
[0072] In some embodiments, the change of the signal quality of the signals in the radio frequency channel can be determined based on the first target signal quality parameter and the second target signal quality parameter. The target configuration parameter of each antenna can be determined based on the change.
[0073] In some embodiments, when the first target signal quality parameter is greater than the second target signal quality parameter, the first configuration parameter is determined as the target configuration parameter; or when the first target signal quality parameter is less than or equal to the second target signal quality parameter, the second configuration parameter is determined as the target configuration parameter.
[0074] It should be noted that when the first target signal quality parameter is greater than the second target signal quality parameter, it can be determined that the signal quality of the signals in the radio frequency channel is deteriorated after the scenario switching and the configuration parameter switching. Therefore, in order to avoid negative optimization of the antennas, the first configuration parameter can be determined as the target configuration parameter. Similarly, when the first target signal quality parameter is less than or equal to the second target signal quality parameter, it can be determined that the signal quality of the signals in the radio frequency channel is improved after the scenario switching and the configuration parameter switching. Therefore, the second configuration parameter can be determined as the target configuration parameter.
[0075] The embodiments of the present disclosure can obtain the signal quality of the signals when the configuration parameter of the antennas before the scenario switching is the first configuration parameter and the signal quality of the signals when the configuration parameter of the antennas after the scenario switching is the second configuration parameter when the scenario switching occurs. Therefore, the target configuration parameter of each antenna can be determined based on the signal quality before and after the scenario switching, so as to realize positive optimization of the antenna performance and improvement of the signal quality, and further improve the user experience. Moreover, the embodiments of the present disclosure can determine whether the signal quality of the signals in the radio frequency channel of the electronic device is improved by comparing the first target signal quality parameter and the second target signal quality parameter. If the signal quality of the signals is improved, the target configuration parameter is switched to the second configuration parameter corresponding to the second scenario. If the signal quality of the signals is not improved, the target configuration parameter is switched to the first configuration parameter corresponding to the first scenario. Therefore, closed-loop control is realized, and further the signal quality of the signals and the user experience are improved.
[0076] In some embodiments, a plurality of scenarios and configuration parameters corresponding to the plurality of scenarios are pre-stored in the electronic device. The following will be described by taking the electronic device as a mobile phone. Figure 2The illustrated embodiment illustrates the process of determining the first configuration parameter corresponding to the first scene and determining the second configuration parameter corresponding to the second scene.
[0077] Figure 2 is a flowchart of an antenna configuration method according to an exemplary embodiment, executed by an electronic device, referring to Figure 2 The method comprises the following steps:
[0078] Step S201, determine the scene in which the electronic device is located.
[0079] In some embodiments, the electronic device can determine the scene in which the electronic device is located through a foreground application listener or a sensor. For example, the electronic device determines that the electronic device is in a call scene through the foreground application listener listening to a voice call application program running in the foreground. For another example, the electronic device determines that the electronic device is in a horizontal screen game scene through the sensor monitoring that the electronic device is in a horizontal screen and the foreground application listener listening to a game application program running in the foreground.
[0080] The following gives several examples of determining the scene in which the electronic device is located:
[0081] For example, determine whether the terminal is charging. If yes, determine that the electronic device is in a USB scene. If no, continue to determine whether the terminal is in a horizontal screen game state. If yes, determine that the electronic device is in a horizontal screen game scene. If no, continue to determine whether the terminal is in a call state. If yes, determine that the electronic device is in a call scene. If no, determine that the electronic device is in a preset scene. For another example, after determining that the electronic device is in a USB scene, it can continue to determine whether the electronic device is in a horizontal screen game state. If yes, determine that the electronic device is in a USB&horizontal screen game scene. If no, it can continue to determine whether the electronic device is in a call state. If yes, determine that the electronic device is in a USB&call scene. If no, it can determine that the electronic device is in a USB scene or other scenes, etc. The preset scene refers to a preset general scene. The configuration parameters of the preset scene can be set based on actual needs.
[0082] Step S202, match the scene with the pre-stored scenes.
[0083] In some embodiments, after determining the scene in which the electronic device is located, the electronic device can match the scene in which the electronic device is located with the pre-stored scenes.
[0084] Step S203, determine whether the matching is successful. If the matching is successful, execute step S204. If the matching is not successful, execute step S205.
[0085] Step S204, the scene identifier of the matched scene in the plurality of scenes is sent to the ATcmd.
[0086] When the matching is successful, it indicates that the scene where the electronic device is located is included in the plurality of pre-stored scenes, and the electronic device can send the scene identifier of the matched scene in the plurality of scenes to the ATcmd.
[0087] Step S205, the scene identifier of the preset scene is sent to the ATcmd.
[0088] When the matching fails, it indicates that the scene where the electronic device is located is not included in the plurality of pre-stored scenes, and at this time, the electronic device can send the scene identifier of the preset scene to the ATcmd.
[0089] Step S206, the scene identifier is stored in the Scenario variable in the ATcmd through the ATcmd.
[0090] Step S207, the Scenario variable storing the scene identifier is sent to the underlying Modem through the QCRLL channel.
[0091] Step S208, the configuration parameter corresponding to the scene where the electronic device is located is determined based on the scene identifier in the Scenario variable through the underlying Modem.
[0092] In steps S206-S208, after receiving the scene identifier through the ATcmd, the scene identifier is sent to the underlying Modem through the QCRLL channel, and through the underlying Modem, the scene where the electronic device is located is determined based on the scene identifier, and the configuration parameter of each antenna corresponding to the scene where the electronic device is located is called based on the scene where the electronic device is located. Wherein, the ATcmd refers to an instruction that can be sent to the underlying, the scene identifier can be stored in the Scenario variable in the ATcmd instruction, accordingly, the underlying Modem can determine the configuration parameter corresponding to the scene based on the Scenario variable. The scene identifier is used to distinguish scenes, different scenes have different scene identifiers, and the scene identifier, the scene, and the configuration parameter of each antenna corresponding to the scene are stored in the configuration parameter database.
[0093] It should be noted that the electronic device will listen to the scene where the electronic device is located in real time, and when there is a scene switching, such as when the electronic device switches from a first scene to a second scene, the electronic device will automatically obtain the second configuration parameter of each antenna in the second scene, and determine the target configuration parameter of each antenna based on the second configuration parameter of each antenna and the first configuration parameter of each antenna. In addition, if the target configuration parameter is the second configuration parameter, the refresh time from the first configuration parameter to the second configuration parameter is in the order of milliseconds, therefore, there is no problem of lag in the switching process of the configuration parameter.
[0094] The embodiment of the present disclosure gives a specific process of determining the configuration parameters of each antenna corresponding to the scene. Thus, referring to the process of determining the configuration parameters in the above description, the first configuration parameters of each antenna in the first scene and the second configuration parameters of each antenna in the second scene can be determined based on the above process.
[0095] In some embodiments, the first target signal quality parameter and the second target signal quality parameter can be determined in various ways. Optionally, the first target signal quality parameter and the second target signal quality parameter are both negative numbers. The process of determining the first target signal quality parameter and the second target signal quality parameter is described below with reference to the embodiment shown in Figures 3-4
[0096] Figure 3 is a flowchart of an antenna configuration method according to an exemplary embodiment, executed by an electronic device, referring to Figure 3 The method comprises the following steps:
[0097] In step S301, the first signal quality parameter of each antenna is obtained, and a plurality of first signal quality parameters are obtained.
[0098] Each antenna corresponds to a respective radio frequency path, and the first signal quality parameter can be used to represent the signal quality of the signal in each radio frequency path in the first scene. Thus, the signal quality parameter corresponding to each radio frequency path can be obtained, i.e. a plurality of first signal quality parameters are obtained.
[0099] In some embodiments, a plurality of first initial signal quality parameters of each antenna can be obtained and stored, and the first signal quality parameter of each antenna is determined based on the plurality of first initial signal quality parameters of each antenna. In an example, the average of the plurality of first initial signal quality parameters of each antenna can be calculated, and the average is determined as the first signal quality parameter of each antenna. The first initial signal quality parameter can refer to an RSRP (Reference Signal Receiving Power) parameter, an RSSI (Received Signal Strength Indication) parameter, etc., and the first signal quality parameter can refer to the average of the RSRP parameter or the RSSI parameter, etc. The RSRP parameter can be used to represent the wireless signal strength, and the greater the RSRP parameter of the signal, the stronger the signal strength. Similarly to the RSRP parameter, the RSSI parameter can also be used to represent the wireless signal strength, and the greater the RSSI parameter of the signal, the stronger the signal strength.
[0100] In some embodiments, the first timer can be set and started before the first scene is switched to the second scene, i.e., when the electronic device is in the first scene, and then the signal quality parameter is detected multiple times after the first timer is started, and it is determined whether the first timer is expired after each detection of the signal quality parameter is completed. Optionally, when the first timer is expired, the first scene can be switched to the second scene. Specifically, the first timer can be set with a first timing duration, and N1 detection points can be set within the first timing duration corresponding to the first timer, so as to realize N1 detections of the signal quality parameter within the first timing duration. The first timing duration of the first timer can be set based on actual needs, for example, the first timing duration of the first timer is set to 10 seconds, and the interval duration between the N1 detection points can also be set based on actual needs, and the interval duration between each detection point can be the same or different. In this way, at each detection point, the first initial signal quality parameter of each antenna can be obtained, and when the test at all detection points is completed, N1 first initial signal quality parameters of each antenna can be obtained.
[0101] In order to make the embodiments clearer, the process of obtaining the first signal quality parameter is described below from a detection process at one detection point and N1 detection processes at N1 detection points.
[0102] One detection process:
[0103] At a certain detection point, the first initial signal quality parameter of each antenna is obtained and stored, for example, there are four antennas in the electronic device, i.e., antenna 1, antenna 2, antenna 3 and antenna 4, and in the one detection process, the first initial signal quality parameter of antenna 1, antenna 2, antenna 3 and antenna 4 can be obtained respectively.
[0104] N1 detection processes:
[0105] At N1 detection points, N1 first initial signal quality parameters of each antenna can be acquired and stored, and the N1 first initial signal quality parameters of each antenna are averaged to obtain a first signal quality parameter. For example, detection points X1, X2 and X3 are set, the first initial signal quality parameters Y1 of antennas 1-4 at the detection point X1 are acquired respectively, the first initial signal quality parameters Y2 of antennas 1-4 at the detection point X2 are acquired respectively, and the first initial signal quality parameters Y3 of antennas 1-4 at the detection point X3 are acquired respectively. The first signal quality parameter of antenna 1 is determined based on the average of the first initial signal quality parameter Y1, the first initial signal quality parameter Y2 and the first initial signal quality parameter Y3 corresponding to antenna 1. Similarly, the first signal quality parameters of antennas 2-4 can be determined based on the manner of determining the first signal quality parameter of antenna 1. In this way, by determining the first signal quality parameter of each antenna, a plurality of first signal quality parameters can be obtained.
[0106] In some embodiments, the first combined signal quality parameters corresponding to the plurality of antennas can also be acquired at the same time or after the first signal quality parameters are acquired. The first combined signal quality parameter can be the optimal signal quality parameter among the signal quality parameters of each antenna.
[0107] In some embodiments, the first combined signal quality parameter can be determined in the following two ways:
[0108] The first way: the first combined signal quality parameter is determined based on the plurality of first signal quality parameters. In an example, the optimal first signal quality parameter among the plurality of first signal quality parameters can be determined as the first combined signal quality parameter. For example, among the first signal quality parameters of antennas 1, 2, 3 and 4, the first signal quality parameter of antenna 2 is optimal, and the first combined signal quality parameter is the first signal quality parameter of antenna 2.
[0109] The second way: N1 first initial combined signal quality parameters of the plurality of antennas can be acquired and stored, and the first combined signal quality parameter of the plurality of antennas is determined based on the N1 first initial combined signal quality parameters of the plurality of antennas. In an example, the first initial combined signal quality parameter can refer to the optimal signal quality parameter among the first initial signal quality parameters of the plurality of antennas, and the average of the N1 first initial combined signal quality parameters of the plurality of antennas can be determined as the first combined signal quality parameter of the plurality of antennas.
[0110] In some embodiments, the first initial combined signal quality parameter of the plurality of antennas at each detection point can be determined based on the first initial signal quality parameter of each antenna at each detection point, and N1 first initial combined signal quality parameters of the plurality of antennas can be determined based on the first initial combined signal quality parameter of the plurality of antennas at each detection point. For example, if the first initial signal quality parameters of antennas 1-4 at a detection point are -85 dBm, -70 dBm, -110 dBm and -90 dBm, the first initial combined signal quality parameter at the detection point can be -70 dBm. Similarly, if the first initial signal quality parameters of antennas 1-4 at another detection point are -95 dBm, -85 dBm, -100 dBm and -120 dBm, the first initial combined signal quality parameter at the detection point can be -85 dBm. Accordingly, the first combined signal quality parameter of the plurality of antennas of the electronic device can be determined to be -77.5 dBm based on the two first initial combined signal quality parameters.
[0111] In order to make the embodiments clearer, the process of obtaining the first combined signal quality parameter is described below from a detection process at one detection point and N1 detection processes at N1 detection points.
[0112] One detection process:
[0113] At a detection point, the first initial combined signal quality parameter of the plurality of antennas is obtained and stored. For example, if the electronic device is provided with four antennas, antennas 1, 2, 3 and 4, the first initial signal quality parameters corresponding to antennas 1, 2, 3 and 4 respectively can be obtained in a detection process, and the first initial combined signal quality parameter can be determined based on the first initial signal quality parameters. For example, if the first initial signal quality parameter of antenna 1 is the optimal signal quality parameter among the first initial signal quality parameters of antennas 1-4, the first initial signal quality parameter of antenna 1 is determined as the first initial combined signal quality parameter.
[0114] N1 detection processes:
[0115] At the N1 detection points, N1 first initial combined signal quality parameters of the plurality of antennas can be acquired and stored, the N1 first initial combined signal quality parameters of the plurality of antennas are processed by averaging to obtain a first combined signal quality parameter. For example, detection points X1, X2 and X3 are set, the first initial combined signal quality parameter Z1 of the antennas 1-4 at the detection point X1 is acquired, the first initial combined signal quality parameter Z2 of the antennas 1-4 at the detection point X2 is acquired, and the first initial combined signal quality parameter Z3 of the antennas 1-4 at the detection point X3 is acquired. The average of the first initial combined signal quality parameter Z1, the first initial combined signal quality parameter Z2 and the first initial combined signal quality parameter Z3 is calculated, and the average is determined as the first combined signal quality parameter.
[0116] In step S302, a first target signal quality parameter is determined based on the plurality of first signal quality parameters.
[0117] In some embodiments, the first target signal quality parameter can be determined by weighting processing on the plurality of first signal quality parameters. In the weighting processing, the weight coefficient of each first signal quality parameter can be set based on actual requirements.
[0118] Optionally, the first target signal quality parameter can also be determined based on the plurality of first signal quality parameters and the first combined signal quality parameter. In some embodiments, the first target signal quality parameter can be obtained by weighting processing on the plurality of first signal quality parameters and the first combined signal quality parameter. In the weighting processing, the weight coefficient of each first signal quality parameter and the first combined signal quality parameter can be set based on actual requirements.
[0119] In some embodiments, a main antenna in the plurality of antennas and the signal quality of the signal in the radio frequency channel corresponding to the main antenna can be determined, i.e., the first signal quality parameter of the main antenna is determined. Determining the first target signal quality parameter based on the plurality of first signal quality parameters and the first combined signal quality parameter can include determining the first target signal quality parameter based on the product of the first combined signal quality parameter and a first weight, the product of the first signal quality parameter of the main antenna and a second weight, and the product of the first signal quality parameters of all antennas in the plurality of antennas except the main antenna and a third weight. In the weighting processing, the first weight, the second weight and the third weight can be set based on actual requirements, for example, the first weight can be set to 0.5, the second weight can be set to 0.25, and the third weight can be set to a value less than 0.25.
[0120] Correspondingly, the first target signal quality parameter can be determined by the following formula:
[0121] S1=W 10 *R 合路+W 20 *R1+W 30 *(R2+R3+…+R n )
[0122]
[0123] wherein, S1 represents a first target signal quality parameter, W 10 represents a first weight, W 20 represents a second weight, W 30 represents a third weight, R1 represents a first signal quality parameter of a main antenna, R 合路 represents a first combined signal quality parameter, R N1 represents a first signal quality parameter of an antenna n, and n represents a total number of antennas.
[0124] In addition, it should be noted that the main antenna is selected from the plurality of antennas, and the first target signal quality parameter is determined based on the main antenna, because the user's holding or other operation of the electronic device will affect the performance of the antenna, but the main antenna is generally arranged at a position where the performance of the antenna is less affected by the user's operation, and thus the performance of the main antenna can not be greatly attenuated, and the main antenna can reflect the signal quality of the signal in the radio frequency path of the electronic device. Therefore, the main antenna can be selected from the plurality of antennas, and the first target signal quality parameter can be determined based on the signal quality parameter of the main antenna.
[0125] The embodiment of the present disclosure provides a specific manner for determining the first target signal quality parameter, the first signal quality parameter and the first combined quality parameter are determined through the first initial signal quality parameter, and the first target signal quality parameter is determined based on the first signal quality parameter and the first combined quality parameter, so that the comprehensiveness and accuracy of the first target signal quality parameter can be improved, and thus the first target signal quality parameter can better represent the signal quality of the signal in the radio frequency path in the second scenario.
[0126] Figure 4 is a flow chart of an antenna configuration method according to an exemplary embodiment, which is executed by an electronic device, referring to Figure 4 The method comprises the following steps:
[0127] In step S401, a second signal quality parameter of each antenna is obtained, and a plurality of second signal quality parameters are obtained.
[0128] Each antenna corresponds to a respective radio frequency path, and the second signal quality parameter can be used to represent the signal quality of the signal in each radio frequency path in the first scenario. In this way, the signal quality parameter corresponding to each radio frequency path can be obtained, that is, a plurality of second signal quality parameters are obtained.
[0129] In some embodiments, a plurality of second initial signal quality parameters of each antenna can be acquired and stored, and a second signal quality parameter of each antenna is determined based on the plurality of second initial signal quality parameters of each antenna. In an example, an average value of the plurality of second initial signal quality parameters of each antenna can be calculated, and the average value is determined as the second signal quality parameter of each antenna. The second initial signal quality parameter can refer to an RSRP parameter, an RSSI parameter, etc., and the second signal quality parameter can refer to an average value of the RSRP parameter or the RSSI parameter, etc. The RSRP parameter can be used to represent the strength of a wireless signal, and the greater the RSRP parameter of a signal, the stronger the signal. Similarly, the RSSI parameter can also be used to represent the strength of a wireless signal, and the greater the RSSI parameter of a signal, the stronger the signal.
[0130] In some embodiments, a second timer can be set and started in advance after the second scene is switched to the second scene, i.e., when the electronic device is in the second scene, and then the signal quality parameter is detected multiple times after the second timer is started, and whether the second timer is expired is determined after each detection of the signal quality parameter is completed. Specifically, a second timing duration of the second timer can be set, and N2 detection points can be set within the second timing duration of the second timer, so as to achieve N2 detections of the signal quality parameter within the second timing duration. The second timing duration of the second timer can be set based on actual needs, for example, the second timing duration of the second timer is set to 10 seconds, and the interval duration between the N2 detection points can also be set based on actual needs, and the interval duration between each detection point can be the same or different. In this way, at each detection point, the second initial signal quality parameter of each antenna can be acquired, and when the test at all detection points is completed, N2 second initial signal quality parameters of each antenna can be obtained. It should be noted that the second timing duration can be the same as the first timing duration, or different from the first timing duration.
[0131] In order to make the embodiments clearer, the process of acquiring the second signal quality parameter is described below from a detection process at one detection point and N2 detection processes at N2 detection points.
[0132] One detection process:
[0133] At a certain detection point, the second initial signal quality parameter of each antenna is acquired and stored, for example, the electronic device is provided with four antennas, i.e., antenna 1, antenna 2, antenna 3 and antenna 4, and in the one detection process, the second initial signal quality parameter of each of the antenna 1, the antenna 2, the antenna 3 and the antenna 4 can be acquired.
[0134] N2 detection processes:
[0135] At the N2 detection points, the N2 second initial signal quality parameters of each antenna can be acquired and stored, and the N2 second initial signal quality parameters of each antenna are averaged to obtain a second signal quality parameter. The examples of determining the second signal quality parameter can refer to the examples of determining the first signal quality parameter in the above embodiments, and will not be described here.
[0136] In some embodiments, while the second signal quality parameter is acquired, a second combined signal quality parameter corresponding to the plurality of antennas can also be acquired. The second combined signal quality parameter can be the optimal signal quality parameter among the signal quality parameters of each antenna.
[0137] In some embodiments, the second combined signal quality parameter can be determined in the following two ways:
[0138] The first way: based on the plurality of second signal quality parameters, the second combined signal quality parameter is determined. In an example, the optimal second signal quality parameter among the plurality of second signal quality parameters can be determined as the second combined signal quality parameter. For example, among the second signal quality parameters of antenna 1, antenna 2, antenna 3 and antenna 4, the second signal quality parameter of antenna 3 is optimal, and the second combined signal quality parameter is the second signal quality parameter of antenna 3.
[0139] The second way: the N2 second initial combined signal quality parameters of the plurality of antennas can be acquired and stored, and the second combined signal quality parameter of the plurality of antennas is determined based on the N2 second initial combined signal quality parameters of the plurality of antennas. In an example, the second initial combined signal quality parameter can refer to the optimal signal quality parameter among the second initial signal quality parameters of the plurality of antennas. In addition, the average of the N2 second initial combined signal quality parameters of the plurality of antennas can be determined as the second combined signal quality parameter of the plurality of antennas. It should be noted that the acquisition process of the N2 second initial combined signal quality parameters can be performed after the acquisition of the N2 second initial signal quality parameters, or can be performed simultaneously with the acquisition of the N2 second initial signal quality parameters.
[0140] In some embodiments, the second initial combined signal quality parameter of the plurality of antennas at each detection point can be determined based on the second initial signal quality parameter of each antenna at each detection point, and the N2 second initial combined signal quality parameters of the plurality of antennas can be determined based on the second initial combined signal quality parameter of the plurality of antennas at each detection point. For example, if the second initial signal quality parameters of antennas 1-4 at a detection point are -100 dBm, -80 dBm, -100 dBm, and -90 dBm, the second initial combined signal quality parameter at the detection point can be -80 dBm. Similarly, if the second initial signal quality parameters of antennas 1-4 at another detection point are -100 dBm, -95 dBm, -85 dBm, and -120 dBm, the second initial combined signal quality parameter at the detection point can be -85 dBm. Accordingly, the second combined signal quality parameter of the plurality of antennas of the electronic device can be determined to be -82.5 dBm based on the two second initial combined signal quality parameters.
[0141] To make the embodiments clearer, the process of obtaining the second combined signal quality parameter is described below from a detection process at one detection point and N2 detection processes at N2 detection points.
[0142] The detection process at one detection point:
[0143] At a detection point, the second initial combined signal quality parameter of the plurality of antennas is obtained and stored. For example, if the electronic device is provided with antennas 1, 2, 3, and 4, the second initial signal quality parameters corresponding to antennas 1, 2, 3, and 4, respectively, can be obtained in the detection process, and the second initial combined signal quality parameter can be determined based on the second initial signal quality parameters. For example, if the second initial signal quality parameter of antenna 3 is the optimal signal quality parameter among the second initial signal quality parameters of antennas 1-4, the second initial signal quality parameter of antenna 3 is determined as the second initial combined signal quality parameter.
[0144] The N2 detection processes at N2 detection points:
[0145] At N2 detection points, N2 second initial combined signal quality parameters of the plurality of antennas can be obtained and stored, and the second combined signal quality parameter can be obtained by averaging the N2 second initial combined signal quality parameters of the plurality of antennas. For specific examples of determining the second combined signal quality parameter, reference can be made to the examples of determining the first combined signal quality parameter in the above embodiments, which will not be described herein again.
[0146] In step S402, the second target signal quality parameter is determined based on the plurality of second signal quality parameters.
[0147] In some embodiments, the second target signal quality parameter can be determined by weighting the plurality of second signal quality parameters. The weight coefficient of each second signal quality parameter in the weighting can be set based on actual requirements.
[0148] Alternatively, the second target signal quality parameter can also be determined based on the plurality of second signal quality parameters and the second combined signal quality parameter. In some embodiments, the second target signal quality parameter can be determined by weighting the plurality of second signal quality parameters and the second combined signal quality parameter. The weight coefficient of each second signal quality parameter and the second combined signal quality parameter in the weighting can be set based on actual requirements.
[0149] In some embodiments, a main antenna among the plurality of antennas and the signal quality of the signal in the radio frequency channel corresponding to the main antenna can be determined, i.e., the second signal quality parameter of the main antenna is determined. The second target signal quality parameter can be determined based on the second combined signal quality parameter, the second signal quality parameter of the main antenna, and the second signal quality parameters of the antennas other than the main antenna among the plurality of antennas. The fourth weight, the fifth weight, and the sixth weight can be set based on actual requirements. For example, the fourth weight can be set as 0.5, the fifth weight can be set as 0.25, and the sixth weight can be set as a value less than 0.25.
[0150] Correspondingly, the second target signal quality parameter can be determined by using the following formula:
[0151] S2 = W 11 *R 合路 '+W 21 *R1'+W 31 *(R2'+R3'+…+R n ')
[0152]
[0153] wherein S2 represents the second target signal quality parameter, W 11 represents the fourth weight, W 21 represents the fifth weight, and W 31 represents the sixth weight. R1' represents the second signal quality parameter of the main antenna, R 合路 ' represents the second combined signal quality parameter, and R ndenotes a second signal quality parameter of the antenna n, n denotes a total number of antennas. It should be noted that the fourth weight, the fifth weight and the sixth weight in the calculation of the second target signal quality parameter and the first weight, the second weight and the third weight in the calculation of the first target signal quality parameter can be the same or different.
[0154] The embodiment of the present disclosure gives a specific way of determining the second target signal quality parameter, and the second signal quality parameter and the second combined quality parameter are determined through the second initial signal quality parameter, and then the second target signal quality parameter is determined based on the second signal quality parameter and the second combined quality parameter, which can improve the comprehensiveness and accuracy of the second target signal quality parameter, so that the second target signal quality parameter can better represent the signal quality of the signal in the radio frequency path in the second scenario.
[0155] In some embodiments, the antenna configuration method further comprises: after determining the second configuration parameter as the target configuration parameter, the signal quality of the signal in the radio frequency path in the second scenario can also be obtained, and the re-obtained signal quality is used to determine whether to modify the target configuration parameter, so as to realize the verification of the target configuration parameter. The process of determining whether to modify the target configuration parameter is described below with reference to the embodiment shown in Figure 5
[0156] Figure 5 is a flowchart of an antenna configuration method according to an exemplary embodiment, executed by an electronic device, see Figure 5 The method comprises the following steps:
[0157] Step S501, in the case that the electronic device is in a second scenario and the configuration parameter of each antenna is a second configuration parameter corresponding to the second scenario, a third target signal quality parameter is obtained, and the third target signal quality parameter is used to represent the signal quality of the signal in the radio frequency path in the second scenario.
[0158] Wherein, the process of obtaining the third target signal quality parameter can refer to the process of determining the second target signal quality parameter shown in steps S401 and S402, which will not be described here.
[0159] In addition, it should be noted that, in order to improve the accuracy of the target configuration parameter, a third timer can be set, the third timer can set at least one timing duration, and a third target signal quality parameter can be calculated at each timing duration of the third timer. For example, the third timer is set, the third timer is provided with a third timing duration, a fourth timing duration and a fifth timing duration, a third target signal quality parameter can be determined in the third timing duration, a third target signal quality parameter can be determined in the fourth timing duration, and a third target signal quality parameter can be determined in the fifth timing duration. In the embodiment of the present disclosure, the size relationship between the third timing duration, the fourth timing duration and the fifth timing duration is not limited, for example, the fifth timing duration can be greater than the fourth timing duration, and the fourth timing duration can be greater than the third timing duration.
[0160] In step S502, the target configuration parameter is re-determined based on the first target signal quality parameter and the third target signal quality parameter.
[0161] In some embodiments, when the first target signal quality parameter is greater than the third target signal quality parameter, the first configuration parameter is determined as the target configuration parameter; or when the first target signal quality parameter is less than or equal to the third target signal quality parameter, the second configuration parameter is determined as the target configuration parameter. It should be noted that when the first target signal quality parameter is greater than the third target signal quality parameter, it can be determined that the second target signal quality parameter is only temporarily greater than the first target signal quality parameter, and the signal quality of the signal in the radio frequency channel in the second scene is worse than that in the first scene. Therefore, in order to avoid negative optimization of the antenna, the first configuration parameter can be determined as the target configuration parameter; similarly, when the first target signal quality parameter is less than or equal to the second target signal quality parameter, it can be determined that the signal quality of the signal in the radio frequency channel in the second scene is better than that in the first scene. Therefore, the second configuration parameter can be determined as the target configuration parameter.
[0162] In some embodiments, in order to further improve the accuracy of the target configuration parameter, the third target signal quality parameters determined in different timing durations in step S501 can be compared with the first target signal quality parameter. If each third target signal quality parameter is greater than or equal to the first target signal quality parameter, the second configuration parameter can be determined as the target configuration parameter, and no further verification is performed until the scene changes.
[0163] In the embodiment of the present disclosure, the target configuration parameter can be verified at least once, so as to ensure that the determined target configuration parameter can truly realize positive optimization of the antenna performance, thereby improving the signal quality of the signal in the radio frequency channel.
[0164] AsFigure 6 The method for configuring an antenna is shown below. The embodiments of the present disclosure are described below in combination with a first timer, a second timer, and a third timer:
[0165] In step S601, a first scenario is determined, and a first configuration parameter corresponding to the first scenario is determined.
[0166] In step S602, the configuration parameter of each antenna of a plurality of antennas is configured as the first configuration parameter corresponding to the first scenario, the first timer is started, and a first initial signal quality parameter of each antenna and a first initial combined signal quality parameter of the plurality of antennas are obtained.
[0167] In step S603, it is determined whether the first timer is expired. If yes, step S604 is performed, and if no, step S602 is performed.
[0168] In step S604, a first signal quality parameter of each antenna is determined based on a plurality of first initial signal quality parameters of each antenna.
[0169] In step S605, a first combined signal quality parameter of the plurality of antennas is determined based on a plurality of first initial combined signal quality parameters of the plurality of antennas.
[0170] In step S606, a first target signal quality parameter is determined based on a plurality of first signal quality parameters and the first combined signal quality parameter.
[0171] In step S607, the electronic device switches from the first scenario to a second scenario, and a second configuration parameter corresponding to the second scenario is determined.
[0172] In step S608, the configuration parameter of each antenna is configured as the second configuration parameter corresponding to the second scenario, the second timer is started, and a second initial signal quality parameter of each antenna and a second initial combined signal quality parameter of the plurality of antennas are obtained.
[0173] In step S609, it is determined whether the second timer is expired. If yes, step S610 is performed, and if no, step S608 is performed.
[0174] In step S610, a second signal quality parameter of each antenna is determined based on a plurality of second initial signal quality parameters of each antenna.
[0175] In step S611, a second combined signal quality parameter of the plurality of antennas is determined based on a plurality of second initial combined signal quality parameters of the plurality of antennas.
[0176] In step S612, a second target signal quality parameter is determined based on a plurality of second signal quality parameters and the second combined signal quality parameter.
[0177] Step S613, determining whether the first target signal quality parameter is greater than the second target signal quality parameter. If yes, executing step S614, if not, executing step S615.
[0178] Step S614, determining the first configuration parameter as the target configuration parameter.
[0179] Step S615, determining the second configuration parameter as the target configuration parameter.
[0180] Step S616, starting a third timer and obtaining a third target signal quality parameter in a case that the electronic device is in the second scenario and the configuration parameter of each antenna is the second configuration parameter corresponding to the second scenario.
[0181] Step S617, re-determining the target configuration parameter based on the first target signal quality parameter and the third target signal quality parameter.
[0182] Figure 7 is a block diagram of an antenna configuration apparatus according to an exemplary embodiment, configured in an electronic device, referring to Figure 7 The apparatus comprises:
[0183] The first obtaining module 701 is configured to obtain a first target signal quality parameter in a case that the electronic device is in a first scenario and the configuration parameter of each antenna in the plurality of antennas is a first configuration parameter corresponding to the first scenario; the first target signal quality parameter is used to represent the signal quality of the signal in the radio frequency channel in the first scenario.
[0184] The second obtaining module 702 is configured to obtain a second target signal quality parameter in a case that the electronic device switches from the first scenario to a second scenario and the configuration parameter of each antenna is a second configuration parameter corresponding to the second scenario; the second target signal quality parameter is used to represent the signal quality of the signal in the radio frequency channel in the second scenario.
[0185] The determination mode 703 is configured to determine the target configuration parameter of each antenna based on the first target signal quality parameter and the second target signal quality parameter.
[0186] In some embodiments, the determination mode 703 is configured to:
[0187] determine the first configuration parameter as the target configuration parameter when the first target signal quality parameter is greater than the second target signal quality parameter; or
[0188] determine the second configuration parameter as the target configuration parameter when the first target signal quality parameter is less than or equal to the second target signal quality parameter.
[0189] In some embodiments, the first obtaining module 701 is configured to:
[0190] obtain a first signal quality parameter of each antenna, to obtain a plurality of first signal quality parameters;
[0191] determine a first target signal quality parameter based on the plurality of first signal quality parameters.
[0192] In some embodiments, the first obtaining module 701 is configured to:
[0193] obtain a first combined signal quality parameter corresponding to the plurality of antennas;
[0194] determine the first target signal quality parameter based on the plurality of first signal quality parameters, comprising:
[0195] determine the first target signal quality parameter based on the plurality of first signal quality parameters and the first combined signal quality parameter.
[0196] In some embodiments, the first obtaining module 701 is configured to:
[0197] perform weighting processing on the plurality of first signal quality parameters and the first combined signal quality parameter, to obtain the first target signal quality parameter.
[0198] In some embodiments, the second obtaining module 702 is configured to:
[0199] obtain a second signal quality parameter of each antenna, to obtain a plurality of second signal quality parameters;
[0200] determine a second target signal quality parameter based on the plurality of second signal quality parameters.
[0201] In some embodiments, the second obtaining module 702 is configured to:
[0202] obtain a second combined signal quality parameter corresponding to the plurality of antennas;
[0203] determine the second target signal quality parameter based on the plurality of second signal quality parameters, comprising:
[0204] determine the second target signal quality parameter based on the plurality of second signal quality parameters and the second combined signal quality parameter.
[0205] In some embodiments, the second obtaining module 702 is configured to:
[0206] perform weighting processing on the plurality of second signal quality parameters and the second combined signal quality parameter, to obtain the second target signal quality parameter.
[0207] In some embodiments, the determining module 703 is configured to:
[0208] In a case where the electronic device is in the second scenario and the configuration parameter of each antenna is the second configuration parameter corresponding to the second scenario, a third target signal quality parameter is acquired, the third target signal quality parameter being used to represent the signal quality of the signal in the radio frequency channel in the second scenario;
[0209] The target configuration parameter is re-determined based on the first target signal quality parameter and the third target signal quality parameter.
[0210] As to the apparatus in the above embodiments, the specific manners in which various modules perform operations have been described in detail in the embodiments of the method, and thus will not be described here in detail.
[0211] The embodiments of the present disclosure further provide an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the antenna configuration method in the above embodiments.
[0212] Figure 8 is a block diagram of an electronic device 800 according to an exemplary embodiment.
[0213] Referring to Figure 8 , the electronic device 800 can include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0214] The processing component 802 usually controls the overall operation of the electronic device 800, such as operations associated with displaying, making phone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 802 can include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0215] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or nonvolatile memory, 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 disc, or optical disc.
[0216] The power supply component 806 supplies power for various components of the electronic device 800. The power supply component 806 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0217] The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 808 includes a front camera and / or a back camera. The front camera and / or the back camera can receive external multimedia data when the electronic device 800 is in an operation mode, such as a photographing mode or a video mode. Each of the front camera and the back camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0218] The audio component 810 is configured to output and / or input an audio signal. For example, the audio component 810 includes a microphone (MIC) configured to receive an external audio signal when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting an audio signal.
[0219] The I / O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which can be a keypad, a click wheel, buttons, etc. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0220] The sensor component 814 includes one or more sensors for providing status assessments for various aspects of the electronic device 800. For example, the sensor component 814 can detect an open / closed position of the electronic device 800, relative positioning of components, such as a display and a keypad of the electronic device 800, a change in position of the electronic device 800 or a component of the electronic device 800, presence or absence of user contact with the electronic device 800, orientation or acceleration / deceleration / g-force and temperature of the electronic device 800. The sensor component 814 can include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0221] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a corresponding communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an example embodiment, the communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 816 further 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) techniques, Infrared Data Association (IrDA) techniques, Ultra-WideBand (UWB) techniques, Bluetooth (BT) techniques and other techniques.
[0222] In an example embodiment, the electronic device 800 can be implemented using 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, micro-controllers, microprocessors or other electronic elements to perform the above-described methods.
[0223] In an example embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, is also provided, which can be executed by the processor 820 of the electronic device 800 to perform the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.
[0224] A kind of non-transitory computer readable storage medium, when the instruction in the storage medium is executed by the processor of electronic equipment, enables electronic equipment to execute the antenna configuration method provided by the exemplary embodiment of the present disclosure.
[0225] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the concepts disclosed herein. It is intended that the present disclosure cover any and all variations of the present disclosure including concepts stemming from and generalizing the technology to which the present disclosure pertains. The specification and examples are to be regarded as exemplary only, and the true scope and spirit of the present disclosure shall be indicated by the following claims.
[0226] It is to be understood that the present disclosure is not limited to the precise construction described above and shown in the attached 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 claims appended hereto.
Claims
1. An antenna configuration method, characterized by, The method comprises the following steps: In the case that the electronic device is in a first scene and the configuration parameter of each antenna in the plurality of antennas is a first configuration parameter corresponding to the first scene, a first target signal quality parameter is acquired; The first target signal quality parameter is used to represent the signal quality of a signal in a radio frequency channel in the first scene; In the case that the electronic device switches from the first scene to a second scene and the configuration parameter of each antenna is a second configuration parameter corresponding to the second scene, a second target signal quality parameter is acquired, which is used to represent the signal quality of a signal in a radio frequency channel in the second scene; Based on the first target signal quality parameter and the second target signal quality parameter, a target configuration parameter of each antenna is determined.
2. The antenna configuration method of claim 1, wherein, The determination of the target configuration parameter of each antenna based on the first target signal quality parameter and the second target signal quality parameter comprises: When the first target signal quality parameter is greater than the second target signal quality parameter, the first configuration parameter is determined as the target configuration parameter; or When the first target signal quality parameter is less than or equal to the second target signal quality parameter, the second configuration parameter is determined as the target configuration parameter.
3. The antenna configuration method of claim 1, wherein, The acquisition of the first target signal quality parameter comprises: A first signal quality parameter of each antenna is acquired to obtain a plurality of first signal quality parameters; Based on the plurality of first signal quality parameters, the first target signal quality parameter is determined.
4. The antenna configuration method of claim 3, wherein, The method further comprises: A first combined signal quality parameter corresponding to the plurality of antennas is acquired; The determination of the first target signal quality parameter based on the plurality of first signal quality parameters comprises: Based on the plurality of first signal quality parameters and the first combined signal quality parameter, the first target signal quality parameter is determined.
5. The antenna configuration method of claim 4, wherein, The determination of the first target signal quality parameter based on the plurality of first signal quality parameters and the first combined signal quality parameter comprises: The plurality of first signal quality parameters and the first combined signal quality parameter are weighted to obtain the first target signal quality parameter.
6. The antenna configuration method of claim 1, wherein, The acquisition of the second target signal quality parameter comprises: A second signal quality parameter of each antenna is acquired to obtain a plurality of second signal quality parameters; Based on the plurality of second signal quality parameters, the second target signal quality parameter is determined.
7. The antenna configuration method of claim 6, wherein, The method further comprises: A second combined signal quality parameter corresponding to the plurality of antennas is acquired; The determination of the second target signal quality parameter based on the plurality of second signal quality parameters comprises: Based on the plurality of second signal quality parameters and the second combined signal quality parameter, the second target signal quality parameter is determined.
8. The antenna configuration method of claim 7, wherein, The determination of the second target signal quality parameter based on the plurality of second signal quality parameters and the second combined signal quality parameter comprises: The plurality of second signal quality parameters and the second combined signal quality parameter are weighted to obtain the second target signal quality parameter.
9. The antenna configuration method of claim 2, wherein, After the second configuration parameter is determined as the target configuration parameter, the method further includes: In a case where the electronic device is in a second scene and the configuration parameter of each antenna is a second configuration parameter corresponding to the second scene, a third target signal quality parameter is acquired, the third target signal quality parameter being used to represent signal quality of a signal in a radio frequency channel in the second scene; The target configuration parameter is re-determined based on the first target signal quality parameter and the third target signal quality parameter.
10. An antenna configuration apparatus, characterized by comprising: Comprise: A first acquisition module configured to acquire a first target signal quality parameter in a case where an electronic device is in a first scene and a configuration parameter of each antenna in a plurality of antennas is a first configuration parameter corresponding to the first scene; The first target signal quality parameter is used to represent signal quality of a signal in a radio frequency channel in the first scene; A second acquisition module configured to acquire a second target signal quality parameter in a case where the electronic device switches from the first scene to a second scene and the configuration parameter of each antenna is a second configuration parameter corresponding to the second scene, the second target signal quality parameter being used to represent signal quality of a signal in a radio frequency channel in the second scene; A determination mode configured to determine a target configuration parameter of each antenna based on the first target signal quality parameter and the second target signal quality parameter.
11. An electronic device, comprising: Comprise: A processor; A memory for storing processor-executable instructions; The processor is configured to perform the antenna configuration method according to any one of claims 1-9.
12. A non-transitory computer-readable storage medium, comprising: When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the antenna configuration method according to any one of claims 1-9.