+

CN108093134B - Anti-interference method for electronic equipment and related products - Google Patents

Anti-interference method for electronic equipment and related products Download PDF

Info

Publication number
CN108093134B
CN108093134B CN201711346931.7A CN201711346931A CN108093134B CN 108093134 B CN108093134 B CN 108093134B CN 201711346931 A CN201711346931 A CN 201711346931A CN 108093134 B CN108093134 B CN 108093134B
Authority
CN
China
Prior art keywords
mclk
frequency
radio frequency
interference
frequency band
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.)
Expired - Fee Related
Application number
CN201711346931.7A
Other languages
Chinese (zh)
Other versions
CN108093134A (en
Inventor
张会勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711346931.7A priority Critical patent/CN108093134B/en
Publication of CN108093134A publication Critical patent/CN108093134A/en
Application granted granted Critical
Publication of CN108093134B publication Critical patent/CN108093134B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/06Receivers
    • H04B1/10Means associated with receiver for limiting or suppressing noise or interference

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请提供一种电子设备的抗干扰方法及相关产品,其中,该方法包括:在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段;在所述射频频段与所述第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将所述第一MCLK频率切换为第二MCLK频率,所述第二MCLK频率对应的第二预设干扰频点集与所述射频频段之间不存在交集;在所述射频频段与所述第一预设干扰频点集之间不存在交集时,保持所述第一MCLK频率。采用本申请实施例可以降低摄像头与RF射频之间的干扰,提高用户的通信质量,具有用户体验度高的优点。

Figure 201711346931

The present application provides an anti-interference method for electronic equipment and related products, wherein the method includes: when a camera of the electronic equipment operates at a first MCLK frequency, acquiring a radio frequency band of a registered channel; When there is an intersection between the first preset interference frequency set corresponding to an MCLK frequency, the first MCLK frequency is switched to the second MCLK frequency, and the second preset interference frequency set corresponding to the second MCLK frequency is the same as the There is no intersection between the radio frequency bands; when there is no intersection between the radio frequency band and the first preset interference frequency point set, the first MCLK frequency is maintained. Using the embodiments of the present application can reduce the interference between the camera and the RF radio frequency, improve the communication quality of the user, and have the advantage of high user experience.

Figure 201711346931

Description

电子设备的抗干扰方法及相关产品Anti-interference method for electronic equipment and related products

技术领域technical field

本申请涉及通信技术领域,具体涉及一种电子设备的抗干扰方法及相关产品。The present application relates to the field of communication technologies, and in particular, to an anti-interference method for electronic equipment and related products.

背景技术Background technique

随着电子设备(例如,手机,平板电脑等等)的发展,尤其是智能手机的发展,使得智能手机已成为人们生活的必备品,例如,利用智能手机进行摄像或者拍照也成为人们日常生活必不可少的生活方式,尤其是自拍和视频通话功能,使用更是普遍。然而,拍照和视频通话时前置摄像头的(main clock,MCLK)移动行业处理器接口信号会对RF信号的接收产生干扰,影响RF的射频接收性能,因此,如何解决摄像头的MCLK与RF信道之间的干扰问题亟待解决。With the development of electronic devices (such as mobile phones, tablet computers, etc.), especially the development of smart phones, smart phones have become a must in people's lives. For example, using smart phones to take pictures or take pictures has also become a daily life Lifestyle essentials, especially selfies and video calling functions, are more commonly used. However, the (main clock, MCLK) mobile industry processor interface signal of the front camera during taking pictures and video calls will interfere with the reception of RF signals and affect the RF reception performance of RF. Therefore, how to solve the problem between the MCLK of the camera and the RF channel The problem of interference between them needs to be solved urgently.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种电子设备的抗干扰方法及相关产品,可以解决摄像头MCLK与RF信道之间的干扰问题。The embodiments of the present application provide an anti-interference method for an electronic device and related products, which can solve the problem of interference between a camera MCLK and an RF channel.

本申请实施例第一方面提供了一种电子设备的抗干扰方法,包括:A first aspect of the embodiments of the present application provides an anti-interference method for an electronic device, including:

在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段;When the camera of the electronic device works at the first MCLK frequency, obtain the radio frequency band of the registered channel;

在所述射频频段与所述第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将所述第一MCLK频率切换为第二MCLK频率,所述第二MCLK频率对应的第二预设干扰频点集与所述射频频段之间不存在交集;When there is an intersection between the radio frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency, the first MCLK frequency is switched to a second MCLK frequency corresponding to the second MCLK frequency There is no intersection between the second preset interference frequency point set and the radio frequency band;

在所述射频频段与所述第一预设干扰频点集之间不存在交集时,保持所述第一MCLK频率。When there is no intersection between the radio frequency band and the first preset interference frequency point set, the first MCLK frequency is maintained.

本申请实施例第二方面提供了一种抗干扰装置,包括:A second aspect of the embodiments of the present application provides an anti-interference device, including:

第一获取单元,用于在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段;a first acquisition unit, configured to acquire the radio frequency band of the registered channel when the camera of the electronic device operates at the first MCLK frequency;

切换单元,用于在所述射频频段与所述第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将所述第一MCLK频率切换为第二MCLK频率,所述第二MCLK频率对应的第二预设干扰频点集与所述射频频段之间不存在交集;A switching unit, configured to switch the first MCLK frequency to the second MCLK frequency when there is an intersection between the radio frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency, the first MCLK frequency There is no intersection between the second preset interference frequency point set corresponding to the two MCLK frequencies and the radio frequency band;

保持单元,用于在所述射频频段与所述第一预设干扰频点集之间不存在交集时,保持所述第一MCLK频率。A holding unit, configured to maintain the first MCLK frequency when there is no intersection between the radio frequency band and the first preset interference frequency point set.

第三方面,本申请实施例提供了一种电子设备,包括:应用处理器AP和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述AP执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。In a third aspect, embodiments of the present application provide an electronic device, including: an application processor AP and a memory; and one or more programs, where the one or more programs are stored in the memory and configured to Executed by the AP, the program includes instructions for some or all of the steps as described in the first aspect.

第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤的指令。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program causes a computer to execute the first aspect of the embodiment of the present application instructions for some or all of the steps described in .

第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the Part or all of the steps described in the first aspect of the application embodiment. The computer program product may be a software installation package.

实施本申请实施例,具有如下有益效果:Implementing the embodiments of the present application has the following beneficial effects:

可以看出,通过本申请实施例,在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段,在射频频段与第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将第一MCLK频率切换为第二MCLK频率,第二MCLK频率对应的第二预设干扰频点集与射频频段之间不存在交集,在射频频段与第一预设干扰频点集之间不存在交集时,保持第一MCLK频率,如此,在电子设备的摄像头的MCLK工作,若受到RF干扰,可以对摄像头的MCLK频率进行切换,可降低摄像头的MCLK与RF射频之间的干扰,提高用户的通信质量,具有用户体验度高的优点。It can be seen that, through the embodiment of the present application, when the camera of the electronic device operates at the first MCLK frequency, the radio frequency frequency band of the registered channel is obtained, which is between the radio frequency frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency. When there is an intersection, switch the first MCLK frequency to the second MCLK frequency, there is no intersection between the second preset interference frequency point set corresponding to the second MCLK frequency and the radio frequency band, and the radio frequency band and the first preset interference frequency point When there is no intersection between sets, the first MCLK frequency is maintained. In this way, if the MCLK of the camera of the electronic device is working, if it is interfered by RF, the MCLK frequency of the camera can be switched, which can reduce the MCLK of the camera and the RF radio frequency. interference, improve the communication quality of users, and have the advantage of high user experience.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1是本申请实施例公开的一种电子设备的抗干扰方法的流程示意图。FIG. 1 is a schematic flowchart of an anti-interference method for an electronic device disclosed in an embodiment of the present application.

图2是本申请实施例公开的一种电子设备的抗干扰方法的流程示意图。FIG. 2 is a schematic flowchart of an anti-interference method for an electronic device disclosed in an embodiment of the present application.

图3是本申请实施例公开的一种电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.

图4A是本申请实施例公开的一种抗干扰装置的结构示意图。FIG. 4A is a schematic structural diagram of an anti-interference device disclosed in an embodiment of the present application.

图4B是本申请实施例公开的图4A所描述的抗干扰装置的切换单元的结构示意图。FIG. 4B is a schematic structural diagram of a switching unit of the anti-interference device described in FIG. 4A disclosed in an embodiment of the present application.

图4C是本申请实施例公开的图4A所描述的抗干扰装置的又一结构示意图。FIG. 4C is another schematic structural diagram of the anti-interference device described in FIG. 4A disclosed in an embodiment of the present application.

图4D是本申请实施例公开的图4A所描述的抗干扰装置的又一结构示意图。FIG. 4D is another schematic structural diagram of the anti-interference device described in FIG. 4A disclosed in an embodiment of the present application.

图5是本申请实施例公开的一种电子设备的另一结构示意图。FIG. 5 is another schematic structural diagram of an electronic device disclosed in an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

本申请实施例中的电子设备可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(mobileinternet devices,MID)或穿戴式设备等,上述电子设备仅是举例,而非穷举,包含但不限于上述电子设备,为了描述的方便,下面实施例中将上述电子设备称为用户设备(userequipment,UE)。当然在实际应用中,上述用户设备也不限于上述变现形式,例如还可以包括:智能车载终端、计算机设备等等。The electronic devices in the embodiments of the present application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, handheld computers, notebook computers, mobile internet devices (mobile internet devices, MID), or wearable devices, etc., The foregoing electronic devices are only examples, not exhaustive, including but not limited to the foregoing electronic devices. For the convenience of description, the foregoing electronic devices are referred to as user equipment (user equipment, UE) in the following embodiments. Of course, in practical applications, the above-mentioned user equipment is not limited to the above-mentioned monetization forms, for example, it may also include: intelligent vehicle-mounted terminals, computer equipment, and so on.

可选地,本申请实施例中的射频频段主要是指通信设备在进行无线通信时所使用的射频信号的频段。射频频段是由当前通信设备所在服务小区的基站设备所决定的,因此,当通信设备处于不同的服务小区时,设备的射频频段可能会发生变化。此外,通信设备在多个通信模式时,例如,全球移动通信系统(global system for mobile communications,GSM)/码分多址接入(code division multiple access,CDMA)/宽带码分多址(widebandcode division multiple access,WCDMA)/时分-同步码分多址(time division-synchronous code division multiple access,TDSCDMA)/长期演进(long timeevolution,LTE)等,不同的通信模式下会使用不同的射频频段,但是,这些射频频段有可能会与摄像头的MCLK工作频率之间互相干扰。本申请中注册信道为射频信道。Optionally, the radio frequency band in the embodiment of the present application mainly refers to the frequency band of the radio frequency signal used by the communication device when performing wireless communication. The radio frequency band is determined by the base station equipment of the serving cell where the current communication device is located. Therefore, when the communication device is in a different serving cell, the radio frequency band of the device may change. In addition, when the communication device is in multiple communication modes, for example, global system for mobile communications (GSM)/code division multiple access (CDMA)/wideband code division multiple access multiple access, WCDMA)/time division-synchronous code division multiple access (time division-synchronous code division multiple access, TDSCDMA)/long time evolution (long time evolution, LTE), etc., different communication modes will use different radio frequency bands, but, These radio frequency bands may interfere with the camera's MCLK operating frequency. In this application, the registered channel is a radio frequency channel.

可选地,本申请实施例中,摄像头可以为电子设备的前置摄像头、后置摄像头或者侧置摄像头。摄像头还可以为以下一种:红外摄像头、可见光摄像头、紫外摄像头等等。摄像头还可以为单摄像头或者双摄像头。本申请实施例中的拍照模式可包括但不仅限于:全景模式、夜景模式、雪景模式、专业模式等等。Optionally, in this embodiment of the present application, the camera may be a front camera, a rear camera, or a side camera of an electronic device. The camera may also be one of the following: an infrared camera, a visible light camera, an ultraviolet camera, and the like. The camera may also be a single camera or a dual camera. The photographing modes in the embodiments of the present application may include, but are not limited to, panorama mode, night scene mode, snow scene mode, professional mode, and the like.

其中,本申请实施例中的摄像头的MCLK可以理解为摄像头的主时钟,是由系统提供给摄像头的。通过sensor内部的锁相环(phase locked loop,PLL)电路可以产生不同频率的像素时钟(pixel clock,PCLK),PCLK是像素同步信号。The MCLK of the camera in the embodiment of the present application can be understood as the main clock of the camera, which is provided to the camera by the system. A phase locked loop (phase locked loop, PLL) circuit inside the sensor can generate pixel clocks (pixel clock, PCLK) of different frequencies, and PCLK is a pixel synchronization signal.

电子设备已成为人们生活的必备品,以手机为例,手机摄像,拍照,视频聊天也成为人们日常生活必不可少的生活方式。然而拍照,摄像或者视频聊天时前置摄像头的MCLK信号会对WIFI信号的接收产生干扰,影响WIFI的射频接收性能,导致WIFI网速降低,掉线等问题,降低用户的用户体验。传统方法通过串共模滤波器,串电感,并电容,包导电布,接地等措施解决,但是,解决效果不佳。因此,本申请提供了一种电子设备的抗干扰方法,包括如下步骤:Electronic equipment has become an essential item in people's lives. Taking mobile phones as an example, mobile phone cameras, photography, and video chat have also become indispensable lifestyles in people's daily lives. However, the MCLK signal of the front camera will interfere with the reception of WIFI signals when taking pictures, videos or video chats, affecting the RF reception performance of WIFI, resulting in problems such as reduced WIFI network speed, dropped calls, and reduced user experience. The traditional method is solved by measures such as series common mode filter, series inductance, parallel capacitor, wrapping conductive cloth, grounding, etc. However, the solution is not effective. Therefore, the present application provides an anti-interference method for electronic equipment, comprising the following steps:

在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段;When the camera of the electronic device works at the first MCLK frequency, obtain the radio frequency band of the registered channel;

在所述射频频段与所述第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将所述第一MCLK频率切换为第二MCLK频率,所述第二MCLK频率对应的第二预设干扰频点集与所述射频频段之间不存在交集;When there is an intersection between the radio frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency, the first MCLK frequency is switched to a second MCLK frequency corresponding to the second MCLK frequency There is no intersection between the second preset interference frequency point set and the radio frequency band;

在所述射频频段与所述第一预设干扰频点集之间不存在交集时,保持所述第一MCLK频率。When there is no intersection between the radio frequency band and the first preset interference frequency point set, the first MCLK frequency is maintained.

可以看出,通过本申请实施例,在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段,在射频频段与第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将第一MCLK频率切换为第二MCLK频率,第二MCLK频率对应的第二预设干扰频点集与射频频段之间不存在交集,在射频频段与第一预设干扰频点集之间不存在交集时,保持第一MCLK频率,如此,在电子设备的摄像头的MCLK工作,若受到RF干扰,可以对摄像头的MCLK频率进行切换,可降低摄像头的MCLK与RF射频之间的干扰,提高用户的通信质量,具有用户体验度高的优点。It can be seen that, through the embodiment of the present application, when the camera of the electronic device operates at the first MCLK frequency, the radio frequency frequency band of the registered channel is obtained, which is between the radio frequency frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency. When there is an intersection, switch the first MCLK frequency to the second MCLK frequency, there is no intersection between the second preset interference frequency point set corresponding to the second MCLK frequency and the radio frequency band, and the radio frequency band and the first preset interference frequency point When there is no intersection between sets, the first MCLK frequency is maintained. In this way, if the MCLK of the camera of the electronic device is working, if it is interfered by RF, the MCLK frequency of the camera can be switched, which can reduce the MCLK of the camera and the RF radio frequency. interference, improve the communication quality of users, and have the advantage of high user experience.

与上述一致地,请参阅图1,为本申请实施例提供的一种电子设备的抗干扰方法的实施例流程示意图。本实施例中所描述的抗干扰方法,其可包括以下步骤:Consistent with the above, please refer to FIG. 1 , which is a schematic flowchart of an embodiment of an anti-interference method for an electronic device provided by an embodiment of the present application. The anti-interference method described in this embodiment may include the following steps:

101、在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段。101. When the camera of the electronic device operates at the first MCLK frequency, acquire the radio frequency frequency band of the registered channel.

其中,上述注册信道干扰可以来自如下至少一种情况:GSM接收频段、无线保真(wireless fidelity,WIFI)频段、全球定位系统(global positioning system,GPS)频段、长期演进(long time evolution,LTE)频段(例如,时分双工(time division duplexing,TDD)、频分双工(frequency division duplexing,FDD))等等。上述第一MCLK频率可以由摄像头的供应商或者电子设备生产商预先设置,电子设备中可以预先为摄像头设置多个MCLK频率,第一MCLK频率为摄像头的多个MCLK频率中的一个MCLK频率。在上述第一MCLK频率确定之后,可以通过计算方式,得到第一MCLK频率对应的多个干扰频点,该多个干扰频点构成预设干扰频点集。The above registration channel interference may come from at least one of the following situations: a GSM receiving frequency band, a wireless fidelity (wireless fidelity, WIFI) frequency band, a global positioning system (global positioning system, GPS) frequency band, and a long time evolution (long time evolution, LTE) frequency band. Frequency band (eg, time division duplexing (TDD), frequency division duplexing (FDD)), and so on. The above-mentioned first MCLK frequency may be preset by the camera supplier or the electronic device manufacturer. Multiple MCLK frequencies may be preset for the camera in the electronic device, and the first MCLK frequency is one MCLK frequency among the multiple MCLK frequencies of the camera. After the above-mentioned first MCLK frequency is determined, a plurality of interference frequency points corresponding to the first MCLK frequency may be obtained by calculation, and the plurality of interference frequency points constitute a preset interference frequency point set.

可选地,上述步骤101中,通过所述获取注册信道的射频频段,可以按照如下方式实施:Optionally, in the above step 101, the acquisition of the radio frequency band of the registration channel may be implemented in the following manner:

在所述电子设备进行GSM注册时,通过所述电子设备的调制解调器MODEM获取GSM接收频段作为所述射频频段。When the electronic device performs GSM registration, the GSM receiving frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

其中,电子设备在进行GSM注册时,可以通过电子设备的调制解调器MODEM确定该电子设备的GSM接收频段,将该GSM接收频段作为射频频段。Wherein, when the electronic device performs GSM registration, the GSM receiving frequency band of the electronic device can be determined through the modem MODEM of the electronic device, and the GSM receiving frequency band is used as the radio frequency frequency band.

可选地,上述步骤101中,通过所述获取注册信道的射频频段,可以按照如下方式实施:Optionally, in the above step 101, the acquisition of the radio frequency band of the registration channel may be implemented in the following manner:

在所述电子设备启动WIFI功能时,通过所述电子设备的调制解调器MODEM获取WIFI频段作为所述射频频段。When the electronic device starts the WIFI function, the WIFI frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

其中,在电子设备启动WIFI功能时,通过所述电子设备的调制解调器MODEM获取电子设备的WIFI频段,该WIFI频段有可能会对第一MCLK频率造成干扰,可以将WIFI频段作为射频频段。When the electronic device activates the WIFI function, the WIFI frequency band of the electronic device is obtained through the modem MODEM of the electronic device. The WIFI frequency band may interfere with the first MCLK frequency, and the WIFI frequency band can be used as the radio frequency frequency band.

可选地,上述步骤101中,获取注册信道的射频频段,可以按照如下方式实施:Optionally, in the above step 101, the acquisition of the radio frequency band of the registration channel may be implemented as follows:

在所述电子设备启动GPS功能时,通过所述电子设备的调制解调器MODEM获取GPS频段作为所述射频频段。When the electronic device starts the GPS function, the GPS frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

其中,在电子设备启动GPS功能时,可以通过电子设备的调制解调器MODEM确定电子设备的GPS频段,该GPS频段有可能会对第一MCLK频率造成干扰,可以将GPS频段作为射频频段。Wherein, when the electronic device activates the GPS function, the GPS frequency band of the electronic device can be determined through the modem MODEM of the electronic device, and the GPS frequency band may interfere with the first MCLK frequency, and the GPS frequency band can be used as the radio frequency frequency band.

可选地,上述步骤101中,获取注册信道的射频频段,可以按照如下方式实施:Optionally, in the above step 101, the acquisition of the radio frequency band of the registration channel may be implemented as follows:

在所述电子设备进行LTE扫描时,通过所述电子设备的调制解调器MODEM获取LTE频段作为所述射频频段。When the electronic device performs LTE scanning, the LTE frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

即,上述步骤101中,获取注册信道的射频频段,可按照如下方式实施:That is, in the above step 101, the acquisition of the radio frequency band of the registration channel may be implemented as follows:

在所述电子设备启动指定功能时,获取与所述指定功能对应的注册信道的射频频率,所述指定功能为以下一种:GSM、WIFI、GPS和LTE。When the electronic device starts a specified function, the radio frequency of the registration channel corresponding to the specified function is acquired, and the specified function is one of the following: GSM, WIFI, GPS and LTE.

其中,在电子设备进行LTE注册时,可以通过电子设备的调制解调器MODEM确定电子设备的LTE频段(例如,TDD-LTE频段,或者,FDD-LTE频段),该LTE频段有可能会对第一MCLK频率造成干扰,可以将LTE频段作为射频频段。Wherein, when the electronic device performs the LTE registration, the LTE frequency band (for example, the TDD-LTE frequency band, or the FDD-LTE frequency band) of the electronic device can be determined through the modem MODEM of the electronic device, and the LTE frequency band may affect the first MCLK frequency. To cause interference, the LTE band can be used as a radio frequency band.

可选地,上述步骤101之前,还可以包括如下步骤:Optionally, before the above step 101, the following steps may also be included:

A1、确定目标拍照模式;A1. Determine the target photo mode;

A2、按照预设的拍照模式与MCLK频率之间的映射关系确定与所述目标拍照模式对应的所述第一MCLK频率。A2. Determine the first MCLK frequency corresponding to the target photographing mode according to the preset mapping relationship between the photographing mode and the MCLK frequency.

其中,电子设备中可以预先存储拍照模式与MCLK频率之间的映射关系,即不同的拍照模式对应不同的MCLK频率,如此,可以实现不同的PCLK频率,实现不同拍照模式下的成像。上述目标拍照模式可以为当前拍照模式。The electronic device can pre-store the mapping relationship between the photographing mode and the MCLK frequency, that is, different photographing modes correspond to different MCLK frequencies. In this way, different PCLK frequencies can be implemented to realize imaging in different photographing modes. The above-mentioned target photographing mode may be the current photographing mode.

进一步可选地,上述步骤A1,确定目标拍照模式,可包括如下步骤:Further optionally, the above step A1, determining the target photographing mode, may include the following steps:

A11、获取环境光参数;A11. Obtain ambient light parameters;

A12、确定与所述环境光参数对应的拍摄参数;A12. Determine the shooting parameters corresponding to the ambient light parameters;

A13、确定与所述拍摄参数对应的多个拍照模式;A13. Determine multiple photographing modes corresponding to the photographing parameters;

A14、从所述多个拍照模式中选取一个拍照模式作为所述目标拍照模式。A14. Select one photographing mode from the plurality of photographing modes as the target photographing mode.

其中,上述环境光参数可以包括环境亮度或者环境色温,拍摄参数可以包括但不仅限于:曝光时长、光圈大小、感光度ISO、虚化区域、对焦区域、焦距、物距等等。电子设备中可以预先存储环境光参数与拍摄参数之间的映射关系,进而,在获取了环境光参数之后,可以根据该映射关系确定其对应的拍摄参数。当然,一种拍摄参数可以对应多个拍照模式,进而,可以选择一个拍照模式作为目标拍照模式。The above ambient light parameters may include ambient brightness or ambient color temperature, and shooting parameters may include but are not limited to: exposure duration, aperture size, ISO sensitivity, blur area, focus area, focal length, object distance, and the like. The electronic device may pre-store the mapping relationship between the ambient light parameters and the shooting parameters, and further, after acquiring the ambient light parameters, the corresponding shooting parameters may be determined according to the mapping relationship. Of course, one shooting parameter may correspond to multiple shooting modes, and further, one shooting mode may be selected as the target shooting mode.

102、在所述射频频段与所述第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将所述第一MCLK频率切换为第二MCLK频率,所述第二MCLK频率对应的第二预设干扰频点集与所述射频频段之间不存在交集。102. When there is an intersection between the radio frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency, switch the first MCLK frequency to a second MCLK frequency, and the second MCLK frequency There is no intersection between the corresponding second preset interference frequency point set and the radio frequency band.

其中,第二MCLK频率可以由摄像头的供应商或者电子设备生产商预先设置,电子设备中可以预先为摄像头设置多个MCLK频率,第二MCLK频率为多个MCLK频率中的一个MCLK频率。第二MCLK频率可以对应多个干扰频点,在第二MCLK频率确定之后,便可以通过计算方式得到该多个干扰频点,该多个干扰频点则构成了第二预设干扰频点集,第二MCLK频率对应的第二预设干扰频点集可与射频频段之间不存在交集。The second MCLK frequency may be preset by a camera supplier or an electronic device manufacturer, and multiple MCLK frequencies may be preset for the camera in the electronic device, and the second MCLK frequency is one of the multiple MCLK frequencies. The second MCLK frequency can correspond to multiple interference frequency points. After the second MCLK frequency is determined, the multiple interference frequency points can be obtained by calculation, and the multiple interference frequency points constitute a second preset interference frequency point set , the second preset interference frequency point set corresponding to the second MCLK frequency may not have an intersection with the radio frequency band.

可选地,所述电子设备中预先存储N个MCLK频率,所述N为大于1的正整数;上述步骤102中,将所述第一MCLK频率切换为第二MCLK频率,可包括如下步骤:Optionally, N MCLK frequencies are pre-stored in the electronic device, and N is a positive integer greater than 1; in the above step 102, switching the first MCLK frequency to the second MCLK frequency may include the following steps:

21、确定干扰射频信道,所述射频频段包括所述干扰射频信道;21. Determine an interfering radio frequency channel, where the radio frequency band includes the interfering radio frequency channel;

22、根据所述干扰射频信道从所述N个MCLK频率中筛选中干扰度小于预设干扰阈值的MCLK频率,得到M个MCLK频率,所述M为小于或等于所述N的正整数;22. Screening MCLK frequencies with an interference degree less than a preset interference threshold from the N MCLK frequencies according to the interfering radio frequency channel, to obtain M MCLK frequencies, where M is a positive integer less than or equal to the N;

23、将所述M个MCLK频率中的一个MCLK频率作为所述第二MCLK频率,并将所述第一MCLK频率切换为所述第二MCLK频率。23. Use one MCLK frequency among the M MCLK frequencies as the second MCLK frequency, and switch the first MCLK frequency to the second MCLK frequency.

其中,上述干扰射频信道可以为干扰信号对应的射频信道,上述预设干扰阈值可以由用户自行设置或者系统默认。电子设备中可以预先存储N个MCLK频率,N为大于1的整数,N个MCLK频率均可以与干扰射频信道对应一个干扰度,进而,可以从N个MCLK频率中筛选中干扰度小于预设干扰阈值的MCLK频率,得到M个MCLK频率,M为不大于N的正整数,进而,可以从M个MCLK频率中选取一个MCLK频率作为第二MCLK频率,进而,将第一MCLK频率切换为第二MCLK频率。可选地,第二MCLK频率可以为M个MCLK频率中离第一MCLK频率最近的一个。The above-mentioned interference radio frequency channel may be a radio frequency channel corresponding to the interference signal, and the above-mentioned preset interference threshold may be set by the user or the system defaults. The electronic device can store N MCLK frequencies in advance, where N is an integer greater than 1. Each of the N MCLK frequencies can correspond to an interference degree of the interfering radio frequency channel, and further, the interference degree can be selected from the N MCLK frequencies less than the preset interference. The MCLK frequency of the threshold is obtained to obtain M MCLK frequencies, where M is a positive integer not greater than N, and then, one MCLK frequency can be selected from the M MCLK frequencies as the second MCLK frequency, and then the first MCLK frequency is switched to the second MCLK frequency MCLK frequency. Optionally, the second MCLK frequency may be the one closest to the first MCLK frequency among the M MCLK frequencies.

进一步可选地,在上述步骤102中,将所述第一MCLK频率切换为第二MCLK频率之前,还可以包括如下步骤:Further optionally, in the above step 102, before switching the first MCLK frequency to the second MCLK frequency, the following steps may be further included:

确定所述干扰射频信道对应的工作功率,在所述工作功率大于预设工作功率阈值时,执行所述将所述第一MCLK频率切换为第二MCLK频率的步骤。The working power corresponding to the interfering radio frequency channel is determined, and when the working power is greater than a preset working power threshold, the step of switching the first MCLK frequency to the second MCLK frequency is performed.

其中,干扰射频信道对应的干扰强度强弱由其对应的硬件的工作功率决定,进而,工作功率大,则说明干扰大,工作功率小,则干扰小,进而,可以预先设置预设工作功率阈值,在工作功率大于预设工作功率阈值时,执行所述将所述第一MCLK频率切换为第二MCLK频率的步骤,在工作功率小于或等于预设工作功率阈值时,不执行所述将所述第一MCLK频率切换为第二MCLK频率的步骤。The strength of the interference corresponding to the interfering radio frequency channel is determined by the working power of the corresponding hardware. Further, if the working power is large, the interference is large, and if the working power is small, the interference is small. Furthermore, a preset working power threshold can be preset. , when the working power is greater than the preset working power threshold, execute the step of switching the first MCLK frequency to the second MCLK frequency, and when the working power is less than or equal to the preset working power threshold, do not execute the step of switching the first MCLK frequency to the second MCLK frequency The step of switching the first MCLK frequency to the second MCLK frequency is described.

103、在所述射频频段与所述第一预设干扰频点集之间不存在交集时,保持所述第一MCLK频率。103. When there is no intersection between the radio frequency band and the first preset interference frequency point set, maintain the first MCLK frequency.

其中,射频频段与第一预设干扰频点集之间不存在交集,则说明第一MCLK频率与RF射频之间不存在干扰,则可以保持在第一MCLK频率。Wherein, if there is no intersection between the radio frequency band and the first preset interference frequency point set, it means that there is no interference between the first MCLK frequency and the RF radio frequency, and the first MCLK frequency can be maintained.

举例说明下,基于上述本申请提出了抗干扰方法,即,电子设备中预先设置二组摄像头的MCLK频率,即第一MCLK频率A和第二MCLK频率B,可以根据频率A,频率B,通过计算出可能受到干扰的RF频段以及对应的信道,例如,可以包扩现有的6种蜂窝移动制式:GSM、WCDMA、TDSCDMA、TDD-LTE、FDD-LTE、CDMA,并作为切换条件预设到电子设备内,假如,A频率干扰RF频段1,不干扰RF其他频段,B频率干扰RF频段2,不干扰RF其他频段,当电子设备的调整解调器MODEM上报的注册信道是频率A的干扰信道时,当摄像头以A频率工作时,RF工作在1频段,则将A频段到B频率,当RF工作在非1频段,MCLK频率保持A频率,如此,可以节省成本和提高用户体验。As an example, an anti-interference method is proposed based on the above-mentioned application, that is, the MCLK frequencies of two groups of cameras are preset in the electronic device, that is, the first MCLK frequency A and the second MCLK frequency B. Calculate the RF frequency band and the corresponding channel that may be interfered. For example, it can expand the existing 6 cellular mobile systems: GSM, WCDMA, TDSCDMA, TDD-LTE, FDD-LTE, CDMA, and preset it as a switching condition to In electronic equipment, if frequency A interferes with RF frequency band 1 and does not interfere with other RF frequency bands, and frequency B interferes with RF frequency band 2 and does not interfere with other RF frequency bands, when the registered channel reported by the adjustment and demodulator MODEM of the electronic equipment is the interference of frequency A When the camera is operating at frequency A and the RF frequency is at frequency 1, the frequency A is changed to frequency B. When the RF frequency is not at frequency 1, the MCLK frequency remains at frequency A, which can save costs and improve user experience.

可选地,在上述步骤102,将所述第一MCLK频率切换为第二MCLK频率,还可以包括如下步骤:Optionally, in the above step 102, switching the first MCLK frequency to the second MCLK frequency may further include the following steps:

获取所述第一MCLK频率对应的第一工作功率;获取所述射频频段对应的第二工作功率;在所述第一工作功率大于第一预设阈值且所述第二工作功率大于第二预设阈值时,执行所述将所述第一MCLK频率切换为第二MCLK频率的步骤。Obtain the first working power corresponding to the first MCLK frequency; obtain the second working power corresponding to the radio frequency band; when the first working power is greater than the first preset threshold and the second working power is greater than the second preset When the threshold is set, the step of switching the first MCLK frequency to the second MCLK frequency is performed.

其中,上述第一预设阈值,第二预设阈值均可以由用户自行设置,或者,系统默认,当然,在第一工作功率大于第一预设阈值,则说明MCLK信号较强,在第二工作功率大于第二预设阈值时,则说明射频频段对应的信号较强,进而,摄像头的MCLK与RF信号之间会造成一定的干扰。The first preset threshold and the second preset threshold can be set by the user, or the system defaults. Of course, when the first working power is greater than the first preset threshold, it means that the MCLK signal is strong, and the second preset threshold is strong. When the working power is greater than the second preset threshold, it means that the signal corresponding to the radio frequency band is strong, and further, certain interference will be caused between the MCLK of the camera and the RF signal.

可以看出,通过本申请实施例,在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段,在射频频段与第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将第一MCLK频率切换为第二MCLK频率,第二MCLK频率对应的第二预设干扰频点集与射频频段之间不存在交集,在射频频段与第一预设干扰频点集之间不存在交集时,保持第一MCLK频率,如此,在电子设备的摄像头的MCLK工作,若受到RF干扰,可以对摄像头的MCLK频率进行切换,可降低摄像头的MCLK与RF射频之间的干扰,提高用户的通信质量,具有用户体验度高的优点。It can be seen that, according to the embodiment of the present application, when the camera of the electronic device operates at the first MCLK frequency, the radio frequency frequency band of the registered channel is obtained, which is between the radio frequency frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency. When there is an intersection, switch the first MCLK frequency to the second MCLK frequency, there is no intersection between the second preset interference frequency point set corresponding to the second MCLK frequency and the radio frequency band, and the radio frequency band and the first preset interference frequency point When there is no intersection between sets, the first MCLK frequency is maintained. In this way, if the MCLK of the camera of the electronic device is working, if it is interfered by RF, the MCLK frequency of the camera can be switched, which can reduce the MCLK of the camera and the RF radio frequency. interference, improve the communication quality of users, and have the advantage of high user experience.

与上述一致地,请参阅图2,为本申请实施例提供的一种电子设备的抗干扰方法的实施例流程示意图。本实施例中所描述的抗干扰方法,其可包括以下步骤:Consistent with the above, please refer to FIG. 2 , which is a schematic flowchart of an embodiment of an anti-interference method for an electronic device provided by an embodiment of the present application. The anti-interference method described in this embodiment may include the following steps:

201、在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段。201. When the camera of the electronic device operates at the first MCLK frequency, acquire the radio frequency band of the registered channel.

202、在所述射频频段与所述第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将所述第一MCLK频率切换为第二MCLK频率,所述第二MCLK频率对应的第二预设干扰频点集与所述射频频段之间不存在交集。202. When there is an intersection between the radio frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency, switch the first MCLK frequency to a second MCLK frequency, and the second MCLK frequency There is no intersection between the corresponding second preset interference frequency point set and the radio frequency band.

203、在所述射频频段与所述第一预设干扰频点集之间不存在交集时,保持所述第一MCLK频率。203. When there is no intersection between the radio frequency band and the first preset interference frequency point set, maintain the first MCLK frequency.

其中,上述步骤201-步骤203的具体描述可以参照上述图1所描述的电子设备的抗干扰方法,在此不再赘述。For the specific description of the above steps 201 to 203, reference may be made to the anti-interference method of the electronic device described in FIG. 1 , and details are not repeated here.

204、在所述射频频段对应的干扰信号不存在时,将所述第二MCLK频率切换为所述第一MCLK频率。204. When the interference signal corresponding to the radio frequency band does not exist, switch the second MCLK frequency to the first MCLK frequency.

其中,若射频频段对应的干扰信号不存在时,则说明原来的干扰消失了,不会对通信造成干扰,进而,可以将第二MCLK频率切换为第一MCLK频率。Wherein, if the interference signal corresponding to the radio frequency band does not exist, it means that the original interference disappears and will not interfere with the communication, and further, the second MCLK frequency can be switched to the first MCLK frequency.

可以看出,通过本申请实施例,在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段,在射频频段与第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将第一MCLK频率切换为第二MCLK频率,第二MCLK频率对应的第二预设干扰频点集与射频频段之间不存在交集,在射频频段与第一预设干扰频点集之间不存在交集时,保持第一MCLK频率,在射频频段对应的干扰信号不存在时,将第二MCLK频率切换为第一MCLK频率,如此,在电子设备的摄像头的MCLK工作,若受到RF干扰,可以对摄像头的MCLK频率进行切换,可降低摄像头的MCLK与RF射频之间的干扰,提高用户的通信质量,具有用户体验度高的优点。It can be seen that, through the embodiment of the present application, when the camera of the electronic device operates at the first MCLK frequency, the radio frequency frequency band of the registered channel is obtained, which is between the radio frequency frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency. When there is an intersection, switch the first MCLK frequency to the second MCLK frequency, there is no intersection between the second preset interference frequency point set corresponding to the second MCLK frequency and the radio frequency band, and the radio frequency band and the first preset interference frequency point When there is no intersection between the sets, the first MCLK frequency is maintained, and when the interference signal corresponding to the radio frequency band does not exist, the second MCLK frequency is switched to the first MCLK frequency. RF interference, the MCLK frequency of the camera can be switched, which can reduce the interference between the MCLK of the camera and the RF radio frequency, improve the communication quality of the user, and have the advantage of high user experience.

请参阅图3,图3是本申请实施例提供的一种电子设备,包括:应用处理器AP和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述AP执行,所述程序包括用于执行以下步骤的指令:Please refer to FIG. 3. FIG. 3 is an electronic device provided by an embodiment of the present application, including: an application processor AP and a memory; and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the AP, the program includes instructions for performing the following steps:

在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段;When the camera of the electronic device works at the first MCLK frequency, obtain the radio frequency band of the registered channel;

在所述射频频段与所述第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将所述第一MCLK频率切换为第二MCLK频率,所述第二MCLK频率对应的第二预设干扰频点集与所述射频频段之间不存在交集;When there is an intersection between the radio frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency, the first MCLK frequency is switched to a second MCLK frequency corresponding to the second MCLK frequency There is no intersection between the second preset interference frequency point set and the radio frequency band;

在所述射频频段与所述第一预设干扰频点集之间不存在交集时,保持所述第一MCLK频率。When there is no intersection between the radio frequency band and the first preset interference frequency point set, the first MCLK frequency is maintained.

在一个可能的示例中,在所述获取注册信道的射频频段方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of acquiring the radio frequency band of the registration channel, the program includes instructions for performing the following steps:

在所述电子设备进行GSM注册时,通过所述电子设备的调制解调器MODEM获取GSM接收频段作为所述射频频段。When the electronic device performs GSM registration, the GSM receiving frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

在一个可能的示例中,在所述获取注册信道的射频频段方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of acquiring the radio frequency band of the registration channel, the program includes instructions for performing the following steps:

在所述电子设备启动WIFI功能时,通过所述电子设备的调制解调器MODEM获取WIFI频段作为所述射频频段。When the electronic device starts the WIFI function, the WIFI frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

在一个可能的示例中,在所述获取注册信道的射频频段方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of acquiring the radio frequency band of the registration channel, the program includes instructions for performing the following steps:

在所述电子设备启动GPS功能时,通过所述电子设备的调制解调器MODEM获取GPS频段作为所述射频频段。When the electronic device starts the GPS function, the GPS frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

在一个可能的示例中,在所述获取注册信道的射频频段方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of acquiring the radio frequency band of the registration channel, the program includes instructions for performing the following steps:

在所述电子设备进行LTE扫描时,通过所述电子设备的调制解调器MODEM获取LTE频段作为所述射频频段。When the electronic device performs LTE scanning, the LTE frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

在一个可能的示例中,所述程序还包括用于执行以下步骤的指令:In one possible example, the program further includes instructions for performing the following steps:

确定目标拍照模式;Determine the target photo mode;

按照预设的拍照模式与MCLK频率之间的映射关系确定与所述目标拍照模式对应的所述第一MCLK频率。The first MCLK frequency corresponding to the target photographing mode is determined according to a preset mapping relationship between the photographing mode and the MCLK frequency.

在一个可能的示例中,在所述确定目标拍照模式方面,所述程序包括用于执行以下步骤的指令:In a possible example, in the aspect of determining the target photographing mode, the program includes instructions for performing the following steps:

获取环境光参数;Get ambient light parameters;

确定与所述环境光参数对应的拍摄参数;determining the shooting parameters corresponding to the ambient light parameters;

确定与所述拍摄参数对应的多个拍照模式;determining a plurality of photographing modes corresponding to the photographing parameters;

从所述多个拍照模式中选取一个拍照模式作为所述目标拍照模式。One photographing mode is selected from the plurality of photographing modes as the target photographing mode.

在一个可能的示例中,所述电子设备中预先存储N个MCLK频率,所述N为大于1的正整数;在所述将所述第一MCLK频率切换为第二MCLK频率,所述程序包括用于执行以下步骤的指令:In a possible example, N MCLK frequencies are pre-stored in the electronic device, and N is a positive integer greater than 1; in the switching of the first MCLK frequency to the second MCLK frequency, the program includes: Instructions to perform the following steps:

确定干扰射频信道,所述射频频段包括所述干扰射频信道;determining an interfering radio frequency channel, the radio frequency band including the interfering radio frequency channel;

根据所述干扰射频信道从所述N个MCLK频率中筛选中干扰度小于预设干扰阈值的MCLK频率,得到M个MCLK频率,所述M为小于或等于所述N的正整数;According to the interference radio frequency channel, the MCLK frequencies whose interference degree is less than the preset interference threshold are selected from the N MCLK frequencies to obtain M MCLK frequencies, where M is a positive integer less than or equal to the N;

将所述M个MCLK频率中的一个MCLK频率作为所述第二MCLK频率,并将所述第一MCLK频率切换为所述第二MCLK频率。One MCLK frequency among the M MCLK frequencies is used as the second MCLK frequency, and the first MCLK frequency is switched to the second MCLK frequency.

在一个可能的示例中,所述程序还包括用于执行以下步骤的指令:In one possible example, the program further includes instructions for performing the following steps:

获取所述第一MCLK频率对应的第一工作功率;obtaining the first working power corresponding to the first MCLK frequency;

获取所述射频频段对应的第二工作功率;obtaining the second working power corresponding to the radio frequency band;

在所述第一工作功率大于第一预设阈值且所述第二工作功率大于第二预设阈值时,执行所述将所述第一MCLK频率切换为第二MCLK频率的步骤。When the first operating power is greater than a first preset threshold and the second operating power is greater than a second preset threshold, the step of switching the first MCLK frequency to the second MCLK frequency is performed.

请参阅图4A,图4A是本实施例提供的一种抗干扰装置的结构示意图。该抗干扰装置应用于电子设备,其可以包括第一获取单元401、切换单元402和保持单元403,其中,Please refer to FIG. 4A . FIG. 4A is a schematic structural diagram of an anti-interference device provided in this embodiment. The anti-interference device is applied to an electronic device, which may include a first acquiring unit 401, a switching unit 402 and a holding unit 403, wherein,

第一获取单元401,用于在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段;The first obtaining unit 401 is configured to obtain the radio frequency frequency band of the registered channel when the camera of the electronic device operates at the first MCLK frequency;

切换单元402,用于在所述射频频段与所述第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将所述第一MCLK频率切换为第二MCLK频率,所述第二MCLK频率对应的第二预设干扰频点集与所述射频频段之间不存在交集;The switching unit 402 is configured to switch the first MCLK frequency to the second MCLK frequency when there is an intersection between the radio frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency, the There is no intersection between the second preset interference frequency point set corresponding to the second MCLK frequency and the radio frequency band;

保持单元403,用于在所述射频频段与所述第一预设干扰频点集之间不存在交集时,保持所述第一MCLK频率。The maintaining unit 403 is configured to maintain the first MCLK frequency when there is no intersection between the radio frequency band and the first preset interference frequency point set.

可选地,在所述获取注册信道的射频频段方面,所述第一获取单元401具体用于:Optionally, in terms of acquiring the radio frequency band of the registration channel, the first acquiring unit 401 is specifically configured to:

在所述电子设备进行GSM注册时,通过所述电子设备的调制解调器MODEM获取GSM接收频段作为所述射频频段。When the electronic device performs GSM registration, the GSM receiving frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

可选地,在所述获取注册信道的射频频段方面,所述第一获取单元401具体用于:Optionally, in terms of acquiring the radio frequency band of the registration channel, the first acquiring unit 401 is specifically configured to:

在所述电子设备启动WIFI功能时,通过所述电子设备的调制解调器MODEM获取WIFI频段作为所述射频频段。When the electronic device starts the WIFI function, the WIFI frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

可选地,在所述获取注册信道的射频频段方面,所述第一获取单元401具体用于:Optionally, in terms of acquiring the radio frequency band of the registration channel, the first acquiring unit 401 is specifically configured to:

在所述电子设备启动GPS功能时,通过所述电子设备的调制解调器MODEM获取GPS频段作为所述射频频段。When the electronic device starts the GPS function, the GPS frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

可选地,在所述获取注册信道的射频频段方面,所述第一获取单元401具体用于:Optionally, in terms of acquiring the radio frequency band of the registration channel, the first acquiring unit 401 is specifically configured to:

在所述电子设备进行LTE扫描时,通过所述电子设备的调制解调器MODEM获取LTE频段作为所述射频频段。When the electronic device performs LTE scanning, the LTE frequency band is acquired as the radio frequency frequency band through the modem MODEM of the electronic device.

可选地,如图4B,图4B是图4A所描述的抗干扰装置的切换单元402的具体细节结构,所述电子设备中预先存储N个MCLK频率,所述N为大于1的正整数,所述切换单元402可包括:确定模块4021、筛选模块4022和切换模块4023,具体如下:Optionally, as shown in FIG. 4B , FIG. 4B is the specific detailed structure of the switching unit 402 of the anti-interference device described in FIG. 4A , N MCLK frequencies are pre-stored in the electronic device, and N is a positive integer greater than 1, The switching unit 402 may include: a determining module 4021, a screening module 4022 and a switching module 4023, the details are as follows:

确定模块4021,用于确定干扰射频信道,所述射频频段包括所述干扰射频信道;a determining module 4021, configured to determine an interfering radio frequency channel, where the radio frequency band includes the interfering radio frequency channel;

筛选模块4022,用于根据所述干扰射频信道从所述N个MCLK频率中筛选中干扰度小于预设干扰阈值的MCLK频率,得到M个MCLK频率,所述M为小于或等于所述N的正整数;The screening module 4022 is configured to screen the MCLK frequencies whose interference degree is less than the preset interference threshold from the N MCLK frequencies according to the interfering radio frequency channel, and obtain M MCLK frequencies, where M is less than or equal to the N MCLK frequencies positive integer;

切换模块4023,用于将所述M个MCLK频率中的一个MCLK频率作为所述第二MCLK频率,并将所述第一MCLK频率切换为所述第二MCLK频率。The switching module 4023 is configured to use one MCLK frequency among the M MCLK frequencies as the second MCLK frequency, and switch the first MCLK frequency to the second MCLK frequency.

可选地,如图4C,图4C是图4A所描述的抗干扰装置的一种变型结构,其与图4A相比较,还可以包括:第二获取单元404,具体如下:Optionally, as shown in FIG. 4C , FIG. 4C is a modified structure of the anti-interference device described in FIG. 4A , and compared with FIG. 4A , it may further include: a second acquisition unit 404, which is specifically as follows:

确定单元404,用于获取所述第一MCLK频率对应的第一工作功率;以及获取所述射频频段对应的第二工作功率;由所述切换单元402在所述第一工作功率大于第一预设阈值且所述第二工作功率大于第二预设阈值时,执行所述将所述第一MCLK频率切换为第二MCLK频率的步骤。The determining unit 404 is configured to obtain the first working power corresponding to the first MCLK frequency; and obtain the second working power corresponding to the radio frequency frequency band; when the first working power is greater than the first preset by the switching unit 402 When a threshold is set and the second operating power is greater than a second preset threshold, the step of switching the first MCLK frequency to the second MCLK frequency is performed.

可选地,如图4D,图4D是图4A所描述的抗干扰装置的一种变型结构,其与图4A相比较,还可以包括:确定单元405,具体如下:Optionally, as shown in FIG. 4D , FIG. 4D is a modified structure of the anti-interference device described in FIG. 4A , which, compared with FIG. 4A , may further include: a determining unit 405 , specifically as follows:

所述确定单元405,用于确定目标拍照模式;以及按照预设的拍照模式与MCLK频率之间的映射关系确定与所述目标拍照模式对应的所述第一MCLK频率。The determining unit 405 is configured to determine a target photographing mode; and determine the first MCLK frequency corresponding to the target photographing mode according to a preset mapping relationship between the photographing mode and the MCLK frequency.

进一步可选地,在所述确定目标拍照模式方面,所述确定单元405具体用于:Further optionally, in the aspect of determining the target photographing mode, the determining unit 405 is specifically configured to:

获取环境光参数;Get ambient light parameters;

确定与所述环境光参数对应的拍摄参数;determining the shooting parameters corresponding to the ambient light parameters;

确定与所述拍摄参数对应的多个拍照模式;determining a plurality of photographing modes corresponding to the photographing parameters;

从所述多个拍照模式中选取一个拍照模式作为所述目标拍照模式。One photographing mode is selected from the plurality of photographing modes as the target photographing mode.

可以看出,通过本申请实施例所描述的抗干扰装置,在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段,在射频频段与第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将第一MCLK频率切换为第二MCLK频率,第二MCLK频率对应的第二预设干扰频点集与射频频段之间不存在交集,在射频频段与第一预设干扰频点集之间不存在交集时,保持第一MCLK频率,如此,在电子设备的摄像头的MCLK工作,若受到RF干扰,可以对摄像头的MCLK频率进行切换,可降低摄像头的MCLK与RF射频之间的干扰,提高用户的通信质量,具有用户体验度高的优点。It can be seen that, with the anti-interference device described in the embodiments of the present application, when the camera of the electronic device operates at the first MCLK frequency, the radio frequency frequency band of the registered channel is obtained, and the first preset frequency corresponding to the first MCLK frequency in the radio frequency frequency band is obtained. When there is an intersection between the interference frequency point sets, the first MCLK frequency is switched to the second MCLK frequency. When there is no intersection between a preset interference frequency point set, the first MCLK frequency is maintained. In this way, if the MCLK of the camera of the electronic device is working, if it is interfered by RF, the MCLK frequency of the camera can be switched, which can reduce the MCLK of the camera. Interference with RF radio frequency improves the communication quality of users, and has the advantage of high user experience.

本申请实施例还提供了另一种电子设备,如图5所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、个人数字助理(personal digital assistant,PDA)、销售终端(point of sales,POS)、车载电脑等任意终端设备,以电子设备为手机为例:The embodiment of the present application also provides another electronic device, as shown in FIG. 5 , for the convenience of description, only the part related to the embodiment of the present application is shown. If the specific technical details are not disclosed, please refer to the method of the embodiment of the present application. part. The electronic device can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a vehicle-mounted computer, etc. The electronic device is a mobile phone as an example:

图5示出的是与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图5,手机包括:射频(radio frequency,RF)电路910、存储器920、输入单元930、传感器950、音频电路960、无线保真WiFi模块970、应用处理器AP980、以及电源990等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 is a block diagram showing a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application. 5 , the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a sensor 950, an audio circuit 960, a Wi-Fi module 970, an application processor AP980, and a power supply 990 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 5 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.

下面结合图5对手机的各个构成部件进行具体的介绍:The following is a detailed introduction to each component of the mobile phone in conjunction with Figure 5:

输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控显示屏933、生物识别装置931(例如,指纹识别装置、声纹识别装置、人脸识别装置、虹膜识别装置、脑电波识别装置等等)以及其他输入设备932。生物识别装置931可参照上述结构,具体结构组成可参照上述描述,在此不过多赘述。输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理按键、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 may be used to receive inputted numerical or character information, and generate key signal input related to user setting and function control of the mobile phone. Specifically, the input unit 930 may include a touch display screen 933, a biometric identification device 931 (eg, a fingerprint identification device, a voiceprint identification device, a face identification device, an iris identification device, a brain wave identification device, etc.) and other input devices 932. The biometric identification device 931 can refer to the above structure, and the specific structural composition can refer to the above description, which will not be repeated here. The input unit 930 may also include other input devices 932 . Specifically, other input devices 932 may include, but are not limited to, one or more of physical keys, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

其中,所述AP980,用于执行如下步骤:The AP980 is used to perform the following steps:

在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段;When the camera of the electronic device works at the first MCLK frequency, obtain the radio frequency band of the registered channel;

在所述射频频段与所述第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将所述第一MCLK频率切换为第二MCLK频率,所述第二MCLK频率对应的第二预设干扰频点集与所述射频频段之间不存在交集;When there is an intersection between the radio frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency, the first MCLK frequency is switched to a second MCLK frequency corresponding to the second MCLK frequency There is no intersection between the second preset interference frequency point set and the radio frequency band;

在所述射频频段与所述第一预设干扰频点集之间不存在交集时,保持所述第一MCLK频率。When there is no intersection between the radio frequency band and the first preset interference frequency point set, the first MCLK frequency is maintained.

AP980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,AP980可包括一个或多个处理单元,该处理单元可为人工智能芯片、量子芯片;优选的,AP980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到AP980中。AP980 is the control center of the mobile phone, and uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in Various functions and processing data for overall monitoring of the mobile phone. Optionally, the AP980 may include one or more processing units, which may be artificial intelligence chips or quantum chips; preferably, the AP980 may integrate an application processor and a modulation and demodulation processor, wherein the application processor mainly processes operations. System, user interface and application programs, etc., the modem processor mainly handles wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the AP980.

此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Additionally, memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。RF circuitry 910 may be used for the reception and transmission of information. Typically, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 910 may communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS) and the like.

手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境传感器及接近传感器,其中,环境传感器可根据环境光线的明暗来调节触控显示屏的亮度,接近传感器可在手机移动到耳边时,关闭触控显示屏和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor can include an environmental sensor and a proximity sensor, wherein the environmental sensor can adjust the brightness of the touch display screen according to the brightness of the ambient light, and the proximity sensor can turn off the touch display screen and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.

音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放AP980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. The audio circuit 960 can convert the received audio data into an electrical signal, and transmit it to the speaker 961, and the speaker 961 converts it into a sound signal for playback; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 960 After receiving, it is converted into audio data, and then the audio data is played by the AP 980 for processing, and sent to, for example, another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970. It provides users with wireless broadband Internet access. Although FIG. 5 shows the WiFi module 970, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.

手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与AP980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the AP 980 through the power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.

尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.

前述图1或图2所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiment shown in FIG. 1 or FIG. 2 , the method flow of each step can be implemented based on the structure of the mobile phone.

前述图3、图4A、图4B、图4C或图4D所示的实施例中,各单元功能可以基于该手机的结构实现。In the aforementioned embodiments shown in FIG. 3 , FIG. 4A , FIG. 4B , FIG. 4C or FIG. 4D , the functions of each unit can be implemented based on the structure of the mobile phone.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种电子设备的抗干扰方法的部分或全部步骤。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables the computer to perform the anti-interference of any electronic device as described in the above method embodiments some or all of the steps of the method.

本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种电子设备的抗干扰方法的部分或全部步骤。Embodiments of the present application further provide a computer program product, the computer program product comprising a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to execute the methods described in the foregoing method embodiments Part or all of the steps of an anti-jamming method for any electronic device.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, and can also be implemented in the form of software program modules.

所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software program module and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , ROM, RAM, disk or CD, etc.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.

Claims (8)

1.一种电子设备的抗干扰方法,其特征在于,包括:1. an anti-interference method of electronic equipment, is characterized in that, comprises: 获取环境光参数;Get ambient light parameters; 确定与所述环境光参数对应的拍摄参数;determining the shooting parameters corresponding to the ambient light parameters; 确定与所述拍摄参数对应的多个拍照模式;determining a plurality of photographing modes corresponding to the photographing parameters; 从所述多个拍照模式中选取一个拍照模式作为目标拍照模式;Selecting a photographing mode from the plurality of photographing modes as the target photographing mode; 按照预设的拍照模式与MCLK频率之间的映射关系确定与所述目标拍照模式对应的第一MCLK频率;其中,不同的拍照模式对应不同的MCLK频率;Determine the first MCLK frequency corresponding to the target photographing mode according to the mapping relationship between the preset photographing mode and the MCLK frequency; wherein, different photographing modes correspond to different MCLK frequencies; 在电子设备的摄像头以所述第一MCLK频率工作时,获取注册信道的射频频段;When the camera of the electronic device operates at the first MCLK frequency, obtain the radio frequency band of the registered channel; 在所述射频频段与所述第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将所述第一MCLK频率切换为第二MCLK频率,所述第二MCLK频率对应的第二预设干扰频点集与所述射频频段之间不存在交集;When there is an intersection between the radio frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency, the first MCLK frequency is switched to a second MCLK frequency corresponding to the second MCLK frequency There is no intersection between the second preset interference frequency point set and the radio frequency band; 在所述射频频段与所述第一预设干扰频点集之间不存在交集时,保持所述第一MCLK频率。When there is no intersection between the radio frequency band and the first preset interference frequency point set, the first MCLK frequency is maintained. 2.根据权利要求1所述的方法,其特征在于,所述获取注册信道的射频频段,包括:2. The method according to claim 1, wherein the acquiring the radio frequency band of the registration channel comprises: 在所述电子设备启动指定功能时,获取与所述指定功能对应的注册信道的射频频率,所述指定功能为以下一种:GSM、WIFI、GPS和LTE。When the electronic device starts a specified function, the radio frequency of the registration channel corresponding to the specified function is acquired, and the specified function is one of the following: GSM, WIFI, GPS and LTE. 3.根据权利要求1至2任一项所述的方法,其特征在于,所述电子设备中预先存储N个MCLK频率,所述N为大于1的正整数;3. The method according to any one of claims 1 to 2, wherein N MCLK frequencies are pre-stored in the electronic device, and N is a positive integer greater than 1; 所述将所述第一MCLK频率切换为第二MCLK频率,包括:The switching the first MCLK frequency to the second MCLK frequency includes: 确定干扰射频信道,所述射频频段包括所述干扰射频信道;determining an interfering radio frequency channel, the radio frequency band including the interfering radio frequency channel; 根据所述干扰射频信道从所述N个MCLK频率中筛选中干扰度小于预设干扰阈值的MCLK频率,得到M个MCLK频率,所述M为小于或等于所述N的正整数;According to the interference radio frequency channel, the MCLK frequencies whose interference degree is less than the preset interference threshold are selected from the N MCLK frequencies to obtain M MCLK frequencies, where M is a positive integer less than or equal to the N; 将所述M个MCLK频率中的一个MCLK频率作为所述第二MCLK频率,并将所述第一MCLK频率切换为所述第二MCLK频率。One MCLK frequency among the M MCLK frequencies is used as the second MCLK frequency, and the first MCLK frequency is switched to the second MCLK frequency. 4.根据权利要求1至2任一项所述的方法,其特征在于,所述方法还包括:4. The method according to any one of claims 1 to 2, wherein the method further comprises: 获取所述第一MCLK频率对应的第一工作功率;obtaining the first working power corresponding to the first MCLK frequency; 获取所述射频频段对应的第二工作功率;obtaining the second working power corresponding to the radio frequency band; 在所述第一工作功率大于第一预设阈值且所述第二工作功率大于第二预设阈值时,执行所述将所述第一MCLK频率切换为第二MCLK频率的步骤。When the first operating power is greater than a first preset threshold and the second operating power is greater than a second preset threshold, the step of switching the first MCLK frequency to the second MCLK frequency is performed. 5.一种抗干扰装置,其特征在于,包括:5. An anti-interference device, characterized in that, comprising: 确定单元,用于获取环境光参数,确定与所述环境光参数对应的拍摄参数,确定与所述拍摄参数对应的多个拍照模式,从所述多个拍照模式中选取一个拍照模式作为目标拍照模式;a determining unit, configured to acquire ambient light parameters, determine shooting parameters corresponding to the ambient light parameters, determine multiple shooting modes corresponding to the shooting parameters, and select one shooting mode from the multiple shooting modes as a target shooting mode model; 所述确定单元,还用于按照预设的拍照模式与MCLK频率之间的映射关系确定与所述目标拍照模式对应的第一MCLK频率,不同的拍照模式对应不同的MCLK频率;The determining unit is further configured to determine the first MCLK frequency corresponding to the target photographing mode according to the preset mapping relationship between the photographing mode and the MCLK frequency, and different photographing modes correspond to different MCLK frequencies; 第一获取单元,用于在电子设备的摄像头以第一MCLK频率工作时,获取注册信道的射频频段;a first acquisition unit, configured to acquire the radio frequency band of the registered channel when the camera of the electronic device operates at the first MCLK frequency; 切换单元,用于在所述射频频段与所述第一MCLK频率对应的第一预设干扰频点集之间存在交集时,将所述第一MCLK频率切换为第二MCLK频率,所述第二MCLK频率对应的第二预设干扰频点集与所述射频频段之间不存在交集;A switching unit, configured to switch the first MCLK frequency to the second MCLK frequency when there is an intersection between the radio frequency band and the first preset interference frequency point set corresponding to the first MCLK frequency, the first MCLK frequency There is no intersection between the second preset interference frequency point set corresponding to the two MCLK frequencies and the radio frequency band; 保持单元,用于在所述射频频段与所述第一预设干扰频点集之间不存在交集时,保持所述第一MCLK频率。A holding unit, configured to maintain the first MCLK frequency when there is no intersection between the radio frequency band and the first preset interference frequency point set. 6.根据权利要求5所述的抗干扰装置,其特征在于,所述第一获取单元具体用于:6. The anti-interference device according to claim 5, wherein the first acquisition unit is specifically used for: 在所述电子设备启动指定功能时,获取与所述指定功能对应的注册信道的射频频率,所述指定功能为以下一种:GSM、WIFI、GPS和LTE。When the electronic device starts a specified function, the radio frequency of the registration channel corresponding to the specified function is acquired, and the specified function is one of the following: GSM, WIFI, GPS and LTE. 7.一种电子设备,其特征在于,包括:应用处理器AP和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述AP执行,所述程序包括用于如权利要求1-4任一项方法的指令。7. An electronic device, comprising: an application processor AP and a memory; and one or more programs, the one or more programs being stored in the memory and configured to be executed by the AP Executing, the program includes instructions for a method as claimed in any one of claims 1-4. 8.一种计算机可读存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-4任一项所述的方法。8. A computer-readable storage medium, characterized in that it is used for storing a computer program, wherein the computer program causes a computer to perform the method according to any one of claims 1-4.
CN201711346931.7A 2017-12-15 2017-12-15 Anti-interference method for electronic equipment and related products Expired - Fee Related CN108093134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711346931.7A CN108093134B (en) 2017-12-15 2017-12-15 Anti-interference method for electronic equipment and related products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711346931.7A CN108093134B (en) 2017-12-15 2017-12-15 Anti-interference method for electronic equipment and related products

Publications (2)

Publication Number Publication Date
CN108093134A CN108093134A (en) 2018-05-29
CN108093134B true CN108093134B (en) 2020-09-22

Family

ID=62176591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711346931.7A Expired - Fee Related CN108093134B (en) 2017-12-15 2017-12-15 Anti-interference method for electronic equipment and related products

Country Status (1)

Country Link
CN (1) CN108093134B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632932B (en) * 2018-06-21 2019-11-15 维沃移动通信有限公司 Cell switching method and device
CN108924355A (en) * 2018-06-29 2018-11-30 努比亚技术有限公司 Signal frequency method of adjustment, mobile terminal and computer readable storage medium
CN109358829B (en) * 2018-09-11 2022-03-15 深圳市万普拉斯科技有限公司 Display control method, device, electronic device, and storage medium for electronic equipment
CN111601325B (en) * 2018-10-23 2023-03-31 Oppo广东移动通信有限公司 Electromagnetic interference control method and related device
CN109274437B (en) * 2018-11-29 2021-11-16 努比亚技术有限公司 Camera anti-interference method and device and computer readable storage medium
CN112187376B (en) * 2018-12-04 2022-05-31 Oppo广东移动通信有限公司 Electromagnetic interference control method and related device
CN110312274A (en) * 2019-07-30 2019-10-08 维沃移动通信有限公司 Method and electronic device for establishing a wireless access point
WO2022165724A1 (en) * 2021-02-04 2022-08-11 深圳市大疆创新科技有限公司 Communication method for movable platform, movable platform, and storage medium
CN113067595B (en) * 2021-03-11 2023-02-17 维沃移动通信有限公司 Electronic equipment
CN115225166A (en) * 2021-04-20 2022-10-21 海能达通信股份有限公司 Anti-interference method, terminal and storage medium
CN114285995B (en) * 2021-12-22 2024-02-23 展讯通信(深圳)有限公司 Method and device for reducing signal interference, computer readable storage medium and terminal
CN114422705B (en) * 2022-02-10 2024-04-23 维沃移动通信有限公司 Electronic equipment and control method and device thereof
CN114915357B (en) * 2022-04-20 2023-06-23 深圳市通创通信有限公司 Method for detecting interference frequency points and electronic equipment
CN116669153B (en) * 2022-12-09 2023-10-20 荣耀终端有限公司 Transmission power backoff method, terminal device, and computer-readable storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9064196B1 (en) * 2008-03-13 2015-06-23 Impinj, Inc. RFID tag dynamically adjusting clock frequency
CN103379643A (en) * 2012-04-11 2013-10-30 中兴通讯股份有限公司 Method and device for eliminating interference
CN103684489A (en) * 2013-12-09 2014-03-26 联想(北京)有限公司 Method for reducing interference and electronic device
WO2016115745A1 (en) * 2015-01-24 2016-07-28 深圳市鑫龙上通讯科技有限公司 Anti-interference mobile phone camera and mobile phone
CN105357033B (en) * 2015-10-16 2019-04-05 华为技术有限公司 A kind of method and apparatus for reducing mobile industry processor interface and communication quality being interfered
CN106936515A (en) * 2017-05-09 2017-07-07 广东欧珀移动通信有限公司 Radio frequency interference processing method, storage medium and terminal
CN107147453A (en) * 2017-05-31 2017-09-08 广东欧珀移动通信有限公司 Method, device, storage medium and terminal for processing radio frequency interference
CN107277917A (en) * 2017-05-31 2017-10-20 广东欧珀移动通信有限公司 Communication frequency selection method, device, storage medium and mobile terminal

Also Published As

Publication number Publication date
CN108093134A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN108093134B (en) Anti-interference method for electronic equipment and related products
CN108063646A (en) Anti-interference method for electronic equipment and related products
CN107197146B (en) Image processing method and apparatus, mobile terminal, and computer-readable storage medium
CN107205116B (en) Image selection method, mobile terminal, image selection device, and computer-readable storage medium
CN108093135B (en) Anti-interference method of electronic equipment and related product
CN114895991B (en) Content sharing method and electronic device
CN107332981A (en) Image processing method and related product
CN107480489B (en) unlocking control method and related product
CN107947894A (en) Anti-interference method of electronic equipment and related product
CN107633235B (en) Unlocking control method and related product
CN110247692B (en) Path switching method, path switching device, electronic device and readable storage medium
CN110311704A (en) Antenna switching method and related products
CN108124056A (en) Anti-interference method of electronic equipment and related product
WO2020077508A1 (en) Dynamic frequency adjustment method for internal memory, and electronic apparatus
CN107633499A (en) Image processing method and related product
CN112042239A (en) Offset Indication Determination Method and Apparatus, Offset Determination Method and Apparatus
CN110428782A (en) Brightness adjusting method and Related product
CN107864299B (en) Image display method and related products
CN117335830B (en) Wireless communication circuit, bluetooth communication switching method and electronic device
CN110212965B (en) Antenna switching method and related product
CN107566654B (en) Unlocking control method and related product
CN115514876A (en) Image fusion method, electronic device, storage medium, and computer program product
CN113472980A (en) Image processing method, device, equipment, medium and chip
CN112135321B (en) Channel switching method and related product
CN110266359A (en) Antenna switching method and related products

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18 Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200922

CF01 Termination of patent right due to non-payment of annual fee
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载