CN112367701B - Mobile terminal control method, device, storage medium and mobile terminal - Google Patents
Mobile terminal control method, device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN112367701B CN112367701B CN202011138216.6A CN202011138216A CN112367701B CN 112367701 B CN112367701 B CN 112367701B CN 202011138216 A CN202011138216 A CN 202011138216A CN 112367701 B CN112367701 B CN 112367701B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- unit
- wifi
- nfc
- detected
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/04—Transmission power control [TPC]
- H04W52/18—TPC being performed according to specific parameters
- H04W52/24—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
- H04W52/243—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account interferences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details 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/38—Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
- H04B1/40—Circuits
- H04B1/50—Circuits using different frequencies for the two directions of communication
- H04B1/52—Hybrid arrangements, i.e. arrangements for transition from single-path two-direction transmission to single-direction transmission on each of two paths or vice versa
- H04B1/525—Hybrid arrangements, i.e. arrangements for transition from single-path two-direction transmission to single-direction transmission on each of two paths or vice versa with means for reducing leakage of transmitter signal into the receiver
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
本申请实施例提供一种移动终端控制方法、装置、存储介质及移动终端,该方法包括:当检测到移动终端开机时,检测移动终端的后盖是否装入;若检测到移动终端的后盖已装入,则同时检测移动终端的后盖上是否安装有NFC单元和WIFI单元;若检测到移动终端的后盖上安装有NFC单元和WIFI单元,则当检测到移动终端正在使用NFC单元时,控制移动终端降低WIFI单元的功率。本申请实施例通过在移动终端的后盖上设置NFC单元位置和WIFI单元位置,当检测到移动终端的后盖上安装有NFC单元和WIFI单元,并且移动终端正在使用NFC单元时,控制移动终端降低WIFI单元的功率,从而可以在移动终端后盖安装有NFC单元和WIFI单元时,减小WIFI单元的信号对NFC单元的信号产生的干扰,提高NFC的数据传输性能。
The embodiments of the present application provide a mobile terminal control method, device, storage medium and mobile terminal. The method includes: when it is detected that the mobile terminal is turned on, detecting whether the back cover of the mobile terminal is installed; if it is detected that the back cover of the mobile terminal is installed installed, then simultaneously detect whether the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal; if it is detected that the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal, when it is detected that the mobile terminal is using the NFC unit , control the mobile terminal to reduce the power of the WIFI unit. In this embodiment of the present application, by setting the position of the NFC unit and the position of the WIFI unit on the back cover of the mobile terminal, when it is detected that the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal and the mobile terminal is using the NFC unit, the mobile terminal is controlled The power of the WIFI unit is reduced, so that when the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal, the interference of the signal of the WIFI unit to the signal of the NFC unit can be reduced, and the data transmission performance of the NFC can be improved.
Description
技术领域technical field
本申请涉及通信技术领域,特别涉及一种移动终端控制方法、装置、存储介质及移动终端。The present application relates to the field of communication technology, and in particular to a mobile terminal control method, device, storage medium and mobile terminal.
背景技术Background technique
随着移动终端技术的发展及智能手机、平板等设备的普及,移动终端已经不仅仅是传统的用于打电话、发短信的设备。为了方便用户快速进行数据通信、移动支付等,移动终端使用NFC(Near Field Communication,近场通信技术,又称近距离无线通信)。NFC是一种短距离的高频无线通信技术,它允许电子设备之间进行非连接式点对点数据传输(在十厘米内)交换数据,这个技术由免连接式射频识别(Radio Frequency Identification,RFID)演变而来,并向下兼容RFID。与RFID一样,NFC信息也是通过频谱中无线频率部分的电磁感应耦合方式传递。NFC数据传输模式和红外线的传输模式相似,可用于数据交换,其传输创建速度较快,传输速度也较快,并且功耗低,只是传输距离较短。NFC技术与蓝牙技术非常相像,都是短程通信技术,而且都被集成到移动电话,只是NFC不需要复杂的设置程序,因此,NFC也可以称为简化版的蓝牙,但其速度不如蓝牙,NFC最大数据传输量424kbit/s也远小于Bluetooth V2.1(2.1Mbit/s)。目前移动终端体积小,厚度薄,其往往在移动终端的后盖上布置NFC单元,而后盖上也是WIFI单元的选择之地,但由于二者频率相差大,WIFI单元的信号会对NFC单元的信号产生电磁干扰,从而导致NFC的数据传输性能受到影响。With the development of mobile terminal technology and the popularization of devices such as smart phones and tablets, mobile terminals are no longer just traditional devices for making calls and sending text messages. In order to facilitate users to quickly perform data communication, mobile payment, etc., mobile terminals use NFC (Near Field Communication, near field communication technology, also known as short-range wireless communication). NFC is a short-range high-frequency wireless communication technology that allows non-connected point-to-point data transmission (within ten centimeters) to exchange data between electronic devices. This technology consists of a connection-free radio frequency identification (Radio Frequency Identification, RFID) Evolved and backward compatible with RFID. Like RFID, NFC information is also transmitted through electromagnetic induction coupling in the radio frequency part of the spectrum. The NFC data transmission mode is similar to the infrared transmission mode and can be used for data exchange. Its transmission creation speed is fast, the transmission speed is also fast, and the power consumption is low, but the transmission distance is short. NFC technology is very similar to Bluetooth technology, both are short-range communication technologies, and they are all integrated into mobile phones, but NFC does not require complicated setup procedures. Therefore, NFC can also be called a simplified version of Bluetooth, but its speed is not as good as Bluetooth. NFC The maximum data transfer volume of 424kbit/s is also much smaller than Bluetooth V2.1 (2.1Mbit/s). At present, the mobile terminal is small in size and thin in thickness. It often arranges the NFC unit on the back cover of the mobile terminal, and the WIFI unit is also selected on the back cover. However, due to the large frequency difference between the two, the signal of the WIFI unit will interfere with the NFC unit. The signal generates electromagnetic interference, which affects the data transmission performance of NFC.
因此,现有技术中存在缺陷,有待改进与发展。Therefore, there are defects in the prior art, which need to be improved and developed.
发明内容Contents of the invention
本申请实施例提供一种移动终端控制方法、装置、存储介质及移动终端,可以在移动终端的后盖上同时安装有NFC单元和WIFI单元时,减小WIFI单元的信号对NFC单元的信号产生的电磁干扰,提高NFC的数据传输性能。The embodiment of the present application provides a mobile terminal control method, device, storage medium and mobile terminal, which can reduce the generation of the signal of the WIFI unit to the signal of the NFC unit when the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal at the same time. Electromagnetic interference, improve the data transmission performance of NFC.
本申请实施例提供一种移动终端控制方法,所述方法包括:An embodiment of the present application provides a method for controlling a mobile terminal, the method including:
当检测到移动终端开机时,检测所述移动终端的后盖是否装入;When it is detected that the mobile terminal is powered on, it is detected whether the back cover of the mobile terminal is installed;
若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元;If it is detected that the back cover of the mobile terminal has been loaded, then simultaneously detect whether an NFC unit and a WIFI unit are installed on the back cover of the mobile terminal;
若检测到所述移动终端的后盖上安装有所述NFC单元和所述WIFI单元,则当检测到所述移动终端正在使用NFC单元时,控制所述移动终端降低所述WIFI单元的功率。If it is detected that the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal, when it is detected that the mobile terminal is using the NFC unit, control the mobile terminal to reduce the power of the WIFI unit.
在本申请实施例所述的移动终端控制方法中,所述检测所述移动终端的后盖是否装入之前,还包括:In the mobile terminal control method described in the embodiment of the present application, before the detection of whether the back cover of the mobile terminal is installed, it also includes:
将所述移动终端的第一通用输入输出口的信号检测模式设置为双边沿中断检测模式,其中所述第一通用输入输出口的一端与所述NFC单元和所述WIFI单元的通用输入输出口相连接,另一端与中央处理器相连接。The signal detection mode of the first general input and output port of the mobile terminal is set to double edge interrupt detection mode, wherein one end of the first general input and output port is connected to the general input and output port of the NFC unit and the WIFI unit connected, and the other end is connected to the central processing unit.
在本申请实施例所述的移动终端控制方法中,所述当检测到移动终端开机时,检测所述移动终端的后盖是否装入,包括:In the mobile terminal control method described in the embodiment of the present application, when it is detected that the mobile terminal is turned on, detecting whether the back cover of the mobile terminal is installed includes:
当检测到移动终端开机时,检测所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化,若检测到所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化为高电平到低电平,则判定所述移动终端的后盖已装入。When it is detected that the mobile terminal is turned on, the level change of the working general input and output port of the NFC unit and the WIFI unit is detected, if the level of the working general input and output port of the NFC unit and the WIFI unit is detected Change from high level to low level, then it is determined that the back cover of the mobile terminal has been installed.
在本申请实施例所述的移动终端控制方法中,所述检测所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化,若检测到所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化为高电平到低电平,则判定所述移动终端的后盖已装入,包括:In the mobile terminal control method described in the embodiment of the present application, the detection of the level change of the working universal input and output ports of the NFC unit and the WIFI unit, if the level change of the NFC unit and the WIFI unit is detected If the level of the working general-purpose input and output port changes from high level to low level, it is determined that the back cover of the mobile terminal has been loaded, including:
检测所述第一通用输入输出口的信号,当检测到所述第一通用输入输出口的信号产生下降沿中断时,则判定所述移动终端的后盖已装入。Detecting the signal of the first general-purpose input and output port, and when it is detected that the signal of the first general-purpose input and output port generates a falling edge interrupt, it is determined that the rear cover of the mobile terminal has been installed.
在本申请实施例所述的移动终端控制方法中,所述若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元之前,还包括:In the mobile terminal control method described in the embodiment of the present application, if it is detected that the back cover of the mobile terminal has been installed, then at the same time, it is detected whether the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal. ,Also includes:
设置所述NFC单元的状态变量和所述WIFI单元的状态变量,其中,所述NFC单元的状态变量用来记录NFC单元是否安装在所述移动终端的后盖上的状态,所述WIFI单元的状态变量用来记录WIFI单元是否安装在所述移动终端的后盖上的状态。Set the state variable of the NFC unit and the state variable of the WIFI unit, wherein the state variable of the NFC unit is used to record the state of whether the NFC unit is installed on the back cover of the mobile terminal, the state of the WIFI unit The state variable is used to record the state of whether the WIFI unit is installed on the back cover of the mobile terminal.
在本申请实施例所述的移动终端控制方法中,所述若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元之后,还包括:In the mobile terminal control method described in the embodiment of the present application, if it is detected that the back cover of the mobile terminal has been installed, then simultaneously detect whether the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal ,Also includes:
根据检测所述移动终端的后盖上是否安装有所述NFC单元的检测结果更新所述NFC单元的状态变量;以及Updating the state variable of the NFC unit according to the detection result of detecting whether the NFC unit is installed on the back cover of the mobile terminal; and
根据检测所述移动终端的后盖上是否安装有所述WIFI单元的检测结果更新所述WIFI单元的状态变量。Updating the state variable of the WIFI unit according to the detection result of whether the WIFI unit is installed on the back cover of the mobile terminal.
在本申请实施例所述的移动终端控制方法中,所述若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元,包括:In the mobile terminal control method described in the embodiment of the present application, if it is detected that the back cover of the mobile terminal has been installed, it is simultaneously detected whether an NFC unit and a WIFI unit are installed on the back cover of the mobile terminal, include:
向所述NFC单元发出第一通信指令,若在第一预定时间内有反馈,则判定所述移动终端的后盖上已安装所述NFC单元,向所述WIFI单元发出第二通信指令,若在第二预定时间内有反馈,则判定所述移动终端的后盖上已安装所述WIFI单元。Send a first communication command to the NFC unit, if there is feedback within the first predetermined time, then determine that the NFC unit has been installed on the back cover of the mobile terminal, and send a second communication command to the WIFI unit, if If there is a feedback within the second predetermined time, it is determined that the WIFI unit has been installed on the back cover of the mobile terminal.
本申请实施例还提供一种移动终端控制装置,所述装置包括:The embodiment of the present application also provides a device for controlling a mobile terminal, the device comprising:
第一检测模块,用于当检测到移动终端开机时,检测所述移动终端的后盖是否装入;The first detection module is used to detect whether the back cover of the mobile terminal is installed when it is detected that the mobile terminal is turned on;
第二检测模块,用于若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元;The second detection module is used to detect whether an NFC unit and a WIFI unit are installed on the back cover of the mobile terminal if it is detected that the back cover of the mobile terminal has been loaded;
控制模块,用于若检测到所述移动终端的后盖上安装有所述NFC单元和所述WIFI单元,则当检测到所述移动终端正在使用NFC单元时,控制所述移动终端降低所述WIFI单元的功率。a control module, configured to control the mobile terminal to lower the The power of the WIFI unit.
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行任一实施例所述的移动终端控制方法。An embodiment of the present application also provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is run on a computer, the computer is made to execute the mobile terminal control method described in any embodiment.
本申请实施例还提供一种移动终端,所述移动终端包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行任一实施例所述的移动终端控制方法。The embodiment of the present application also provides a mobile terminal, the mobile terminal includes a processor and a memory, the memory stores a computer program, and the processor invokes the computer program stored in the memory to execute The mobile terminal control method described in any one of the embodiments.
本申请实施例通过当检测到移动终端开机时,检测所述移动终端的后盖是否装入;若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元;若检测到所述移动终端的后盖上安装有所述NFC单元和所述WIFI单元,则当检测到所述移动终端正在使用NFC单元时,控制所述移动终端降低所述WIFI单元的功率。本申请实施例通过在移动终端的后盖上设置NFC单元位置和WIFI单元位置,当检测到移动终端开机并且移动终端的后盖已装入时,若检测到移动终端的后盖上同时安装有NFC单元和WIFI单元,并且移动终端正在使用NFC单元,则控制移动终端降低WIFI单元的功率,从而可以在移动终端后盖同时安装有NFC单元和WIFI单元的情况下,减小WIFI单元的信号对NFC单元的信号产生的电磁干扰,提高NFC的数据传输性能。In this embodiment of the application, when it is detected that the mobile terminal is turned on, it is detected whether the back cover of the mobile terminal is installed; if it is detected that the back cover of the mobile terminal has been installed, it is detected Whether an NFC unit and a WIFI unit are installed; if it is detected that the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal, when it is detected that the mobile terminal is using the NFC unit, control the mobile The terminal reduces the power of the WIFI unit. In this embodiment of the application, by setting the position of the NFC unit and the position of the WIFI unit on the back cover of the mobile terminal, when it is detected that the mobile terminal is turned on and the back cover of the mobile terminal has been installed, if it is detected that the NFC unit and WIFI unit, and the mobile terminal is using the NFC unit, then control the mobile terminal to reduce the power of the WIFI unit, so that the signal pair of the WIFI unit can be reduced when the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal. The electromagnetic interference generated by the signal of the NFC unit improves the data transmission performance of the NFC.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative efforts.
图1为本申请实施例提供的移动终端控制方法的流程示意图。FIG. 1 is a schematic flowchart of a method for controlling a mobile terminal provided by an embodiment of the present application.
图2为本申请实施例提供的移动终端控制方法的一种后盖示意图。FIG. 2 is a schematic diagram of a rear cover of a method for controlling a mobile terminal provided by an embodiment of the present application.
图3为本申请实施例提供的移动终端控制装置的结构示意图。FIG. 3 is a schematic structural diagram of an apparatus for controlling a mobile terminal provided by an embodiment of the present application.
图4为本申请实施例提供的移动终端控制装置的另一种结构示意图。FIG. 4 is another schematic structural diagram of a mobile terminal control device provided by an embodiment of the present application.
图5为本申请实施例提供的移动终端的结构示意图。FIG. 5 is a schematic structural diagram of a mobile terminal provided by 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 in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of this application.
本申请实施例提供一种移动终端控制方法,所述移动终端控制方法可以应用于移动终端中。所述移动终端可以是智能手机、平板电脑等设备。An embodiment of the present application provides a method for controlling a mobile terminal, and the method for controlling a mobile terminal may be applied to a mobile terminal. The mobile terminal may be a smart phone, a tablet computer or other devices.
请参阅图1,图1为本申请实施例提供的移动终端控制方法的流程示意图。所述移动终端控制方法,应用于移动终端中,所述方法可以包括以下步骤:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a method for controlling a mobile terminal provided by an embodiment of the present application. The mobile terminal control method is applied to a mobile terminal, and the method may include the following steps:
步骤101,当检测到移动终端开机时,检测所述移动终端的后盖是否装入。
其中,需要说明的是,检测移动终端的后盖是否装入是在移动终端开机的时候,往后移动终端在使用过程中不再检测。Wherein, it should be noted that the detection of whether the back cover of the mobile terminal is installed is when the mobile terminal is turned on, and the mobile terminal will not be detected in the process of use in the future.
在一些实施例中,所述检测所述移动终端的后盖是否装入之前,还包括:In some embodiments, before the detection of whether the back cover of the mobile terminal is installed, it also includes:
将所述移动终端的第一通用输入输出口的信号检测模式设置为双边沿中断检测模式,其中所述第一通用输入输出口的一端与所述NFC单元和所述WIFI单元的通用输入输出口相连接,另一端与中央处理器相连接。The signal detection mode of the first general input and output port of the mobile terminal is set to double edge interrupt detection mode, wherein one end of the first general input and output port is connected to the general input and output port of the NFC unit and the WIFI unit connected, and the other end is connected to the central processing unit.
其中,双边沿中断检测模式中,两个边沿分别对应不同的中断处理流程,当第一通用输入输出口的信号产生上升沿中断时,说明移动终端的后盖没有安装,此时NFC单元的状态变量记录为NFC单元没有安装在移动终端的后盖上,标记为0,同时WIFI单元的状态变量记录为WIFI单元没有安装在移动终端的后盖上,标记为0;当第一通用输入输出口的信号产生下降沿中断时,说明后盖装上,此时同时检测移动终端的后盖上是否安装有NFC单元和WIFI单元。Among them, in the double-edge interrupt detection mode, the two edges correspond to different interrupt processing procedures. When the signal of the first general input and output port generates a rising edge interrupt, it means that the back cover of the mobile terminal is not installed. At this time, the state of the NFC unit is The variable record is that the NFC unit is not installed on the back cover of the mobile terminal, and is marked as 0, and the state variable of the WIFI unit is recorded as that the WIFI unit is not installed on the back cover of the mobile terminal, and is marked as 0; when the first general input and output port When the signal of the signal generates a falling edge interrupt, it means that the back cover is installed. At this time, it is detected whether the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal.
在一些实施例中,所述当检测到移动终端开机时,检测所述移动终端的后盖是否装入,包括:In some embodiments, when it is detected that the mobile terminal is turned on, detecting whether the back cover of the mobile terminal is installed includes:
当检测到移动终端开机时,检测所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化,若检测到所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化为高电平到低电平,则判定所述移动终端的后盖已装入。When it is detected that the mobile terminal is turned on, the level change of the working general input and output port of the NFC unit and the WIFI unit is detected, if the level of the working general input and output port of the NFC unit and the WIFI unit is detected Change from high level to low level, then it is determined that the back cover of the mobile terminal has been installed.
如图2所示,NFC单元和WIFI单元只需要一个检测电路,即NFC单元和WIFI单元直接放在一块检测,而不需要分开检测,分开检测即NFC单元自己配一个检测电路,WIFI单元自己配一个检测电路,然后各自检测。通过将NFC单元和WIFI单元直接放在一块检测,只需要一个检测电路,从而降低成本,为移动终端制造商带来经济效益。其中,用户只需把NFC单元或WIFI单元放入后盖中的对应位置,然后把后盖装入,当后盖未装入时E与F未连接,此时NFC单元/WIFI单元的工作通用输入输出口(图中的Nfc/WIFIGPIO)为高电平;而当后盖装入后E与F连接,此时NFC单元/WIFI单元的工作通用输入输出口为低电平,其中,E和F为第一通用输入输出口与NFC单元/WIFI单元的工作通用输入输出口接触的触点;因此,可以通过检测NFC单元/WIFI单元的工作通用输入输出口的电平变化来判断移动终端的后盖是否装入,当NFC单元和WIFI单元的工作通用输入输出口的电平变化为高电平到低电平,则判定移动终端的后盖已装入。As shown in Figure 2, the NFC unit and the WIFI unit only need one detection circuit, that is, the NFC unit and the WIFI unit are directly put together for detection, and do not need to be detected separately. Separate detection means that the NFC unit itself is equipped with a detection circuit, and the WIFI unit is configured by itself. A detection circuit, and then each detection. By directly putting the NFC unit and the WIFI unit together for detection, only one detection circuit is required, thereby reducing costs and bringing economic benefits to mobile terminal manufacturers. Among them, the user only needs to put the NFC unit or WIFI unit into the corresponding position in the back cover, and then install the back cover. When the back cover is not installed, E and F are not connected. At this time, the work of the NFC unit/WIFI unit is common. The input and output port (Nfc/WIFIGPIO in the figure) is high level; and when the back cover is installed, E is connected to F, and the working general input and output port of the NFC unit/WIFI unit is low level, wherein, E and F is the contact point where the first general input and output port is in contact with the working general input and output port of the NFC unit/WIFI unit; therefore, the mobile terminal can be judged by detecting the level change of the working general input and output port of the NFC unit/WIFI unit Whether the back cover is installed, when the level of the working universal input and output ports of the NFC unit and the WIFI unit changes from high level to low level, it is determined that the back cover of the mobile terminal has been installed.
基于图2中所示的后盖,可能存在以下四种情况:1、后盖中放有NFC单元,但未放有WIFI单元;2、后盖中放有WIFI单元,但未放有NFC单元;3、后盖中既放有NFC单元,又放有WIFI单元;4、后盖中既未放有NFC单元,又未放有WIFI单元;因此,当检测到移动终端的后盖已装入时需要进一步检测NFC单元和WIFI单元是否安装在移动终端的后盖上。Based on the back cover shown in Figure 2, there may be the following four situations: 1. There is an NFC unit in the back cover, but no WIFI unit; 2. There is a WIFI unit in the back cover, but there is no NFC unit ; 3. Both the NFC unit and the WIFI unit are placed in the back cover; 4. Neither the NFC unit nor the WIFI unit is placed in the back cover; therefore, when it is detected that the back cover of the mobile terminal has been installed It is necessary to further detect whether the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal.
在一些实施例中,所述检测所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化,若检测到所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化为高电平到低电平,则判定所述移动终端的后盖已装入,包括:In some embodiments, the detection of the level change of the working universal input and output port of the NFC unit and the WIFI unit, if the level of the working universal input and output port of the NFC unit and the WIFI unit is detected Change from high level to low level, then it is determined that the back cover of the mobile terminal has been installed, including:
检测所述第一通用输入输出口的信号,当检测到所述第一通用输入输出口的信号产生下降沿中断时,则判定所述移动终端的后盖已装入。Detecting the signal of the first general-purpose input and output port, and when it is detected that the signal of the first general-purpose input and output port generates a falling edge interrupt, it is determined that the rear cover of the mobile terminal has been installed.
其中,因为第一通用输入输出口与NFC单元和WIFI单元的通用输入输出口相连接,因此可以通过检测第一通用输入输出口的信号变化来检测移动终端的后盖是否装入,即当检测到第一通用输入输出口的信号产生下降沿中断时,则判定移动终端的后盖已装入。Wherein, because the first universal input and output port is connected with the universal input and output ports of the NFC unit and the WIFI unit, it is possible to detect whether the back cover of the mobile terminal is installed by detecting the signal change of the first universal input and output port, that is, when the detection When the signal to the first general input and output port generates a falling edge interrupt, it is determined that the rear cover of the mobile terminal has been installed.
步骤102,若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元。
在一些实施例中,所述若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元之前,还包括:In some embodiments, if it is detected that the back cover of the mobile terminal has been installed, before simultaneously detecting whether the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal, it also includes:
设置所述NFC单元的状态变量和所述WIFI单元的状态变量,其中,所述NFC单元的状态变量用来记录NFC单元是否安装在所述移动终端的后盖上的状态,所述WIFI单元的状态变量用来记录WIFI单元是否安装在所述移动终端的后盖上的状态。Set the state variable of the NFC unit and the state variable of the WIFI unit, wherein the state variable of the NFC unit is used to record the state of whether the NFC unit is installed on the back cover of the mobile terminal, the state of the WIFI unit The state variable is used to record the state of whether the WIFI unit is installed on the back cover of the mobile terminal.
其中,当检测到NFC单元安装在移动终端的后盖上时,NFC单元的状态变量标记为1,当检测到NFC单元没有安装在移动终端的后盖上时,NFC单元的状态变量标记为0,当检测到WIFI单元安装在移动终端的后盖上时,WIFI单元的状态变量标记为1,当检测到WIFI单元没有安装在移动终端的后盖上时,WIFI单元的状态变量标记为0。通过记录NFC单元和WIFI单元的状态,便于当检测到移动终端正在使用NFC单元时,是否控制移动终端降低所述WIFI单元的功率,即此时若WIFI单元的状态变量标记为0,则说明WIFI单元没有安装在移动终端的后盖上,对用户使用WIFI单元进行数据传输无影响,不需要进行任何操作;若WIFI单元的状态变量标记为1,则说明WIFI单元安装在移动终端的后盖上,对用户使用WIFI单元进行数据传输有影响,此时控制移动终端降低WIFI单元的功率(例如,降低10%),从而减小WIFI单元的信号对NFC单元的信号产生的电磁干扰,提高NFC的数据传输性能。Wherein, when it is detected that the NFC unit is installed on the back cover of the mobile terminal, the state variable of the NFC unit is marked as 1, and when it is detected that the NFC unit is not installed on the back cover of the mobile terminal, the state variable of the NFC unit is marked as 0 , when it is detected that the WIFI unit is installed on the back cover of the mobile terminal, the state variable of the WIFI unit is marked as 1, and when it is detected that the WIFI unit is not installed on the back cover of the mobile terminal, the state variable of the WIFI unit is marked as 0. By recording the state of the NFC unit and the WIFI unit, it is convenient to control the mobile terminal to reduce the power of the WIFI unit when it is detected that the mobile terminal is using the NFC unit, that is, if the state variable of the WIFI unit is marked as 0 at this time, it means that the WIFI The unit is not installed on the back cover of the mobile terminal, which has no effect on the user's use of the WIFI unit for data transmission, and no operation is required; if the status variable of the WIFI unit is marked as 1, it means that the WIFI unit is installed on the back cover of the mobile terminal , has an impact on the user's use of the WIFI unit for data transmission. At this time, the mobile terminal is controlled to reduce the power of the WIFI unit (for example, reduce 10%), thereby reducing the electromagnetic interference generated by the signal of the WIFI unit on the signal of the NFC unit, and improving the performance of the NFC. data transfer performance.
在一些实施例中,所述若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元之后,还包括:In some embodiments, if it is detected that the back cover of the mobile terminal has been installed, after detecting whether the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal at the same time, it also includes:
根据检测所述移动终端的后盖上是否安装有所述NFC单元的检测结果更新所述NFC单元的状态变量;以及Updating the state variable of the NFC unit according to the detection result of detecting whether the NFC unit is installed on the back cover of the mobile terminal; and
根据检测所述移动终端的后盖上是否安装有所述WIFI单元的检测结果更新所述WIFI单元的状态变量。Updating the state variable of the WIFI unit according to the detection result of whether the WIFI unit is installed on the back cover of the mobile terminal.
其中,因为在没有检测移动终端的后盖上是否安装有NFC单元和WIFI单元之前,NFC单元的状态变量是标记为0的,WIFI单元的状态变量也是标记为0的,因此在检测移动终端的后盖上是否安装有NFC单元和WIFI单元之后,要根据检测的结果更新NFC单元的状态变量和WIFI单元的状态变量。Wherein, before detecting whether the back cover of the mobile terminal is equipped with the NFC unit and the WIFI unit, the state variable of the NFC unit is marked as 0, and the state variable of the WIFI unit is also marked as 0, so when detecting the mobile terminal After whether the NFC unit and the WIFI unit are installed on the back cover, the state variable of the NFC unit and the state variable of the WIFI unit should be updated according to the detection result.
在一些实施例中,所述若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元,包括:In some embodiments, if it is detected that the back cover of the mobile terminal has been installed, then simultaneously detecting whether an NFC unit and a WIFI unit are installed on the back cover of the mobile terminal, including:
向所述NFC单元发出第一通信指令,若在第一预定时间内有反馈,则判定所述移动终端的后盖上已安装所述NFC单元,向所述WIFI单元发出第二通信指令,若在第二预定时间内有反馈,则判定所述移动终端的后盖上已安装所述WIFI单元。Send a first communication command to the NFC unit, if there is feedback within the first predetermined time, then determine that the NFC unit has been installed on the back cover of the mobile terminal, and send a second communication command to the WIFI unit, if If there is a feedback within the second predetermined time, it is determined that the WIFI unit has been installed on the back cover of the mobile terminal.
其中,第一通信指令,可以是读取NFC单元某个寄存器的指定,比如读取NFC单元的MANUFACTURERID,通过向NFC单元发送MANUFACTURERID指令,若在第一预定时间内有反馈,则判定移动终端的后盖上已安装NFC单元,若在第一预定时间内没有反馈,则判定移动终端的后盖上没有安装NFC单元。其中,本领域技术人员可以根据实际情况对第一预定时间进行设置,例如,第一预定时间为1s(较佳值)。第二通信指令,可以是读取WIFI单元某个寄存器的指定,比如读取WIFI单元的适配电压,通过向WIFI单元发送读取适配电压的指令,若在第二预定时间内有反馈,则判定移动终端的后盖上已安装WIFI单元,若在第一预定时间内没有反馈,则判定移动终端的后盖上没有安装WIFI单元。其中,本领域技术人员可以根据实际情况对第二预定时间进行设置,例如,第二预定时间为1s(较佳值)。第一预定时间和第二预定时间相等。Wherein, the first communication instruction may be a designation to read a certain register of the NFC unit, such as reading the MANUFACTURERID of the NFC unit, and by sending the MANUFACTURERID instruction to the NFC unit, if there is feedback within the first predetermined time, then determine the mobile terminal’s The NFC unit has been installed on the back cover, if there is no feedback within the first predetermined time, it is determined that the NFC unit is not installed on the back cover of the mobile terminal. Wherein, those skilled in the art can set the first predetermined time according to the actual situation, for example, the first predetermined time is 1s (preferable value). The second communication instruction may be to read the designation of a certain register of the WIFI unit, such as reading the adaptation voltage of the WIFI unit, by sending an instruction to read the adaptation voltage to the WIFI unit, if there is feedback within the second predetermined time, Then it is determined that the WIFI unit has been installed on the back cover of the mobile terminal, if there is no feedback within the first predetermined time, then it is determined that the WIFI unit is not installed on the back cover of the mobile terminal. Wherein, those skilled in the art may set the second predetermined time according to the actual situation, for example, the second predetermined time is 1s (preferable value). The first predetermined time and the second predetermined time are equal.
步骤103,若检测到所述移动终端的后盖上安装有所述NFC单元和所述WIFI单元,则当检测到所述移动终端正在使用NFC单元时,控制所述移动终端降低所述WIFI单元的功率。
其中,因为移动终端的后盖上同时安装有NFC单元和WIFI单元,而NFC单元和WIFI单元频率相差较大,会对用户使用WIFI单元进行数据传输产生影响,因此此时要控制移动终端降低WIFI单元的功率,从而减少WIFI单元对NFC单元的影响。Among them, because the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal at the same time, and the frequency difference between the NFC unit and the WIFI unit is relatively large, which will affect the user's use of the WIFI unit for data transmission, so at this time, the mobile terminal should be controlled to reduce the WIFI. The power of the unit, thereby reducing the impact of the WIFI unit on the NFC unit.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present application, which will not be repeated here.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the execution order of the described steps, and some steps may be performed in other orders or simultaneously in the case of no conflict.
由上可知,本申请实施例提供的移动终端控制方法通过当检测到移动终端开机时,检测所述移动终端的后盖是否装入;若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元;若检测到所述移动终端的后盖上安装有所述NFC单元和所述WIFI单元,则当检测到所述移动终端正在使用NFC单元时,控制所述移动终端降低所述WIFI单元的功率。本申请实施例通过在移动终端的后盖上设置NFC单元位置和WIFI单元位置,当检测到移动终端开机并且移动终端的后盖已装入时,若检测到移动终端的后盖上同时安装有NFC单元和WIFI单元,并且移动终端正在使用NFC单元,则控制移动终端降低WIFI单元的功率,从而可以在移动终端后盖同时安装有NFC单元和WIFI单元的情况下,减小WIFI单元的信号对NFC单元的信号产生的电磁干扰,提高NFC的数据传输性能。It can be seen from the above that the mobile terminal control method provided by the embodiment of the present application detects whether the back cover of the mobile terminal is installed when it is detected that the mobile terminal is turned on; if it is detected that the back cover of the mobile terminal has been installed, then Simultaneously detect whether an NFC unit and a WIFI unit are installed on the back cover of the mobile terminal; if it is detected that the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal, then when the mobile terminal is detected When the NFC unit is being used, the mobile terminal is controlled to reduce the power of the WIFI unit. In this embodiment of the application, by setting the position of the NFC unit and the position of the WIFI unit on the back cover of the mobile terminal, when it is detected that the mobile terminal is turned on and the back cover of the mobile terminal has been installed, if it is detected that the NFC unit and WIFI unit, and the mobile terminal is using the NFC unit, then control the mobile terminal to reduce the power of the WIFI unit, so that the signal pair of the WIFI unit can be reduced when the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal. The electromagnetic interference generated by the signal of the NFC unit improves the data transmission performance of the NFC.
本申请实施例还提供一种移动终端控制装置,所述移动终端控制装置可以集成在移动终端中。所述移动终端可以是智能手机、平板电脑等设备。The embodiment of the present application also provides a mobile terminal control device, and the mobile terminal control device may be integrated in a mobile terminal. The mobile terminal may be a smart phone, a tablet computer or other devices.
请参阅图3,图3为本申请实施例提供的移动终端控制装置的结构示意图。移动终端控制装置30可以包括:Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of a mobile terminal control device provided by an embodiment of the present application. The mobile
第一检测模块31,用于当检测到移动终端开机时,检测所述移动终端的后盖是否装入;The
第二检测模块32,用于若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元;The
控制模块33,用于若检测到所述移动终端的后盖上安装有所述NFC单元和所述WIFI单元,则当检测到所述移动终端正在使用NFC单元时,控制所述移动终端降低所述WIFI单元的功率。The
在一些实施例中,所述第一检测模块31,用于当检测到移动终端开机时,检测所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化,若检测到所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化为高电平到低电平,则判定所述移动终端的后盖已装入。In some embodiments, the
在一些实施例中,所述第一检测模块31,用于检测所述第一通用输入输出口的信号,当检测到所述第一通用输入输出口的信号产生下降沿中断时,则判定所述移动终端的后盖已装入。In some embodiments, the
在一些实施例中,所述第二检测模块32,用于向所述NFC单元发出第一通信指令,若在第一预定时间内有反馈,则判定所述移动终端的后盖上已安装所述NFC单元,向所述WIFI单元发出第二通信指令,若在预定时间内有反馈,则判定所述移动终端的后盖上已安装所述WIFI单元。In some embodiments, the
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现。During specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily to be implemented as the same or several entities.
由上可知,本申请实施例提供的移动终端控制装置30,通过第一检测模块31,当检测到移动终端开机时,检测所述移动终端的后盖是否装入;第二检测模块32,若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元;控制模块33,若检测到所述移动终端的后盖上安装有所述NFC单元和所述WIFI单元,则当检测到所述移动终端正在使用NFC单元时,控制所述移动终端降低所述WIFI单元的功率。本申请实施例通过在移动终端的后盖上设置NFC单元位置和WIFI单元位置,当检测到移动终端开机并且移动终端的后盖已装入时,若检测到移动终端的后盖上同时安装有NFC单元和WIFI单元,并且移动终端正在使用NFC单元,则控制移动终端降低WIFI单元的功率,从而可以在移动终端后盖同时安装有NFC单元和WIFI单元的情况下,减小WIFI单元的信号对NFC单元的信号产生的电磁干扰,提高NFC的数据传输性能。It can be known from the above that the mobile
请参阅图4,图4为本申请实施例提供的移动终端控制装置的另一结构示意图,移动终端控制装置30包括存储器120、一个或多个处理器180、以及一个或多个应用程序,其中该一个或多个应用程序被存储于该存储器120中,并配置为由该处理器180执行;该处理器180可以包括第一检测模块31,第二检测模块32和控制模块33。例如,以上各个部件的结构和连接关系可以如下:Please refer to FIG. 4. FIG. 4 is another schematic structural diagram of a mobile terminal control device provided in an embodiment of the present application. The mobile
存储器120可用于存储应用程序和数据。存储器120存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器180通过运行存储在存储器120的应用程序,从而执行各种功能应用以及数据处理。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器120还可以包括存储器控制器,以提供处理器180对存储器120的访问。The
处理器180是装置的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器120内的应用程序,以及调用存储在存储器120内的数据,执行装置的各种功能和处理数据,从而对装置进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等。The
具体在本实施例中,处理器180会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器120中,并由处理器180来运行存储在存储器120中的应用程序,从而实现各种功能:Specifically, in this embodiment, the
第一检测模块31,用于当检测到移动终端开机时,检测所述移动终端的后盖是否装入;The
第二检测模块32,用于若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元;The
控制模块33,用于若检测到所述移动终端的后盖上安装有所述NFC单元和所述WIFI单元,则当检测到所述移动终端正在使用NFC单元时,控制所述移动终端降低所述WIFI单元的功率。The
在一些实施例中,所述第一检测模块31,用于当检测到移动终端开机时,检测所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化,若检测到所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化为高电平到低电平,则判定所述移动终端的后盖已装入。In some embodiments, the
在一些实施例中,所述第一检测模块31,用于检测所述第一通用输入输出口的信号,当检测到所述第一通用输入输出口的信号产生下降沿中断时,则判定所述移动终端的后盖已装入。In some embodiments, the
在一些实施例中,所述第二检测模块32,用于向所述NFC单元发出第一通信指令,若在第一预定时间内有反馈,则判定所述移动终端的后盖上已安装所述NFC单元,向所述WIFI单元发出第二通信指令,若在预定时间内有反馈,则判定所述移动终端的后盖上已安装所述WIFI单元。In some embodiments, the
本申请实施例还提供一种移动终端。所述移动终端可以是智能手机、平板电脑等设备。The embodiment of the present application also provides a mobile terminal. The mobile terminal may be a smart phone, a tablet computer or other devices.
请参阅图5,图5示出了本申请实施例提供的移动终端的结构示意图,该移动终端可以用于实施上述实施例中提供的移动终端控制方法。该移动终端1200可以为智能手机或平板电脑。Please refer to FIG. 5 . FIG. 5 shows a schematic structural diagram of a mobile terminal provided by an embodiment of the present application, and the mobile terminal may be used to implement the method for controlling a mobile terminal provided in the foregoing embodiments. The mobile terminal 1200 can be a smart phone or a tablet computer.
如图5所示,移动终端1200可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上(图中仅示出一个)计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、传输模块170、包括有一个或者一个以上(图中仅示出一个)处理核心的处理器180以及电源190等部件。本领域技术人员可以理解,图5中示出的移动终端1200结构并不构成对移动终端1200的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:As shown in FIG. 5, a mobile terminal 1200 may include an RF (Radio Frequency, radio frequency)
RF电路110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路110可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路110可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。The
存储器120可用于存储软件程序以及模块,如上述实施例中移动终端控制方法对应的程序指令/模块,处理器180通过运行存储在存储器120内的软件程序以及模块,从而执行各种功能应用以及数据处理,通过当检测到移动终端开机时,检测所述移动终端的后盖是否装入;若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元;若检测到所述移动终端的后盖上安装有所述NFC单元和所述WIFI单元,则当检测到所述移动终端正在使用NFC单元时,控制所述移动终端降低所述WIFI单元的功率。从而可以在移动终端后盖同时安装有NFC单元和WIFI单元的情况下,减小WIFI单元对NFC单元的影响,进而减小对用户使用WIFI单元进行数据传输产生的影响。存储器120可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器120可进一步包括相对于处理器180远程设置的存储器,这些远程存储器可以通过网络连接至电子设备1200。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及移动终端1200的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid CrystalDisplay,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图5中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。The
移动终端1200还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在移动终端1200移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端1200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal 1200 may also include at least one
音频电路160、扬声器161,传声器162可提供用户与移动终端1200之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与移动终端1200的通信。The
移动终端1200通过传输模块170(例如Wi-Fi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了传输模块170,但是可以理解的是,其并不属于移动终端1200的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The mobile terminal 1200 can help users send and receive e-mails, browse web pages, and access streaming media through the transmission module 170 (eg, Wi-Fi module), which provides users with wireless broadband Internet access. Although FIG. 5 shows the
处理器180是移动终端1200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行移动终端1200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;在一些实施例中,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The
移动终端1200还包括给各个部件供电的电源190(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal 1200 also includes a power supply 190 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the
尽管未示出,移动终端1200还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。具体在本实施例中,移动终端1200的显示单元140是触摸屏显示器,移动终端1200还包括有存储器120,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器120中,且经配置以由一个或者一个以上处理器180执行一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the mobile terminal 1200 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be repeated here. Specifically in this embodiment, the
当检测到移动终端开机时,检测所述移动终端的后盖是否装入;When it is detected that the mobile terminal is powered on, it is detected whether the back cover of the mobile terminal is installed;
若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元;If it is detected that the back cover of the mobile terminal has been loaded, then simultaneously detect whether an NFC unit and a WIFI unit are installed on the back cover of the mobile terminal;
若检测到所述移动终端的后盖上安装有所述NFC单元和所述WIFI单元,则当检测到所述移动终端正在使用NFC单元时,控制所述移动终端降低所述WIFI单元的功率。If it is detected that the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal, when it is detected that the mobile terminal is using the NFC unit, control the mobile terminal to reduce the power of the WIFI unit.
在一些实施例中,处理器180用于所述检测所述移动终端的后盖是否装入之前,还包括:In some embodiments, before the
将所述移动终端的第一通用输入输出口的信号检测模式设置为双边沿中断检测模式,其中所述第一通用输入输出口的一端与所述NFC单元和所述WIFI单元的通用输入输出口相连接,另一端与中央处理器相连接。The signal detection mode of the first general input and output port of the mobile terminal is set to double edge interrupt detection mode, wherein one end of the first general input and output port is connected to the general input and output port of the NFC unit and the WIFI unit connected, and the other end is connected to the central processing unit.
在一些实施例中,处理器180用于所述当检测到移动终端开机时,检测所述移动终端的后盖是否装入,包括:In some embodiments, the
当检测到移动终端开机时,检测所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化,若检测到所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化为高电平到低电平,则判定所述移动终端的后盖已装入。When it is detected that the mobile terminal is turned on, the level change of the working general input and output port of the NFC unit and the WIFI unit is detected, if the level of the working general input and output port of the NFC unit and the WIFI unit is detected Change from high level to low level, then it is determined that the back cover of the mobile terminal has been installed.
在一些实施例中,处理器180用于所述检测所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化,若检测到所述NFC单元和所述WIFI单元的工作通用输入输出口的电平变化为高电平到低电平,则判定所述移动终端的后盖已装入,包括:In some embodiments, the
检测所述第一通用输入输出口的信号,当检测到所述第一通用输入输出口的信号产生下降沿中断时,则判定所述移动终端的后盖已装入。Detecting the signal of the first general-purpose input and output port, and when it is detected that the signal of the first general-purpose input and output port generates a falling edge interrupt, it is determined that the rear cover of the mobile terminal has been installed.
在一些实施例中,处理器180用于所述若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元之前,还包括:In some embodiments, before the
设置所述NFC单元的状态变量和所述WIFI单元的状态变量,其中,所述NFC单元的状态变量用来记录NFC单元是否安装在所述移动终端的后盖上的状态,所述WIFI单元的状态变量用来记录WIFI单元是否安装在所述移动终端的后盖上的状态。Set the state variable of the NFC unit and the state variable of the WIFI unit, wherein the state variable of the NFC unit is used to record the state of whether the NFC unit is installed on the back cover of the mobile terminal, the state of the WIFI unit The state variable is used to record the state of whether the WIFI unit is installed on the back cover of the mobile terminal.
在一些实施例中,处理器180用于所述若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元之后,还包括:In some embodiments, the
根据检测所述移动终端的后盖上是否安装有所述NFC单元的检测结果更新所述NFC单元的状态变量;以及Updating the state variable of the NFC unit according to the detection result of detecting whether the NFC unit is installed on the back cover of the mobile terminal; and
根据检测所述移动终端的后盖上是否安装有所述WIFI单元的检测结果更新所述WIFI单元的状态变量。Updating the state variable of the WIFI unit according to the detection result of whether the WIFI unit is installed on the back cover of the mobile terminal.
在一些实施例中,处理器180用于所述若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元,包括:In some embodiments, the
向所述NFC单元发出第一通信指令,若在第一预定时间内有反馈,则判定所述移动终端的后盖上已安装所述NFC单元,向所述WIFI单元发出第二通信指令,若在预定时间内有反馈,则判定所述移动终端的后盖上已安装所述WIFI单元。Send a first communication command to the NFC unit, if there is feedback within the first predetermined time, then determine that the NFC unit has been installed on the back cover of the mobile terminal, and send a second communication command to the WIFI unit, if If there is feedback within a predetermined time, it is determined that the WIFI unit has been installed on the back cover of the mobile terminal.
由上可知,本申请实施例提供了一种移动终端1200,所述移动终端1200执行以下步骤:当检测到移动终端开机时,检测所述移动终端的后盖是否装入;若检测到所述移动终端的后盖已装入,则同时检测所述移动终端的后盖上是否安装有NFC单元和WIFI单元;若检测到所述移动终端的后盖上安装有所述NFC单元和所述WIFI单元,则当检测到所述移动终端正在使用NFC单元时,控制所述移动终端降低所述WIFI单元的功率。本申请实施例通过在移动终端的后盖上设置NFC单元位置和WIFI单元位置,当检测到移动终端开机并且移动终端的后盖已装入时,若检测到移动终端的后盖上同时安装有NFC单元和WIFI单元,并且移动终端正在使用NFC单元,则控制移动终端降低WIFI单元的功率,从而可以在移动终端后盖同时安装有NFC单元和WIFI单元的情况下,减小WIFI单元的信号对NFC单元的信号产生的电磁干扰,提高NFC的数据传输性能。It can be seen from the above that the embodiment of the present application provides a mobile terminal 1200, and the mobile terminal 1200 performs the following steps: when it is detected that the mobile terminal is powered on, it is detected whether the back cover of the mobile terminal is installed; The back cover of the mobile terminal has been loaded, then detect whether the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal at the same time; if it is detected that the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal unit, then when it is detected that the mobile terminal is using the NFC unit, control the mobile terminal to reduce the power of the WIFI unit. In this embodiment of the application, by setting the position of the NFC unit and the position of the WIFI unit on the back cover of the mobile terminal, when it is detected that the mobile terminal is turned on and the back cover of the mobile terminal has been installed, if it is detected that the NFC unit and WIFI unit, and the mobile terminal is using the NFC unit, then control the mobile terminal to reduce the power of the WIFI unit, so that the signal pair of the WIFI unit can be reduced when the NFC unit and the WIFI unit are installed on the back cover of the mobile terminal. The electromagnetic interference generated by the signal of the NFC unit improves the data transmission performance of the NFC.
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,所述计算机执行上述任一实施例所述的移动终端控制方法。An embodiment of the present application further provides a storage medium, in which a computer program is stored, and when the computer program is run on a computer, the computer executes the mobile terminal control method described in any one of the foregoing embodiments.
需要说明的是,对本申请所述移动终端控制方法而言,本领域普通测试人员可以理解实现本申请实施例所述移动终端控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读存储介质中,如存储在移动终端的存储器中,并被该移动终端内的至少一个处理器执行,在执行过程中可包括如所述移动终端控制方法的实施例的流程。其中,所述存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the mobile terminal control method described in this application, ordinary testers in the field can understand that all or part of the flow of the mobile terminal control method described in the embodiment of this application can be controlled by computer programs. To accomplish this, the computer program may be stored in a computer-readable storage medium, such as stored in a memory of a mobile terminal, and executed by at least one processor in the mobile terminal, and the execution process may include moving The flow of the embodiment of the terminal control method. Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory) and the like.
对本申请实施例的所述移动终端控制装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the mobile terminal control device in the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as read-only memory, magnetic disk or optical disk.
以上对本申请实施例所提供的移动终端控制方法、装置、存储介质及移动终端进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The mobile terminal control method, device, storage medium and mobile terminal provided in the embodiments of the present application are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the application. The description of the above embodiments is only used to help understand the method and core idea of the application; meanwhile, for those skilled in the art, according to the application Thoughts, specific implementation methods and application ranges all have changes. In summary, the content of this specification should not be construed as limiting the application.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011138216.6A CN112367701B (en) | 2020-10-22 | 2020-10-22 | Mobile terminal control method, device, storage medium and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011138216.6A CN112367701B (en) | 2020-10-22 | 2020-10-22 | Mobile terminal control method, device, storage medium and mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112367701A CN112367701A (en) | 2021-02-12 |
| CN112367701B true CN112367701B (en) | 2022-11-04 |
Family
ID=74511656
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011138216.6A Active CN112367701B (en) | 2020-10-22 | 2020-10-22 | Mobile terminal control method, device, storage medium and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112367701B (en) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101043237A (en) * | 2006-03-23 | 2007-09-26 | 美国博通公司 | Method and system for providing wireless communication |
| CN103312349A (en) * | 2012-03-15 | 2013-09-18 | 联发科技股份有限公司 | Method for reducing self-interference |
| CN203289422U (en) * | 2012-02-15 | 2013-11-13 | Lg电子株式会社 | Portable terminal |
| CN103503552A (en) * | 2011-03-02 | 2014-01-08 | 高通股份有限公司 | Methods and apparatus for facilitating support for multi-radio coexistence |
| CN105122918A (en) * | 2013-04-09 | 2015-12-02 | 日本电气株式会社 | Communications system |
| CN105659682A (en) * | 2013-10-23 | 2016-06-08 | 高通股份有限公司 | Device and method for coexistence of bluetooth and wireless local area network |
| CN110740465A (en) * | 2019-10-23 | 2020-01-31 | Oppo(重庆)智能科技有限公司 | Method and system for coexistence of multiple wireless communication devices |
| CN110958345A (en) * | 2019-12-03 | 2020-04-03 | Tcl 移动通信科技(宁波)有限公司 | Method and device for detecting rear cover of mobile terminal and computer readable storage medium |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9826524B2 (en) * | 2011-12-15 | 2017-11-21 | Avago Technologies General Ip (Singapore) Pte. Ltd. | Dynamic space, frequency and time domain coexistence |
| CN108064076B (en) * | 2017-12-07 | 2021-04-27 | Oppo广东移动通信有限公司 | Transmission power control method, device, storage medium and mobile terminal |
-
2020
- 2020-10-22 CN CN202011138216.6A patent/CN112367701B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101043237A (en) * | 2006-03-23 | 2007-09-26 | 美国博通公司 | Method and system for providing wireless communication |
| CN103503552A (en) * | 2011-03-02 | 2014-01-08 | 高通股份有限公司 | Methods and apparatus for facilitating support for multi-radio coexistence |
| CN203289422U (en) * | 2012-02-15 | 2013-11-13 | Lg电子株式会社 | Portable terminal |
| CN103312349A (en) * | 2012-03-15 | 2013-09-18 | 联发科技股份有限公司 | Method for reducing self-interference |
| CN105122918A (en) * | 2013-04-09 | 2015-12-02 | 日本电气株式会社 | Communications system |
| CN105659682A (en) * | 2013-10-23 | 2016-06-08 | 高通股份有限公司 | Device and method for coexistence of bluetooth and wireless local area network |
| CN110740465A (en) * | 2019-10-23 | 2020-01-31 | Oppo(重庆)智能科技有限公司 | Method and system for coexistence of multiple wireless communication devices |
| CN110958345A (en) * | 2019-12-03 | 2020-04-03 | Tcl 移动通信科技(宁波)有限公司 | Method and device for detecting rear cover of mobile terminal and computer readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112367701A (en) | 2021-02-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111510901B (en) | Power adjusting method, device, storage medium and terminal | |
| WO2022104952A1 (en) | Screen state control method and apparatus, and storage medium | |
| CN103683437B (en) | A kind of charger and terminal equipment | |
| US11262911B2 (en) | Integrated home key and virtual key area for a smart terminal | |
| CN105187653A (en) | Turning off method and apparatus of network connecting switch | |
| CN111651387B (en) | Interface Circuits and Electronic Equipment | |
| CN109981442A (en) | Method for sending information and terminal device | |
| CN107565650A (en) | Design of Compatibility method and circuit | |
| WO2023160250A1 (en) | Display brightness control method, apparatus, electronic device, and storage medium | |
| WO2023045560A1 (en) | Touch screen adjusting method, storage medium, and terminal | |
| CN108777627A (en) | A kind of method of supplying power to and device | |
| CN112367701B (en) | Mobile terminal control method, device, storage medium and mobile terminal | |
| CN112286849A (en) | Wireless charging base data switching method and system, storage medium and terminal equipment | |
| CN106940608A (en) | Display screen control method, display screen and electronic equipment | |
| CN112202464B (en) | Identification card detection method and device, storage medium and mobile terminal | |
| CN115348256A (en) | Posting data downloading method and device, storage medium and electronic equipment | |
| CN110636526A (en) | A NFC communication detection method, device, computer readable storage medium and terminal | |
| CN110109529A (en) | SD card method for controlling power supply, device, storage medium and electronic equipment | |
| CN111542037B (en) | Instruction transmission method, device and storage medium | |
| CN110582079B (en) | A Bluetooth connection setting method, device, computer-readable storage medium and terminal | |
| CN111308303A (en) | A mobile terminal radio frequency power amplifier detection method and device | |
| CN111966206A (en) | A power-saving control method, device and mobile terminal for a fingerprint sensor | |
| CN114530122B (en) | Display device, method for driving the display device, and storage medium | |
| CN111638897B (en) | System update method, device, terminal equipment and storage medium | |
| CN112491562B (en) | Communication control method and device and mobile terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |
