[go: up one dir, main page]

CN106576123A - A method, an apparatus and an electronic device for controlling an electronic device - Google Patents

A method, an apparatus and an electronic device for controlling an electronic device Download PDF

Info

Publication number
CN106576123A
CN106576123A CN201580042435.5A CN201580042435A CN106576123A CN 106576123 A CN106576123 A CN 106576123A CN 201580042435 A CN201580042435 A CN 201580042435A CN 106576123 A CN106576123 A CN 106576123A
Authority
CN
China
Prior art keywords
pressure
function
electronic device
pressure operation
preset
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.)
Pending
Application number
CN201580042435.5A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN106576123A publication Critical patent/CN106576123A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04105Pressure sensors for measuring the pressure or force exerted on the touch surface without providing the touch position
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

一种控制电子设备(100、200)执行应用功能的装置和方法,当电子设备(100、200)的显示屏(1141、202)处于关闭状态时,检测作用于所述电子设备(100、200)上的第一压力操作的压力值(S101);确定第一压力操作的压力值是否大于或等于预设的第一压力阈值(S102);若是则执行第一功能,显示屏(1141、202)保持关闭状态(S103)。通过压力操作的识别,实现了用户在不点亮屏幕的情况下,也能控制电子设备(100、200)执行预设的应用功能。

A device and method for controlling an electronic device (100, 200) to execute an application function, when the display screen (1141, 202) of the electronic device (100, 200) is in an off state, detection acts on the electronic device (100, 200) ) on the pressure value of the first pressure operation (S101); determine whether the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold (S102); if so, execute the first function, and the display screen (1141, 202 ) remains closed (S103). Through the recognition of the pressure operation, the user can control the electronic device (100, 200) to execute preset application functions without turning on the screen.

Description

控制电子设备的方法、装置及电子设备Method and device for controlling electronic equipment, and electronic equipment

技术领域technical field

本发明实施例涉及数据处理技术,尤其涉及一种控制电子设备执行应用功能的技术。Embodiments of the present invention relate to data processing technologies, and in particular to a technology for controlling electronic devices to execute application functions.

背景技术Background technique

目前手机应用的开启方式主要包括以下几个步骤:用户点击手机上的物理键(如开关机键)来点亮屏幕,界面解锁后进入屏幕主界面,在屏幕主界面中选择应用图标并点击,进入应用主界面后才能使用该应用功能。例如当用户需要使用手机进行录音时,通常需要执行以下四个步骤,即点亮屏幕、解锁、点击进入录音应用、开启录音功能才能开始录音。At present, the opening method of mobile phone applications mainly includes the following steps: the user clicks a physical key (such as a power button) on the mobile phone to light up the screen, enters the main screen interface after the interface is unlocked, selects the application icon in the main screen interface and clicks, Only after entering the main interface of the application can the application function be used. For example, when a user needs to use a mobile phone to record, it usually needs to perform the following four steps, that is, turn on the screen, unlock it, click to enter the recording application, and turn on the recording function to start recording.

在某些应用场景下,当用户不方便点亮屏幕时,根据上述操作步骤用户无法方便的开启手机上的应用功能。In some application scenarios, when it is inconvenient for the user to turn on the screen, the user cannot conveniently open the application function on the mobile phone according to the above operation steps.

发明内容Contents of the invention

本发明实施例提供一种方法及装置,以实现用户在不点亮电子设备屏幕的情况下,控制电子设备执行某些应用功能。Embodiments of the present invention provide a method and an apparatus to enable a user to control an electronic device to execute certain application functions without turning on the screen of the electronic device.

一方面,本发明实施例提供一种控制电子设备的方法,包括:In one aspect, an embodiment of the present invention provides a method for controlling an electronic device, including:

当电子设备的显示屏处于关闭状态时,检测作用于所述电子设备上的第一压力操作的压力信息,所述压力信息包括第一压力操作的压力值;When the display screen of the electronic device is in an off state, detecting pressure information of a first pressure operation acting on the electronic device, where the pressure information includes a pressure value of the first pressure operation;

当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能,所述显示屏保持关闭状态。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is executed, and the display screen remains in an off state.

其中,第一功能是指拍照功能、或录音功能、或录像功能、或拨号呼叫功能或其他应用功能。Wherein, the first function refers to a photographing function, or a recording function, or a video recording function, or a dialing function or other application functions.

在一个可能的设计中,压力信息还包括所述第一压力操作的手势轨迹;所述当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能,所述显示屏保持关闭状态,包括:In a possible design, the pressure information further includes a gesture trajectory of the first pressure operation; and performing the first function when the pressure value of the first pressure operation is greater than or equal to a preset first pressure threshold, The display remains off and includes:

当所述第一压力操作的压力值大于或等于预设的第一压力阈值,根据所述手势轨迹和第一关联关系,确定并执行第一功能,所述显示屏保持关闭状态,其中所述第一关联关系包括手势轨迹和应用功能的关联关系。通过根据压力操作的手势轨迹,控制电子设备执行与手势轨迹对应的应用功能,既能够减少误触风险,又能够控制电子设备根据不同的手势轨迹,执行不同的应用功能。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is determined and executed according to the gesture track and the first association relationship, and the display screen remains off, wherein the The first association relationship includes an association relationship between a gesture track and an application function. By controlling the electronic device to execute the application function corresponding to the gesture track according to the gesture track of the pressure operation, the risk of false touch can be reduced, and the electronic device can be controlled to execute different application functions according to different gesture tracks.

在一个可能的设计中,所述压力信息还包括所述第一压力操作作用于所述电子设备上的触点位置;所述当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能,所述显示屏保持关闭状态,包括:In a possible design, the pressure information also includes the contact position of the first pressure operation acting on the electronic device; when the pressure value of the first pressure operation is greater than or equal to the preset first When a pressure threshold is reached, the first function is executed, and the display screen remains off, including:

当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,根据所述第一压力操作的触点位置和第三关联关系,确定并执行第一功能,所述显示屏保持关闭状态,所述第三关联关系包括触点位置和应用功能的关联关系。通过根据压力操作的触点位置,控制电子设备执行与触点位置对应的应用功能,既能够减少误触风险,又能够控制电子设备根据不同的触点位置,执行不同的应用功能。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is determined and executed according to the contact position of the first pressure operation and the third association relationship, and the display screen The closed state is maintained, and the third association relationship includes an association relationship between a contact position and an application function. By controlling the electronic device to execute the application function corresponding to the contact position according to the contact position of the pressure operation, the risk of false touch can be reduced, and the electronic device can be controlled to perform different application functions according to different contact positions.

在一个可能的设计中,执行第一功能之后,所述方法还包括:In a possible design, after performing the first function, the method further includes:

检测作用于所述电子设备上的第二压力操作的第二压力信息,所述第二压力信息包括第二压力操作的压力值;当所述第二压力操作的压力值大于或等于预设的第二压力阈值时,停止执行所述第一功能。通过第二压力操作,方便用户控制电子设备停止执行正在运行的如录音录像类的应用功能。Detecting second pressure information of a second pressure operation acting on the electronic device, where the second pressure information includes a pressure value of the second pressure operation; when the pressure value of the second pressure operation is greater than or equal to a preset When the second pressure threshold is reached, the execution of the first function is stopped. Through the second pressure operation, it is convenient for the user to control the electronic device to stop running application functions such as recording and video recording.

另一方面,本发明实施例提供一种控制电子设备的装置,包括:检测模块,用于当电子设备的显示屏处于关闭状态时,检测作用于所述电子设备上的第一压力操作的压力信息,所述压力信息包括第一压力操作的压力值;处理模块,用于当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能,所述显示屏保持关闭状态。On the other hand, an embodiment of the present invention provides an apparatus for controlling an electronic device, including: a detection module configured to detect the pressure of the first pressure operation acting on the electronic device when the display screen of the electronic device is in an off state information, the pressure information includes the pressure value of the first pressure operation; the processing module is configured to execute the first function when the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, and the display The screen remains off.

其中,第一功能是指拍照功能、或录音功能、或录像功能、或拨号呼叫功能或其他应用功能。Wherein, the first function refers to a photographing function, or a recording function, or a video recording function, or a dialing function or other application functions.

在一个可能的设计中,所述压力信息还包括所述第一压力操作的手势轨迹;所述处理模块还用于:当所述第一压力操作的压力值大于或等于预设的第一压力阈值,根据所述第一压力操作的手势轨迹和第一关联关系,确定并执行第一功能,所述显示屏保持关闭状态,其中所述第一关联关系包括手势轨迹和应用功能的关联关系。In a possible design, the pressure information further includes the gesture trajectory of the first pressure operation; the processing module is further configured to: when the pressure value of the first pressure operation is greater than or equal to the preset first pressure The threshold is determined and executed according to the gesture track of the first pressure operation and a first association relationship, and the display screen remains in an off state, wherein the first association relationship includes an association relationship between a gesture track and an application function.

在一个可能的设计中,所述压力信息还包括所述第一压力操作作用于所述电子设备上的触点位置;所述处理模块还用于:当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,根据所述第一压力操作的触点位置和第三关联关系,确定并执行第一功能,所述显示屏保持关闭状态,所述第三关联关系包括触点位置和应用功能的关联关系。In a possible design, the pressure information also includes the contact position on the electronic device that the first pressure operation acts on; the processing module is further configured to: when the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is determined and executed according to the contact position of the first pressure operation and the third association relationship, the display screen remains off, and the third association relationship includes Correlation between contact position and application function.

在一个可能的设计中,所述检测模块还用于:检测作用于所述电子设备上的第二压力操作的第二压力信息,所述第二压力信息包括第二压力操作的压力值;所述处理模块还用于:当所述第二压力操作的压力值大于或等于预设的第二压力阈值时,停止执行所述第一功能。In a possible design, the detection module is further configured to: detect second pressure information of a second pressure operation acting on the electronic device, where the second pressure information includes a pressure value of the second pressure operation; The processing module is further configured to: stop executing the first function when the pressure value of the second pressure operation is greater than or equal to a preset second pressure threshold.

另一方面,本发明实施例提供一种电子设备,包括:触摸屏,用于当电子设备的显示屏处于关闭状态时,检测作用于所述电子设备上的第一压力操作的压力信息,所述压力信息包括第一压力操作的压力值;处理器,用于当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能;所述电子设备的显示屏保持关闭状态。On the other hand, an embodiment of the present invention provides an electronic device, including: a touch screen, configured to detect pressure information of a first pressure operation acting on the electronic device when the display screen of the electronic device is in an off state, the The pressure information includes the pressure value of the first pressure operation; the processor is used to execute the first function when the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold; the display screen of the electronic device Leave it closed.

其中,第一功能是指拍照功能、或录音功能、或录像功能、或拨号呼叫功能或其他应用功能。Wherein, the first function refers to a photographing function, or a recording function, or a video recording function, or a dialing function or other application functions.

在一个可能的设计中,所述压力信息还包括所述第一压力操作的手势轨迹;所述处理器还用于:当所述第一压力操作的压力值大于或等于预设的第一压力阈值,根据所述第一压力操作的手势轨迹和第一关联关系,确定并执行第一功能,所述显示屏保持关闭状态,所述第一关联关系包括手势轨迹和应用功能的关联关系。In a possible design, the pressure information further includes the gesture track of the first pressure operation; the processor is further configured to: when the pressure value of the first pressure operation is greater than or equal to the preset first pressure The threshold is determined and executed according to the gesture trace of the first pressure operation and a first association relationship, and the display screen remains in an off state, and the first association relationship includes an association relationship between a gesture trace and an application function.

在一个可能的设计中,所述压力信息还包括所述第一压力操作作用于所述电子设备上的触点位置;所述处理器还用于:当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,根据所述第一压力操作的触点位置和第三关联关系,确定并执行第一功能,所述显示屏保持关闭状态,所述第三关联关系包括触点位置和应用功能的关联关系。In a possible design, the pressure information also includes the position of the contact point on the electronic device that the first pressure operation acts on; the processor is further configured to: when the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is determined and executed according to the contact position of the first pressure operation and the third association relationship, the display screen remains off, and the third association relationship includes Correlation between contact position and application function.

在一个可能的设计中,所述触摸屏还用于:检测作用于所述电子设备上的第二压力操作的第二压力信息,所述第二压力信息包括第二压力操作的压力值;所述处理器还用于:当所述第二压力操作的压力值大于或等于预设的第二压力阈值时,停止执行所述第一功能。In a possible design, the touch screen is further configured to: detect second pressure information of a second pressure operation acting on the electronic device, where the second pressure information includes a pressure value of the second pressure operation; The processor is further configured to: stop executing the first function when the pressure value of the second pressure operation is greater than or equal to a preset second pressure threshold.

在本发明实施例的技术方案中,当电子设备的显示屏处于关闭状态时,检测作用于电子设备上的压力操作的压力值,当该压力值大于或等于预设的压力阈值时,控制电子设备执行第一功能,显示屏始终保持关闭状态。从而实现了用户在不点亮屏幕的情况下,也能控制电子设备执行预设的应用功能。In the technical solution of the embodiment of the present invention, when the display screen of the electronic device is in the off state, the pressure value of the pressure operation acting on the electronic device is detected, and when the pressure value is greater than or equal to the preset pressure threshold, the control electronic The device performs the first function and the display remains off at all times. Therefore, it is realized that the user can control the electronic device to execute preset application functions without turning on the screen.

附图说明Description of drawings

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

图1为本发明实施例中一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device in an embodiment of the present invention;

图2为本发明实施例中另一种电子设备的屏幕的结构示意图;FIG. 2 is a schematic structural diagram of a screen of another electronic device in an embodiment of the present invention;

图3为本发明实施例中一种控制电子设备的方法的流程示意图;FIG. 3 is a schematic flowchart of a method for controlling an electronic device in an embodiment of the present invention;

图4为本发明实施例中一种控制电子设备的装置的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for controlling electronic equipment in an embodiment of the present invention.

具体实施方式detailed description

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

图1为本发明实施例中一种电子设备的结构示意图。电子设备100包括射频(RadioFrequency,RF)电路1110、存储器1120、输入单元1130、显示单元1140、传感器1150、音频电路1160、无线保真(wireless fidelity,WiFi)模块1170、处理器1180、以及电源1190等部件。这些部件通过一条或多条通信总线或信号线进行通信。电子设备100可以是任何电子设备,包括但不限于手持电脑、平板电脑、移动电话、媒体播放器、个人数字助理(PDA)等等,还包括其中两项或多项的组合。本领域技术人员可以理解,图1中示出的设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 1 is a schematic structural diagram of an electronic device in an embodiment of the present invention. The electronic device 100 includes a radio frequency (RadioFrequency, RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, a wireless fidelity (wireless fidelity, WiFi) module 1170, a processor 1180, and a power supply 1190 and other parts. These components communicate over one or more communication buses or signal lines. The electronic device 100 may be any electronic device, including but not limited to a handheld computer, a tablet computer, a mobile phone, a media player, a personal digital assistant (PDA), etc., and a combination of two or more thereof. Those skilled in the art can understand that the device structure shown in FIG. 1 does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

下面结合图1对电子设备100的各个构成部件进行具体的介绍:The components of the electronic device 100 are specifically introduced below in conjunction with FIG. 1 :

RF电路1110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1180处理;另外,将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1110还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 1110 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information from the base station, it is processed by the processor 1180; in addition, the uplink data is sent to the base station. Generally, an RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), email, Short Messaging Service (SMS), etc.

存储器1120可用于存储软件程序以及模块,处理器1180通过运行存储在存储器1120的软件程序以及模块,从而执行电子设备的各种功能应用以及数据处理。存储器1120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1120 can be used to store software programs and modules, and the processor 1180 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 1120 . The memory 1120 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.) and the like; Data created by the use of electronic devices (such as audio data, phonebook, etc.), etc. In addition, the memory 1120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

输入单元1130可用于接收输入的手势信息、数字或字符信息,以及产生与电子设备100的用户设置以及功能控制有关的键信号输入。具体地,输入单元1130可包括触摸屏1131以及其他输入设备1132。触摸屏1131,可收集用户在其上或附近的触控操作(比如用户使用手指、触笔等任何适合的物体或附件在触摸屏1131上或在触摸屏1131附近的操作),并根据预先设定的程式驱动相应的连接装置。具体地,触控操作可包括以下一种或多种操作方式:如压力操作、触摸操作(如滑动操作、拖拽操作)、点击操作、多触点操作、按钮输入、长按输入等。可选的,触摸屏1131可包括触摸传感器(Touch Sensor)和/或压力传感器(ForceSensor),用以检测用户的触摸信号和/或压力信号,并将触摸信号转换成触点坐标、手势轨迹以及其他触摸信息,将压力信号转换为压力值以及其他信息,然后传送以上信息至处理器1180,并能接收处理器1180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏1131。除了触摸屏1131,输入单元1130还可以包括其他输入设备1132。具体地,其他输入设备1132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1130 may be used to receive input gesture information, number or character information, and generate key signal input related to user settings and function control of the electronic device 100 . Specifically, the input unit 1130 may include a touch screen 1131 and other input devices 1132 . The touch screen 1131 can collect the user's touch operation on or near it (such as the user's operation on the touch screen 1131 or near the touch screen 1131 using any suitable object or accessory such as a finger and a stylus), and perform the operation according to a preset program. Drive the corresponding connecting device. Specifically, the touch operation may include one or more of the following operation methods: such as pressure operation, touch operation (such as slide operation, drag operation), click operation, multi-touch operation, button input, long press input, and the like. Optionally, the touch screen 1131 may include a touch sensor (Touch Sensor) and/or a pressure sensor (ForceSensor), to detect the user's touch signal and/or pressure signal, and convert the touch signal into contact coordinates, gesture trajectory and other The touch information converts the pressure signal into a pressure value and other information, and then transmits the above information to the processor 1180, and can receive and execute commands sent by the processor 1180. In addition, the touch screen 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch screen 1131 , the input unit 1130 may further include other input devices 1132 . Specifically, other input devices 1132 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元1140可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种菜单。显示单元1140可包括显示屏1141,可选的,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏1141。进一步的,触摸屏1131可覆盖于显示屏1141之上,当触摸屏1131检测到在其上或附近的触摸操作后,传送给处理器1180以确定触摸事件的类型,随后处理器1180根据触摸事件的类型在显示屏1141上提供相应的视觉输出。虽然在图1中,触摸屏1131与显示屏1141是作为两个独立的部件来实现电子设备的输入和输入功能,但是在某些实施例中,可以将触摸屏1131与显示屏1141集成而实现电子设备的输入和输出功能。The display unit 1140 may be used to display information input by or provided to the user and various menus of the electronic device. The display unit 1140 may include a display screen 1141. Optionally, the display screen 1141 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the touch screen 1131 can be covered on the display screen 1141. When the touch screen 1131 detects a touch operation on or near it, it is sent to the processor 1180 to determine the type of the touch event. A corresponding visual output is provided on the display screen 1141 . Although in FIG. 1, the touch screen 1131 and the display screen 1141 are used as two independent components to realize the input and input functions of the electronic device, in some embodiments, the touch screen 1131 and the display screen 1141 can be integrated to realize the electronic device. input and output functions.

电子设备还可包括至少一种传感器1150,比如压力传感器、光传感器、运动传感器以及其他传感器。压力传感器除了可以位于触摸屏中,还可以位于电子设备的侧边框处,当侧边框受到挤压时,压力传感器即可检测该挤压的压力值。光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏1141的亮度,光传感器可在电子设备移动到耳边时,关闭显示屏1141和/或背光。作为运动传感器的一种,加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The electronic device may also include at least one sensor 1150, such as a pressure sensor, a light sensor, a motion sensor, and other sensors. In addition to being located in the touch screen, the pressure sensor can also be located on the side frame of the electronic device. When the side frame is squeezed, the pressure sensor can detect the pressure value of the squeeze. The light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display screen 1141 according to the brightness of the ambient light, and the light sensor can turn off the display screen 1141 and/or the backlight when the electronic device moves to the ear . As a kind of motion sensor, the acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of electronic equipment (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. Let me repeat.

音频电路1160、扬声器1161以及传声器1162可提供用户与电子设备之间的音频接口。音频电路1160可将接收到的音频数据转换后的电信号,传输到扬声器1161,由扬声器1161转换为声音信号输出;另一方面,传声器1162将收集的声音信号转换为电信号,由音频电路1160接收后转换为音频数据,再将音频数据输出处理器1180处理后,经RF电路1110以发送给比如另一电子设备,或者将音频数据输出至存储器1120以便进一步处理。Audio circuitry 1160, speaker 1161, and microphone 1162 may provide an audio interface between the user and the electronic device. The audio circuit 1160 can transmit the electrical signal converted from the received audio data to the speaker 1161, and the speaker 1161 converts it into an audio signal for output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 1180, and then sent to another electronic device through the RF circuit 1110, or the audio data is output to the memory 1120 for further processing.

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

处理器1180是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器1120内的软件程序和/或模块,以及调用存储在存储器1120内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器1180可包括一个或多个处理单元;优选的,处理器1180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1180中。The processor 1180 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and/or modules stored in the memory 1120, and calling data stored in the memory , to perform various functions of the electronic equipment and process data, so as to monitor the electronic equipment as a whole. Optionally, the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 1180 .

电子设备还包括给各个部件供电的电源1190(比如电池),优选的,电源可以通过电源管理系统与处理器1180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device also includes a power supply 1190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1180 through the power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.

尽管未示出,电子设备还可以包括摄像头、蓝牙模块、GPS模块等,在此不再赘述。Although not shown, the electronic device may also include a camera, a Bluetooth module, a GPS module, etc., which will not be repeated here.

图2为本发明实施例中另一种电子设备的屏幕的结构示意图。该电子设备的触摸屏和显示屏集成于屏幕结构中,屏幕200包括:FIG. 2 is a schematic structural diagram of a screen of another electronic device in an embodiment of the present invention. The touch screen and display screen of the electronic device are integrated in the screen structure, and the screen 200 includes:

盖板201、显示屏202和金属中框203,其中,所述显示屏202位于所述盖板201和所述金属中框203之间,所述金属中框203接地,所述电子设备200还包括:A cover plate 201, a display screen 202, and a metal middle frame 203, wherein the display screen 202 is located between the cover plate 201 and the metal middle frame 203, the metal middle frame 203 is grounded, and the electronic device 200 is also include:

导电层204,所述导电层204贴合于所述显示屏202的下表面2020;a conductive layer 204, the conductive layer 204 is attached to the lower surface 2020 of the display screen 202;

如图2所示,可以理解的是,从电子设备顶层到电子设备底层的垂直方向上看,显示屏的上表面与盖板贴合,而导电层与显示屏的下表面贴合。As shown in FIG. 2 , it can be understood that, viewed from the vertical direction from the top layer of the electronic device to the bottom layer of the electronic device, the upper surface of the display screen is attached to the cover plate, while the conductive layer is attached to the lower surface of the display screen.

如图2所示,所述导电层204和所述金属中框203之间存在至少一个间隙(如图2中导电层与金属中框之间的空白区域),其中,所述导电层204、所述金属中框203和所述至少一个间隙形成至少一个电容器,其中,所述至少一个电容器的电容变化反应出作用于所述盖板201上的至少一个压力的大小。As shown in FIG. 2, there is at least one gap between the conductive layer 204 and the metal middle frame 203 (such as the blank area between the conductive layer and the metal middle frame in FIG. 2), wherein the conductive layer 204, The metal middle frame 203 and the at least one gap form at least one capacitor, wherein the capacitance change of the at least one capacitor reflects the magnitude of at least one pressure acting on the cover plate 201 .

可以理解的是,导电层、金属中框和至少一个间隙形成至少一个电容器,导电层可看作电容器的一个极板,金属中框可看作电容器的另一个极板,该电容器可作为压力感应器,比如:用户在盖板上按压时产生一定的力,力的作用导致导电层发生形变,使得电容器的两个极板之间的距离发生改变,从而电容器的电容发生变化,进一步可通过电容器的电容的变化反映出作用在盖板上的压力的大小,比如,该结构的电容器作为压力感应器,可以感应出从轻按到重压之间的6万阶的压力,从而可以识别出不同阶的压力。It can be understood that the conductive layer, the metal middle frame and at least one gap form at least one capacitor, the conductive layer can be regarded as one pole plate of the capacitor, the metal middle frame can be regarded as the other pole plate of the capacitor, and the capacitor can be used as a pressure sensor For example, when the user presses the cover plate, a certain force is generated, and the force causes the conductive layer to deform, so that the distance between the two plates of the capacitor changes, so that the capacitance of the capacitor changes, and further through the capacitor The change of capacitance reflects the pressure acting on the cover. For example, the capacitor of this structure acts as a pressure sensor, which can sense 60,000 steps of pressure from light pressing to heavy pressing, so that different pressures can be identified. stage pressure.

可以理解的是,电容器的电容的变化与压力的大小成正比例关系,比如,电容器的电容的变化越大,则反应出作用于所述盖板上的压力越大,或者作用于所述盖板上的压力越大,则导致电容器的电容的变化越大。It can be understood that the change in the capacitance of the capacitor is proportional to the magnitude of the pressure. For example, the greater the change in the capacitance of the capacitor, the greater the pressure acting on the cover, or the greater the pressure on the cover. The greater the pressure on the capacitor, the greater the change in the capacitance of the capacitor.

本发明实施例提供的技术方案应用场景为:当电子设备的显示屏处于关闭状态时,通过第一压力操作控制电子设备执行第一功能,整个过程中显示屏始终保持关闭状态。The application scenario of the technical solution provided by the embodiment of the present invention is: when the display screen of the electronic device is in the off state, the electronic device is controlled to perform the first function through the first pressure operation, and the display screen is always kept in the off state during the whole process.

结合上述电子设备的硬件结构,通过计算机软件程序实现本发明实施例中的技术方案,包括:In combination with the hardware structure of the above-mentioned electronic equipment, the technical solutions in the embodiments of the present invention are realized through computer software programs, including:

电子设备的显示屏处于关闭状态时,触摸屏被配置为检测用户作用于电子设备的触摸屏上的第一压力操作,获取第一压力操作的压力信息(如第一压力操作的压力值),并发送该压力值至处理器。When the display screen of the electronic device is in an off state, the touch screen is configured to detect a first pressure operation performed by the user on the touch screen of the electronic device, obtain pressure information of the first pressure operation (such as the pressure value of the first pressure operation), and send This pressure value is sent to the processor.

处理器被配置为收到上述压力值后,首先确定该压力值是否大于或等于预设的第一压力阈值,如果该压力值大于或等于预设的第一压力阈值,则确定执行电子设备的第一功能,显示屏一直保持关闭状态。The processor is configured to first determine whether the pressure value is greater than or equal to a preset first pressure threshold after receiving the above pressure value, and if the pressure value is greater than or equal to the preset first pressure threshold, determine to execute the electronic device. The first function, the display remains off.

第一功能可以是用户自行设置的功能,也可以是电子设备自动设置的功能,比如录音、录像、拍照、拨号呼叫等。The first function may be a function set by the user, or a function automatically set by the electronic device, such as audio recording, video recording, photographing, dialing and calling.

例如,当电子设备的显示屏处于关闭状态时,触摸屏检测到用户作用于其上的压力操作引起了触摸屏电容值的变化,根据该电容值的变化获得压力操作的压力值,并发送该压力操作的压力值至处理器。处理器收到该压力操作的压力值,确定该压力操作的压力值大于预设的第一压力阈值,则控制电子设备执行拍照功能。具体地,处理器发送指令控制电子设备的摄像头上电,并根据在预设的时间内自动进行拍照。For example, when the display screen of the electronic device is in the off state, the touch screen detects that the user's pressure operation on it causes a change in the capacitance value of the touch screen, obtains the pressure value of the pressure operation according to the change in the capacitance value, and sends the pressure operation pressure value to the processor. The processor receives the pressure value of the pressure operation, determines that the pressure value of the pressure operation is greater than the preset first pressure threshold, and then controls the electronic device to perform the photographing function. Specifically, the processor sends an instruction to control the camera of the electronic device to be powered on, and automatically take pictures within a preset time.

下面将对以下各实施例中的用词和术语进行解释:Words and terms in the following embodiments will be explained below:

当本发明实施例中提及“第一”、“第二”等序数词时,除非根据上下文确实表达顺序之意,应当理解为仅仅是起区分之用。例如“第一压力操作”和“第二压力操作”都表示压力操作,但分别表示不同的压力操作。When ordinal numerals such as "first" and "second" are mentioned in the embodiments of the present invention, unless the meaning of order is actually expressed according to the context, it should be understood that they are only used for distinction. For example, "first pressure operation" and "second pressure operation" both represent pressure operations, but respectively represent different pressure operations.

在本发明某些实施例中提及“显示屏处于关闭状态”时,是指电子设备处于待机状态,但显示屏为黑屏(或称熄屏)的状态,此时电子设备可以运行安装于电子设备上的应用功能,也可以不运行应用功能。当显示屏被完全点亮时,将显示电子设备的锁屏界面,电子设备由待机状态进入锁屏状态。锁屏状态是指屏幕锁定且通过显示预先设定的特定内容来提供解锁界面,用户需要在该界面上输入特定密码或执行特定操作/手势才能退出锁屏状态进入解锁状态;而在解锁状态下,用户可正常使用电子设备各种功能。When referring to "the display screen is off" in some embodiments of the present invention, it refers to the state that the electronic device is in a standby state, but the display screen is black (or called off), and the electronic device can run at this time. The application function on the device may also not run the application function. When the display screen is fully lit, the lock screen interface of the electronic device will be displayed, and the electronic device enters the lock screen state from the standby state. The lock screen state refers to the screen lock and provides an unlock interface by displaying preset specific content. The user needs to enter a specific password or perform a specific operation/gesture on this interface to exit the lock screen state and enter the unlock state; while in the unlock state , the user can normally use various functions of the electronic device.

在本发明某些实施例中提及“压力操作”时,是指用户使用手指、手掌、触笔等任何适合的物体或附件以一定的压力在触摸屏上进行的按压操作。进一步地,该压力操作为能够引起触摸屏电容值变化的按压操作,避免触摸屏被具有一定硬度的物体挤压时,造成误触。本发明某些实施例中并不限定压力操作的实施主体、压力操作的个数、压力操作作用于触摸屏上的位置等。例如当多个压力操作同时作用于触摸屏上时,可以同时检测所有压力操作,也可以检测任意一压力操作。触摸屏可以检测作用于触摸屏上的任意位置的压力操作,也可以检测作用于触摸屏预设位置处的压力操作。压力操作的时间可长可短,即用户可以以一定的压力在触摸屏上进行按压操作后即离开(即“短按”),也可以以一定的压力持续在触摸屏上进行按压操作(即“长按”)。When “pressure operation” is mentioned in some embodiments of the present invention, it refers to the pressing operation performed by the user on the touch screen with a certain pressure using any suitable object or accessory such as fingers, palms, and stylus. Further, the pressure operation is a pressing operation that can cause a change in the capacitance value of the touch screen, so as to avoid false touches caused when the touch screen is squeezed by an object with a certain hardness. In some embodiments of the present invention, the subject of the pressure operation, the number of the pressure operation, the position on the touch screen where the pressure operation is applied, and the like are not limited. For example, when multiple pressure operations act on the touch screen at the same time, all pressure operations can be detected at the same time, and any one pressure operation can also be detected. The touch screen can detect a pressure operation acting on any position on the touch screen, and can also detect a pressure operation acting on a preset position of the touch screen. The pressure operation time can be long or short, that is, the user can press the touch screen with a certain pressure and then leave (that is, "short press"), or continue to press the touch screen with a certain pressure (that is, "long press"). according to").

下面以具体的实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solution of the present invention will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

图3为本发明实施例中一种控制电子设备的方法的流程示意图。如图3所示,该方法流程由电子设备执行,该过程的方法步骤可以顺序执行或并行执行,也可以包括更多或更少的方法步骤。该方法流程包括:Fig. 3 is a schematic flowchart of a method for controlling an electronic device in an embodiment of the present invention. As shown in FIG. 3 , the method flow is executed by an electronic device, and the method steps of the process can be executed sequentially or in parallel, and can also include more or less method steps. The method flow includes:

S101:当电子设备的显示屏处于关闭状态时,检测作用于所述电子设备上的第一压力操作的压力信息;S101: Detect pressure information of a first pressure operation acting on the electronic device when the display screen of the electronic device is in an off state;

其中,所述压力信息包括第一压力操作的压力值。Wherein, the pressure information includes the pressure value of the first pressure operation.

S102:确定第一压力操作的压力值是否大于或等于预设的第一压力阈值;若是则进入步骤S103,否则流程结束;S102: Determine whether the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold; if so, enter step S103, otherwise the process ends;

S103:执行第一功能,显示屏保持关闭状态。S103: Execute the first function, and keep the display screen in an off state.

当电子设备的显示屏处于关闭状态时,用户在电子设备上施加第一压力操作。具体地,电子设备可在侧边框中集成压力传感器,当用户紧握电子设备的侧边框时,电子设备侧边框中的压力传感器即可检测到用户的压力操作,获取该压力操作的压力信息。另外,电子设备还可以在触摸屏中集成压力传感器,当用户按压电子设备的触摸屏时,电子设备触摸屏中的压力传感器即可检测到用户的压力操作,获取该压力操作的压力信息。其中压力信息至少包括第一压力操作的压力值。When the display screen of the electronic device is in a closed state, the user applies a first pressure operation on the electronic device. Specifically, the electronic device can integrate a pressure sensor in the side frame. When the user grips the side frame of the electronic device, the pressure sensor in the side frame of the electronic device can detect the user's pressure operation and obtain the pressure information of the pressure operation. In addition, the electronic device can also integrate a pressure sensor in the touch screen. When the user presses the touch screen of the electronic device, the pressure sensor in the touch screen of the electronic device can detect the user's pressure operation and obtain the pressure information of the pressure operation. The pressure information at least includes the pressure value of the first pressure operation.

确定第一压力操作的压力值是否大于或等于预设的第一压力阈值,其中第一压力阈值可由用户自行设置大小,也可以由电子设备自动设置。It is determined whether the pressure value of the first pressure operation is greater than or equal to a preset first pressure threshold, where the first pressure threshold can be set by the user, or can be automatically set by the electronic device.

当第一压力操作的压力值大于或等于预设的第一压力阈值时,控制电子设备执行第一功能。其中,第一功能为安装于电子设备中的功能,可以是电子设备出厂时自带的系统应用功能,也可以是用户安装在电子设备中的应用软件的功能。电子设备的显示屏始终保持关闭状态(即黑屏)。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the control electronic device executes the first function. Wherein, the first function is a function installed in the electronic device, which may be a system application function that comes with the electronic device when it leaves the factory, or a function of application software installed in the electronic device by the user. The display screen of the electronic device remains off (ie, black screen) at all times.

可选地,电子设备除检测第一压力操作的压力值外,还检测第一压力操作的手势轨迹。例如用户用手指以5N的压力值按压触摸屏左边缘,保持手指与触摸屏的接触和手指按压触摸屏的压力值,水平移动手指与触摸屏的接触点至触摸屏的右边缘。可知该第一压力操作的压力值为5N,手势轨迹直线手势。触摸屏检测用户手指接触触摸屏的接触点坐标,并根据接触点的坐标确定该压力操作的手势轨迹。Optionally, in addition to detecting the pressure value of the first pressure operation, the electronic device also detects a gesture track of the first pressure operation. For example, the user presses the left edge of the touch screen with a finger at a pressure value of 5N, keeps the finger in contact with the touch screen and presses the pressure value of the finger on the touch screen, and moves the point of contact between the finger and the touch screen horizontally to the right edge of the touch screen. It can be seen that the pressure value of the first pressure operation is 5N, and the gesture track is a straight line gesture. The touch screen detects the contact point coordinates of the user's finger touching the touch screen, and determines the gesture track of the pressure operation according to the coordinates of the contact point.

在步骤S103之前,该方法流程还包括:Before step S103, the method flow also includes:

当所述第一压力操作的压力值大于或等于预设的第一压力阈值,根据所述第一压力操作的手势轨迹和第一关联关系,确定第一功能。When the pressure value of the first pressure operation is greater than or equal to a preset first pressure threshold, the first function is determined according to the gesture trajectory of the first pressure operation and the first association relationship.

具体地,在电子设备中预先设置第一关联关系,其中,第一关联关系包括手势轨迹和应用功能的关联关系。其中手势轨迹可由用户自行设置或由电子设备自动设置。第一关联关系在电子设备中的存储形态有多种,例如数据库文件或配置文件或一段程序代码等。例如,第一关联关系如表1所示:Specifically, a first association relationship is preset in the electronic device, where the first association relationship includes an association relationship between a gesture track and an application function. The gesture track can be set by the user or automatically set by the electronic device. There are various storage forms of the first association relationship in the electronic device, such as a database file or a configuration file or a piece of program code. For example, the first association relationship is shown in Table 1:

表1第一关联关系Table 1 First association relationship

根据第一关联关系可知,直线手势对应的功能为录音,因此当检测到第一压力操作的手势轨迹为直线手势时,确定第一功能为录音功能。电子设备执行第一功能即录音功能。According to the first correlation, it can be seen that the function corresponding to the straight line gesture is recording, so when it is detected that the gesture track of the first pressure operation is a straight line gesture, it is determined that the first function is the recording function. The electronic device performs a first function, namely a recording function.

如果第一压力操作的手势轨迹并不是第一关联关系中的手势轨迹,则电子设备不对第一压力操作做出响应。例如第一压力操作为两次快速按压操作,由于第一关联关系中未规定两次快速按压手势对应的功能,因此电子设备不对该第一压力操作做出响应,不启动新的功能。If the gesture track of the first pressure operation is not the gesture track in the first association relationship, the electronic device does not respond to the first pressure operation. For example, the first pressure operation is two quick press operations. Since the functions corresponding to the two quick press gestures are not specified in the first association relationship, the electronic device does not respond to the first pressure operation and does not start a new function.

可选地,在步骤S103之前,该方法流程还包括:Optionally, before step S103, the method flow also includes:

当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,根据所述第一压力操作的压力值和第二关联关系,确定与所述第一压力操作的压力值具有关联关系的功能为第一功能。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, according to the pressure value of the first pressure operation and the second correlation relationship, it is determined that the pressure value of the first pressure operation has a relationship with the first pressure operation The function of the association relationship is the first function.

其中,所述第二关联关系包括压力值和应用功能的关联关系。Wherein, the second association relationship includes an association relationship between a pressure value and an application function.

具体地,电子设备中预先设置第二关联关系,第二关联关系包括压力值和电子设备中应用功能的关联关系。即第二关联关系用于定义不同的压力值分别对应不同的电子设备的功能。第二关联关系中的具体内容可以是具体的压力值大小与电子设备中功能的关联关系,也可以是压力值范围或压力等级与电子设备中功能的关联关系。第二关联关系在电子设备中的存储形态有多种,例如数据库文件或配置文件或一段程序代码等。Specifically, a second association relationship is preset in the electronic device, and the second association relationship includes an association relationship between a pressure value and an application function in the electronic device. That is, the second association relationship is used to define that different pressure values correspond to different functions of the electronic device. The specific content in the second association relationship may be the relationship between a specific pressure value and a function in the electronic device, or the relationship between a pressure value range or pressure level and a function in the electronic device. There are various storage forms of the second association relationship in the electronic device, such as a database file or a configuration file or a piece of program code.

以第二关联关系的内容形态为压力值等级与电子设备中功能的关联关系为例:Take the content form of the second relationship as an example of the relationship between the pressure level and the function of the electronic device:

在电子设备中预先设置按照压力值的大小划分的压力等级表,如表2所示,假设在电子设备中预设四个压力等级,每个压力等级代表压力值的范围:The pressure level table divided by the size of the pressure value is preset in the electronic device, as shown in Table 2, assuming that four pressure levels are preset in the electronic device, and each pressure level represents the range of the pressure value:

表2压力等级表Table 2 Pressure rating table

压力等级Pressure Level 压力值范围(N为牛顿)Pressure value range (N is Newton) 一级压力primary pressure 1N-3N1N-3N 二级压力secondary pressure 4N-6N4N-6N 三级压力tertiary pressure 7N-9N7N-9N 四级压力four pressure 10N-12N10N-12N

在电子设备中预先设置第二关联关系,第二关联关系以数据库关系表的形式存储于电子设备中,如表3所示:The second association relationship is preset in the electronic device, and the second association relationship is stored in the electronic device in the form of a database relational table, as shown in Table 3:

表3第二关联关系Table 3 Second association relationship

当电子设备的压力传感器检测到作用于电子设备上的第一压力操作的压力值为5N时,预设第一压力阈值为3N,确定第一压力操作的压力值大于第一压力阈值。When the pressure sensor of the electronic device detects that the pressure value of the first pressure operation acting on the electronic device is 5N, the preset first pressure threshold is 3N, and it is determined that the pressure value of the first pressure operation is greater than the first pressure threshold.

根据第一压力操作的压力值和预设在电子设备中的压力等级表,确定第一压力操作的压力值为二级压力。根据第一压力操作压力值的压力等级和预设在电子设备中的第二关联关系,确定第一压力操作的压力值所对应的功能为录像,因此确定第一功能为录像。According to the pressure value of the first pressure operation and the pressure level table preset in the electronic device, it is determined that the pressure value of the first pressure operation is the secondary pressure. According to the pressure level of the pressure value of the first pressure operation and the second correlation preset in the electronic device, it is determined that the function corresponding to the pressure value of the first pressure operation is video recording, and thus the first function is determined as video recording.

控制电子设备的摄像头模组开启上电,并执行录像操作,整个过程中电子设备的显示屏处于关闭状态。The camera module of the control electronic device is turned on and powered on, and performs a video recording operation, and the display screen of the electronic device is turned off during the whole process.

可选地,压力信息还包括所述第一压力操作作用于所述电子设备上的触点位置,在步骤S103之前,该方法流程还包括:Optionally, the pressure information also includes the contact position on the electronic device that the first pressure operation acts on, and before step S103, the method flow further includes:

当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,根据所述第一压力操作的触点位置和第三关联关系,确定与所述第一压力操作的触点位置具有关联关系的功能为第一功能。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, according to the position of the contact point of the first pressure operation and the third association relationship, determine the contact point of the first pressure operation The function whose position has an associated relationship is the first function.

其中,所述第三关联关系包括触点位置和应用功能的关联关系。Wherein, the third association relationship includes an association relationship between a contact position and an application function.

具体地,电子设备中预先设置第三关联关系,第三关联关系用于定义不同的触点位置分别对应不同的电子设备的功能。第三关联关系在电子设备中的存储形态有多种,例如数据库文件或配置文件或一段程序代码等。Specifically, a third association relationship is preset in the electronic device, and the third association relationship is used to define that different contact positions correspond to different functions of the electronic device. There are various storage forms of the third association relationship in the electronic device, for example, a database file or a configuration file or a piece of program code.

例如,在电子设备中预先设置第三关联关系,第三关联关系以数据库关系表的形式存储于电子设备中,如表4所示:For example, the third association relationship is preset in the electronic device, and the third association relationship is stored in the electronic device in the form of a database relational table, as shown in Table 4:

表4第三关联关系Table 4 The third relationship

触点位置contact position 功能Function 侧边框side border 录音recording 触摸屏边角touch screen corner 录像video 触摸屏中心区Touch screen center area 拍照Photograph

当电子设备的压力传感器检测到作用于电子设备上的第一压力操作的压力值为5N时,预设第一压力阈值为3N,确定第一压力操作的压力值大于第一压力阈值。When the pressure sensor of the electronic device detects that the pressure value of the first pressure operation acting on the electronic device is 5N, the preset first pressure threshold is 3N, and it is determined that the pressure value of the first pressure operation is greater than the first pressure threshold.

电子设备的压力传感器检测压力操作作用于电子设备上的触点位置为侧边框,根据表4所示的第三关联关系可知,侧边框所对应的功能为录音,则确定录音为第一功能。The pressure sensor of the electronic device detects that the pressure operation acts on the contact position on the electronic device as the side frame. According to the third correlation shown in Table 4, it can be seen that the function corresponding to the side frame is recording, so it is determined that the recording is the first function.

控制电子设备的麦克风开启,进行录音,整个过程中电子设备的显示屏处于关闭状态。The microphone of the electronic device is controlled to be turned on for recording, and the display screen of the electronic device is turned off during the whole process.

在本发明实施例的技术方案中,当电子设备的显示屏处于关闭状态时,检测作用于电子设备上的压力操作的压力值,当该压力值大于或等于预设的压力阈值时,控制电子设备执行第一功能,显示屏始终保持关闭状态。从而实现了用户在不点亮屏幕的情况下,也能控制电子设备执行预设的应用功能。In the technical solution of the embodiment of the present invention, when the display screen of the electronic device is in the off state, the pressure value of the pressure operation acting on the electronic device is detected, and when the pressure value is greater than or equal to the preset pressure threshold, the control electronic The device performs the first function and the display remains off at all times. Therefore, it is realized that the user can control the electronic device to execute preset application functions without turning on the screen.

可选地,执行第一功能之后,该方法流程还包括当所述第一压力操作结束作用于所述电子设备时,停止执行所述第一功能。Optionally, after the first function is executed, the method procedure further includes stopping execution of the first function when the first pressure operation finishes acting on the electronic device.

具体地,第一压力操作作用于电子设备上,压力值大于或等于预设的第一压力阈值时,执行第一功能。第一功能开始执行后,第一压力操作继续作用于电子设备上,如第一压力操作为长按操作。当第一压力操作结束作用于电子设备时,比如用户的手掌停止挤压电子设备的边框,或用户的手指离开电子设备的触摸屏时,则停止执行第一功能。Specifically, the first pressure operation acts on the electronic device, and when the pressure value is greater than or equal to a preset first pressure threshold, the first function is executed. After the first function starts to be executed, the first pressure operation continues to act on the electronic device, for example, the first pressure operation is a long press operation. When the first pressure operation finishes acting on the electronic device, for example, the user's palm stops pressing the frame of the electronic device, or the user's finger leaves the touch screen of the electronic device, the execution of the first function stops.

例如用户用手指持续按压手机的触摸屏,当该按压手机的第一压力操作的压力值大于或等于预设的第一压力阈值时,手机即开启录音功能,当触摸屏检测到用户停止按压手机的触摸屏时(如用户减小按压手机触摸屏的压力值以致第一压力操作变为触摸操作,或用户的手指离开手机触摸屏等),手机即停止录音,自动保存录音文件。For example, the user continues to press the touch screen of the mobile phone with a finger. When the pressure value of the first pressure operation of pressing the mobile phone is greater than or equal to the preset first pressure threshold, the mobile phone starts the recording function. When the touch screen detects that the user stops pressing the touch screen of the mobile phone When (such as the user reduces the pressure value of pressing the touch screen of the mobile phone so that the first pressure operation becomes a touch operation, or the user's finger leaves the touch screen of the mobile phone, etc.), the mobile phone stops recording and automatically saves the recording file.

通过控制压力操作的结束时间,来控制第一功能执行的停止时间,使得用户在电子设备在不开启屏幕的情况下,方便地控制预设功能的开始和结束。By controlling the end time of the pressure operation, the stop time of the execution of the first function is controlled, so that the user can conveniently control the start and end of the preset function without turning on the screen of the electronic device.

可选地,执行第一功能之后,该方法流程还包括检测作用于所述电子设备上的第二压力操作的第二压力信息,所述第二压力信息包括第二压力操作的压力值;当所述第二压力操作的压力值大于或等于预设的第二压力阈值时,停止执行所述第一功能。Optionally, after the first function is executed, the method procedure further includes detecting second pressure information of a second pressure operation acting on the electronic device, where the second pressure information includes a pressure value of the second pressure operation; when When the pressure value of the second pressure operation is greater than or equal to the preset second pressure threshold, the execution of the first function is stopped.

具体地,第一压力操作作用于电子设备上,压力值大于或等于预设的第一压力阈值时,执行第一功能。第一功能开始执行后,第一压力操作结束,比如用户减小按压手机触摸屏的压力值以致第一压力操作变为触摸操作时,或用户的手指离开手机触摸屏等,第一功能继续执行。Specifically, the first pressure operation acts on the electronic device, and when the pressure value is greater than or equal to a preset first pressure threshold, the first function is executed. After the first function starts to execute, the first pressure operation ends. For example, when the user reduces the pressure value of pressing the touch screen of the mobile phone so that the first pressure operation becomes a touch operation, or the user's finger leaves the touch screen of the mobile phone, etc., the first function continues to execute.

当电子设备检测到第二压力操作作用于电子设备上,且压力值大于或等于预设的第二压力阈值时,停止执行第一功能。其中第二压力阈值可以与第一压力阈值相同,也可以不同。When the electronic device detects that the second pressure operation acts on the electronic device, and the pressure value is greater than or equal to the preset second pressure threshold, it stops executing the first function. The second pressure threshold may be the same as or different from the first pressure threshold.

例如用户用手指按压手机的触摸屏,当该按压手机的第一压力操作的压力值大于或等于预设的第一压力阈值时,手机即开启录音功能,触摸屏检测到用户停止按压手机的触摸屏(如用户减小按压手机触摸屏的压力值以致第一压力操作变为触摸操作时,或用户的手指离开手机触摸屏等),手机继续录音。当用户再次用手指按压手机的触摸屏时,当该按压手机的第二压力操作的压力值大于或等于预设的第二压力阈值时,手机即停止录音,自动保存录音文件。通过设置第二压力阈值,防止误触电子设备干扰第一功能的执行。For example, the user presses the touch screen of the mobile phone with a finger, and when the pressure value of the first pressure operation of pressing the mobile phone is greater than or equal to the preset first pressure threshold, the mobile phone starts the recording function, and the touch screen detects that the user stops pressing the touch screen of the mobile phone (such as When the user reduces the pressure value of pressing the touch screen of the mobile phone so that the first pressure operation becomes a touch operation, or the user's finger leaves the touch screen of the mobile phone, etc.), the mobile phone continues to record. When the user presses the touch screen of the mobile phone with a finger again, when the pressure value of the second pressure operation of pressing the mobile phone is greater than or equal to the preset second pressure threshold, the mobile phone stops recording and automatically saves the recording file. By setting the second pressure threshold, it is prevented from accidentally touching the electronic device from interfering with the execution of the first function.

通过对电子设备施加第二压力操作,来控制第一功能执行的停止时间,使得用户在电子设备在不开启屏幕的情况下,方便地控制预设功能的开始和结束。By applying the second pressure operation to the electronic device, the stop time of the execution of the first function is controlled, so that the user can conveniently control the start and end of the preset function without turning on the screen of the electronic device.

图4为本发明实施例中一种控制电子设备的装置的结构示意图。如图4所示,该装置可以软件的形式安装运行于电子设备中,该装置包括检测模块11和处理模块12,检测模块11和处理模块12通信连接:FIG. 4 is a schematic structural diagram of an apparatus for controlling electronic equipment in an embodiment of the present invention. As shown in Figure 4, the device can be installed and run in electronic equipment in the form of software, the device includes a detection module 11 and a processing module 12, and the detection module 11 and the processing module 12 are connected in communication:

检测模块11,用于当电子设备的显示屏处于关闭状态时,检测作用于所述电子设备上的第一压力操作的压力信息。The detection module 11 is configured to detect pressure information of a first pressure operation on the electronic device when the display screen of the electronic device is in an off state.

其中,所述压力信息包括第一压力操作的压力值,检测模块11发送该压力信息至处理模块12。Wherein, the pressure information includes the pressure value of the first pressure operation, and the detection module 11 sends the pressure information to the processing module 12 .

处理模块12,用于当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能。The processing module 12 is configured to execute the first function when the pressure value of the first pressure operation is greater than or equal to a preset first pressure threshold.

处理模块12确定第一压力操作的压力值大于或等于预设的第一压力阈值后,控制其他相关部件执行第一功能。例如第一功能为拍照时,处理模块12发送指令控制相机模组上电,并在一定条件下进行拍照。该条件可由用户自行设置,也可以由电子设备自动设置,例如该条件可以是对焦完成后进行拍照,或相机模组上电完成后两秒进行拍照。电子设备的显示屏始终保持关闭状态。After the processing module 12 determines that the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, it controls other related components to perform the first function. For example, when the first function is to take pictures, the processing module 12 sends an instruction to control the camera module to be powered on, and to take pictures under certain conditions. The condition can be set by the user, or can be automatically set by the electronic device. For example, the condition can be to take a picture after the focus is completed, or to take a picture two seconds after the camera module is powered on. The display of the electronic device remains off at all times.

可选地,所述压力信息还包括所述第一压力操作的手势轨迹。Optionally, the pressure information further includes a gesture track of the first pressure operation.

所述处理模块还用于当所述第一压力操作的压力值大于或等于预设的第一压力阈值,根据所述第一压力操作的手势轨迹和第一关联关系,确定第一功能,所述第一关联关系包括手势轨迹和应用功能的关联关系。The processing module is further configured to determine the first function according to the gesture track of the first pressure operation and the first association relationship when the pressure value of the first pressure operation is greater than or equal to a preset first pressure threshold, so The first association relationship includes an association relationship between a gesture track and an application function.

可选地,所述压力信息还包括所述第一压力操作作用于所述电子设备上的触点位置。Optionally, the pressure information further includes a contact position on the electronic device that the first pressure operation acts on.

所述处理模块还用于当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,根据所述第一压力操作的触点位置和第三关联关系,确定所述第一功能,所述第三关联关系包括触点位置和应用功能的关联关系。The processing module is further configured to, when the pressure value of the first pressure operation is greater than or equal to a preset first pressure threshold, determine the first pressure operation according to the contact position of the first pressure operation and the third association relationship. A function, the third association relationship includes an association relationship between a contact position and an application function.

在本发明实施例的技术方案中,当电子设备的显示屏处于关闭状态时,检测作用于电子设备上的压力操作的压力值,当该压力值大于或等于预设的压力阈值时,控制电子设备执行第一功能,显示屏始终保持关闭状态。从而实现了用户在不点亮屏幕的情况下,也能控制电子设备执行预设的应用功能。In the technical solution of the embodiment of the present invention, when the display screen of the electronic device is in the off state, the pressure value of the pressure operation acting on the electronic device is detected, and when the pressure value is greater than or equal to the preset pressure threshold, the control electronic The device performs the first function and the display remains off at all times. Therefore, it is realized that the user can control the electronic device to execute preset application functions without turning on the screen.

可选地,所述检测模块还用于检测作用于所述电子设备上的第二压力操作的第二压力信息,所述第二压力信息包括第二压力操作的压力值。Optionally, the detection module is further configured to detect second pressure information of a second pressure operation acting on the electronic device, where the second pressure information includes a pressure value of the second pressure operation.

所述处理模块还用于当所述第二压力操作的压力值大于或等于预设的第二压力阈值时,停止执行所述第一功能。The processing module is further configured to stop executing the first function when the pressure value of the second pressure operation is greater than or equal to a preset second pressure threshold.

可选地,所述检测模块还用于检测第一压力操作的结束作用于电子设备的时间,所述处理模块还用于在第一压力操作结束作用于电子设备时,停止执行第一功能。Optionally, the detection module is further configured to detect when the first pressure operation ends and acts on the electronic device, and the processing module is further configured to stop executing the first function when the first pressure operation ends and acts on the electronic device.

通过对电子设备施加第二压力操作或结束第一压力操作,来控制第一功能执行的停止时间,使得用户在电子设备在不开启屏幕的情况下,方便地控制预设功能的开始和结束。By applying the second pressure operation to the electronic device or ending the first pressure operation, the stop time of the execution of the first function is controlled, so that the user can conveniently control the start and end of the preset function without turning on the screen of the electronic device.

本发明实施例还提供一种电子设备,该电子设备具有如图1或图2所示的结构,其中该电子设备的触摸屏和处理器分别被配置如下:An embodiment of the present invention also provides an electronic device, the electronic device has the structure shown in Figure 1 or Figure 2, wherein the touch screen and processor of the electronic device are respectively configured as follows:

触摸屏,用于当电子设备的显示屏处于关闭状态时,检测作用于所述电子设备上的第一压力操作的压力信息,所述压力信息包括第一压力操作的压力值。The touch screen is configured to detect pressure information of a first pressure operation on the electronic device when the display screen of the electronic device is in an off state, where the pressure information includes a pressure value of the first pressure operation.

处理器,用于当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能。A processor configured to execute the first function when the pressure value of the first pressure operation is greater than or equal to a preset first pressure threshold.

电子设备的显示屏一直保持关闭状态。The display of the electronic device remains off at all times.

可选地,所述压力信息还包括所述第一压力操作的手势轨迹。Optionally, the pressure information further includes a gesture track of the first pressure operation.

所述处理器还用于当所述第一压力操作的压力值大于或等于预设的第一压力阈值,根据所述第一压力操作的手势轨迹和第一关联关系,确定第一功能,所述第一关联关系包括手势轨迹和应用功能的关联关系。The processor is further configured to, when the pressure value of the first pressure operation is greater than or equal to a preset first pressure threshold, determine the first function according to the gesture track of the first pressure operation and the first association relationship, so The first association relationship includes an association relationship between a gesture track and an application function.

可选地,所述压力信息还包括所述第一压力操作作用于所述电子设备上的触点位置。Optionally, the pressure information further includes a contact position on the electronic device that the first pressure operation acts on.

所述处理器还用于当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,根据所述第一压力操作的触点位置和第三关联关系,确定所述第一功能,所述第三关联关系包括触点位置和应用功能的关联关系。The processor is further configured to, when the pressure value of the first pressure operation is greater than or equal to a preset first pressure threshold, determine the first pressure operation according to the contact position of the first pressure operation and a third association relationship. A function, the third association relationship includes an association relationship between a contact position and an application function.

可选地,所述触摸屏还用于检测作用于所述电子设备上的第二压力操作的第二压力信息,所述第二压力信息包括第二压力操作的压力值;Optionally, the touch screen is further configured to detect second pressure information of a second pressure operation acting on the electronic device, where the second pressure information includes a pressure value of the second pressure operation;

所述处理器还用于当所述第二压力操作的压力值大于或等于预设的第二压力阈值时,停止执行所述第一功能。The processor is further configured to stop executing the first function when the pressure value of the second pressure operation is greater than or equal to a preset second pressure threshold.

在本发明实施例的技术方案中,当电子设备的显示屏处于关闭状态时,检测作用于电子设备上的压力操作的压力值,当该压力值大于或等于预设的压力阈值时,控制电子设备执行第一功能,显示屏始终保持关闭状态。从而实现了用户在不点亮屏幕的情况下,也能控制电子设备执行预设的应用功能。通过对电子设备施加第二压力操作或结束第一压力操作,来控制第一功能执行的停止时间,使得用户在电子设备在不开启屏幕的情况下,方便地控制预设功能的开始和结束。In the technical solution of the embodiment of the present invention, when the display screen of the electronic device is in the off state, the pressure value of the pressure operation acting on the electronic device is detected, and when the pressure value is greater than or equal to the preset pressure threshold, the control electronic The device performs the first function and the display remains off at all times. Therefore, it is realized that the user can control the electronic device to execute preset application functions without turning on the screen. By applying the second pressure operation to the electronic device or ending the first pressure operation, the stop time of the execution of the first function is controlled, so that the user can conveniently control the start and end of the preset function without turning on the screen of the electronic device.

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

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

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

上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) or a processor (processor) execute the methods described in various embodiments of the present invention. partial steps. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .

本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. The internal structure of the system is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (17)

1.一种控制电子设备的方法,其特征在于,包括:1. A method for controlling an electronic device, comprising: 当电子设备的显示屏处于关闭状态时,检测作用于所述电子设备上的第一压力操作的压力信息,所述压力信息包括第一压力操作的压力值;When the display screen of the electronic device is in an off state, detecting pressure information of a first pressure operation acting on the electronic device, where the pressure information includes a pressure value of the first pressure operation; 当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能,所述显示屏保持关闭状态。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is executed, and the display screen remains in an off state. 2.根据权利要求1所述的方法,其特征在于,所述压力信息还包括所述第一压力操作的手势轨迹;2. The method according to claim 1, wherein the pressure information further includes a gesture track of the first pressure operation; 所述当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能,所述显示屏保持关闭状态,包括:When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is executed, and the display screen remains off, including: 当所述第一压力操作的压力值大于或等于预设的第一压力阈值,根据所述手势轨迹和第一关联关系,确定并执行第一功能,所述显示屏保持关闭状态,其中所述第一关联关系包括手势轨迹和应用功能的关联关系。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is determined and executed according to the gesture track and the first association relationship, and the display screen remains off, wherein the The first association relationship includes an association relationship between a gesture track and an application function. 3.根据权利要求1所述的方法,其特征在于,所述当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能,所述显示屏保持关闭状态,包括:3. The method according to claim 1, wherein when the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is executed, and the display screen remains off status, including: 当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,根据所述第一压力操作的压力值和第二关联关系,确定并执行第一功能,所述显示屏保持关闭状态,所述第二关联关系包括压力值和应用功能的关联关系。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is determined and executed according to the pressure value of the first pressure operation and the second correlation, and the display screen remains In the closed state, the second correlation includes the correlation between the pressure value and the application function. 4.根据权利要求1所述的方法,其特征在于,所述压力信息还包括所述第一压力操作作用于所述电子设备上的触点位置;4. The method according to claim 1, wherein the pressure information further includes the contact position on the electronic device that the first pressure operation acts on; 所述当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能,所述显示屏保持关闭状态,包括:When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is executed, and the display screen remains off, including: 当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,根据所述第一压力操作的触点位置和第三关联关系,确定并执行第一功能,所述显示屏保持关闭状态,所述第三关联关系包括触点位置和应用功能的关联关系。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is determined and executed according to the contact position of the first pressure operation and the third association relationship, and the display screen The closed state is maintained, and the third association relationship includes an association relationship between a contact position and an application function. 5.根据权利要求1至4任一所述的方法,其特征在于,所述执行第一功能之后,所述方法还包括:5. The method according to any one of claims 1 to 4, characterized in that, after performing the first function, the method further comprises: 检测作用于所述电子设备上的第二压力操作的第二压力信息,所述第二压力信息包括第二压力操作的压力值;Detecting second pressure information of a second pressure operation acting on the electronic device, where the second pressure information includes a pressure value of the second pressure operation; 当所述第二压力操作的压力值大于或等于预设的第二压力阈值时,停止执行所述第一功能。When the pressure value of the second pressure operation is greater than or equal to a preset second pressure threshold, the execution of the first function is stopped. 6.根据权利要求1至4任一所述的方法,其特征在于,所述执行第一功能之后,所述方法还包括:6. The method according to any one of claims 1 to 4, characterized in that, after performing the first function, the method further comprises: 当所述第一压力操作结束作用于所述电子设备时,停止执行所述第一功能。When the first pressure operation finishes acting on the electronic device, stop executing the first function. 7.根据权利要求1至6任一所述的方法,其特征在于,所述第一功能是指拍照功能、或录音功能、或录像功能、或拨号呼叫功能。7. The method according to any one of claims 1 to 6, wherein the first function refers to a photographing function, or a recording function, or a video recording function, or a dialing and calling function. 8.一种控制电子设备的装置,其特征在于,包括:8. A device for controlling electronic equipment, comprising: 检测模块,用于当电子设备的显示屏处于关闭状态时,检测作用于所述电子设备上的第一压力操作的压力信息,所述压力信息包括第一压力操作的压力值;A detection module, configured to detect pressure information of a first pressure operation acting on the electronic device when the display screen of the electronic device is in an off state, where the pressure information includes a pressure value of the first pressure operation; 处理模块,用于当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能,所述显示屏保持关闭状态。A processing module, configured to execute a first function when the pressure value of the first pressure operation is greater than or equal to a preset first pressure threshold, and the display screen remains off. 9.根据权利要求8所述的装置,其特征在于,所述压力信息还包括所述第一压力操作的手势轨迹;9. The device according to claim 8, wherein the pressure information further includes a gesture trace of the first pressure operation; 所述处理模块还用于:The processing module is also used to: 当所述第一压力操作的压力值大于或等于预设的第一压力阈值,根据所述第一压力操作的手势轨迹和第一关联关系,确定并执行第一功能,所述显示屏保持关闭状态,其中所述第一关联关系包括手势轨迹和应用功能的关联关系。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is determined and executed according to the gesture trajectory of the first pressure operation and the first association relationship, and the display screen remains turned off state, wherein the first association relationship includes an association relationship between a gesture track and an application function. 10.根据权利要求8所述的装置,其特征在于,所述压力信息还包括所述第一压力操作作用于所述电子设备上的触点位置;10. The device according to claim 8, wherein the pressure information further includes a contact position on the electronic device that the first pressure operation acts on; 所述处理模块还用于:The processing module is also used to: 当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,根据所述第一压力操作的触点位置和第三关联关系,确定并执行第一功能,所述显示屏保持关闭状态,所述第三关联关系包括触点位置和应用功能的关联关系。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is determined and executed according to the contact position of the first pressure operation and the third association relationship, and the display screen The closed state is maintained, and the third association relationship includes an association relationship between a contact position and an application function. 11.根据权利要求8至10任一所述的装置,其特征在于,所述检测模块还用于:11. The device according to any one of claims 8 to 10, wherein the detection module is also used for: 检测作用于所述电子设备上的第二压力操作的第二压力信息,所述第二压力信息包括第二压力操作的压力值;Detecting second pressure information of a second pressure operation acting on the electronic device, where the second pressure information includes a pressure value of the second pressure operation; 所述处理模块还用于:The processing module is also used to: 当所述第二压力操作的压力值大于或等于预设的第二压力阈值时,停止执行所述第一功能。When the pressure value of the second pressure operation is greater than or equal to a preset second pressure threshold, the execution of the first function is stopped. 12.根据权利要求8至11任一所述的装置,其特征在于,所述第一功能是指拍照功能、或录音功能、或录像功能、或拨号呼叫功能。12. The device according to any one of claims 8 to 11, wherein the first function refers to a photographing function, or a recording function, or a video recording function, or a dialing and calling function. 13.一种电子设备,其特征在于,包括:13. An electronic device, characterized in that it comprises: 触摸屏,用于当电子设备的显示屏处于关闭状态时,检测作用于所述电子设备上的第一压力操作的压力信息,所述压力信息包括第一压力操作的压力值;The touch screen is used to detect the pressure information of the first pressure operation acting on the electronic device when the display screen of the electronic device is in the off state, and the pressure information includes the pressure value of the first pressure operation; 处理器,用于当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,执行第一功能;a processor, configured to execute a first function when the pressure value of the first pressure operation is greater than or equal to a preset first pressure threshold; 所述电子设备的显示屏保持关闭状态。The display screen of the electronic device remains off. 14.根据权利要求13所述的电子设备,其特征在于,所述压力信息还包括所述第一压力操作的手势轨迹;14. The electronic device according to claim 13, wherein the pressure information further includes a gesture track of the first pressure operation; 所述处理器还用于:The processor is also used to: 当所述第一压力操作的压力值大于或等于预设的第一压力阈值,根据所述第一压力操作的手势轨迹和第一关联关系,确定并执行第一功能,所述显示屏保持关闭状态,所述第一关联关系包括手势轨迹和应用功能的关联关系。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is determined and executed according to the gesture trajectory of the first pressure operation and the first association relationship, and the display screen remains turned off state, the first association relationship includes an association relationship between a gesture track and an application function. 15.根据权利要求13所述的电子设备,其特征在于,所述压力信息还包括所述第一压力操作作用于所述电子设备上的触点位置;15. The electronic device according to claim 13, wherein the pressure information further includes a contact position on the electronic device where the first pressure operation acts; 所述处理器还用于:The processor is also used to: 当所述第一压力操作的压力值大于或等于预设的第一压力阈值时,根据所述第一压力操作的触点位置和第三关联关系,确定并执行第一功能,所述显示屏保持关闭状态,所述第三关联关系包括触点位置和应用功能的关联关系。When the pressure value of the first pressure operation is greater than or equal to the preset first pressure threshold, the first function is determined and executed according to the contact position of the first pressure operation and the third association relationship, and the display screen The closed state is maintained, and the third association relationship includes an association relationship between a contact position and an application function. 16.根据权利要求13至15任一所述的电子设备,其特征在于,所述触摸屏还用于:16. The electronic device according to any one of claims 13 to 15, wherein the touch screen is also used for: 检测作用于所述电子设备上的第二压力操作的第二压力信息,所述第二压力信息包括第二压力操作的压力值;Detecting second pressure information of a second pressure operation acting on the electronic device, where the second pressure information includes a pressure value of the second pressure operation; 所述处理器还用于:The processor is also used to: 当所述第二压力操作的压力值大于或等于预设的第二压力阈值时,停止执行所述第一功能。When the pressure value of the second pressure operation is greater than or equal to a preset second pressure threshold, the execution of the first function is stopped. 17.根据权利要求13至16任一所述的电子设备,其特征在于,所述第一功能是指拍照功能、或录音功能、或录像功能、或拨号呼叫功能。。17. The electronic device according to any one of claims 13 to 16, wherein the first function refers to a photographing function, or a recording function, or a video recording function, or a dialing and calling function. .
CN201580042435.5A 2015-09-02 2015-09-02 A method, an apparatus and an electronic device for controlling an electronic device Pending CN106576123A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/088879 WO2017035818A1 (en) 2015-09-02 2015-09-02 Method of controlling electronic apparatus, and device and electronic apparatus utilizing same

Publications (1)

Publication Number Publication Date
CN106576123A true CN106576123A (en) 2017-04-19

Family

ID=58186500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580042435.5A Pending CN106576123A (en) 2015-09-02 2015-09-02 A method, an apparatus and an electronic device for controlling an electronic device

Country Status (2)

Country Link
CN (1) CN106576123A (en)
WO (1) WO2017035818A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395888A (en) * 2017-07-28 2017-11-24 广东欧珀移动通信有限公司 Black screen gesture processing method, device, storage medium and mobile terminal
CN107450837A (en) * 2017-07-28 2017-12-08 广东欧珀移动通信有限公司 Method, device, storage medium and mobile terminal for responding to black screen gesture
CN107479700A (en) * 2017-07-28 2017-12-15 广东欧珀移动通信有限公司 Blank screen gestural control method, device, storage medium and mobile terminal
CN107506072A (en) * 2017-08-07 2017-12-22 广东欧珀移动通信有限公司 Touch-screen control method, device and terminal device
CN108920062A (en) * 2018-05-11 2018-11-30 努比亚技术有限公司 Fast implementation, mobile terminal and the readable storage medium storing program for executing of application function
WO2019036826A1 (en) * 2017-08-21 2019-02-28 华为技术有限公司 Control method for electronic apparatus and input apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699369A (en) * 2009-11-18 2010-04-28 英华达(南昌)科技有限公司 Pressure triggering device used for electronic equipment and electronic device comprising same
CN102479040A (en) * 2010-11-25 2012-05-30 联想(北京)有限公司 Touch processing method and portable mobile terminal
CN103019490A (en) * 2012-12-18 2013-04-03 广东欧珀移动通信有限公司 A method and system for optimizing capacitive touch screen operation
JP2014090397A (en) * 2012-10-03 2014-05-15 Ricoh Co Ltd Image forming apparatus and image forming method
WO2015043642A1 (en) * 2013-09-26 2015-04-02 Longsand Limited Device notifications
CN104615469A (en) * 2015-02-15 2015-05-13 福建时中通讯科技有限公司 Method for fast starting application programs of wrist mobile phone
CN104765536A (en) * 2014-01-07 2015-07-08 宏达国际电子股份有限公司 Electronic device control method and electronic device for executing the method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877744A (en) * 2010-06-22 2010-11-03 中兴通讯股份有限公司 Terminal locking and unlocking method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699369A (en) * 2009-11-18 2010-04-28 英华达(南昌)科技有限公司 Pressure triggering device used for electronic equipment and electronic device comprising same
CN102479040A (en) * 2010-11-25 2012-05-30 联想(北京)有限公司 Touch processing method and portable mobile terminal
JP2014090397A (en) * 2012-10-03 2014-05-15 Ricoh Co Ltd Image forming apparatus and image forming method
CN103019490A (en) * 2012-12-18 2013-04-03 广东欧珀移动通信有限公司 A method and system for optimizing capacitive touch screen operation
WO2015043642A1 (en) * 2013-09-26 2015-04-02 Longsand Limited Device notifications
CN104765536A (en) * 2014-01-07 2015-07-08 宏达国际电子股份有限公司 Electronic device control method and electronic device for executing the method
CN104615469A (en) * 2015-02-15 2015-05-13 福建时中通讯科技有限公司 Method for fast starting application programs of wrist mobile phone

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395888A (en) * 2017-07-28 2017-11-24 广东欧珀移动通信有限公司 Black screen gesture processing method, device, storage medium and mobile terminal
CN107450837A (en) * 2017-07-28 2017-12-08 广东欧珀移动通信有限公司 Method, device, storage medium and mobile terminal for responding to black screen gesture
CN107479700A (en) * 2017-07-28 2017-12-15 广东欧珀移动通信有限公司 Blank screen gestural control method, device, storage medium and mobile terminal
CN107395888B (en) * 2017-07-28 2019-09-24 Oppo广东移动通信有限公司 Processing method and device of black screen gesture, storage medium and mobile terminal
CN107479700B (en) * 2017-07-28 2020-05-12 Oppo广东移动通信有限公司 Black screen gesture control method and device, storage medium and mobile terminal
CN107506072A (en) * 2017-08-07 2017-12-22 广东欧珀移动通信有限公司 Touch-screen control method, device and terminal device
CN107506072B (en) * 2017-08-07 2020-05-08 Oppo广东移动通信有限公司 Touch screen control method, device and terminal equipment
WO2019036826A1 (en) * 2017-08-21 2019-02-28 华为技术有限公司 Control method for electronic apparatus and input apparatus
CN109844702A (en) * 2017-08-21 2019-06-04 华为技术有限公司 The control method and input equipment of a kind of pair of electronic equipment
CN109844702B (en) * 2017-08-21 2020-10-27 华为技术有限公司 A control method for electronic equipment and input device
US11550421B2 (en) 2017-08-21 2023-01-10 Huawei Technologies Co., Ltd. Electronic device control method and input device
CN108920062A (en) * 2018-05-11 2018-11-30 努比亚技术有限公司 Fast implementation, mobile terminal and the readable storage medium storing program for executing of application function

Also Published As

Publication number Publication date
WO2017035818A1 (en) 2017-03-09

Similar Documents

Publication Publication Date Title
CN108762954B (en) Object sharing method and mobile terminal
CN108431756B (en) Method and electronic device for responding to gestures acting on a touchscreen of an electronic device
WO2014206101A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
CN109032447B (en) Icon processing method and mobile terminal
WO2019228297A1 (en) Display control method and terminal
CN110531915B (en) Screen operation method and terminal device
CN107728923B (en) An operation processing method and mobile terminal
CN106576123A (en) A method, an apparatus and an electronic device for controlling an electronic device
WO2013135169A1 (en) Method for adjusting input-method keyboard and mobile terminal thereof
CN108600544B (en) Single-hand control method and terminal
CN109521937B (en) Screen display control method and mobile terminal
CN107808084A (en) A kind of touch operation method and mobile terminal
CN105930077A (en) Method and device for adjusting size of screen display object
CN110109604A (en) A kind of application interface display methods and mobile terminal
CN108108110A (en) A kind of screen control method, screen control device and mobile terminal
CN108108113B (en) Web page switching method and device
WO2020024770A1 (en) Method for determining communication object, and mobile terminal
CN109669656B (en) Information display method and terminal equipment
CN111324257B (en) A kind of application program icon arrangement method and mobile terminal
WO2018039914A1 (en) Method for copying data, and user terminal
CN108762648A (en) Screen operation control method and mobile terminal
CN107728920A (en) A kind of clone method and mobile terminal
CN108579078A (en) Touch operation method and related product
CN110032422B (en) Application management method, terminal device and computer-readable storage medium
CN108170360A (en) The control method and mobile terminal of a kind of gesture function

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170419