[go: up one dir, main page]

CN112261711B - Control method, control device, electronic equipment and readable storage medium - Google Patents

Control method, control device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112261711B
CN112261711B CN202011149156.8A CN202011149156A CN112261711B CN 112261711 B CN112261711 B CN 112261711B CN 202011149156 A CN202011149156 A CN 202011149156A CN 112261711 B CN112261711 B CN 112261711B
Authority
CN
China
Prior art keywords
input
magnetic induction
application
induction coil
chip
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
Application number
CN202011149156.8A
Other languages
Chinese (zh)
Other versions
CN112261711A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011149156.8A priority Critical patent/CN112261711B/en
Publication of CN112261711A publication Critical patent/CN112261711A/en
Application granted granted Critical
Publication of CN112261711B publication Critical patent/CN112261711B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a control method and a control device, which belong to the technical field of communication and are applied to a device comprising a periscope, wherein the periscope comprises a magnet module and a magnetic induction coil, and the control method comprises the following steps: receiving a first input, wherein under the action of the first input, the magnetic induction coil performs cutting motion relative to a magnetic induction wire of the magnet module so as to enable the magnetic induction coil to generate a pulse signal; in response to a first input, identifying a target function item of a target application matched with the signal parameter and a preset condition under the condition that the signal parameter of the pulse signal meets the preset condition; wherein different signal parameters are matched with different objects, different values of the same signal parameter are matched with different objects, wherein the objects comprise application and/or function items; and controlling the target function item of the target application. The method and the device can reduce signaling overhead and memory occupation caused by sensor operation, and achieve the effect of saving electricity.

Description

控制方法、装置、电子设备及可读存储介质Control methods, devices, electronic equipment and readable storage media

技术领域Technical field

本申请属于通信技术领域,具体涉及一种控制方法、装置、电子设备及可读存储介质。This application belongs to the field of communication technology, and specifically relates to a control method, device, electronic equipment and readable storage medium.

背景技术Background technique

目前,随着计算机技术的发展,电子设备的应用越来越多,在对应用进行控制时,相关技术中主要是通过使传感器保持常开状态,由传感器检测相关数据,从而进行应用的控制。At present, with the development of computer technology, there are more and more applications of electronic equipment. When controlling applications, the related technology mainly controls the application by keeping the sensor in a normally open state and allowing the sensor to detect relevant data.

但是,长期保持启动状态的传感器会造成系统的信令开销较多,内存占用较大以及耗电量增加的问题。However, sensors that remain active for a long time will cause the system to have more signaling overhead, larger memory usage, and increased power consumption.

发明内容Contents of the invention

本申请实施例的目的是提供一种控制方法、装置、电子设备及可读存储介质,能够解决相关技术中通过保持传感器长期处于工作状态来控制应用时所存在的系统的信令开销较多、内存占用较大以及耗电量增加的问题。The purpose of the embodiments of the present application is to provide a control method, device, electronic device and readable storage medium, which can solve the problem of high signaling overhead and high system cost when controlling applications in related technologies by keeping sensors in a working state for a long time. The problem of large memory usage and increased power consumption.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本申请实施例提供了一种控制方法,应用于包括潜望镜头的装置,其中,所述潜望镜头包括磁体模组和磁感线圈,所述方法包括:In a first aspect, embodiments of the present application provide a control method applied to a device including a periscope lens, wherein the periscope lens includes a magnet module and a magnetic induction coil. The method includes:

接收第一输入,其中,在所述第一输入的作用下,所述磁感线圈相对所述磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号;Receive a first input, wherein, under the action of the first input, the magnetic induction coil undergoes a cutting movement relative to the magnetic induction line of the magnet module, so that the magnetic induction coil generates a pulse signal;

响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项;In response to the first input, if the signal parameters of the pulse signal meet the preset conditions, identify the target function item of the target application that matches the signal parameters and the preset conditions;

其中,不同的信号参数与不同的对象相匹配,同一信号参数的不同值与不同的对象相匹配,其中,所述对象包括应用和/或功能项;Wherein, different signal parameters are matched with different objects, and different values of the same signal parameter are matched with different objects, wherein the objects include applications and/or functional items;

对目标应用的目标功能项进行控制。Control the target function items of the target application.

第二方面,本申请实施例提供了一种控制装置,所述装置包括:潜望镜头,其中,所述潜望镜头包括磁体模组和磁感线圈,所述装置还包括:In a second aspect, embodiments of the present application provide a control device. The device includes: a periscope lens, wherein the periscope lens includes a magnet module and a magnetic induction coil. The device further includes:

接收模块,用于接收第一输入,其中,在所述第一输入的作用下,所述磁感线圈相对所述磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号;A receiving module configured to receive a first input, wherein, under the action of the first input, the magnetic induction coil undergoes a cutting motion relative to the magnetic induction line of the magnet module, so that the magnetic induction coil generates pulses Signal;

识别模块,用于响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项;An identification module configured to, in response to the first input, identify the target function item of the target application that matches the signal parameter and the preset condition when the signal parameters of the pulse signal meet the preset condition;

其中,不同的信号参数与不同的对象相匹配,同一信号参数的不同值与不同的对象相匹配,其中,所述对象包括应用和/或功能项;Wherein, different signal parameters are matched with different objects, and different values of the same signal parameter are matched with different objects, wherein the objects include applications and/or functional items;

控制模块,用于对目标应用的目标功能项进行控制。The control module is used to control the target function items of the target application.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤,其中,所述电子设备还包括包含磁体模组和磁感线圈的潜望镜头。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor. The program or instructions are When executed by the processor, the steps of the method as described in the first aspect are implemented, wherein the electronic device further includes a periscope lens including a magnet module and a magnetic induction coil.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤,其中,所述处理器与包括磁体模组和磁感线圈的潜望镜头连接。In a fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented. , wherein the processor is connected to a periscope lens including a magnet module and a magnetic induction coil.

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法,其中,所述芯片与包括磁体模组和磁感线圈的潜望镜头连接。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first aspect. According to the method, the chip is connected to a periscope lens including a magnet module and a magnetic induction coil.

在本申请实施例中,通过接收第一输入,在该第一输入的作用下,磁感线圈可以相对磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号;然后,可以响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项,从而对目标应用的目标功能项进行控制。在应用的控制上能够不借助于传感器所检测的数据,而借助于上述第一输入,来对应用或其功能项进行控制,由于不需要一些运动传感器处于长期工作状态,从而可以降低因传感器工作所带来的信令开销和内存占用,并达到省电的作用;并且,在应用的控制上,用户只需要可以通过简单的摇晃装置的触发第一输入的动作,就可以实现对应用的功能项的控制,控制方式更加便捷灵活。此外,在本申请实施例中,可以针对不同的信号参数配置与之匹配的不同的对象,其中,该对象包括应用和/或功能项,从而能够以满足预设条件的不同信号参数,来区分需要控制的不同应用,或不同功能项,或不同应用的功能项,提升了对应用的控制灵活性,以及对同一信号参数的不同值配置与之匹配的不同的对象,从而能够以同一信号参数在具有不同值的情况下,能够满足不同预设条件,来区分需要控制的不同应用,或不同功能项,或不同应用的功能项,提升了对应用的控制灵活性。In the embodiment of the present application, by receiving the first input, under the action of the first input, the magnetic induction coil can make a cutting movement relative to the magnetic induction line of the magnet module, so that the magnetic induction coil generates a pulse signal; and then , in response to the first input, when the signal parameters of the pulse signal meet the preset conditions, the target function item of the target application that matches the signal parameters and the preset conditions is identified, so as to target the target. Control the target function items of the application. In controlling the application, the application or its functional items can be controlled without relying on the data detected by the sensor, but with the help of the above-mentioned first input. Since some motion sensors do not need to be in a long-term working state, the work of the sensors can be reduced. It reduces the signaling overhead and memory usage and achieves power saving; and in terms of application control, users only need to trigger the first input action by simply shaking the device to realize the application functions. Item control, the control method is more convenient and flexible. In addition, in the embodiment of the present application, different objects that match different signal parameters can be configured, where the objects include applications and/or functional items, so that different signal parameters that meet the preset conditions can be distinguished. Different applications, or different function items, or function items of different applications need to be controlled, which improves the control flexibility of the application, and configures different objects matching the different values of the same signal parameter, so that the same signal parameter can be used In the case of different values, different preset conditions can be met to distinguish different applications that need to be controlled, or different functional items, or functional items of different applications, which improves the flexibility of controlling applications.

附图说明Description of the drawings

图1是本申请一个实施例的潜望镜头的结构示意图之一;Figure 1 is one of the structural schematic diagrams of a periscope lens according to an embodiment of the present application;

图2是本申请一个实施例的潜望镜头的结构示意图之二;Figure 2 is the second structural schematic diagram of a periscope lens according to an embodiment of the present application;

图3是本申请一个实施例的潜望镜头的结构示意图之三;Figure 3 is the third structural schematic diagram of a periscope lens according to an embodiment of the present application;

图4是本申请一个实施例的潜望镜头的部分电路示意图之一;Figure 4 is one of the partial circuit schematic diagrams of a periscope lens according to an embodiment of the present application;

图5是本申请一个实施例的潜望镜头的部分电路示意图之二;Figure 5 is the second partial circuit schematic diagram of a periscope lens according to an embodiment of the present application;

图6是本申请一个实施例的控制方法的流程图;Figure 6 is a flow chart of a control method according to an embodiment of the present application;

图7是本申请另一个实施例的控制方法的流程图;Figure 7 is a flow chart of a control method according to another embodiment of the present application;

图8是本申请一个实施例的控制装置的框图;Figure 8 is a block diagram of a control device according to an embodiment of the present application;

图9是本申请一个实施例的电子设备的硬件结构示意图;Figure 9 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application;

图10是本申请另一个实施例的电子设备的硬件结构示意图。Figure 10 is a schematic diagram of the hardware structure of an electronic device according to another 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, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的控制方法进行详细地说明。The control method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.

本申请实施例提供了一种控制方法,该方法可以应用于包括潜望镜头的装置,其中,所述潜望镜头包括磁体模组和磁感线圈。The embodiment of the present application provides a control method, which can be applied to a device including a periscope lens, where the periscope lens includes a magnet module and a magnetic induction coil.

其中,磁体模组和磁感线圈之间发生相对移动后,可以使磁感线圈对磁体模组的磁感线进行切割,从而使得磁感线圈产生电流。Among them, after the relative movement between the magnet module and the magnetic induction coil occurs, the magnetic induction coil can cut the magnetic induction lines of the magnet module, thereby causing the magnetic induction coil to generate current.

在一个示例中,该方法可以应用于电子设备,例如手机,该手机配置有潜望镜头,该潜望镜头的功能主要是用于拍照中的对焦,而在本申请实施例中,还可以利用已有的潜望镜头来实现对手机中应用的控制。In one example, this method can be applied to an electronic device, such as a mobile phone. The mobile phone is equipped with a periscope lens. The function of the periscope lens is mainly used for focusing in taking pictures. In the embodiment of the present application, existing Periscope lens to control applications in mobile phones.

参照图1、图2和图3分别示出了潜望镜头的三个结构示意图,潜望镜头可以包括线圈模块12、磁体模组11、镜头模组13、FPC(Flexible Printed Circuit,柔性电路板)14。Referring to Figures 1, 2 and 3, three structural schematic diagrams of a periscope lens are shown respectively. The periscope lens may include a coil module 12, a magnet module 11, a lens module 13, and an FPC (Flexible Printed Circuit, flexible circuit board) 14 .

其中,线圈模块12安装在FPC14上,而镜头模组13侧壁设置有磁体模组11,本例中,线圈模块12与磁体模组11相对设置。Among them, the coil module 12 is installed on the FPC 14, and a magnet module 11 is provided on the side wall of the lens module 13. In this example, the coil module 12 and the magnet module 11 are arranged oppositely.

此外,线圈模块12还可以通过FPC14的内部电路来与芯片(未示出)连接,该内部电路具有输入和输出功能。In addition, the coil module 12 can also be connected to a chip (not shown) through the internal circuitry of the FPC 14, which internal circuitry has input and output functions.

那么在利用潜望镜头来进行拍照对焦时,则是利用内部电路的输出功能,如图3所示,芯片通过该内部电路输入电流I给线圈模块12,磁体模组11产生磁场B,那么按照左手定则,将会产生安培力F,该安培力F将推动镜头模组13按照安培力F的方向移动,从而实现焦距的调节。Then when using the periscope lens to take photos and focus, the output function of the internal circuit is used. As shown in Figure 3, the chip inputs the current I to the coil module 12 through the internal circuit, and the magnet module 11 generates the magnetic field B. Then according to the left hand According to the rule, the ampere force F will be generated, and the ampere force F will push the lens module 13 to move in the direction of the ampere force F, thereby adjusting the focal length.

而本申请实施例中,可以利用已有的潜望镜头来进一步实现对手机中应用的控制,参照图4和图5所示的潜望镜头的部分电路示意图。In the embodiment of the present application, the existing periscope lens can be used to further control the applications in the mobile phone. Refer to the partial circuit schematic diagrams of the periscope lens shown in FIG. 4 and FIG. 5 .

如图4所示,线圈模块12平行相对磁体模组11设置,线圈模块12的内部电路的接口为GPIO(General-purpose input/output,通用型输入输出),也就是说,该内部电路的GPIO接口在与芯片连接时,在该潜望镜头用于相机对焦时,则该GPIO接口作为芯片的输出接口使用,而在本申请实施例中,在借助于潜望镜头来进行应用控制时,则将该GPIO接口作为芯片的输入接口使用。As shown in Figure 4, the coil module 12 is arranged parallel to the magnet module 11. The interface of the internal circuit of the coil module 12 is GPIO (General-purpose input/output, general-purpose input and output). That is to say, the GPIO of the internal circuit When the interface is connected to the chip, when the periscope lens is used for camera focusing, the GPIO interface is used as the output interface of the chip. In the embodiment of the present application, when the periscope lens is used for application control, the GPIO interface is used as the output interface of the chip. The GPIO interface is used as the input interface of the chip.

如图4所示,在进行应用控制时,用户可以通过摇动手机,在摇动操作的作用下,线圈模块12与磁体模组11之间发生相对运动,这里为磁体模组11按照速度v的方向运动,从而使得线圈模块12切割磁体模组11的磁感线,使线圈模块12产生箭头所示的方向的电流,电流通过GPIO接口输入至芯片,芯片检测到该电流后,则可以进行应用的控制。As shown in Figure 4, when performing application control, the user can shake the mobile phone. Under the action of the shaking operation, a relative movement occurs between the coil module 12 and the magnet module 11. Here, the magnet module 11 moves in the direction of the speed v. Movement, causing the coil module 12 to cut the magnetic induction lines of the magnet module 11, causing the coil module 12 to generate a current in the direction shown by the arrow. The current is input to the chip through the GPIO interface. After the chip detects the current, it can be applied. control.

而图5与图4类似,区别在于,磁体模组11的运动方向的区别,而导致线圈模块12中产生的电流的方向与图4中的线圈模块12的电流方向不同,但是,图5中线圈模块12中产生的电流同样通过GPIO接口输入至芯片,从而使得芯片可以借助于该电流来进行应用的控制。Figure 5 is similar to Figure 4. The difference lies in the difference in the direction of movement of the magnet module 11, which causes the direction of the current generated in the coil module 12 to be different from that of the coil module 12 in Figure 4. However, in Figure 5 The current generated in the coil module 12 is also input to the chip through the GPIO interface, so that the chip can control the application with the help of the current.

因此,本申请实施例的方法可以通过摇晃手机去实现一种信号的输入方式,可以通过这种输入方式进行应用的控制,例如打开息屏提醒或者打开某些应用后,可自定义通过摇晃手机去实现截屏等功能,从而无需常开传感器进行应用控制,达到降低系统信令开销、内存占用并达到省电的目的。Therefore, the method of the embodiment of the present application can realize a signal input method by shaking the mobile phone, and control the application through this input method. For example, after turning on the screen reminder or opening some applications, you can customize the signal input method by shaking the mobile phone. To realize functions such as screenshots, there is no need for normally open sensors for application control, thereby reducing system signaling overhead, memory usage and saving power.

为了进一步说明本申请实施例的控制方法,参照图6,示出了本申请一个实施例的控制方法的流程图,该方法可以应用于包括潜望镜头的装置,其中,所述潜望镜头包括磁体模组和磁感线圈,所述方法具体可以包括如下步骤:In order to further illustrate the control method of the embodiment of the present application, refer to FIG. 6 , which shows a flow chart of the control method of an embodiment of the present application. This method can be applied to a device including a periscope lens, wherein the periscope lens includes a magnet module. group and magnetic induction coil, the method may specifically include the following steps:

步骤101,接收第一输入,其中,在所述第一输入的作用下,所述磁感线圈相对所述磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号;Step 101, receiving a first input, wherein, under the action of the first input, the magnetic induction coil undergoes a cutting motion relative to the magnetic induction line of the magnet module, so that the magnetic induction coil generates a pulse signal;

以该装置为配置有潜望镜头的手机为例进行说明,当用户想要对应用进行控制时,可以通过手动摇晃手机,可以使得手机内的潜望镜头内部的线圈模块(包括磁感线圈)也会被摇晃,而潜望镜头内部的磁感线圈附近设置有磁铁模组,因此,摇晃手机后,潜望镜头内部的磁感线圈会做切割磁体模组的磁感线的运动,那么根据电磁感应定律,切割磁感线运动可以产生感应电动势,从而产生感应电流,因此,磁感线圈内可以产生脉冲信号。Taking the device as a mobile phone equipped with a periscope lens as an example, when the user wants to control the application, he can manually shake the phone, which will cause the coil module (including the magnetic induction coil) inside the periscope lens in the phone to also is shaken, and there is a magnet module installed near the magnetic induction coil inside the periscope lens. Therefore, after shaking the phone, the magnetic induction coil inside the periscope lens will move to cut the magnetic induction lines of the magnet module. Then according to the law of electromagnetic induction, The movement of cutting magnetic induction lines can generate induced electromotive force, thereby generating induced current. Therefore, pulse signals can be generated in the magnetic induction coil.

这里以磁感线圈发生运动从而导致切割磁感线为例进行说明,但是,本申请实施例的第一输入并不限制于控制磁感线圈发生运动,也可以是磁体模组发生运动,只要磁感线圈和其附近的磁体模组之间发生相对移动即可,从而可以使得磁感线圈发生切割磁感线的运动。Here, the movement of the magnetic induction coil, which results in the cutting of the magnetic induction lines, is used as an example. However, the first input in the embodiment of the present application is not limited to controlling the movement of the magnetic induction coil. It can also be the movement of the magnet module, as long as the magnetic induction coil moves. The relative movement between the induction coil and the magnet module nearby can cause the magnetic induction coil to move to cut the magnetic induction lines.

在图5的示例中,在第一输入的作用下,磁体模组12的磁感线圈内可以产生电流,该电流可以通过GPIO接口输入到芯片(未示出)内。In the example of FIG. 5 , under the action of the first input, a current can be generated in the magnetic induction coil of the magnet module 12 , and the current can be input into the chip (not shown) through the GPIO interface.

可选地,在执行步骤101时,可以在所述磁感线圈的电路端口设置为与所述磁感线圈连接的芯片的输入端口的情况下,接收第一输入,其中,在所述第一输入的作用下,所述电路端口产生输入至所述芯片的脉冲信号。Optionally, when performing step 101, the first input may be received when the circuit port of the magnetic induction coil is set as an input port of a chip connected to the magnetic induction coil, wherein in the first Under the action of input, the circuit port generates a pulse signal input to the chip.

其中,上文的GPIO接口为磁感线圈的电路端口,该GPIO接口与芯片连接,GPIO接口是芯片的管脚,芯片可以将该GPIO接口设置为芯片的输入端口或输出端口。Among them, the above GPIO interface is the circuit port of the magnetic induction coil. The GPIO interface is connected to the chip. The GPIO interface is the pin of the chip. The chip can set the GPIO interface as the input port or output port of the chip.

那么在配置有潜望镜头的手机中,在电路连接时,潜望镜头内部的磁感线圈是和内部的电路连接在一块的,因此,本申请实施例的方法无需增加相应的检测电路,可以复用潜望镜头内部与磁感线圈连接的内部电路,且,该电路具有GPIO接口,因此,该电路同时具有信号的输入和输出功能,那么在利用潜望镜头进行相机应用的对焦工作时,该GPIO接口作为芯片的输出端口,即芯片向该GPIO接口输入电流,或者说脉冲信号给磁感线圈,使得磁感线圈驱动控制潜望镜头的镜头模组发生移动进行对焦;而当未利用潜望镜头进行相机应用的对焦工作时(即相机应用未启动的情况下),则该GPIO接口作为芯片的输入端口,用户可以通过晃动手机实现磁感线圈切割磁感线产生输入至芯片的电流,或者说脉冲信号,因此,该GPIO接口作为芯片的输入端口,该输入端口输入电流给芯片,芯片内部可以拾取对应的切割形成的脉冲信号。In a mobile phone equipped with a periscope lens, when the circuit is connected, the magnetic induction coil inside the periscope lens is connected with the internal circuit. Therefore, the method of the embodiment of the present application does not need to add a corresponding detection circuit and can be reused. The internal circuit inside the periscope lens is connected to the magnetic induction coil. Moreover, this circuit has a GPIO interface. Therefore, the circuit has both signal input and output functions. When using the periscope lens to focus the camera application, the GPIO interface serves as The output port of the chip, that is, the chip inputs current to the GPIO interface, or a pulse signal to the magnetic coil, so that the magnetic coil drives the lens module that controls the periscope lens to move and focus; when the periscope lens is not used for camera applications When the focus is working (that is, when the camera application is not started), the GPIO interface serves as the input port of the chip. The user can realize that the magnetic induction coil cuts the magnetic induction line by shaking the mobile phone to generate a current, or pulse signal, input to the chip. Therefore , the GPIO interface serves as the input port of the chip. The input port inputs current to the chip, and the corresponding pulse signal formed by cutting can be picked up inside the chip.

在本申请实施例中,磁感线圈的电路端口与芯片连接,那么在所述磁感线圈的电路端口设置为该芯片的输入端口的情况下,则可以通过接收第一输入并响应于该第一输入,来进行目标应用的目标功能项的控制,其中,由于该电路端口配置为芯片的输入端口,因此,磁感线圈产生的脉冲信号可以通过该输入端口输入至芯片内,从而使得芯片可以响应于该第一输入,依据检测到的输入的脉冲信号来进行应用的控制,无需额外启动传感器来控制应用,降低信令开销和内存占用,并节省电能。In the embodiment of the present application, the circuit port of the magnetic induction coil is connected to the chip. In the case where the circuit port of the magnetic induction coil is set as the input port of the chip, it is possible to receive the first input and respond to the third input port. An input is used to control the target function items of the target application. Since the circuit port is configured as the input port of the chip, the pulse signal generated by the magnetic induction coil can be input into the chip through the input port, so that the chip can In response to the first input, the application is controlled based on the detected input pulse signal. There is no need to activate additional sensors to control the application, thereby reducing signaling overhead and memory usage, and saving power.

可选地,根据本申请实施例的方法还可以包括:Optionally, the method according to the embodiment of the present application may also include:

步骤103,在第一应用启动的情况下,将所述电路端口设置为所述芯片的输出端口;Step 103: When the first application is started, set the circuit port as the output port of the chip;

其中,该第一应用可以是上文所述的相机应用,该相机应用主要利用例如潜望镜头进行拍摄对焦,而拍摄对焦需要借助于芯片向线圈模块(磁感线圈)输入电流来产生安培力,从而推动镜头模组的移动,因此,在芯片确定相机应用启动的情况下,芯片可以控制该线圈模块的电路端口(例如上述GPIO接口)设置为该芯片的输出端口,从而芯片可以通过该GPIO接口向磁感线圈输入电流。The first application may be the camera application mentioned above. This camera application mainly uses, for example, a periscope lens for shooting and focusing, and shooting and focusing requires the help of a chip to input current to the coil module (magnetic induction coil) to generate ampere force. This promotes the movement of the lens module. Therefore, when the chip determines that the camera application is started, the chip can control the circuit port of the coil module (such as the above-mentioned GPIO interface) to be set as the output port of the chip, so that the chip can pass the GPIO interface Input current to the magnetic induction coil.

步骤104,在所述第一应用关闭的情况下,将所述电路端口设置为所述芯片的所述输入端口,其中,所述第一应用与目标应用不同。Step 104: When the first application is closed, set the circuit port as the input port of the chip, wherein the first application is different from the target application.

其中,在例如相机应用关闭的情况下,则芯片可以将GPIO接口切换设置为芯片的输入端口,便于用户摇动手机后,磁感线圈产生电流通过输入端口输入到芯片,便于芯片在接收到电流后对目标应用进行控制。Among them, when the camera application is closed, for example, the chip can switch the GPIO interface to the input port of the chip, so that after the user shakes the phone, the current generated by the magnetic coil is input to the chip through the input port, so that after the chip receives the current Control the target application.

由于对第一应用的控制,主要借助于包括磁体模组和磁感线圈的装置中磁感线圈所产生的安培力,而对目标应用的控制则主要借助于包括磁体模组和磁感线圈的装置中磁感线圈切割磁感线所产生电流,因此,这两个应用不同。Since the control of the first application mainly relies on the ampere force generated by the magnetic induction coil in the device including the magnet module and the magnetic induction coil, the control of the target application mainly relies on the ampere force generated by the magnetic induction coil in the device including the magnet module and the magnetic induction coil. The magnetic coil in the device cuts the magnetic field lines to generate current, so the two applications are different.

其中,步骤103和步骤104为并列的择一执行的步骤,而步骤104可以在步骤101之前执行。本申请对于步骤103与步骤101之间的执行顺序不做限制。Among them, step 103 and step 104 are steps that can be executed in parallel, and step 104 can be executed before step 101. This application does not limit the execution order between step 103 and step 101.

在本申请实施例中,可以根据所控制的应用的不同,而将磁感线圈的电路端口灵活地设置为芯片的输入端口或输出端口,便于基于所控制的应用,来将电路端口切换为与该应用匹配的输入端口或输出端口,实现了对不同类型的应用的灵活控制,且实现了对同一组电路端口的复用,无需增加额外电路,减少装置体积。In the embodiment of the present application, the circuit port of the magnetic induction coil can be flexibly set as the input port or the output port of the chip according to the controlled application, so that the circuit port can be switched to the corresponding one based on the controlled application. The matching input port or output port of this application enables flexible control of different types of applications, and enables the reuse of the same set of circuit ports without adding additional circuits and reducing the size of the device.

在步骤101之后,根据本发明实施例的方法还包括步骤102;After step 101, the method according to the embodiment of the present invention further includes step 102;

步骤102,响应于所述第一输入,在所述脉冲信号满足预设条件的情况下,对目标应用的目标功能项进行控制。Step 102: In response to the first input, if the pulse signal satisfies a preset condition, control the target function item of the target application.

其中,上述芯片从GPIO接口检测到输入的脉冲信号后,可以判断该脉冲信号是否满足预设条件,如果满足,则可以对目标应用的目标功能项进行控制。Among them, after the above chip detects the input pulse signal from the GPIO interface, it can determine whether the pulse signal meets the preset conditions. If it meets the preset conditions, it can control the target function items of the target application.

其中,该预设条件的数量可以是一个或多个,而目标应用的数量也可以是一个或多个,目标功能项的数量也可以是一个或多个。The number of the preset conditions may be one or more, the number of target applications may also be one or more, and the number of target function items may also be one or more.

功能项是一个应用所具备的功能,例如某个即时通讯程序的功能包括信息发送功能、支付功能等;Function items are functions possessed by an application. For example, the functions of an instant messaging program include message sending function, payment function, etc.;

此外,该目标应用可以是电子设备的系统应用(例如截屏应用、锁屏应用),也可以是电子设备从第三方平台下载的第三方应用。In addition, the target application may be a system application of the electronic device (such as a screenshot application, a lock screen application), or a third-party application downloaded by the electronic device from a third-party platform.

举例来说,当芯片检测到满足预设条件的脉冲信号后,可以进行比如打开息屏提醒/亮屏、打开某些应用、或者在某个应用的运行过程中,通过检测到手机的摇晃动作后自动打开该应用的某些功能项,例如支付功能/扫码功能等。For example, when the chip detects a pulse signal that meets the preset conditions, it can perform tasks such as turning on the screen pause reminder/brightening the screen, opening certain applications, or detecting the shaking motion of the phone while an application is running. Then automatically open certain functions of the application, such as payment function/code scanning function, etc.

由于之前打开亮屏/息屏提醒等功能项是通过某些运动传感器进行数据监测来实现的,那么在本申请实施例中可以借助于潜望镜头的输入信号的功能来实现拿起手机(实现切割磁感线产生电流)实现亮屏/打开息屏提醒功能,从而可以让这些运动传感器关闭,同样可以实现亮屏的功能。Since turning on the screen-on/screen-off reminder and other functions were previously implemented through data monitoring by certain motion sensors, in the embodiment of the present application, the input signal function of the periscope lens can be used to realize picking up the mobile phone (realizing cutting). The magnetic induction wire generates current) to realize the screen bright/turn on screen reminder function, which can turn off these motion sensors and also realize the screen bright function.

在本申请实施例中,通过接收第一输入,该第一输入是可以控制磁感线圈相对磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号的任意输入,例如可以是对装置的摇动输入,并响应于所述第一输入,在所述脉冲信号满足预设条件的情况下,对目标应用的目标功能项进行控制,在应用的控制上能够不借助于传感器所检测的数据,而借助于上述第一输入,来对应用进行控制,由于不需要一些运动传感器处于长期工作状态,从而可以降低因传感器工作所带来的信令开销和内存占用,并达到省电的作用,并且,在应用的控制上,用户只需要可以通过简单的摇晃装置的动作,就可以实现对应用的功能项的控制,控制方式更加便捷灵活。In the embodiment of the present application, by receiving the first input, the first input is any input that can control the magnetic induction coil to make a cutting motion relative to the magnetic induction line of the magnet module, so that the magnetic induction coil generates a pulse signal, for example It can be a shaking input to the device, and in response to the first input, when the pulse signal meets the preset conditions, the target function item of the target application is controlled, and the application can be controlled without resorting to a sensor. The detected data is used to control the application with the help of the above-mentioned first input. Since some motion sensors are not required to be in a long-term working state, the signaling overhead and memory usage caused by the sensor operation can be reduced, and savings can be achieved. Moreover, in terms of application control, users can control the application's functional items by simply shaking the device, making the control method more convenient and flexible.

可选地,在一个实施例中,在执行步骤102时,如图6所示,可以通过步骤401和步骤402来实现:Optionally, in one embodiment, when performing step 102, as shown in Figure 6, it can be implemented through steps 401 and 402:

步骤401,响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项;Step 401: In response to the first input, if the signal parameters of the pulse signal meet the preset conditions, identify the target function item of the target application that matches the signal parameters and the preset conditions;

步骤402,对所述目标应用的所述目标功能项进行控制。Step 402: Control the target function item of the target application.

其中,不同的信号参数与不同的对象相匹配,同一信号参数的不同值与不同的对象相匹配,其中,所述对象包括应用和/或功能项;Wherein, different signal parameters are matched with different objects, and different values of the same signal parameter are matched with different objects, wherein the objects include applications and/or functional items;

其中,上述信号参数可以包括但不限于以下至少一种:信号数量、信号频率、信号波形。那么信号参数的不同也会导致预设条件的不同,例如信号数量的预设条件为脉冲信号的数量大于3个,例如信号频率的预设条件为信号频率大于预设频率阈值,例如信号波形的预设条件为信号波形为预设信号波形。当然,各个信号参数的预设条件并不限于上述举例的条件,可以灵活配置。The above-mentioned signal parameters may include but are not limited to at least one of the following: signal quantity, signal frequency, and signal waveform. Then different signal parameters will also lead to different preset conditions. For example, the preset condition for the number of signals is that the number of pulse signals is greater than 3. For example, the preset condition for the signal frequency is that the signal frequency is greater than the preset frequency threshold. For example, the signal waveform The preset condition is that the signal waveform is a preset signal waveform. Of course, the preset conditions for each signal parameter are not limited to the above-mentioned examples and can be flexibly configured.

在本实施例中,在应用的控制上,可以通过预先对不同的对象分别配置与之匹配的信号参数,一个对象匹配的信号参数的数量可以是一个或多个(例如信号数量和信号频率);而不同的对象所匹配的信号参数不同。In this embodiment, in terms of application control, different objects can be configured in advance with matching signal parameters. The number of matching signal parameters for an object can be one or more (such as signal number and signal frequency). ; Different objects match different signal parameters.

在一个实施例中,这里的对象可以应用,例如应用1对应于信号参数1,应用2对应于信号参数2,应用3对应于信号参数1和信号参数2,应用4对应于信号参数3;In one embodiment, the objects here can be applied, for example, application 1 corresponds to signal parameter 1, application 2 corresponds to signal parameter 2, application 3 corresponds to signal parameter 1 and signal parameter 2, and application 4 corresponds to signal parameter 3;

在另一个实施例中,这里的对象可以是功能项,例如功能项1对应于信号参数1,功能项2对应于信号参数2,功能项3对应于信号参数1和信号参数2,功能项4对应于信号参数3;In another embodiment, the object here may be a function item. For example, function item 1 corresponds to signal parameter 1, function item 2 corresponds to signal parameter 2, function item 3 corresponds to signal parameter 1 and signal parameter 2, and function item 4 Corresponds to signal parameter 3;

在又一个实施例中,这里的对象为应用和功能项,例如应用1的功能项1对应于信号参数1,应用1的功能项2对应于信号参数2,应用2的功能项1对应于信号参数3。In another embodiment, the objects here are applications and function items. For example, function item 1 of application 1 corresponds to signal parameter 1, function item 2 of application 1 corresponds to signal parameter 2, and function item 1 of application 2 corresponds to signal Parameter 3.

也就是说,本实施例中,可以通过满足预设条件的不同的信号参数来对不同的对象进行控制,这里的对象可以是功能项、或应用,或应用的功能项。That is to say, in this embodiment, different objects can be controlled through different signal parameters that meet preset conditions. The objects here can be functional items, applications, or functional items of applications.

可选地,如果预先配置的匹配关系中,满足预设条件的信号参数匹配的是应用1,则需要控制的目标应用为应用1,由于该应用1可以具有至少一个功能项,因此,目标功能项可以是应用1的所有功能项,也可以是应用1的所有功能项中的某个预设功能项。Optionally, if in the preconfigured matching relationship, the signal parameters that meet the preset conditions match application 1, the target application that needs to be controlled is application 1. Since application 1 can have at least one function item, the target function The item can be all the function items of Application 1, or it can be a preset function item among all the function items of Application 1.

可选地,如果预先配置的匹配关系中,满足预设条件的信号参数匹配的是功能项1,则需要控制的目标功能项即为功能项1,由于可能存在至少一个应用具有该功能项1,因此,目标应用可以是已安装的所有具有该功能项1的应用,也可以是已安装的所有具有该功能项1的应用中的某个预设应用;当然也可能没有应用具有该功能项1,该功能项1是一个系统功能项(例如亮屏功能项、截图功能项)。Optionally, if in the pre-configured matching relationship, the signal parameters that meet the preset conditions match function item 1, then the target function item that needs to be controlled is function item 1, because there may be at least one application with this function item 1 , therefore, the target application can be all installed applications with this function item 1, or it can be a preset application among all installed applications with this function item 1; of course, there may also be no application with this function item. 1. This function item 1 is a system function item (such as bright screen function item, screenshot function item).

可选地,如果预先配置的匹配关系中,满足预设条件的信号参数匹配的是应用1的功能项1,则需要控制的目标应用为应用1,目标功能项即为功能项1。Optionally, if in the preconfigured matching relationship, the signal parameters that meet the preset conditions match function item 1 of application 1, then the target application that needs to be controlled is application 1, and the target function item is function item 1.

而关于上述任意信号参数的取值的不同,可以是因第一输入的摇动次数的区别而导致的脉冲信号的数量不同,也可以是因第一输入的摇动频率的变化而导致的脉冲信号的信号频率的变化,也可以是因第一输入的摇动姿态的区别而导致脉冲信号的形状的变化。As for the difference in the value of any of the above-mentioned signal parameters, it can be the difference in the number of pulse signals caused by the difference in the number of shaking times of the first input, or it can also be the difference in the number of pulse signals caused by the change in the shaking frequency of the first input. The change in signal frequency may also be a change in the shape of the pulse signal due to the difference in the first input shaking posture.

在本申请实施例中,可以通过预先定义一些应用,或一些功能项,或一些应用的功能项所匹配的信号参数,那么在脉冲信号的信号参数满足预设条件的情况下,则可以对与该满足预设条件的信号参数匹配的对象进行控制,比如定义信号数量超过3个则打开APP1的支付功能和扫码功能,能够针对不同的APP控制其功能,也可以针对同一APP控制不同功能项,能够以满足预设条件的不同信号参数,来区分需要控制的不同应用,或不同功能项,或不同应用的功能项,提升了对应用的控制灵活性。In the embodiment of the present application, some applications, or some functional items, or signal parameters matched by the functional items of some applications can be predefined. Then, when the signal parameters of the pulse signal meet the preset conditions, the corresponding The objects that match the signal parameters that meet the preset conditions are controlled. For example, if the number of defined signals exceeds 3, the payment function and QR code scanning function of APP1 will be opened. Its functions can be controlled for different APPs, and different functional items can also be controlled for the same APP. , different signal parameters that meet preset conditions can be used to distinguish different applications that need to be controlled, or different functional items, or functional items of different applications, which improves the flexibility of application control.

进一步地,还可以在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述预设条件匹配的目标应用的目标功能项,其中,同一信号参数的不同值(或者说,同一信号参数对应的不同预设条件)与不同的对象相匹配,其中,所述对象包括应用和/或功能项。Further, when the signal parameters of the pulse signal satisfy the preset conditions, the target function items of the target application matching the preset conditions can be identified, wherein different values of the same signal parameter (or in other words, the same Different preset conditions corresponding to the signal parameters) are matched with different objects, where the objects include applications and/or function items.

也就是说,应用的控制上,可以通过预先对不同的对象分别配置与之匹配的信号参数的预设条件,同一信号参数的不同预设条件(例如,同一信号参数取不同的值)可以与不同的对象匹配,因此,在本实施例中,不仅不同的信号参数可以匹配到不同的对象,而且,同一信号参数的不同取值在满足不同的预设条件下,该信号参数所匹配的对象也是不同的。That is to say, in terms of application control, different objects can be configured in advance with matching preset conditions for signal parameters. Different preset conditions for the same signal parameter (for example, the same signal parameter takes different values) can be combined with Different objects are matched. Therefore, in this embodiment, not only different signal parameters can be matched to different objects, but also, if different values of the same signal parameter satisfy different preset conditions, the object matched by the signal parameter It's also different.

在一个实施例中,这里的对象可以应用,例如应用1对应于信号参数1(例如信号数量)的取值范围为2个~5个,应用2对应于信号参数1(例如信号数量)的取值范围为6个~10个,应用3对应于信号参数2(例如信号频率)的取值为信号频率大于预设频率阈值1且小于预设频率阈值2;In one embodiment, the object here can be applied. For example, application 1 corresponds to the value range of signal parameter 1 (for example, the number of signals) from 2 to 5, and application 2 corresponds to the value range of signal parameter 1 (for example, the number of signals). The value range is 6 to 10. Application 3 corresponds to the value of signal parameter 2 (such as signal frequency) when the signal frequency is greater than the preset frequency threshold 1 and less than the preset frequency threshold 2;

在另一个实施例中,这里的对象可以是功能项,例如功能项1对应于信号参数1的预设条件为信号数量的取值为1个,功能项2对应于信号参数1的预设条件为信号数量的取值超过11个,功能项3对应于信号参数2的预设条件为信号频率的取值大于预设频率阈值2;In another embodiment, the object here may be a function item. For example, function item 1 corresponds to the preset condition of signal parameter 1 that the value of the number of signals is 1, and function item 2 corresponds to the preset condition of signal parameter 1. If the number of signals exceeds 11, the preset condition for function item 3 corresponding to signal parameter 2 is that the value of signal frequency is greater than the preset frequency threshold 2;

在又一个实施例中,这里的对象为应用和功能项,例如应用1的功能项1对应于信号参数1的预设条件1,应用1的功能项2对应于信号参数1的预设条件2,应用2的功能项1对应于信号参数3的预设条件3。In yet another embodiment, the objects here are applications and function items. For example, function item 1 of application 1 corresponds to preset condition 1 of signal parameter 1, and function item 2 of application 1 corresponds to preset condition 2 of signal parameter 1. , function item 1 of application 2 corresponds to preset condition 3 of signal parameter 3.

也就是说,本实施例中,不仅可以通过不同的信号参数来控制不同的对象,而且,还可以基于同一信号参数在取不同数值的情况下所满足的预设条件的差别,来区分该信号参数所控制的对象。这里的对象可以是功能项、或应用,或应用的功能项。That is to say, in this embodiment, not only different objects can be controlled through different signal parameters, but also the signals can be distinguished based on the difference in the preset conditions satisfied by the same signal parameter when taking different values. The object controlled by the parameter. The object here can be a function item, an application, or an application's function item.

与上述实施例类似,如果预先配置的匹配关系中,满足预设条件的信号参数匹配的是应用1,则需要控制的目标应用为应用1,由于该应用1可以具有至少一个功能项,因此,目标功能项可以是应用1的所有功能项,也可以是应用1的所有功能项中的某个预设功能项。Similar to the above embodiment, if in the pre-configured matching relationship, the signal parameters that meet the preset conditions match application 1, then the target application that needs to be controlled is application 1. Since application 1 can have at least one function item, therefore, The target function item may be all the function items of Application 1, or it may be a preset function item among all the function items of Application 1.

可选地,如果预先配置的匹配关系中,满足预设条件的信号参数匹配的是功能项1,则需要控制的目标功能项即为功能项1,由于可能存在至少一个应用具有该功能项1,因此,目标应用可以是已安装的所有具有该功能项1的应用,也可以是已安装的所有具有该功能项1的应用中的某个预设应用;当然也可能没有应用具有该功能项1,该功能项1是一个系统功能项(例如亮屏功能项、截图功能项)。Optionally, if in the pre-configured matching relationship, the signal parameters that meet the preset conditions match function item 1, then the target function item that needs to be controlled is function item 1, because there may be at least one application with this function item 1 , therefore, the target application can be all installed applications with this function item 1, or it can be a preset application among all installed applications with this function item 1; of course, there may also be no application with this function item. 1. This function item 1 is a system function item (such as bright screen function item, screenshot function item).

可选地,如果预先配置的匹配关系中,满足预设条件的信号参数匹配的是应用1的功能项1,则需要控制的目标应用为应用1,目标功能项即为功能项1。Optionally, if in the preconfigured matching relationship, the signal parameters that meet the preset conditions match function item 1 of application 1, then the target application that needs to be controlled is application 1, and the target function item is function item 1.

而关于上述任意信号参数的取值的不同,可以是因第一输入的摇动次数的区别而导致的脉冲信号的数量不同,也可以是因第一输入的摇动频率的变化而导致的脉冲信号的信号频率的变化,也可以是因第一输入的摇动姿态的区别而导致脉冲信号的形状的变化。As for the difference in the value of any of the above-mentioned signal parameters, it can be the difference in the number of pulse signals caused by the difference in the number of shaking times of the first input, or it can also be the difference in the number of pulse signals caused by the change in the shaking frequency of the first input. The change in signal frequency may also be a change in the shape of the pulse signal due to the difference in the first input shaking posture.

在本申请实施例中,可以通过预先定义一些应用,或一些功能项,或一些应用的功能项所匹配的信号参数的不同预设条件,那么在脉冲信号的信号参数满足条件的情况下,则可以对与该信号参数的预设条件所匹配的对象进行控制,比如定义信号数量超过3个小于5个,则打开APP1的支付功能,信号数量超过5个,则打开APP1的扫码功能。本申请实施例的方法能够针对不同的APP控制其功能,也可以针对同一APP控制不同功能项,能够以信号参数所满足的不同预设条件,来区分需要控制的不同应用,或不同功能项,或不同应用的功能项,提升了对应用的控制灵活性。In the embodiment of the present application, different preset conditions for signal parameters matched by some applications, or some functional items, or the functional items of some applications can be predefined. Then, when the signal parameters of the pulse signal meet the conditions, then You can control objects that match the preset conditions of the signal parameters. For example, if the number of signals exceeds 3 and is less than 5, the payment function of APP1 will be turned on. If the number of signals exceeds 5, the code scanning function of APP1 will be turned on. The method of the embodiment of the present application can control the functions of different APPs, and can also control different functional items for the same APP. Different preset conditions satisfied by the signal parameters can be used to distinguish different applications or different functional items that need to be controlled. Or the function items of different applications improve the flexibility of application control.

在本申请实施例中,通过接收第一输入,在该第一输入的作用下,磁感线圈可以相对磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号;然后,可以响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项,从而对目标应用的目标功能项进行控制。在应用的控制上能够不借助于传感器所检测的数据,而借助于上述第一输入,来对应用或其功能项进行控制,由于不需要一些运动传感器处于长期工作状态,从而可以降低因传感器工作所带来的信令开销和内存占用,并达到省电的作用;并且,在应用的控制上,用户只需要可以通过简单的摇晃装置的触发第一输入的动作,就可以实现对应用的功能项的控制,控制方式更加便捷灵活。此外,在本申请实施例中,可以针对不同的信号参数配置与之匹配的不同的对象,其中,该对象包括应用和/或功能项,从而能够以满足预设条件的不同信号参数,来区分需要控制的不同应用,或不同功能项,或不同应用的功能项,提升了对应用的控制灵活性,以及对同一信号参数的不同值配置与之匹配的不同的对象,从而能够以同一信号参数在具有不同值的情况下,能够满足不同预设条件,来区分需要控制的不同应用,或不同功能项,或不同应用的功能项,提升了对应用的控制灵活性。In the embodiment of the present application, by receiving the first input, under the action of the first input, the magnetic induction coil can make a cutting movement relative to the magnetic induction line of the magnet module, so that the magnetic induction coil generates a pulse signal; and then , in response to the first input, when the signal parameters of the pulse signal meet the preset conditions, the target function item of the target application that matches the signal parameters and the preset conditions is identified, so as to target the target. Control the target function items of the application. In controlling the application, the application or its functional items can be controlled without relying on the data detected by the sensor, but with the help of the above-mentioned first input. Since some motion sensors do not need to be in a long-term working state, the work of the sensors can be reduced. It reduces the signaling overhead and memory usage and achieves power saving; and in terms of application control, users only need to trigger the first input action by simply shaking the device to realize the application functions. Item control, the control method is more convenient and flexible. In addition, in the embodiment of the present application, different objects that match different signal parameters can be configured, where the objects include applications and/or functional items, so that different signal parameters that meet the preset conditions can be distinguished. Different applications that need to be controlled, or different function items, or function items of different applications, improve the control flexibility of the application, and configure different objects that match the different values of the same signal parameter, so that the same signal parameter can be used In the case of different values, different preset conditions can be met to distinguish different applications that need to be controlled, or different functional items, or functional items of different applications, which improves the flexibility of controlling applications.

可选地,在执行步骤401时,可以在所述装置的红外线传感器检测到的红外线的波长为预设波长范围的情况下,响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项。Optionally, when performing step 401, when the wavelength of the infrared ray detected by the infrared sensor of the device is within a preset wavelength range, in response to the first input, when the signal parameters of the pulse signal satisfy In the case of preset conditions, identify the target function items of the target application that match the signal parameters and the preset conditions.

其中,预设波长范围为人体的红外线的波长范围之外的波长范围,换句话说,在检测到的红外线的波长为人体的红外线的波长范围(例如用户将手机放置在口袋内,则用户走动也会导致接收到第一输入,但是这个场景下,用户并不需要进行应用的控制)时,则可以拒绝对第一输入进行响应(或者,可以控制芯片停止工作),而只有在检测到的红外线的波长为人体的红外线的波长范围之外的波长范围时,芯片才会对第一输入进行响应。Among them, the preset wavelength range is a wavelength range outside the wavelength range of infrared rays of the human body. In other words, the wavelength of the detected infrared rays is the wavelength range of the infrared rays of the human body (for example, if the user places the mobile phone in his pocket, the user moves It will also cause the first input to be received, but in this scenario, the user does not need to control the application), you can refuse to respond to the first input (or you can control the chip to stop working), and only when the detected The chip will only respond to the first input when the wavelength of the infrared ray is outside the wavelength range of the human body's infrared ray.

在本申请实施例中,为了提升对应用控制的准确性,可以在用户无意触发第一输入的情况下,而不对第一输入进行响应,换句话说,只有在所述装置的红外线传感器检测到的红外线的波长为预设波长范围的情况下,才会对第一输入进行响应,这样可以避免当用户将手机放置在口袋内,因用户走动所导致接收到第一输入而对第一输入进行响应的情况,提升了对应用控制的准确性。In the embodiment of the present application, in order to improve the accuracy of application control, the user may not respond to the first input when the user accidentally triggers the first input. In other words, only when the infrared sensor of the device detects The first input will only be responded to when the wavelength of the infrared ray is within the preset wavelength range. This can prevent the user from placing the mobile phone in the pocket and receiving the first input due to the user moving. response, improving the accuracy of application control.

在一个示例中,参照图7示出了本申请实施例的一种控制方法的流程图,应用于包括图1~图5所示的潜望镜头和芯片的装置,该芯片与潜望镜头的线圈模块(例如磁感线圈)通过GPIO接口连接,该装置可以配置在手机中。In one example, reference to FIG. 7 shows a flow chart of a control method according to an embodiment of the present application, applied to a device including the periscope lens and chip shown in FIGS. 1 to 5 , and the chip is connected with the coil module of the periscope lens. (such as magnetic induction coil) is connected through the GPIO interface, and the device can be configured in the mobile phone.

步骤201,芯片可以将磁感线圈对应的GPIO接口设置为芯片的输入端口;Step 201, the chip can set the GPIO interface corresponding to the magnetic induction coil as the input port of the chip;

步骤202,芯片在该输入端口处检测是否存在电平变化;Step 202: The chip detects whether there is a level change at the input port;

步骤202之后,若否,则转至步骤201;After step 202, if not, go to step 201;

步骤202之后,若是,则步骤203,芯片在处于黑屏锁屏状态的手机界面中显示时间和指纹识别区域,并唤醒与指纹识别区域关联的指纹解锁模块(唤醒的意义可以解释为将指纹解锁模块设置为可接收指纹信息的状态);After step 202, if yes, then step 203, the chip displays the time and fingerprint recognition area in the mobile phone interface in the black screen lock screen state, and wakes up the fingerprint unlocking module associated with the fingerprint recognition area (the meaning of waking up can be interpreted as the fingerprint unlocking module Set to a state that can receive fingerprint information);

那么用户则可以通过将手指触摸该指纹识别区域,指纹解锁模块就可以采集指纹信息,并与预设指纹信息进行比对,如果采集的指纹信息与预设指纹信息匹配,则解锁成功,否则解锁失败。Then the user can touch the fingerprint recognition area with his finger, and the fingerprint unlocking module can collect the fingerprint information and compare it with the preset fingerprint information. If the collected fingerprint information matches the preset fingerprint information, the unlocking is successful, otherwise the unlocking is successful. fail.

步骤204,芯片判断是否解锁成功;Step 204: The chip determines whether the unlocking is successful;

若解锁失败,则步骤205,延时一定时长t后将手机的屏幕息屏,并转至步骤201;If the unlocking fails, in step 205, after a certain time delay t, the screen of the mobile phone will be turned off, and then go to step 201;

若解锁成功,步骤206,对手机的屏幕解锁,亮屏,并打开手机的系统操作界面,例如桌面界面;If the unlocking is successful, step 206, unlock the screen of the mobile phone, turn on the screen, and open the system operation interface of the mobile phone, such as the desktop interface;

在屏幕解锁后,步骤207,芯片将磁感线圈对应的GPIO接口设置为芯片的输入端口;After the screen is unlocked, in step 207, the chip sets the GPIO interface corresponding to the magnetic coil as the input port of the chip;

当然,步骤206和步骤207之间可以不存在递进关系,即解锁和亮屏的触发可以不通过本申请实施例的控制方法来实现,那么则需要执行步骤207。Of course, there may not be a progressive relationship between step 206 and step 207, that is, the triggering of unlocking and brightening the screen may not be implemented through the control method of the embodiment of the present application, and then step 207 needs to be executed.

步骤208,判断用户是否有打开相机应用的操作;Step 208: Determine whether the user has opened the camera application;

步骤208之后,若是,则步骤209,芯片控制启动相机应用;After step 208, if yes, then step 209, the chip controls to start the camera application;

步骤210,芯片将磁感线圈对应的GPIO接口切换设置为芯片的输出端口;Step 210: The chip switches and sets the GPIO interface corresponding to the magnetic induction coil as the output port of the chip;

步骤211,芯片检测用户是否有关闭相机应用的操作;Step 211: The chip detects whether the user has closed the camera application;

若没有关闭相机应用的操作,则转至步骤210;If there is no operation to close the camera application, go to step 210;

若有关闭相机应用的操作,则转至步骤212,关闭相机应用;If there is an operation to close the camera application, go to step 212 to close the camera application;

在步骤208之后,若否,即用户没有想要开启相机应用,则步骤213,芯片判断是否启动了特定应用;After step 208, if not, that is, the user does not want to start the camera application, then in step 213, the chip determines whether a specific application has been started;

步骤213之后,若否,则回到步骤207;After step 213, if not, return to step 207;

步骤213之后,若是,则转至步骤214,芯片检测GPIO端口的输入信号;After step 213, if yes, go to step 214, where the chip detects the input signal of the GPIO port;

步骤215,芯片判断从GPIO端口检测到的输入信号是否是特定波形信号;Step 215: The chip determines whether the input signal detected from the GPIO port is a specific waveform signal;

步骤215之后,若否,则回到步骤214;After step 215, if not, return to step 214;

步骤215之后,若是,则步骤216,触发该特定应用的对应操作(该操作是与该特定波形匹配的),例如该操作可以是截图操作、打开剪切板操作等。After step 215, if yes, then step 216 triggers a corresponding operation of the specific application (the operation matches the specific waveform). For example, the operation can be a screenshot operation, opening a clipboard operation, etc.

在本申请实施例中,可以结合不同的手机摇动输入,来触发不同的脉冲信号,从而借助于脉冲信号来对不同应用,或不同功能项进行控制,提升了对应用控制的灵活性。In the embodiment of the present application, different mobile phone shaking inputs can be combined to trigger different pulse signals, thereby controlling different applications or different functional items with the help of pulse signals, thereby improving the flexibility of application control.

需要说明的是,本申请实施例提供的控制方法,执行主体可以为控制装置,或者该控制装置中的用于执行控制方法的控制模块。本申请实施例中以控制装置执行控制方法为例,说明本申请实施例提供的控制装置。It should be noted that, for the control method provided by the embodiments of the present application, the execution subject may be a control device, or a control module in the control device for executing the control method. In the embodiment of the present application, the control device executing the control method is taken as an example to illustrate the control device provided by the embodiment of the present application.

参照图8,示出了本申请一个实施例的控制装置的框图。该控制装置包括:Referring to FIG. 8 , a block diagram of a control device according to an embodiment of the present application is shown. The control device includes:

潜望镜头,其中,所述潜望镜头包括磁体模组和磁感线圈,所述装置还包括:A periscope lens, wherein the periscope lens includes a magnet module and a magnetic induction coil, and the device further includes:

接收模块301,用于接收第一输入,其中,在所述第一输入的作用下,所述磁感线圈相对所述磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号;The receiving module 301 is configured to receive a first input, wherein, under the action of the first input, the magnetic induction coil undergoes a cutting motion relative to the magnetic induction line of the magnet module, so that the magnetic induction coil generates Pulse signal;

识别模块302,用于响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项;Identification module 302, configured to respond to the first input and identify the target function item of the target application that matches the signal parameter and the preset condition when the signal parameter of the pulse signal meets the preset condition. ;

其中,不同的信号参数与不同的对象相匹配,同一信号参数的不同值与不同的对象相匹配,其中,所述对象包括应用和/或功能项;Wherein, different signal parameters are matched with different objects, and different values of the same signal parameter are matched with different objects, wherein the objects include applications and/or functional items;

控制模块303,用于对目标应用的目标功能项进行控制。The control module 303 is used to control the target function items of the target application.

可选地,所述接收模块301,还用于在所述磁感线圈的电路端口设置为与所述磁感线圈连接的芯片的输入端口的情况下,接收第一输入,其中,在所述第一输入的作用下,所述电路端口产生输入至所述芯片的脉冲信号。Optionally, the receiving module 301 is also configured to receive the first input when the circuit port of the magnetic induction coil is set as the input port of a chip connected to the magnetic induction coil, wherein in the Under the action of the first input, the circuit port generates a pulse signal input to the chip.

可选地,所述装置还包括:Optionally, the device also includes:

第一设置模块,用于在第一应用启动的情况下,将所述电路端口设置为所述芯片的输出端口;A first setting module configured to set the circuit port as the output port of the chip when the first application is started;

第二设置模块,用于在所述第一应用关闭的情况下,将所述电路端口设置为所述芯片的所述输入端口,其中,所述第一应用与所述目标应用不同。A second setting module configured to set the circuit port as the input port of the chip when the first application is closed, wherein the first application is different from the target application.

可选地,所述识别模块302,还用于在所述装置的红外线传感器检测到的红外线的波长为预设波长范围的情况下,响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项。Optionally, the identification module 302 is also configured to respond to the first input when the wavelength of the infrared ray detected by the infrared sensor of the device is within a preset wavelength range. If the parameters meet the preset conditions, identify the target function items of the target application that match the signal parameters and the preset conditions.

在本申请实施例中,通过接收第一输入,在该第一输入的作用下,磁感线圈可以相对磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号;然后,可以响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项,从而对目标应用的目标功能项进行控制。在应用的控制上能够不借助于传感器所检测的数据,而借助于上述第一输入,来对应用或其功能项进行控制,由于不需要一些运动传感器处于长期工作状态,从而可以降低因传感器工作所带来的信令开销和内存占用,并达到省电的作用;并且,在应用的控制上,用户只需要可以通过简单的摇晃装置的触发第一输入的动作,就可以实现对应用的功能项的控制,控制方式更加便捷灵活。此外,在本申请实施例中,可以针对不同的信号参数配置与之匹配的不同的对象,其中,该对象包括应用和/或功能项,从而能够以满足预设条件的不同信号参数,来区分需要控制的不同应用,或不同功能项,或不同应用的功能项,提升了对应用的控制灵活性,以及对同一信号参数的不同值配置与之匹配的不同的对象,从而能够以同一信号参数在具有不同值的情况下,能够满足不同预设条件,来区分需要控制的不同应用,或不同功能项,或不同应用的功能项,提升了对应用的控制灵活性。In the embodiment of the present application, by receiving the first input, under the action of the first input, the magnetic induction coil can make a cutting movement relative to the magnetic induction line of the magnet module, so that the magnetic induction coil generates a pulse signal; and then , in response to the first input, when the signal parameters of the pulse signal meet the preset conditions, the target function item of the target application that matches the signal parameters and the preset conditions is identified, so as to target the target. Control the target function items of the application. In controlling the application, the application or its functional items can be controlled without relying on the data detected by the sensor, but with the help of the above-mentioned first input. Since some motion sensors do not need to be in a long-term working state, the work of the sensors can be reduced. It reduces the signaling overhead and memory usage and achieves power saving; and in terms of application control, users only need to trigger the first input action by simply shaking the device to realize the application functions. Item control, the control method is more convenient and flexible. In addition, in the embodiment of the present application, different objects that match different signal parameters can be configured, where the objects include applications and/or functional items, so that different signal parameters that meet the preset conditions can be distinguished. Different applications, or different function items, or function items of different applications need to be controlled, which improves the control flexibility of the application, and configures different objects matching the different values of the same signal parameter, so that the same signal parameter can be used In the case of different values, different preset conditions can be met to distinguish different applications that need to be controlled, or different functional items, or functional items of different applications, which improves the flexibility of controlling applications.

本申请实施例中的控制装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The control device in the embodiment of the present application may be a device, or may be a component, integrated circuit, or chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant). , PDA), etc., the non-mobile electronic device can be a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which are not specifically limited in the embodiments of this application.

本申请实施例中的控制装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The control device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.

本申请实施例提供的控制装置能够实现上述方法实施例实现的各个过程,为避免重复,这里不再赘述。The control device provided by the embodiments of the present application can implement each process implemented by the above method embodiments. To avoid repetition, details will not be described here.

可选地,如图9所示,本申请实施例还提供一种电子设备2000,包括处理器2002,存储器2001,存储在存储器2001上并可在所述处理器2002上运行的程序或指令,其中,所述电子设备还包括包含磁体模组和磁感线圈的潜望镜头,该程序或指令被处理器2002执行时实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 9, this embodiment of the present application also provides an electronic device 2000, including a processor 2002, a memory 2001, and programs or instructions stored on the memory 2001 and executable on the processor 2002. Wherein, the electronic device also includes a periscope lens including a magnet module and a magnetic induction coil. When the program or instruction is executed by the processor 2002, the various processes of the above control method embodiments are implemented, and the same technical effect can be achieved. In order to avoid Repeat, I won’t go into details here.

需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices described above.

图10为实现本申请实施例的一种电子设备的硬件结构示意图,该电子设备包括包含磁体模组和磁感线圈的潜望镜头。FIG. 10 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application. The electronic device includes a periscope lens including a magnet module and a magnetic induction coil.

该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。The electronic device 1000 includes but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, processor 1010, etc. part.

本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1000 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 10 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .

其中,用户输入单元1007,用于接收第一输入,其中,在所述第一输入的作用下,所述磁感线圈相对所述磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号;Wherein, the user input unit 1007 is used to receive a first input, wherein, under the action of the first input, the magnetic induction coil undergoes a cutting movement relative to the magnetic induction line of the magnet module, so that the magnet The induction coil generates pulse signals;

处理器1010,用于响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项;对所述目标应用的所述目标功能项进行控制。Processor 1010, configured to respond to the first input and identify a target function item of the target application that matches the signal parameter and the preset condition when the signal parameter of the pulse signal meets the preset condition. ; Control the target function items of the target application.

其中,不同的信号参数与不同的对象相匹配,同一信号参数的不同值与不同的对象相匹配,其中,所述对象包括应用和/或功能项;Wherein, different signal parameters are matched with different objects, and different values of the same signal parameter are matched with different objects, wherein the objects include applications and/or functional items;

在本申请实施例中,通过接收第一输入,在该第一输入的作用下,磁感线圈可以相对磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号;然后,可以响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项,从而对目标应用的目标功能项进行控制。在应用的控制上能够不借助于传感器所检测的数据,而借助于上述第一输入,来对应用或其功能项进行控制,由于不需要一些运动传感器处于长期工作状态,从而可以降低因传感器工作所带来的信令开销和内存占用,并达到省电的作用;并且,在应用的控制上,用户只需要可以通过简单的摇晃装置的触发第一输入的动作,就可以实现对应用的功能项的控制,控制方式更加便捷灵活。此外,在本申请实施例中,可以针对不同的信号参数配置与之匹配的不同的对象,其中,该对象包括应用和/或功能项,从而能够以满足预设条件的不同信号参数,来区分需要控制的不同应用,或不同功能项,或不同应用的功能项,提升了对应用的控制灵活性,以及对同一信号参数的不同值配置与之匹配的不同的对象,从而能够以同一信号参数在具有不同值的情况下,能够满足不同预设条件,来区分需要控制的不同应用,或不同功能项,或不同应用的功能项,提升了对应用的控制灵活性。In the embodiment of the present application, by receiving the first input, under the action of the first input, the magnetic induction coil can make a cutting movement relative to the magnetic induction line of the magnet module, so that the magnetic induction coil generates a pulse signal; and then , in response to the first input, when the signal parameters of the pulse signal meet the preset conditions, the target function item of the target application that matches the signal parameters and the preset conditions is identified, so as to target the target. Control the target function items of the application. In controlling the application, the application or its functional items can be controlled without relying on the data detected by the sensor, but with the help of the above-mentioned first input. Since some motion sensors do not need to be in a long-term working state, the work of the sensors can be reduced. It reduces the signaling overhead and memory usage and achieves power saving; and in terms of application control, users only need to trigger the first input action by simply shaking the device to realize the application functions. Item control, the control method is more convenient and flexible. In addition, in the embodiment of the present application, different objects that match different signal parameters can be configured, where the objects include applications and/or functional items, so that different signal parameters that meet the preset conditions can be distinguished. Different applications, or different function items, or function items of different applications need to be controlled, which improves the control flexibility of the application, and configures different objects matching the different values of the same signal parameter, so that the same signal parameter can be used In the case of different values, different preset conditions can be met to distinguish different applications that need to be controlled, or different functional items, or functional items of different applications, which improves the flexibility of controlling applications.

可选地,用户输入单元1007,用于在所述磁感线圈的电路端口设置为与所述磁感线圈连接的芯片的输入端口的情况下,接收第一输入,其中,在所述第一输入的作用下,所述电路端口产生输入至所述芯片的脉冲信号。Optionally, the user input unit 1007 is configured to receive a first input when the circuit port of the magnetic induction coil is set as an input port of a chip connected to the magnetic induction coil, wherein in the first Under the action of input, the circuit port generates a pulse signal input to the chip.

本申请实施例中,磁感线圈的电路端口与芯片连接,那么在所述磁感线圈的电路端口设置为该芯片的输入端口的情况下,则可以通过接收第一输入并响应于该第一输入,来进行目标应用的目标功能项的控制,其中,由于该电路端口配置为芯片的输入端口,因此,磁感线圈产生的脉冲信号可以通过该输入端口输入至芯片内,从而使得芯片可以响应于该第一输入,依据检测到的输入的脉冲信号来进行应用的控制,无需额外启动传感器来控制应用,降低信令开销和内存占用,并节省电能。In the embodiment of the present application, the circuit port of the magnetic induction coil is connected to the chip. If the circuit port of the magnetic induction coil is set as the input port of the chip, it can receive the first input and respond to the first input port. Input to control the target function items of the target application. Since the circuit port is configured as the input port of the chip, the pulse signal generated by the magnetic induction coil can be input into the chip through the input port, so that the chip can respond Based on the first input, the application is controlled based on the detected input pulse signal. There is no need to activate additional sensors to control the application, thereby reducing signaling overhead and memory usage, and saving power.

可选地,处理器1010,用于在第一应用启动的情况下,将所述电路端口设置为所述芯片的输出端口;在所述第一应用关闭的情况下,将所述电路端口设置为所述芯片的所述输入端口,其中,所述第一应用与所述目标应用不同。Optionally, the processor 1010 is configured to set the circuit port as the output port of the chip when the first application is started; when the first application is closed, set the circuit port to is the input port of the chip, wherein the first application is different from the target application.

本申请实施例中,可以根据所控制的应用的不同,而将磁感线圈的电路端口灵活地设置为芯片的输入端口或输出端口,便于基于所控制的应用,来将电路端口切换为与该应用匹配的输入端口或输出端口,实现了对不同类型的应用的灵活控制,且实现了对同一组电路端口的复用,无需增加额外电路,减少装置体积。In the embodiment of the present application, the circuit port of the magnetic induction coil can be flexibly set as the input port or the output port of the chip according to the controlled application, so that the circuit port can be switched to the same one based on the controlled application. The application of matching input ports or output ports enables flexible control of different types of applications, and enables the reuse of the same set of circuit ports without adding additional circuits and reducing the size of the device.

可选地,处理器1010,用于在所述装置的红外线传感器检测到的红外线的波长为预设波长范围的情况下,响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项。Optionally, the processor 1010 is configured to respond to the first input when the wavelength of the infrared ray detected by the infrared sensor of the device is within a preset wavelength range, when the signal parameters of the pulse signal meet the preset wavelength range. If a condition is provided, identify the target function item of the target application that matches the signal parameter and the preset condition.

本申请实施例中,为了提升对应用控制的准确性,可以在用户无意触发第一输入的情况下,而不对第一输入进行响应,换句话说,只有在所述装置的红外线传感器检测到的红外线的波长为预设波长范围的情况下,才会对第一输入进行响应,这样可以避免当用户将手机放置在口袋内,因用户走动所导致接收到第一输入而对第一输入进行响应的情况,提升了对应用控制的准确性。In the embodiment of the present application, in order to improve the accuracy of application control, the user may not respond to the first input when the user unintentionally triggers the first input. In other words, only when the infrared sensor of the device detects The first input will only be responded to when the wavelength of the infrared ray is within the preset wavelength range. This can prevent the user from receiving the first input and responding to the first input due to the user's movement when the mobile phone is placed in the pocket. situation, improving the accuracy of application control.

应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(GraphicsProcessing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1009可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042. The graphics processor 10041 is used for recording data generated by an image capture device (such as Process the image data of still pictures or videos obtained by the camera). The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. Touch panel 10071, also known as touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here. Memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 1010 can integrate an application processor and a modem processor, where the application processor mainly processes operating systems, user interfaces, application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above modem processor may not be integrated into the processor 1010.

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述控制方法实施例的各个过程,其中,所述处理器与包括磁体模组和磁感线圈的潜望镜头连接,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above control method embodiment is implemented, wherein the processing The device is connected to a periscope lens including a magnet module and a magnetic induction coil, and can achieve the same technical effect. To avoid duplication, it will not be described again here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,其中,所述处理器与包括磁体模组和磁感线圈的潜望镜头连接,所述处理器实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions, wherein the processor and the processor include: The magnet module is connected to the periscope lens of the magnetic induction coil. The processor implements each process of the above control method embodiment and can achieve the same technical effect. To avoid duplication, it will not be described again here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (10)

1.一种控制方法,其特征在于,应用于包括潜望镜头和芯片的装置,其中,所述潜望镜头包括磁体模组、磁感线圈和镜头模组,所述镜头模组的侧壁设置有所述磁体模组,所述磁感线圈与所述磁体模组相对设置,所述芯片与所述磁感线圈通过电路端口连接,在利用所述潜望镜头进行拍摄对焦的情况下,所述芯片通过所述电路端口输出电流给所述磁感线圈,所述磁体模组推动所述镜头模组移动;所述电路端口包括GPIO接口;1. A control method, characterized in that it is applied to a device including a periscope lens and a chip, wherein the periscope lens includes a magnet module, a magnetic induction coil and a lens module, and the side wall of the lens module is provided with The magnet module, the magnetic induction coil and the magnet module are arranged oppositely, the chip and the magnetic induction coil are connected through a circuit port, and when the periscope lens is used for shooting and focusing, the chip The circuit port outputs current to the magnetic induction coil, and the magnet module pushes the lens module to move; the circuit port includes a GPIO interface; 在利用所述潜望镜头进行应用控制的情况下,所述方法包括:In the case of using the periscope lens for application control, the method includes: 接收第一输入,其中,在所述第一输入的作用下,所述磁感线圈相对所述磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号,所述芯片通过所述电路端口接收所述脉冲信号;Receive a first input, wherein, under the action of the first input, the magnetic induction coil undergoes a cutting movement relative to the magnetic induction line of the magnet module, so that the magnetic induction coil generates a pulse signal, and the chip receiving the pulse signal through the circuit port; 响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项;In response to the first input, if the signal parameters of the pulse signal meet the preset conditions, identify the target function item of the target application that matches the signal parameters and the preset conditions; 其中,不同的信号参数与不同的对象相匹配,同一信号参数的不同值与不同的对象相匹配,其中,所述对象包括应用和/或功能项;Wherein, different signal parameters are matched with different objects, and different values of the same signal parameter are matched with different objects, wherein the objects include applications and/or functional items; 对所述目标应用的所述目标功能项进行控制。Control the target function items of the target application. 2.根据权利要求1所述的方法,其特征在于,所述接收第一输入,包括:2. The method of claim 1, wherein receiving the first input includes: 在所述磁感线圈的电路端口设置为与所述磁感线圈连接的芯片的输入端口的情况下,接收第一输入,其中,在所述第一输入的作用下,所述电路端口产生输入至所述芯片的脉冲信号。In the case where the circuit port of the magnetic induction coil is set as an input port of a chip connected to the magnetic induction coil, a first input is received, wherein under the action of the first input, the circuit port generates an input pulse signal to the chip. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, characterized in that, the method further comprises: 在第一应用启动的情况下,将所述电路端口设置为所述芯片的输出端口;When the first application is started, the circuit port is set as the output port of the chip; 在所述第一应用关闭的情况下,将所述电路端口设置为所述芯片的所述输入端口,其中,所述第一应用与所述目标应用不同。In the case where the first application is closed, the circuit port is set as the input port of the chip, wherein the first application is different from the target application. 4.根据权利要求1所述的方法,其特征在于,所述响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项,包括:4. The method according to claim 1, characterized in that, in response to the first input, when the signal parameters of the pulse signal satisfy a preset condition, identifying the signal parameters and the The target function items of the target application matching the preset conditions include: 在所述装置的红外线传感器检测到的红外线的波长为预设波长范围的情况下,响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项。When the wavelength of the infrared ray detected by the infrared sensor of the device is within the preset wavelength range, in response to the first input, when the signal parameters of the pulse signal meet the preset condition, the identification of the The signal parameters and the target function items of the target application matching the preset conditions. 5.一种控制装置,其特征在于,所述装置包括:潜望镜头和芯片,其中,所述潜望镜头包括磁体模组、磁感线圈和镜头模组,所述镜头模组的侧壁设置有所述磁体模组,所述磁感线圈与所述磁体模组相对设置,所述芯片与所述磁感线圈通过电路端口连接,在利用所述潜望镜头进行拍摄对焦的情况下,所述芯片通过所述电路端口输出电流给所述磁感线圈,所述磁体模组推动所述镜头模组移动;5. A control device, characterized in that the device includes: a periscope lens and a chip, wherein the periscope lens includes a magnet module, a magnetic induction coil and a lens module, and the side wall of the lens module is provided with The magnet module, the magnetic induction coil and the magnet module are arranged oppositely, the chip and the magnetic induction coil are connected through a circuit port, and when the periscope lens is used for shooting and focusing, the chip Current is output to the magnetic induction coil through the circuit port, and the magnet module pushes the lens module to move; 所述装置还包括:The device also includes: 接收模块,用于接收第一输入,其中,在所述第一输入的作用下,所述磁感线圈相对所述磁体模组的磁感线发生切割运动,以使所述磁感线圈产生脉冲信号,所述芯片通过所述电路端口接收所述脉冲信号;所述电路端口包括GPIO接口;A receiving module configured to receive a first input, wherein, under the action of the first input, the magnetic induction coil undergoes a cutting motion relative to the magnetic induction line of the magnet module, so that the magnetic induction coil generates pulses signal, the chip receives the pulse signal through the circuit port; the circuit port includes a GPIO interface; 识别模块,用于响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项;An identification module configured to, in response to the first input, identify the target function item of the target application that matches the signal parameter and the preset condition when the signal parameters of the pulse signal meet the preset condition; 其中,不同的信号参数与不同的对象相匹配,同一信号参数的不同值与不同的对象相匹配,其中,所述对象包括应用和/或功能项;Wherein, different signal parameters are matched with different objects, and different values of the same signal parameter are matched with different objects, wherein the objects include applications and/or functional items; 控制模块,用于对目标应用的目标功能项进行控制。The control module is used to control the target function items of the target application. 6.根据权利要求5所述的装置,其特征在于,6. The device according to claim 5, characterized in that, 所述接收模块,还用于在所述磁感线圈的电路端口设置为与所述磁感线圈连接的芯片的输入端口的情况下,接收第一输入,其中,在所述第一输入的作用下,所述电路端口产生输入至所述芯片的脉冲信号。The receiving module is also configured to receive a first input when the circuit port of the magnetic induction coil is set as an input port of a chip connected to the magnetic induction coil, wherein the function of the first input Next, the circuit port generates a pulse signal input to the chip. 7.根据权利要求6所述的装置,其特征在于,所述装置还包括:7. The device according to claim 6, characterized in that the device further comprises: 第一设置模块,用于在第一应用启动的情况下,将所述电路端口设置为所述芯片的输出端口;A first setting module configured to set the circuit port as the output port of the chip when the first application is started; 第二设置模块,用于在所述第一应用关闭的情况下,将所述电路端口设置为所述芯片的所述输入端口,其中,所述第一应用与所述目标应用不同。A second setting module configured to set the circuit port as the input port of the chip when the first application is closed, wherein the first application is different from the target application. 8.根据权利要求5所述的装置,其特征在于,8. The device according to claim 5, characterized in that, 所述识别模块,还用于在所述装置的红外线传感器检测到的红外线的波长为预设波长范围的情况下,响应于所述第一输入,在所述脉冲信号的信号参数满足预设条件的情况下,识别与所述信号参数以及所述预设条件匹配的目标应用的目标功能项。The identification module is also configured to respond to the first input when the wavelength of the infrared ray detected by the infrared sensor of the device is within a preset wavelength range, and when the signal parameters of the pulse signal meet the preset conditions. In the case of identifying the target function item of the target application that matches the signal parameter and the preset condition. 9.一种电子设备,其特征在于,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至4中任意一项所述的控制方法的步骤,其中,所述电子设备还包括包含磁体模组和磁感线圈的潜望镜头。9. An electronic device, characterized in that it includes a processor, a memory and a program or instructions stored on the memory and executable on the processor. The program or instructions are implemented when executed by the processor. The step of the control method according to any one of claims 1 to 4, wherein the electronic device further includes a periscope lens including a magnet module and a magnetic induction coil. 10.一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至4中任意一项所述的控制方法的步骤,其中,所述处理器与包括磁体模组和磁感线圈的潜望镜头连接。10. A readable storage medium, characterized in that the readable storage medium stores programs or instructions, and when the programs or instructions are executed by a processor, the control as claimed in any one of claims 1 to 4 is realized. Steps of the method, wherein the processor is connected to a periscope lens including a magnet module and a magnetic induction coil.
CN202011149156.8A 2020-10-23 2020-10-23 Control method, control device, electronic equipment and readable storage medium Active CN112261711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011149156.8A CN112261711B (en) 2020-10-23 2020-10-23 Control method, control device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011149156.8A CN112261711B (en) 2020-10-23 2020-10-23 Control method, control device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112261711A CN112261711A (en) 2021-01-22
CN112261711B true CN112261711B (en) 2024-01-12

Family

ID=74261114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011149156.8A Active CN112261711B (en) 2020-10-23 2020-10-23 Control method, control device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112261711B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118859540A (en) * 2024-09-26 2024-10-29 荣耀终端有限公司 Smart glasses, control method of smart glasses, storage medium and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3077287U (en) * 2000-10-27 2001-05-18 船井電機株式会社 Information display device and data processing device
CN101884166A (en) * 2007-10-01 2010-11-10 阿莱戈微系统公司 Linear Motor Controller Based on Hall Effect
CN206906998U (en) * 2017-05-26 2018-01-19 徐孝海 Magnetic induction type mouse
CN110139013A (en) * 2019-06-01 2019-08-16 瑞声科技(新加坡)有限公司 Camera module and periscopic camera
CN111327744A (en) * 2020-02-24 2020-06-23 维沃移动通信有限公司 A function control component and electronic equipment
CN111638850A (en) * 2020-05-29 2020-09-08 维沃移动通信有限公司 Response method, response device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3077287U (en) * 2000-10-27 2001-05-18 船井電機株式会社 Information display device and data processing device
CN101884166A (en) * 2007-10-01 2010-11-10 阿莱戈微系统公司 Linear Motor Controller Based on Hall Effect
CN206906998U (en) * 2017-05-26 2018-01-19 徐孝海 Magnetic induction type mouse
CN110139013A (en) * 2019-06-01 2019-08-16 瑞声科技(新加坡)有限公司 Camera module and periscopic camera
CN111327744A (en) * 2020-02-24 2020-06-23 维沃移动通信有限公司 A function control component and electronic equipment
CN111638850A (en) * 2020-05-29 2020-09-08 维沃移动通信有限公司 Response method, response device and electronic equipment

Also Published As

Publication number Publication date
CN112261711A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
RU2637900C2 (en) Element activation method and device
CN104503691B (en) Apparatus control method, device and intelligent terminal
CN104991789B (en) Application program open method and device
CN110140342B (en) Screen locking interface processing method and terminal
CN107919123A (en) More voice assistant control method, device and computer-readable recording medium
CN107786743A (en) Prevent the method and device of terminal false touch
WO2019218886A1 (en) Application pre-loading management method, device, storage medium and smart terminal
CN105894267A (en) Mobile payment service and a user terminal supporting the mobile payment service
CN104657057A (en) Terminal waking method and device
CN104298547A (en) Terminal setting method and device
CN112417421A (en) Scanning method, scanning device, electronic equipment and readable storage medium
CN108847242A (en) Control method of electronic device, device, storage medium and electronic equipment
CN104635918A (en) Control method and control device of electronic equipment and electronic equipment
CN107426802A (en) A kind of terminal management method and device
CN104898889A (en) Character determining method and device
EP2765482A1 (en) Handheld electronic apparatus and operation method thereof
CN111684781A (en) Device for identifying application program in mobile terminal and terminal
CN108133180A (en) Fingerprint identification method, device and terminal
CN107562356B (en) Fingerprint identification positioning method and device, storage medium and electronic equipment
CN112261711B (en) Control method, control device, electronic equipment and readable storage medium
CN113282359A (en) Application reminding method and device and electronic equipment
CN107563163A (en) A kind of screen unlocked by fingerprint method and terminal
CN107422978A (en) Gesture unlocking method, device, terminal and storage medium
CN106455002A (en) Wireless search method and device, and terminal
CN112596600B (en) Screen unlocking method and device, storage medium 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