CN114727101B - Antenna power adjusting method and electronic equipment - Google Patents
Antenna power adjusting method and electronic equipment Download PDFInfo
- Publication number
- CN114727101B CN114727101B CN202210642067.XA CN202210642067A CN114727101B CN 114727101 B CN114727101 B CN 114727101B CN 202210642067 A CN202210642067 A CN 202210642067A CN 114727101 B CN114727101 B CN 114727101B
- Authority
- CN
- China
- Prior art keywords
- antenna
- image information
- power
- camera
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/345—Interference values
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/382—Monitoring; Testing of propagation channels for resource allocation, admission control or handover
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Computer Networks & Wireless Communication (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Quality & Reliability (AREA)
- Telephone Function (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the application discloses an antenna power adjusting method and electronic equipment, which can reduce the amplitude of the antenna transmitting power as much as possible while ensuring the normal work of a camera, thereby balancing the shooting experience and the communication experience of a user. The method comprises the following steps: when the camera application is started, first image information is collected through the camera. And when the error rate of the first image information is greater than or equal to a preset threshold value, reducing the transmitting power of the first antenna by a first preset value. And monitoring the error rate of second image information acquired by the camera, wherein the second image information is the image information currently acquired by the camera. And when the error rate of the second image information is greater than or equal to a preset threshold, reducing the transmitting power of the first antenna by taking a second preset value as a step length, and stopping adjusting the transmitting power until the error rate of the second image information is less than the preset threshold, wherein the second preset value is less than the first preset value.
Description
Technical Field
The embodiment of the application relates to the field of antennas, in particular to an antenna power adjusting method and electronic equipment.
Background
Cameras are a very important component in electronic devices. The electronic equipment can shoot images or videos through the camera. However, the camera may be interfered by the antenna transmitting power in the electronic device when operating, which may cause the phenomena of screen blooming, screen jamming, screen freezing, etc. on the camera interface.
In order to ensure the quality of images acquired by the camera, the electronic equipment can reduce the transmitting power of the antenna when the camera is started. However, reducing the transmission power of the antenna may degrade the communication capability of the electronic device. Therefore, how to reduce the influence of the reduction of the antenna power on the communication capability of the electronic device while ensuring the normal operation of the camera becomes an urgent problem to be solved.
Disclosure of Invention
The embodiment of the application provides an antenna power adjusting method and electronic equipment, which can reduce and reduce the amplitude of the antenna transmitting power as much as possible while ensuring the normal work of a camera, and the communication experience of a user is better.
In order to achieve the above purpose, the following technical solutions are adopted in the embodiments of the present application.
In a first aspect, an antenna power adjustment method is applied to an electronic device, where the electronic device includes a camera and a first antenna. The method comprises the following steps: when the camera application is started, first image information is collected through the camera. And when the error rate of the first image information is greater than or equal to a preset threshold value, reducing the transmitting power of the first antenna by a first preset value. And monitoring the error rate of second image information acquired by the camera, wherein the second image information is the image information currently acquired by the camera. And when the error rate of the second image information is greater than or equal to a preset threshold, reducing the transmitting power of the first antenna by taking a second preset value as a step length, and stopping adjusting the transmitting power until the error rate of the second image information is less than the preset threshold, wherein the second preset value is less than the first preset value.
Based on the scheme, the embodiment of the application detects whether the camera is interfered by the antenna or not after detecting that the camera is started. If yes, the power of the antenna is reduced by a first preset value. And then continuously detecting whether the camera is interfered by the antenna. If so, continuously reducing the power of the antenna by taking the second preset numerical value as the step length until the camera is detected not to be interfered by the antenna. Therefore, the amplitude of the antenna transmitting power can be reduced as much as possible while the camera is ensured to work normally, and the shooting experience and the communication experience of a user are balanced.
In one possible design, when the error rate of the second image information is smaller than a preset threshold, the transmission power of the first antenna is increased by taking a second preset value as a step length, and until the error rate of the second image information is larger than or equal to the preset threshold, the transmission power of the first antenna is decreased by a first preset value. Based on the scheme, the amplitude for reducing the transmitting power of the antenna can be reduced as much as possible, and the communication experience of a user is ensured.
In one possible design, the electronic device includes a data verification module and a data transmission module. Before monitoring the error rate of the second image information acquired by the camera, the method further comprises the following steps: and packaging the second image information through a data transmission module to obtain a first data packet. The first data packet includes an error checking code. And sending the first data packet to a data checking module through a data transmission module. And analyzing the first data packet through the data verification module, and obtaining second image information and an error verification code when the analysis is successful. And verifying the second image information through the data verification module according to the error verification code to obtain the error rate of the second image information. Based on the scheme, the problem that the communication performance is greatly influenced after the transmitting power of the first antenna is reduced by the first preset value can be avoided, the amplitude for reducing the transmitting power of the antenna is reduced as much as possible, and the communication experience of a user is guaranteed.
In one possible design, an antenna adjustment module and a modem are also included in the electronic device. When the error rate of the first image information is greater than or equal to a preset threshold, reducing the transmitting power of the first antenna by a first preset value, including: and when the error rate of the first image information is greater than or equal to a preset threshold value, sending first information to the antenna adjusting module through the data checking module, wherein the first information is used for indicating that the error rate of the first image information is greater than or equal to the preset threshold value. And sending a first instruction to the modem through the antenna adjusting module according to the first information, wherein the first instruction is used for instructing the modem to reduce the transmitting power of the first antenna by a first preset value. And reducing the transmitting power of the first antenna by a first preset value through the modem according to the first instruction. Based on the scheme, the transmitting power of the first antenna can be conveniently and accurately adjusted.
In one possible design, the method further includes: and when the analysis fails, determining that the error rate of the second image information is greater than a preset threshold value. Based on the scheme, the problem that the preview image cannot be displayed by the image information can be avoided.
In one possible design, the electronic device further includes a display screen. When the error rate of the image information is greater than or equal to the preset threshold value, the electronic equipment generates a screen splash when displaying the preview image corresponding to the image information. When the error rate of the image information is smaller than the preset threshold value, the electronic equipment does not generate screen splash when displaying the preview image corresponding to the image information. Based on the scheme, the amplitude of the transmitting power of the antenna can be reduced as much as possible while the camera is ensured to work normally, so that the shooting experience and the communication experience of a user are balanced.
In one possible design, the method further includes: and when the error rate of the image information is greater than or equal to a preset threshold value, displaying a first preset numerical value selection control on a display interface of the camera application. In response to an operation of selecting a control for a first preset numerical value, a first power list is displayed on a display interface of the camera application. The first power list includes at least one power value. In response to an operation on a first power value in the first power list, the first power value is set to a first preset value. Based on the scheme, the definability of the first preset numerical value can be improved, and the use experience of a user is improved.
In one possible design, the method further includes: and when the error rate of the image information is greater than or equal to a preset threshold value, displaying a second preset numerical value selection control on a display interface of the camera application. And responding to the operation of the selection control aiming at the second preset numerical value, and displaying a second power list on a display interface of the camera application. The second power list includes at least one power value. And setting the second power value to be a second preset value in response to the operation aiming at the second power value in the second power list. Based on the scheme, the definability of the second preset numerical value can be improved, and the use experience of a user is improved.
In one possible design, the method further includes: and adjusting the power value which is greater than or equal to the first power value in the second power list to be in an unselected state in response to the operation aiming at the first power value in the first power list. And adjusting the power value which is smaller than or equal to the second power value in the first power list to be in an unselected state in response to the operation aiming at the second power value in the second power list. Based on the scheme, the amplitude for reducing the transmitting power of the antenna can be reduced as much as possible, and the communication experience of a user is ensured.
In one possible design, the method further includes: when the error rate of the image information is larger than or equal to a preset threshold value, prompt information is displayed on a display interface of the camera application, and the prompt information is used for prompting that the work of the camera is interfered by the first antenna. Based on the scheme, the user can conveniently know the reason why the display interface of the camera application is shown with a screen in time, and the use experience of the user is improved.
In a second aspect, an electronic device is provided that includes one or more processors and one or more memories. One or more memories are coupled to the one or more processors, the one or more memories storing computer instructions. The computer instructions, when executed by the one or more processors, cause the electronic device to perform the antenna power adjustment method of any of the first aspects.
In a third aspect, a computer-readable storage medium is provided, which comprises computer instructions that, when executed, perform the antenna power adjustment method according to any one of the first aspect.
In a fourth aspect, a computer program product is provided, which comprises instructions that, when run on a computer, enable the computer to perform the antenna power adjustment method according to any of the first aspect.
It should be understood that, technical features of the technical solutions provided in the second aspect, the third aspect and the fourth aspect may all correspond to the antenna power adjusting method provided in the second aspect and possible designs thereof, and therefore, similar beneficial effects can be achieved, and details are not described herein again.
Drawings
Fig. 1 is a schematic diagram of a connection relationship of cameras in an electronic device;
FIG. 2 is a schematic diagram of a camera interface screen;
FIG. 3 is a schematic diagram of a camera interface displaying a complete image;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic flowchart of an antenna power adjustment method according to an embodiment of the present application;
fig. 7 is a schematic diagram of an antenna power adjustment process provided in an embodiment of the present application;
fig. 8 is a schematic diagram of another antenna power adjustment process provided in an embodiment of the present application;
fig. 9 is a schematic flowchart of another antenna power adjustment method according to an embodiment of the present application;
fig. 10 is a schematic flowchart illustrating a preview image displaying image information according to an embodiment of the present application;
fig. 11 is a schematic display interface diagram of a camera application according to an embodiment of the present application;
fig. 12 is a schematic display interface diagram of another camera application provided in the embodiment of the present application;
fig. 13 is a schematic display interface diagram of another camera application provided in the embodiment of the present application;
fig. 14 is a schematic display interface diagram of another camera application provided in the embodiment of the present application;
fig. 15 is a schematic display interface diagram of another camera application provided in the embodiment of the present application;
fig. 16 is a schematic composition diagram of an electronic device according to an embodiment of the present application;
fig. 17 is a schematic composition diagram of a chip system according to an embodiment of the present application.
Detailed Description
The terms "first", "second", and "third" in the embodiments of the present application are used to distinguish different objects, and are not used to define a specific order. Moreover, the words "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion.
To facilitate understanding of the embodiments of the present application, the background of the application of the present application is described below.
Please refer to fig. 1, which is a schematic diagram illustrating a connection relationship between cameras in an electronic device. As shown in fig. 1, the application processor is connected to the camera and the modem, respectively. The radio frequency module is respectively connected with the modem and the antenna.
Because the antenna is close to the camera, electromagnetic waves generated when the antenna transmits power can interfere with signals in the camera, and the phenomenon of screen splash appears on the camera interface as shown in fig. 2. The screen-splash phenomenon is the phenomenon that a preview image displayed on a camera interface has stripes, snowflakes and other image loss phenomena.
In order to prevent the transmitting power of the antenna from interfering the normal work of the camera, the application processor can send a power reduction instruction to the modem when detecting that the camera is started. The modem sends the power down command to the radio frequency module. And the radio frequency module reduces the transmitting power of the antenna according to the power reduction instruction.
That is, the electronic device may reduce the transmit power of the antenna in response to activation of the camera. However, the camera of the electronic device is not necessarily interfered by the antenna when operating, and the degree of interference of the camera by the antenna may be different for different electronic devices.
Therefore, for electronic equipment with a camera not subjected to antenna interference or with a camera subjected to less antenna interference, reducing excessive transmission power when the camera is started wastes communication performance of the electronic equipment, and communication experience of a user is affected. For electronic equipment with a camera seriously interfered by an antenna, the problems of screen blooming, screen blockage, screen freezing and the like of a camera interface can not be solved by reducing too little transmitting power when the camera is started.
Exemplarily, the electronic device A1 includes a camera B1 and an antenna ant1, and the electronic device A2 includes a camera B2 and an antenna ant2. The camera B1 during operation can receive the interference of antenna ant1, and the camera B2 during operation can receive the interference of antenna ant2. When the camera B1 is started, the electronic device A1 controls the transmitting power of the antenna ant1 to be reduced by 5dB. When the camera B2 starts, the electronic device A2 controls the transmitting power of the antenna ant2 to be reduced by 5dB.
In a possible scenario, the antenna ant1 only needs to reduce 3dB to eliminate the interference to the camera B1, and the antenna ant2 only needs to reduce 7dB to eliminate the interference to the camera B2.
Before the power of the antenna is reduced, the camera interfaces of the electronic device A1 and the electronic device A2 both have the screen blooming phenomenon as shown in fig. 2. After powering down the antenna, the electronic device A1 eliminates the interference of the antenna to the camera, so that the camera interface can display the complete image as shown in fig. 3, but it reduces the transmission power by 2dB more, wasting part of the communication performance of the antenna. The electronic device A2 still has the problem of screen blooming as shown in fig. 2 because the influence of the antenna on the camera is not completely eliminated.
Therefore, how to reduce the influence of reducing the antenna power on the communication capability of the electronic device while ensuring the normal operation of the camera becomes a problem to be solved urgently.
In order to solve the above problem, an embodiment of the application provides an antenna power adjustment method and an electronic device, after detecting that a camera is started, it is first detected whether the camera is interfered by an antenna. If yes, the power of the antenna is reduced by a first preset value. And then continuously detecting whether the camera is interfered by the antenna. If so, continuously increasing the power of the antenna by taking the second preset value as a step length until the camera is detected to be interfered by the antenna, and reducing the power of the antenna by the second preset value. And if not, continuously reducing the power of the antenna by taking the second preset numerical value as the step length until the camera is detected not to be interfered by the antenna.
That is to say, first, when detecting that the camera is started, the embodiment of the present application does not directly reduce the power of the antenna, but detects whether the camera is interfered by the antenna. The power of the antenna is reduced in case the camera is disturbed by the antenna.
Secondly, when the power of the antenna is reduced, the first preset value is firstly reduced, and the power of the antenna is continuously adjusted by taking the second preset value as the step length until the power of the antenna just does not interfere with the camera.
Therefore, the antenna power adjusting method and the electronic device provided by the embodiment of the application can reduce the influence of the antenna power on the communication capability of the electronic device as much as possible while ensuring the normal work of the camera, and ensure the shooting experience and the communication experience of a user.
In embodiments of the present application, the electronic device may refer to a device having an antenna and a camera, such as a mobile phone, a tablet computer, a wearable device (e.g., a smart watch), an in-vehicle device, a Laptop computer (Laptop), a desktop computer, and the like. Exemplary embodiments of the electronic devices comprise, but are not limited to, portable terminals that are launch IOS, android, microsoft or other operating systems. As an example, please refer to fig. 4, which is a schematic structural diagram of an electronic device 400 according to an embodiment of the present disclosure. The antenna power adjustment method provided by the embodiment of the application can be applied to the electronic device 400 shown in fig. 4.
As shown in fig. 4, the electronic device 400 may include a processor 401, a communication module 402, a display 403, and the like.
Among other things, processor 401 may include one or more processing units, such as: the processor 401 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video stream codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors 401.
The controller may be a neural center and a command center of the electronic device 400. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
A memory may also be provided in processor 401 for storing instructions and data. In some embodiments, the memory in the processor 401 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 401. If the processor 401 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 401, thereby increasing the efficiency of the system.
In some embodiments, processor 401 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor 401 interface (mobile industry processor interface, MIPI), a general-purpose-input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface 411, and the like.
The electronic device 400 implements display functions via the GPU, the display screen 403, and the application processor 401. The GPU is a microprocessor for image processing, and is connected to a display screen 403 and an application processor 401. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 401 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 403 is used to display images, video streams, etc.
The communication module 402 may include an antenna 1, an antenna 2, a mobile communication module 402A, and/or a wireless communication module 402B. Take the case where the communication module 402 includes the antenna 1, the antenna 2, the mobile communication module 402A and the wireless communication module 402B.
The wireless communication function of the electronic device 400 may be implemented by the antenna 1, the antenna 2, the mobile communication module 402A, the wireless communication module 402B, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in electronic device 400 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 402A may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied on the electronic device 400. The mobile communication module 402A may include at least one filter, switch, power amplifier, low Noise Amplifier (LNA), etc. The mobile communication module 402A may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 402A may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 402A may be disposed in the processor 401. In some embodiments, at least some of the functional modules of the mobile communication module 402A may be provided in the same device as at least some of the modules of the processor 401.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 406A, the receiver 406B, etc.) or displays an image or video stream through the display screen 403. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be separate from the processor 401 and may be disposed in the same device as the mobile communication module 402A or other functional modules.
The wireless communication module 402B may provide a solution for wireless communication applied to the electronic device 400, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 402B may be one or more devices that integrate at least one communication processing module. The wireless communication module 402B receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering on electromagnetic wave signals, and transmits the processed signals to the processor 401. The wireless communication module 402B may also receive a signal to be transmitted from the processor 401, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 400 is coupled to mobile communication module 402A and antenna 2 is coupled to wireless communication module 402B so that electronic device 400 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
As shown in fig. 4, in some implementations, the electronic device 400 may further include an external memory interface 410, an internal memory 404, a Universal Serial Bus (USB) interface 411, a charging management module 412, a power management module 413, a battery 414, an audio module 406, a speaker 406A, a microphone 406B, a microphone 406C, a headset interface 406D, a sensor module 405, keys 409, a motor, an indicator 408, a camera 407, a Subscriber Identification Module (SIM) card interface, and the like.
The charging management module 412 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 412 may receive charging input from a wired charger through the USB interface 411. In some wireless charging embodiments, the charging management module 412 may receive a wireless charging input through a wireless charging coil of the electronic device 400. While the charging management module 412 charges the battery 414, the electronic device 400 may be powered by the power management module 413.
The power management module 413 is used to connect the battery 414, the charging management module 412 and the processor 401. The power management module 413 receives input from the battery 414 and/or the charging management module 412 and provides power to the processor 401, the internal memory 404, the external memory, the display 403, the camera 407, the wireless communication module 402B, and the like. The power management module 413 may also be configured to monitor parameters such as the capacity of the battery 414, the number of cycles of the battery 414, and the state of health (leakage, impedance) of the battery 414. In some other embodiments, the power management module 413 may also be disposed in the processor 401. In other embodiments, the power management module 413 and the charging management module 412 may be disposed in the same device.
The external memory interface 410 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 400. The external memory card communicates with the processor 401 through the external memory interface 410 to implement a data storage function. For example, files such as music, video streams, etc. are saved in the external memory card.
The internal memory 404 may be used to store computer-executable program code, which includes instructions. The processor 401 executes various functional applications of the electronic device 400 and data processing by executing instructions stored in the internal memory 404.
The internal memory 404 may also store one or more computer programs corresponding to the data transmission method provided in the embodiment of the present application.
The electronic device 400 may implement audio functions via the audio module 406, the speaker 406A, the receiver 406B, the microphone 406C, the headset interface 406D, the application processor 401, and the like. Such as music playing, recording, etc.
The keys 409 include a power-on key, a volume key, and the like. The keys 409 may be mechanical keys 409. Or may be touch keys 409. The electronic device 400 may receive key 409 inputs, generating key signal inputs related to user settings and function controls of the electronic device 400.
Indicator 408 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface is used for connecting the SIM card. The SIM card can be brought into and out of contact with the electronic device 400 by being inserted into and pulled out of the SIM card interface. The electronic device 400 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface can support a Nano SIM card, a Micro SIM card, a SIM card and the like. Multiple cards can be inserted into the same SIM card interface at the same time. The types of the plurality of cards may be the same or different. The SIM card interface may also be compatible with different types of SIM cards. The SIM card interface may also be compatible with external memory cards. The electronic device 400 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 400 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 400 and cannot be separated from the electronic device 400.
The sensor module 405 in the electronic device 400 may include a touch sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, an ambient light sensor, a fingerprint sensor, a temperature sensor, a bone conduction sensor, and the like to implement sensing and/or acquiring functions for different signals.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device 400. In other embodiments, electronic device 400 may include more or fewer components than illustrated, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The hardware structure of the electronic device in the embodiment of the present application is described above with reference to fig. 4. The following describes a software architecture of an electronic device in the embodiment of the present application.
The software architecture of the electronic device may be a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The following embodiments exemplify a software system of an electronic device by taking an Android (Android) system of a layered architecture as an example.
Please refer to fig. 5, which is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present application. As shown in fig. 5. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, a Hardware Abstraction Layer (HAL), and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 5, the application packages may include camera, gallery, calendar, phone call, map, shopping, WLAN, music, video, short message, etc. applications.
After the camera application runs, the camera can be called to acquire image information through the camera. In one example, the camera application may provide, but is not limited to, camera modes such as a picture taking mode, a picture recording mode, a portrait mode, and the like, in any of which the camera head may capture image information.
In one example, if a video application, a shopping application, or the like has a right to use a camera, the application may also implement functions such as object recognition, code scanning, and the like through the camera. In the process of realizing any one of the functions, the camera can also collect image information.
As an example of the present application, the application layer further includes an antenna adjustment module; the antenna adjusting module is used for reducing the transmitting power of the target antenna through the modem under the condition of receiving the first information sent by the kernel layer. The first information is used for indicating that the error rate of the image information is greater than or equal to the preset threshold value. The antenna adjustment module may also be referred to as a Specific Absorption Rate (SAR) module, and the error information is notification information generated by the kernel layer when the camera is disturbed to cause a problem in image quality.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 5, the application framework layer may include a view system, a window manager, a content provider, a phone manager, a resource manager, a notification manager, and the like. The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system can be used for constructing a display interface of an application program, and the display interface can be composed of one or more views, such as a view for displaying a short message notification icon, a view for displaying text and a view for displaying pictures. The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data, which may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc., and makes the data accessible to applications. The phone manager is used to provide communication functions of the electronic device 400, such as management of call states (including on, off, etc.). The resource manager provides various resources, such as localized strings, icons, pictures, layout files, video files, etc., to the application. The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. For example, a notification manager is used to notify that a download is complete, a message alert, etc. The notification manager may also be a notification that appears in the form of a chart or scrollbar text at the top status bar of the system, such as a notification of a background running application. The notification manager may also be a notification that appears on the screen in the form of a dialog window, such as prompting a text message in a status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
As an example of the present application, the HAL layer at least includes a camera hardware management module, and the camera hardware management module is configured to control a camera driver of the kernel layer to start a camera when a camera opening instruction for requesting to open the camera is received by the application layer, so as to acquire image information through the camera. Therefore, the camera hardware management module can acquire the image information acquired by the camera. For example, after the camera is started, a camera opening instruction is sent to the camera hardware management module, after the camera hardware management module receives the camera opening instruction, the camera is controlled to drive and start the camera, after the camera is started, image information starts to be acquired, and the camera hardware management module acquires the image information.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises a data checking module, a data transmission module, a display driver, a camera driver, an audio driver and a sensor driver.
As an example of the application, the data transmission module is configured to receive image information sent by a camera, package the image information after receiving the image information, obtain a data packet including the image information, and transmit the data packet to the data verification module; after receiving the data packet, the data checking module may acquire checking information from the data packet, determine that dotting information exists in the image information and generate error reporting information under the condition that the checking information does not meet a preset condition, and then transmit the error reporting information to the antenna adjustment module in the application layer through the HAL layer and the application framework layer in sequence. The dotting information is information which affects the image display quality of the image information, and the preset condition is a preset condition.
As an example, the image information is data that satisfies an MIPI (Mobile Industry Processor Interface) protocol. The check information is an error rate of a data packet including the image information. The preset condition is that the preset condition is smaller than a preset threshold value. That is, after the data check module receives a data packet including image information, the data check module may obtain an error rate of the image information from the data packet. And when the error rate is greater than or equal to a preset threshold value, the data verification module determines that dotting information exists in the image information and generates first information for error reporting.
The workflow of the software and hardware of the electronic device is exemplarily described below with reference to a photographing scene.
The sensor module includes a touch sensor therein. When receiving the touch operation, the touch sensor converts the touch operation into an electric signal and sends the electric signal to the inner core layer. The kernel layer processes the electrical signal into an original input event (including touch coordinates, time stamp of touch operation, etc.). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the original input event. Taking the touch operation as a single-click operation, and taking a control corresponding to the single-click operation as a control of a camera application icon as an example, the application framework layer calls a software interface to start the camera application. And the camera application sends a camera opening instruction to the camera hardware management module, wherein the camera opening instruction is used for indicating to start the camera. When the camera hardware management module receives a camera opening instruction, the camera driving of the kernel layer is controlled to start the camera, and image information or video information is captured through the camera.
The antenna power adjustment method provided by the embodiment of the present application is described below with reference to the above description of the hardware structure and the software architecture of the electronic device. Please refer to fig. 6, which is a flowchart illustrating an antenna power adjustment method according to an embodiment of the present disclosure, and fig. 6 illustrates an example of turning on a camera by a camera application. By way of example and not limitation, the method is applied to a mobile phone equipped with a camera, and the mobile phone is illustrated by being implemented by a plurality of modules interactively as shown in fig. 5, and the method may include some or all of the following:
s601, responding to the operation of opening the camera application, and starting a camera of the mobile phone.
As an example, when a user wants to take a picture or record a video using a mobile phone while using the mobile phone, the user may click on an application icon of a camera application displayed in a screen of the mobile phone. The mobile phone can respond to the starting operation of the user on the application icon of the camera application to open the camera application. The starting operation may be a click operation, a long-time press operation, and the like, and is not limited specifically herein.
In the process loading process of the camera application, a camera starting instruction can be issued to a camera hardware management module of the HAL layer. And after the camera hardware management module receives the camera starting instruction, controlling the camera to drive and start the camera.
It should be noted that the camera started by the mobile phone may be a front-facing camera or a rear-facing camera.
In a possible implementation manner, if the mobile phone turns off the rear camera used before the camera application last time, the default start of the camera application that is turned on this time may be the rear camera.
In another possible implementation manner, if the front-facing camera is used before the camera application is closed last time by the mobile phone, the front-facing camera may be started by default after the camera application is opened this time.
In yet another possible implementation, no matter which camera was used before the camera was last turned off, after the camera is turned on this time, the rear camera is started by default, or the front camera is started by default.
It should be noted that, here, the camera application is only described as an example of turning on the camera. In another embodiment, in the case that other applications such as shopping, videos, browsers, and the like have the authority to use a camera, the camera of the mobile phone may also be turned on in the process of implementing functions such as object identification, code scanning, and the like, and the specific manner of turning on the camera is the same as the above-mentioned manner, which is not described in detail in this embodiment of the present application.
S602, the camera collects first image information.
In this embodiment, the first image information is image information acquired by a camera before the power of the antenna is adjusted.
As an example, after the camera is started, an optical image may be generated through a lens (lens) and projected onto a surface of a sensor (sensor) of the camera. The sensor of the camera photoelectrically converts an optical image into an analog electrical signal. The analog-to-digital conversion module of the camera converts the analog electric signal into a digital signal to obtain image information in a digital signal format.
After the camera is started, the image information in the digital signal format can be sent to the data transmission module in real time.
S603, the camera sends the collected first image information to the data transmission module.
S604, the data transmission module packs the first image information to obtain a first data packet.
As an example, the data transmission module may package the first image information according to a specified format, and add a header and a trailer to obtain a first data packet. The header of the first data packet may include a data identifier (data identifier), a data packet size (word count), and an Error Checking Code (ECC).
It should be noted that the specific format may be set in advance, for example, the specific format may be YUV422, RAW8, RAW10, or the like.
In some embodiments, the data identifier is used to indicate a data type, a data packet size is used to indicate a size of the first data packet, an error checking code is used to check a data type of the first image information, whether a number of bytes occupied by the first image information changes, an error rate of the first image information, and the like.
S605, the data transmission module sends the first data packet to the data checking module.
S606, the data verification module verifies the first data packet to obtain the error rate of the first image information.
The first data packet is transmitted in the form of a digital signal, and may be affected by the antenna during transmission, which may cause various types of data in the first data packet to change. For example, the data in the header of the first data packet changes, and/or the data in the first image information changes, and/or the data in the trailer changes, etc.
The data checking module can check the first data packet to obtain the error rate of the first image information.
As an example, the data check module may parse the first data packet after receiving the first data packet. Illustratively, the data verification module analyzes a packet header of a data packet to obtain a data identifier, a size of the data packet, and an error check code included in the packet header, and the data verification module verifies first image information in the first data packet according to the error check code to obtain an error rate of the first image information.
In the embodiment of the present application, parsing the first packet may also be referred to as decoding the first packet.
S607, when the error rate of the first image is larger than or equal to the preset threshold value, the data verification module generates first information. The first information is used for indicating that the error rate of the first image information is larger than or equal to a preset threshold value.
In the embodiment of the application, when the error rate of the first image information is greater than or equal to the preset threshold, it may be determined that data in the first image information is interfered by an antenna, and a phenomenon such as screen splash may occur when the mobile phone displays a preview image corresponding to the first image information. When the error rate of the first image information is smaller than the preset threshold value, it can be determined that the data in the first image information is not interfered by the antenna, and the phenomenon of screen splash and the like can not occur when the preview image corresponding to the first image information is displayed by the mobile phone. Wherein, the preset threshold value can be 5%,10%, etc.
In the embodiment of the present application, the error rate of the image information is greater than or equal to the preset threshold value, which may also be referred to as existence of dotting information in the image information, and the error rate of the image information is less than the preset threshold value, which may also be referred to as absence of dotting information in the image information.
In addition, the data checking module can also determine whether the image information comprises dotting information in other modes. Illustratively, if a data packet is affected by the transmit power of the antenna, it may happen that the data verification module cannot parse the data packet. When the data check module cannot analyze the data packet, the data check module can also directly determine that dotting information exists in the image information.
It can be understood that the data verification module does not generate the first information in the case that the dotting information does not exist in the first image information.
S608, the data checking module sends the first information to the antenna adjusting module.
As an example, the data checking module may pass the first information to the antenna adjustment module of the application layer via the HAL layer and the application framework layer in sequence.
In an embodiment, when the data checking module does not successfully parse the first data packet, it indicates that the first image information is interfered by the antenna in the transmission process, and the data checking module may send the first information.
And S609, responding to the received first information, and sending a first instruction to the modem by the antenna adjusting module. The first instruction is used for instructing the modem to reduce the transmitting power of the target antenna by a first preset value.
Wherein the target antenna may also be referred to as the first antenna.
In a possible implementation manner, after receiving the first information, the antenna adjusting module may directly send a first instruction to a modem of the mobile phone, where the first instruction carries a first preset value; and after receiving the first instruction, the modem reduces the transmitting power of the target antenna by a first preset value.
It should be noted that the first preset value is a value preset according to requirements. Illustratively, the first preset value may be 5db, 6db, 7db, and so on. The target antenna includes at least one antenna that is predetermined to have an effect on the camera in the handset.
S610, in response to receiving the first instruction, the modem reduces the transmitting power of the target antenna by a first preset value.
For some electronic devices, after the transmitting power of the target antenna is reduced by the first preset value, the camera is no longer interfered by the target antenna. For other electronic devices, after the transmitting power of the target antenna is reduced by the first preset value, the camera still suffers interference from the target antenna. Therefore, in the embodiment of the present application, after the power of the target antenna is reduced, the data check module may determine whether the error rate of the image information in the new first data packet is smaller than a preset threshold, and execute different steps according to different determination results.
In the embodiment of the application, after the modem adjusts the power of the target antenna, a receipt of successful adjustment can be sent to the data verification module, so that the data verification module can judge whether the error rate of subsequent image information acquired by the camera meets the requirement or not.
S611, the data checking module judges whether the error rate of the second image information is smaller than a preset threshold value. If so, the following step S612a is performed. If not, the following S612b is executed. The second image information is image information currently acquired by the camera.
The second image information refers to the image information currently acquired by the camera after the transmitting power of the target antenna is reduced by the first preset value.
And S612a, the data checking module sends second information to the antenna adjusting module. The second information is used for indicating that the error rate of the second image information is smaller than a preset threshold value.
S613a, in response to receiving the second information, the antenna adjusting module sends a second instruction to the modem. The second instruction is used for instructing the modem to increase the transmitting power of the target antenna by a second preset value.
It should be noted that the second preset value is a value preset according to requirements. Illustratively, the second preset value may be 1db, 2db, 3db, and so on.
In the embodiment of the present application, the second predetermined value is smaller than the first predetermined value.
And S614a, in response to the second instruction, the modem increases the transmitting power of the target antenna by a second preset value.
S615a, the data checking module judges whether the error rate of the second image information is smaller than a preset threshold value. If yes, go to S612a. If not, jumping to S612b.
That is, the modem will continuously increase the transmitting power of the target antenna by the second preset value until the power of the target antenna is greater than or equal to the preset threshold, and then S612b is executed. S612b and subsequent steps are explained below.
And S612b, the data checking module sends third information to the antenna adjusting module. The third information is used for indicating that the error rate of the second image information is greater than or equal to a preset threshold value.
S613b, in response to receiving the third information, the antenna adjusting module sends a third instruction to the modem. The third instruction is for instructing the modem to decrease the transmit power of the target antenna by a second predetermined amount.
And S614b, in response to the third instruction, the modem reduces the transmitting power of the target antenna by a second preset value.
S615b, the data checking module judges whether the error rate of the second image information is smaller than a preset threshold value. If not, jumping to S612b. If yes, the process is ended.
That is, the modem will continuously adjust the transmitting power of the target antenna by using the second preset value as a step length until the error rate of the image information is just smaller than the preset threshold, that is, the transmitting power of the target antenna just does not cause interference to the camera. Therefore, the normal work of the camera is ensured, the amplitude of reducing the power of the antenna is reduced as much as possible, and the shooting experience and the communication experience of a user are ensured.
Taking the first preset value as 5dB and the second preset value as 1dB as an example, a specific process of applying the antenna power adjusting method provided by the embodiment of the present application to the electronic device A1 and the electronic device A2 in the foregoing example is described below.
For the electronic device A1, the transmitting power of the antenna ant1 is 26dB. When the transmitting power of the antenna ant1 is 23dB, the interference to the camera B1 can not be caused.
Before the antenna power adjustment method provided by the embodiment of the application is applied to the electronic device A1, the camera interface of the electronic device A1 has a screen splash phenomenon as shown in fig. 2.
When the camera application of the electronic device A1 is opened, the camera B1 is synchronously started. The camera can collect first image information and send the first image information to the data transmission module in real time. The data transmission module packs the first image information to obtain a first data packet, and sends the first data packet to the data verification module. The data verification module can verify the data to obtain the error rate of the first image information. As described above, the camera interface of the electronic device A1 may have a screen splash phenomenon as shown in fig. 2, that is, if the error rate of the first image information is greater than or equal to the preset threshold, the data verification module generates the first information, and sends the first information to the antenna adjustment module. In response to receiving the first information, the antenna adjustment module sends a first instruction to the modem. In response to receiving the first instruction, the modem reduces the transmit power of antenna ant1 by 5dB.
It can be understood that after the electronic device A1 reduces the transmission power of the antenna ant1 by 5dB, the transmission power of the antenna ant1 is 21dB, which is less than 23dB. Therefore, the camera interface of the electronic device A1 does not generate the screen splash phenomenon as shown in fig. 2.
However, for the electronic device A1, the interference of the antenna ant1 to the camera B1 can be avoided only by reducing the transmitting power of the antenna ant1 to 23dB, and reducing 2dB more can waste part of the communication performance of the antenna ant 1.
Therefore, please refer to fig. 7, which is a schematic diagram of an antenna power adjustment process according to an embodiment of the present application. As shown in fig. 7, in the embodiment of the present application, after the transmission power of the antenna ant1 is reduced by 5dB, the electronic device A1 continuously increases the transmission power of the antenna ant1 by using 1dB as a step length until the second image information includes dotting information, where the transmission power of the antenna ant1 is 24dB.
When the transmission power of the antenna ant1 is 24dB, the error rate of the second image information is greater than or equal to the first threshold. The electronic device then reduces the transmitting power of the antenna ant1 by 1dB to 23dB, so as to obtain the final transmitting power of the antenna ant 1. At this time, the camera interface of the electronic device A1 does not generate the screen splash phenomenon as shown in fig. 2.
It can be seen that, when the antenna power adjusting method provided by the embodiment of the application is applied to the electronic device A1, the normal operation of the camera B1 is ensured, the amplitude of reducing the antenna power is reduced as much as possible, and the shooting experience and the communication experience of a user are ensured.
For the electronic device A2, the transmission power of the antenna ant2 is 26dB. The transmitting power of the antenna ant2 is 19dB, and the interference to the camera B2 is avoided.
Before the antenna power adjusting method provided by the embodiment of the application is applied to the electronic device A2, a screen splash phenomenon may occur on a camera interface of the electronic device A2 as shown in fig. 2.
When the camera application of the electronic device A2 is opened, the camera B2 is synchronously started. The camera can collect first image information and send the first image information to the data transmission module in real time. The data transmission module packs the first image information to obtain a first data packet, and sends the first data packet to the data verification module. The data verification module can verify the data to obtain the error rate of the first image information. As described above, the camera interface of the electronic device A2 may have the screen splash phenomenon shown in fig. 2, that is, the error rate of the image information is greater than or equal to the preset threshold, the data verification module generates the first information, and sends the first information to the antenna adjustment module. In response to receiving the first information, the antenna adjustment module sends a first instruction to the modem. In response to receiving the first instruction, the modem reduces the transmit power of antenna ant2 by 5dB.
Therefore, after the electronic device A2 reduces the transmission power of the antenna ant2 by 5dB, the transmission power of the antenna ant2 is 21dB, which is greater than 19dB. The camera interface of the electronic device A2 still has the phenomenon of screen blooming as shown in fig. 2.
Therefore, in the embodiment of the present application, please refer to fig. 8, which is a schematic diagram of another antenna power adjustment process provided in the embodiment of the present application. As shown in fig. 8, after the transmission power of the antenna ant2 is reduced by 5dB, the electronic device A2 continuously reduces the transmission power of the antenna ant2 with 1dB as a step length until the second image information does not include dotting information. At this time, the transmitting power of the antenna ant2 is 19dB, and the screen splash phenomenon shown in fig. 2 does not occur on the camera interface of the electronic device A2.
It can be seen that, when the antenna power adjusting method provided by the embodiment of the application is applied to the electronic device A2, the normal operation of the camera B2 is ensured, the amplitude of reducing the antenna power is reduced as much as possible, and the shooting experience and the communication experience of a user are ensured.
The above-mentioned S601-S615 (including S615a and S615 b) describe the antenna power adjustment method provided by the embodiment of the present application in terms of interaction of the modules of the electronic device. The above process is described below in the context of an electronic device in conjunction with fig. 9.
And S901, responding to the operation of opening the camera application, and starting the camera.
And S902, acquiring first image information through a camera.
And S903, when the first image information comprises dotting information, reducing the transmitting power of the target antenna by a first preset value.
And S904, judging whether the second image information comprises dotting information. If so, the following S905a is performed. If not, the following S905b is executed.
And S905a, reducing the transmitting power of the target antenna by a second preset value. Wherein the second predetermined value is less than the first predetermined value.
S906a, judging whether the second image information comprises dotting information or not. If yes, jumping to S905a; if not, the process is ended.
And S905b, increasing the transmitting power of the target antenna by a second preset value.
S906b, judging whether the second image information comprises dotting information or not. If yes, jumping to S905a; if not, jumping to S905b.
It should be noted that all relevant contents of the steps related to the above method embodiment may be cited in the relevant description in fig. 6, and are not repeated herein.
In this embodiment of the application, the data verification module may further process the image information, so that a preview image corresponding to the image information is displayed in the electronic device. Please refer to fig. 10, which is a flowchart illustrating a preview image displaying image information according to an embodiment of the present application. The process mainly comprises the following substeps: 1. and the data checking module sends the image information to the camera hardware management module. 2. The camera hardware management module sends the image information to the view system. 3. The view system generates a corresponding preview image based on the image information. 4. The viewing system displays a preview image of the image information in a display screen.
As an example of the present application, when the dotting information is included in the image information, the mobile phone may not display a preview image of the image information, and automatically reduce the transmission power of the target antenna. And when the image information does not include dotting information, the mobile phone displays a preview image of the image information.
As an example of the application, when the image information includes dotting information, after the mobile phone displays a preview image corresponding to the image information, the user may autonomously select whether to reduce the transmission power of the target antenna, and if the user selects to reduce the transmission power of the target antenna, the user may double-click the mobile phone screen. In response to the trigger operation of the user on the mobile phone screen, the mobile phone can reduce the transmitting power of the target antenna.
As an example of the application, when the image information includes dotting information, referring to fig. 11, the mobile phone displays a preview image corresponding to the image information in a display interface of the camera application, and a first preset numerical value selection control and a second preset numerical value selection control are also displayed in the display interface of the camera application.
The user can trigger the first preset numerical value selection control through the first specified operation. In response to the user clicking the first preset value selection control, the mobile phone displays a power list as shown in fig. 12 in the display interface of the camera application, and the user selects a value from the power list. In response to a selection operation of the user in the power list, the handset may set the first preset value to the selected value.
Similarly, the user can trigger the second preset numerical value selection control through the first specified operation. And responding to the clicking operation of the user on the second preset numerical value selection control, displaying a power list in a display interface of the camera application by the mobile phone, and selecting a numerical value from the power list by the user. In response to a selection operation of the user in the power list, the handset may set the first preset value to the selected value.
After the user selects the first preset value, the power which is greater than or equal to the first preset value selected by the user in the power list of the second preset value is changed into an unselected state. After the user selects the second preset value, the power which is less than or equal to the second preset value selected by the user in the power list of the first preset value is changed into an unselected state.
As an example of the application, when the image information includes dotting information, after the mobile phone displays a preview image of the image information, a prompt message may be displayed in a pop-up window form, where the prompt message may prompt a user to reduce the transmission power of a target antenna due to the fact that a camera is interfered by the antenna.
The prompt information may be displayed not only in the form of a pop-up window, but also in other forms, for example, in the form of a bubble, a prompt box, or the like. The content of the prompt message may also be set in advance, for example, the prompt message may be "interfered by the antenna, the transmission power of the antenna has been reduced", "the camera is interfered by the antenna, the transmission power of the antenna needs to be reduced", and the like.
In addition, the prompt message may be displayed before the mobile phone adjusts the transmission power of the target antenna, as shown in fig. 13, before the mobile phone adjusts the transmission power of the target antenna, the mobile phone may display a prompt message 1301 on an interface displaying a preview image. The content of the prompt message 1301 may be "the transmission power of the antenna needs to be reduced due to the interference of the antenna on the camera", so as to prompt the user that the transmission power of the antenna needs to be reduced.
The prompt message may also be displayed after the mobile phone adjusts the transmission power of the target antenna, as shown in fig. 14, after the mobile phone adjusts the transmission power of the target antenna, the mobile phone may display a prompt message 1401 on the interface displaying the preview image. The content of the hint 1401 may be "interfered by the antenna, the transmission power of the antenna has been reduced" to hint the user that the handset has reduced the transmission power of the antenna.
As an example of the present application, when the image information includes dotting information, after the mobile phone displays a preview image of the image information, a query window 1501 as shown in fig. 15 may be displayed, if the user agrees to reduce the transmission power of the target antenna, a yes touch control may be triggered, and in response to a triggering operation of the yes touch control by the user, the mobile phone executes the antenna power adjustment method provided in the embodiment of the present application to adjust the power of the target antenna. If the user does not agree to reduce the transmitting power of the target antenna, the no touch control can be triggered, and the mobile phone does not adjust the transmitting power of the target antenna in response to the triggering operation of the no touch control by the user.
As an example of the present application, in response to a user's trigger operation of the "yes" touch control in the query window 1501, the mobile phone may display a first preset value selection control and a second preset value selection control in the display interface of the camera application, as in fig. 11.
In response to a first specified operation of the first preset value selection control by the user, the mobile phone displays a power list as shown in fig. 12 in a display interface of the camera application, and the user selects a value from the power list. In response to a selection operation of the user in the power list, the handset may set the first preset value to the selected value.
Based on the above description, it can be seen that the antenna power adjusting method provided by the embodiment of the application can reduce the influence of the antenna power on the communication capability of the electronic device as much as possible while ensuring the normal operation of the camera, and ensure the shooting experience and the communication experience of the user.
Please refer to fig. 16, which is a block diagram of an electronic device 1600 according to an embodiment of the present disclosure. The electronic device 1600 may be any one of the above examples, for example, the electronic device 1600 may be a mobile phone, a computer, etc. Illustratively, as shown in fig. 16, the electronic device 1600 may include: a processor 1601, and a memory 1602. The memory 1602 is used to store computer-executable instructions. For example, in some embodiments, the processor 1601 can be configured to execute the instructions stored in the memory 1602 to cause the electronic device 1600 to perform any of the functions of the electronic device in the above embodiments to implement any of the methods in the above examples.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
Fig. 17 shows a schematic diagram of a chip system 1700. The chip system 1700 may be disposed in an electronic device. The chip system 1700 may be disposed in a mobile phone, for example. Illustratively, the chip system 1700 may include: a processor 1701 and a communication interface 1702 for supporting an electronic device to implement the functions referred to in the above embodiments. In one possible design, chip system 1700 also includes a memory that stores the necessary program instructions and data for the electronic device. The chip system may be constituted by a chip, or may include a chip and other discrete devices. It should be noted that, in some implementations of the present application, the communication interface 1702 may also be referred to as an interface circuit.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The embodiment of the present application further provides a computer storage medium, where a computer instruction is stored, and when the computer instruction runs on a terminal device, the terminal device is enabled to execute the relevant method steps to implement the method in the foregoing embodiment.
The embodiment of the present application further provides a computer program product, which when running on a computer, causes the computer to execute the above related steps to implement the method in the above embodiment.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the method in the above method embodiments.
In addition, the terminal device, the computer storage medium, the computer program product, or the chip provided in the embodiments of the present application are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the terminal device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of electronic equipment. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the functional modules of the devices involved in the method may be divided according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and another division manner may be available in actual implementation.
The functions or actions or operations or steps, etc., in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the present application are all or partially generated upon loading and execution of computer program instructions on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or can comprise one or more data storage devices, such as a server, a data center, etc., that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
Although the present application has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and figures are merely exemplary of the present application as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the present application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include such modifications and variations.
Claims (11)
1. The antenna power adjusting method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a camera and a first antenna; the method comprises the following steps:
when a camera application is started, acquiring first image information through the camera;
when the error rate of the first image information is greater than or equal to a preset threshold value, reducing the transmitting power of the first antenna by a first preset value;
monitoring the error rate of second image information acquired by the camera, wherein the second image information is image information currently acquired by the camera;
judging whether the error rate of the second image information is greater than or equal to the preset threshold value or not;
if so, reducing the transmitting power of the first antenna by taking a second preset value as a step length, and stopping adjusting the transmitting power until the error rate of the second image information is smaller than the preset threshold value, wherein the second preset value is smaller than the first preset value;
if not, the transmitting power of the first antenna is increased by taking the second preset value as the step length, and the transmitting power of the first antenna is reduced by the second preset value until the error rate of the second image information is greater than or equal to the preset threshold value.
2. The method of claim 1, wherein the electronic device comprises a data verification module and a data transmission module;
before monitoring the error rate of the second image information acquired by the camera, the method further includes:
packaging the second image information through the data transmission module to obtain a first data packet; the first data packet comprises an error check code;
sending the first data packet to the data checking module through the data transmission module;
analyzing the first data packet through the data checking module, and obtaining the second image information and the error checking code when the analysis is successful;
and verifying the second image information through the data verification module according to the error verification code to obtain the error rate of the second image information.
3. The method of claim 2, further comprising an antenna adjusting module and a modem in the electronic device;
when the error rate of the first image information is greater than or equal to a preset threshold, reducing the transmitting power of the first antenna by a first preset value, including:
when the error rate of the first image information is greater than or equal to the preset threshold, sending first information to the antenna adjusting module through the data checking module, wherein the first information is used for indicating that the error rate of the first image information is greater than or equal to the preset threshold;
sending a first instruction to the modem through the antenna adjusting module according to the first information, wherein the first instruction is used for instructing the modem to reduce the transmitting power of the first antenna by the first preset value;
and reducing the transmitting power of the first antenna by the first preset value through the modem according to the first instruction.
4. The method of claim 2, further comprising:
and when the analysis fails, determining that the error rate of the second image information is greater than the preset threshold value.
5. The method of claim 1, wherein the electronic device further comprises a display screen; when the error rate of the image information is greater than or equal to the preset threshold value, the electronic equipment displays a preview image corresponding to the image information, and a screen is displayed; when the error rate of the image information is smaller than the preset threshold value, the electronic equipment does not generate screen splash when displaying the preview image corresponding to the image information.
6. The method of claim 1, further comprising:
when the error rate of the image information is greater than or equal to a preset threshold value, displaying a first preset numerical value selection control on a display interface of the camera application;
in response to an operation directed to the first preset numerical value selection control, displaying a first power list on a display interface of the camera application; the first power list comprises at least one power value;
setting the first power value to the first preset value in response to an operation on the first power value in the first power list.
7. The method of claim 6, further comprising:
when the error rate of the image information is greater than or equal to a preset threshold value, displaying a second preset numerical value selection control on a display interface of the camera application;
in response to an operation directed to the second preset numerical value selection control, displaying a second power list on a display interface of the camera application; the second power list comprises at least one power value;
setting a second power value in the second power list to the second preset value in response to an operation on the second power value.
8. The method of claim 7, further comprising:
adjusting a power value in the second power list that is greater than or equal to the first power value to an unselected state in response to the operation on the first power value in the first power list;
adjusting a power value in the first power list that is less than or equal to the second power value to an unselected state in response to the operation on the second power value in the second power list.
9. The method of claim 1, further comprising:
and when the error rate of the image information is greater than or equal to a preset threshold value, displaying prompt information on a display interface of the camera application, wherein the prompt information is used for prompting that the work of the camera is interfered by the first antenna.
10. An electronic device, comprising one or more processors and one or more memories; the one or more memories coupled with the one or more processors, the one or more memories storing computer instructions;
the computer instructions, when executed by the one or more processors, cause the electronic device to perform the antenna power adjustment method of any of claims 1-9.
11. A computer-readable storage medium comprising computer instructions which, when executed, perform the antenna power adjustment method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210642067.XA CN114727101B (en) | 2022-06-08 | 2022-06-08 | Antenna power adjusting method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210642067.XA CN114727101B (en) | 2022-06-08 | 2022-06-08 | Antenna power adjusting method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114727101A CN114727101A (en) | 2022-07-08 |
CN114727101B true CN114727101B (en) | 2023-01-24 |
Family
ID=82233151
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210642067.XA Active CN114727101B (en) | 2022-06-08 | 2022-06-08 | Antenna power adjusting method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114727101B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024039078A1 (en) * | 2022-08-18 | 2024-02-22 | 삼성전자 주식회사 | Camera malfunction prevention method and electronic device |
CN116744423B (en) * | 2022-10-17 | 2024-06-07 | 荣耀终端有限公司 | Method and device for adjusting antenna power |
CN116669153B (en) * | 2022-12-09 | 2023-10-20 | 荣耀终端有限公司 | Transmission power backoff method, terminal device, and computer-readable storage medium |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105828066A (en) * | 2016-04-19 | 2016-08-03 | 广东威创视讯科技股份有限公司 | Detection method and system of transmission signals |
CN108076278B (en) * | 2016-11-10 | 2021-03-19 | 斑马智行网络(香港)有限公司 | Automatic focusing method and device and electronic equipment |
CN107277319B (en) * | 2017-06-28 | 2020-06-05 | 上海创功通讯技术有限公司 | Control method and system for camera of mobile terminal |
CN110022598B (en) * | 2018-01-08 | 2023-08-08 | 深圳市中兴微电子技术有限公司 | Power control method, terminal and computer readable storage medium |
CN109348013A (en) * | 2018-11-21 | 2019-02-15 | Oppo广东移动通信有限公司 | Antenna transmission power adjustment method, device, mobile terminal and storage medium |
CN109696788B (en) * | 2019-01-08 | 2021-12-14 | 武汉精立电子技术有限公司 | Quick automatic focusing method based on display panel |
CN110933505A (en) * | 2019-10-31 | 2020-03-27 | 维沃移动通信有限公司 | Progress adjusting method and electronic equipment |
CN113573390B (en) * | 2020-04-29 | 2022-10-18 | 荣耀终端有限公司 | Antenna power adjusting method, terminal device and storage medium |
CN111757014B (en) * | 2020-08-07 | 2022-03-11 | 深圳市爱普泰科电子有限公司 | Focal length adjusting method, device, equipment and storage medium of network camera |
CN114422705B (en) * | 2022-02-10 | 2024-04-23 | 维沃移动通信有限公司 | Electronic equipment and control method and device thereof |
-
2022
- 2022-06-08 CN CN202210642067.XA patent/CN114727101B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN114727101A (en) | 2022-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114727101B (en) | Antenna power adjusting method and electronic equipment | |
CN113542839B (en) | Screen projection method of electronic equipment and electronic equipment | |
CN111132234B (en) | Data transmission method and corresponding terminal | |
CN111095723B (en) | Wireless charging method and electronic equipment | |
CN112351156B (en) | Lens switching method and device | |
CN116996762B (en) | Automatic exposure method, electronic equipment and computer readable storage medium | |
US11973895B2 (en) | Call method and apparatus | |
CN113126948B (en) | Audio playing method and related equipment | |
CN114466107A (en) | Sound effect control method and device, electronic equipment and computer readable storage medium | |
CN111343326A (en) | Method and related device for acquiring test log | |
CN113472477B (en) | Wireless communication system and method | |
CN110609650B (en) | Application state switching method and terminal equipment | |
CN110113669B (en) | Method and device for acquiring video data, electronic equipment and storage medium | |
CN116033342B (en) | Geofence processing method, equipment and storage medium | |
CN115460445B (en) | Screen projection method of electronic equipment and electronic equipment | |
CN116662024B (en) | Inter-process communication monitoring method and device, electronic equipment and storage medium | |
CN117389507B (en) | Audio data processing method, electronic device and storage medium | |
CN117130765B (en) | Configuration method of computing resources and electronic equipment | |
CN115002797B (en) | Network quality detection method and related electronic equipment | |
CN116382728B (en) | Propagation name display method and terminal equipment | |
CN115952564B (en) | Data writing method and terminal equipment | |
CN118567765A (en) | Split screen method, split screen device, electronic equipment and computer readable storage medium | |
CN117956371A (en) | Audio service recovery processing method, electronic equipment and computer storage medium | |
CN117931463A (en) | Application control method, electronic equipment and system | |
CN117729420A (en) | Continuous shooting method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |