WO2016184174A1 - Terminal alarm implementation method and apparatus - Google Patents

Terminal alarm implementation method and apparatus Download PDF

Info

Publication number
WO2016184174A1
WO2016184174A1 PCT/CN2016/073352 CN2016073352W WO2016184174A1 WO 2016184174 A1 WO2016184174 A1 WO 2016184174A1 CN 2016073352 W CN2016073352 W CN 2016073352W WO 2016184174 A1 WO2016184174 A1 WO 2016184174A1
Authority
WO
WIPO (PCT)
Prior art keywords
alarm
pressure value
terminal
display screen
threshold
Prior art date
Application number
PCT/CN2016/073352
Other languages
French (fr)
Chinese (zh)
Inventor
周韬
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016184174A1 publication Critical patent/WO2016184174A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Definitions

  • This document relates to but not limited to the field of terminal applications, and in particular to a method and device for implementing terminal alarms.
  • the prevention of damage caused by external power accidents of mobile terminals is mainly to avoid damage caused by falling and water ingress of mobile terminals.
  • the following two methods are mainly used: the first method is to bring the internals of the mobile terminal.
  • the sensor detects whether the mobile terminal is dropped or ingested, and protects the mobile terminal by setting a corresponding protection device. For example, when a drop state is detected, a hidden airbag in the mobile terminal is detonated, or a circuit is cut by a trigger switch or the like.
  • a second, more common method is to protect the mobile terminal by adding a protective case and/or a protective film.
  • the case is squeezed, and the protective cover can be added, and/or the protective film can be attached, although The mobile terminal is protected to some extent, but the protective case and the protective film need to increase the thickness and weight of the mobile terminal, and affect the portability and use experience of the mobile terminal.
  • the embodiment of the invention provides a method and a device for implementing terminal alarm, which can alarm the situation that the mobile terminal is squeezed without affecting the portability and the use experience.
  • the embodiment of the invention provides a method for implementing terminal alarm, which includes:
  • the terminal detects a pressure value acting on the display of the terminal
  • the terminal When it is determined that the pressure value is greater than or equal to a preset alarm threshold, the terminal performs an alarm.
  • the terminal determining that the pressure value is greater than or equal to the preset alarm threshold includes: the terminal determining, by the terminal as the whole, the pressure value is greater than or equal to the alarm threshold.
  • the method further includes: the terminal determining a pressure acting on the display screen in the The position on the display;
  • the determining, by the terminal, that the pressure value is greater than or equal to the preset alarm threshold includes: the terminal determining that the detected pressure value is greater than or equal to the determined alarm corresponding to the location of the pressure acting on the display screen on the display screen. Threshold.
  • the alarm threshold corresponding to the preset divided two or more regions, the alarm threshold corresponding to the preset divided peripheral region is greater than the alarm threshold corresponding to the preset divided intermediate region.
  • the detecting, by the terminal, the pressure value of the display screen of the terminal comprises: the terminal detecting the pressure value acting on the display screen of the terminal by one or more pressure sensors according to a preset period.
  • the terminal performing the alarm includes:
  • the terminal performs an alarm that the vibration, and/or sound, and/or the cue light flashes.
  • the terminal performing the alarm includes:
  • the terminal When the detected pressure value is greater than or equal to a preset alarm threshold and the pressure value is gradually increased, the terminal adopts a higher frequency vibration, and/or a louder sound, and/or a larger according to the increase of the pressure value.
  • the frequency indicator light flashes to alarm;
  • the terminal When the detected pressure value is greater than or equal to a preset alarm threshold and the pressure value is gradually decreased, the terminal adopts a lower frequency vibration, and/or a smaller volume sound, and/or a smaller frequency according to the decrease of the pressure value.
  • the indicator light flashes to alert you.
  • the method further includes:
  • the terminal terminates the alarm when the detected pressure value is less than a preset safety threshold.
  • the security threshold is less than an alarm threshold.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • an embodiment of the present invention further provides an apparatus for implementing a terminal alarm, including: a detecting unit and an alarm unit; wherein
  • a detecting unit configured to detect a pressure value acting on the display screen of the terminal
  • the alarm unit is configured to perform an alarm when it is determined that the pressure value is greater than or equal to a preset alarm threshold.
  • the alarm unit is set to,
  • the detecting unit is further configured to:
  • the alarm unit is set to:
  • the alarm value is determined to be greater than or equal to the alarm threshold corresponding to the determined location of the pressure acting on the display screen on the display screen, and the alarm is generated.
  • the detecting unit is configured to detect the pressure value of the display screen of the terminal by one or more pressure sensors according to a preset period.
  • the alarm unit is set to,
  • the alarm unit is set to,
  • a higher frequency vibration, and/or a louder sound, and/or a larger frequency are used according to the increase of the pressure value.
  • the prompt light flashes to alert;
  • a lower frequency vibration, and/or a smaller volume sound, and/or a smaller frequency are used according to the decrease of the pressure value.
  • the indicator light flashes to alert you.
  • the device further includes a termination unit, configured to terminate the alarm when the detected pressure value is less than a preset safety threshold after the alarm is performed;
  • the security threshold is less than an alarm threshold.
  • the technical solution of the embodiment of the present invention includes: detecting a pressure value acting on a display screen of the terminal; and performing an alarm when the pressure value is greater than or equal to a preset alarm threshold.
  • the present invention The method of the example compares the detected pressure value with a preset alarm threshold, and realizes the detection of the pressed terminal display screen without affecting the portability and the use experience, and protects the terminal by the alarm. .
  • FIG. 1 is a flowchart of a method for implementing a terminal alarm according to an embodiment of the present invention
  • FIG. 2 is a structural diagram of an apparatus for implementing a terminal alarm according to an embodiment of the present invention
  • FIG. 3 is a flow chart of a method according to a first embodiment of the present invention.
  • FIG. 4 is a schematic diagram showing division of a terminal display screen according to a second embodiment of the present invention.
  • Figure 5 is a flow chart of a method in accordance with a second embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for implementing a terminal alarm according to an embodiment of the present invention. As shown in FIG. 1 , the method includes:
  • Step 100 The terminal detects a pressure value acting on the display screen of the terminal;
  • the terminal detecting the pressure value acting on the display screen of the terminal includes: the terminal detecting the pressure value acting on the display screen of the terminal by one or more pressure sensors according to the preset period.
  • the preset period is generally set according to the time when the crushing causes damage. Generally, it can be set to 150 milliseconds to 250 milliseconds, and the specific value can be set according to actual conditions; in addition, the pressure sensor is used to detect the terminal.
  • the pressure value of the display screen is only an alternative embodiment of the method of the present invention.
  • the pressure sensor can be a pressure sensor embedded in the display itself or a peripheral pressure sensor; when the pressure sensor is not used, the existing pressure sensor can be used. The method of obtaining the display pressure is used to detect the pressure value.
  • a comprehensive pressure value is calculated according to the pressure values detected by the plurality of pressure sensors as detection.
  • how to calculate the integrated pressure value, and determine the position of the pressure acting on the display screen on the display screen can be implemented by well-known techniques of those skilled in the art, and is not intended to limit the scope of protection of the present invention, and details are not described herein again.
  • Step 101 When it is determined that the detected pressure value is greater than or equal to a preset alarm threshold, the terminal performs an alarm.
  • determining that the detected pressure value is greater than or equal to a preset alarm threshold includes:
  • the terminal determines, according to the terminal display as a whole, that the detected pressure value is greater than or equal to a preset alarm threshold; or
  • the terminal determines that the detected pressure value is greater than or equal to an alarm threshold corresponding to the determined area of the pressure acting on the display screen on the display screen.
  • the terminal display screen is divided into two or more areas according to a preset rule.
  • the method for dividing the area of the terminal display screen is mainly divided according to the material of the display screen and the size of the display screen; for example, if the display screen is a tempered display screen, the tempered display screen is more resistant to extrusion than the ordinary display screen. Large, there may be fewer areas when dividing the area; the larger the display screen, the more theoretically divided areas.
  • the shape of the divided regions can be divided according to the pressure required for the damage caused by the extrusion.
  • the setting of the alarm threshold size is generally obtained through testing. According to the material and display size of different terminal display screens, the pressure value obtained when the display screen is squeezed to the damage is obtained through the pressure test, and the test value is set according to the test value. A value smaller than the pressure value is set as the alarm threshold, and the specific size can be set according to a pressure value when the display screen is squeezed to damage according to a person skilled in the art.
  • the alarm threshold corresponding to the preset divided two or more regions, the alarm threshold corresponding to the preset divided peripheral region is greater than the alarm threshold corresponding to the preset divided intermediate region.
  • the terminal performs alarms including:
  • the terminal performs an alarm that the vibration, and/or sound, and/or the cue light flashes.
  • the terminal performing the alarm includes:
  • the terminal root According to the increase of the pressure value, a higher frequency vibration, and/or a louder sound, and/or a higher frequency prompt light flashes to perform an alarm;
  • the terminal adopts a lower frequency vibration, and/or a smaller volume sound, and/or a smaller frequency prompt according to the decrease of the pressure value.
  • the light flashes to alert you.
  • the adjustment range of the vibration frequency, the adjustment step of the volume, and the adjustment range of the blinking frequency of the indicator light can be adjusted according to actual conditions, and can be implemented by well-known techniques of those skilled in the art, and is not used to limit the present invention. The scope of protection will not be repeated here.
  • the alarm with the alarm function can be used to alarm, or the voice with the reading value (such as the pressure value) can be used for alarm. It can also be described by similar pressure, pressure and pressure. The simple phrase sound of the pressure is alarmed, and the specific content can be set according to the user's habits and the like.
  • the method of the embodiment of the present invention further includes:
  • the terminal terminates the alarm
  • the security threshold is smaller than the alarm threshold.
  • the security threshold is generally set to be smaller than the alarm threshold, and there is a certain interval to avoid frequent re-alarming after the alarm is terminated.
  • the method of the invention compares the detected pressure value with a preset alarm threshold, realizes the detection of the display screen of the squeeze terminal, and protects the terminal by the alarm.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • FIG. 2 is a structural block diagram of an apparatus for implementing terminal protection according to an embodiment of the present invention. As shown in FIG. 2, the method includes: a detecting unit and an alarm unit;
  • a detecting unit configured to detect a pressure value acting on the display screen of the terminal
  • the alarm unit is configured to perform an alarm when it is determined that the detected pressure value is greater than or equal to a preset alarm threshold.
  • the detecting unit is further configured to:
  • the alarm unit is set to:
  • the alarm value is determined to be greater than or equal to the alarm threshold corresponding to the determined location of the pressure acting on the display screen on the display screen, and the alarm is generated.
  • the detecting unit is configured to detect a pressure value acting on the display screen of the terminal by one or more pressure sensors according to a preset period.
  • the alarm unit is set to,
  • the alarm unit is set to,
  • a lower frequency vibration, and/or a lower volume sound, and/or a smaller frequency prompt light are used according to the decrease of the pressure value. Blinking to alert.
  • the device of the present invention further includes a terminating unit configured to terminate the alarm when the detected pressure value is less than a preset safety threshold after the alarm is performed;
  • the security threshold is smaller than the alarm threshold.
  • FIG. 3 is a flowchart of a method according to a first embodiment of the present invention. As shown in FIG. 3, the method includes:
  • Step 300 Detect a pressure value acting on a display screen of the terminal
  • the step includes: detecting by one or more pressure sensors according to a preset period The pressure value of the terminal display.
  • the preset period of this embodiment can be set to 200 milliseconds.
  • Step 301 Determine whether the detected pressure value is greater than or equal to a preset alarm threshold; when the detected pressure value is greater than or equal to a preset alarm threshold, perform step 302; when the detected pressure value is not greater than a preset alarm threshold, execute Step 303;
  • Step 302 Perform an audible alarm according to the detected pressure value being greater than or equal to a preset alarm threshold, and perform step 300 after the preset period;
  • the audible alarm may be an alarm that may be triggered by a ringtone with a warning function, or may be used to report the reading value.
  • the voice is alarmed, and the alarm can be performed by a voice describing the magnitude of the pressure.
  • the alarm in addition to the audible alarm, the alarm may be implemented by using a combination of vibration, and blinking of the indicator light.
  • a higher frequency vibration, and/or a louder sound is used according to the increase of the pressure value, and/or The large frequency indicator light flashes to alarm;
  • a lower frequency vibration, and/or a lower volume sound, and/or a smaller frequency prompt light are used according to the decrease of the pressure value. Blinking to alert.
  • the alarm can enable the user to timely discover that the mobile terminal is squeezed, thereby performing timely protection processing on the mobile terminal to prevent the mobile terminal from being crushed and causing damage.
  • Step 303 Determine whether the detected pressure value is less than a preset safety threshold. If it is less than, execute step 304. If it is greater than or equal to, perform step 300 after the preset period.
  • Step 304 Terminate the alarm; and perform step 300 after the preset period.
  • the security threshold is less than the alarm threshold.
  • the security threshold is generally set to be smaller than the alarm threshold, and there is a certain interval, which can avoid frequent re-alarming after the protection alarm is terminated.
  • the display screen of the terminal of the mobile terminal is large, and the pressure required to damage different areas is not the same. For example, there is a certain difference between the pressure value of the middle area of the display screen and the surrounding area.
  • the terminal display is divided into two or two according to preset rules. More than one area, respectively detecting the pressure value of each of the divided terminal display screens.
  • the area division can be realized by the display coordinates of the terminal display screen; it should be noted that the shape of each divided area can be set according to the size of the display screen and the damage of the display screen.
  • 4 is a schematic diagram showing the division of a terminal display screen according to a second embodiment of the present invention.
  • the display screen of the terminal is large, and the pressure value caused by the different areas of the terminal display screen is greatly different after the pressure test.
  • the terminal display screen is divided into 9 regions, and the four corners are formed to have the same length and width.
  • the quadrilateral after extending the length and width of the four sides, divides the terminal display into nine areas, and the dotted line in the figure serves as a boundary line for dividing each area.
  • the method for dividing the area of the terminal display screen can be adjusted according to the size of the display screen, and the length and width can be adjusted. For example, if the screen of the terminal display screen is reduced in this embodiment, the terminal display screen can be divided into two, three, or five areas, etc.
  • the two areas may be divided into a regular shape area such as a circle, an ellipse, or a quadrangle in the middle area of the terminal display screen, and the remaining peripheral area is divided into one area; the three areas are generally three upper quadrants.
  • the method divides three regions; the division of five regions can generally adopt four corners and four triangles, and the middle region is divided as a region.
  • the specific division method can be set according to the test of the pressure value required for damage.
  • FIG. 5 is a flowchart of a method according to a second embodiment of the present invention. As shown in FIG. 5, the method includes:
  • Step 500 detecting a pressure value acting on the display screen of the terminal, and determining a position of the pressure acting on the display screen on the display screen;
  • the step specifically includes: detecting the pressure value of the display screen of the terminal by one or more pressure sensors according to a preset period.
  • the preset period of this embodiment can be set to 200 milliseconds.
  • Step 501 Determine whether the pressure applied to the display screen of the terminal is greater than or equal to an alarm threshold corresponding to the determined location of the pressure acting on the display screen on the display screen; if yes, execute step 502; if not, execute Step 503;
  • Step 502 Perform an audible alarm according to the detected pressure value being greater than a preset alarm threshold, and perform step 500 after the preset period;
  • the audible alarm may be an alarm that may be performed by using a ringtone with a warning function, or may be a voice that reports a reading value.
  • Alarms can also be generated by sounds that describe the magnitude of the pressure.
  • Step 503 Determine whether the detected pressure value is less than a preset safety threshold. If yes, execute step 504. If not, perform step 500 after the preset period.
  • Step 504 Terminate the alarm and perform step 500 after the preset period.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the method of the embodiment of the invention realizes the detection of the pressed terminal display screen without affecting the portability and the use experience, and protects the terminal by the alarm.

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)
  • Telephone Function (AREA)
  • Alarm Systems (AREA)

Abstract

A terminal alarm implementation method and apparatus. The method comprises: detecting a pressure value acting on a display screen of a terminal; and giving, when the pressure value is greater than or equal to a pre-set alarm threshold, an alarm.

Description

一种实现终端告警的方法及装置Method and device for realizing terminal alarm 技术领域Technical field
本文涉及但不限于终端应用领域,尤指一种实现终端告警的方法及装置。This document relates to but not limited to the field of terminal applications, and in particular to a method and device for implementing terminal alarms.
背景技术Background technique
目前,避免移动终端(包括手机、平板等)因为外力事故造成损坏主要是避免移动终端因为跌落和进水等造成的损害,主要有以下两种方法:第一种方法是通过移动终端内部自带的传感器检测移动终端是否跌落和进水,通过设置相应的保护装置对移动终端进行保护。例如、检测到跌落状态时引爆移动终端内隐藏的气囊、或通过触发开关进行切断电路等。第二种比较常见的方法是增加保护壳、和/或粘贴保护膜的方法对移动终端进行保护。At present, the prevention of damage caused by external power accidents of mobile terminals (including mobile phones, tablets, etc.) is mainly to avoid damage caused by falling and water ingress of mobile terminals. The following two methods are mainly used: the first method is to bring the internals of the mobile terminal. The sensor detects whether the mobile terminal is dropped or ingested, and protects the mobile terminal by setting a corresponding protection device. For example, when a drop state is detected, a hidden airbag in the mobile terminal is detonated, or a circuit is cut by a trigger switch or the like. A second, more common method is to protect the mobile terminal by adding a protective case and/or a protective film.
对于移动终端被挤压造成的损害,例如、放在衣裤中被积压、不小心被放置在沙发、包袋等造成被挤压的情况,采用增加保护壳、和/或粘贴保护膜虽然可以一定程度上对移动终端进行保护,但是保护壳和保护膜需要增加移动终端的厚度和重量,影响移动终端使用的便携性和使用体验。For the damage caused by the squeeze of the mobile terminal, for example, when it is piled up in the underwear, accidentally placed on the sofa, the bag, etc., the case is squeezed, and the protective cover can be added, and/or the protective film can be attached, although The mobile terminal is protected to some extent, but the protective case and the protective film need to increase the thickness and weight of the mobile terminal, and affect the portability and use experience of the mobile terminal.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种实现终端告警的方法及装置,能够在不影响便携性和使用体验的情况下对移动终端被挤压的情况进行告警。The embodiment of the invention provides a method and a device for implementing terminal alarm, which can alarm the situation that the mobile terminal is squeezed without affecting the portability and the use experience.
本发明实施例提供了一种实现终端告警的方法,包括:The embodiment of the invention provides a method for implementing terminal alarm, which includes:
终端检测作用于终端显示屏的压力值;The terminal detects a pressure value acting on the display of the terminal;
当判断出所述压力值大于或等于预设的告警阈值时,终端进行告警。When it is determined that the pressure value is greater than or equal to a preset alarm threshold, the terminal performs an alarm.
可选地,终端判断出压力值大于或等于预设的告警阈值包括:所述终端将所述终端显示屏作为整体,判断出所述压力值大于或等于所述告警阈值。Optionally, the terminal determining that the pressure value is greater than or equal to the preset alarm threshold includes: the terminal determining, by the terminal as the whole, the pressure value is greater than or equal to the alarm threshold.
可选地,该方法还包括:所述终端确定作用于所述显示屏的压力在所述 显示屏上的位置;Optionally, the method further includes: the terminal determining a pressure acting on the display screen in the The position on the display;
所述终端判断出压力值大于或等于预设的告警阈值包括:所述终端判断出检测的压力值大于或等于确定出的作用于显示屏的压力在显示屏上的位置所在的区域对应的告警阈值。The determining, by the terminal, that the pressure value is greater than or equal to the preset alarm threshold includes: the terminal determining that the detected pressure value is greater than or equal to the determined alarm corresponding to the location of the pressure acting on the display screen on the display screen. Threshold.
可选地,预设的划分后的两个或两个以上区域对应的告警阈值中,预设的划分后的周边区域对应的告警阈值大于预设的划分后的中间区域对应的告警阈值。Optionally, the alarm threshold corresponding to the preset divided two or more regions, the alarm threshold corresponding to the preset divided peripheral region is greater than the alarm threshold corresponding to the preset divided intermediate region.
可选地,终端检测终端显示屏的压力值包括:终端按照预设周期通过一个或一个以上压力传感器检测作用于所述终端显示屏的压力值。Optionally, the detecting, by the terminal, the pressure value of the display screen of the terminal comprises: the terminal detecting the pressure value acting on the display screen of the terminal by one or more pressure sensors according to a preset period.
可选地,终端进行告警包括:Optionally, the terminal performing the alarm includes:
终端进行震动、和/或声音、和/或提示灯闪烁的告警。The terminal performs an alarm that the vibration, and/or sound, and/or the cue light flashes.
可选地,终端进行告警包括:Optionally, the terminal performing the alarm includes:
检测的所述压力值大于或等于预设的告警阈值且压力值逐渐增大时,终端根据压力值的增大采用更高频率的震动、和/或更大音量的声音、和/或更大频率的提示灯闪烁进行告警;When the detected pressure value is greater than or equal to a preset alarm threshold and the pressure value is gradually increased, the terminal adopts a higher frequency vibration, and/or a louder sound, and/or a larger according to the increase of the pressure value. The frequency indicator light flashes to alarm;
检测的所述压力值大于或等于预设的告警阈值且压力值逐渐减小时,终端根据压力值的减小采用更低频率的震动、和/或更小音量的声音、和/或更小频率的提示灯闪烁进行告警。When the detected pressure value is greater than or equal to a preset alarm threshold and the pressure value is gradually decreased, the terminal adopts a lower frequency vibration, and/or a smaller volume sound, and/or a smaller frequency according to the decrease of the pressure value. The indicator light flashes to alert you.
可选地,该方法还包括:Optionally, the method further includes:
在进行告警后,终端在检测到的所述压力值小于预设的安全阈值时,终止告警;After the alarm is performed, the terminal terminates the alarm when the detected pressure value is less than a preset safety threshold.
其中,所述安全阈值小于告警阈值。The security threshold is less than an alarm threshold.
本发明实施例还提出了一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行上述描述的任意一个方法。Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
另一方面,本发明实施例还提供一种实现终端告警的装置,包括:检测单元和告警单元;其中,On the other hand, an embodiment of the present invention further provides an apparatus for implementing a terminal alarm, including: a detecting unit and an alarm unit; wherein
检测单元,设置为检测作用于终端显示屏的压力值; a detecting unit configured to detect a pressure value acting on the display screen of the terminal;
告警单元,设置为当判断出所述压力值大于或等于预设的告警阈值时,进行告警。The alarm unit is configured to perform an alarm when it is determined that the pressure value is greater than or equal to a preset alarm threshold.
可选地,告警单元是设置为,Optionally, the alarm unit is set to,
将所述终端显示屏作为整体,判断出所述压力值大于或等于预设的告警阈值时,进行告警。When the terminal display screen as a whole determines that the pressure value is greater than or equal to a preset alarm threshold, an alarm is generated.
可选地,检测单元还设置为:Optionally, the detecting unit is further configured to:
确定作用于所述显示屏的压力在所述显示屏上的位置;Determining a position of a pressure acting on the display screen on the display screen;
所述告警单元是设置为:The alarm unit is set to:
判断出检测的压力值大于或等于确定出的作用于显示屏的压力在显示屏上的位置所在的区域对应的告警阈值,进行告警。The alarm value is determined to be greater than or equal to the alarm threshold corresponding to the determined location of the pressure acting on the display screen on the display screen, and the alarm is generated.
可选地,检测单元是设置为,按照预设周期通过一个或一个以上压力传感器检测终端显示屏的压力值。Optionally, the detecting unit is configured to detect the pressure value of the display screen of the terminal by one or more pressure sensors according to a preset period.
可选地,告警单元是设置为,Optionally, the alarm unit is set to,
当检测的所述压力值大于或等于预设的所述告警阈值时,进行震动、和/或声音、和/或提示灯闪烁的告警。When the detected pressure value is greater than or equal to the preset alarm threshold, an alarm of vibration, and/or sound, and/or blinking of the indicator light is performed.
可选地,告警单元是设置为,Optionally, the alarm unit is set to,
检测的所述压力值大于或等于预设的告警阈值且压力值逐渐增大时,根据压力值的增大采用更高频率的震动、和/或更大音量的声音、和/或更大频率的提示灯闪烁进行告警;When the detected pressure value is greater than or equal to a preset alarm threshold and the pressure value is gradually increased, a higher frequency vibration, and/or a louder sound, and/or a larger frequency are used according to the increase of the pressure value. The prompt light flashes to alert;
检测的所述压力值大于或等于预设的告警阈值且压力值逐渐减小时,根据压力值的减小采用更低频率的震动、和/或更小音量的声音、和/或更小频率的提示灯闪烁进行告警。When the detected pressure value is greater than or equal to a preset alarm threshold and the pressure value is gradually decreased, a lower frequency vibration, and/or a smaller volume sound, and/or a smaller frequency are used according to the decrease of the pressure value. The indicator light flashes to alert you.
可选地,该装置还包括终止单元,设置为在进行告警后,检测到的所述压力值小于预设的安全阈值时,终止告警;Optionally, the device further includes a termination unit, configured to terminate the alarm when the detected pressure value is less than a preset safety threshold after the alarm is performed;
其中,所述安全阈值小于告警阈值。The security threshold is less than an alarm threshold.
与相关技术相比,本发明实施例的技术方案包括:检测作用于终端显示屏的压力值;当压力值大于或等于预设的告警阈值时,进行告警。本发明实 施例的方法通过检测的压力值与预设的告警阈值进行比对,实现了在不影响便携性和使用体验的情况下对被挤压的终端显示屏的检测,通过告警对终端进行了保护。Compared with the related art, the technical solution of the embodiment of the present invention includes: detecting a pressure value acting on a display screen of the terminal; and performing an alarm when the pressure value is greater than or equal to a preset alarm threshold. The present invention The method of the example compares the detected pressure value with a preset alarm threshold, and realizes the detection of the pressed terminal display screen without affecting the portability and the use experience, and protects the terminal by the alarm. .
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例实现终端告警的方法的流程图;FIG. 1 is a flowchart of a method for implementing a terminal alarm according to an embodiment of the present invention;
图2为本发明实施例实现终端告警的装置的结构程图;2 is a structural diagram of an apparatus for implementing a terminal alarm according to an embodiment of the present invention;
图3为本发明第一实施例的方法流程图;3 is a flow chart of a method according to a first embodiment of the present invention;
图4为本发明第二实施例终端显示屏的划分示意图;4 is a schematic diagram showing division of a terminal display screen according to a second embodiment of the present invention;
图5为本发明第二实施例的方法流程图。Figure 5 is a flow chart of a method in accordance with a second embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
图1为本发明实施例实现终端告警的方法的流程图,如图1所示,包括:FIG. 1 is a flowchart of a method for implementing a terminal alarm according to an embodiment of the present invention. As shown in FIG. 1 , the method includes:
步骤100、终端检测作用于终端显示屏的压力值;Step 100: The terminal detects a pressure value acting on the display screen of the terminal;
本步骤中,终端检测作用于终端显示屏的压力值包括:终端按照预设周期通过一个或一个以上压力传感器检测作用于终端显示屏的压力值。In this step, the terminal detecting the pressure value acting on the display screen of the terminal includes: the terminal detecting the pressure value acting on the display screen of the terminal by one or more pressure sensors according to the preset period.
需要说明的是,预设周期一般根据挤压造成损坏的时间进行设定,一般的,可以设置为150毫秒到250毫秒,具体取值可以根据实际情况进行设定;另外,采用压力传感器检测终端显示屏的压力值只是本发明方法的一个可选实施例,这里压力传感器可以采用显示屏本身已经嵌入的压力传感器,也可以是外设的压力传感器;当不采用压力传感器时,可以采用现有的可以获得显示屏压力的方法进行压力值的检测。It should be noted that the preset period is generally set according to the time when the crushing causes damage. Generally, it can be set to 150 milliseconds to 250 milliseconds, and the specific value can be set according to actual conditions; in addition, the pressure sensor is used to detect the terminal. The pressure value of the display screen is only an alternative embodiment of the method of the present invention. Here, the pressure sensor can be a pressure sensor embedded in the display itself or a peripheral pressure sensor; when the pressure sensor is not used, the existing pressure sensor can be used. The method of obtaining the display pressure is used to detect the pressure value.
本步骤中,当终端采用多个压力传感器检测作用于终端显示屏的压力值时,根据多个压力传感器检测得到的压力值计算一个综合的压力值作为检测 到的显示屏的压力值,并确定作用于显示屏的压力在显示屏上的位置。具体如何计算综合的压力值,并确定作用于显示屏的压力在显示屏上的位置可以采用本领域技术人员的熟知技术实现,并不用于限定本发明的保护范围,这里不再赘述。In this step, when the terminal uses multiple pressure sensors to detect the pressure value acting on the display screen of the terminal, a comprehensive pressure value is calculated according to the pressure values detected by the plurality of pressure sensors as detection. The pressure value of the display to the display, and determine the position of the pressure acting on the display on the display. Specifically, how to calculate the integrated pressure value, and determine the position of the pressure acting on the display screen on the display screen can be implemented by well-known techniques of those skilled in the art, and is not intended to limit the scope of protection of the present invention, and details are not described herein again.
步骤101、当判断出检测的压力值大于或等于预设的告警阈值时,终端进行告警。Step 101: When it is determined that the detected pressure value is greater than or equal to a preset alarm threshold, the terminal performs an alarm.
本步骤中,判断出检测的压力值大于或等于预设的告警阈值包括:In this step, determining that the detected pressure value is greater than or equal to a preset alarm threshold includes:
终端将终端显示屏作为整体,判断出检测的压力值大于或等于预设的告警阈值;或,The terminal determines, according to the terminal display as a whole, that the detected pressure value is greater than or equal to a preset alarm threshold; or
终端判断出检测的压力值大于或等于确定出的作用于显示屏的压力在显示屏上的位置所在的区域对应的告警阈值。其中,将终端显示屏按照预设规则划分为两个或两个以上区域。The terminal determines that the detected pressure value is greater than or equal to an alarm threshold corresponding to the determined area of the pressure acting on the display screen on the display screen. The terminal display screen is divided into two or more areas according to a preset rule.
需要说明的是,终端显示屏进行区域划分的方法主要根据显示屏的材质和显示屏大小等进行划分;例如、如果显示屏是钢化显示屏,则钢化显示屏由于抗挤压能力较普通显示屏大,区域划分时可能设置更少的区域;显示屏屏幕越大,理论上划分的区域更多。It should be noted that the method for dividing the area of the terminal display screen is mainly divided according to the material of the display screen and the size of the display screen; for example, if the display screen is a tempered display screen, the tempered display screen is more resistant to extrusion than the ordinary display screen. Large, there may be fewer areas when dividing the area; the larger the display screen, the more theoretically divided areas.
划分的区域形状可以根据挤压造成损坏所需的压力不同而划分。The shape of the divided regions can be divided according to the pressure required for the damage caused by the extrusion.
需要说明的是,告警阈值大小的设定一般通过测试获得,针对不同的终端显示屏的材质和显示屏大小,通过压力测试获得显示屏被挤压到损坏时的压力值,根据该测试值设定小于该压力值的一个数值作为告警阈值,具体大小可以根据本领域技术人员基于显示屏被挤压到损坏时的压力值进行设定。It should be noted that the setting of the alarm threshold size is generally obtained through testing. According to the material and display size of different terminal display screens, the pressure value obtained when the display screen is squeezed to the damage is obtained through the pressure test, and the test value is set according to the test value. A value smaller than the pressure value is set as the alarm threshold, and the specific size can be set according to a pressure value when the display screen is squeezed to damage according to a person skilled in the art.
可选地,预设的划分后的两个或两个以上区域对应的告警阈值中,预设的划分后的周边区域对应的告警阈值大于预设的划分后的中间区域对应的告警阈值。Optionally, the alarm threshold corresponding to the preset divided two or more regions, the alarm threshold corresponding to the preset divided peripheral region is greater than the alarm threshold corresponding to the preset divided intermediate region.
本步骤中,终端进行告警包括:In this step, the terminal performs alarms including:
终端进行震动、和/或声音、和/或提示灯闪烁的告警。The terminal performs an alarm that the vibration, and/or sound, and/or the cue light flashes.
可选地,终端进行告警包括:Optionally, the terminal performing the alarm includes:
检测的压力值大于或等于预设的告警阈值且压力值逐渐增大时,终端根 据压力值的增大采用更高频率的震动、和/或更大音量的声音、和/或更大频率的提示灯闪烁进行告警;When the detected pressure value is greater than or equal to the preset alarm threshold and the pressure value is gradually increased, the terminal root According to the increase of the pressure value, a higher frequency vibration, and/or a louder sound, and/or a higher frequency prompt light flashes to perform an alarm;
检测的压力值大于或等于预设的告警阈值且压力值逐渐减小时,终端根据压力值的减小采用更低频率的震动、和/或更小音量的声音、和/或更小频率的提示灯闪烁进行告警。When the detected pressure value is greater than or equal to the preset alarm threshold and the pressure value is gradually decreased, the terminal adopts a lower frequency vibration, and/or a smaller volume sound, and/or a smaller frequency prompt according to the decrease of the pressure value. The light flashes to alert you.
需要说明的是,震动频率的调整幅度、音量大小的调整步长及提示灯闪烁频率的调整幅度可以根据实际情况进行设置调整,可以采用本领域技术人员的熟知技术实现,并不用于限定本发明的保护范围,在此不再赘述。另外,通过声音进行告警时,可以采用具备警示功能的铃声进行告警,也可以采用报读数值(如压力值)的语音进行告警,还可以通过类似压力大、压力很大和压力非常大等可以形容压力大小的简短语音进行告警,具体内容可以根据用户习惯喜好等进行设置。It should be noted that the adjustment range of the vibration frequency, the adjustment step of the volume, and the adjustment range of the blinking frequency of the indicator light can be adjusted according to actual conditions, and can be implemented by well-known techniques of those skilled in the art, and is not used to limit the present invention. The scope of protection will not be repeated here. In addition, when the alarm is sounded, the alarm with the alarm function can be used to alarm, or the voice with the reading value (such as the pressure value) can be used for alarm. It can also be described by similar pressure, pressure and pressure. The simple phrase sound of the pressure is alarmed, and the specific content can be set according to the user's habits and the like.
在进行告警后,本发明实施例方法还包括:After the alarm is performed, the method of the embodiment of the present invention further includes:
在检测到的压力值小于预设的安全阈值时,终端终止告警;When the detected pressure value is less than a preset safety threshold, the terminal terminates the alarm;
其中,安全阈值小于告警阈值。The security threshold is smaller than the alarm threshold.
需要说明的是,安全阈值一般设置比告警阈值小,而且存在一定的间隔,可以避免在终止告警后频繁的再次进行告警。It should be noted that the security threshold is generally set to be smaller than the alarm threshold, and there is a certain interval to avoid frequent re-alarming after the alarm is terminated.
本发明方法通过检测的压力值与预设的告警阈值进行比对,实现了对挤压终端显示屏的检测,通过告警对终端进行了保护。The method of the invention compares the detected pressure value with a preset alarm threshold, realizes the detection of the display screen of the squeeze terminal, and protects the terminal by the alarm.
本发明实施例还提出了一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行上述描述的任意一个方法。Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
图2为本发明实施例实现终端保护的装置的结构框图,如图2所示,包括:检测单元和告警单元;其中,2 is a structural block diagram of an apparatus for implementing terminal protection according to an embodiment of the present invention. As shown in FIG. 2, the method includes: a detecting unit and an alarm unit;
检测单元,设置为检测作用于终端显示屏的压力值;a detecting unit configured to detect a pressure value acting on the display screen of the terminal;
告警单元,设置为当判断出检测的压力值大于或等于预设的告警阈值时,进行告警。The alarm unit is configured to perform an alarm when it is determined that the detected pressure value is greater than or equal to a preset alarm threshold.
可选地,检测单元还设置为: Optionally, the detecting unit is further configured to:
确定作用于所述显示屏的压力在所述显示屏上的位置;Determining a position of a pressure acting on the display screen on the display screen;
所述告警单元是设置为:The alarm unit is set to:
判断出检测的压力值大于或等于确定出的作用于显示屏的压力在显示屏上的位置所在的区域对应的告警阈值,进行告警。The alarm value is determined to be greater than or equal to the alarm threshold corresponding to the determined location of the pressure acting on the display screen on the display screen, and the alarm is generated.
可选地,检测单元是设置为,按照预设周期通过一个或一个以上压力传感器检测作用于终端显示屏的压力值。Optionally, the detecting unit is configured to detect a pressure value acting on the display screen of the terminal by one or more pressure sensors according to a preset period.
可选地,告警单元是设置为,Optionally, the alarm unit is set to,
当检测的压力值大于或等于预设的告警阈值时,进行震动、和/或声音、和/或提示灯闪烁的告警。When the detected pressure value is greater than or equal to the preset alarm threshold, an alarm of vibration, and/or sound, and/or flashing of the indicator light is performed.
可选地,告警单元是设置为,Optionally, the alarm unit is set to,
检测的压力值大于或等于预设的告警阈值且压力值逐渐增大时,根据压力值的增大采用更高频率的震动、和/或更大音量的声音、和/或更大频率的提示灯闪烁进行告警;When the detected pressure value is greater than or equal to the preset alarm threshold and the pressure value is gradually increased, a higher frequency vibration, and/or a louder sound, and/or a larger frequency prompt are used according to the increase of the pressure value. The light flashes to alert you;
检测的压力值大于或等于预设的告警阈值且压力值逐渐减小时,根据压力值的减小采用更低频率的震动、和/或更小音量的声音、和/或更小频率的提示灯闪烁进行告警。When the detected pressure value is greater than or equal to the preset alarm threshold and the pressure value is gradually decreased, a lower frequency vibration, and/or a lower volume sound, and/or a smaller frequency prompt light are used according to the decrease of the pressure value. Blinking to alert.
本发明装置还包括终止单元,设置为在进行告警后,检测到的压力值小于预设的安全阈值时,终止告警;The device of the present invention further includes a terminating unit configured to terminate the alarm when the detected pressure value is less than a preset safety threshold after the alarm is performed;
其中,安全阈值小于告警阈值。The security threshold is smaller than the alarm threshold.
以下通过具体实施例对本发明方法进行清楚详细的说明,实施例仅用于陈述本发明,并不用于限定本发明方法的保护范围。The method of the present invention will be described in detail below by way of specific examples, which are merely intended to illustrate the invention and are not intended to limit the scope of the invention.
实施例1Example 1
本实施例假设在移动终端设置实施本发明实现终端告警的方法,本实施例检测终端显示屏的压力值是指将终端显示屏作为一个整体进行压力值的测试。图3为本发明第一实施例的方法流程图,如图3所示,包括:This embodiment assumes that the method for implementing the terminal alarm is implemented in the mobile terminal. In this embodiment, detecting the pressure value of the display screen of the terminal refers to testing the pressure value of the terminal display screen as a whole. FIG. 3 is a flowchart of a method according to a first embodiment of the present invention. As shown in FIG. 3, the method includes:
步骤300、检测作用于终端显示屏的压力值;Step 300: Detect a pressure value acting on a display screen of the terminal;
本步骤包括:按照预设周期通过一个或一个以上压力传感器检测作用于 终端显示屏的压力值。本实施例预设周期可以设定为200毫秒。The step includes: detecting by one or more pressure sensors according to a preset period The pressure value of the terminal display. The preset period of this embodiment can be set to 200 milliseconds.
步骤301、判断检测的压力值是否大于或等于预设的告警阈值;检测的压力值大于或等于预设的告警阈值时,执行步骤302;检测的压力值不大于预设的告警阈值时,执行步骤303;Step 301: Determine whether the detected pressure value is greater than or equal to a preset alarm threshold; when the detected pressure value is greater than or equal to a preset alarm threshold, perform step 302; when the detected pressure value is not greater than a preset alarm threshold, execute Step 303;
步骤302、根据检测的压力值大于或等于预设的告警阈值进行声音告警,并在预设周期后执行步骤300;声音告警可以是可以采用具备警示功能的铃声进行告警,也可以采用报读数值的语音进行告警,还可以通过描述压力大小程度的声音进行告警。Step 302: Perform an audible alarm according to the detected pressure value being greater than or equal to a preset alarm threshold, and perform step 300 after the preset period; the audible alarm may be an alarm that may be triggered by a ringtone with a warning function, or may be used to report the reading value. The voice is alarmed, and the alarm can be performed by a voice describing the magnitude of the pressure.
本实施例除了声音告警,还可以采用震动、和指示灯闪烁等方式进行替换或组合的方式实现告警。In this embodiment, in addition to the audible alarm, the alarm may be implemented by using a combination of vibration, and blinking of the indicator light.
可选的,检测的压力值大于或等于预设的告警阈值且压力值逐渐增大时,根据压力值的增大采用更高频率的震动、和/或更大音量的声音、和/或更大频率的提示灯闪烁进行告警;Optionally, when the detected pressure value is greater than or equal to a preset alarm threshold and the pressure value is gradually increased, a higher frequency vibration, and/or a louder sound is used according to the increase of the pressure value, and/or The large frequency indicator light flashes to alarm;
检测的压力值大于或等于预设的告警阈值且压力值逐渐减小时,根据压力值的减小采用更低频率的震动、和/或更小音量的声音、和/或更小频率的提示灯闪烁进行告警。When the detected pressure value is greater than or equal to the preset alarm threshold and the pressure value is gradually decreased, a lower frequency vibration, and/or a lower volume sound, and/or a smaller frequency prompt light are used according to the decrease of the pressure value. Blinking to alert.
本实施例通过告警可以使用户及时的发现移动终端被挤压状态,从而对移动终端进行及时的保护处理,避免移动终端被挤压造成损坏。In this embodiment, the alarm can enable the user to timely discover that the mobile terminal is squeezed, thereby performing timely protection processing on the mobile terminal to prevent the mobile terminal from being crushed and causing damage.
步骤303、判断检测到的压力值是否小于预设的安全阈值,如果小于,则执行步骤304,如果大于或等于,则在预设周期后执行步骤300。Step 303: Determine whether the detected pressure value is less than a preset safety threshold. If it is less than, execute step 304. If it is greater than or equal to, perform step 300 after the preset period.
步骤304、终止告警;并在预设周期后执行步骤300。Step 304: Terminate the alarm; and perform step 300 after the preset period.
本实施例中,安全阈值小于告警阈值。In this embodiment, the security threshold is less than the alarm threshold.
需要说明的是,安全阈值一般设置比告警阈值小,而且存在一定的间隔,可以避免在终止保护告警后频繁的再次进行告警。It should be noted that the security threshold is generally set to be smaller than the alarm threshold, and there is a certain interval, which can avoid frequent re-alarming after the protection alarm is terminated.
实施例2Example 2
本实施例移动终端的终端显示屏较大,损害不同区域所需要的压力并不相同,例如损害终端显示屏中间区域和周边区域的压力值大小存在一定差值,为了合理的进行终端保护,将终端显示屏按照预设规则划分为两个或两 个以上区域,分别检测划分的终端显示屏的每一个区域的压力值。区域划分可以通过终端显示屏的显示坐标实现;需要说明的是划分的各个区域的形状可以根据显示屏大小和损害显示屏压力大小不同进行设定。图4为本发明第二实施例终端显示屏的划分示意图。本实施例终端显示屏较大,且终端显示屏的不同区域造成损坏的压力值经过压力测试存在较大差异,为了保护终端,将终端显示屏分为9个区域,四个角落形成长宽相等的四边形,将四边行的长宽延展后,将终端显示屏划分为9个区域,图中虚线作为划分各个区域的边界线。终端显示屏划分区域的方法根据显示屏大小不同,长宽不同可以进行调整,例如,本实施例终端显示屏屏幕缩小,则可以将终端显示屏划分为两个、三个、或五个区域等;两个区域可以是在终端显示屏的正中区域划分圆形、椭圆形、或四边形等常规形状区域,将剩余周边区域划分为一个区域;三个区域一般可以按照上中下等三个四边形的方式划分三个区域;五个区域的划分方式一般可以采用四个角落四个三角形,中间区域作为一个区域的方式进行划分,具体划分方式可以根据损坏所需压力值的测试进行设置。图5为本发明第二实施例的方法流程图,如图5所示,包括:In this embodiment, the display screen of the terminal of the mobile terminal is large, and the pressure required to damage different areas is not the same. For example, there is a certain difference between the pressure value of the middle area of the display screen and the surrounding area. In order to reasonably perform terminal protection, The terminal display is divided into two or two according to preset rules. More than one area, respectively detecting the pressure value of each of the divided terminal display screens. The area division can be realized by the display coordinates of the terminal display screen; it should be noted that the shape of each divided area can be set according to the size of the display screen and the damage of the display screen. 4 is a schematic diagram showing the division of a terminal display screen according to a second embodiment of the present invention. In this embodiment, the display screen of the terminal is large, and the pressure value caused by the different areas of the terminal display screen is greatly different after the pressure test. In order to protect the terminal, the terminal display screen is divided into 9 regions, and the four corners are formed to have the same length and width. The quadrilateral, after extending the length and width of the four sides, divides the terminal display into nine areas, and the dotted line in the figure serves as a boundary line for dividing each area. The method for dividing the area of the terminal display screen can be adjusted according to the size of the display screen, and the length and width can be adjusted. For example, if the screen of the terminal display screen is reduced in this embodiment, the terminal display screen can be divided into two, three, or five areas, etc. The two areas may be divided into a regular shape area such as a circle, an ellipse, or a quadrangle in the middle area of the terminal display screen, and the remaining peripheral area is divided into one area; the three areas are generally three upper quadrants. The method divides three regions; the division of five regions can generally adopt four corners and four triangles, and the middle region is divided as a region. The specific division method can be set according to the test of the pressure value required for damage. FIG. 5 is a flowchart of a method according to a second embodiment of the present invention. As shown in FIG. 5, the method includes:
步骤500、检测作用于终端显示屏的压力值,并确定作用于显示屏的压力在显示屏上的位置; Step 500, detecting a pressure value acting on the display screen of the terminal, and determining a position of the pressure acting on the display screen on the display screen;
本步骤具体包括:按照预设周期通过一个或一个以上压力传感器检测终端显示屏的压力值。本实施例预设周期可以设定为200毫秒。The step specifically includes: detecting the pressure value of the display screen of the terminal by one or more pressure sensors according to a preset period. The preset period of this embodiment can be set to 200 milliseconds.
步骤501、判断检测作用于终端显示屏的压力是否大于或等于确定出的作用于显示屏的压力在显示屏上的位置所在的区域对应的告警阈值;如果是,执行步骤502;如果不是,执行步骤503;Step 501: Determine whether the pressure applied to the display screen of the terminal is greater than or equal to an alarm threshold corresponding to the determined location of the pressure acting on the display screen on the display screen; if yes, execute step 502; if not, execute Step 503;
步骤502、根据检测的压力值大于预设的告警阈值进行声音告警,并在预设周期后执行步骤500;声音告警可以是可以采用具备警示功能的铃声进行告警,也可以采用报读数值的语音进行告警,还可以通过描述压力大小程度的声音进行告警。Step 502: Perform an audible alarm according to the detected pressure value being greater than a preset alarm threshold, and perform step 500 after the preset period; the audible alarm may be an alarm that may be performed by using a ringtone with a warning function, or may be a voice that reports a reading value. Alarms can also be generated by sounds that describe the magnitude of the pressure.
步骤503、判断检测到的压力值是否小于预设的安全阈值,如果是,则执行步骤504,如果不是,则在预设周期后执行步骤500。Step 503: Determine whether the detected pressure value is less than a preset safety threshold. If yes, execute step 504. If not, perform step 500 after the preset period.
步骤504、终止告警,并在预设周期后执行步骤500。 Step 504: Terminate the alarm and perform step 500 after the preset period.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储与存储器中的程序/指令来实现其相应功能。本发明不限于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function. The invention is not limited to any specific form of combination of hardware and software.
虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。While the embodiments of the present invention have been described above, the described embodiments are merely for the purpose of understanding the invention and are not intended to limit the invention. Any modification and variation in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
本发明实施例的方法实现了在不影响便携性和使用体验的情况下对被挤压的终端显示屏的检测,通过告警对终端进行了保护。 The method of the embodiment of the invention realizes the detection of the pressed terminal display screen without affecting the portability and the use experience, and protects the terminal by the alarm.

Claims (15)

  1. 一种实现终端告警的方法,包括:A method for implementing terminal alarms includes:
    终端检测作用于终端显示屏的压力值;The terminal detects a pressure value acting on the display of the terminal;
    当判断出压力值大于或等于预设的告警阈值时,终端进行告警。When it is determined that the pressure value is greater than or equal to the preset alarm threshold, the terminal performs an alarm.
  2. 根据权利要求1所述的方法,其中,所述终端判断出压力值大于或等于预设的告警阈值包括:所述终端将所述终端显示屏作为整体,判断出所述压力值大于或等于所述告警阈值。The method of claim 1, wherein the terminal determining that the pressure value is greater than or equal to the preset alarm threshold comprises: the terminal determining, by the terminal as the whole, the pressure value is greater than or equal to The alarm threshold.
  3. 根据权利要求1所述的方法,该方法还包括:所述终端确定作用于所述显示屏的压力在所述显示屏上的位置;The method of claim 1 further comprising the terminal determining a location of a pressure on the display screen on the display screen;
    所述终端判断出压力值大于或等于预设的告警阈值包括:所述终端判断出检测的压力值大于或等于确定出的作用于显示屏的压力在显示屏上的位置所在的区域对应的告警阈值。The determining, by the terminal, that the pressure value is greater than or equal to the preset alarm threshold includes: the terminal determining that the detected pressure value is greater than or equal to the determined alarm corresponding to the location of the pressure acting on the display screen on the display screen. Threshold.
  4. 根据权利要求1、2或3所述的方法,其中,所述终端检测作用于终端显示屏的压力值包括:The method according to claim 1, 2 or 3, wherein the detecting the pressure value acting on the display screen of the terminal comprises:
    所述终端按照预设周期通过一个或一个以上压力传感器检测作用于所述终端显示屏的压力值。The terminal detects a pressure value acting on the display screen of the terminal by one or more pressure sensors according to a preset period.
  5. 根据权利要求1、2或3所述的方法,其中,所述终端进行告警包括:The method of claim 1, 2 or 3, wherein the alerting by the terminal comprises:
    所述终端进行震动、和/或声音、和/或提示灯闪烁的告警。The terminal performs an alarm of vibration, and/or sound, and/or flashing of the cue light.
  6. 根据权利要求5所述的方法,其中,所述终端进行告警包括:The method of claim 5, wherein the alerting by the terminal comprises:
    检测的所述压力值大于或等于预设的告警阈值且压力值逐渐增大时,所述终端根据压力值的增大采用更高频率的震动、和/或更大音量的声音、和/或更大频率的提示灯闪烁进行告警;When the detected pressure value is greater than or equal to a preset alarm threshold and the pressure value is gradually increased, the terminal adopts a higher frequency vibration, and/or a louder sound according to the increase of the pressure value, and/or A larger frequency indicator light flashes to alert;
    检测的所述压力值大于或等于预设的告警阈值且压力值逐渐减小时,所述终端根据压力值的减小采用更低频率的震动、和/或更小音量的声音、和/或更小频率的提示灯闪烁进行告警。When the detected pressure value is greater than or equal to a preset alarm threshold and the pressure value is gradually decreased, the terminal adopts a lower frequency vibration, and/or a lower volume sound according to the decrease of the pressure value, and/or A small frequency indicator light flashes to alert.
  7. 根据权利要求1、2或3所述的方法,在进行告警后,该方法还包括: The method according to claim 1, 2 or 3, after the alarm is performed, the method further comprises:
    在检测到的所述压力值小于预设的安全阈值时,所述终端终止告警;When the detected pressure value is less than a preset safety threshold, the terminal terminates the alarm;
    其中,所述安全阈值小于所述告警阈值。The security threshold is smaller than the alarm threshold.
  8. 一种实现终端告警的装置,包括:检测单元和告警单元;其中,An apparatus for implementing a terminal alarm includes: a detecting unit and an alarm unit; wherein
    检测单元,设置为检测作用于终端显示屏的压力值;a detecting unit configured to detect a pressure value acting on the display screen of the terminal;
    告警单元,设置为当判断出所述压力值大于或等于预设的告警阈值时,进行告警。The alarm unit is configured to perform an alarm when it is determined that the pressure value is greater than or equal to a preset alarm threshold.
  9. 根据权利要求8所述的装置,其中,所述告警单元是设置为,The apparatus according to claim 8, wherein said alarm unit is set to
    将所述终端显示屏作为整体,判断出所述压力值大于或等于预设的告警阈值时,进行告警。When the terminal display screen as a whole determines that the pressure value is greater than or equal to a preset alarm threshold, an alarm is generated.
  10. 根据权利要求8所述的装置,所述检测单元还设置为:The apparatus according to claim 8, wherein the detecting unit is further configured to:
    确定作用于所述显示屏的压力在所述显示屏上的位置;Determining a position of a pressure acting on the display screen on the display screen;
    所述告警单元是设置为:The alarm unit is set to:
    判断出检测的压力值大于或等于确定出的作用于显示屏的压力在显示屏上的位置所在的区域对应的告警阈值,进行告警。The alarm value is determined to be greater than or equal to the alarm threshold corresponding to the determined location of the pressure acting on the display screen on the display screen, and the alarm is generated.
  11. 根据权利要求8或9或10所述的装置,其中,所述检测单元是设置为,按照预设周期通过一个或一个以上压力传感器检测作用于终端显示屏的压力值。The apparatus according to claim 8 or 9 or 10, wherein the detecting unit is configured to detect a pressure value acting on the display screen of the terminal by one or more pressure sensors in accordance with a preset period.
  12. 根据权利要求8、9或10所述的装置,所述告警单元是设置为,The apparatus according to claim 8, 9 or 10, wherein said alarm unit is configured to
    当检测的所述压力值大于或等于预设的所述告警阈值时,进行震动、和/或声音、和/或提示灯闪烁的告警。When the detected pressure value is greater than or equal to the preset alarm threshold, an alarm of vibration, and/or sound, and/or blinking of the indicator light is performed.
  13. 根据权利要求12所述的装置,其中,所述告警单元是设置为,The apparatus according to claim 12, wherein said alarm unit is set to
    检测的所述压力值大于或等于预设的告警阈值且压力值逐渐增大时,根据压力值的增大采用更高频率的震动、和/或更大音量的声音、和/或更大频率的提示灯闪烁进行告警;When the detected pressure value is greater than or equal to a preset alarm threshold and the pressure value is gradually increased, a higher frequency vibration, and/or a louder sound, and/or a larger frequency are used according to the increase of the pressure value. The prompt light flashes to alert;
    检测的所述压力值大于或等于预设的告警阈值且压力值逐渐减小时,根据压力值的减小采用更低频率的震动、和/或更小音量的声音、和/或更小频率的提示灯闪烁进行告警。 When the detected pressure value is greater than or equal to a preset alarm threshold and the pressure value is gradually decreased, a lower frequency vibration, and/or a smaller volume sound, and/or a smaller frequency are used according to the decrease of the pressure value. The indicator light flashes to alert you.
  14. 根据权利要求8、9或10所述的装置,该装置还包括终止单元,设置为在进行告警后,检测到的所述压力值小于预设的安全阈值时,终止告警;The device according to claim 8, 9 or 10, further comprising a termination unit configured to terminate the alarm when the detected pressure value is less than a preset safety threshold after the alarm is performed;
    其中,所述安全阈值小于告警阈值。The security threshold is less than an alarm threshold.
  15. 一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行权利要求1~8任意一项所述的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any one of claims 1-8.
PCT/CN2016/073352 2015-10-14 2016-02-03 Terminal alarm implementation method and apparatus WO2016184174A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510662243.6 2015-10-14
CN201510662243.6A CN106598440A (en) 2015-10-14 2015-10-14 Method and device for implementing terminal alarm

Publications (1)

Publication Number Publication Date
WO2016184174A1 true WO2016184174A1 (en) 2016-11-24

Family

ID=57319360

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/073352 WO2016184174A1 (en) 2015-10-14 2016-02-03 Terminal alarm implementation method and apparatus

Country Status (2)

Country Link
CN (1) CN106598440A (en)
WO (1) WO2016184174A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973159A (en) * 2017-03-24 2017-07-21 维沃移动通信有限公司 A kind of foreign matter detecting method and mobile terminal
CN113316757A (en) * 2019-01-21 2021-08-27 三星电子株式会社 Electronic device and method for preventing display from being damaged

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563551B (en) * 2018-02-28 2021-07-16 努比亚技术有限公司 Alarm method, flexible screen terminal and computer readable storage medium
CN111683442B (en) * 2020-06-08 2022-11-04 上海添彩灯饰照明有限公司 External wall light illumination control method and system
CN113296622B (en) * 2021-05-25 2024-05-24 Oppo广东移动通信有限公司 Control method and system of touch pen and touch pen

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101424573A (en) * 2008-12-09 2009-05-06 宇龙计算机通信科技(深圳)有限公司 Alarm method based on liquid crystal display and apparatus with the liquid crystal display
CN103077105A (en) * 2011-10-25 2013-05-01 宏碁股份有限公司 Device and method for screen-extrusion protection
CN203732000U (en) * 2014-01-17 2014-07-23 中国农业大学 Digital display type topsoil depth measuring rule

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101424573A (en) * 2008-12-09 2009-05-06 宇龙计算机通信科技(深圳)有限公司 Alarm method based on liquid crystal display and apparatus with the liquid crystal display
CN103077105A (en) * 2011-10-25 2013-05-01 宏碁股份有限公司 Device and method for screen-extrusion protection
CN203732000U (en) * 2014-01-17 2014-07-23 中国农业大学 Digital display type topsoil depth measuring rule

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973159A (en) * 2017-03-24 2017-07-21 维沃移动通信有限公司 A kind of foreign matter detecting method and mobile terminal
CN113316757A (en) * 2019-01-21 2021-08-27 三星电子株式会社 Electronic device and method for preventing display from being damaged

Also Published As

Publication number Publication date
CN106598440A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
WO2016184174A1 (en) Terminal alarm implementation method and apparatus
TWI550479B (en) Electronic decive and protection method and protection system of touch screen thereof
US10269230B2 (en) Alert system for detecting rising water levels
TW201424336A (en) Anti-theft system and method
CN103957321B (en) Mobile terminal and its theft preventing method
TWI540541B (en) Method of detecting emergency utilized in mobile device
WO2006044358A3 (en) Circuit and method for prioritization of hazardous condition messages for interconnected hazardous condition detectors
US20120033533A1 (en) Electronic device with alarm mode and alarm method thereof
JP2011509484A5 (en)
WO2015154572A1 (en) Anti-theft method for mobile terminal and mobile terminal thereof
US20110221608A1 (en) Electronic device and method for monitoring user state
WO2017088259A1 (en) Screen protection method and device
JP2005230223A5 (en)
WO2014187261A1 (en) Terminal, and information processing method and device
JP2010033517A (en) Alarm
CN104821996A (en) Method for answering or hanging up mobile terminal, and system thereof
CN205247550U (en) Intelligence fire alarm device
CN103618828B (en) A kind of method and terminal of processing incoming call
WO2013166972A1 (en) Waterproof digital product for automatically detecting water intake
CN106778375A (en) A kind of mobile device vibrations anti-fall method, device and mobile device
JP5245766B2 (en) Touch panel protection device, touch panel protection method, and touch panel protection program
US20160042636A1 (en) Electronic device and method for turning off alarm for electronic device
TWI747999B (en) Electronic bracelet with watching function and watching method thereof
US10409362B2 (en) Electronic device for preventing eye damage through long-time viewing and method thereof
JP6481357B2 (en) Electronics

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16795661

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16795661

Country of ref document: EP

Kind code of ref document: A1