WO2018103413A1 - Terminal control method, apparatus and mobile terminal - Google Patents

Terminal control method, apparatus and mobile terminal Download PDF

Info

Publication number
WO2018103413A1
WO2018103413A1 PCT/CN2017/102931 CN2017102931W WO2018103413A1 WO 2018103413 A1 WO2018103413 A1 WO 2018103413A1 CN 2017102931 W CN2017102931 W CN 2017102931W WO 2018103413 A1 WO2018103413 A1 WO 2018103413A1
Authority
WO
WIPO (PCT)
Prior art keywords
pressure
preset
value
parameter
screen
Prior art date
Application number
PCT/CN2017/102931
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 WO2018103413A1 publication Critical patent/WO2018103413A1/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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a method, an apparatus, and a mobile terminal for controlling a terminal.
  • the commonly used smart phone touch screen belongs to the capacitive screen.
  • the reaction is very sensitive.
  • the user wears gloves or hands on the water in winter, the user touches the screen. This can cause the screen to be unresponsive or malfunctioning, unable to complete the user's desired operation, and the user experience is low.
  • the present disclosure provides a method, a device, and a mobile terminal for controlling a terminal, which are used to solve the following problems in the prior art: when a user wears gloves or hands on the water in winter, the user touches the screen. The screen is slow or unsuccessful, and the user's desired operation cannot be completed, and the user experience is low.
  • the present disclosure provides a method for controlling a terminal, comprising: acquiring a pressure parameter if a pressure value received by a screen reaches a preset pressure value, wherein the pressure parameter includes at least: The pressure value, the duration of the pressure value, the pressure action position, and the pressure action mode; determining a predetermined operation corresponding to the pressure parameter according to a correspondence between the pressure parameter in the database and the predetermined operation according to the preset pressure, and performing the predetermined operation.
  • the method further includes: detecting whether the current value received by the screen reaches a preset current value; and receiving, by the pressure sensor, the screen from the screen if the current value does not reach the preset current value Pressure value.
  • determining a predetermined operation corresponding to the pressure parameter according to a correspondence between a pressure parameter in the preset pressure operation database and a predetermined operation including: determining a preset pressure range in which the pressure value is located, according to the determined preset The pressure range determines a reference pressure value used to find the preset pressure operation database; determining a location area where the pressure action position is located to determine a reference position used to search the preset pressure operation database according to the location area a predetermined time range in which the duration of the pressure value is determined to determine a reference time value used to search the preset pressure operation database according to the determined preset time range; according to the reference pressure value
  • the reference position coordinates, the reference time value, and the pressure action mode collectively find a predetermined operation corresponding to the pressure parameter in all predetermined operations of the preset pressure operation database.
  • the preset pressure operation database is set as follows: receiving a plurality of pressure parameters of the user's settings and a predetermined operation corresponding to each pressure parameter; generating a script for each pressure parameter and its corresponding predetermined operation Files and store each script file in the preset pressure operation database.
  • the predetermined operation includes at least one of: viewing information, making a call, and opening a predetermined application.
  • the present disclosure further provides an apparatus for controlling a terminal, comprising: an acquiring module, configured to acquire a pressure parameter if a pressure value received by the screen reaches a preset pressure value, wherein the pressure parameter includes at least : pressure The force value, the duration of the pressure value, the pressure action position, the pressure action mode; the execution module is configured to determine a predetermined operation corresponding to the pressure parameter according to a correspondence between the pressure parameter in the database and the predetermined operation according to the preset pressure operation, and execute the The predetermined operation.
  • the method further includes: a detecting module configured to detect whether the current value received by the screen reaches a preset current value; and the receiving module is configured to pass the pressure if the current value does not reach the preset current value The sensor receives the pressure value from the screen.
  • the execution module includes: a determining unit, configured to determine a preset pressure range in which the pressure value is located, to determine a reference pressure used to search the preset pressure operation database according to the determined preset pressure range a value; determining a location area where the pressure action position is located to determine a reference position coordinate used to find the preset pressure operation database according to the location area; determining a preset time at which the duration of the pressure value is a range to determine a reference time value used to search the preset pressure operation database according to the determined preset time range; a search unit configured to be based on the reference pressure value, the reference position coordinate, the reference time value, and The pressure action mode collectively searches for a predetermined operation corresponding to the pressure parameter in all predetermined operations of the preset pressure operation database.
  • the method further includes: setting a module, configured to set the preset pressure operation database, wherein the setting method is as follows: receiving a plurality of pressure parameters set by the user and a predetermined operation corresponding to each pressure parameter; The pressure parameters and their corresponding predetermined operations generate script files and store each script file in the preset pressure operation database.
  • the present disclosure also provides a mobile terminal, including: the foregoing apparatus for controlling a terminal.
  • the pressure mode is used to quickly control the terminal, and the obtained pressure parameter is compared with each predetermined operation in the preset pressure operation database to determine What is the operation that the current pressure parameter needs to perform; whether the user's finger is in an insensitive state of operation, the user can control the operation of the terminal quickly by pressure, and the user experience is high, solving the following problems of the prior art: when the user In winter, there are gloves or hands on the water, etc. At this time, when the user touches the screen, the screen may be unresponsive or malfunctioning, and the user's desired operation cannot be completed, and the user experience is low.
  • FIG. 1 is a flowchart of a method of controlling a terminal in a first embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of an apparatus for controlling a terminal in a second embodiment of the present disclosure
  • FIG. 3 is a schematic diagram showing a preferred structure of an apparatus for controlling a terminal in a second embodiment of the present disclosure
  • FIG. 4 is a flowchart of a method of controlling a terminal in a fourth embodiment of the present disclosure.
  • FIG. 5 is a flowchart of a mobile terminal performing a photographing continuous shooting function in a fourth embodiment of the present disclosure.
  • the present disclosure provides a method, an apparatus, and a mobile terminal for controlling a terminal.
  • the present disclosure will be described in detail below with reference to the accompanying drawings and embodiments. It is to be understood that the exemplary embodiments described herein are merely illustrative of the disclosure,
  • the first embodiment of the present disclosure provides a method for controlling a terminal.
  • the process of the method is as shown in FIG. 1 and includes steps S102 to S104:
  • S102 Acquire a pressure parameter when the pressure value received by the screen reaches a preset pressure value, wherein the pressure parameter includes at least: a pressure value, a duration of the pressure value, a pressure action position, and a pressure action mode.
  • the magnitude relationship between the pressure value and the preset pressure value can be determined.
  • the function of controlling the operation of the pressure mode can be turned on, which is equivalent to a trigger switch.
  • the pressure parameter is started, that is, the magnitude of the pressure value, the duration of the pressure value, the pressure action position, and the pressure action mode.
  • S104 Determine a predetermined operation corresponding to the pressure parameter according to a correspondence between the pressure parameter in the database and the predetermined operation in the preset pressure operation, and perform a predetermined operation.
  • the predetermined operation includes at least one of the following: viewing information, making a call, and opening a predetermined application.
  • the predetermined operation corresponding to the pressure parameter can be determined, and then the predetermined operation can be performed, for example, The pressure value of 2 Newton is long and presses a position in the predetermined area in the upper left corner of the screen for 3 seconds to open the WeChat application. When the pressure parameter meets the condition, the WeChat application is directly opened.
  • the pressure mode is used to quickly control the terminal, and the obtained pressure parameter is compared with each predetermined operation in the preset pressure operation database.
  • the method can quickly control the operation of the terminal through pressure, and the user experience is high, solving the following problems of the prior art: When the user wears gloves or hands on the water in the winter, the user touches the screen, which may cause the screen to be unresponsive or malfunctioning, unable to complete the operation desired by the user, and the user experience is low.
  • the above operation process is to give the user a quick operation mode, but in use, the user may not be able to touch the screen due to finger water or wearing gloves, so the pressure control mode is needed, so before the pressure parameter is obtained, It is also possible to detect whether the current value received by the screen reaches the preset current value; if the current value does not reach the preset current value, the user may bring gloves, etc., and the screen is in a capacitive sensing insensitive state, and the pressure sensor is passed. Receive pressure values from the screen.
  • Determining a predetermined operation corresponding to the pressure parameter according to the correspondence between the pressure parameter in the preset pressure operation database and the predetermined operation may be determined as follows: determining the preset pressure range at which the pressure value is located, to determine according to the determined preset pressure range Find the reference pressure value used by the preset pressure operation database; determine the position area where the pressure action position is located to determine the reference position coordinate used to find the preset pressure operation database according to the position area; determine the duration of the pressure value Presetting a time range to determine a preset preset pressure operand based on the determined preset time range According to the reference time value used by the library; and according to the reference pressure value, the reference position coordinate, the reference time value and the pressure action mode, the predetermined operation corresponding to the pressure parameter is searched for in all predetermined operations of the preset pressure operation database.
  • the preset pressure operation database is set as follows: receiving a plurality of pressure parameters of the user's settings and a predetermined operation corresponding to each pressure parameter; generating a script file for each pressure parameter and its corresponding predetermined operation, and Each script file is stored in a preset pressure operation database.
  • the preset pressure operation database is realized by script mode, which is simple in operation, convenient to call, and flexible.
  • the second embodiment of the present disclosure provides a device for controlling a terminal.
  • the structure of the device is as shown in FIG. 2, and includes: an acquiring module 10, configured to: when the pressure value received by the screen reaches a preset pressure value, Obtaining a pressure parameter, wherein the pressure parameter comprises at least: a pressure value, a duration of the pressure value, a pressure action position, and a pressure action mode; the execution module 20 is coupled with the acquisition module 10, and is configured to operate the pressure parameter in the database according to the preset pressure
  • the correspondence of the predetermined operations determines a predetermined operation corresponding to the pressure parameter, and performs a predetermined operation.
  • FIG. 3 is a schematic diagram of a preferred structure of the above device, further comprising: a detecting module 30 configured to detect whether a current value received by the screen reaches a preset current value; and a receiving module 40 coupled to the detecting module 30 and the acquiring module 10, It is set to receive the pressure value from the screen through the pressure sensor if the current value does not reach the preset current value.
  • the execution module 20 includes: a determining unit configured to determine a preset pressure range at which the pressure value is located, to determine a reference pressure value used for searching the preset pressure operation database according to the determined preset pressure range; and determining a pressure acting position a location area at which a reference position coordinate used to find a preset pressure operation database is determined according to the location area; a preset time range in which the duration of the pressure value is determined is determined to determine a preset preset pressure according to the determined preset time range
  • the reference time value used by the operation database; the search unit is configured to search for a predetermined operation corresponding to the pressure parameter in all predetermined operations of the preset pressure operation database according to the reference pressure value, the reference position coordinate, the reference time value, and the pressure action mode.
  • the apparatus further includes: a setting module configured to set a preset pressure operation database, wherein the setting method is as follows: receiving a plurality of pressure parameters set by the user and a predetermined operation corresponding to each pressure parameter; Each pressure parameter and its corresponding predetermined operation generate a script file and store each script file in a preset pressure operation database.
  • the user can set each pressure parameter and corresponding operation by setting the module, which is more convenient for the user to memorize and has strong practicability.
  • a third embodiment of the present disclosure also provides a mobile terminal including the apparatus for controlling a terminal in the second embodiment described above.
  • the device for controlling the terminal can be used as a separate APP and the mobile terminal to call each device of the mobile terminal to complete its corresponding function.
  • it can also be integrated in the mobile terminal as part of the function of the mobile terminal system.
  • the fourth embodiment of the present disclosure provides a mobile terminal, which is a mobile terminal built in a pressure sensor on a screen, and the use of the mobile terminal can bring more convenient operations to the user, and can also bring gloves or hands in the user's winter. When there is water, it is not possible to perform touch operations sensitively.
  • the control method of the mobile terminal is as shown in FIG. 4, and includes the following processes:
  • S402 Detect whether the capacitance of the finger touching the touch screen is less than a preset capacitance. If yes, execute S404, otherwise execute S403.
  • the above process is also to determine whether the finger touching the screen is in a normal state.
  • the principle of the capacitive screen is that when the human body touches the touch screen, a coupling capacitor is formed between the human body and the touch screen electrode, and by detecting the change of the coupling capacitance, it is possible to sense whether the human body touches the screen or not, thereby generating an operation.
  • a coupling capacitor is also generated between the water droplets and the touch screen electrodes. This is different from the human body touch, and the mobile terminal can judge that the water droplets are not malfunctioning.
  • S403 Determine that the finger is in a normal dry state, and perform a control operation of the user.
  • S405 Acquire a pressure value parameter, an action time parameter, and a pressing mode parameter of the finger pressing the screen.
  • S406 Compare the obtained parameter with a preset operation parameter in a preset database and a predetermined operation correspondence, and determine an operation that the current parameter needs to perform.
  • the preset database described above is preset by the user, and the setting process of the preset database is described below.
  • Step 1 Enter the pressure touch custom mode.
  • the terminal monitors a series of operation and pressure touch pressure parameters input by the user, and records and saves.
  • the pressure touch custom mode enters the mode: the user presses the screen on the current interface, which is different from the ordinary touch screen, such as tapping, long pressing, sliding touch, and the pressure screen responds to the pressure touch operation at this time. And record the pressure parameters.
  • the pressure parameters include one or more of pressure coordinates, pressure values, and duration. Different from other interfaces, there are significant interface prompts. For example, there is a text prompt on the interface, and the current pressure touch custom mode is entered.
  • the pressure parameter of the current pressing screen is compared with the pressure parameter of the saved pressure touch operation, if the pressure parameters are the same. , instead of entering the pressure touch custom mode, the pressure touch operation that has been saved is activated. If the pressure parameters are different, enter the pressure touch custom mode.
  • Step 2 Save a series of operations entered by the user to complete a function.
  • the input exemplary operations may be simple instructions such as opening, deleting, renaming, etc., or may be running or closing of the application, or may be an operation of enlarging or reducing the picture. It may also be one or more of touch operation information, slide screen operation information, and menu selection operation letter.
  • the sliding screen operation information includes sliding the screen information to the left, sliding the screen information to the right, sliding the screen information upward, sliding the screen information downward, and the like.
  • the operational instructions in the embodiments of the present disclosure include, but are not limited to, the above instructions.
  • the N is a natural number.
  • the input operation is a single operation such as opening, deleting, renaming, sliding, clicking, long pressing, etc.
  • the corresponding instruction that performs the operation in the background is saved. If the input operation is a set of several steps, the input instruction of the first step operation, the input instruction of the second step operation, the input instruction of the Nth step operation, and the adjacent two input information are sequentially sequentially performed in the order of acquisition. The time difference between saves is saved to form an executable file.
  • the principle is based on Google's UIAutoMator automation framework, the development and packaging of Google UIAutomator, and the automatic implementation of the APP layer. Running in the background, recording the screen coordinates when the user operates the mobile phone, and rewriting the coordinate values during recording to the system during the playback operation, enabling the tool to perform the functions of automatic playback execution.
  • the tool simulates the input device from the kernel user state space, and the script content of the user operation is processed by the tool, and finally can be sent to the Android input and output system through the virtual input device to implement automatic execution; the tool parses the script content edited by the user, such as “clicking on the text "Action, the tool will parse all the controls of the current screen, and find the text specified in the script, get the coordinate position of the text and perform a click action.
  • the framework mainly includes two parts: script parsing execution and background playback service.
  • the script parsing execution is mainly responsible for the parsing of script content and the conversion of the executor code.
  • the background playback service is mainly responsible for the interaction of the underlying input device and background playback.
  • the recorded script is finally converted to UiAutomator test code for automated testing.
  • the current interface provides a save button. After the operation entered by the user is completed, the user clicks the save button to complete the save.
  • Step 3 Exit the pressure touch custom mode.
  • the mobile terminal saves the pressure parameter currently received by the screen, which is a parameter related to the pressure sensed by the pressure screen of the mobile terminal.
  • the pressure touch custom mode exit mode is: the user presses the screen on the current interface, which is different from the ordinary touch screen, such as tap, long press, and swipe touch, and the pressure screen responds to the pressure touch operation at this time, and records Pressure parameters.
  • the pressure parameters should be consistent with the pressure parameters entering the custom mode. Includes one or more of pressure coordinates, pressure values, and duration. Different from other interfaces, there are significant interface prompts. For example, there is a text prompt on the interface, and the current pressure touch custom mode is currently exited.
  • the pressure parameter of the current pressing screen is compared with the pressure parameter of the pressure touch operation that has been saved before entering the custom mode. If the pressure parameters are the same, the pressure touch is exited. Control the custom mode, give the user a prompt, and save the pressure parameter. If the pressure parameters are different, the pressure touch custom mode is not exited, and a user prompt is given.
  • the pressure parameter includes one or more of pressure coordinates, pressure values, and duration. And includes the way of pressure touch, including tap, long press, slide and other modes of operation.
  • Step 4 Save the pressure parameter of the current interface and the corresponding operation instruction to a file, and store the correspondence between the operation instruction and the pressure parameter, as shown in Table 1.
  • the terminal searches for and calls the pre-stored operation instruction corresponding to the pressure parameter according to the pressure parameter. After the mobile terminal acquires the pressure parameter it receives, according to the pressure parameter, an operation instruction corresponding to the pressure parameter is searched, and the found operation instruction is called.
  • the saved operation steps can be automatically executed to implement the corresponding functions, and the complicated operation is not required to be repeatedly input, thereby greatly saving the operation time of the user.
  • the operation information input by the user or the input information of each operation step recorded in the executable script file is automatically operated.
  • the embodiment provides a function of the mobile terminal to complete the continuous shooting by using the pressure touch.
  • the target to be focused is clicked on the framing interface, and the camera is continuously pressed to achieve continuous shooting, and the continuous shooting speed is proportional to the pressing pressure.
  • continuous shooting of different speeds is completed according to different pressures, which is convenient for the user to operate.
  • the process is illustrated in Figure 5, the method comprising:
  • S501 The user activates the camera framing interface, and presses the screen to enter the pressure touch custom mode.
  • the mobile phone monitors a series of operation and pressure touch pressure parameters input by the user and records and saves.
  • the user performs a pressure touch operation on the camera view interface to enter the pressure touch custom mode, and the mobile phone saves the current pressure parameters of the screen.
  • the pressure parameter is a parameter related to the pressure sensed by the pressure screen of the mobile terminal. Assume that the user presses the screen with a velocity value of 2 Newtons (ie 2N), and the duration of the force on the pressure value 2N is 2 seconds (ie 2 seconds), which means that the mobile terminal is stressed for 1 second duration. It is 2 Newtons.
  • an approximate value can be taken for an exemplary calculation of the pressure value, such as 1.6 N ⁇ 2.0 N, 1.4 N ⁇ 1.0 N. It is also possible to set different effective value algorithms for values according to the needs of the user or the system.
  • S502 The terminal saves a series of operations input by the user to complete a function; when the user takes a photo, clicks the target to be focused on the framing interface, and starts the camera continuous shooting, sets the number of consecutive shots to 10 times and clicks the camera button to take a photo, the current interface A save button is provided, and the user clicks the save button to complete the save of the operation steps.
  • the program background saves the corresponding instruction of the operation.
  • the input operation is a set of several steps, and the input command of setting the number of consecutive shots 10 times in the first step operation and the input command of clicking the photographing button operation in the second step are sequentially formed into an executable script file in the order of acquisition.
  • S504 Save the pressure parameter of the current interface and the corresponding operation instruction to a file.
  • the correspondence between the storage operation command and the pressure parameter can be as shown in Table 2.
  • the operation sequence 1 indicates that the mobile terminal continues to receive 2N for 2 s duration, that is, the duration on 2 Newtons is 2 seconds.
  • the mobile terminal searches for a pre-stored operation instruction corresponding to the pressure parameter in the corresponding relationship according to the pressure parameter, the pressure value 2N and the duration 2S, and the corresponding operation instruction is automatically setting the continuous shooting number to 10 times and completing.
  • operation sequence 2 indicates that the mobile terminal continues to receive a force of 4N for a duration of 2 s, and the mobile terminal searches for a pre-stored parameter corresponding to the pressure parameter according to the pressure parameter - the pressure value 4N and the duration 2 s.
  • the corresponding operation instruction is to automatically set the number of consecutive shots to 20 times and complete the photographing.
  • the terminal searches for and calls the pre-stored operation instruction corresponding to the pressure parameter according to the pressure parameter.
  • the user performs a pressure touch operation on the photographing and framing interface, and the user presses the screen with a force value of 2 Newtons (ie, 2N), and the continuous force time on the pressure value 2N is 2 seconds, and the mobile terminal automatically completes the continuous shooting 10 times. Operation.
  • the embodiment provides a method for completing the operation according to the finger pressure when the finger has water or gloves, and the user can complete the operation according to the finger pressure, so that the user can use the mobile phone to perform a simple operation under the abnormal environment, thereby greatly improving the user.
  • the embodiment of the present disclosure further provides a function for the mobile terminal to complete the photographing continuous shooting by using the pressure touch, which is similar to the above process, and includes:
  • the user initiates the camera viewfinder interface, and enters the pressure touch custom mode by means of a characteristic touch operation (for example, long press of the screen 5S) or an interface providing a shortcut (the camera view interface provides a button menu option for entering a custom touch).
  • a characteristic touch operation for example, long press of the screen 5S
  • an interface providing a shortcut the camera view interface provides a button menu option for entering a custom touch.
  • the mobile phone monitors a series of operation and pressure touch pressure parameters input by the user and records and saves them.
  • the terminal saves a series of operations entered by the user to complete a function; when the user takes a photo, clicks on the target to be focused on the framing interface, and starts the camera continuous shooting, sets the number of consecutive shots to 10 times and clicks the camera button to take a photo, the current interface A save button is provided, and the user clicks the save button to complete the save of the operation steps.
  • the pressure parameter is a parameter related to the pressure sensed by the pressure screen of the mobile terminal. Assume that the user presses the screen with a velocity value of 2 Newtons (ie 2N), and the duration of the force on the pressure value 2N is 2 seconds (ie 2 seconds), which means that the mobile terminal is stressed for 1 second duration. It is 2 Newtons.
  • a velocity value of 2 Newtons ie 2N
  • the duration of the force on the pressure value 2N is 2 seconds (ie 2 seconds)
  • an approximate value can be taken for an exemplary calculation of the pressure value, such as 1.6 N ⁇ 2.0 N, 1.4 N ⁇ 1.0 N. It is also possible to set different effective value algorithms for values according to the needs of the user or the system.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the processor executes the method steps described in the foregoing embodiments according to the stored program code in the storage medium.
  • the exemplary embodiments in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
  • modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
  • the disclosure relates to a method, a device and a mobile terminal for controlling a terminal.
  • the method can control the operation of the terminal quickly and easily through a pressure mode regardless of whether the user's finger is in an insensitive state, and the user experience is high.

Abstract

A terminal control method, an apparatus and a mobile terminal, the method comprising: acquiring pressure parameters when a pressure value received by a screen reaches a preset pressure value (S102), the pressure parameters at least comprising: the pressure value, duration of the pressure value, position of a pressure action and mode of the pressure action; and determining a predetermined operation corresponding to the pressure parameters according to a correspondence relation between pressure parameters in a preset pressure operation database and the predetermined operation, and executing the predetermined operation (S104). Said method solves the following technical problems in existing technology: when a user wears gloves during winter or the user has water on the hands thereof, the user touching a screen will cause the screen to lag in response or malfunction, thereby preventing the user from completing a desired operation and causing a bad user experience.

Description

控制终端的方法、装置及移动终端Method, device and mobile terminal for controlling terminal 技术领域Technical field
本公开涉及通讯领域,特别是涉及一种控制终端的方法、装置及移动终端。The present disclosure relates to the field of communications, and in particular, to a method, an apparatus, and a mobile terminal for controlling a terminal.
背景技术Background technique
随着手机智能化的不断提升,人们的生活已经无法完全脱离手机,作为生活中必不可少的一部分。常用的智能手机触摸屏属于电容屏,对于用户的手处于干燥无污染物的状态时,反应非常灵敏,但是,当用户冬天在户外带着手套或者的手上有水等情况,此时用户触摸屏幕就会导致屏幕反应迟钝或者失灵,无法完成用户想要的操作,用户体验较低。With the continuous improvement of the intelligentization of mobile phones, people's lives can no longer be completely separated from mobile phones, as an indispensable part of life. The commonly used smart phone touch screen belongs to the capacitive screen. When the user's hand is in a dry and non-contaminating state, the reaction is very sensitive. However, when the user wears gloves or hands on the water in winter, the user touches the screen. This can cause the screen to be unresponsive or malfunctioning, unable to complete the user's desired operation, and the user experience is low.
发明内容Summary of the invention
本公开提供一种控制终端的方法、装置及移动终端,用以解决现有技术的如下问题:当用户冬天在户外带着手套或者的手上有水等情况,此时用户触摸屏幕就会导致屏幕反应迟钝或者失灵,无法完成用户想要的操作,用户体验较低。The present disclosure provides a method, a device, and a mobile terminal for controlling a terminal, which are used to solve the following problems in the prior art: when a user wears gloves or hands on the water in winter, the user touches the screen. The screen is slow or unsuccessful, and the user's desired operation cannot be completed, and the user experience is low.
为解决上述技术问题,一方面,本公开提供一种控制终端的方法,包括:在屏幕接收到的压力值达到预设压力值的情况下,获取压力参数,其中,所述压力参数至少包括:压力值、压力值的持续时间、压力作用位置、压力作用方式;根据预设压力操作数据库中压力参数与预定操作的对应关系确定所述压力参数对应的预定操作,并执行所述预定操作。In order to solve the above technical problem, in one aspect, the present disclosure provides a method for controlling a terminal, comprising: acquiring a pressure parameter if a pressure value received by a screen reaches a preset pressure value, wherein the pressure parameter includes at least: The pressure value, the duration of the pressure value, the pressure action position, and the pressure action mode; determining a predetermined operation corresponding to the pressure parameter according to a correspondence between the pressure parameter in the database and the predetermined operation according to the preset pressure, and performing the predetermined operation.
可选的,获取压力参数之前,还包括:检测屏幕接收到的电流值是否达到预设电流值;在所述电流值未达到所述预设电流值的情况下,通过压力传感器接收来自屏幕的压力值。Optionally, before the obtaining the pressure parameter, the method further includes: detecting whether the current value received by the screen reaches a preset current value; and receiving, by the pressure sensor, the screen from the screen if the current value does not reach the preset current value Pressure value.
可选的,根据预设压力操作数据库中压力参数与预定操作的对应关系确定所述压力参数对应的预定操作,包括:确定所述压力值所处的预设压力范围,以根据确定的预设压力范围确定查找所述预设压力操作数据库所使用的基准压力值;确定所述压力作用位置所处的位置区域,以根据所述位置区域确定查找所述预设压力操作数据库所使用的基准位置坐标;确定所述压力值的持续时间所处的预设时间范围,以根据确定的预设时间范围确定查找所述预设压力操作数据库所使用的基准时间值;根据所述基准压力值、所述基准位置坐标、所述基准时间值和所述压力作用方式共同在所述预设压力操作数据库的所有预定操作中查找所述压力参数对应的预定操作。Optionally, determining a predetermined operation corresponding to the pressure parameter according to a correspondence between a pressure parameter in the preset pressure operation database and a predetermined operation, including: determining a preset pressure range in which the pressure value is located, according to the determined preset The pressure range determines a reference pressure value used to find the preset pressure operation database; determining a location area where the pressure action position is located to determine a reference position used to search the preset pressure operation database according to the location area a predetermined time range in which the duration of the pressure value is determined to determine a reference time value used to search the preset pressure operation database according to the determined preset time range; according to the reference pressure value The reference position coordinates, the reference time value, and the pressure action mode collectively find a predetermined operation corresponding to the pressure parameter in all predetermined operations of the preset pressure operation database.
可选的,所述预设压力操作数据库按照如下方式设置:接收用户的设置的多个压力参数和每个压力参数所对应的预定操作;为每个压力参数及其所对应的预定操作生成脚本文件,并将每个脚本文件存储在所述预设压力操作数据库中。Optionally, the preset pressure operation database is set as follows: receiving a plurality of pressure parameters of the user's settings and a predetermined operation corresponding to each pressure parameter; generating a script for each pressure parameter and its corresponding predetermined operation Files and store each script file in the preset pressure operation database.
可选的,所述预定操作至少包括以下之一:查看信息、拨打电话、打开预定应用。Optionally, the predetermined operation includes at least one of: viewing information, making a call, and opening a predetermined application.
另一方面,本公开还提供一种控制终端的装置,包括:获取模块,设置为在屏幕接收到的压力值达到预设压力值的情况下,获取压力参数,其中,所述压力参数至少包括:压 力值、压力值的持续时间、压力作用位置、压力作用方式;执行模块,设置为根据预设压力操作数据库中压力参数与预定操作的对应关系确定所述压力参数对应的预定操作,并执行所述预定操作。In another aspect, the present disclosure further provides an apparatus for controlling a terminal, comprising: an acquiring module, configured to acquire a pressure parameter if a pressure value received by the screen reaches a preset pressure value, wherein the pressure parameter includes at least : pressure The force value, the duration of the pressure value, the pressure action position, the pressure action mode; the execution module is configured to determine a predetermined operation corresponding to the pressure parameter according to a correspondence between the pressure parameter in the database and the predetermined operation according to the preset pressure operation, and execute the The predetermined operation.
可选的,还包括:检测模块,设置为检测屏幕接收到的电流值是否达到预设电流值;接收模块,设置为在所述电流值未达到所述预设电流值的情况下,通过压力传感器接收来自屏幕的压力值。Optionally, the method further includes: a detecting module configured to detect whether the current value received by the screen reaches a preset current value; and the receiving module is configured to pass the pressure if the current value does not reach the preset current value The sensor receives the pressure value from the screen.
可选的,所述执行模块包括:确定单元,设置为确定所述压力值所处的预设压力范围,以根据确定的预设压力范围确定查找所述预设压力操作数据库所使用的基准压力值;确定所述压力作用位置所处的位置区域,以根据所述位置区域确定查找所述预设压力操作数据库所使用的基准位置坐标;确定所述压力值的持续时间所处的预设时间范围,以根据确定的预设时间范围确定查找所述预设压力操作数据库所使用的基准时间值;查找单元,设置为根据所述基准压力值、所述基准位置坐标、所述基准时间值和所述压力作用方式共同在所述预设压力操作数据库的所有预定操作中查找所述压力参数对应的预定操作。Optionally, the execution module includes: a determining unit, configured to determine a preset pressure range in which the pressure value is located, to determine a reference pressure used to search the preset pressure operation database according to the determined preset pressure range a value; determining a location area where the pressure action position is located to determine a reference position coordinate used to find the preset pressure operation database according to the location area; determining a preset time at which the duration of the pressure value is a range to determine a reference time value used to search the preset pressure operation database according to the determined preset time range; a search unit configured to be based on the reference pressure value, the reference position coordinate, the reference time value, and The pressure action mode collectively searches for a predetermined operation corresponding to the pressure parameter in all predetermined operations of the preset pressure operation database.
可选的,还包括:设置模块,设置为设置所述预设压力操作数据库,其中,设置方法如下:接收用户的设置的多个压力参数和每个压力参数所对应的预定操作;为每个压力参数及其所对应的预定操作生成脚本文件,并将每个脚本文件存储在所述预设压力操作数据库中。Optionally, the method further includes: setting a module, configured to set the preset pressure operation database, wherein the setting method is as follows: receiving a plurality of pressure parameters set by the user and a predetermined operation corresponding to each pressure parameter; The pressure parameters and their corresponding predetermined operations generate script files and store each script file in the preset pressure operation database.
另一方面,本公开还提供一种移动终端,包括:上述的控制终端的装置。In another aspect, the present disclosure also provides a mobile terminal, including: the foregoing apparatus for controlling a terminal.
本公开在屏幕接收到的压力值达到预设压力值的情况下,就采用压力方式来快捷的控制终端,将获取到的压力参数与预设压力操作数据库中的各个预定操作进行对比,以确定当前压力参数需要执行的操作是什么;该方法无论用户手指是否处于操作不灵敏状态,都可以通过压力方式快捷的控制终端的操作,用户体验较高,解决了现有技术的如下问题:当用户冬天在户外带着手套或者的手上有水等情况,此时用户触摸屏幕就会导致屏幕反应迟钝或者失灵,无法完成用户想要的操作,用户体验较低。In the case that the pressure value received by the screen reaches the preset pressure value, the pressure mode is used to quickly control the terminal, and the obtained pressure parameter is compared with each predetermined operation in the preset pressure operation database to determine What is the operation that the current pressure parameter needs to perform; whether the user's finger is in an insensitive state of operation, the user can control the operation of the terminal quickly by pressure, and the user experience is high, solving the following problems of the prior art: when the user In winter, there are gloves or hands on the water, etc. At this time, when the user touches the screen, the screen may be unresponsive or malfunctioning, and the user's desired operation cannot be completed, and the user experience is low.
附图说明DRAWINGS
图1是本公开第一实施例中控制终端的方法的流程图;1 is a flowchart of a method of controlling a terminal in a first embodiment of the present disclosure;
图2是本公开第二实施例中控制终端的装置的结构示意图;2 is a schematic structural diagram of an apparatus for controlling a terminal in a second embodiment of the present disclosure;
图3是本公开第二实施例中控制终端的装置的优选结构示意图;3 is a schematic diagram showing a preferred structure of an apparatus for controlling a terminal in a second embodiment of the present disclosure;
图4是本公开第四实施例中控制终端的方法的流程图;4 is a flowchart of a method of controlling a terminal in a fourth embodiment of the present disclosure;
图5是本公开第四实施例中移动终端完成拍照连拍功能的流程图。FIG. 5 is a flowchart of a mobile terminal performing a photographing continuous shooting function in a fourth embodiment of the present disclosure.
具体实施方式detailed description
为了解决现有技术的如下问题:当用户冬天在户外带着手套或者的手上有水等情况,此时用户触摸屏幕就会导致屏幕反应迟钝或者失灵,无法完成用户想要的操作,用户体验 较低;本公开提供了一种控制终端的方法、装置及移动终端,以下结合附图以及实施例,对本公开进行详细说明。应当理解,此处所描述的示例性实施例仅仅用以解释本公开,并不限定本公开。In order to solve the following problems in the prior art: when the user wears gloves or hands on the water in the winter, the user touches the screen, which may cause the screen to be unresponsive or malfunctioning, unable to complete the operation desired by the user, and the user experience. The present disclosure provides a method, an apparatus, and a mobile terminal for controlling a terminal. The present disclosure will be described in detail below with reference to the accompanying drawings and embodiments. It is to be understood that the exemplary embodiments described herein are merely illustrative of the disclosure,
本公开第一实施例提供了一种控制终端的方法,该方法的流程如图1所示,包括步骤S102至S104:The first embodiment of the present disclosure provides a method for controlling a terminal. The process of the method is as shown in FIG. 1 and includes steps S102 to S104:
S102,在屏幕接收到的压力值达到预设压力值的情况下,获取压力参数,其中,压力参数至少包括:压力值、压力值的持续时间、压力作用位置、压力作用方式。S102: Acquire a pressure parameter when the pressure value received by the screen reaches a preset pressure value, wherein the pressure parameter includes at least: a pressure value, a duration of the pressure value, a pressure action position, and a pressure action mode.
在实现的过程中,当屏幕接收到的压力值时,就可以判断该压力值与预设压力值的大小关系。当该压力值达到预设压力值时,就可以开启压力方式控制终端操作的功能,相当于一个触发开关。In the process of implementation, when the pressure value received by the screen is obtained, the magnitude relationship between the pressure value and the preset pressure value can be determined. When the pressure value reaches the preset pressure value, the function of controlling the operation of the pressure mode can be turned on, which is equivalent to a trigger switch.
当屏幕接收到的压力值达到预设压力值的情况下,就开始获取压力参数,即压力值的大小、该压力值的持续时间、压力作用位置以及压力作用方式等。When the pressure value received by the screen reaches the preset pressure value, the pressure parameter is started, that is, the magnitude of the pressure value, the duration of the pressure value, the pressure action position, and the pressure action mode.
S104,根据预设压力操作数据库中压力参数与预定操作的对应关系确定压力参数对应的预定操作,并执行预定操作。其中,预定操作至少包括以下任意之一:查看信息、拨打电话、打开预定应用。S104. Determine a predetermined operation corresponding to the pressure parameter according to a correspondence between the pressure parameter in the database and the predetermined operation in the preset pressure operation, and perform a predetermined operation. The predetermined operation includes at least one of the following: viewing information, making a call, and opening a predetermined application.
在获取到上述的压力参数后,由于预设压力操作数据库中存储了压力参数与预定操作的对应关系,因此,就可以确定压力参数对应的预定操作,随后,执行该预定操作即可,例如,2牛顿左右的压力值长按屏幕左上角预定区域内的一个位置3秒对应开启微信应用,则当压力参数满足条件时,就直接开启微信应用。After the pressure parameter is obtained, since the corresponding relationship between the pressure parameter and the predetermined operation is stored in the preset pressure operation database, the predetermined operation corresponding to the pressure parameter can be determined, and then the predetermined operation can be performed, for example, The pressure value of 2 Newton is long and presses a position in the predetermined area in the upper left corner of the screen for 3 seconds to open the WeChat application. When the pressure parameter meets the condition, the WeChat application is directly opened.
本公开实施例在屏幕接收到的压力值达到预设压力值的情况下,就采用压力方式来快捷的控制终端,将获取到的压力参数与预设压力操作数据库中的各个预定操作进行对比,以确定当前压力参数需要执行的操作是什么;该方法无论用户手指是否处于操作不灵敏状态,都可以通过压力方式快捷的控制终端的操作,用户体验较高,解决了现有技术的如下问题:当用户冬天在户外带着手套或者的手上有水等情况,此时用户触摸屏幕就会导致屏幕反应迟钝或者失灵,无法完成用户想要的操作,用户体验较低。In the embodiment of the present disclosure, when the pressure value received by the screen reaches the preset pressure value, the pressure mode is used to quickly control the terminal, and the obtained pressure parameter is compared with each predetermined operation in the preset pressure operation database. What is the operation that needs to be performed to determine the current pressure parameter; whether the user's finger is in an insensitive state, the method can quickly control the operation of the terminal through pressure, and the user experience is high, solving the following problems of the prior art: When the user wears gloves or hands on the water in the winter, the user touches the screen, which may cause the screen to be unresponsive or malfunctioning, unable to complete the operation desired by the user, and the user experience is low.
上述操作过程即是给用户一个快捷操作方式,但在使用中,有可能是用户由于手指沾水或戴手套等原因无法触控屏幕,因此才需要使用压力控制方式,所以,在获取压力参数之前,还可以检测屏幕接收到的电流值是否达到预设电流值;在电流值未达到预设电流值的情况下,说明用户可能带了手套等,屏幕处于电容感应不灵敏状态,就通过压力传感器接收来自屏幕的压力值。The above operation process is to give the user a quick operation mode, but in use, the user may not be able to touch the screen due to finger water or wearing gloves, so the pressure control mode is needed, so before the pressure parameter is obtained, It is also possible to detect whether the current value received by the screen reaches the preset current value; if the current value does not reach the preset current value, the user may bring gloves, etc., and the screen is in a capacitive sensing insensitive state, and the pressure sensor is passed. Receive pressure values from the screen.
根据预设压力操作数据库中压力参数与预定操作的对应关系确定压力参数对应的预定操作时,可以按照如下方式确定:确定压力值所处的预设压力范围,以根据确定的预设压力范围确定查找预设压力操作数据库所使用的基准压力值;确定压力作用位置所处的位置区域,以根据位置区域确定查找预设压力操作数据库所使用的基准位置坐标;确定压力值的持续时间所处的预设时间范围,以根据确定的预设时间范围确定查找预设压力操作数 据库所使用的基准时间值;再根据基准压力值、基准位置坐标、基准时间值和压力作用方式共同在预设压力操作数据库的所有预定操作中查找压力参数对应的预定操作。Determining a predetermined operation corresponding to the pressure parameter according to the correspondence between the pressure parameter in the preset pressure operation database and the predetermined operation may be determined as follows: determining the preset pressure range at which the pressure value is located, to determine according to the determined preset pressure range Find the reference pressure value used by the preset pressure operation database; determine the position area where the pressure action position is located to determine the reference position coordinate used to find the preset pressure operation database according to the position area; determine the duration of the pressure value Presetting a time range to determine a preset preset pressure operand based on the determined preset time range According to the reference time value used by the library; and according to the reference pressure value, the reference position coordinate, the reference time value and the pressure action mode, the predetermined operation corresponding to the pressure parameter is searched for in all predetermined operations of the preset pressure operation database.
其中,预设压力操作数据库按照如下方式设置:接收用户的设置的多个压力参数和每个压力参数所对应的预定操作;为每个压力参数及其所对应的预定操作生成脚本文件,并将每个脚本文件存储在预设压力操作数据库中。通过脚本方式实现预设压力操作数据库,操作简单且调用方便,灵活性强。The preset pressure operation database is set as follows: receiving a plurality of pressure parameters of the user's settings and a predetermined operation corresponding to each pressure parameter; generating a script file for each pressure parameter and its corresponding predetermined operation, and Each script file is stored in a preset pressure operation database. The preset pressure operation database is realized by script mode, which is simple in operation, convenient to call, and flexible.
本公开第二实施例提供了一种控制终端的装置,该装置的结构示意如图2所示,包括:获取模块10,设置为在屏幕接收到的压力值达到预设压力值的情况下,获取压力参数,其中,压力参数至少包括:压力值、压力值的持续时间、压力作用位置、压力作用方式;执行模块20,与获取模块10耦合,设置为根据预设压力操作数据库中压力参数与预定操作的对应关系确定压力参数对应的预定操作,并执行预定操作。The second embodiment of the present disclosure provides a device for controlling a terminal. The structure of the device is as shown in FIG. 2, and includes: an acquiring module 10, configured to: when the pressure value received by the screen reaches a preset pressure value, Obtaining a pressure parameter, wherein the pressure parameter comprises at least: a pressure value, a duration of the pressure value, a pressure action position, and a pressure action mode; the execution module 20 is coupled with the acquisition module 10, and is configured to operate the pressure parameter in the database according to the preset pressure The correspondence of the predetermined operations determines a predetermined operation corresponding to the pressure parameter, and performs a predetermined operation.
图3示出了上述装置的优选结构示意图,其还包括:检测模块30,设置为检测屏幕接收到的电流值是否达到预设电流值;接收模块40,与检测模块30和获取模块10耦合,设置为在电流值未达到预设电流值的情况下,通过压力传感器接收来自屏幕的压力值。FIG. 3 is a schematic diagram of a preferred structure of the above device, further comprising: a detecting module 30 configured to detect whether a current value received by the screen reaches a preset current value; and a receiving module 40 coupled to the detecting module 30 and the acquiring module 10, It is set to receive the pressure value from the screen through the pressure sensor if the current value does not reach the preset current value.
其中,执行模块20包括:确定单元,设置为确定压力值所处的预设压力范围,以根据确定的预设压力范围确定查找预设压力操作数据库所使用的基准压力值;确定压力作用位置所处的位置区域,以根据位置区域确定查找预设压力操作数据库所使用的基准位置坐标;确定压力值的持续时间所处的预设时间范围,以根据确定的预设时间范围确定查找预设压力操作数据库所使用的基准时间值;查找单元,设置为根据基准压力值、基准位置坐标、基准时间值和压力作用方式共同在预设压力操作数据库的所有预定操作中查找压力参数对应的预定操作。The execution module 20 includes: a determining unit configured to determine a preset pressure range at which the pressure value is located, to determine a reference pressure value used for searching the preset pressure operation database according to the determined preset pressure range; and determining a pressure acting position a location area at which a reference position coordinate used to find a preset pressure operation database is determined according to the location area; a preset time range in which the duration of the pressure value is determined is determined to determine a preset preset pressure according to the determined preset time range The reference time value used by the operation database; the search unit is configured to search for a predetermined operation corresponding to the pressure parameter in all predetermined operations of the preset pressure operation database according to the reference pressure value, the reference position coordinate, the reference time value, and the pressure action mode.
在优选实施例中,上述装置还包括:设置模块,设置为设置预设压力操作数据库,其中,设置方法如下:接收用户的设置的多个压力参数和每个压力参数所对应的预定操作;为每个压力参数及其所对应的预定操作生成脚本文件,并将每个脚本文件存储在预设压力操作数据库中。用户通过设置模块可以自己设置每个压力参数和对应的操作,更加方便用户记忆,实用性强。In a preferred embodiment, the apparatus further includes: a setting module configured to set a preset pressure operation database, wherein the setting method is as follows: receiving a plurality of pressure parameters set by the user and a predetermined operation corresponding to each pressure parameter; Each pressure parameter and its corresponding predetermined operation generate a script file and store each script file in a preset pressure operation database. The user can set each pressure parameter and corresponding operation by setting the module, which is more convenient for the user to memorize and has strong practicability.
本公开第三实施例还提供了一种移动终端,其包括上述第二实施例中的控制终端的装置。上述控制终端的装置可以作为一个单独的APP存在与移动终端中,去调用移动终端的各个器件来完成其对应的功能,当然,也可以集成在移动终端中,作为移动终端系统功能的一部分。本领域技术人员根据上述记载知晓如何将上述装置设置在移动终端中,此处不再赘述。A third embodiment of the present disclosure also provides a mobile terminal including the apparatus for controlling a terminal in the second embodiment described above. The device for controlling the terminal can be used as a separate APP and the mobile terminal to call each device of the mobile terminal to complete its corresponding function. Of course, it can also be integrated in the mobile terminal as part of the function of the mobile terminal system. Those skilled in the art will know how to set the above device in the mobile terminal according to the above description, and details are not described herein again.
本公开第四实施例提供了一种移动终端,该移动终端为屏幕内置的压力传感器的移动终端,该移动终端的使用可以给用户带来更加便捷的操作,也可以在用户冬天带手套或者手上有水的情况下,不能灵敏的执行触摸操作的时候。该移动终端的控制方法如图4所示,包括如下过程: The fourth embodiment of the present disclosure provides a mobile terminal, which is a mobile terminal built in a pressure sensor on a screen, and the use of the mobile terminal can bring more convenient operations to the user, and can also bring gloves or hands in the user's winter. When there is water, it is not possible to perform touch operations sensitively. The control method of the mobile terminal is as shown in FIG. 4, and includes the following processes:
S401:湿手状态下,手指点击手机触摸屏。S401: In the wet hand state, the finger clicks on the touch screen of the mobile phone.
S402:检测手指接触触摸屏的电容是否小于预设电容。如果是,则执行S404,否则执行S403。S402: Detect whether the capacitance of the finger touching the touch screen is less than a preset capacitance. If yes, execute S404, otherwise execute S403.
上述过程也就是判断接触屏幕的手指是否为正常状态。电容屏的原理就是当人体触碰触屏时,人体和触屏电极之间会形成一个耦合电容,通过检测耦合电容的变化就能感知人体有没有触碰屏幕,从而产生操作。当水滴在屏幕表面时,水滴和触屏电极之间也会产生一个耦合电容,这个和人体触碰的情形是不一样的,移动终端能够判断是水滴从而不会误动作。The above process is also to determine whether the finger touching the screen is in a normal state. The principle of the capacitive screen is that when the human body touches the touch screen, a coupling capacitor is formed between the human body and the touch screen electrode, and by detecting the change of the coupling capacitance, it is possible to sense whether the human body touches the screen or not, thereby generating an operation. When the water droplets are on the surface of the screen, a coupling capacitor is also generated between the water droplets and the touch screen electrodes. This is different from the human body touch, and the mobile terminal can judge that the water droplets are not malfunctioning.
S403:确定手指为正常干燥状态,执行用户的控制操作。S403: Determine that the finger is in a normal dry state, and perform a control operation of the user.
S404:确定此时手指触摸移动终端屏幕的位置参数。S404: Determine a position parameter of the finger touching the screen of the mobile terminal at this time.
S405:获取手指按压屏幕的压力值参数、作用时间参数和按压方式参数。S405: Acquire a pressure value parameter, an action time parameter, and a pressing mode parameter of the finger pressing the screen.
S406:将上述获取到的参数与预设数据库中预先设置的参数与预定操作对应关系进行比较,确定当前参数需要执行的操作。S406: Compare the obtained parameter with a preset operation parameter in a preset database and a predetermined operation correspondence, and determine an operation that the current parameter needs to perform.
S407:执行该操作。S407: Perform the operation.
上述的预设数据库是用户预先设置好,下面对预设数据库的设置过程进行说明。The preset database described above is preset by the user, and the setting process of the preset database is described below.
步骤1,进入压力触控自定义模式,自定义模式下,终端监控用户输入的一系列操作和压力触控的压力参数,并记录保存。 Step 1. Enter the pressure touch custom mode. In the custom mode, the terminal monitors a series of operation and pressure touch pressure parameters input by the user, and records and saves.
优选的,压力触控自定义模式的进入方式为:用户在当前界面用力按压屏幕,区别于普通的触摸屏幕,比如点按、长按、滑动触控,压力屏幕响应此时的压力触控操作,并记录压力参数。压力参数包括压力坐标、压力数值、持续时间中的一个或多个。区别于其他界面,有显著的界面提示。例如界面上有文字提示,当前进入压力触控自定义模式。Preferably, the pressure touch custom mode enters the mode: the user presses the screen on the current interface, which is different from the ordinary touch screen, such as tapping, long pressing, sliding touch, and the pressure screen responds to the pressure touch operation at this time. And record the pressure parameters. The pressure parameters include one or more of pressure coordinates, pressure values, and duration. Different from other interfaces, there are significant interface prompts. For example, there is a text prompt on the interface, and the current pressure touch custom mode is entered.
优选的,用户在当前界面用力按压屏幕时,如果该界面已经保存由压力触控操作,则将本次按压屏幕的压力参数和已经保存的压力触控操作的压力参数进行比较,如果压力参数相同,则不进入压力触控自定义模式,而是启动已经保存的压力触控操作。如果压力参数不同,则进入压力触控自定义模式。Preferably, when the user presses the screen hard on the current interface, if the interface has been saved by the pressure touch operation, the pressure parameter of the current pressing screen is compared with the pressure parameter of the saved pressure touch operation, if the pressure parameters are the same. , instead of entering the pressure touch custom mode, the pressure touch operation that has been saved is activated. If the pressure parameters are different, enter the pressure touch custom mode.
步骤2,保存用户完成一个功能所输入的一系列操作。Step 2: Save a series of operations entered by the user to complete a function.
从当前界面开始,获取用户为完成一个功能所输入的操作。From the current interface, get the action that the user entered to complete a function.
优选的,所输入的示例性操作可以是打开、删除、重命名等简单的指令,也可以是应用程序的运行或关闭,还可以是对图片的放大或缩小等操作。也可以是触摸操作信息、滑动屏幕操作信息和菜单选择操作信中的一种或多种。其中,滑动屏幕操作信息包括向左滑动屏幕信息、向右滑动屏幕信息、向上滑动屏幕信息、向下滑动屏幕信息等等。当然,在本公开实施例中操作指令包括但不限于上述指令。也可以是若干操作的集合,若干操作的集合包括第一步操作的输入信息、第二步操作的输入信息……第N步操作的输入信息,以及获取相邻两个输入信息之间的时间差,所述N为自然数。Preferably, the input exemplary operations may be simple instructions such as opening, deleting, renaming, etc., or may be running or closing of the application, or may be an operation of enlarging or reducing the picture. It may also be one or more of touch operation information, slide screen operation information, and menu selection operation letter. The sliding screen operation information includes sliding the screen information to the left, sliding the screen information to the right, sliding the screen information upward, sliding the screen information downward, and the like. Of course, the operational instructions in the embodiments of the present disclosure include, but are not limited to, the above instructions. It may also be a collection of operations, the set of operations including the input information of the first operation, the input information of the second operation, the input information of the operation of the Nth step, and the time difference between the two adjacent input information. , the N is a natural number.
如果所输入的操作是打开、删除、重命名,滑动,点击,长按等单一的操作,则将程 序后台执行该操作的对应指令保存。如果所输入的操作是若干步骤的集合,则按获取顺序依次将所述第一步操作的输入指令、第二步操作的输入指令……第N步操作的输入指令及相邻两个输入信息之间的时间差保存,形成一个可执行文件。If the input operation is a single operation such as opening, deleting, renaming, sliding, clicking, long pressing, etc. The corresponding instruction that performs the operation in the background is saved. If the input operation is a set of several steps, the input instruction of the first step operation, the input instruction of the second step operation, the input instruction of the Nth step operation, and the adjacent two input information are sequentially sequentially performed in the order of acquisition. The time difference between saves is saved to form an executable file.
使用自动化录制工具,其使用方法和原理为:原理是基于Google的UIAutoMator自动化框架,对谷歌UIAutomator做的开发和封装,并加入对APP层自动执行方案。在后台运行,记录用户操作手机的时的屏幕坐标,在回放操作时,将录制时的坐标值重新写入系统,使工具实现自动化回放执行的功能。工具从内核用户态空间模拟输入设备,用户操作的脚本内容经过工具处理后,最终可以通过该虚拟输入设备发送给Android输入输出系统,实现自动化执行;工具解析用户编辑的脚本内容,比如“点击文字”动作,工具会解析当前屏幕的所有控件,并查找到脚本中所指定的文字,获取文字的坐标位置并执行点击动作。框架主要包括了脚本解析执行和后台回放服务两个部分。脚本解析执行主要负责脚本内容的解析、执行器代码转化,后台回放服务主要负责底层输入设备交互、后台回放等。将录制的脚本最终转化为UiAutomator测试代码进行自动化测试。Using the automated recording tool, its usage and principle are: The principle is based on Google's UIAutoMator automation framework, the development and packaging of Google UIAutomator, and the automatic implementation of the APP layer. Running in the background, recording the screen coordinates when the user operates the mobile phone, and rewriting the coordinate values during recording to the system during the playback operation, enabling the tool to perform the functions of automatic playback execution. The tool simulates the input device from the kernel user state space, and the script content of the user operation is processed by the tool, and finally can be sent to the Android input and output system through the virtual input device to implement automatic execution; the tool parses the script content edited by the user, such as “clicking on the text "Action, the tool will parse all the controls of the current screen, and find the text specified in the script, get the coordinate position of the text and perform a click action. The framework mainly includes two parts: script parsing execution and background playback service. The script parsing execution is mainly responsible for the parsing of script content and the conversion of the executor code. The background playback service is mainly responsible for the interaction of the underlying input device and background playback. The recorded script is finally converted to UiAutomator test code for automated testing.
当前界面提供保存按钮,设置为用户所输入的操作结束后,用户点击保存按钮完成保存。The current interface provides a save button. After the operation entered by the user is completed, the user clicks the save button to complete the save.
步骤3,退出压力触控自定义模式。移动终端保存屏幕当前所受的压力参数,该压力参数是与移动终端压力屏感知到的压力相关的参数。 Step 3. Exit the pressure touch custom mode. The mobile terminal saves the pressure parameter currently received by the screen, which is a parameter related to the pressure sensed by the pressure screen of the mobile terminal.
压力触控自定义模式的退出方式为:用户在当前界面用力按压屏幕,区别于普通的触摸屏幕,比如点按、长按、滑动触控,压力屏幕响应此时的压力触控操作,并记录压力参数。压力参数应该和进入自定义模式的压力参数一致。包括压力坐标、压力数值、持续时间中的一个或多个。区别于其他界面,有显著的界面提示。例如界面上有文字提示,当前退出压力触控自定义模式。The pressure touch custom mode exit mode is: the user presses the screen on the current interface, which is different from the ordinary touch screen, such as tap, long press, and swipe touch, and the pressure screen responds to the pressure touch operation at this time, and records Pressure parameters. The pressure parameters should be consistent with the pressure parameters entering the custom mode. Includes one or more of pressure coordinates, pressure values, and duration. Different from other interfaces, there are significant interface prompts. For example, there is a text prompt on the interface, and the current pressure touch custom mode is currently exited.
优选的,用户在当前界面用力按压屏幕时,则将本次按压屏幕的压力参数和先前已经保存的进入自定义模式的压力触控操作的压力参数进行比较,如果压力参数相同,则退出压力触控自定义模式,给出用户提示,并保存该压力参数。如果压力参数不同,则不退出压力触控自定义模式,给出用户提示。Preferably, when the user presses the screen firmly on the current interface, the pressure parameter of the current pressing screen is compared with the pressure parameter of the pressure touch operation that has been saved before entering the custom mode. If the pressure parameters are the same, the pressure touch is exited. Control the custom mode, give the user a prompt, and save the pressure parameter. If the pressure parameters are different, the pressure touch custom mode is not exited, and a user prompt is given.
其中,压力参数包括压力坐标、压力数值、持续时间中的一个或多个。并且包括压力触控的方式,包括点按、长按、滑动等操作模式。Wherein, the pressure parameter includes one or more of pressure coordinates, pressure values, and duration. And includes the way of pressure touch, including tap, long press, slide and other modes of operation.
步骤4,将当前界面的压力参数和所对应的操作指令保存到一个文件中,存储操作指令与压力参数之间的对应关系,其如表1所示。Step 4: Save the pressure parameter of the current interface and the corresponding operation instruction to a file, and store the correspondence between the operation instruction and the pressure parameter, as shown in Table 1.
表1Table 1
Figure PCTCN2017102931-appb-000001
Figure PCTCN2017102931-appb-000001
Figure PCTCN2017102931-appb-000002
Figure PCTCN2017102931-appb-000002
实现的过程中,当用户重新进入该界面并使用压力屏触控操作时,终端根据该压力参数,查找并调用预先存储的与该压力参数相对应的操作指令。在移动终端获取其所受的压力参数后,根据该压力参数,查找与该压力参数相对应的操作指令,并调用所找到的操作指令。In the implementation process, when the user re-enters the interface and uses the pressure screen touch operation, the terminal searches for and calls the pre-stored operation instruction corresponding to the pressure parameter according to the pressure parameter. After the mobile terminal acquires the pressure parameter it receives, according to the pressure parameter, an operation instruction corresponding to the pressure parameter is searched, and the found operation instruction is called.
优选的,当用户需要使用按压操作时,即可自动执行保存的操作步骤,实现相应的功能,不需要再重复输入繁杂的操作,大大节省了用户的操作时间。获取用户输入的操作指令或者可执行脚本文件中记录的各个操作步骤的输入信息自动进行操作。Preferably, when the user needs to use the pressing operation, the saved operation steps can be automatically executed to implement the corresponding functions, and the complicated operation is not required to be repeatedly input, thereby greatly saving the operation time of the user. The operation information input by the user or the input information of each operation step recorded in the executable script file is automatically operated.
下面结合示例性实施场景对该实施例进行说明。The embodiment will be described below in conjunction with an exemplary implementation scenario.
本实施例提供了一种移动终端使用压力触控完成拍照连拍的功能,拍照时在取景界面点击要聚焦的目标,并按压实现相机连拍,连拍速度与按压压力成正比。为了在连拍中重点拍照某个位置并实行连拍效果,根据压力大小不同完成不同速度的连拍,方便用户操作。该过程如图5所示,所述方法包括:The embodiment provides a function of the mobile terminal to complete the continuous shooting by using the pressure touch. When the camera is photographed, the target to be focused is clicked on the framing interface, and the camera is continuously pressed to achieve continuous shooting, and the continuous shooting speed is proportional to the pressing pressure. In order to focus on a certain position in continuous shooting and implement the continuous shooting effect, continuous shooting of different speeds is completed according to different pressures, which is convenient for the user to operate. The process is illustrated in Figure 5, the method comprising:
S501、用户启动拍照取景界面,通过按压屏幕进入压力触控自定义模式,自定义模式下,手机监控用户输入的一系列操作和压力触控的压力参数并记录保存。S501: The user activates the camera framing interface, and presses the screen to enter the pressure touch custom mode. In the custom mode, the mobile phone monitors a series of operation and pressure touch pressure parameters input by the user and records and saves.
用户在拍照取景界面进行压力触控操作进入压力触控自定义模式,手机保存屏幕当前所受的压力参数。该压力参数是与移动终端压力屏感知到的压力相关的参数。假设用户长按屏幕的力度数值为2牛顿(即2N),其在该压力数值2N上的持续受力时间为2秒(即2s),也就是说移动终端在1秒的持续时间上受力为2牛顿。当然,在压力数值的示例性计算上可以取近似值,例如1.6N≈2.0N,1.4N≈1.0N。也可以根据用户或系统的需求来设置数值的不同有效取值算法。The user performs a pressure touch operation on the camera view interface to enter the pressure touch custom mode, and the mobile phone saves the current pressure parameters of the screen. The pressure parameter is a parameter related to the pressure sensed by the pressure screen of the mobile terminal. Assume that the user presses the screen with a velocity value of 2 Newtons (ie 2N), and the duration of the force on the pressure value 2N is 2 seconds (ie 2 seconds), which means that the mobile terminal is stressed for 1 second duration. It is 2 Newtons. Of course, an approximate value can be taken for an exemplary calculation of the pressure value, such as 1.6 N ≈ 2.0 N, 1.4 N ≈ 1.0 N. It is also possible to set different effective value algorithms for values according to the needs of the user or the system.
S502、终端保存用户完成一个功能所输入的一系列操作;用户拍照时在取景界面点击要聚焦的目标,并启动相机连拍,设定连拍次数为10次并点击拍照按钮进行拍照,当前界面提供保存按钮,用户点击保存按钮完成操作步骤的保存。S502: The terminal saves a series of operations input by the user to complete a function; when the user takes a photo, clicks the target to be focused on the framing interface, and starts the camera continuous shooting, sets the number of consecutive shots to 10 times and clicks the camera button to take a photo, the current interface A save button is provided, and the user clicks the save button to complete the save of the operation steps.
程序后台将该操作的对应的指令保存。所输入的操作是若干步骤的集合,按获取顺序依次将所述第一步操作设定连拍次数10次的输入指令、第二步点击拍照按钮操作的输入指令形成一个可执行脚本文件。The program background saves the corresponding instruction of the operation. The input operation is a set of several steps, and the input command of setting the number of consecutive shots 10 times in the first step operation and the input command of clicking the photographing button operation in the second step are sequentially formed into an executable script file in the order of acquisition.
S503、退出压力触控自定义模式。通过按压屏幕退出压力触控自定义模式;按压屏幕的压力参数和进入触控模式的压力参数需要保持一致。S503. Exit the pressure touch custom mode. Press the screen to exit the pressure touch custom mode; the pressure parameters of the press screen and the pressure parameters entering the touch mode need to be consistent.
S504、将当前界面的压力参数和所对应的操作指令保存到一个文件中。存储操作指令与压力参数之间的对应关系可以如表2所示。S504: Save the pressure parameter of the current interface and the corresponding operation instruction to a file. The correspondence between the storage operation command and the pressure parameter can be as shown in Table 2.
表2Table 2
Figure PCTCN2017102931-appb-000003
Figure PCTCN2017102931-appb-000003
Figure PCTCN2017102931-appb-000004
Figure PCTCN2017102931-appb-000004
请参见表2,假设用户一共存储了2次操作,操作序列1表示,移动终端在2s的持续时间上持续受力为2N,即在2牛顿上的持续时间为2秒。移动终端根据该压力参数——压力数值2N和持续时间2S,在对应关系中查找预先存储的与该压力参数相对应的操作指令,其对应的操作指令为自动设置连拍次数为10次并完成拍照;操作序列2表示,移动终端在2s的持续时间上持续受力为4N,移动终端根据该压力参数——压力数值4N和持续时间2s,在对应关系中查找预先存储的与该压力参数相对应的操作指令,其对应的操作指令为自动设置连拍次数为20次并完成拍照。Referring to Table 2, it is assumed that the user has stored a total of 2 operations. The operation sequence 1 indicates that the mobile terminal continues to receive 2N for 2 s duration, that is, the duration on 2 Newtons is 2 seconds. The mobile terminal searches for a pre-stored operation instruction corresponding to the pressure parameter in the corresponding relationship according to the pressure parameter, the pressure value 2N and the duration 2S, and the corresponding operation instruction is automatically setting the continuous shooting number to 10 times and completing. Taking a picture; operation sequence 2 indicates that the mobile terminal continues to receive a force of 4N for a duration of 2 s, and the mobile terminal searches for a pre-stored parameter corresponding to the pressure parameter according to the pressure parameter - the pressure value 4N and the duration 2 s. Corresponding operation instruction, the corresponding operation instruction is to automatically set the number of consecutive shots to 20 times and complete the photographing.
S505、当用户重新进入拍照界面时,使用压力屏触控操作时,终端根据该压力参数,查找并调用预先存储的与该压力参数相对应的操作指令。S505. When the user re-enters the photographing interface, when using the pressure screen touch operation, the terminal searches for and calls the pre-stored operation instruction corresponding to the pressure parameter according to the pressure parameter.
用户在拍照取景界面进行压力触控操作,用户长按屏幕的力度数值为2牛顿(即2N),其在该压力数值2N上的持续受力时间为2秒,移动终端自动完成连拍10次的操作。The user performs a pressure touch operation on the photographing and framing interface, and the user presses the screen with a force value of 2 Newtons (ie, 2N), and the continuous force time on the pressure value 2N is 2 seconds, and the mobile terminal automatically completes the continuous shooting 10 times. Operation.
本实施例提供了一种手指有水或者带手套等不方便操作屏幕时,根据手指压力完成操作的方法,使用户可以在非正常环境下也可以正常使用手机完成简单的操作,大大提高了用户体验,使手机变得更智能化。The embodiment provides a method for completing the operation according to the finger pressure when the finger has water or gloves, and the user can complete the operation according to the finger pressure, so that the user can use the mobile phone to perform a simple operation under the abnormal environment, thereby greatly improving the user. Experience and make your phone smarter.
本公开实施例还提供了一种移动终端使用压力触控完成拍照连拍的功能,与上述过程相似,包括:The embodiment of the present disclosure further provides a function for the mobile terminal to complete the photographing continuous shooting by using the pressure touch, which is similar to the above process, and includes:
1、用户启动拍照取景界面,通过特点的触摸操作(例如长按屏幕5S)或者界面提供快捷方式(拍照取景界面提供进入自定义触控的按钮菜单选项)等进入压力触控自定义模式,自定义模式下,手机监控用户输入的一系列操作和压力触控的压力参数并记录保存。1. The user initiates the camera viewfinder interface, and enters the pressure touch custom mode by means of a characteristic touch operation (for example, long press of the screen 5S) or an interface providing a shortcut (the camera view interface provides a button menu option for entering a custom touch). In the definition mode, the mobile phone monitors a series of operation and pressure touch pressure parameters input by the user and records and saves them.
2、终端保存用户完成一个功能所输入的一系列操作;用户拍照时在取景界面点击要聚焦的目标,并启动相机连拍,设定连拍次数为10次并点击拍照按钮进行拍照,当前界面提供保存按钮,用户点击保存按钮完成操作步骤的保存。2. The terminal saves a series of operations entered by the user to complete a function; when the user takes a photo, clicks on the target to be focused on the framing interface, and starts the camera continuous shooting, sets the number of consecutive shots to 10 times and clicks the camera button to take a photo, the current interface A save button is provided, and the user clicks the save button to complete the save of the operation steps.
3、用户在拍照取景界面进行压力触控操作,手机保存屏幕当前所受的压力参数。该压力参数是与移动终端压力屏感知到的压力相关的参数。假设用户长按屏幕的力度数值为2牛顿(即2N),其在该压力数值2N上的持续受力时间为2秒(即2s),也就是说移动终端在1秒的持续时间上受力为2牛顿。当然,在压力数值的示例性计算上可以取近似值,例如1.6N≈2.0N,1.4N≈1.0N。也可以根据用户或系统的需求来设置数值的不同有效取值算法。3. The user performs a pressure touch operation on the photo view interface, and the mobile phone saves the current pressure parameters of the screen. The pressure parameter is a parameter related to the pressure sensed by the pressure screen of the mobile terminal. Assume that the user presses the screen with a velocity value of 2 Newtons (ie 2N), and the duration of the force on the pressure value 2N is 2 seconds (ie 2 seconds), which means that the mobile terminal is stressed for 1 second duration. It is 2 Newtons. Of course, an approximate value can be taken for an exemplary calculation of the pressure value, such as 1.6 N ≈ 2.0 N, 1.4 N ≈ 1.0 N. It is also possible to set different effective value algorithms for values according to the needs of the user or the system.
4、将当前界面的压力参数和所对应的操作指令保存到一个文件中,存储操作指令与压力参数之间的对应关系,退出压力触控自定义模式。5、当用户重新进入拍照界面时,使用压力屏触控操作时,终端根据该压力参数,查找并调用预先存储的与该压力参数相对应的操作指令。4. Save the pressure parameter of the current interface and the corresponding operation instruction to a file, store the correspondence between the operation instruction and the pressure parameter, and exit the pressure touch customization mode. 5. When the user re-enters the photographing interface, when using the pressure screen touch operation, the terminal searches for and calls the pre-stored operation instruction corresponding to the pressure parameter according to the pressure parameter.
尽管为示例目的,已经公开了本公开的优选实施例,本领域的技术人员将意识到各种 改进、增加和取代也是可能的,因此,本公开的范围应当不限于上述实施例。Although preferred embodiments of the present disclosure have been disclosed for illustrative purposes, those skilled in the art will recognize various Improvements, additions, and substitutions are also possible, and thus the scope of the present disclosure should not be limited to the embodiments described above.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, portions of the technical solutions of the present disclosure that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (eg, ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present disclosure.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述实施例记载的方法步骤。可选地,本实施例中的示例性示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc. Optionally, in this embodiment, the processor executes the method steps described in the foregoing embodiments according to the stored program code in the storage medium. For example, the exemplary embodiments in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again. It will be apparent to those skilled in the art that the various modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
工业实用性Industrial applicability
本公开涉及的控制终端的方法、装置及移动终端,该方法无论用户手指是否处于操作不灵敏状态,都可以通过压力方式快捷的控制终端的操作,用户体验较高。 The disclosure relates to a method, a device and a mobile terminal for controlling a terminal. The method can control the operation of the terminal quickly and easily through a pressure mode regardless of whether the user's finger is in an insensitive state, and the user experience is high.

Claims (11)

  1. 一种控制终端的方法,其中,包括:A method of controlling a terminal, comprising:
    在屏幕接收到的压力值达到预设压力值的情况下,获取压力参数,其中,所述压力参数至少包括:压力值、压力值的持续时间、压力作用位置、压力作用方式;Obtaining a pressure parameter when the pressure value received by the screen reaches a preset pressure value, wherein the pressure parameter includes at least: a pressure value, a duration of the pressure value, a pressure action position, and a pressure action mode;
    根据预设压力操作数据库中压力参数与预定操作的对应关系确定所述压力参数对应的预定操作,并执行所述预定操作。Determining a predetermined operation corresponding to the pressure parameter according to a correspondence between a pressure parameter in the database and a predetermined operation in a preset pressure operation, and performing the predetermined operation.
  2. 如权利要求1所述的方法,其中,获取压力参数之前,还包括:The method of claim 1 wherein before the obtaining the pressure parameter, the method further comprises:
    检测屏幕接收到的电流值是否达到预设电流值;Detecting whether the current value received by the screen reaches a preset current value;
    在所述电流值未达到所述预设电流值的情况下,通过压力传感器接收来自屏幕的压力值。In the case where the current value does not reach the preset current value, the pressure value from the screen is received by the pressure sensor.
  3. 如权利要求1所述的方法,其中,根据预设压力操作数据库中压力参数与预定操作的对应关系确定所述压力参数对应的预定操作,包括:The method according to claim 1, wherein the predetermined operation corresponding to the pressure parameter is determined according to a correspondence between a pressure parameter in the database and a predetermined operation in the preset pressure operation, comprising:
    确定所述压力值所处的预设压力范围,以根据确定的预设压力范围确定查找所述预设压力操作数据库所使用的基准压力值;Determining a preset pressure range at which the pressure value is located to determine a reference pressure value used to search the preset pressure operation database according to the determined preset pressure range;
    确定所述压力作用位置所处的位置区域,以根据所述位置区域确定查找所述预设压力操作数据库所使用的基准位置坐标;Determining a location area where the pressure action position is located to determine a reference position coordinate used to search the preset pressure operation database according to the location area;
    确定所述压力值的持续时间所处的预设时间范围,以根据确定的预设时间范围确定查找所述预设压力操作数据库所使用的基准时间值;Determining a preset time range in which the duration of the pressure value is located to determine a reference time value used to search the preset pressure operation database according to the determined preset time range;
    根据所述基准压力值、所述基准位置坐标、所述基准时间值和所述压力作用方式共同在所述预设压力操作数据库的所有预定操作中查找所述压力参数对应的预定操作。And searching for a predetermined operation corresponding to the pressure parameter in all predetermined operations of the preset pressure operation database according to the reference pressure value, the reference position coordinate, the reference time value, and the pressure action mode.
  4. 如权利要求1所述的方法,其中,所述预设压力操作数据库按照如下方式设置:The method of claim 1 wherein said preset pressure operation database is set as follows:
    接收用户的设置的多个压力参数和每个压力参数所对应的预定操作;Receiving a plurality of pressure parameters of the user's settings and predetermined operations corresponding to each of the pressure parameters;
    为每个压力参数及其所对应的预定操作生成脚本文件,并将每个脚本文件存储在所述预设压力操作数据库中。A script file is generated for each pressure parameter and its corresponding predetermined operation, and each script file is stored in the preset pressure operation database.
  5. 如权利要求1至4中任一项所述的方法,其中,所述预定操作至少包括以下之一:查看信息、拨打电话、打开预定应用。The method of any one of claims 1 to 4, wherein the predetermined operation comprises at least one of: viewing information, making a call, opening a predetermined application.
  6. 一种控制终端的装置,其中,包括:A device for controlling a terminal, comprising:
    获取模块,设置为在屏幕接收到的压力值达到预设压力值的情况下,获取压力参数,其中,所述压力参数至少包括:压力值、压力值的持续时间、压力作用位置、压力作用方式;Obtaining a module, configured to obtain a pressure parameter when the pressure value received by the screen reaches a preset pressure value, wherein the pressure parameter includes at least: a pressure value, a duration of the pressure value, a pressure action position, and a pressure action mode ;
    执行模块,设置为根据预设压力操作数据库中压力参数与预定操作的对应关系确定所述压力参数对应的预定操作,并执行所述预定操作。The execution module is configured to determine a predetermined operation corresponding to the pressure parameter according to a correspondence between a pressure parameter in the database and a predetermined operation in the preset pressure operation, and execute the predetermined operation.
  7. 如权利要求6所述的装置,其中,还包括:The apparatus of claim 6 further comprising:
    检测模块,设置为检测屏幕接收到的电流值是否达到预设电流值;a detecting module configured to detect whether a current value received by the screen reaches a preset current value;
    接收模块,设置为在所述电流值未达到所述预设电流值的情况下,通过压力传感器接 收来自屏幕的压力值。a receiving module configured to be connected by a pressure sensor if the current value does not reach the preset current value Receive pressure values from the screen.
  8. 如权利要求6所述的装置,其中,所述执行模块包括:The apparatus of claim 6 wherein said execution module comprises:
    确定单元,设置为确定所述压力值所处的预设压力范围,以根据确定的预设压力范围确定查找所述预设压力操作数据库所使用的基准压力值;确定所述压力作用位置所处的位置区域,以根据所述位置区域确定查找所述预设压力操作数据库所使用的基准位置坐标;确定所述压力值的持续时间所处的预设时间范围,以根据确定的预设时间范围确定查找所述预设压力操作数据库所使用的基准时间值;a determining unit, configured to determine a preset pressure range in which the pressure value is located, to determine a reference pressure value used to search the preset pressure operation database according to the determined preset pressure range; and determine where the pressure acting position is located a location area for determining a reference position coordinate used to find the preset pressure operation database according to the location area; determining a preset time range in which the duration of the pressure value is located, according to the determined preset time range Determining a reference time value used to find the preset pressure operation database;
    查找单元,设置为根据所述基准压力值、所述基准位置坐标、所述基准时间值和所述压力作用方式共同在所述预设压力操作数据库的所有预定操作中查找所述压力参数对应的预定操作。a searching unit configured to search for the pressure parameter correspondingly in all predetermined operations of the preset pressure operation database according to the reference pressure value, the reference position coordinate, the reference time value, and the pressure action mode Scheduled operation.
  9. 如权利要求6所述的装置,其中,还包括:The apparatus of claim 6 further comprising:
    设置模块,设置为设置所述预设压力操作数据库,其中,设置方法如下:Setting a module, set to set the preset pressure operation database, wherein the setting method is as follows:
    接收用户的设置的多个压力参数和每个压力参数所对应的预定操作;为每个压力参数及其所对应的预定操作生成脚本文件,并将每个脚本文件存储在所述预设压力操作数据库中。Receiving a plurality of pressure parameters set by the user and a predetermined operation corresponding to each pressure parameter; generating a script file for each pressure parameter and its corresponding predetermined operation, and storing each script file in the preset pressure operation In the database.
  10. 一种移动终端,其中,包括:权利要求6至9中任一项所述的控制终端的装置。A mobile terminal, comprising: the apparatus for controlling a terminal according to any one of claims 6 to 9.
  11. 一种存储介质,设置为存储程序代码,所述程序代码用于执行权利要求1至5中任一项所述方法。 A storage medium arranged to store program code for performing the method of any one of claims 1 to 5.
PCT/CN2017/102931 2016-12-05 2017-09-22 Terminal control method, apparatus and mobile terminal WO2018103413A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611101703.9A CN108153453A (en) 2016-12-05 2016-12-05 A kind of method, device and mobile terminal of control terminal
CN201611101703.9 2016-12-05

Publications (1)

Publication Number Publication Date
WO2018103413A1 true WO2018103413A1 (en) 2018-06-14

Family

ID=62470685

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/102931 WO2018103413A1 (en) 2016-12-05 2017-09-22 Terminal control method, apparatus and mobile terminal

Country Status (2)

Country Link
CN (1) CN108153453A (en)
WO (1) WO2018103413A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522608B (en) * 2019-02-03 2023-09-22 北京数聚鑫云信息技术有限公司 Method and device for improving execution rate of analog operation
CN112099666B (en) * 2020-09-10 2024-03-29 深圳市科航科技发展有限公司 Touch control method, system, terminal and storage medium applied to capacitive screen
CN113064518A (en) * 2021-03-30 2021-07-02 武汉飞恩微电子有限公司 Control method, device and equipment based on pressure sensor and storage medium
CN113282339A (en) * 2021-04-30 2021-08-20 青岛海尔科技有限公司 Control instruction generation method and device, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063164A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Method and device for screen control
CN204695285U (en) * 2015-06-02 2015-10-07 南昌欧菲光科技有限公司 Display device and touch-screen thereof
CN105159556A (en) * 2015-08-27 2015-12-16 广东欧珀移动通信有限公司 Interface operation method and electronic terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063164A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Method and device for screen control
CN204695285U (en) * 2015-06-02 2015-10-07 南昌欧菲光科技有限公司 Display device and touch-screen thereof
CN105159556A (en) * 2015-08-27 2015-12-16 广东欧珀移动通信有限公司 Interface operation method and electronic terminal

Also Published As

Publication number Publication date
CN108153453A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
WO2018103413A1 (en) Terminal control method, apparatus and mobile terminal
US9696767B2 (en) Command recognition method including determining a hold gesture and electronic device using the method
WO2016045579A1 (en) Application interaction control method and apparatus, and terminal
US20150007069A1 (en) Electronic device capable of reconfiguring displayed icons and method thereof
CN104205016B (en) A kind of photographic method and mobile terminal
US20190018588A1 (en) Visually Placing Virtual Control Buttons on a Computing Device Based on Grip Profile
WO2017161634A1 (en) Method implementing shortcut operation, and terminal equipment
US20130154947A1 (en) Determining a preferred screen orientation based on known hand positions
CN105425941A (en) Method and apparatus for preventing erroneous start-up of application in mobile terminal
WO2016169078A1 (en) Touch control realization method and device
CN105630308A (en) Shortcut menu popup method and system based on mobile terminal
CN105068745B (en) Pass through pressure touch and the mobile phone display screen curtain operating method and system of rotation detection
CN104793886A (en) Mobile terminal and side recognition method used for mobile terminal
CN105306817B (en) A kind of control method taken pictures and mobile terminal
US9846529B2 (en) Method for processing information and electronic device
WO2015131590A1 (en) Method for controlling blank screen gesture processing and terminal
WO2016197638A2 (en) Method and device for implementing screenshot, and terminal
US20220143493A1 (en) Game control method based on a smart bracelet, smart bracelet and storage medium
CN104519261A (en) Information processing method and electronic device
KR20160101605A (en) Gesture input processing method and electronic device supporting the same
US20120268400A1 (en) Method and system for revising user input position
CN105824401A (en) Mobile terminal control method and mobile terminal thereof
US20150370473A1 (en) Using a symbol recognition engine
WO2016197714A1 (en) Method for automatically identifying operation mode, and terminal
TW201835746A (en) Electronic device with function selection module and function selection method and function selection system thereof

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: 17877978

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: 17877978

Country of ref document: EP

Kind code of ref document: A1