CN110609642B - Electronic device control method, device, storage medium, and electronic device - Google Patents
Electronic device control method, device, storage medium, and electronic device Download PDFInfo
- Publication number
- CN110609642B CN110609642B CN201910791499.5A CN201910791499A CN110609642B CN 110609642 B CN110609642 B CN 110609642B CN 201910791499 A CN201910791499 A CN 201910791499A CN 110609642 B CN110609642 B CN 110609642B
- Authority
- CN
- China
- Prior art keywords
- electronic device
- pressure value
- touch operation
- user
- user interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0414—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本申请涉及电子技术领域,特别涉及一种电子设备的控制方法、装置、存储介质及电子设备。The present application relates to the field of electronic technology, and in particular to a control method, device, storage medium and electronic equipment for electronic equipment.
背景技术Background technique
随着电子技术的发展,诸如智能手机等电子设备越来越普及。通常,电子设备上都设置有一个或多个机械式按键。机械式按键凸出于电子设备的表面,例如机械式按键凸出在壳体表面。当用户按压机械式按键时,按键被按下,用户停止按压后,按键弹起恢复至原状。同时,电子设备对按键检测到的按压操作进行响应。With the development of electronic technology, electronic devices such as smart phones are becoming more and more popular. Generally, one or more mechanical keys are arranged on an electronic device. The mechanical keys protrude from the surface of the electronic device, for example, the mechanical keys protrude from the surface of the housing. When the user presses the mechanical button, the button is pressed, and after the user stops pressing, the button bounces back to its original state. At the same time, the electronic device responds to the pressing operation detected by the key.
然而,对于电子设备上的机械式按键,由于按键凸出电子设备的表面,按键容易发生误操作。例如,当用户将电子设备放置在口袋或者背包中时,电子设备上的按键容易受到口袋或者背包的挤压,此时按键受到的挤压也会被认为是来自用户的按压操作,并且电子设备也会对按键检测到的按压操作进行响应,从而发生误操作。However, for the mechanical keys on the electronic equipment, since the keys protrude from the surface of the electronic equipment, the keys are prone to misoperation. For example, when a user puts an electronic device in a pocket or a backpack, the buttons on the electronic device are easily squeezed by the pocket or backpack, and the squeeze on the button is also considered to be a pressing operation from the user, and the electronic device It will also respond to the press operation detected by the button, so that misoperation occurs.
发明内容Contents of the invention
本申请实施例提供一种电子设备的控制方法、装置、存储介质及电子设备,可以减少电子设备误操作的发生,提高对电子设备控制的准确性。Embodiments of the present application provide an electronic device control method, device, storage medium, and electronic device, which can reduce the occurrence of misoperation of the electronic device and improve the accuracy of controlling the electronic device.
本申请实施例提供一种电子设备的控制方法,所述电子设备的侧边设置有压电陶瓷传感器,所述电子设备的控制方法包括:An embodiment of the present application provides a control method for an electronic device, where a piezoelectric ceramic sensor is provided on the side of the electronic device, and the control method for the electronic device includes:
获取所述压电陶瓷传感器检测到的压力值;Acquiring the pressure value detected by the piezoelectric ceramic sensor;
当所述压力值满足预设条件时,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面;When the pressure value satisfies a preset condition, displaying a corresponding user interface on the display screen of the electronic device according to the pressure value;
接收用户针对所述用户界面的触控操作;receiving a user's touch operation on the user interface;
根据所述触控操作控制所述电子设备执行对应的功能。The electronic device is controlled to execute a corresponding function according to the touch operation.
本申请实施例还提供一种电子设备的控制装置,所述电子设备的侧边设置有压电陶瓷传感器,所述电子设备的控制装置包括:An embodiment of the present application also provides a control device for an electronic device, where a piezoelectric ceramic sensor is provided on the side of the electronic device, and the control device for the electronic device includes:
获取模块,用于获取所述压电陶瓷传感器检测到的压力值;An acquisition module, configured to acquire the pressure value detected by the piezoelectric ceramic sensor;
显示模块,用于当所述压力值满足预设条件时,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面;A display module, configured to display a corresponding user interface on the display screen of the electronic device according to the pressure value when the pressure value satisfies a preset condition;
接收模块,用于接收用户针对所述用户界面的触控操作;a receiving module, configured to receive a user's touch operation on the user interface;
执行模块,用于根据所述触控操作控制所述电子设备执行对应的功能。An execution module, configured to control the electronic device to execute a corresponding function according to the touch operation.
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述电子设备的控制方法。An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is run on a computer, the computer is made to execute the above method for controlling an electronic device.
本申请实施例还提供一种电子设备,包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行上述电子设备的控制方法。An embodiment of the present application also provides an electronic device, including a processor and a memory, the memory stores a computer program, and the processor invokes the computer program stored in the memory to execute the above-mentioned electronic device. Control Method.
本申请实施例还提供一种电子设备,包括:The embodiment of the present application also provides an electronic device, including:
壳体;case;
压电陶瓷传感器,设置在所述壳体的侧边,所述压电陶瓷传感器用于检测用户按压时的压力值;A piezoelectric ceramic sensor is arranged on the side of the housing, and the piezoelectric ceramic sensor is used to detect the pressure value when the user presses;
显示屏,设置在所述壳体上,所述显示屏用于当所述压力值满足预设条件时,根据所述压力值显示对应的用户界面;a display screen, arranged on the housing, and the display screen is used to display a corresponding user interface according to the pressure value when the pressure value satisfies a preset condition;
处理器,设置在所述壳体内部,所述处理器用于接收用户针对所述用户界面的触控操作,并根据所述触控操作控制所述电子设备执行对应的功能。A processor is disposed inside the casing, and the processor is configured to receive a user's touch operation on the user interface, and control the electronic device to perform a corresponding function according to the touch operation.
本申请实施例提供的电子设备的控制方法,包括:获取压电陶瓷传感器检测到的压力值;当所述压力值满足预设条件时,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面;接收用户针对所述用户界面的触控操作;根据所述触控操作控制所述电子设备执行对应的功能。所述电子设备的控制方法中,通过设置在电子设备侧边的压电陶瓷传感器检测按压操作,当按压操作的压力值满足预设条件时才显示用户界面,并根据用户的触控操作执行对应的功能,由于压电陶瓷传感器不需要突出于电子设备的表面,从而可以减少对压电陶瓷传感器的误操作,进而可以减少电子设备误操作的发生,提高对电子设备控制的准确性。The electronic device control method provided by the embodiment of the present application includes: obtaining the pressure value detected by the piezoelectric ceramic sensor; when the pressure value meets the preset condition, displaying the Displaying a corresponding user interface; receiving a user's touch operation on the user interface; controlling the electronic device to execute a corresponding function according to the touch operation. In the control method of the electronic device, the pressing operation is detected by the piezoelectric ceramic sensor arranged on the side of the electronic device, and the user interface is displayed only when the pressure value of the pressing operation satisfies a preset condition, and the corresponding operation is performed according to the user's touch operation. Since the piezoelectric ceramic sensor does not need to protrude from the surface of the electronic equipment, it can reduce the misoperation of the piezoelectric ceramic sensor, thereby reducing the occurrence of misoperation of the electronic equipment and improving the accuracy of electronic equipment control.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative efforts.
图1为本申请实施例提供的电子设备的第一种结构示意图。FIG. 1 is a schematic diagram of a first structure of an electronic device provided by an embodiment of the present application.
图2为本申请实施例提供的电子设备的控制方法的第一种流程示意图。FIG. 2 is a schematic flowchart of a first type of electronic device control method provided by an embodiment of the present application.
图3为本申请实施例提供的电子设备对用户操作进行响应的状态示意图。FIG. 3 is a schematic diagram of a state in which an electronic device responds to a user operation according to an embodiment of the present application.
图4为本申请实施例提供的电子设备的控制方法的第二种流程示意图。FIG. 4 is a schematic flowchart of a second method for controlling an electronic device provided by an embodiment of the present application.
图5为本申请实施例提供的电子设备的控制方法的第三种流程示意图。FIG. 5 is a schematic flowchart of a third method for controlling an electronic device provided by an embodiment of the present application.
图6为本申请实施例提供的电子设备的控制方法的第四种流程示意图。FIG. 6 is a schematic flowchart of a fourth method for controlling an electronic device provided in an embodiment of the present application.
图7为本申请实施例提供的电子设备的控制方法的第五种流程示意图。FIG. 7 is a schematic flowchart of a fifth method for controlling an electronic device provided by an embodiment of the present application.
图8为本申请实施例提供的电子设备对用户操作进行响应的时序示意图。FIG. 8 is a schematic diagram of a timing sequence of an electronic device responding to a user operation according to an embodiment of the present application.
图9为本申请实施例提供的电子设备的控制装置的第一种结构示意图。FIG. 9 is a schematic diagram of a first structure of a control device for an electronic device provided by an embodiment of the present application.
图10为本申请实施例提供的电子设备的控制装置的第二种结构示意图。FIG. 10 is a schematic diagram of a second structure of a control device for an electronic device provided by an embodiment of the present application.
图11为本申请实施例提供的电子设备的第二种结构示意图。FIG. 11 is a schematic diagram of a second structure of an electronic device provided by an embodiment of the present application.
图12为本申请实施例提供的电子设备的第三种结构示意图。FIG. 12 is a schematic diagram of a third structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of this application.
参考图1,图1为本申请实施例提供的电子设备的第一种结构示意图。其中,电子设备的侧边设置有压电陶瓷传感器,所述压电陶瓷传感器可以实现检测用户的按压操作。可以理解的,所述电子设备包括壳体,所述壳体例如可以包括电子设备的中框、电池盖等结构。所述压电陶瓷传感器可以设置在所述电子设备的壳体侧边。例如,所述压电陶瓷传感器例如可以设置在电子设备壳体的左侧边、右侧边、顶部侧边、底部侧边等位置,或者还可以设置在电子设备壳体的侧边拐角处。Referring to FIG. 1 , FIG. 1 is a schematic diagram of a first structure of an electronic device provided by an embodiment of the present application. Wherein, a piezoelectric ceramic sensor is provided on a side of the electronic device, and the piezoelectric ceramic sensor can detect a user's pressing operation. It can be understood that the electronic device includes a casing, and the casing may include, for example, a middle frame of the electronic device, a battery cover, and other structures. The piezoelectric ceramic sensor can be arranged on the side of the housing of the electronic device. For example, the piezoelectric ceramic sensor can be arranged on the left side, right side, top side, bottom side, etc. of the housing of the electronic device, or can also be arranged at the corner of the side of the housing of the electronic device.
需要说明的是,所述压电陶瓷传感器可以设置于电子设备的壳体内部,而无需突出于电子设备壳体的表面。例如所述压电陶瓷传感器可以贴设在电子设备的壳体内壁上,或者可以将所述压电陶瓷传感器埋设在壳体上开设的凹槽内部。It should be noted that the piezoelectric ceramic sensor can be arranged inside the casing of the electronic device without protruding from the surface of the casing of the electronic device. For example, the piezoelectric ceramic sensor can be attached to the inner wall of the housing of the electronic device, or the piezoelectric ceramic sensor can be embedded in a groove provided on the housing.
所述压电陶瓷传感器可以由压电陶瓷制成。例如,所述压电陶瓷传感器可以包括一整片的压电陶瓷片,或者包括多个压电陶瓷颗粒,或者包括多个间隔设置的压电陶瓷片。压电陶瓷是一类具有压电特性的电子陶瓷材料。压电陶瓷的主要成分是具有铁电性的晶粒。压电陶瓷是由多个铁电晶粒聚集成的聚集体,其中的多个铁电晶粒的取向是随机的,因此各个铁电晶粒的极化矢量也是混乱取向的。当压电陶瓷置于直流电场中时,原本混乱取向的各个铁电晶粒各自的极化矢量沿电场方向择优取向,从而使得压电陶瓷具有压电性质。因此,压电陶瓷可以实现机械能与电能的相互转换,例如将机械能转换成电能。例如,当用户按压压电陶瓷时,压电陶瓷可以将所受到的按压的机械能转换成对应的电能,也即产生对应的电信号,从而实现检测用户的按压操作。The piezoelectric ceramic sensor may be made of piezoelectric ceramics. For example, the piezoelectric ceramic sensor may include a whole piezoelectric ceramic sheet, or include a plurality of piezoelectric ceramic particles, or include a plurality of piezoelectric ceramic sheets arranged at intervals. Piezoelectric ceramics are a class of electronic ceramic materials with piezoelectric properties. The main component of piezoelectric ceramics is ferroelectric crystal grains. Piezoelectric ceramics are aggregates formed by a plurality of ferroelectric crystal grains. The orientation of the multiple ferroelectric crystal grains is random, so the polarization vector of each ferroelectric crystal grain is also chaotically oriented. When piezoelectric ceramics are placed in a direct current electric field, the polarization vectors of each ferroelectric crystal grain that was originally chaotically oriented are preferentially oriented along the direction of the electric field, so that piezoelectric ceramics have piezoelectric properties. Therefore, piezoelectric ceramics can realize mutual conversion of mechanical energy and electrical energy, for example, converting mechanical energy into electrical energy. For example, when a user presses the piezoelectric ceramic, the piezoelectric ceramic can convert the pressed mechanical energy into corresponding electrical energy, that is, generate a corresponding electrical signal, thereby realizing the detection of the user's pressing operation.
可以理解的,由于压电陶瓷可以实现机械能与电能的相互转换,所述压电陶瓷传感器在检测用户的按压操作时,是将用户的按压操作转换为对应的电信号,从而在用户的按压过程中,所述压电陶瓷传感器不产生位移,因此电子设备内部也无需单独设置如机械式按键的运动空间。It can be understood that since the piezoelectric ceramics can realize mutual conversion between mechanical energy and electrical energy, when the piezoelectric ceramic sensor detects the user's pressing operation, it converts the user's pressing operation into a corresponding electrical signal, so that during the user's pressing process Among them, the piezoelectric ceramic sensor does not generate displacement, so there is no need to separately arrange a movement space such as a mechanical button inside the electronic device.
本申请实施例提供一种电子设备的控制方法,所述电子设备的控制方法可以应用于电子设备中。所述电子设备可以为智能手机、平板电脑、游戏设备、AR(AugmentedReality,增强现实)设备、汽车、数据存储装置、音频播放装置、视频播放装置、笔记本电脑、桌面计算设备、可穿戴设备诸如电子手表、电子眼镜、电子头盔、电子手链、电子项链、电子衣物等设备。An embodiment of the present application provides a method for controlling an electronic device, and the method for controlling an electronic device may be applied to an electronic device. The electronic device may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality, augmented reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook computer, a desktop computing device, a wearable device such as an electronic Watches, electronic glasses, electronic helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment.
参考图2,图2为本申请实施例提供的电子设备的控制方法的第一种流程示意图。其中,所述电子设备的控制方法包括:Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a first method for controlling an electronic device provided in an embodiment of the present application. Wherein, the control method of the electronic equipment includes:
110,获取所述压电陶瓷传感器检测到的压力值。110. Acquire a pressure value detected by the piezoelectric ceramic sensor.
其中,电子设备的侧边设置有压电陶瓷传感器,所述压电陶瓷传感器可以用于检测用户的按压操作。当用户按压所述压电陶瓷传感器时,电子设备可以获取所述压电陶瓷传感器检测到的压力值,并将检测到的压力值转换为对应的电信号以进行处理。Wherein, a piezoelectric ceramic sensor is provided on a side of the electronic device, and the piezoelectric ceramic sensor can be used to detect a user's pressing operation. When the user presses the piezoelectric ceramic sensor, the electronic device can acquire the pressure value detected by the piezoelectric ceramic sensor, and convert the detected pressure value into a corresponding electrical signal for processing.
120,当所述压力值满足预设条件时,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面。120. When the pressure value satisfies a preset condition, display a corresponding user interface on a display screen of the electronic device according to the pressure value.
电子设备获取到压力值后,当所述压力值满足预设条件时,电子设备可以根据所述压力值在显示屏上显示对应的用户界面。After the electronic device acquires the pressure value, when the pressure value satisfies a preset condition, the electronic device may display a corresponding user interface on the display screen according to the pressure value.
其中,所述预设条件可以在电子设备中预先设定,也可以在用户的使用过程中由用户进行设定或者修改。当所述压力值满足预设条件时,表示所述压电陶瓷传感器检测到的按压操作为有效按压操作,此时电子设备可以在显示屏上显示对应的用户界面以对检测到的按压操作进行响应。当所述压力值不满足所述预设条件时,表示所述压电陶瓷传感器检测到的按压操作为无效按压操作,此时电子设备可以不对检测到的按压操作进行任何响应。Wherein, the preset condition may be preset in the electronic device, or may be set or modified by the user during the user's use. When the pressure value satisfies the preset condition, it means that the pressing operation detected by the piezoelectric ceramic sensor is an effective pressing operation, and at this time, the electronic device can display a corresponding user interface on the display screen to perform the detected pressing operation. response. When the pressure value does not meet the preset condition, it means that the pressing operation detected by the piezoelectric ceramic sensor is an invalid pressing operation, and at this time, the electronic device may not respond to the detected pressing operation.
可以理解的,电子设备中可以预先设置预设压力阈值以及预设时长。所述预设压力阈值表示电子设备需要对按压操作进行响应的最小按压压力值,例如所述预设压力阈值可以为0.5N(牛顿)。所述预设时长表示电子设备需要对按压操作进行响应的按压压力值超过所述预设压力阈值时维持的最小时长,例如所述预设时长可以为0.3s(秒)。It can be understood that a preset pressure threshold and a preset duration can be preset in the electronic device. The preset pressure threshold represents the minimum pressing pressure value that the electronic device needs to respond to the pressing operation, for example, the preset pressure threshold may be 0.5N (Newton). The preset duration indicates the minimum duration maintained when the pressing pressure value that the electronic device needs to respond to the pressing operation exceeds the preset pressure threshold, for example, the preset duration may be 0.3s (second).
电子设备获取到压电陶瓷传感器检测到的压力值后,可以判断所述压力值是否大于预设压力阈值。若所述压力值大于所述预设压力阈值,则进一步判断所述压力值持续大于所述预设压力阈值的持续时长是否大于预设时长。若所述压力值持续大于所述预设压力阈值的持续时长大于所述预设时长,则确定为所述压力值满足预设条件。After the electronic device acquires the pressure value detected by the piezoelectric ceramic sensor, it can determine whether the pressure value is greater than a preset pressure threshold. If the pressure value is greater than the preset pressure threshold, it is further determined whether the duration of the pressure value being greater than the preset pressure threshold is longer than a preset duration. If the duration for which the pressure value is continuously greater than the preset pressure threshold is longer than the preset duration, it is determined that the pressure value satisfies a preset condition.
若所述压力值不大于所述预设压力阈值,说明所述压力值过小,也即压电陶瓷传感器检测到的按压操作的按压力度过小,此时检测到的按压操作为误操作,从而确定为所述压力值不满足预设条件。If the pressure value is not greater than the preset pressure threshold, it means that the pressure value is too small, that is, the pressing force of the pressing operation detected by the piezoelectric ceramic sensor is too small, and the pressing operation detected at this time is a wrong operation. Therefore, it is determined that the pressure value does not meet the preset condition.
若所述压力值大于所述预设压力阈值,但是所述压力值持续大于所述预设压力阈值的持续时长不大于所述预设时长,说明所述压力值达到预设压力阈值的持续时长过短,也即压电陶瓷传感器检测到的按压操作的有效按压持续时长过短,此时检测到的按压操作也为误操作,从而确定为所述压力值不满足所述预设条件。If the pressure value is greater than the preset pressure threshold, but the duration of the pressure value being greater than the preset pressure threshold is not longer than the preset duration, it means that the duration of the pressure value reaching the preset pressure threshold Too short, that is, the effective pressing duration of the pressing operation detected by the piezoelectric ceramic sensor is too short, and the pressing operation detected at this time is also a misoperation, so it is determined that the pressure value does not meet the preset condition.
其中,所述用户界面为电子设备根据用户的按压操作所要实现的功能所对应的界面。其中,所述用户界面可以为音量调节界面,以实现电子设备的音量调节功能,如图3所示电子设备的显示屏上显示的音量调节界面,其中图3为本申请实施例提供的电子设备对用户操作进行响应的状态示意图;所述用户界面还可以为亮度调节界面,以实现电子设备显示屏的亮度调节;所述用户界面可以为语音助手启动界面,以实现启动电子设备的语音助手功能;所述用户界面还可以为关机界面,以实现控制电子设备关机。Wherein, the user interface is an interface corresponding to a function to be realized by the electronic device according to a user's pressing operation. Wherein, the user interface may be a volume adjustment interface, so as to realize the volume adjustment function of the electronic device, as shown in FIG. 3, the volume adjustment interface displayed on the display screen of the electronic device, wherein FIG. A schematic diagram of states responding to user operations; the user interface can also be a brightness adjustment interface to realize the brightness adjustment of the display screen of the electronic device; the user interface can be a voice assistant startup interface to realize the voice assistant function of the electronic device ; The user interface can also be a shutdown interface, so as to control the shutdown of electronic equipment.
130,接收用户针对所述用户界面的触控操作。130. Receive a user's touch operation on the user interface.
电子设备在显示屏上显示对应的用户界面后,电子设备可以接收用户针对所述用户界面的触控操作。其中,所述触控操作例如可以为短按、长按、轻按、重按等按压操作,所述触控操作还可以为滑动操作。After the electronic device displays the corresponding user interface on the display screen, the electronic device may receive a user's touch operation on the user interface. Wherein, the touch operation may be press operations such as short press, long press, light press, heavy press, etc., and the touch operation may also be a slide operation.
需要理解的是,所述触控操作是用户针对所述用户界面的触控操作,但并不一定是用户直接对显示屏上显示的用户界面进行的触控操作。例如,用户可以直接对显示屏上显示的用户界面进行触控操作;用户也可以在电子设备上与所述用户界面相对应的位置进行触控操作,以实现针对所述用户界面的触控操作。It should be understood that the touch operation is a touch operation performed by the user on the user interface, but not necessarily a touch operation directly performed by the user on the user interface displayed on the display screen. For example, the user can directly perform touch operation on the user interface displayed on the display screen; the user can also perform touch operation on the position corresponding to the user interface on the electronic device, so as to realize the touch operation on the user interface .
140,根据所述触控操作控制所述电子设备执行对应的功能。140. Control the electronic device to execute a corresponding function according to the touch operation.
电子设备接收到用户针对所述用户界面的触控操作后,即可根据所述触控操作控制所述电子设备执行对应的功能。After receiving a user's touch operation on the user interface, the electronic device can control the electronic device to execute a corresponding function according to the touch operation.
例如,当所述用户界面为音量调节界面时,电子设备可以根据接收到的触控操作控制电子设备执行音量调节;当所述用户界面为亮度调节界面时,电子设备可以根据接收到的触控操作控制电子设备执行亮度调节;当所述用户界面为语音助手启动界面时,电子设备可以根据接收到的触控操作控制电子设备启动语音助手;当所述用户界面为关机界面时,电子设备可以根据接收到的触控操作控制电子设备关机。For example, when the user interface is a volume adjustment interface, the electronic device can control the electronic device to perform volume adjustment according to the received touch operation; when the user interface is a brightness adjustment interface, the electronic device can control the volume according to the received touch operation. Operate and control the electronic device to perform brightness adjustment; when the user interface is a voice assistant startup interface, the electronic device can control the electronic device to start the voice assistant according to the received touch operation; when the user interface is a shutdown interface, the electronic device can Control the shutdown of the electronic device according to the received touch operation.
本申请实施例提供的电子设备的控制方法中,通过设置在电子设备侧边的压电陶瓷传感器检测按压操作,当按压操作的压力值满足预设条件时才显示用户界面,并根据用户的触控操作执行对应的功能,由于压电陶瓷传感器不需要突出于电子设备的表面,从而可以减少对压电陶瓷传感器的误操作,进而可以减少电子设备误操作的发生,提高对电子设备控制的准确性。In the electronic device control method provided in the embodiment of the present application, the pressing operation is detected by the piezoelectric ceramic sensor arranged on the side of the electronic device, and the user interface is displayed only when the pressure value of the pressing operation satisfies the preset condition, and the user interface is displayed according to the user's touch. The control operation performs the corresponding function. Since the piezoelectric ceramic sensor does not need to protrude from the surface of the electronic device, it can reduce the misoperation of the piezoelectric ceramic sensor, thereby reducing the occurrence of misoperation of the electronic device and improving the accuracy of electronic device control. sex.
在一些实施例中,参考图4,图4为本申请实施例提供的电子设备的控制方法的第二种流程示意图。In some embodiments, refer to FIG. 4 , which is a second schematic flowchart of a method for controlling an electronic device provided in an embodiment of the present application.
其中,120、根据所述压力值在所述电子设备的显示屏上显示对应的用户界面,包括:Wherein, 120. Display a corresponding user interface on the display screen of the electronic device according to the pressure value, including:
121,确定所述压力值所处的压力值区间;121. Determine the pressure value interval where the pressure value is located;
122,根据所述压力值区间以及预设对应关系确定对应的用户界面,所述预设对应关系包括压力值区间与用户界面之间的对应关系;122. Determine a corresponding user interface according to the pressure value interval and a preset correspondence relationship, where the preset correspondence relationship includes a correspondence relationship between a pressure value interval and a user interface;
123,在所述电子设备的显示屏上显示所述用户界面。123. Display the user interface on the display screen of the electronic device.
电子设备中可以预先对压力值设置多个压力值区间,每一个压力值区间包括一定的压力值范围。例如,可以预先针对压力值设置(0.5N,1N]、(1N,1.5N]、(1.5N,2N]、(2N,5N]等四个压力值区间。Multiple pressure value ranges may be set in advance for the pressure value in the electronic device, and each pressure value range includes a certain range of pressure values. For example, four pressure value intervals such as (0.5N, 1N], (1N, 1.5N], (1.5N, 2N], (2N, 5N], etc. may be set in advance for the pressure value.
此外,电子设备中可以预先设置压力值区间与用户界面之间的预设对应关系,所述预设对应关系中,每一个压力值区间对应于一个用户界面。例如,压力值区间(0.5N,1N]对应的用户界面为音量调节界面,压力值区间(1N,1.5N]对应的用户界面为亮度调节界面,压力值区间(1.5N,2N]对应的用户界面为语音助手启动界面,压力值区间(2N,5N]对应的用户界面为关机界面。In addition, a preset corresponding relationship between the pressure value range and the user interface may be preset in the electronic device, and in the preset corresponding relationship, each pressure value range corresponds to a user interface. For example, the user interface corresponding to the pressure value interval (0.5N, 1N] is the volume adjustment interface, the user interface corresponding to the pressure value interval (1N, 1.5N] is the brightness adjustment interface, and the user interface corresponding to the pressure value interval (1.5N, 2N] The interface is the voice assistant startup interface, and the user interface corresponding to the pressure value range (2N, 5N] is the shutdown interface.
电子设备获取到压电陶瓷传感器检测到的压力值后,首先确定所述压力值所处的压力值区间。随后,根据所述压力值区间以及预设对应关系确定对应的用户界面,并在所述电子设备的显示屏上显示所述用户界面。After the electronic device acquires the pressure value detected by the piezoelectric ceramic sensor, it first determines the pressure value interval in which the pressure value is located. Subsequently, a corresponding user interface is determined according to the pressure value range and the preset correspondence, and the user interface is displayed on the display screen of the electronic device.
例如,电子设备获取到的压力值为3N,那么所述压力值所处的压力值区间为(2N,5N],所述压力值区间对应的用户界面即为关机界面,随后电子设备在显示屏上显示关机界面。For example, if the pressure value acquired by the electronic device is 3N, then the pressure value interval of the pressure value is (2N, 5N], and the user interface corresponding to the pressure value interval is the shutdown interface, and then the electronic device displays The shutdown interface is displayed.
在一些实施例中,参考图5,图5为本申请实施例提供的电子设备的控制方法的第三种流程示意图。In some embodiments, refer to FIG. 5 , which is a third schematic flowchart of a method for controlling an electronic device provided in an embodiment of the present application.
其中,130、接收用户针对所述用户界面的触控操作,包括:Wherein, 130. Receive a user's touch operation on the user interface, including:
131,检测所述显示屏上与所述用户界面对应的区域是否接收到用户的触控操作;131. Detect whether an area on the display screen corresponding to the user interface receives a user's touch operation;
132,若所述显示屏上与所述用户界面对应的区域接收到用户的触控操作,则将所述触控操作确定为用户针对所述用户界面的触控操作。132. If the area on the display screen corresponding to the user interface receives a user's touch operation, determine the touch operation as a user's touch operation on the user interface.
可以理解的,电子设备的显示屏可以为触控显示屏,也即所述显示屏可以实现触控功能。例如,所述显示屏可以为电容触控屏。It can be understood that the display screen of the electronic device may be a touch display screen, that is, the display screen may implement a touch function. For example, the display screen may be a capacitive touch screen.
电子设备在显示屏上显示用户界面后,可以检测所述显示屏上与所述用户界面对应的区域是否接收到用户的触控操作。其中,所述触控操作可以包括按压操作、滑动操作等。After the electronic device displays the user interface on the display screen, it may detect whether the area on the display screen corresponding to the user interface receives a user's touch operation. Wherein, the touch operation may include a pressing operation, a sliding operation, and the like.
若所述显示屏上与所述用户界面对应的区域接收到用户的触控操作,则电子设备将所述触控操作确定为用户针对所述用户界面的触控操作,随后可以根据所述触控操作执行对应的功能。If the area on the display screen corresponding to the user interface receives a user's touch operation, the electronic device determines the touch operation as a user's touch operation on the user interface, and then may control operation to execute the corresponding function.
例如,当显示屏上显示的用户界面为音量调节界面时,若所述显示屏上与所述音量调节界面对应的区域接收到用户的点击操作或者滑动操作时,电子设备可以将所述点击操作或者滑动操作确定为用户针对所述用户界面的触控操作。例如,当显示屏上与音量调节界面中的“+”图标对应的区域接收到用户的点击操作时,则电子设备控制增大音量;当显示屏上与音量调节界面中的“-”图标对应的区域接收到用户的点击操作时,则电子设备控制减小音量;当显示屏上与音量调节界面对应的区域接收到上滑操作时,电子设备也可以控制增大音量;当显示屏上与音量调节界面对应的区域接收到下滑操作时,电子设备也可以控制减小音量。For example, when the user interface displayed on the display screen is a volume adjustment interface, if the area corresponding to the volume adjustment interface on the display screen receives a user's click operation or slide operation, the electronic device can set the click operation Or the sliding operation is determined as a user's touch operation on the user interface. For example, when the area corresponding to the "+" icon in the volume adjustment interface on the display screen receives a user's click operation, the electronic device controls to increase the volume; when the area corresponding to the "-" icon in the volume adjustment interface on the display screen When the area on the display screen receives a click operation from the user, the electronic device controls to decrease the volume; when the area on the display screen corresponding to the volume adjustment interface receives a sliding operation, the electronic device can also control the volume increase; When the area corresponding to the volume adjustment interface receives a sliding operation, the electronic device can also control to decrease the volume.
在一些实施例中,参考图6,图6为本申请实施例提供的电子设备的控制方法的第四种流程示意图。In some embodiments, refer to FIG. 6 , which is a fourth schematic flowchart of a method for controlling an electronic device provided in an embodiment of the present application.
其中,电子设备上设置有指纹识别模组。所述指纹识别模组例如可以设置在电子设备显示屏的底端、或者设置在电子设备的后盖上、或者埋设在显示屏的下方。所述指纹识别模组包括触控传感器。所述触控传感器例如可以包括电容触控传感器、压力触控传感器、超声波触控传感器等类型的传感器。电子设备可以通过所述触控传感器接收用户的触控操作,诸如接收用户的按压操作、滑动操作等。Wherein, the electronic device is provided with a fingerprint identification module. The fingerprint recognition module can be arranged, for example, at the bottom of the display screen of the electronic device, or on the back cover of the electronic device, or buried under the display screen. The fingerprint recognition module includes a touch sensor. The touch sensor may include, for example, capacitive touch sensors, pressure touch sensors, ultrasonic touch sensors and other types of sensors. The electronic device may receive a user's touch operation through the touch sensor, such as receiving a user's pressing operation, sliding operation, and the like.
其中,130、接收用户针对所述用户界面的触控操作,包括:Wherein, 130. Receive a user's touch operation on the user interface, including:
133,检测所述指纹识别模组中的触控传感器是否接收到用户的触控操作;133. Detect whether the touch sensor in the fingerprint identification module receives a user's touch operation;
134,若所述指纹识别模组中的触控传感器接收到用户的触控操作,则将所述触控操作确定为用户针对所述用户界面的触控操作。134. If the touch sensor in the fingerprint recognition module receives a user's touch operation, determine the touch operation as a user's touch operation on the user interface.
电子设备在显示屏上显示用户界面后,可以检测指纹识别模组中的触控传感器是否接收到用户的触控操作。其中,所述触控操作可以包括按压操作、滑动操作等。After the electronic device displays the user interface on the display screen, it can detect whether the touch sensor in the fingerprint identification module has received a touch operation from the user. Wherein, the touch operation may include a pressing operation, a sliding operation, and the like.
若所述指纹识别模组中的触控传感器接收到用户的触控操作,则电子设备将所述触控操作确定为用户针对所述用户界面的触控操作,随后可以根据所述触控操作执行对应的功能。If the touch sensor in the fingerprint recognition module receives a user's touch operation, the electronic device determines the touch operation as the user's touch operation on the user interface, and then can Execute the corresponding function.
例如,当显示屏上显示的用户界面为音量调节界面时,指纹识别模组上的部分区域可以对应于音量调节界面中的“+”图标,指纹识别模组上的另一部分区域可以对应于音量调节界面中的“-”图标。例如,指纹识别模组的左半部分区域对应于音量调节界面中的“+”图标,指纹识别模组的右半部分区域对应于音量调节界面中的“-”图标。当指纹识别模组的左半部分区域接收到用户的点击操作时,则电子设备控制增大音量;当指纹识别模组的右半部分区域接收到用户的点击操作时,则电子设备控制减小音量;当指纹识别模组接收到上滑操作时,电子设备也可以控制增大音量;当指纹识别模组接收到下滑操作时,电子设备也可以控制减小音量。For example, when the user interface displayed on the display screen is the volume adjustment interface, part of the area on the fingerprint identification module may correspond to the "+" icon in the volume adjustment interface, and another part of the area on the fingerprint identification module may correspond to the volume adjustment interface. Adjust the "-" icon in the interface. For example, the left half area of the fingerprint identification module corresponds to the "+" icon in the volume adjustment interface, and the right half area of the fingerprint identification module corresponds to the "-" icon in the volume adjustment interface. When the left half area of the fingerprint identification module receives the user's click operation, the electronic device controls to increase the volume; when the right half area of the fingerprint identification module receives the user's click operation, the electronic device controls the volume to decrease. Volume: when the fingerprint recognition module receives a slide-up operation, the electronic device can also control to increase the volume; when the fingerprint recognition module receives a slide-down operation, the electronic device can also control to decrease the volume.
在一些实施例中,参考图7,图7为本申请实施例提供的电子设备的控制方法的第五种流程示意图。In some embodiments, refer to FIG. 7 , which is a fifth schematic flowchart of a method for controlling an electronic device provided in an embodiment of the present application.
其中,电子设备中设置有马达。所述马达可以设置在电子设备的电路板上。所述马达可以产生振动,以带动电子设备产生振动,从而对用户产生提醒作用。Wherein, the electronic device is provided with a motor. The motor may be provided on a circuit board of an electronic device. The motor can generate vibrations to drive the electronic equipment to generate vibrations, thereby generating reminders to users.
其中,120、当所述压力值满足预设条件时,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面之后,还包括:Wherein, 120. When the pressure value satisfies the preset condition, after displaying a corresponding user interface on the display screen of the electronic device according to the pressure value, further comprising:
151,根据所述压力值生成马达驱动信号;151. Generate a motor drive signal according to the pressure value;
152,根据所述马达驱动信号驱动所述马达产生振动,以带动所述电子设备产生振动。152. Drive the motor to vibrate according to the motor drive signal, so as to drive the electronic device to vibrate.
当电子设备获取到的压力值满足预设条件,并在显示屏上显示对应的用户界面之后,电子设备还可以根据所述压力值生成马达驱动信号。所述马达驱动信号用于驱动马达产生振动。随后,电子设备可以根据所述马达驱动信号驱动马达产生振动,以带动电子设备产生振动,从而对用户进行提醒。When the pressure value acquired by the electronic device satisfies the preset condition and displays a corresponding user interface on the display screen, the electronic device can also generate a motor driving signal according to the pressure value. The motor driving signal is used to drive the motor to generate vibration. Subsequently, the electronic device may drive the motor to vibrate according to the motor driving signal, so as to drive the electronic device to vibrate, thereby reminding the user.
请一并参考图8,图8为本申请实施例提供的电子设备对用户操作进行响应的时序示意图。图中以调节电子设备的音量为例进行展示。其中,电子设备通过压电陶瓷传感器获取到了P1、P2两个压力值。压力值P1不满足预设条件,从而电子设备未对压力值P1进行响应。压力值P2满足预设条件,电子设备根据压力值P2在显示屏上显示音量调节界面,并产生马达驱动信号P3,以及根据马达驱动信号P3驱动马达产生振动。当电子设备接收到用户针对音量调节界面的触控操作P4时,例如触控操作P4为上滑操作,则电子设备根据触控操作P4控制电子设备的音量进行如图P5所示的变化,也即控制电子设备的音量逐渐增大。Please refer to FIG. 8 together. FIG. 8 is a schematic diagram of a timing sequence of an electronic device responding to a user operation according to an embodiment of the present application. In the figure, adjusting the volume of an electronic device is taken as an example for illustration. Among them, the electronic equipment obtains two pressure values of P1 and P2 through the piezoelectric ceramic sensor. The pressure value P1 does not meet the preset condition, so the electronic device does not respond to the pressure value P1. When the pressure value P2 satisfies the preset condition, the electronic device displays a volume adjustment interface on the display screen according to the pressure value P2, generates a motor driving signal P3, and drives the motor to vibrate according to the motor driving signal P3. When the electronic device receives the user's touch operation P4 on the volume adjustment interface, for example, the touch operation P4 is an upward slide operation, the electronic device controls the volume of the electronic device according to the touch operation P4 to change as shown in Figure P5, and also That is, the volume of the control electronics is gradually increased.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the execution order of the described steps, and certain steps may be performed in other orders or simultaneously if no conflict arises.
由上可知,本申请实施例提供的电子设备的控制方法,包括:获取压电陶瓷传感器检测到的压力值;当所述压力值满足预设条件时,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面;接收用户针对所述用户界面的触控操作;根据所述触控操作控制所述电子设备执行对应的功能。所述电子设备的控制方法中,通过设置在电子设备侧边的压电陶瓷传感器检测按压操作,当按压操作的压力值满足预设条件时才显示用户界面,并根据用户的触控操作执行对应的功能,由于压电陶瓷传感器不需要突出于电子设备的表面,从而可以减少对压电陶瓷传感器的误操作,进而可以减少电子设备误操作的发生,提高对电子设备控制的准确性。It can be seen from the above that the electronic device control method provided by the embodiment of the present application includes: acquiring the pressure value detected by the piezoelectric ceramic sensor; when the pressure value meets the preset condition, Displaying a corresponding user interface on the display screen; receiving a user's touch operation on the user interface; and controlling the electronic device to perform a corresponding function according to the touch operation. In the control method of the electronic device, the pressing operation is detected by the piezoelectric ceramic sensor arranged on the side of the electronic device, and the user interface is displayed only when the pressure value of the pressing operation satisfies a preset condition, and the corresponding operation is performed according to the user's touch operation. Since the piezoelectric ceramic sensor does not need to protrude from the surface of the electronic equipment, it can reduce the misoperation of the piezoelectric ceramic sensor, thereby reducing the occurrence of misoperation of the electronic equipment and improving the accuracy of electronic equipment control.
本申请实施例还提供一种电子设备的控制装置,所述电子设备的控制装置可以集成在电子设备中。所述电子设备可以为智能手机、平板电脑、游戏设备、AR(AugmentedReality,增强现实)设备、汽车、数据存储装置、音频播放装置、视频播放装置、笔记本电脑、桌面计算设备、可穿戴设备诸如电子手表、电子眼镜、电子头盔、电子手链、电子项链、电子衣物等设备。An embodiment of the present application also provides a control device for an electronic device, and the control device for the electronic device may be integrated into the electronic device. The electronic device may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality, augmented reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook computer, a desktop computing device, a wearable device such as an electronic Watches, electronic glasses, electronic helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment.
其中,电子设备的侧边设置有压电陶瓷传感器。所述压电陶瓷传感器可以实现机械能与电能的相互转换,从而实现检测用户的按压操作。Wherein, a piezoelectric ceramic sensor is arranged on the side of the electronic device. The piezoelectric ceramic sensor can realize the mutual conversion between mechanical energy and electric energy, so as to detect the pressing operation of the user.
参考图9,图9为本申请实施例提供的电子设备的控制装置的第一种结构示意图。其中,所述电子设备的控制装置200包括:获取模块201、显示模块202、接收模块203、执行模块204。Referring to FIG. 9 , FIG. 9 is a first structural schematic diagram of a control device for an electronic device provided by an embodiment of the present application. Wherein, the control device 200 of the electronic device includes: an acquisition module 201 , a display module 202 , a receiving module 203 , and an execution module 204 .
获取模块201,用于获取所述压电陶瓷传感器检测到的压力值。The acquiring module 201 is configured to acquire the pressure value detected by the piezoelectric ceramic sensor.
其中,电子设备的侧边设置有压电陶瓷传感器,所述压电陶瓷传感器可以用于检测用户的按压操作。当用户按压所述压电陶瓷传感器时,获取模块201可以获取所述压电陶瓷传感器检测到的压力值,并将检测到的压力值转换为对应的电信号以进行处理。Wherein, a piezoelectric ceramic sensor is provided on a side of the electronic device, and the piezoelectric ceramic sensor can be used to detect a user's pressing operation. When the user presses the piezoelectric ceramic sensor, the acquiring module 201 can acquire the pressure value detected by the piezoelectric ceramic sensor, and convert the detected pressure value into a corresponding electrical signal for processing.
显示模块202,用于当所述压力值满足预设条件时,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面。The display module 202 is configured to display a corresponding user interface on the display screen of the electronic device according to the pressure value when the pressure value satisfies a preset condition.
获取模块201获取到压力值后,当所述压力值满足预设条件时,显示模块202可以根据所述压力值在显示屏上显示对应的用户界面。After the acquisition module 201 acquires the pressure value, when the pressure value satisfies a preset condition, the display module 202 may display a corresponding user interface on the display screen according to the pressure value.
其中,所述预设条件可以在电子设备中预先设定,也可以在用户的使用过程中由用户进行设定或者修改。当所述压力值满足预设条件时,表示所述压电陶瓷传感器检测到的按压操作为有效按压操作,此时显示模块202可以在显示屏上显示对应的用户界面以对检测到的按压操作进行响应。当所述压力值不满足所述预设条件时,表示所述压电陶瓷传感器检测到的按压操作为无效按压操作,此时电子设备可以不对检测到的按压操作进行任何响应。Wherein, the preset condition may be preset in the electronic device, or may be set or modified by the user during the user's use. When the pressure value satisfies the preset condition, it means that the pressing operation detected by the piezoelectric ceramic sensor is a valid pressing operation. At this time, the display module 202 can display a corresponding user interface on the display screen to respond to the detected pressing operation. to respond. When the pressure value does not meet the preset condition, it means that the pressing operation detected by the piezoelectric ceramic sensor is an invalid pressing operation, and at this time, the electronic device may not respond to the detected pressing operation.
可以理解的,电子设备中可以预先设置预设压力阈值以及预设时长。所述预设压力阈值表示电子设备需要对按压操作进行响应的最小按压压力值,例如所述预设压力阈值可以为0.5N(牛顿)。所述预设时长表示电子设备需要对按压操作进行响应的按压压力值超过所述预设压力阈值时维持的最小时长,例如所述预设时长可以为0.3s(秒)。It can be understood that a preset pressure threshold and a preset duration can be preset in the electronic device. The preset pressure threshold represents the minimum pressing pressure value that the electronic device needs to respond to the pressing operation, for example, the preset pressure threshold may be 0.5N (Newton). The preset duration indicates the minimum duration maintained when the pressing pressure value that the electronic device needs to respond to the pressing operation exceeds the preset pressure threshold, for example, the preset duration may be 0.3s (second).
获取模块201获取到压电陶瓷传感器检测到的压力值后,显示模块202可以判断所述压力值是否大于预设压力阈值。若所述压力值大于所述预设压力阈值,则进一步判断所述压力值持续大于所述预设压力阈值的持续时长是否大于预设时长。若所述压力值持续大于所述预设压力阈值的持续时长大于所述预设时长,则确定为所述压力值满足预设条件。After the acquisition module 201 acquires the pressure value detected by the piezoelectric ceramic sensor, the display module 202 can determine whether the pressure value is greater than a preset pressure threshold. If the pressure value is greater than the preset pressure threshold, it is further determined whether the duration of the pressure value being greater than the preset pressure threshold is longer than a preset duration. If the duration for which the pressure value is continuously greater than the preset pressure threshold is longer than the preset duration, it is determined that the pressure value satisfies a preset condition.
若所述压力值不大于所述预设压力阈值,说明所述压力值过小,也即压电陶瓷传感器检测到的按压操作的按压力度过小,此时检测到的按压操作为误操作,从而确定为所述压力值不满足预设条件。If the pressure value is not greater than the preset pressure threshold, it means that the pressure value is too small, that is, the pressing force of the pressing operation detected by the piezoelectric ceramic sensor is too small, and the pressing operation detected at this time is a wrong operation. Therefore, it is determined that the pressure value does not meet the preset condition.
若所述压力值大于所述预设压力阈值,但是所述压力值持续大于所述预设压力阈值的持续时长不大于所述预设时长,说明所述压力值达到预设压力阈值的持续时长过短,也即压电陶瓷传感器检测到的按压操作的有效按压持续时长过短,此时检测到的按压操作也为误操作,从而确定为所述压力值不满足所述预设条件。If the pressure value is greater than the preset pressure threshold, but the duration of the pressure value being greater than the preset pressure threshold is not longer than the preset duration, it means that the duration of the pressure value reaching the preset pressure threshold Too short, that is, the effective pressing duration of the pressing operation detected by the piezoelectric ceramic sensor is too short, and the pressing operation detected at this time is also a misoperation, so it is determined that the pressure value does not meet the preset condition.
其中,所述用户界面为电子设备根据用户的按压操作所要实现的功能所对应的界面。其中,所述用户界面可以为音量调节界面,以实现电子设备的音量调节功能;所述用户界面还可以为亮度调节界面,以实现电子设备显示屏的亮度调节;所述用户界面可以为语音助手启动界面,以实现启动电子设备的语音助手功能;所述用户界面还可以为关机界面,以实现控制电子设备关机。Wherein, the user interface is an interface corresponding to a function to be realized by the electronic device according to a user's pressing operation. Wherein, the user interface can be a volume adjustment interface to realize the volume adjustment function of the electronic device; the user interface can also be a brightness adjustment interface to realize the brightness adjustment of the display screen of the electronic device; the user interface can be a voice assistant The startup interface is used to start the voice assistant function of the electronic device; the user interface can also be a shutdown interface, so as to control the shutdown of the electronic device.
接收模块203,用于接收用户针对所述用户界面的触控操作。The receiving module 203 is configured to receive a user's touch operation on the user interface.
显示模块202在显示屏上显示对应的用户界面后,接收模块203可以接收用户针对所述用户界面的触控操作。其中,所述触控操作例如可以为短按、长按、轻按、重按等按压操作,所述触控操作还可以为滑动操作。After the display module 202 displays a corresponding user interface on the display screen, the receiving module 203 may receive a user's touch operation on the user interface. Wherein, the touch operation may be press operations such as short press, long press, light press, heavy press, etc., and the touch operation may also be a slide operation.
需要理解的是,所述触控操作是用户针对所述用户界面的触控操作,但并不一定是用户直接对显示屏上显示的用户界面进行的触控操作。例如,用户可以直接对显示屏上显示的用户界面进行触控操作;用户也可以在电子设备上与所述用户界面相对应的位置进行触控操作,以实现针对所述用户界面的触控操作。It should be understood that the touch operation is a touch operation performed by the user on the user interface, but not necessarily a touch operation directly performed by the user on the user interface displayed on the display screen. For example, the user can directly perform touch operation on the user interface displayed on the display screen; the user can also perform touch operation on the position corresponding to the user interface on the electronic device, so as to realize the touch operation on the user interface .
执行模块204,用于根据所述触控操作控制所述电子设备执行对应的功能。The execution module 204 is configured to control the electronic device to execute a corresponding function according to the touch operation.
接收模块203接收到用户针对所述用户界面的触控操作后,执行模块204即可根据所述触控操作控制所述电子设备执行对应的功能。After the receiving module 203 receives the user's touch operation on the user interface, the execution module 204 can control the electronic device to execute the corresponding function according to the touch operation.
例如,当所述用户界面为音量调节界面时,执行模块204可以根据接收到的触控操作控制电子设备执行音量调节;当所述用户界面为亮度调节界面时,执行模块204可以根据接收到的触控操作控制电子设备执行亮度调节;当所述用户界面为语音助手启动界面时,执行模块204可以根据接收到的触控操作控制电子设备启动语音助手;当所述用户界面为关机界面时,执行模块204可以根据接收到的触控操作控制电子设备关机。For example, when the user interface is a volume adjustment interface, the execution module 204 may control the electronic device to perform volume adjustment according to the received touch operation; when the user interface is a brightness adjustment interface, the execution module 204 may The touch operation controls the electronic device to perform brightness adjustment; when the user interface is a voice assistant startup interface, the execution module 204 can control the electronic device to start the voice assistant according to the received touch operation; when the user interface is a shutdown interface, The execution module 204 can control the electronic device to shut down according to the received touch operation.
本申请实施例提供的电子设备的控制装置通过设置在电子设备侧边的压电陶瓷传感器检测按压操作,当按压操作的压力值满足预设条件时才显示用户界面,并根据用户的触控操作执行对应的功能,由于压电陶瓷传感器不需要突出于电子设备的表面,从而可以减少对压电陶瓷传感器的误操作,进而可以减少电子设备误操作的发生,提高对电子设备控制的准确性。The electronic device control device provided in the embodiment of the present application detects the pressing operation through the piezoelectric ceramic sensor arranged on the side of the electronic device, and only displays the user interface when the pressure value of the pressing operation satisfies the preset condition, and according to the user's touch operation To perform the corresponding function, since the piezoelectric ceramic sensor does not need to protrude from the surface of the electronic device, the misoperation of the piezoelectric ceramic sensor can be reduced, thereby reducing the occurrence of misoperation of the electronic device and improving the control accuracy of the electronic device.
在一些实施例中,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面时,显示模块202用于:In some embodiments, when displaying a corresponding user interface on the display screen of the electronic device according to the pressure value, the display module 202 is configured to:
确定所述压力值所处的压力值区间;determining the pressure value interval in which the pressure value is located;
根据所述压力值区间以及预设对应关系确定对应的用户界面,所述预设对应关系包括压力值区间与用户界面之间的对应关系;Determining a corresponding user interface according to the pressure value interval and a preset corresponding relationship, the preset corresponding relationship including a corresponding relationship between the pressure value interval and the user interface;
在所述电子设备的显示屏上显示所述用户界面。The user interface is displayed on the display screen of the electronic device.
电子设备中可以预先对压力值设置多个压力值区间,每一个压力值区间包括一定的压力值范围。例如,可以预先针对压力值设置(0.5N,1N]、(1N,1.5N]、(1.5N,2N]、(2N,5N]等四个压力值区间。Multiple pressure value ranges may be set in advance for the pressure value in the electronic device, and each pressure value range includes a certain range of pressure values. For example, four pressure value intervals such as (0.5N, 1N], (1N, 1.5N], (1.5N, 2N], (2N, 5N], etc. may be set in advance for the pressure value.
此外,电子设备中可以预先设置压力值区间与用户界面之间的预设对应关系,所述预设对应关系中,每一个压力值区间对应于一个用户界面。例如,压力值区间(0.5N,1N]对应的用户界面为音量调节界面,压力值区间(1N,1.5N]对应的用户界面为亮度调节界面,压力值区间(1.5N,2N]对应的用户界面为语音助手启动界面,压力值区间(2N,5N]对应的用户界面为关机界面。In addition, a preset corresponding relationship between the pressure value range and the user interface may be preset in the electronic device, and in the preset corresponding relationship, each pressure value range corresponds to a user interface. For example, the user interface corresponding to the pressure value interval (0.5N, 1N] is the volume adjustment interface, the user interface corresponding to the pressure value interval (1N, 1.5N] is the brightness adjustment interface, and the user interface corresponding to the pressure value interval (1.5N, 2N] The interface is the voice assistant startup interface, and the user interface corresponding to the pressure value range (2N, 5N] is the shutdown interface.
获取模块201获取到压电陶瓷传感器检测到的压力值后,显示模块202首先确定所述压力值所处的压力值区间。随后,根据所述压力值区间以及预设对应关系确定对应的用户界面,并在所述电子设备的显示屏上显示所述用户界面。After the acquisition module 201 acquires the pressure value detected by the piezoelectric ceramic sensor, the display module 202 first determines the pressure value range in which the pressure value is located. Subsequently, a corresponding user interface is determined according to the pressure value range and the preset correspondence, and the user interface is displayed on the display screen of the electronic device.
例如,电子设备获取到的压力值为3N,那么所述压力值所处的压力值区间为(2N,5N],所述压力值区间对应的用户界面即为关机界面,随后显示模块202在显示屏上显示关机界面。For example, if the pressure value acquired by the electronic device is 3N, then the pressure value interval of the pressure value is (2N, 5N], and the user interface corresponding to the pressure value interval is the shutdown interface, and then the display module 202 displays The shutdown interface is displayed on the screen.
在一些实施例中,接收用户针对所述用户界面的触控操作时,接收模块203用于:In some embodiments, when receiving a user's touch operation on the user interface, the receiving module 203 is configured to:
检测所述显示屏上与所述用户界面对应的区域是否接收到用户的触控操作;Detecting whether the area on the display screen corresponding to the user interface receives a user's touch operation;
若所述显示屏上与所述用户界面对应的区域接收到用户的触控操作,则将所述触控操作确定为用户针对所述用户界面的触控操作。If the area on the display screen corresponding to the user interface receives a user's touch operation, the touch operation is determined as a user's touch operation on the user interface.
可以理解的,电子设备的显示屏可以为触控显示屏,也即所述显示屏可以实现触控功能。例如,所述显示屏可以为电容触控屏。It can be understood that the display screen of the electronic device may be a touch display screen, that is, the display screen may implement a touch function. For example, the display screen may be a capacitive touch screen.
显示模块202在显示屏上显示用户界面后,接收模块203可以检测所述显示屏上与所述用户界面对应的区域是否接收到用户的触控操作。其中,所述触控操作可以包括按压操作、滑动操作等。After the display module 202 displays the user interface on the display screen, the receiving module 203 can detect whether the area on the display screen corresponding to the user interface receives a user's touch operation. Wherein, the touch operation may include a pressing operation, a sliding operation, and the like.
若所述显示屏上与所述用户界面对应的区域接收到用户的触控操作,则接收模块203将所述触控操作确定为用户针对所述用户界面的触控操作,随后可以根据所述触控操作执行对应的功能。If the area on the display screen corresponding to the user interface receives a user's touch operation, the receiving module 203 determines the touch operation as the user's touch operation on the user interface, and then can The touch operation executes the corresponding function.
例如,当显示屏上显示的用户界面为音量调节界面时,若所述显示屏上与所述音量调节界面对应的区域接收到用户的点击操作或者滑动操作时,接收模块203可以将所述点击操作或者滑动操作确定为用户针对所述用户界面的触控操作。例如,当显示屏上与音量调节界面中的“+”图标对应的区域接收到用户的点击操作时,则电子设备控制增大音量;当显示屏上与音量调节界面中的“-”图标对应的区域接收到用户的点击操作时,则电子设备控制减小音量;当显示屏上与音量调节界面对应的区域接收到上滑操作时,电子设备也可以控制增大音量;当显示屏上与音量调节界面对应的区域接收到下滑操作时,电子设备也可以控制减小音量。For example, when the user interface displayed on the display screen is a volume adjustment interface, if the area on the display screen corresponding to the volume adjustment interface receives a click operation or a slide operation from the user, the receiving module 203 may transfer the click operation to the volume adjustment interface. The operation or sliding operation is determined as a user's touch operation on the user interface. For example, when the area corresponding to the "+" icon in the volume adjustment interface on the display screen receives a user's click operation, the electronic device controls to increase the volume; when the area corresponding to the "-" icon in the volume adjustment interface on the display screen When the area on the display screen receives a click operation from the user, the electronic device controls to decrease the volume; when the area on the display screen corresponding to the volume adjustment interface receives a sliding operation, the electronic device can also control the volume increase; When the area corresponding to the volume adjustment interface receives a sliding operation, the electronic device can also control to decrease the volume.
在一些实施例中,电子设备上设置有指纹识别模组。所述指纹识别模组例如可以设置在电子设备显示屏的底端、或者设置在电子设备的后盖上、或者埋设在显示屏的下方。所述指纹识别模组包括触控传感器。所述触控传感器例如可以包括电容触控传感器、压力触控传感器、超声波触控传感器等类型的传感器。电子设备可以通过所述触控传感器接收用户的触控操作,诸如接收用户的按压操作、滑动操作等。In some embodiments, the electronic device is provided with a fingerprint identification module. The fingerprint recognition module can be arranged, for example, at the bottom of the display screen of the electronic device, or on the back cover of the electronic device, or buried under the display screen. The fingerprint recognition module includes a touch sensor. The touch sensor may include, for example, capacitive touch sensors, pressure touch sensors, ultrasonic touch sensors and other types of sensors. The electronic device may receive a user's touch operation through the touch sensor, such as receiving a user's pressing operation, sliding operation, and the like.
在接收用户针对所述用户界面的触控操作时,接收模块203用于:When receiving a user's touch operation on the user interface, the receiving module 203 is configured to:
检测所述指纹识别模组中的触控传感器是否接收到用户的触控操作;Detecting whether the touch sensor in the fingerprint identification module has received a user's touch operation;
若所述指纹识别模组中的触控传感器接收到用户的触控操作,则将所述触控操作确定为用户针对所述用户界面的触控操作。If the touch sensor in the fingerprint recognition module receives a user's touch operation, the touch operation is determined as the user's touch operation on the user interface.
显示模块202在显示屏上显示用户界面后,接收模块203可以检测指纹识别模组中的触控传感器是否接收到用户的触控操作。其中,所述触控操作可以包括按压操作、滑动操作等。After the display module 202 displays the user interface on the display screen, the receiving module 203 can detect whether the touch sensor in the fingerprint recognition module receives a user's touch operation. Wherein, the touch operation may include a pressing operation, a sliding operation, and the like.
若所述指纹识别模组中的触控传感器接收到用户的触控操作,则接收模块203将所述触控操作确定为用户针对所述用户界面的触控操作,随后可以根据所述触控操作执行对应的功能。If the touch sensor in the fingerprint identification module receives a user's touch operation, the receiving module 203 determines the touch operation as the user's touch operation on the user interface, and then can An operation performs a corresponding function.
例如,当显示屏上显示的用户界面为音量调节界面时,指纹识别模组上的部分区域可以对应于音量调节界面中的“+”图标,指纹识别模组上的另一部分区域可以对应于音量调节界面中的“-”图标。例如,指纹识别模组的左半部分区域对应于音量调节界面中的“+”图标,指纹识别模组的右半部分区域对应于音量调节界面中的“-”图标。当指纹识别模组的左半部分区域接收到用户的点击操作时,则电子设备控制增大音量;当指纹识别模组的右半部分区域接收到用户的点击操作时,则电子设备控制减小音量;当指纹识别模组接收到上滑操作时,电子设备也可以控制增大音量;当指纹识别模组接收到下滑操作时,电子设备也可以控制减小音量。For example, when the user interface displayed on the display screen is the volume adjustment interface, part of the area on the fingerprint identification module may correspond to the "+" icon in the volume adjustment interface, and another part of the area on the fingerprint identification module may correspond to the volume adjustment interface. Adjust the "-" icon in the interface. For example, the left half area of the fingerprint identification module corresponds to the "+" icon in the volume adjustment interface, and the right half area of the fingerprint identification module corresponds to the "-" icon in the volume adjustment interface. When the left half area of the fingerprint identification module receives the user's click operation, the electronic device controls to increase the volume; when the right half area of the fingerprint identification module receives the user's click operation, the electronic device controls the volume to decrease. Volume: when the fingerprint recognition module receives a slide-up operation, the electronic device can also control to increase the volume; when the fingerprint recognition module receives a slide-down operation, the electronic device can also control to decrease the volume.
在一些实施例中,参考图10,图10为本申请实施例提供的电子设备的控制装置的第二种结构示意图。其中,电子设备中设置有马达。所述马达可以设置在电子设备的电路板上。所述马达可以产生振动,以带动电子设备产生振动,从而对用户产生提醒作用。In some embodiments, refer to FIG. 10 , which is a second structural schematic diagram of a control device for an electronic device provided in an embodiment of the present application. Wherein, the electronic device is provided with a motor. The motor may be provided on a circuit board of an electronic device. The motor can generate vibrations to drive the electronic equipment to generate vibrations, thereby generating reminders to users.
电子设备的控制装置200还包括振动模块205。所述振动模块205用于:The control device 200 of the electronic equipment also includes a vibration module 205 . The vibration module 205 is used for:
根据所述压力值生成马达驱动信号;generating a motor drive signal based on the pressure value;
根据所述马达驱动信号驱动所述马达产生振动,以带动所述电子设备产生振动。The motor is driven to vibrate according to the motor driving signal, so as to drive the electronic device to vibrate.
当获取模块201获取到的压力值满足预设条件,显示模块202在显示屏上显示对应的用户界面之后,振动模块205可以根据所述压力值生成马达驱动信号。所述马达驱动信号用于驱动马达产生振动。随后,振动模块205可以根据所述马达驱动信号驱动马达产生振动,以带动电子设备产生振动,从而对用户进行提醒。When the pressure value acquired by the acquisition module 201 satisfies the preset condition, after the display module 202 displays a corresponding user interface on the display screen, the vibration module 205 can generate a motor driving signal according to the pressure value. The motor driving signal is used to drive the motor to generate vibration. Subsequently, the vibration module 205 may drive the motor to vibrate according to the motor driving signal, so as to drive the electronic device to vibrate, thereby reminding the user.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现。During specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily to be implemented as the same or several entities.
由上可知,本申请实施例提供的电子设备的控制装置200,包括:获取模块201,用于获取压电陶瓷传感器检测到的压力值;显示模块202,用于当所述压力值满足预设条件时,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面;接收模块203,用于接收用户针对所述用户界面的触控操作;执行模块204,用于根据所述触控操作控制所述电子设备执行对应的功能。所述电子设备的控制装置通过设置在电子设备侧边的压电陶瓷传感器检测按压操作,当按压操作的压力值满足预设条件时才显示用户界面,并根据用户的触控操作执行对应的功能,由于压电陶瓷传感器不需要突出于电子设备的表面,从而可以减少对压电陶瓷传感器的误操作,进而可以减少电子设备误操作的发生,提高对电子设备控制的准确性。It can be seen from the above that the control device 200 of the electronic equipment provided by the embodiment of the present application includes: an acquisition module 201 for acquiring the pressure value detected by the piezoelectric ceramic sensor; a display module 202 for when the pressure value satisfies the preset condition, display a corresponding user interface on the display screen of the electronic device according to the pressure value; the receiving module 203 is used to receive the user's touch operation on the user interface; the execution module 204 is used to The touch operation controls the electronic device to execute corresponding functions. The control device of the electronic device detects the pressing operation through the piezoelectric ceramic sensor arranged on the side of the electronic device, displays the user interface when the pressure value of the pressing operation satisfies a preset condition, and executes the corresponding function according to the user's touch operation , since the piezoelectric ceramic sensor does not need to protrude from the surface of the electronic device, the misoperation of the piezoelectric ceramic sensor can be reduced, thereby reducing the occurrence of misoperation of the electronic device and improving the control accuracy of the electronic device.
本申请实施例还提供一种电子设备。所述电子设备可以为智能手机、平板电脑、游戏设备、AR(Augmented Reality,增强现实)设备、汽车、数据存储装置、音频播放装置、视频播放装置、笔记本电脑、桌面计算设备、可穿戴设备诸如电子手表、电子眼镜、电子头盔、电子手链、电子项链、电子衣物等设备。The embodiment of the present application also provides an electronic device. The electronic device may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality, augmented reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook computer, a desktop computing device, a wearable device such as Electronic watches, electronic glasses, electronic helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment.
参考图11,图11为本申请实施例提供的电子设备的第二种结构示意图。Referring to FIG. 11 , FIG. 11 is a schematic diagram of a second structure of an electronic device provided by an embodiment of the present application.
电子设备300包括处理器301和存储器302。其中,所述处理器301、所述存储器302可以设置在电子设备的壳体内部。所述处理器301与所述存储器302电性连接。所述电子设备还包括压电陶瓷传感器,所述压电陶瓷传感器设置在所述电子设备壳体的侧边。所述压电陶瓷传感器可以实现机械能与电能的相互转换,从而实现检测用户的按压操作,也即检测用户按压时的压力值。The electronic device 300 includes a processor 301 and a memory 302 . Wherein, the processor 301 and the memory 302 may be arranged inside the casing of the electronic device. The processor 301 is electrically connected to the memory 302 . The electronic device further includes a piezoelectric ceramic sensor, and the piezoelectric ceramic sensor is arranged on a side of the housing of the electronic device. The piezoelectric ceramic sensor can realize the mutual conversion between mechanical energy and electric energy, so as to detect the pressing operation of the user, that is, detect the pressure value when the user presses.
处理器301是电子设备300的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或调用存储在存储器302内的计算机程序,以及调用存储在存储器302内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 301 is the control center of the electronic device 300. It uses various interfaces and lines to connect various parts of the entire electronic device. Various functions and processing data of the equipment, so as to monitor the electronic equipment as a whole.
在本实施例中,电子设备300中的处理器301按照如下将一个或一个以上的计算机程序的进程对应的指令加载到存储器302中,并由处理器301来运行存储在存储器302中的计算机程序,从而执行以下功能:In this embodiment, the processor 301 in the electronic device 300 loads instructions corresponding to the processes of one or more computer programs into the memory 302 as follows, and the processor 301 runs the computer programs stored in the memory 302 , which performs the following functions:
获取所述压电陶瓷传感器检测到的压力值;Acquiring the pressure value detected by the piezoelectric ceramic sensor;
当所述压力值满足预设条件时,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面;When the pressure value satisfies a preset condition, displaying a corresponding user interface on the display screen of the electronic device according to the pressure value;
接收用户针对所述用户界面的触控操作;receiving a user's touch operation on the user interface;
根据所述触控操作控制所述电子设备执行对应的功能。The electronic device is controlled to execute a corresponding function according to the touch operation.
在一些实施例中,接收用户针对所述用户界面的触控操作时,处理器301用于:In some embodiments, when receiving a user's touch operation on the user interface, the processor 301 is configured to:
检测所述显示屏上与所述用户界面对应的区域是否接收到用户的触控操作;Detecting whether the area on the display screen corresponding to the user interface receives a user's touch operation;
若所述显示屏上与所述用户界面对应的区域接收到用户的触控操作,则将所述触控操作确定为用户针对所述用户界面的触控操作。If the area on the display screen corresponding to the user interface receives a user's touch operation, the touch operation is determined as a user's touch operation on the user interface.
在一些实施例中,所述电子设备上设置有指纹识别模组,所述指纹识别模组包括触控传感器,接收用户针对所述用户界面的触控操作时,处理器301用于:In some embodiments, the electronic device is provided with a fingerprint identification module, the fingerprint identification module includes a touch sensor, and when receiving a user's touch operation on the user interface, the processor 301 is configured to:
检测所述指纹识别模组中的触控传感器是否接收到用户的触控操作;Detecting whether the touch sensor in the fingerprint identification module has received a user's touch operation;
若所述指纹识别模组中的触控传感器接收到用户的触控操作,则将所述触控操作确定为用户针对所述用户界面的触控操作。If the touch sensor in the fingerprint recognition module receives a user's touch operation, the touch operation is determined as the user's touch operation on the user interface.
在一些实施例中,判断所述压力值是否满足预设条件时,处理器301用于:In some embodiments, when judging whether the pressure value satisfies a preset condition, the processor 301 is configured to:
判断所述压力值是否大于预设压力阈值;judging whether the pressure value is greater than a preset pressure threshold;
若所述压力值大于所述预设压力阈值,则进一步判断所述压力值持续大于所述预设压力阈值的持续时长是否大于预设时长;If the pressure value is greater than the preset pressure threshold, it is further determined whether the duration of the pressure value being greater than the preset pressure threshold is greater than a preset duration;
若所述压力值持续大于所述预设压力阈值的持续时长大于所述预设时长,则确定为所述压力值满足预设条件。If the duration for which the pressure value is continuously greater than the preset pressure threshold is longer than the preset duration, it is determined that the pressure value satisfies a preset condition.
在一些实施例中,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面时,处理器301用于:In some embodiments, when displaying a corresponding user interface on the display screen of the electronic device according to the pressure value, the processor 301 is configured to:
确定所述压力值所处的压力值区间;determining the pressure value interval in which the pressure value is located;
根据所述压力值区间以及预设对应关系确定对应的用户界面,所述预设对应关系包括压力值区间与用户界面之间的对应关系;Determining a corresponding user interface according to the pressure value interval and a preset corresponding relationship, the preset corresponding relationship including a corresponding relationship between the pressure value interval and the user interface;
在所述电子设备的显示屏上显示所述用户界面。The user interface is displayed on the display screen of the electronic device.
在一些实施例中,所述电子设备中设置有马达,当所述压力值满足预设条件时,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面之后,处理器301还用于:In some embodiments, the electronic device is provided with a motor, and when the pressure value satisfies a preset condition, after displaying a corresponding user interface on the display screen of the electronic device according to the pressure value, the processor 301 Also used for:
根据所述压力值生成马达驱动信号;generating a motor drive signal based on the pressure value;
根据所述马达驱动信号驱动所述马达产生振动,以带动所述电子设备产生振动。The motor is driven to vibrate according to the motor driving signal, so as to drive the electronic device to vibrate.
在一些实施例中,根据所述触控操作控制所述电子设备执行对应的功能时,处理器301用于:In some embodiments, when controlling the electronic device to perform a corresponding function according to the touch operation, the processor 301 is configured to:
根据所述触控操作控制所述电子设备执行音量调节、亮度调节、启动语音助手、关机中的一种操作。According to the touch operation, the electronic device is controlled to perform one of volume adjustment, brightness adjustment, voice assistant activation, and shutdown.
存储器302可用于存储计算机程序和数据。存储器302存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器301通过调用存储在存储器302的计算机程序,从而执行各种功能应用以及数据处理。Memory 302 may be used to store computer programs and data. The computer program stored in the memory 302 includes instructions executable by the processor. Computer programs can be composed of various functional modules. The processor 301 executes various functional applications and data processing by calling computer programs stored in the memory 302 .
在一些实施例中,参考图12,图12为本申请实施例提供的电子设备的第三种结构示意图。In some embodiments, refer to FIG. 12 , which is a third schematic structural diagram of an electronic device provided in an embodiment of the present application.
其中,电子设备300还包括:显示屏303、控制电路304、按键电路305、马达306、电源307。其中,处理器301分别与显示屏303、控制电路304、按键电路305、马达306、电源307电性连接。Wherein, the electronic device 300 further includes: a display screen 303 , a control circuit 304 , a button circuit 305 , a motor 306 , and a power supply 307 . Wherein, the processor 301 is electrically connected to the display screen 303 , the control circuit 304 , the button circuit 305 , the motor 306 , and the power supply 307 .
所述显示屏303设置在电子设备的壳体上。所述显示屏303用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。例如,当压电陶瓷传感器检测到的压力值满足预设条件时,显示屏303可以用于根据所述压电陶瓷传感器检测到的压力值显示对应的用户界面。The display screen 303 is arranged on the casing of the electronic device. The display screen 303 is used to display information input by or provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of images, texts, icons, videos and any combination thereof. For example, when the pressure value detected by the piezoelectric ceramic sensor satisfies a preset condition, the display screen 303 may be used to display a corresponding user interface according to the pressure value detected by the piezoelectric ceramic sensor.
控制电路304与显示屏303电性连接,用于控制显示屏303显示信息,例如用于控制显示屏303显示用户界面。The control circuit 304 is electrically connected to the display screen 303 and is used to control the display screen 303 to display information, for example, to control the display screen 303 to display a user interface.
按键电路305与电子设备300的压电陶瓷传感器电性连接,用于将所述压电陶瓷传感器检测到的按压操作对应的电信号传输到处理器301进行处理。The button circuit 305 is electrically connected to the piezoelectric ceramic sensor of the electronic device 300, and is used to transmit the electrical signal corresponding to the pressing operation detected by the piezoelectric ceramic sensor to the processor 301 for processing.
马达306用于产生振动,从而带动电子设备产生振动,从而对用户进行提醒。The motor 306 is used to generate vibration, thereby driving the electronic device to generate vibration, thereby reminding the user.
电源307用于给电子设备300的各个部件供电。在一些实施例中,电源307可以通过电源管理系统与处理器301逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 307 is used to supply power to various components of the electronic device 300 . In some embodiments, the power supply 307 may be logically connected to the processor 301 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption through the power management system.
尽管图12中未示出,电子设备300还可以包括摄像头、射频电路、蓝牙模块等,在此不再赘述。Although not shown in FIG. 12 , the electronic device 300 may also include a camera, a radio frequency circuit, a Bluetooth module, etc., which will not be repeated here.
由上可知,本申请实施例提供了一种电子设备,所述电子设备用于:获取压电陶瓷传感器检测到的压力值;当所述压力值满足预设条件时,根据所述压力值在所述电子设备的显示屏上显示对应的用户界面;接收用户针对所述用户界面的触控操作;根据所述触控操作控制所述电子设备执行对应的功能。所述电子设备通过设置在电子设备侧边的压电陶瓷传感器检测按压操作,当按压操作的压力值满足预设条件时才显示用户界面,并根据用户的触控操作执行对应的功能,由于压电陶瓷传感器不需要突出于电子设备的表面,从而可以减少对压电陶瓷传感器的误操作,进而可以减少电子设备误操作的发生,提高对电子设备控制的准确性。It can be seen from the above that the embodiment of the present application provides an electronic device, the electronic device is used to: acquire the pressure value detected by the piezoelectric ceramic sensor; when the pressure value meets the preset condition, according to the pressure value at A corresponding user interface is displayed on the display screen of the electronic device; a user's touch operation on the user interface is received; and the electronic device is controlled to execute a corresponding function according to the touch operation. The electronic device detects the pressing operation through the piezoelectric ceramic sensor arranged on the side of the electronic device, and only displays the user interface when the pressure value of the pressing operation meets the preset condition, and executes the corresponding function according to the user's touch operation. The electroceramic sensor does not need to protrude from the surface of the electronic equipment, thereby reducing the misoperation of the piezoelectric ceramic sensor, thereby reducing the occurrence of misoperation of the electronic equipment and improving the control accuracy of the electronic equipment.
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,所述计算机执行上述任一实施例所述的电子设备的控制方法。An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program is run on a computer, the computer executes the electronic device control method described in any one of the above embodiments.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分实现方式是可以通过计算机程序来指令相关的硬件来完成,所述计算机程序可以存储于计算机可读存储介质中,所述存储介质可以包括但不限于:只读存储器(ROM,Read OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the implementation of the various methods in the above embodiments can be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable memory In the medium, the storage medium may include but not limited to: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.
以上对本申请实施例所提供的电子设备的控制方法、装置、存储介质及电子设备进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method, device, storage medium, and electronic equipment for controlling electronic equipment provided in the embodiments of the present application are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the application. The description of the above embodiments is only used to help understand the method and core idea of the application; meanwhile, for those skilled in the art, according to the application Thoughts, specific implementation methods and application ranges all have changes. In summary, the content of this specification should not be construed as limiting the application.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910791499.5A CN110609642B (en) | 2019-08-26 | 2019-08-26 | Electronic device control method, device, storage medium, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910791499.5A CN110609642B (en) | 2019-08-26 | 2019-08-26 | Electronic device control method, device, storage medium, and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110609642A CN110609642A (en) | 2019-12-24 |
CN110609642B true CN110609642B (en) | 2023-08-18 |
Family
ID=68890796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910791499.5A Active CN110609642B (en) | 2019-08-26 | 2019-08-26 | Electronic device control method, device, storage medium, and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110609642B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112099653A (en) * | 2020-09-16 | 2020-12-18 | 深圳市绘王动漫科技有限公司 | writing board |
CN113552968A (en) * | 2021-06-30 | 2021-10-26 | 青岛海尔空调器有限总公司 | Touch control method, device, air conditioner and storage medium for display screen of air conditioner |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965576A (en) * | 2018-05-17 | 2018-12-07 | Oppo广东移动通信有限公司 | Incoming call processing method and device, storage medium and electronic equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10564764B2 (en) * | 2015-04-30 | 2020-02-18 | Shenzhen New Degree Technology Co., Ltd. | Luminous pressure sensor and touch control button thereof, and electronic device |
-
2019
- 2019-08-26 CN CN201910791499.5A patent/CN110609642B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965576A (en) * | 2018-05-17 | 2018-12-07 | Oppo广东移动通信有限公司 | Incoming call processing method and device, storage medium and electronic equipment |
Non-Patent Citations (1)
Title |
---|
一种输入设备及输入管理系统;张学琴;《中国科技信息》;20180928(第19期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110609642A (en) | 2019-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111727423B (en) | Electronic device including flexible display and control method thereof | |
EP2241960A1 (en) | Electronic device and touch screen display with force sensor | |
KR102621809B1 (en) | Electronic device and method for displaying screen via display in low power state | |
CN110297521B (en) | Working mode switching method, device, storage medium and electronic device | |
CN111052055B (en) | Electronic devices and methods and storage media for controlling touch sensing signals | |
WO2019233302A1 (en) | Touch screen, touch pressure detection method and terminal | |
CN110609642B (en) | Electronic device control method, device, storage medium, and electronic device | |
CN108710468A (en) | Image acquisition method and device, storage medium and electronic equipment | |
CN113343800A (en) | Fingerprint touch identification module, fingerprint touch identification method and electronic equipment | |
WO2021180152A1 (en) | Electronic device and control method therefor, and medium | |
KR20230051143A (en) | Electronic apparatus and method for driving thereof | |
JP2018160239A (en) | Touch input device and control method thereof | |
CN108595105A (en) | Light supplement lamp control method and device, storage medium and electronic equipment | |
US20190235727A1 (en) | Electronic device including touch key | |
CN110286828A (en) | Electronic equipment and picture browsing method | |
US11189251B2 (en) | Electronic apparatus | |
CN108650456A (en) | Focusing method, device, storage medium and electronic equipment | |
WO2015098061A1 (en) | Electronic instrument | |
CN110297565A (en) | The control method of electronic equipment and touch control component | |
CN110262699A (en) | Electronic equipment and its control method | |
CN110297566B (en) | Electronic equipment and interface adjusting method | |
CN113138709B (en) | Page display method and related equipment | |
CN110286841A (en) | Electronic equipment and control method for displaying information | |
US12321522B2 (en) | Electronic device and method for external force recognition and tactile feedback for electronic device | |
CN222381626U (en) | Key for terminal and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |