Camera module control method and apparatus, electronic device, and readable storage medium
Patent Information
- Application Number
- CN202311711341.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-12
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2043-12-12
AI Technical Summary
[0003]本申请实施例的目的是提供一种电子设备的摄像头模组控制方法、控制装置、电子设备及可读存储介质,至少解决摄像头模组的成像效果较差的问题
[0016]在本申请实施例中,通过获取电子设备的使用信息,使用信息包括电子设备的工作频段、电子设备的发射功率、电子设备的射频天线的编号;根据使用信息,确定电子设备工作的状态;在电子设备工作的状态为第一预设状态的情况下,将摄像头模组配置为第一工作模式;在电子设备工作的状态为第二预设状态的情况下,将摄像头模组配置为第二工作模式,第一工作模式与第二工作模式不同。即在本申请实施例中,当电子设备的工作状态不同时,从而将摄像头模组配置成不同工作模式,尽可能降低针对摄像头模组的干扰,从而可以提高摄像头模组的成像效果。
Smart Images

Figure CN117729428B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of camera modules, specifically relating to a camera module control method, control device, electronic device, and readable storage medium for an electronic device. Background Technology
[0002] With the development of technology, electronic devices are becoming increasingly widely used. Typically, electronic devices include a camera system, which comprises a camera module, a controller, and a display unit. The controller is electrically connected to the camera module and uses I2C control lines to configure registers to control the camera module in acquiring image information. The image information is then transmitted to the controller via the MIPI bus. The controller processes the received image information and displays it on the display unit for the user to preview. However, electronic devices often contain radio frequency (RF) communication modules, which may interfere with the camera module, indicating a relatively low spatial isolation between them. Summary of the Invention
[0003] The purpose of this application is to provide a method, device, electronic device and readable storage medium for controlling a camera module of an electronic device, at least to solve the problem of poor imaging effect of the camera module.
[0004] In a first aspect, embodiments of this application provide a camera module control method for an electronic device, the camera module control method comprising:
[0005] Obtain usage information of the electronic device, including the operating frequency band of the electronic device, the transmission power of the electronic device, and the serial number of the radio frequency antenna of the electronic device;
[0006] Based on the usage information, determine the operating status of the electronic device;
[0007] When the electronic device is operating in a first preset state, the camera module is configured in a first operating mode; when the electronic device is operating in a second preset state, the camera module is configured in a second operating mode. The first operating mode is different from the second operating mode. The first preset state includes the electronic device operating in a non-risk frequency band, or the influence of the electronic device's antenna module on the camera module being less than a set value. The second preset state includes the electronic device operating in a risk frequency band, and the electronic device's transmission frequency being greater than a preset threshold; or, the electronic device operating in a preset scenario.
[0008] Secondly, embodiments of this application provide a camera module control device for an electronic device, the control device comprising:
[0009] The acquisition module is used to acquire usage information of the electronic device, including the operating frequency band of the electronic device, the transmission power of the electronic device, and the number of the radio frequency antenna of the electronic device.
[0010] A determining module is used to determine the operating status of the electronic device based on the usage information;
[0011] A configuration module is used to configure the camera module to a first working mode when the electronic device is operating in a first preset state; and to configure the camera module to a second working mode when the electronic device is operating in a second preset state. The first working mode is different from the second working mode. The first preset state includes the electronic device operating in a non-risk frequency band, or the influence value of the antenna module of the electronic device on the camera module of the electronic device being less than a set value. The second preset state includes the electronic device operating in a risk frequency band, and the transmission frequency of the electronic device being greater than a preset threshold; or the electronic device operating in a preset scenario.
[0012] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0013] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0014] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0015] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0016] In this embodiment, usage information of the electronic device is obtained, including the device's operating frequency band, transmission power, and radio frequency antenna number. Based on this usage information, the operating state of the electronic device is determined. When the electronic device is in a first preset state, the camera module is configured in a first operating mode; when the electronic device is in a second preset state, the camera module is configured in a second operating mode. The first and second operating modes are different. In other words, in this embodiment, the camera module is configured in different operating modes depending on the operating state of the electronic device, minimizing interference to the camera module and thus improving its imaging performance. Attached Figure Description
[0017] Figure 1 A flowchart illustrating a camera module control method for an electronic device provided in an embodiment of this application;
[0018] Figure 2 This is a schematic diagram illustrating the connection between a camera module and a controller in an electronic device according to an embodiment of this application.
[0019] Figure 3 This is a schematic diagram illustrating a camera module control device for an electronic device provided in an embodiment of this application;
[0020] Figure 4 This diagram illustrates an electronic device provided in an embodiment of this application.
[0021] Figure 5 This is a schematic diagram illustrating the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0022] The terms "first" and "second" in the specification and claims of this application may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise stated, "multiple" means two or more. Furthermore, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0023] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0024] Reference Figure 1 This document illustrates a flowchart of a camera module control method for an electronic device according to an embodiment of this application. In this embodiment, the electronic camera module control method is applied to an electronic device that supports both D-PHY and C-PHY modes. In D-PHY, D stands for Roman numeral 500, and PHY stands for channel. D-PHY provides source synchronization for DSI (Display Serial Interface) and CSI (Camera Serial Interface), enabling high-speed, low-power physical layer implementation. In C-PHY, C stands for Channel Limited, and it is a physical layer implementation based on three-phase symbol encoding technology, primarily used for display serial interfaces and camera serial interfaces.
[0025] like Figure 1 As shown, the camera module control method includes:
[0026] Step 101: Obtain the usage information of the electronic device, including the operating frequency band of the electronic device, the transmission power of the electronic device, and the serial number of the radio frequency antenna of the electronic device.
[0027] Once the electronic device is powered on, it can operate normally. During this operation, the radio frequency (RF) module within the device functions, enabling communication. The RF module includes an RF antenna, feedhorn, and transceiver. Furthermore, while the RF module is running, its transmission frequency (i.e., the electronic device's transmission power), the operating frequency band for communication, and the antenna number can be obtained.
[0028] It should be noted that electronic devices have multiple radio frequency antennas, which can be pre-numbered. When the electronic device is communicating, it is possible to determine which specific radio frequency antenna is transmitting or receiving signals, thus identifying the antenna number.
[0029] Step 102: Determine the operating status of the electronic device based on the usage information.
[0030] After obtaining the usage information of the electronic device, its operating status can be determined. This usage information includes the electronic device's operating frequency band, transmission power, and radio frequency antenna number. Therefore, obtaining this information is equivalent to determining the current operating frequency band and power of the electronic device, thus enabling the determination of its operating status.
[0031] Step 103: When the electronic device is operating in a first preset state, configure the camera module to a first operating mode; when the electronic device is operating in a second preset state, configure the camera module to a second operating mode. The first and second operating modes are different. The first preset state includes situations where the electronic device operates in a non-risk frequency band, or the influence of the electronic device's antenna module on the camera module is less than a set value. The second preset state includes situations where the electronic device operates in a risky frequency band, and the electronic device's transmission frequency is greater than a preset threshold; or, the electronic device is operating under a preset scenario.
[0032] When the electronic device is in the first preset state, it indicates that the operating frequency band of the electronic device is a non-risk frequency band. When the electronic device is working, the frequency band in which the radio frequency antenna transmits radio frequency signals is the operating frequency band of the electronic device. When the radio frequency band is within a certain frequency range, the radio frequency antenna has a significant impact on the camera module, thus the radio frequency band is a risky frequency band. When the radio frequency band is in another radio frequency range, the radio frequency antenna has no impact on the camera module or has a small impact, thus the radio frequency band is a non-risk frequency band.
[0033] In addition, in the embodiments of this application, the first working mode can be the mode in which the camera module of the electronic device operates in C-PHY mode, and the second working mode can be the mode in which the camera module operates in D-PHY mode.
[0034] Furthermore, in this embodiment, the preset scenario can be a scenario where the electronic device is making a video call, a scenario where the electronic device is uploading data, or a scenario where the electronic device is moving at high speed. For example, a user carrying an electronic device on a high-speed train, where the electronic device is moving at high speed relative to the ground, is an example of a scenario where the electronic device is moving at high speed.
[0035] As can be seen from the above, when the electronic device is in the first preset state, configuring the camera module in C-PHY mode can save power consumption and maximize the imaging function of the camera module; when the electronic device is in the second preset state, configuring the camera in D-PHY mode can improve the anti-interference capability of the camera module.
[0036] In addition, in some implementations, the electronic device includes multiple radio frequency antennas, and the camera module of the electronic device includes multiple cameras. Before step 101, the camera module control method may further include: determining the isolation degree between the target radio frequency antenna and each camera when operating in different radio frequency bands, wherein the target radio frequency antenna is any one of the multiple radio frequency antennas; determining the risk frequency band of each radio frequency antenna according to the isolation degree, and forming a correspondence table between radio frequency antennas and cameras, wherein the correspondence table has the number of the radio frequency antenna, the number of the camera, and the risk level, wherein when the risk level is greater than a preset level, the radio frequency band of the radio frequency antenna is the risk frequency band.
[0037] In this context, the RF antenna, due to its transmitted signals, can interfere with the camera module. Furthermore, the RF antenna and the camera have a degree of isolation. Therefore, the isolation between the target RF antenna and each camera can be determined when the antenna operates in different RF bands. For example, multiple RF antennas can be designated as antenna A, antenna B, and antenna C, and multiple cameras can be designated as camera A, camera B, and camera C. Thus, when antenna A operates in different RF bands, the isolation between antenna A and cameras A, B, and C can be determined separately.
[0038] Once the isolation level is determined, the risk frequency band for each RF antenna can be identified, and then a table showing the correspondence between the RF antennas and the camera can be created.
[0039] For example, Table 1 shows the correspondence between radio frequency antennas and cameras.
[0040] Table 1
[0041]
[0042] As shown in Table 1, for camera 3, when antennas 3 and 4 are operating, the risk level is B. In this case, for camera 3, if antenna 3 operates in the radio frequency band BAND3, then the BAND3 band of antenna 3 is a risky band for camera 3; similarly, if antenna 4 operates in the radio frequency band BAND3, then the BAND4 band of antenna 5 is a risky band for camera 4; and if antenna 6 operates in the radio frequency band BAND4, then the BAND4 band of antenna 6 is a risky band for camera 4. The risk levels are ranked A, B, and C, where A represents the lowest risk, B represents a relatively high risk, and C represents an even higher risk.
[0043] In addition, in some implementations, the camera module control method may also include: when the electronic device is connected to the network, recording the operating frequency band, transmission power, and radio frequency antenna number of the electronic device in a preset table; determining whether the operating frequency band of the electronic device is a risky frequency band according to the corresponding relationship table; if the operating frequency band of the electronic device is a risky frequency band, recording the risky frequency band and the radio frequency antenna number corresponding to the risky frequency band in the preset table, and determining whether the transmission power is greater than a preset power threshold; if the transmission power is greater than the preset power threshold, recording it in the preset table.
[0044] After establishing the correspondence between the RF antenna and the camera, when the electronic device connects to the network, it will transmit signals. At this time, the operating frequency band, transmission power, and RF antenna number of the electronic device can be recorded in a preset table. Furthermore, the table can be used to check whether the current operating frequency band of the electronic device is a preset risk band. That is, after determining the current operating frequency band of the electronic device, its location can be found in the RF antenna-camera correspondence table, thereby determining whether the current operating frequency band of the electronic device is a risk band.
[0045] If the operating frequency band of the electronic device is a risky frequency band, the risky frequency band and the corresponding radio frequency antenna number are recorded in a preset table, which is equivalent to updating the preset table. Furthermore, it can be determined whether the current transmission power of the electronic device exceeds a preset power threshold. If the transmission power exceeds the preset power threshold, the record is continued in the preset table. That is, in this embodiment, the preset table can be updated in real time during the operation of the electronic device, making it easier to determine the operating status of the electronic device based on the preset table later.
[0046] For example, Table 2 is a sample of a preset table.
[0047] Table 2
[0048]
[0049]
[0050] Among them, the power counter R2 is the power counter of the electronic device. The larger the value recorded by the power counter, the more times the radio frequency band has been operated at high power. The register stores the number of times the electronic device has used the risky frequency band more than the threshold in the past. The larger the value recorded by the register, the greater the probability that the electronic device has switched to the risky frequency band.
[0051] In addition, in some implementations, the preset table contains a risk frequency band count item and a risk frequency band total count item. If the operating frequency band of the electronic device is a risk frequency band, the implementation method for recording the risk frequency band and the corresponding RF antenna number in the preset table can be as follows: determine whether the preset table contains the frequency band information corresponding to the risk frequency band and the RF antenna number corresponding to the risk frequency band; if the preset table contains the frequency band information corresponding to the risk frequency band and the RF antenna number corresponding to the risk frequency band, update the count value corresponding to the risk frequency band count item; if the count value is greater than the pre-designed value, update the value corresponding to the risk frequency band total count item.
[0052] Specifically, if the preset table contains information about the frequency band corresponding to the risky frequency band and the corresponding RF antenna number, the value in the "Risk Frequency Band Count" field is updated, thus updating the corresponding count value. For example, if the initial value of the "Risk Frequency Band Count" field is 2, and the preset table contains information about the frequency band and the corresponding RF antenna number, the value of the "Risk Frequency Band Count" field is updated to 3. Furthermore, if the count value is greater than the pre-designed value, the value corresponding to the "Total Risk Frequency Band Count" field is updated. For example, if the initial value of the "Total Risk Frequency Band Count" field is 0, and the count value is greater than the pre-designed value, the value of the "Total Risk Frequency Band Count" field is updated from 0 to 1.
[0053] As shown in Table 2, the total number of risk band counts is the item containing the register, and the number of risk band counts is the item containing the power counter.
[0054] In addition, in some implementations, step 102 can be implemented as follows: determine whether the operating frequency band of the electronic device is a risky frequency band; if the operating frequency band of the electronic device is a non-risky frequency band, determine that the operating state of the electronic device is a first preset state; if the operating frequency band of the electronic device is a risky frequency band, determine whether the transmission power of the electronic device is greater than a preset power threshold; if the transmission power is greater than the preset power threshold, determine that the electronic device is in a second preset state.
[0055] In the operation of electronic devices, the impact of radio frequency antennas on cameras includes two aspects: first, the radio frequency band of the radio frequency antenna, and second, the transmission power of the radio frequency antenna. Only when the radio frequency band of the radio frequency antenna is a risky band and the transmission power is greater than a preset power threshold will the radio frequency antenna have a significant impact on the camera. Therefore, in this embodiment, when the operating frequency band of the electronic device is a risky band, it is determined whether the transmission power of the electronic device is greater than the preset power threshold. If the transmission power is greater than the preset power threshold, it is determined that the electronic device is in a second preset state, thereby ensuring accurate determination of the operating state of the electronic device.
[0056] In addition, in some implementations, the camera module control method may also include: detecting network information of the electronic device's connection to the network at preset intervals to determine the electronic device's operating frequency band, transmission power, and the number of the radio frequency antenna.
[0057] During the operation of the electronic device, network information can be detected at preset intervals to determine the device's operating frequency band, transmission power, and RF antenna number. Different operating frequency bands, transmission power, and RF antenna numbers result in different network information for the electronic device. For example, the network information might be wireless network information, 4G network information, or 5G network information.
[0058] Alternatively, in some implementations, the usage information of electronic devices can be obtained by retrieving it from a preset table. This preset table contains the usage information of the electronic devices, allowing the information to be retrieved from the table.
[0059] Additionally, in the embodiments of this application, such as Figure 2 As shown, the electronic device may include a controller, a camera module, and a power supply module. The controller and the camera module can be connected via an interface, specifically, as shown... Figure 2 The pins of the CSI_RX and CSI_TX interfaces can be connected using different connecting wires. When all the pins of these two interfaces are connected, the camera module is in D-PHY mode. That is, when all ten pins of these two interfaces are connected, the camera module is in D-PHY mode. When nine out of the ten pins of these two interfaces are connected, the camera module is in C-PHY mode.
[0060] In this embodiment, usage information of the electronic device is obtained, including the device's operating frequency band, transmission power, and radio frequency antenna number. Based on this usage information, the operating state of the electronic device is determined. When the electronic device is in a first preset state, the camera module is configured in a first operating mode; when the electronic device is in a second preset state, the camera module is configured in a second operating mode. The first and second operating modes are different. In other words, in this embodiment, the camera module is configured in different operating modes depending on the operating state of the electronic device, minimizing interference to the camera module and thus improving its imaging performance.
[0061] The camera module control method for electronic devices provided in this application can be executed by a camera module control device for electronic devices. This application uses an example of a camera module control device for electronic devices executing a method for controlling a camera module in an electronic device to illustrate the device for controlling a camera module in an electronic device provided in this application.
[0062] like Figure 3 As shown, the camera module control device 300 includes:
[0063] The acquisition module 301 is used to acquire the usage information of the electronic device, including the operating frequency band of the electronic device, the transmission power of the electronic device, and the serial number of the radio frequency antenna of the electronic device.
[0064] The first determining module 302 is used to determine the operating status of the electronic device based on the usage information;
[0065] The configuration module 303 is used to configure the camera module to a first working mode when the electronic device is in a first preset working state; and to configure the camera module to a second working mode when the electronic device is in a second preset working state. The first working mode and the second working mode are different. The first preset state includes the electronic device operating in a non-risk frequency band, or the influence value of the electronic device's antenna module on the camera module of the electronic device being less than a set value. The second preset state includes the electronic device operating in a risk frequency band, and the electronic device's transmission frequency being greater than a preset threshold; or the electronic device operating in a preset scenario.
[0066] Optionally, the electronic device includes multiple antennas, the camera module of the electronic device includes multiple cameras, and the camera module control device further includes:
[0067] The second determining module is used to determine the isolation between each radio frequency antenna and each camera in different radio frequency bands;
[0068] The third determining module is used to determine the risk frequency band of each radio frequency antenna based on the isolation degree, and to form a correspondence table between radio frequency antennas and cameras. The correspondence table contains the number of radio frequency antenna, the number of camera, and the risk level. When the risk level is greater than the preset level, the radio frequency band of the antenna is the risk frequency band.
[0069] Optionally, the camera module control device also includes:
[0070] The recording module is used to record the operating frequency band, transmission power, and radio frequency antenna number of the electronic device in a preset table when the electronic device is connected to the network.
[0071] The fourth determination module is used to determine whether the operating frequency band of the electronic device is a risky frequency band based on the corresponding relationship table;
[0072] The fifth determination module is used to record the risky frequency band and the corresponding radio frequency antenna number in a preset table if the operating frequency band of the electronic device is a risky frequency band, and to determine whether the transmission power is greater than a preset power threshold. If the transmission power is greater than the preset power threshold, it is recorded in the preset table.
[0073] Optionally, the preset table includes a risk frequency band count item and a risk frequency band total count item. The fifth determination module includes:
[0074] The first determining unit is used to determine whether there is frequency band information corresponding to the risk frequency band and the number of the radio frequency antenna corresponding to the risk frequency band in the preset table;
[0075] The first update unit is used to update the count value corresponding to the risk frequency band count item if the preset table contains the frequency band information corresponding to the risk frequency band and the number of the radio frequency antenna corresponding to the risk frequency band.
[0076] The second update unit is used to update the value corresponding to the total number of times in the risk band when the count value is greater than the pre-designed value.
[0077] Optionally, the first determining module 302 includes:
[0078] The second determining unit is used to determine whether the operating frequency band of the electronic device is a risky frequency band;
[0079] The third determining unit is used to determine the operating state of the electronic device as the first preset state when the operating frequency band of the electronic device is a non-risk frequency band.
[0080] The fourth determining unit is used to determine whether the transmission power of the electronic device is greater than a preset power threshold when the operating frequency band of the electronic device is a risky frequency band, and to determine that the electronic device is in a second preset state when the transmission power is greater than the preset power threshold.
[0081] Optionally, the camera module control device also includes:
[0082] The sixth determination module is used to detect the network information of the electronic device's connection to the network at preset intervals in order to determine the electronic device's operating frequency band, transmission power, and radio frequency antenna number.
[0083] Optionally, the acquisition module 301 includes:
[0084] The acquisition unit is used to acquire usage information of electronic devices from a preset table.
[0085] In this embodiment, usage information of the electronic device is obtained, including the device's operating frequency band, transmission power, and radio frequency antenna number. Based on this usage information, the operating state of the electronic device is determined. When the electronic device is in a first preset state, the camera module is configured in a first operating mode; when the electronic device is in a second preset state, the camera module is configured in a second operating mode. The first and second operating modes are different. In other words, in this embodiment, the camera module is configured in different operating modes depending on the operating state of the electronic device, minimizing interference to the camera module and thus improving its imaging performance.
[0086] The camera module control device of the electronic device in this application embodiment can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. The embodiments of this application do not specifically limit it.
[0087] The camera module control device of the electronic device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0088] The camera module control device for electronic devices provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0089] Optionally, such as Figure 4As shown, this application embodiment also provides an electronic device 400, including a processor 401 and a memory 402. The memory 402 stores a program or instructions that can run on the processor 401. When the program or instructions are executed by the processor 401, they implement the various steps of the above-mentioned camera module control method embodiment of the electronic device and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0090] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0091] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0092] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0093] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0094] The processor 110 is used to acquire usage information of the electronic device, including the operating frequency band of the electronic device, the transmission power of the electronic device, and the serial number of the radio frequency antenna of the electronic device.
[0095] Determine the operating status of electronic devices based on usage information;
[0096] When the electronic device is operating in a first preset state, the camera module is configured in a first operating mode; when the electronic device is operating in a second preset state, the camera module is configured in a second operating mode. The first operating mode and the second operating mode are different. The first preset state includes the electronic device operating in a non-risk frequency band, or the influence of the electronic device's antenna module on the camera module being less than a set value. The second preset state includes the electronic device operating in a risk frequency band, and the electronic device's transmission frequency being greater than a preset threshold; or the electronic device operating in a preset scenario.
[0097] In this embodiment, usage information of the electronic device is obtained, including the device's operating frequency band, transmission power, and radio frequency antenna number. Based on this usage information, the operating state of the electronic device is determined. When the electronic device is in a first preset state, the camera module is configured in a first operating mode; when the electronic device is in a second preset state, the camera module is configured in a second operating mode. The first and second operating modes are different. In other words, in this embodiment, the camera module is configured in different operating modes depending on the operating state of the electronic device, minimizing interference to the camera module and thus improving its imaging performance.
[0098] Optionally, the electronic device includes multiple antennas, the camera module of the electronic device includes multiple cameras, and the processor 110 is also used for:
[0099] Determine the isolation between each RF antenna and each camera in different RF bands;
[0100] Based on the isolation level, the risk frequency band of each radio frequency antenna is determined, and a correspondence table between radio frequency antennas and cameras is formed. The correspondence table contains the radio frequency antenna number, the camera number, and the risk level. When the risk level is greater than the preset level, the radio frequency band of the antenna is the risk frequency band.
[0101] Optionally, the processor 110 is also used for:
[0102] When electronic devices are connected to a network, the operating frequency band, transmission power, and radio frequency antenna number of the electronic devices are recorded in a preset table;
[0103] Based on the corresponding relationship table, determine whether the operating frequency band of the electronic device is a risky frequency band;
[0104] If the operating frequency band of the electronic device is a risky frequency band, the risky frequency band and the number of the radio frequency antenna corresponding to the risky frequency band are recorded in a preset table, and it is determined whether the transmission power is greater than the preset power threshold. If the transmission power is greater than the preset power threshold, it is recorded in the preset table.
[0105] Optionally, the preset table includes a risk frequency band count item and a risk frequency band total count item, and the processor 110 is further used for:
[0106] Determine whether the preset table contains information on the frequency bands corresponding to the risky frequency bands and the corresponding radio frequency antenna numbers;
[0107] If the preset table contains information about the frequency band corresponding to the risk frequency band and the number of the radio frequency antenna corresponding to the risk frequency band, then update the count value corresponding to the risk frequency band count item.
[0108] If the count value is greater than the pre-designed value, update the value corresponding to the total number of times in the risk band.
[0109] Optionally, the processor 110 is also used for:
[0110] Determine whether the operating frequency band of the electronic device is a risky frequency band;
[0111] When the operating frequency band of the electronic device is a non-risk frequency band, the operating state of the electronic device is determined to be the first preset state;
[0112] If the operating frequency band of the electronic device is a risky frequency band, determine whether the transmission power of the electronic device is greater than a preset power threshold. If the transmission power is greater than the preset power threshold, determine that the electronic device is in a second preset state.
[0113] Optionally, the processor 110 is also used for:
[0114] The network information of the electronic device is detected at preset intervals to determine the operating frequency band, transmission power, and radio frequency antenna number of the electronic device.
[0115] Optionally, the processor 110 is also used for:
[0116] Retrieve usage information for electronic devices from a pre-defined table.
[0117] In this embodiment, usage information of the electronic device is obtained, including the device's operating frequency band, transmission power, and radio frequency antenna number. Based on this usage information, the operating state of the electronic device is determined. When the electronic device is in a first preset state, the camera module is configured in a first operating mode; when the electronic device is in a second preset state, the camera module is configured in a second operating mode. The first and second operating modes are different. In other words, in this embodiment, the camera module is configured in different operating modes depending on the operating state of the electronic device, minimizing interference to the camera module and thus improving its imaging performance.
[0118] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0119] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0120] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0121] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described camera module control method embodiment for electronic devices and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0122] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0123] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described camera module control method embodiment of the electronic device, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0124] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0125] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the camera module control method embodiment of the above-described electronic device, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0126] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0127] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0128] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for controlling a camera module in an electronic device, characterized in that, The camera module control method includes: Obtain usage information of the electronic device, including the operating frequency band of the electronic device, the transmission power of the electronic device, and the serial number of the radio frequency antenna of the electronic device; Based on the usage information, determine the operating status of the electronic device; When the electronic device is operating in a first preset state, the camera module is configured in a first operating mode; when the electronic device is operating in a second preset state, the camera module is configured in a second operating mode. The first operating mode is different from the second operating mode. The first preset state includes the electronic device operating in a non-risk frequency band, or the influence of the electronic device's antenna module on the camera module being less than a set value. The second preset state includes the electronic device operating in a risk frequency band, and the electronic device's transmission frequency being greater than a preset threshold, or the electronic device operating in a preset scenario. The first operating mode is a C-PHY mode, and the second operating mode is a D-PHY mode.
2. The camera module control method according to claim 1, characterized in that, The electronic device includes multiple radio frequency antennas, and the camera module of the electronic device includes multiple cameras. Before acquiring usage information of the electronic device, the camera module control method further includes: Determine the isolation between the target RF antenna and each camera when the target RF antenna is operating in different RF frequency bands, wherein the target RF antenna is any one of a plurality of RF antennas; Based on the isolation degree, the risk frequency band of each radio frequency antenna is determined, and a correspondence table between the radio frequency antenna and the camera is formed. The correspondence table contains the number of the radio frequency antenna, the number of the camera, and the risk level. When the risk level is greater than a preset level, the radio frequency band of the radio frequency antenna is a risk frequency band.
3. The camera module control method according to claim 2, characterized in that, The camera module control method further includes: When the electronic device is connected to a network, the operating frequency band, transmission power, and radio frequency antenna number of the electronic device are recorded in a preset table; Based on the corresponding table, determine whether the operating frequency band of the electronic device is a risky frequency band; If the operating frequency band of the electronic device is a risky frequency band, then the risky frequency band and the number of the radio frequency antenna corresponding to the risky frequency band are recorded in the preset table, and it is determined whether the transmission power is greater than a preset power threshold. If the transmission power is greater than the preset power threshold, then it is recorded in the preset table.
4. The camera module control method according to claim 3, characterized in that, The preset table includes a risk frequency band count item and a risk frequency band total count item. If the operating frequency band of the electronic device is a risk frequency band, the preset table records the risk frequency band and the corresponding radio frequency antenna number, including: Determine whether the preset table contains frequency band information corresponding to the risk frequency band and the number of the radio frequency antenna corresponding to the risk frequency band; If the preset table contains the frequency band information corresponding to the risk frequency band and the number of the radio frequency antenna corresponding to the risk frequency band, then update the count value corresponding to the risk frequency band count item. If the count value is greater than the pre-designed value, update the value corresponding to the total number of times the risk frequency band is used.
5. The camera module control method according to claim 1, characterized in that, Determining the operating status of the electronic device based on the usage information includes: Determine whether the operating frequency band of the electronic device is a risky frequency band; When the operating frequency band of the electronic device is a non-risk frequency band, the operating state of the electronic device is determined to be a first preset state; If the operating frequency band of the electronic device is a risky frequency band, determine whether the transmission power of the electronic device is greater than a preset power threshold. If the transmission power is greater than the preset power threshold, determine that the electronic device is in a second preset state.
6. The camera module control method according to claim 3, characterized in that, The camera module control method further includes: The network information of the electronic device connected to the network is detected at preset intervals to determine the operating frequency band, transmission power, and radio frequency antenna number of the electronic device.
7. The camera module control method according to claim 3, characterized in that, The process of obtaining the usage information of the electronic device includes: The usage information of the electronic device is obtained from the preset table.
8. A camera module control device for an electronic device, characterized in that, The control device includes: The acquisition module is used to acquire usage information of the electronic device, including the operating frequency band of the electronic device, the transmission power of the electronic device, and the number of the radio frequency antenna of the electronic device. The first determining module is used to determine the operating status of the electronic device based on the usage information; A configuration module is used to configure the camera module to a first working mode when the electronic device is operating in a first preset state; and to configure the camera module to a second working mode when the electronic device is operating in a second preset state. The first working mode and the second working mode are different. The first preset state includes the electronic device operating in a non-risk frequency band, or the influence value of the antenna module of the electronic device on the camera module of the electronic device is less than a set value. The second preset state includes the electronic device operating in a risk frequency band, and the transmission frequency of the electronic device is greater than a preset threshold, or the electronic device is operating in a preset scenario. The first working mode is a C-PHY mode, and the second working mode is a D-PHY mode.
9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the camera module control method of the electronic device as claimed in any one of claims 1-7.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the camera module control method of the electronic device as described in any one of claims 1-7.
Citation Information
Patent Citations
Electronic equipment and control method and device thereof
CN114422705A