Power control method and device, electronic equipment, storage medium and program product

By introducing power control methods into electronic devices, detecting and reducing the transmission power of radio frequency signals, the problem of poor camera shooting quality in electronic devices is solved, especially in weak signal scenes, which effectively avoid signal interference and improve shooting quality.

CN120034720APending Publication Date: 2025-05-23GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510206256.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-24
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

The shooting quality of the camera in electronic devices is easily affected by a variety of factors, resulting in poor shooting quality. Especially in weak signal scenarios, the high transmission power of the radio frequency signal may cause signal interference to the camera module, resulting in screen loss and lag.

Method used

By introducing a power control method in the electronic device, the camera module detects whether the power limit condition is met in the working mode. If it is met, an interference command is sent. The radio frequency module responds to the command to reduce the transmission power of the target antenna, ensuring that the distance between the antenna and the camera module is less than the preset distance threshold to avoid signal interference.

Benefits of technology

It effectively avoids interference from radio frequency signals on the camera module, reduces screen and stuttering in the shooting screen, and improves the shooting quality of the camera.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120034720A_ABST
    Figure CN120034720A_ABST
Patent Text Reader

Abstract

The invention relates to a power control method and device, electronic equipment, a storage medium and a program product. The method is applied to the electronic equipment, the electronic equipment comprises a camera module and a radio frequency module, and the method comprises the steps that the camera module detects whether a power limiting condition is met or not in a working mode, and the power limiting condition is used for representing that a shot picture corresponding to the camera module has a blurred screen and / or a stuck screen; if the power limiting condition is met, the camera module sends an interference instruction; the radio frequency module responds to the interference instruction, the transmitting power of a target antenna in the electronic equipment for transmitting a radio frequency signal at present is reduced, and the distance between the target antenna and the camera module is smaller than a preset distance threshold value. By adopting the method, the shooting quality of the camera in the electronic equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power control technology, and in particular to a power control method, device, electronic device, storage medium and program product. Background Art

[0002] With the development of imaging technology, it has become popular to equip electronic devices such as mobile phones and tablets with cameras. Even if users do not have professional cameras, they can use the cameras in electronic devices to take pictures at any time.

[0003] However, the shooting quality of the camera in the electronic device is easily affected by many factors, resulting in poor shooting quality. Summary of the invention

[0004] Based on this, it is necessary to provide a power control method, device, electronic device, storage medium and program product to improve the shooting quality of the camera in the electronic device in response to the above technical problems.

[0005] In a first aspect, the present application provides a power control method. The power control method is used in an electronic device, the electronic device includes a camera module and a radio frequency module, and the method includes:

[0006] The camera module detects whether the power limit condition is met in the working mode. The power limit condition is used to indicate that the shooting picture corresponding to the camera module has a distorted screen and / or a stuck state.

[0007] If the power limit condition is met, the camera module sends a jamming command;

[0008] The radio frequency module responds to the interference instruction and reduces the transmission power of the radio frequency signal currently transmitted by the target antenna in the electronic device, and the distance between the target antenna and the camera module is less than a preset distance threshold.

[0009] In a second aspect, the present application further provides a power control device. The power control device is used in an electronic device, the electronic device includes a camera module and a radio frequency module, and the device includes:

[0010] A detection module, used for detecting whether a power limit condition is met through the camera module when the camera module is in working mode, where the power limit condition is used to indicate that a captured image corresponding to the camera module has a distorted screen and / or stuck;

[0011] A sending module, used for sending an interference instruction through a camera module if the power limit condition is met;

[0012] The control module is used to respond to the interference instruction through the radio frequency module to reduce the transmission power of the radio frequency signal currently transmitted by the target antenna in the electronic device, and the distance between the target antenna and the camera module is less than a preset distance threshold.

[0013] In a third aspect, the present application further provides an electronic device, which includes a first processor, a second processor, a memory and a processor, wherein the memory stores a computer program, and the first processor and the second processor implement the steps of the method described in the first aspect when executing the computer program.

[0014] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method described in the first aspect when executed by the first processor and the second processor.

[0015] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a first processor and a second processor, the steps of the method described in the first aspect are implemented.

[0016] The above-mentioned power control method, device, electronic device, storage medium and program product, the camera module in the electronic device detects whether the power limit condition is met in the working mode, and the power limit condition is used to characterize that the shooting picture corresponding to the camera module has a distorted screen and / or a jamming. If the power limit condition is met, it is characterized that the shooting picture has a distorted screen and / or a jamming. The camera module sends an interference instruction, and the radio frequency module in the electronic device responds to the interference instruction to reduce the transmission power of the radio frequency signal currently transmitted by the target antenna in the electronic device. The distance between the target antenna and the camera module is less than a preset distance threshold. In this way, by reducing the transmission power of the target antenna (the target antenna is closer to the camera module), it is possible to avoid excessive transmission power of the target antenna from causing signal interference to the camera module, thereby solving the problem of distorted screen and / or jamming in the shooting picture caused by the signal interference, and improving the shooting quality of the camera. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 is a schematic diagram of an electronic device in one embodiment;

[0019] Figure 2 is a schematic flow chart of a power control method in an embodiment;

[0020] Figure 3 is a flow chart of step 203 in another embodiment;

[0021] Figure 4 is a flow chart of step 301 in another embodiment;

[0022] Figure 5 is a flow chart of a power control method in another embodiment;

[0023] Figure 6 is a schematic diagram for comparing shooting images in another embodiment;

[0024] Figure 7 is a structural block diagram of a power control device in one embodiment;

[0025] Figure 8 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0027] With the development of imaging technology, it has become popular to equip electronic devices such as mobile phones and tablet computers with cameras. Even if users do not have professional cameras, they can use the cameras in electronic devices to take pictures at any time.

[0028] However, the shooting quality of the camera in the electronic device is easily affected by many factors, resulting in poor shooting quality. The inventor of the present application has found through a large number of research experiments that in some specific scenarios, when the camera is shooting images or videos, if the electronic device is in a weak signal scenario, the transmission power of the antenna in the electronic device will be relatively large, and if the antenna is close to the camera, the high transmission power of the antenna will cause signal interference to the camera, causing the camera's shooting screen to appear distorted and stuck, resulting in poor camera shooting quality, which may affect the user's normal use of the shooting function of the electronic device.

[0029] For example, see Figure 1 , Figure 1 In the electronic device 100 shown, ANT10 ( Figure 1 The antenna 101 shown is a transmitting antenna for cellular signals. The distance between ANT10 and the camera 102 is relatively close. When the camera 102 is shooting images or videos, if the transmission power of ANT10 is relatively large, it may cause signal interference to the MIPI (Mobile Industry Processor Interface, serial communication interface) communication in the camera 102, thereby causing the screen to be distorted or stuck in the shooting picture of the camera 102, affecting the user's normal shooting.

[0030] In view of this, embodiments of the present application provide a power control method, device, electronic device, storage medium, and program product, which can improve the shooting quality of a camera in an electronic device.

[0031] The power control method provided in the embodiment of the present application can be applied to electronic devices. The electronic devices may be, but are not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.

[0032] In an embodiment of the present application, a camera module and a radio frequency module are configured in the electronic device. The camera module includes a lens, an image sensor, an image signal processor, etc. The radio frequency module includes a radio frequency processor, a power amplifier, a low-noise amplifier, a switch, etc. The radio frequency module is connected to each antenna in the electronic device.

[0033] In an exemplary embodiment, Figure 2 As shown, a power control method is provided, and the method is applied to an electronic device as an example for explanation. The electronic device is equipped with a camera module and a radio frequency module. The power control method includes the following steps 201 to 203:

[0034] Step 201: The camera module is in working mode and detects whether a power limit condition is met.

[0035] The working mode may include a preview mode and a shooting mode. The camera module may have multiple preview modes, and each preview mode corresponds to a shooting mode. Taking the preview mode as an example, such as a photo preview mode, a recording preview mode, a portrait preview mode, etc., after the camera module is started, it may enter a default preview mode, and the user may select the desired preview mode to switch as needed.

[0036] In an embodiment of the present application, when the camera module is in any preview mode or shooting mode, it can detect whether the power limit condition is currently met. The power limit condition is used to indicate that the shooting picture corresponding to the camera module has screen distortion and / or freezes.

[0037] If the camera module detects that the power limit condition is met, it means that the shooting picture corresponding to the camera module has a distorted screen and / or a stuck screen; conversely, if the camera module detects that the power limit condition is not met, it means that the shooting picture corresponding to the camera module does not have a distorted screen and a stuck screen.

[0038] For example, during MIPI communication inside the camera module, the camera module can detect whether the bit error rate of data packet transmission is greater than a preset bit error rate threshold. If the bit error rate is greater than the preset bit error rate threshold, it is determined that the captured image has a distorted screen and / or stuck, thereby determining that the power limit condition is met; conversely, if the bit error rate is less than or equal to the preset bit error rate threshold, it is determined that the captured image does not have a distorted screen and stuck, thereby determining that the power limit condition is not met. The preset bit error rate threshold can be flexibly set during implementation.

[0039] Step 202: If the power limit condition is met, the camera module sends an interference instruction.

[0040] When the camera module detects that the power limit condition is met, the camera module sends an interference instruction, which is used to instruct the RF module to interfere with the signal of the camera module.

[0041] Exemplarily, the camera module may send the interference instruction in the form of broadcasting.

[0042] Step 203: The radio frequency module reduces the transmission power of the radio frequency signal currently transmitted by the target antenna in the electronic device in response to the interference instruction.

[0043] After the RF module receives the interference instruction, the RF module responds to the interference instruction and reduces the transmission power of the RF signal currently transmitted by the target antenna in the electronic device, and the distance between the target antenna and the camera module is less than a preset distance threshold. The preset distance threshold can be set by itself during implementation, for example, it can be set to a smaller distance value. If the distance between the target antenna and the camera module is less than the preset distance threshold, it indicates that the target antenna is close to the camera module, thereby reducing or eliminating the signal interference of the RF module to the camera module.

[0044] In a possible implementation of step 203, the RF module can determine one or more antennas in the electronic device that are currently transmitting RF signals, and select a target antenna that is closest to the camera module from the one or more antennas. Next, the RF module determines the frequency band used by the target antenna to currently transmit RF signals, and then reads the maximum transmission power corresponding to the target antenna and the frequency band from a preset storage location, and uses the maximum transmission power to limit the transmission power of the target antenna to reduce the transmission power of the target antenna.

[0045] Among them, the maximum transmission power corresponding to the target antenna and the frequency band can be obtained in advance. The maximum transmission power is the maximum allowable transmission power that will not cause signal interference to the camera module after testing. In this way, while avoiding the RF module from causing signal interference to the camera module, the communication quality can be guaranteed as much as possible.

[0046] Other possible implementations of step 203 will be described in the following embodiments.

[0047] In the above embodiment, the camera module in the electronic device detects whether the power limitation condition is met in the working mode, and the power limitation condition is used to characterize that the shooting picture corresponding to the camera module has a distorted screen and / or a jamming. If the power limitation condition is met, it indicates that the shooting picture has a distorted screen and / or a jamming. The camera module sends an interference instruction, and the radio frequency module in the electronic device responds to the interference instruction to reduce the transmission power of the radio frequency signal currently transmitted by the target antenna in the electronic device. The distance between the target antenna and the camera module is less than a preset distance threshold. In this way, by reducing the transmission power of the target antenna (the target antenna is closer to the camera module), it is possible to avoid excessive transmission power of the target antenna from causing signal interference to the camera module, thereby solving the problem of distorted screen and / or jamming in the shooting picture caused by the signal interference, and improving the shooting quality of the camera.

[0048] In one embodiment, Figure 2 Based on the embodiment shown, see Figure 3 This embodiment introduces another possible implementation method of reducing the transmission power of the radio frequency signal currently transmitted by the target antenna in the electronic device in response to the interference instruction by the radio frequency module.

[0049] See also Figure 3 , step 203 may include Figure 3 Step 301 and step 302 shown:

[0050] Step 301: The radio frequency module obtains at least one mapping relationship.

[0051] The above mapping relationships may be preset in the RF module, and the RF module obtains the preset mapping relationships.

[0052] Each mapping relationship includes a corresponding relationship between an antenna identifier, a frequency band identifier, and a maximum transmit power, and the distance between the antenna corresponding to each antenna identifier and the camera module is less than a preset distance threshold.

[0053] For one antenna, the antenna may support one frequency band or multiple frequency bands. When the antenna supports multiple frequency bands, the antenna corresponds to multiple mapping relationships, and the multiple mapping relationships correspond one-to-one to the multiple frequency bands supported by the antenna.

[0054] For example, antenna 1 supports frequency band 1, frequency band 2 and frequency band 3, then antenna 1 corresponds to mapping relationship 1, mapping relationship 2 and mapping relationship 3, wherein mapping relationship 1 includes the antenna identifier of antenna 1, the frequency band identifier of frequency band 1 and the maximum transmit power allowed when antenna 1 transmits radio frequency signals in frequency band 1, mapping relationship 2 includes the antenna identifier of antenna 1, the frequency band identifier of frequency band 2 and the maximum transmit power allowed when antenna 1 transmits radio frequency signals in frequency band 2, and mapping relationship 3 includes the antenna identifier of antenna 1, the frequency band identifier of frequency band 3 and the maximum transmit power allowed when antenna 1 transmits radio frequency signals in frequency band 3.

[0055] The maximum transmission power may be obtained in advance through testing, and the maximum transmission power is the maximum allowable transmission power that will not cause signal interference to the camera module after testing.

[0056] Step 302: The radio frequency module determines the maximum target transmit power according to each mapping relationship, and reduces the transmit power of the target antenna according to the maximum target transmit power.

[0057] The following is an exemplary introduction to the process of the RF module determining the maximum target transmit power according to various mapping relationships.

[0058] Optionally, for each mapping relationship, the RF module can detect whether the antenna currently used by the RF module to transmit the RF signal matches the antenna identifier included in the mapping relationship, and detect whether the frequency band currently used by the RF module to transmit the RF signal matches the frequency band identifier included in the mapping relationship. That is, the RF module detects whether the antenna identifier of the antenna currently used to transmit the RF signal is consistent with the antenna identifier included in the mapping relationship, and the RF module also detects whether the frequency band identifier of the frequency band currently used to transmit the RF signal is consistent with the frequency band identifier included in the mapping relationship.

[0059] If the antenna identifier is consistent, it means that the antenna used to transmit the RF signal currently matches the antenna identifier included in the mapping relationship. If the frequency band identifier is consistent, it means that the frequency band used to transmit the RF signal currently matches the frequency band identifier included in the mapping relationship. When both the antenna identifier and the frequency band identifier match, the antenna is determined to be the target antenna, and the maximum transmit power included in the mapping relationship is determined as the maximum target transmit power.

[0060] Optionally, the RF module may first match, based on the antenna identifier of the antenna used to transmit the current RF signal, a candidate mapping relationship including the antenna identifier from the obtained various mapping relationships, and then further match, based on the frequency band identifier of the frequency band used to transmit the current RF signal, a target mapping relationship including the frequency band identifier from the candidate mapping relationships, and determine the maximum transmit power included in the target mapping relationship as the maximum target transmit power; or, the RF module may first match, based on the frequency band identifier of the frequency band used to transmit the current RF signal, a candidate mapping relationship including the frequency band identifier from the obtained various mapping relationships, and then further match, based on the antenna identifier of the antenna used to transmit the current RF signal, a target mapping relationship including the antenna identifier from the candidate mapping relationships, and determine the maximum transmit power included in the target mapping relationship as the maximum target transmit power. In this way, by narrowing the range of the mapping relationships through the first matching process and then performing a secondary matching to obtain the target mapping relationship, the matching efficiency can be improved.

[0061] After determining the maximum target transmit power according to the various mapping relationships through the above-described implementation manner, the RF module then reduces the transmit power of the target antenna according to the maximum target transmit power. Exemplarily, the RF module controls the target antenna to transmit the RF signal at the maximum target transmit power. It can be understood that the maximum target transmit power is the maximum allowable transmit power after being restricted to avoid signal interference from the RF module to the camera module.

[0062] In a possible implementation manner, the above steps 301 and 302 may be implemented by a modem in the RF module. Exemplarily, after the RF processor in the RF module receives the interference instruction broadcast by the camera module, the RF processor issues an instruction to limit the transmit power to the modem. The modem then obtains at least one mapping relationship, writes this information into a temporary storage area, and then the modem compares the antenna and frequency band used to transmit the current RF signal according to the various mapping relationships, determines the maximum target transmit power, and sets a limit on the transmit power of the target antenna according to the maximum target transmit power, so as to achieve the purpose of reducing the transmit power of the target antenna.

[0063] In the above embodiment, by controlling the target antenna to transmit the RF signal at the maximum target transmit power, the communication quality can be ensured as much as possible. By reducing the transmit power of the target antenna, signal interference from the RF module to the camera module can be avoided, the problem of the captured image being distorted or frozen can be solved, and the shooting experience can be improved.

[0064] In one embodiment, on the basis of Figure 3 the embodiment shown, refer to Figure 4 , this embodiment introduces the implementation manner of the RF module for obtaining at least one mapping relationship.

[0065] Refer to Figure 4 , step 301 may include Figure 4 Step 401 and step 402 are shown:

[0066] Step 401: The radio frequency module determines the signal type of the radio frequency signal.

[0067] The signal type includes a cellular signal, a Bluetooth signal, or a WIFI (Wireless Fidelity) signal.

[0068] In the embodiment of the present application, the RF signal currently transmitted by the RF module may be a cellular signal, a Bluetooth signal or a WIFI signal. For RF signals of different signal types, there are certain differences in the frequency bands and antennas used.

[0069] In view of this, in the embodiments of the present application, for different signal types, the mapping relationship corresponding to the signal type is preset respectively. For example, for cellular signals, the transmission of cellular signals may use antenna 1, antenna 2 and antenna 3 in the electronic device, wherein the distance between antenna 1 and antenna 2 and the camera module is less than the preset distance threshold, then the mapping relationship between antenna 1 and its corresponding cellular frequency bands and maximum transmission powers is preset, and the mapping relationship between antenna 2 and its corresponding cellular frequency bands and maximum transmission powers is preset.

[0070] Step 402: The radio frequency module obtains mapping relationships corresponding to the signal type according to the signal type.

[0071] In this way, when the RF module obtains at least one mapping relationship, it can first determine the signal type of the currently transmitted RF signal, such as whether the currently transmitted signal is a cellular signal, a Bluetooth signal or a WIFI signal, and then obtain the various mapping relationships corresponding to the signal type based on the signal type.

[0072] In a possible implementation of step 402, the RF module may obtain each mapping relationship from NV (Non-Volatile) data according to the signal type, that is, each mapping relationship is stored in the NV partition in the form of NV data, and the RF module obtains each mapping relationship from the NV partition, and then determines the maximum target transmission power based on each mapping relationship, and then limits the transmission power of the target antenna by means of an interface according to the maximum target transmission power.

[0073] In another possible implementation of step 402, the SAR (Specific Absorption Rate) solution can also be used to limit the maximum transmission power. However, this method cannot limit the transmission power of the SRS (Sounding Reference Signal) signal. Therefore, the SRS signal needs to be limited separately.

[0074] Exemplarily, the RF module can identify whether the currently transmitted RF signal is an SRS signal. When the RF signal is not an SRS signal, the RF module obtains each mapping relationship from the EFS (Extended File System) file according to the signal type, that is, each mapping relationship is stored in the EFS partition in the form of EFS data. The RF module obtains each mapping relationship from the EFS partition, and then determines the maximum target transmission power based on each mapping relationship; when the RF signal is an SRS signal, the RF module still obtains each mapping relationship from the NV data according to the signal type.

[0075] After the RF module obtains the mapping relationships corresponding to the signal type according to the signal type, it can determine the maximum target transmit power according to the mapping relationships, and then reduce the transmit power of the target antenna according to the maximum target transmit power. The implementation method of obtaining the mapping relationship in this embodiment is flexible and diverse, and can be flexibly selected during implementation, which is conducive to improving the implementation flexibility of the embodiment of this application.

[0076] In one embodiment, if the camera module detects a camera exit command, it sends a power recovery command and then exits the working mode. The RF module responds to the power recovery command and increases the transmission power of the target antenna.

[0077] Assuming that the frequency band used by the target antenna when the RF module reduces the transmission power of the target antenna in step 203 is called the target frequency band, after the RF module receives the power recovery instruction, the RF module can read (for example, read from the NV partition) the maximum transmission power corresponding to the target antenna and the target frequency band. It can be understood that the maximum transmission power is the maximum transmission power of the target frequency band supported by the RF module, and the maximum transmission power is greater than the maximum target transmission power after the above power limit. If the target antenna is still transmitting RF signals on the target frequency band at this time, the RF module restores the transmission power of the target antenna according to the maximum transmission power, and if the target antenna is not transmitting RF signals on the target frequency band at this time, the RF module writes the maximum transmission power corresponding to the target antenna and the target frequency band into the temporary storage area, and the next time the target antenna transmits RF signals on the target frequency band, the transmission power of the target antenna is restored according to the maximum transmission power, thereby releasing the transmission power limit corresponding to the target antenna and the target frequency band.

[0078] In this way, the embodiment of the present application promptly restores the transmission power of the target antenna when the camera module exits, thereby ensuring the communication quality.

[0079] In one embodiment, based on Figure 2 The embodiment shown, see Figure 5 , the camera module can be Figure 5Steps 2011 and 2012 shown in the figure implement the process of the camera module detecting whether the power limit condition is met in the working mode. Figure 5 As shown, step 201 includes the following steps:

[0080] Step 2011: The camera module detects whether an interference mark is stored in a preset storage location in the working mode.

[0081] The interference flag is generated when the camera module determines that the RF module has signal interference with the camera module.

[0082] In an embodiment of the present application, the camera module can also detect whether the power limit condition is met during the last preview or shooting process. If the power limit condition is met, the camera module sends an interference command. After the camera module sends the interference command, the RF module reduces the transmission power of the target antenna. The camera module can also detect whether the degree of screen distortion and / or freeze in the captured image is reduced.

[0083] Exemplarily, the camera module can be realized by detecting the bit error rate of the current MIPI communication inside the camera module. If the bit error rate is reduced, that is, the degree of screen distortion and / or jamming is reduced, then it is determined that the screen distortion and / or jamming of the captured picture is caused by the signal interference of the RF module to the camera module. The camera module then generates an interference flag and stores the interference flag in a preset storage location.

[0084] On the contrary, if the degree of screen distortion and / or freezing does not decrease, it means that the screen distortion and / or freezing of the captured image may not be caused by the signal interference of the RF module to the camera module, and the camera module will not generate the interference flag.

[0085] In this way, after the camera module is in the working mode, it can first detect whether the above-mentioned interference mark is stored in the preset storage location.

[0086] Step 2012: If the interference flag is not stored in the preset storage location, the camera module detects whether the power limit condition is met.

[0087] If the interference flag is not stored in the preset storage location, it may be that during the last power control process, the camera module determined that the screen distortion and / or freeze of the shooting picture was not caused by the signal interference of the RF module to the camera module, so the camera module re-detects whether the power limit condition is met. Of course, if the interference flag is not stored in the preset storage location, it may also be that the current power control process is the first power control process.

[0088] Regarding the implementation method of the camera module detecting whether the power limitation condition is met, reference may be made to the relevant description in the above embodiments, which will not be repeated here.

[0089] When the camera module detects that the power limit condition is met, the camera module sends an interference instruction, and the radio frequency module responds to the interference instruction to reduce the transmission power of the radio frequency signal currently transmitted by the target antenna in the electronic device.

[0090] Please continue to see Figure 5 The power control method of the embodiment of the present application also includes Figure 5 Step 501 shown:

[0091] Step 501: If an interference flag is stored in the preset storage location, the camera module sends an interference instruction.

[0092] If the interference flag is stored in the preset storage location, the camera module no longer needs to detect whether the power limit condition is met, but directly sends an interference instruction. The frequency module responds to the interference instruction and directly reduces the transmission power of the RF signal currently transmitted by the target antenna in the electronic device.

[0093] In this way, after the camera module reads the interference flag from the preset storage location, it directly sends an interference instruction, which can avoid screen distortion and / or freezes in the shooting picture during the process of the camera module detecting whether the power limit conditions are met, further improving the shooting quality of the camera module.

[0094] In one embodiment, if the interference flag is not stored in the above preset storage location, please continue to refer to Figure 5 In the embodiment of the present application, after step 202, the following steps are also included: Figure 5 Step 502 and step 503 shown:

[0095] Step 502: The camera module detects whether the degree of screen distortion and / or freeze of the captured image is reduced.

[0096] As described above, the camera module can determine whether the degree of screen distortion and / or freeze of the captured image is reduced by detecting the bit error rate of the current MIPI communication within the camera module.

[0097] Step 503: If the degree of screen distortion and / or freeze is reduced, the camera module generates an interference flag and stores the interference flag in a preset storage location.

[0098] If the degree of screen distortion and / or jamming is reduced, it is determined that the screen distortion and / or jamming of the captured image is caused by the signal interference of the RF module to the camera module. The camera module generates an interference flag and stores the interference flag in a preset storage location. The next time the camera module is working, it can directly send an interference instruction according to the interference flag. The frequency module responds to the interference instruction and directly reduces the transmission power of the RF signal currently transmitted by the target antenna in the electronic device, thereby avoiding screen distortion and / or jamming in the captured image during the process of the camera module detecting whether the power limit condition is met, and further improving the shooting quality of the camera module.

[0099] In one embodiment, a power control method is provided for an electronic device, the electronic device including a camera module and a radio frequency module, the method comprising:

[0100] Step A1: The camera module is in working mode and detects whether an interference mark is stored in a preset storage location.

[0101] The interference flag is generated when the camera module determines that the RF module has signal interference with the camera module.

[0102] Step A2: If the interference flag is not stored in the preset storage location, the camera module detects whether the power limit condition is met.

[0103] The power limit condition is used to indicate that the captured image of the camera module has screen distortion and / or freeze.

[0104] Step A3: If the power limit condition is met, the camera module sends an interference instruction.

[0105] In step A4, if an interference flag is stored in the preset storage location, the camera module sends an interference instruction.

[0106] Step A5: The RF module receives the interference instruction, and determines the signal type of the currently transmitted RF signal.

[0107] The signal type includes a cellular signal, a Bluetooth signal or a WIFI signal.

[0108] In step A6, the RF module obtains each mapping relationship from the NV data according to the signal type; or, when the RF signal is not an SRS signal, the RF module obtains each mapping relationship from the EFS file according to the signal type; when the RF signal is an SRS signal, the RF module obtains each mapping relationship from the NV data according to the signal type.

[0109] The mapping relationship includes a correspondence between an antenna identifier, a frequency band identifier, and a maximum transmit power, and the distance between the antenna corresponding to the antenna identifier and the camera module is less than a preset distance threshold.

[0110] Step A7, for each mapping relationship, the RF module detects whether the antenna currently used to transmit the RF signal matches the antenna identifier included in the mapping relationship, and whether the frequency band currently used to transmit the RF signal matches the frequency band identifier included in the mapping relationship.

[0111] Step A8: If the antenna currently used to transmit the RF signal matches the antenna identifier, and the frequency band currently used to transmit the RF signal matches the frequency band identifier, the antenna is determined to be the target antenna, and the maximum transmit power included in the mapping relationship is determined as the maximum target transmit power.

[0112] Step A9: The RF module reduces the transmit power of the target antenna according to the maximum target transmit power.

[0113] Step A10: If the camera module detects a camera exit command, it sends a power recovery command.

[0114] Step A11: The RF module increases the transmission power of the target antenna in response to the power recovery instruction.

[0115] Among them, after step A3, the camera module can also detect whether the degree of screen distortion and / or jamming of the captured image is reduced. If the degree of screen distortion and / or jamming is reduced, the camera module generates an interference flag and stores the interference flag in a preset storage location.

[0116] The following is an example to illustrate the effect of the embodiment of the present application on improving the shooting quality of the camera module.

[0117] See also Figure 1 and Figure 6 , taking the electronic device as a smartphone as an example, the ANT10 in the smartphone (such as Figure 1 The antenna 101 shown is currently registered in the N78 frequency band, and the transmission power of ANT10 is 27dbm.

[0118] The camera module of the smartphone detects that the picture taken by the camera module has a distorted screen (see Figure 6 The camera module sends an interference command. After receiving the interference command, the RF module of the smartphone obtains the mapping relationships from the NV data and finally determines that the maximum target transmission power corresponding to the ANT10 and N78 frequency bands is 20dbm based on the mapping relationships. The RF module limits the transmission power of ANT10 to 20dbm.

[0119] After the transmission power of ANT10 is reduced, the signal interference of the RF module to the camera module is eliminated, so that the camera module can shoot normally, and the screen noise phenomenon of the shooting picture is significantly improved (see Figure 6 (Example of shooting screen on the right in center).

[0120] When the camera module detects a camera exit command (such as a user trigger), the camera module sends a power recovery command. After the RF module receives the power recovery command, the RF module reads the maximum transmit power of 33dbm corresponding to the ANT10 and N78 bands from the NV partition, and the RF module takes effect on the 33dbm value, thereby restoring the transmit power corresponding to the ANT10 and N78 bands to 27dbm before the power reduction (of course, it can also be greater than 27dbm, but it needs to be less than or equal to 33dbm).

[0121] The embodiment of the present application can avoid the problem of the camera module being interfered with by the signal of the RF module. After the camera module is exited, the power limit of the target antenna is promptly released, thereby effectively ensuring the normal communication function of the target antenna and improving the shooting and communication experience of the electronic device.

[0122] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0123] Based on the same inventive concept, the embodiment of the present application also provides a power control device for implementing the power control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more power control device embodiments provided below can refer to the limitations on the power control method above, and will not be repeated here.

[0124] In an exemplary embodiment, Figure 7 As shown, a power control device is provided for an electronic device, the electronic device comprising a camera module and a radio frequency module, the device comprising:

[0125] A detection module 701 is used to detect whether a power limit condition is met through the camera module when the camera module is in a working mode, and the power limit condition is used to indicate that a captured image corresponding to the camera module has a distorted screen and / or a stuck state;

[0126] A sending module 702, configured to send an interference instruction through the camera module if the power limit condition is met;

[0127] The control module 703 is used to respond to the interference instruction through the RF module to reduce the transmission power of the RF signal currently transmitted by the target antenna in the electronic device, and the distance between the target antenna and the camera module is less than a preset distance threshold.

[0128] In one embodiment, the control module 703 includes:

[0129] an acquisition unit, configured to acquire at least one mapping relationship through the radio frequency module, the mapping relationship including a correspondence between an antenna identifier, a frequency band identifier, and a maximum transmit power, wherein a distance between an antenna corresponding to the antenna identifier and the camera module is less than a preset distance threshold;

[0130] A control unit is used to determine the maximum target transmission power according to each of the mapping relationships through the radio frequency module, and reduce the transmission power of the target antenna according to the maximum target transmission power.

[0131] In one of the embodiments, the control unit is specifically used to detect, for each of the mapping relationships, whether the antenna currently used to transmit the RF signal matches the antenna identifier included in the mapping relationship, and whether the frequency band currently used to transmit the RF signal matches the frequency band identifier included in the mapping relationship; if the antenna currently used to transmit the RF signal matches the antenna identifier, and the frequency band currently used to transmit the RF signal matches the frequency band identifier, the RF module is used to determine that the antenna is the target antenna, and the RF module is used to determine the maximum transmission power included in the mapping relationship as the maximum target transmission power.

[0132] In one of the embodiments, the acquisition unit is specifically used to determine the signal type of the radio frequency signal through the radio frequency module; and acquire each mapping relationship corresponding to the signal type according to the signal type through the radio frequency module.

[0133] In one embodiment, the signal type includes a cellular signal, a Bluetooth signal or a WIFI signal.

[0134] In one of the embodiments, the acquisition unit is specifically used to acquire each of the mapping relationships from the NV data according to the signal type through the RF module; or, when the RF signal is not an SRS signal, acquire each of the mapping relationships from the EFS file according to the signal type through the RF module; when the RF signal is the SRS signal, acquire each of the mapping relationships from the NV data according to the signal type through the RF module.

[0135] In one of the embodiments, the detection module 701 is specifically used for the camera module to detect, in the working mode, whether an interference flag is stored in a preset storage location through the camera module, and the interference flag is generated when the camera module determines that the RF module has signal interference with the camera module; if the interference flag is not stored in the preset storage location, the camera module is used to detect whether the power limit condition is met.

[0136] In one embodiment, the device further comprises:

[0137] An execution module is used to execute the step of sending the interference instruction through the camera module if the interference mark is stored in the preset storage location.

[0138] In one embodiment, the detection module 701 is further configured to detect, through the camera module, whether the degree of screen distortion and / or freeze of the captured image is reduced after the sending module 702 sends the interference instruction through the camera module;

[0139] The device also includes:

[0140] A generating module is used to generate the interference mark through the camera module and store the interference mark in the preset storage location if the screen distortion degree and / or the freeze degree is reduced.

[0141] In one of the embodiments, the sending module 702 is further configured to send a power recovery instruction if a camera exit instruction is detected by the camera module;

[0142] The control module 703 is further configured to increase the transmission power of the target antenna in response to the power recovery instruction through the radio frequency module.

[0143] Each module in the above power control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in the electronic device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0144] In an exemplary embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 8 As shown. The electronic device includes a processor (the processor may include a first processor and a second processor), a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NearField Communication, NFC) or other technologies. When the computer program is executed by the processor, a power control method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.

[0145] Those skilled in the art will understand that Figure 8 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0146] The embodiment of the present application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by the first processor and the second processor, the processors execute the steps of the power control method.

[0147] The embodiment of the present application also provides a computer program product including instructions, which, when executed on an electronic device, enables the electronic device to execute a power control method.

[0148] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0149] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital power controller, a programmable logic unit, a data processing logic unit based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0150] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0151] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A power control method, characterized in that: Used in an electronic device, the electronic device includes a camera module and a radio frequency module, the method includes: The camera module detects whether a power limit condition is met in the working mode, where the power limit condition is used to indicate that a captured image corresponding to the camera module has a distorted screen and / or a stuck screen; If the power limit condition is met, the camera module sends an interference instruction; The radio frequency module reduces the transmission power of the radio frequency signal currently transmitted by the target antenna in the electronic device in response to the interference instruction, and the distance between the target antenna and the camera module is less than a preset distance threshold.

2. The method according to claim 1, characterized in that The radio frequency module reduces the transmission power of the radio frequency signal currently transmitted by the target antenna in the electronic device in response to the interference instruction, including: The radio frequency module acquires at least one mapping relationship, the mapping relationship including a correspondence between an antenna identifier, a frequency band identifier, and a maximum transmit power, and a distance between an antenna corresponding to the antenna identifier and the camera module is less than a preset distance threshold; The radio frequency module determines the maximum target transmit power according to each of the mapping relationships, and reduces the transmit power of the target antenna according to the maximum target transmit power.

3. The method according to claim 2, characterized in that The radio frequency module determines the maximum target transmit power according to each of the mapping relationships, including: For each of the mapping relationships, the radio frequency module detects whether the antenna currently used to transmit the radio frequency signal matches the antenna identifier included in the mapping relationship, and whether the frequency band currently used to transmit the radio frequency signal matches the frequency band identifier included in the mapping relationship; If the antenna currently used to transmit the RF signal matches the antenna identifier, and the frequency band currently used to transmit the RF signal matches the frequency band identifier, the antenna is determined to be the target antenna, and the maximum transmit power included in the mapping relationship is determined as the maximum target transmit power.

4. The method according to claim 2, characterized in that: The radio frequency module obtains at least one mapping relationship, including: The radio frequency module determines a signal type of the radio frequency signal; The radio frequency module obtains the mapping relationships corresponding to the signal type according to the signal type.

5. The method according to claim 4, characterized in that The signal type includes a cellular signal, a Bluetooth signal or a WIFI signal.

6. The method according to claim 4, characterized in that The radio frequency module obtains, according to the signal type, each of the mapping relationships corresponding to the signal type, including: The RF module obtains each of the mapping relationships from the NV data according to the signal type; or, When the RF signal is not an SRS signal, the RF module obtains each mapping relationship from the EFS file according to the signal type. When the RF signal is the SRS signal, the RF module obtains each mapping relationship from the NV data according to the signal type.

7. The method according to claim 1, characterized in that The camera module detects whether the power limit condition is met in the working mode, including: The camera module detects, in the working mode, whether an interference flag is stored in a preset storage location, where the interference flag is generated when the camera module determines that the radio frequency module has signal interference with the camera module; If the interference flag is not stored in the preset storage location, the camera module detects whether the power limit condition is met.

8. The method according to claim 7, characterized in that The method further comprises: If the interference mark is stored in the preset storage location, the camera module executes the step of sending the interference instruction.

9. The method according to claim 7, characterized in that: After the camera module sends the interference instruction, the method further includes: The camera module detects whether the degree of screen distortion and / or freeze of the captured image is reduced; If the degree of screen distortion and / or the degree of freezing is reduced, the camera module generates the interference mark and stores the interference mark in the preset storage location.

10. The method according to claim 1, characterized in that The method further comprises: If the camera module detects a camera exit command, it sends a power recovery command; The radio frequency module increases the transmission power of the target antenna in response to the power recovery instruction.

11. A power control device, characterized in that: Used in electronic equipment, the electronic equipment includes a camera module and a radio frequency module, the device includes: A detection module, used for detecting whether a power limit condition is satisfied by the camera module when the camera module is in a working mode, wherein the power limit condition is used to indicate that a captured image corresponding to the camera module has a distorted screen and / or a stuck state; A sending module, configured to send an interference instruction through the camera module if the power limit condition is met; The control module is used to respond to the interference instruction through the radio frequency module to reduce the transmission power of the radio frequency signal currently transmitted by the target antenna in the electronic device, and the distance between the target antenna and the camera module is less than a preset distance threshold.

12. An electronic device comprising a first processor, a second processor, a memory and a processor, wherein the memory stores a computer program, characterized in that: When the first processor and the second processor execute the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the first processor and the second processor, the steps of the method according to any one of claims 1 to 10 are implemented.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by the first processor and the second processor, the steps of the method according to any one of claims 1 to 10 are implemented.