Sliding detection method and device and electronic equipment

Through the sliding detection method, users can perform complex functional control in electronic devices through sliding and pressing operations, solving the problems of easy failure of split volume keys and complex interaction requirements, improving the user experience.

CN119902733AActive Publication Date: 2025-04-29HONOR DEVICE CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202311375932.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2025-04-29
Estimated Expiration
2043-10-20

AI Technical Summary

Technical Problem

Split volume keys are prone to failure and cannot adapt to more complex interaction needs, affecting the user experience.

Method used

A sliding detection method is provided, and the electronic device is controlled to perform corresponding functions through the sliding, pressing and other operations performed by a user on the key. The method includes responsive to the user's operation, obtaining the force of the operation, and determining whether to execute the corresponding operation instructions according to the force.

Benefits of technology

Through the sliding detection method, users can control electronic devices through more complex interactive methods, avoiding the failure of split volume keys and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902733A_ABST
    Figure CN119902733A_ABST
Patent Text Reader

Abstract

The invention provides a sliding detection method and device and electronic equipment. The method comprises the following steps: in response to a first operation of a user on a key along a first direction, obtaining a first force of the first operation; determining whether to execute a first operation instruction corresponding to the first operation according to the first force; when it is determined that the first operation instruction is executed, in response to a second operation of the user on the key in a second direction, obtaining a second force of the second operation, the second direction being a direction opposite to the first direction; and determining whether to execute a second operation instruction corresponding to the second operation or not according to the second force. Therefore, according to the technical scheme, the electronic equipment can be controlled to execute corresponding functions through operations such as sliding and pressing performed on the keys by the user, and the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a sliding detection method, device and electronic device. Background Art

[0002] Electronic devices are usually provided with a volume button on the side. The current volume button is a split volume button, which is a physical button with a mechanical structure. Users usually press the split volume button to make the electronic device increase or decrease the volume.

[0003] However, when the user presses the button for a long time or frequently or is affected by other physical factors, the split volume button is prone to malfunction. For example, the button may become loose, lose sensitivity, or become unpressable. In addition, the mechanical structure of the split volume button only provides a simple pressing operation and cannot adapt to more complex interaction requirements. This affects the user experience. Summary of the invention

[0004] The embodiments of the present application provide a sliding detection method, device and electronic device, which can solve the problem that the split volume key is prone to malfunction and cannot adapt to more complex interaction requirements, thereby improving the user experience.

[0005] In a first aspect, an embodiment of the present application provides a sliding detection method, the method comprising: in response to a first operation performed by a user on a key along a first direction, obtaining a first force of the first operation; determining whether to execute a first operation instruction corresponding to the first operation based on the first force; in response to a second operation performed by the user on the key along a second direction, obtaining a second force of the second operation, the second direction being the opposite direction of the first direction, when it is determined that the first operation instruction is to be executed.

[0006] The sliding detection method shown in the embodiment of the present application can control the electronic device to perform corresponding functions through the user's sliding, pressing and other operations on the button, thereby improving the user's experience.

[0007] In one implementation, determining whether to execute a first operation instruction corresponding to a first operation according to a first force includes: if the first force is greater than or equal to a first detection threshold, executing the first operation instruction; if the first force is less than the first detection threshold, not executing the first operation instruction. With this implementation, the electronic device can determine that the first operation is a subjective operation of the user, and then make corresponding adjustments based on the operation, thereby avoiding user error operations and improving user experience.

[0008] In one implementation, whether to execute the second operation instruction corresponding to the second operation is determined based on the second force, including: when the second operation is the first sub-operation, if the second force is greater than or equal to the first detection threshold, the second operation instruction is executed, and the first sub-operation includes a sliding operation in the second direction without the user's finger leaving the button after the user performs the first operation; if the second force is less than the first detection threshold, the second operation instruction is not executed. With this implementation, the electronic device matches the user's operating habits in the use scenario where the user has a back-slide operation, determines the user's actual operation corresponding to the use intention, determines whether the user's current operation is the user's desired operation or the user's unconscious operating habit, avoids the user's misoperation, and improves the user experience.

[0009] In one implementation, determining whether to execute the second operation instruction corresponding to the second operation based on the second force includes: when the second operation is a second sub-operation, if the second force corresponding to the first pressing operation in the second sub-operation is greater than or equal to the second detection threshold, and the second force corresponding to the first sliding operation in the second sub-operation is greater than or equal to the first detection threshold, executing the second operation instruction; wherein the second sub-operation includes the user performing a first pressing operation on the key without releasing the finger from the key after performing the first operation, and performing a first sliding operation from the pressing position to the second direction without releasing the finger from the key after the first pressing operation. With this implementation, the electronic device can determine that the second sub-operation is a subjective operation of the user, and then make corresponding adjustments based on the operation to improve the user experience.

[0010] In one implementation, if the second force is less than the first detection threshold, after not executing the second operation instruction, it also includes: in response to the user's third operation on the key along the first direction, obtaining the third force of the third operation, the third operation is the sliding operation performed by the user without leaving the key after the first sub-operation; if the third force is greater than or equal to the first detection threshold, executing the third operation instruction corresponding to the third operation. With this implementation, the electronic device can identify the user's unconscious operation during the continuous operation of the user's finger sliding from the top of the volume key to the bottom of the volume key multiple times, avoiding the user's erroneous operation and improving the user experience.

[0011] In one implementation, after executing the second operation instruction, it also includes: in response to a fourth operation performed by the user on the key along the first direction, obtaining a fourth force of the fourth operation, wherein the fourth operation is a sliding operation performed by the user without removing the finger from the key after the user performs the second sub-operation; if the fourth force is greater than or equal to the first detection threshold, executing a fourth operation instruction corresponding to the fourth operation. With this implementation, the electronic device can identify the user's subjective operation and the user's unconscious operation during the continuous operation process in which the user's finger slides from the top of the volume key to the bottom of the volume key multiple times, judge the user's actual use intention, avoid the user's misoperation, and improve the user experience.

[0012] In one implementation, in response to a user's first operation on a key along a first direction, before obtaining a first force of the first operation, it also includes: determining whether at least one preset application is in the foreground or background running state; if any preset application is in the foreground or background running state, determining the function executed by the target operation instruction based on the target application, the target application is the preset application currently in the foreground or background running state, and the target operation instruction includes at least the first operation instruction and the second operation instruction. With this implementation, the electronic device can determine the different functions that the volume key needs to perform according to the application running in the foreground or background, so that the volume key can be applied to a variety of scenarios, improving the user experience.

[0013] In one implementation, determining the function to be executed by the target operation instruction based on the target application includes: when the target application is an audio application or a video application, determining that the first operation instruction executes the function of increasing the volume, and the second operation instruction executes the function of decreasing the volume; or determining that the first operation instruction executes the function of decreasing the volume, and the second operation instruction executes the function of increasing the volume. With this implementation, the electronic device can enable the volume key to execute the function of increasing or decreasing the volume when the audio or video application is running, while matching the user's operating habits and improving the user experience.

[0014] In one implementation, determining the function to be executed by the target operation instruction based on the target application includes: when the target application is a video application, determining that the first operation instruction executes the function of fast-forwarding the video, and the second operation instruction executes the function of rewinding the video; or determining that the first operation instruction executes the function of rewinding the video, and the second operation instruction executes the function of fast-forwarding the video. With this implementation, the electronic device can enable the volume key to execute the function of fast-forwarding or rewinding the video when the video application is running, while matching the user's operating habits and improving the user experience.

[0015] In one implementation, determining the function to be executed by the target operation instruction based on the target application includes: when the target application is a browser application, determining that the first operation instruction executes the function of scrolling up and flipping through the screen, and the second operation instruction executes the function of scrolling down and flipping through the screen; or determining that the first operation instruction executes the function of scrolling down and flipping through the screen, and the second operation instruction executes the function of scrolling up and flipping through the screen. With this implementation, the electronic device can enable the volume key to execute the function of scrolling up and flipping through the screen or scrolling down and flipping through the screen when the browser application is running, while matching the user's operating habits and improving the user experience.

[0016] In one implementation, determining the function executed by the target operation instruction based on the target application includes: when the target application is a camera application, determining that the first operation instruction executes the function of increasing the zoom factor, and the second operation instruction executes the function of decreasing the zoom factor; or determining that the first operation instruction executes the function of decreasing the zoom factor, and the second operation instruction executes the function of increasing the zoom factor. With this implementation, the electronic device can make the volume key execute the function of increasing or decreasing the zoom factor when the camera application is running, while matching the user's operating habits and improving the user experience.

[0017] In one implementation, the key is a push-touch volume key, and the structure of the volume key includes at least one of a cantilever beam structure, a built-in sensor structure, and an ultrasonic structure. With this implementation, the embodiment of the present application can be applied to push-touch volume keys of various structures.

[0018] In one implementation, in response to a user's first operation on a key along a first direction, before obtaining the first force of the first operation, it also includes: obtaining the user's touch duration on the key, and if the touch duration is greater than or equal to the first touch threshold, controlling the key to enter a wake-up state; or obtaining the number of taps on the key by the user, and if the number of taps is greater than or equal to the first number threshold, controlling the key to enter a wake-up state; or obtaining the user's touch position on the key, and if the touch position is a preset position, controlling the key to enter a wake-up state; or monitoring that a preset application is in the foreground or background running state, and controlling the key to enter a wake-up state. With this implementation, the electronic device can perform the above-mentioned sliding detection method after the key enters the wake-up state, which can avoid the user's accidental touch of the key.

[0019] In a second aspect, an embodiment of the present application provides a sliding detection device, which includes: a first acquisition module, the first acquisition module is used to obtain a first force of the first operation in response to a first operation performed by a user on a key along a first direction; a first execution module, the first execution module is used to determine whether to execute a first operation instruction corresponding to the first operation based on the first force; a second acquisition module, the second acquisition module is used to obtain a second force of the second operation in response to a second operation performed by the user on the key along a second direction when determining to execute the first operation instruction, the second direction being the opposite direction of the first direction; and a second execution module, the second execution module is used to determine whether to execute a second operation instruction corresponding to the second operation based on the second force.

[0020] The sliding detection device shown in the embodiment of the present application can control the electronic device to perform corresponding functions through operations such as sliding and pressing performed by the user on the button, thereby improving the user experience.

[0021] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method in the first aspect and any implementation method mentioned above.

[0022] In a fourth aspect, an embodiment of the present application provides a chip system, comprising: a memory and a processor; the memory stores program instructions, and when the program instructions are executed by the processor, the chip system executes the method in the first aspect and any implementation method mentioned above.

[0023] In a fifth aspect, an embodiment of the present application provides a computer storage medium, in which program instructions are stored in the computer-readable storage medium. When the program instructions are executed on a computer, the computer executes the method in the first aspect and any implementation method described above.

[0024] In a sixth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device executes the method in the first aspect and any implementation manner described above.

[0025] It can be understood that the electronic devices, computer-readable storage media and computer program products provided in the above-mentioned aspects are all applied to the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a schematic diagram of the structure of a split volume button;

[0027] Figure 2 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0028] Figure 3 is a schematic diagram of the software structure of the electronic device provided in the embodiment of the present application;

[0029] Figure 4 It is a schematic diagram of the structure of an integrated volume button;

[0030] Figure 5 This is a schematic diagram of the usage scenario of the integrated volume button;

[0031] Figure 6 This is a schematic diagram of the structure of another integrated volume button;

[0032] Figure 7 This is another schematic diagram of the use scenario of the integrated volume button;

[0033] Figure 8 is a schematic flow chart of a sliding detection method provided in an embodiment of the present application;

[0034] Fig. 9 It is a first operation schematic diagram provided in an embodiment of the present application;

[0035] Fig.10 This is a schematic diagram of an erroneous operation scenario provided in an embodiment of the present application;

[0036] Fig.11 is a schematic diagram of the first sub-operation provided in an embodiment of the present application;

[0037] Fig.12 is a schematic diagram of a second sub-operation provided in an embodiment of the present application;

[0038] Fig.13 is a schematic diagram of a second sub-operation provided by another embodiment of the present application;

[0039] Fig.14 This is a schematic diagram of a first scenario of the sliding detection method provided in an embodiment of the present application;

[0040] Fig.15 is a schematic diagram of a second scenario of the sliding detection method provided in an embodiment of the present application;

[0041] Fig.16 This is the first schematic diagram of the time-force relationship provided in the embodiment of the present application;

[0042] Fig.17 is a schematic diagram of a third scenario of the sliding detection method provided in an embodiment of the present application;

[0043] Fig.18 is a second schematic diagram of the time-force relationship provided in an embodiment of the present application;

[0044] Fig.19is a schematic diagram of a fourth scenario of the sliding detection method provided in an embodiment of the present application;

[0045] Fig. 20 is a third schematic diagram of the time-force relationship provided in the embodiment of the present application;

[0046] Fig.21 This is a schematic diagram of a fifth scenario of the sliding detection method provided in an embodiment of the present application;

[0047] Fig. 22 is the fourth schematic diagram of the time-force relationship provided in the embodiment of the present application;

[0048] Fig.23 This is a sixth scenario schematic diagram of the sliding detection method provided in an embodiment of the present application;

[0049] Fig.24 is the fifth schematic diagram of the time-force relationship provided in the embodiment of the present application;

[0050] Fig.25 It is a schematic diagram of a sliding detection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The technical solution of the embodiment of the present application will be clearly described below in conjunction with the drawings in the embodiment of the present application.

[0052] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.

[0053] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0054] The following first describes the application scenarios of the embodiments of the present application.

[0055] Electronic devices are usually provided with volume buttons on the side. Compared with the virtual volume buttons on the touch screen, the side volume buttons are more in line with the user's operating habits.

[0056] Figure 1 It is a structural diagram of a split volume button.

[0057] like Figure 1 As shown, the volume key may be a split volume key 101. The split volume key 101 is a physical key with a mechanical structure, and generally includes a volume up key 1011 and a volume down key 1012. When the user presses the volume up key 1011, the media volume of the electronic device can be increased, and when the user presses the volume down key, the media volume of the electronic device can be decreased. By using the split volume key 101, the user can conveniently adjust the media volume of the electronic device without having to adjust the volume by touching the screen or other operations.

[0058] The split volume key 101 is usually a raised key, which can have different shapes and materials to provide users with a comfortable touch and easy-to-press operation experience. The mechanical structure inside the key can make the user feel a certain resistance when the user presses the split volume key 101. Based on the rebound of the resistance, the user can determine that the pressing operation has been completed.

[0059] However, since the split volume key 101 is a mechanical structure, it is prone to malfunction when it is pressed for a long time or frequently by the user or affected by other physical factors. For example, the key may become loose, lose sensitivity or become unable to be pressed. In addition, the mechanical structure of the split volume key 101 can only provide a simple pressing operation and cannot adapt to more complex interaction requirements. For example, the split volume key 101 cannot achieve interaction requirements such as fast forward and fast rewind through operations such as sliding and long pressing. This affects the user experience.

[0060] In order to solve the problem that the split volume button is prone to malfunction and cannot adapt to more complex interaction requirements, an embodiment of the present application provides a sliding detection method.

[0061] The sliding detection method provided in the embodiment of the present application can be applied to electronic devices. Among them, the electronic devices include but are not limited to mobile phones, tablet computers, personal computers, workstation devices, large-screen devices (such as smart screens, smart TVs, etc.), wearable devices (such as smart bracelets, smart watches), handheld game consoles, home game consoles, virtual reality devices, augmented reality devices, mixed reality devices, etc., in-vehicle smart terminals, etc.

[0062] Figure 2 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application.

[0063] like Figure 2As shown, the electronic device 100 may include a processor 110, a memory 120, an audio module 130, a button 140, a motor 150, a camera 160, a display screen 170, a sensor module 180, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a fingerprint sensor 180B, a touch sensor 180C, etc.

[0064] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0065] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0066] The memory 120 can be used to store computer executable program codes, and the executable program codes include instructions. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the memory 120, and / or instructions stored in a memory provided in the processor.

[0067] The audio module 130 is used to play audio. In one implementation, the audio module 130 can increase or decrease the volume in response to the user's operation on the button 140 .

[0068] The buttons 140 include a power button, a volume button, etc. The buttons 140 may be mechanical buttons or touch buttons, and the electronic device 100 may receive button inputs and generate signal inputs related to user settings and function control of the electronic device 100. In one implementation, the volume button is an integrated volume button.

[0069] The motor 150 can generate a vibration prompt. The motor 150 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, the touch operation of the user on different applications (such as camera applications, audio applications) can correspond to different vibration feedback effects. In one implementation, the motor 150 can generate vibration feedback in response to the user's operation on the button 140.

[0070] The camera 160 is used to capture still images or videos. In one implementation, the camera 160 can increase or decrease the zoom factor in response to the user's operation on the button 140.

[0071] The display screen 170 is used to display images, videos, etc. The display screen 170 includes a display panel.

[0072] The pressure sensor 180A may be disposed on the display screen 170 to detect changes in pressure applied by the user's finger or palm on the mobile phone screen, thereby realizing a special gesture recognition function. For example, multiple levels of operation, such as light touch, long press, etc., may be realized through touch responses of different pressure levels. The pressure sensor 180A may also be disposed inside the middle frame of the electronic device 100 to detect changes in pressure applied to the button 140.

[0073] The fingerprint sensor 180B is used to collect fingerprints. In some embodiments, the fingerprint sensor 180B can be disposed on the surface of the button 140 to activate the button 140.

[0074] The touch sensor 180C is also called a "touch control device". The touch sensor 180C can be arranged on the display screen 170, and the touch sensor 180C and the display screen 170 form a touch screen, also called a "touch control screen". The touch sensor 180C is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 170. In other embodiments, the touch sensor 180C can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 170. In other embodiments, the touch sensor 180C can also be arranged on the key 140 to detect the touch operation acting on the key 140.

[0075] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0076] Figure 3 It is a schematic diagram of the software structure of the electronic device provided in the embodiment of the present application.

[0077] like Figure 3 As shown, the layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.

[0078] The application layer can include a series of application packages.

[0079] like Figure 3 As shown, the application package may include applications such as battery management, camera, gallery, calendar, call, map, navigation, music, video, short message, game, etc. In one implementation, the user slides, presses, etc. on the button 140 to control the electronic device 100 to perform corresponding functions on the camera application, gallery application, music application, video application, etc.

[0080] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0081] like Figure 3 As shown, the application framework layer may include a window manager, an input manager, a sensor manager, a phone manager, a resource manager, a notification manager, and the like.

[0082] The input manager can be used to monitor the user's input events, such as click events and sliding events performed by the user's finger on the display screen 193 of the electronic device 100. By monitoring the input events, the electronic device 100 can determine whether the electronic device is being used. In one implementation, the input manager can monitor the user's input events on the key 140 to determine the corresponding function to be executed.

[0083] The sensor manager is used to monitor the data returned by various sensors in the electronic device, such as pressure sensor data, fingerprint sensor data, touch sensor data, etc. Using the data returned by various sensors, the electronic device 100 can determine whether there is a user operation on the key 140.

[0084] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0085] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0086] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0087] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0088] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0089] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0090] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0091] A 2D graphics engine is a drawing engine for 2D drawings.

[0092] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0093] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0094] The sliding detection method provided in the embodiment of the present application is performed by the electronic device 100 based on pressing a touch-sensitive button. The following description assumes that the pressed touch-sensitive button is an integrated volume button.

[0095] Figure 4 It is a structural diagram of an integrated volume button.

[0096] like Figure 4 As shown, the electronic device 100 can be provided with an integrated volume key 102 by making a groove on the outer surface of the middle frame 1.

[0097] Specifically, the electronic device 100 may be provided with a first groove 2 on the middle frame 1 , and a first notch 21 and a second notch 22 are provided on the contact surface between the middle frame 1 and the first groove 2 , and the first groove 2 is connected to the inside of the middle frame 1 through the first notch 21 and the second notch 22 .

[0098] The volume button 3 includes a first crossbeam 31, a first clamping post 32 and a second clamping post 33. The first clamping post 32 and the second clamping post 33 are symmetrically arranged on the radial center line of the first crossbeam 31. The first crossbeam 31 is clamped in the first groove 2, the first clamping post 32 extends into the middle frame 1 through the first notch 21, and the second clamping post 33 extends into the middle frame 1 through the second notch 22.

[0099] The interior of the middle frame 1 includes a first connecting column 11, a second connecting column 12 and a first connecting beam 13. One end of the first connecting column 11 and one end of the second connecting column 12 are arranged in parallel on the inner surface of the middle frame 1, and the other end of the first connecting column 11 and the other end of the second connecting column 12 extend into the interior of the middle frame 1. The other end of the first connecting column 11 and the other end of the second connecting column 12 are respectively connected to the two ends of the first connecting beam 13. The first connecting column 11, the second connecting column 12 and the first connecting beam 13 can form an integrated bracket structure.

[0100] A first steel sheet 111 may be disposed between the first connecting column 11 and the second connecting column 12. One end of the first steel sheet 111 may be fixed to the first connecting column 11, and the other end may be fixed to the second connecting column 12.

[0101] The first clamping column 32 and the second clamping column 33 may be embedded in the first steel sheet 111 .

[0102] A plurality of first sensors 01 may be disposed on the first steel sheet 111 .

[0103] In this way, the above structure can form a cantilever beam structure between the volume key 3 and the middle frame 1. When the user slides or presses the volume key 3, the sensor in the cantilever beam structure can sense the pressure applied by the user, and determine the user's sliding (or pressing) position through the pressure applied by the user, and the electronic device 100 can adjust the volume based on the pressure and sliding (or pressing) position.

[0104] Figure 5 This is a schematic diagram of the usage scenario of the integrated volume button.

[0105] like Figure 5 As shown, when the user's finger slides in the A area of ​​the first beam 31, the finger applies pressure F to the first beam 31, the first beam 31 is deformed and transmits the pressure F to the first clamping column 32, the first clamping column 32 transmits the pressure F to the first steel sheet 111, so that the first steel sheet 111 is deformed. At this time, the first sensor 01 on the side of the first steel sheet 111 close to the first connecting column 11 can measure the first pressure F1 and the first deformation.

[0106] Correspondingly, although the B area of ​​the first beam 31 does not receive the sliding operation of the user, the first beam 31 is an integrated structure, and the first steel sheet 111 is an integrated structure, so the other end of the first steel sheet 111 will also be driven to deform. At this time, the first sensor 01 on the side of the first steel sheet 111 close to the second connecting column 12 can measure the second pressure F2 and the second deformation. Among them, the value of the first pressure F1 is greater than the value of the second pressure F2, and the value of the first deformation is greater than the value of the second deformation. Based on the value of the first pressure F1, the value of the first deformation, and the value of the second pressure F2 and the value of the second deformation, the current sliding force and sliding position of the user can be determined.

[0107] In this way, when the user slides at different positions of the first beam 31, the different values ​​detected by the first sensor 01 at different positions can determine the user's different sliding (or pressing) forces and different sliding (or pressing) positions, and then determine the adjustment operation that the user needs to perform.

[0108] Figure 6 This is a schematic diagram of the structure of another integrated volume button.

[0109] like Figure 6 As shown, the electronic device 100 can be provided with an integrated volume key 102 by not making a groove on the outer surface of the middle frame 10 .

[0110] Specifically, the electronic device 100 can be provided with a second groove 20 inside the middle frame 10, so that the thickness of the C region of the middle frame 10 is less than the thickness of other regions of the middle frame 10. A plurality of third sensors 30 are provided on the inner surface of the C region. The C region of the middle frame 10 and the plurality of third sensors 30 can be combined to form an integrated volume key 102.

[0111] In this way, when the user slides or presses on area C, area C is more likely to deform than other areas of the middle frame 10. Multiple third sensors 30 can sense the stress and strain applied by the user, and the electronic device 100 can adjust the volume based on the changes in stress and strain.

[0112] Figure 7 This is a schematic diagram of another usage scenario of the integrated volume button.

[0113] like Figure 7 As shown, when the user's finger slides along the M direction in the C area of ​​the middle frame 10, the C1 area of ​​the middle frame 10 is deformed first, and the third sensor 30 corresponding to the C1 area can measure the first stress and the first strain of the finger in this area. As the finger continues to slide, as the sliding position of the finger changes, the third sensor 30 corresponding to the sliding position can measure the numerical changes of stress and strain. Among them, according to the user's usage habits, the user's sliding force is usually gradually reduced during the sliding process along the M direction. For example, when the user slides to the C2 area of ​​the middle frame 10, the force usually becomes smaller due to the change in the angle of the finger relative to the middle frame 10. Therefore, the third sensor 30 corresponding to the C2 area measures that the second stress and the second strain of the finger in this area are smaller than the first stress and the first strain.

[0114] In this way, when the user's finger slides from the C1 area to the C2 area, the plurality of third sensors 30 can detect the change of the sliding force from large to small, and the strain change at different positions, and the electronic device 100 can determine the user's need to adjust the volume when detecting these changes. For example, the user's finger sliding along the M direction in the C area can be used to turn down the volume.

[0115] It should be noted that the integrated volume key 102 includes but is not limited to the structure shown in the embodiment of the present application. For example, the integrated volume key 102 can also set its internal structure based on the ultrasonic principle. The present application does not repeat other structures of the integrated volume key 102. The technical solution shown in the embodiment of the present application can be applied to integrated volume keys 102 of various structures, and the embodiment of the present application does not limit this.

[0116] The integrated volume key 102 provided in the embodiment of the present application can avoid damage to the mechanical structure of the split key during use, and has a longer service life. In addition, the integrated volume key 102 also provides more interaction methods for the user.

[0117] Figure 8 It is a schematic flow chart of the sliding detection method provided in an embodiment of the present application.

[0118] like Figure 8 As shown, in one implementation, the method may include the following steps S101-S104.

[0119] Step S101, in response to a first operation performed by a user on a key along a first direction, obtaining a first force of the first operation.

[0120] In one implementation, the button is an integrated volume button 102, and the structure of the integrated volume button 102 includes at least one of the cantilever beam structure, multiple sensor structures, and ultrasonic structure in the aforementioned embodiments.

[0121] In one implementation, the electronic device 100 may control a key to enter a wake-up state and then execute step S101.

[0122] The integrated volume key 102 can be set to have two states: awake state and sleep state. For example, when the integrated volume key 102 is in the awake state, the user's operation on the integrated volume key 102 can be as follows: Figure 4 The first sensor 01 shown, or Figure 6 The third sensor 30 shown in the figure sends the detection to the processor for processing and analysis. When the integrated volume key 102 is in a dormant state, the user's operation on the integrated volume key 102 is performed by Figure 4 The first sensor 01 shown or Figure 6 After detection by the third sensor 30 shown, the processor may not respond to user operations.

[0123] Specifically, the user can customize the way in which the integrated volume key 102 enters the wake-up state, and the electronic device 100 controls the integrated volume key 102 to enter the wake-up state based on the corresponding way. For example, the user can press and hold the key for a certain period of time, and the electronic device 100 obtains the user's touch time on the integrated volume key 102. If the touch time is greater than or equal to the first touch threshold, the electronic device 100 controls the key to enter the wake-up state. For example, the first touch threshold is 2 seconds.

[0124] The user can also tap the integrated volume key 102 a certain number of times, and the electronic device 100 obtains the number of taps the user has made on the key. If the number of taps is greater than or equal to the first number threshold, the electronic device 100 controls the integrated volume key 102 to enter a wake-up state. For example, the first number threshold is 2 times.

[0125] The user can also touch a certain position of the button, and the electronic device 100 obtains the touch position of the user on the integrated volume key 102. If the touch position is a preset position, the electronic device 100 controls the integrated volume key 102 to enter a wake-up state. For example, the preset position is the center of the integrated volume key 102.

[0126] The electronic device 100 may also monitor the running status of a preset application. If the preset application is in the foreground running state or the background running state, the electronic device 100 controls the integrated volume key 102 to enter the wake-up state.

[0127] In order to remind the user that the integrated volume key 102 has entered the wake-up state, after the key is pressed to enter the wake-up state, the electronic device 100 can also vibrate to remind the user through the motor 191.

[0128] The user can also customize the way in which the integrated volume key 102 enters the sleep state, and the electronic device 100 controls the integrated volume key 102 to enter the sleep state based on the corresponding method. For example, after the electronic device 100 enters the sleep state, the integrated volume key 102 can also enter the sleep state, or if the user does not operate the integrated volume key 102 within a certain period of time, the integrated volume key 102 automatically enters the sleep state. The embodiment of the present application does not limit the specific way in which the integrated volume key 102 enters the wake-up state and the sleep state.

[0129] The sliding detection method in the embodiment of the present application can be implemented after the electronic device 100 controls the integrated volume key 102 to enter the awake state, or it can be implemented when the integrated volume key 102 is in a continuous running state. Among them, when the sliding detection method in the embodiment of the present application is implemented after the integrated volume key 102 enters the awake state, the user can avoid accidentally touching the integrated volume key 102. When the sliding detection method in the embodiment of the present application is implemented when the integrated volume key 102 is in a continuous running state, the user can quickly trigger the operation instruction at any time. The running state of the integrated volume key 102 in the present application can be set according to the user's habits, and the embodiment of the present application is not limited to this.

[0130] When the user performs a first operation on the integrated volume key 102 along a first direction, the electronic device 100 may Figure 4 The multiple first sensors 01 shown in FIG. 1 obtain the first force of the first operation, or based on the Figure 6The plurality of third sensors 30 shown acquire the first force of the first operation.

[0131] Fig. 9 This is a first operation schematic diagram provided in an embodiment of the present application.

[0132] like Fig. 9 As shown, taking the first direction being the Q1 direction from the top of the integrated volume key 102 to the bottom of the integrated volume key 102 as an example, the first operation may be a sliding operation along the Q1 direction.

[0133] It should be noted here that the first direction can be the direction from the top of the integrated volume key 102 to the bottom of the integrated volume key 102, or it can be the direction from the bottom of the integrated volume key 102 to the top of the integrated volume key 102. The following embodiments of the present application are all exemplified with the first direction being the direction from the top of the integrated volume key 102 to the bottom of the integrated volume key 102. In fact, the embodiments of the present application do not limit the first direction, and the embodiments can refer to each other. The first operation may include a sliding operation, a pressing operation, an operation of pressing first and then sliding, and an operation of sliding first and then pressing, etc. The embodiments of the present application do not limit the specific operation method of the first operation. The first force can be such as Figure 4 The pressure detected by the multiple first sensors 01 shown can also be as follows Figure 6 The stress detected by the multiple third sensors 30 shown in the figure does not limit the specific form of the first force in the embodiment of the present application.

[0134] Step S102: determining whether to execute a first operation instruction corresponding to a first operation according to the first force.

[0135] In one implementation, if the first force is greater than or equal to a first detection threshold, the first operation instruction is executed, and if the first force is less than the first detection threshold, the first operation instruction is not executed.

[0136] The first detection threshold may be pre-set by the electronic device 100 according to the structure of the configured integrated volume key 102. When the integrated volume keys 102 with different structures set the first detection threshold, the set values ​​may be the same or different. The embodiment of the present application only uses the integrated volume keys 102 with different structures having the same value as the first detection threshold for exemplary description.

[0137] The first detection threshold may be a sliding detection threshold. Taking the first force as 0.4N as an example, the first detection threshold may be set to 0.25N. In this way, the first force is greater than the first detection threshold, and the electronic device 100 may execute the first operation instruction corresponding to the first operation. The embodiment of the present application only exemplifies the first detection threshold, and the specific value of the first detection threshold may be set according to actual conditions.

[0138] It should be noted that the detection of the first operation by the electronic device 100 includes not only the detection of the operation force, but also the detection of the operation position. The electronic device 100 converts the operation force and operation position detected by the sensor into corresponding analog signals or digital signals, and processes these signals in the processor so that the processor executes the corresponding first operation instruction.

[0139] Specifically, the electronic device 100 can determine whether it is necessary to execute the first operation instruction corresponding to the operation based on the operation force, and the specific execution method of the first operation instruction needs to be determined based on the operation force and operation position of the first operation. For example, in a scenario where the user adjusts the volume, when the user slides down 8 mm from the top of the integrated volume key 102 with a force of 0.4N, the electronic device 100 can reduce the volume from the current volume value 20 to the volume value 10, and when the user slides down 4 mm from the top of the integrated volume key 102 with a force of 0.4N, the electronic device 100 can reduce the volume from the current volume value 20 to the volume value 15. Therefore, when the operation force is 0.4N, the electronic device 100 can determine that the first operation instruction needs to be executed, and the degree of adjustment of the volume value is further defined in the first operation instruction by the electronic device 100 based on the operation force and the operation position.

[0140] It should be noted here that users usually cannot operate with a constant force. When the user slides down 8 mm from the top of the integrated volume button 102 with a force of 0.4N, the user first increases the force from 0N to 0.4N, and then gradually decreases the force from 0.4N. The first force can actually be a force range rather than just a single force value. This application only uses the peak value within the force range for illustrative purposes.

[0141] When the first force is a pressure of 0.2N and the first detection threshold is 0.25N, the first force is less than the first detection threshold, and at this time, the electronic device 100 does not execute the first operation instruction. In this way, the user's accidental touch can be avoided.

[0142] In the embodiment of the present application, compared with the split-type button that can only control the electronic device to execute the corresponding function by pressing, the user can control the electronic device 100 to execute the first operation instruction based on the sliding operation on the integrated volume button 102. In this way, the sliding interaction method can enhance the user experience.

[0143] Specifically, the sliding interaction method provided by the integrated volume key 102 can solve some limitations of the split key. For example, in the volume adjustment scenario, the operation instruction triggered by each press of the split key may only increase the volume value by 2. This value is preset in the electronic device. If the volume value needs to be adjusted from 0 to 8, you need to press the split volume key at least 3 times. The first operation instruction generated by each sliding of the integrated volume key 102 is different. Depending on the sliding distance, the first operation instruction may increase the volume value by 2, 4, 6, or 8. In this way, user needs can be met with fewer operations. Therefore, the process of sliding interaction based on the integrated volume key 102 in the embodiment of the present application has better flexibility.

[0144] Step S103, when it is determined that the first operation instruction is to be executed, in response to a second operation performed by the user on the key along a second direction, a second force of the second operation is acquired, where the second direction is opposite to the first direction.

[0145] When the user performs a second operation on the integrated volume key 102 along the second direction, the electronic device 100 may Figure 4 The plurality of first sensors 01 shown in FIG. 1 obtain the second force of the second operation, or based on the Figure 6 The plurality of third sensors 30 shown acquire the second force of the second operation.

[0146] Step S104: determining whether to execute a second operation instruction corresponding to the second operation according to the second force.

[0147] Among them, the second operation performed by the user along the second direction on the integrated volume key 102 generally includes two situations. The first situation is the second operation performed based on the user's unconscious operating habits, and the second situation is the second operation performed based on the user's subjective intention.

[0148] Then, the second operation performed based on the user's unconscious operating habits is prone to erroneous operation.

[0149] Fig.10 It is a schematic diagram of an erroneous operation scenario provided in an embodiment of the present application.

[0150] like Fig.10 As shown, taking a photo scene as an example, the integrated volume key 102 can adjust the zoom factor in the photo page 103 of the photo application. For example, when the user's finger slides along the Q1 direction on the integrated volume key 102, the electronic device can enlarge the scene 104 in the lens.

[0151] It should be noted here that the function of adjusting the zoom ratio of the integrated volume key 102 in the camera application can be a user-defined setting, and the user can also customize the integrated volume key 102 to adjust the exposure. The embodiment of the present application does not limit the custom setting method of the integrated volume key 102 in the camera application.

[0152] In this scenario, if the user needs to adjust the zoom ratio from 1× to 3×, it may not be possible to achieve it with a single operation. Specifically, the user's finger slides once on the integrated volume key along the Q1 direction, and can only adjust the zoom ratio from 1× to 2×. At this time, after the finger slides to the bottom of the integrated volume key, it is necessary to leave the integrated volume key 102 and slide once again along the Q1 direction on the top of the integrated volume key 102 to adjust the zoom ratio from 2× to 3×. However, in terms of the user's operating habits, some users may be accustomed to not leaving the integrated volume key 102 with their fingers, and directly return from the bottom of the integrated volume key 102 to the top of the integrated volume key 102. Then, this may cause an erroneous operation of adjusting the zoom ratio from 1× to 2×, and then adjusting the zoom ratio from 2× back to 1×, resulting in the user needing multiple operations to adjust the zoom ratio to 3×.

[0153] Taking the scenario of the user increasing the volume as an example, after the user performs the first operation to decrease the volume, if the first operation has met the user's needs, the user's finger usually leaves the integrated volume key 102. If the first operation does not meet the user's needs, the user needs to adjust based on the current operation position to continue to decrease the volume or increase the volume, wherein the user can repeat the previous operation to continue to decrease the volume, so the user needs to return from the current position to the top of the integrated volume key 102. In this process, there is an unconscious operation in which the user's finger does not leave the integrated volume key 102, and this unconscious operation is likely to cause an erroneous operation of increasing the volume.

[0154] If the user needs to increase the volume, the user can slide in the opposite direction from the current position. In this process, the user needs to subjectively perform a sliding operation in the opposite direction.

[0155] Based on the two situations of unconscious operation and subjective operation of the second operation, the specific operation form of the second operation can be distinguished. Among them, the second operation includes a first sub-operation or a second sub-operation. The first sub-operation includes a sliding operation along the second direction without the user's finger leaving the button after the user performs the first operation. The second sub-operation includes a first pressing operation on the integrated volume key 102 without the user's finger leaving the integrated volume key 102 after the user performs the first operation, and a first sliding operation from the pressing position to the second direction without the user's finger leaving the integrated volume key 102 after the first pressing operation.

[0156] Fig.11 This is a schematic diagram of the first sub-operation provided in an embodiment of the present application.

[0157] like Fig.11 As shown, taking the second direction being the Q2 direction from the bottom of the integrated volume key 102 to the top of the integrated volume key 102 as an example, the first sub-operation may be a sliding operation along the Q2 direction.

[0158] In one implementation, step S104 includes steps S1041 - S1042 .

[0159] Step S1041, when the second operation is the first sub-operation, if the second force is greater than or equal to the first detection threshold, execute the second operation instruction.

[0160] Step S1042: if the second force is less than the first detection threshold, the second operation instruction is not executed.

[0161] In fact, the first sub-operation may be an operation based on the user's subjective intention, or may be an operation based on the user's unconscious operating habits.

[0162] When the first sub-operation is an operation based on the user's subjective intention, the user usually increases the sliding force subjectively, so that the second force is larger. For example, the second force obtained by the electronic device 100 may be 0.4N, and the electronic device 100 compares the second force with the first detection threshold. When the first detection threshold is 0.25N, the second force is greater than the first detection threshold, and the electronic device 100 executes the second operation instruction.

[0163] When the first sub-operation is an operation based on the user's subjective intention, the user usually applies a certain force on the integrated volume key 102. For example, in the scenario of adjusting the volume, the user first performs the first operation, slides 8 mm downward from the top of the integrated volume key 102 with a force of 0.4N, and after the electronic device 100 reduces the volume from the current volume value 20 to the volume value 10, the user may feel that the current volume value is too small, and immediately performs the first sub-operation, sliding from the current 8 mm position to the top of the integrated volume key 102. Since the user has the subjective intention of the sliding operation, the second force of the user when performing the first sub-operation is usually slightly less than or equal to the first force, for example, the second force is 0.3N. In this way, the second force 0.3N is greater than the first detection threshold 0.25N, and the electronic device 100 executes the second operation instruction. The second operation instruction can be specifically used to increase the electronic device 100 from the current volume value 10 to the volume value 15. Therefore, the electronic device 100 can accurately identify that the current first sub-operation is an operation based on the user's subjective intention.

[0164] When the first sub-operation is an operation based on the user's unconscious operating habits, the user usually slides lightly on the integrated volume key 102 and does not apply too much force on the integrated volume key 102. For example, in the scenario of adjusting the volume, the user first performs the first operation, sliding 8 mm from the top of the integrated volume key 102 with a force of 0.4N. After the electronic device reduces the volume from the current volume value 20 to the volume value 10, the user's needs are met. However, due to the user's unconscious operating habits, the first sub-operation is performed, sliding from the current 8 mm position to the top of the integrated volume key 102. Since the user does not have the subjective intention of the sliding operation, the second force is small, for example, the second force is 0.1N. In this way, the second force 0.1N is less than the first detection threshold 0.25N, and the electronic device 100 does not execute the second operation instruction. Therefore, the electronic device 100 can accurately identify that the current first sub-operation is an operation based on the user's unconscious operating habits.

[0165] Specifically, after the electronic device 100 converts the operation force and operation position of the second operation detected by the sensor into corresponding signals, these signals are processed in the processor, and the processor can determine the magnitude relationship between the second force and the first detection threshold, and then determine whether the second operation instruction needs to be executed. Based on this, the electronic device 100 can accurately identify whether the first sub-operation is an operation based on the user's subjective intention or an operation based on the user's unconscious operation habits, and has the detection capability to determine the user's actual usage intention.

[0166] In one implementation, step S104 also includes step S1043.

[0167] Step S1043, when the second operation is a second sub-operation, if the second force corresponding to the first pressing operation in the second sub-operation is greater than or equal to the second detection threshold, and the second force corresponding to the first sliding operation in the second sub-operation is greater than or equal to the first detection threshold, execute the second operation instruction.

[0168] The second sub-operation is usually a subjective operation of the user. After performing the first operation, the user may not have the ability to react immediately and perform the first sub-operation immediately, but needs to continue other sliding operations after a certain reaction time. In this way, the user actually performs the second sub-operation, that is, the user first performs the first pressing operation within the reaction time, and then performs the first sliding operation from the pressing position to the second direction after the reaction time is over. Since the first pressing operation and the first sliding operation are both subjective operations of the user, the user usually applies a certain amount of force during the two operations.

[0169] Fig.12 This is a second sub-operation schematic diagram provided in an embodiment of the present application.

[0170] like Fig.12 As shown, taking the second direction being the Q2 direction from the bottom of the integrated volume key 102 to the top of the integrated volume key 102 as an example, the second sub-operation may be a pressing operation followed by a sliding operation along the Q2 direction.

[0171] In order to determine the current operation mode of the user, the electronic device 100 pre-sets a second detection threshold according to the configured integrated volume key 102 structure.

[0172] The second detection threshold can be a press detection threshold. For example, the second detection threshold is 1.3N. In this way, when the second force corresponding to the first press operation in the second sub-operation is greater than or equal to the second detection threshold, the electronic device 100 can determine that the user has a subjective intention to change the sliding direction. Further, when the second force corresponding to the first sliding operation in the second sub-operation is greater than or equal to the first detection threshold, the electronic device 100 can determine that the user has a subjective intention to slide in the Q2 direction. Among them, the embodiment of the present application only exemplifies the second detection threshold, and the specific value of the second detection threshold can be set according to actual conditions.

[0173] Fig.13 This is a second sub-operation schematic diagram provided by another embodiment of the present application.

[0174] like Fig.13 As shown, the second sub-operation also has other operation forms in addition to the aforementioned embodiment. For example, the second sub-operation may be a sliding operation of a certain distance from the end position of the first operation to the second direction after the user performs the first operation, and a second pressing operation of the integrated volume key 102 after sliding a certain distance, and a second sliding operation from the pressing position to the second direction.

[0175] This form of second sub-operation includes a part of unconscious sliding back operation and a part of subjective operation. Specifically, after the user performs the first operation, the user will perform an unconscious sliding back operation within a period of time. After a certain reaction time, the user may determine that a second pressing operation is required. In this way, the electronic device 100 can determine that the user has a subjective intention to change the sliding direction. After the user performs the second pressing operation, the user may further subjectively perform a second sliding operation along the second direction, so that the electronic device 100 can determine that the user has a subjective intention to slide along the second direction, and make corresponding adjustments according to the second sliding operation. In other words, the electronic device 100 can accurately identify that the second sub-operation includes an operation based on the user's subjective intention. In this way, the electronic device 100 has the detection capability to judge the user's actual usage intention.

[0176] The above operation mode can be implemented in various application scenarios. A user may perform a series of continuous operations in different application scenarios.

[0177] Based on this, in one implementation, step S1042 further includes steps S105-S106.

[0178] Step S105, in response to a third operation performed by the user on the key along the first direction, obtaining a third force of the third operation.

[0179] The third operation is a sliding operation performed by the user without removing the finger from the integrated volume key 102 after the user performs the first sub-operation.

[0180] Take the scenario where the user adjusts the volume as an example. Due to the small size of the integrated volume key 102, the single volume adjustment range configured therein may not meet the user's adjustment requirements, and the user may need to adjust it multiple times to reach the target volume value. For example, the user first performs the first operation, sliding down 8 mm from the top of the integrated volume key 102 with a force of 0.4N. After the electronic device 100 reduces the volume from the current volume value 20 to the volume value 10, the current volume value may still be high, and the user needs to continue to adjust the volume value. Then, the user needs to return from the current position to the top of the integrated volume key 102 to adjust the volume value again. In this process, the user may not leave the integrated volume key 102 due to unconscious operating habits, and return to the top of the integrated volume key 102, that is, perform the first sub-operation in which the second force is less than the first detection threshold. At this time, the electronic device 100 does not execute the corresponding instruction for the first sub-operation. After the user returns to the top of the integrated volume key 102 based on the current first sub-operation, the user can perform a third operation, and the specific operation method of the third operation can be the same as the first operation.

[0181] Taking the scenario where the user is adjusting the volume as an example, the user may not be able to reach the target volume value through only one volume adjustment during the process of adjusting the volume. For example, the user first performs the first operation, sliding down 8 mm from the top of the integrated volume key 102 with a force of 0.4N. After the electronic device 100 reduces the volume from the current volume value 20 to the volume value 10, the current volume value may be too low, and the user needs to continue to adjust the volume value. The user can slide back through the first sub-operation with a second force greater than or equal to the first detection threshold. In this way, the electronic device 100 can increase the current volume value to 14. If the user believes that the current volume value still needs to be reduced, the user can perform a third operation, and its specific operation method can be the same as the first operation.

[0182] Step S106: if the third force is greater than or equal to the first detection threshold, execute a third operation instruction corresponding to the third operation.

[0183] Among them, the third operation is usually a subjective operation of the user. Therefore, the user usually applies a certain force on the integrated volume key 102. The electronic device 100 can determine that the third force is greater than or equal to the first detection threshold, and then execute the third operation instruction corresponding to the third operation.

[0184] In this way, when the user performs the first operation, the first sub-operation, and the third operation in sequence, a series of continuous operations can be formed. During the continuous operation, the electronic device 100 can accurately identify the operation instructions that need to be executed, match the user's operating habits, and avoid user misoperation.

[0185] In one implementation, step S1041 or step S1043 further includes steps S107 - S108 .

[0186] Step S107, in response to a fourth operation performed by the user on the key along the first direction, obtaining a fourth force of the fourth operation.

[0187] The fourth operation is a sliding operation performed by the user without removing the finger from the integrated volume key 102 after the user performs the second sub-operation.

[0188] Taking the scenario where the user is adjusting the volume as an example, the user may not be able to reach the target volume value through only one volume adjustment during the process of adjusting the volume. For example, the user first performs the first operation, sliding down 8 mm from the top of the integrated volume key 102 with a force of 0.4N. After the electronic device 100 reduces the volume from the current volume value 20 to the volume value 10, the current volume value may be too low, and the user needs to continue to adjust the volume value. The user can press first and then slide back through the second sub-operation. In this way, the electronic device 100 can increase the current volume value to 14. If the user thinks that the current volume value still needs to be reduced, the user can perform the fourth operation, and its specific operation method can be the same as the first operation.

[0189] Step S108: if the fourth force is greater than or equal to the first detection threshold, execute a fourth operation instruction corresponding to the fourth operation.

[0190] Among them, the fourth operation is usually a subjective operation of the user. Therefore, the user usually applies a certain force on the integrated volume key 102. The electronic device 100 can determine that the fourth force is greater than or equal to the first detection threshold, and then execute the fourth operation instruction corresponding to the fourth operation.

[0191] In this way, when the user performs the first operation, the second sub-operation, and the fourth operation in sequence, a series of continuous operations can be formed. During the continuous operation, the electronic device 100 can accurately identify the operation instructions that need to be executed, match the user's operating habits, and avoid user misoperation.

[0192] In one implementation, step S101 also includes steps S201 - S202 .

[0193] Step S201, determining whether at least one preset application is in the foreground or background running state.

[0194] The integrated volume key 102 can be applied to a variety of applications and perform different functions in different applications. In order to improve the convenience of operation, the electronic device 100 can pre-configure the functions performed by the integrated volume key 102 in the preset application, and when the preset application is in the foreground and background running state, the integrated volume key 102 executes the operation instructions corresponding to the preset application. The foreground and background running states include the foreground running state and the background running state.

[0195] Specifically, the electronic device 100 can monitor the activity life cycle of the preset application to determine whether the preset application is in the foreground or background running state. The electronic device 100 can also query the application manager or task manager provided by the operating system to determine whether the preset application is in the foreground or background running state. The electronic device 100 can also detect the interaction between the user and the application to determine whether the preset application is in the foreground or background running state. The embodiment of the present application does not limit the specific method of determining whether the preset application is in the foreground or background state.

[0196] In one implementation, the preset applications may include audio applications, video applications, browser applications, camera applications, etc. The embodiment of the present application does not limit the specific type of the preset applications.

[0197] Step S202, if any preset application is in the foreground or background running state, determine the function executed by the target operation instruction based on the target application, the target application is the preset application currently in the foreground or background running state, and the target operation instruction includes at least a first operation instruction and a second operation instruction.

[0198] Among them, when the target application is an audio application or a video application, the electronic device 100 can determine that the first operation instruction executes the function of increasing the volume, and the second operation instruction executes the function of decreasing the volume, or determine that the first operation instruction executes the function of decreasing the volume, and the second operation instruction executes the function of increasing the volume.

[0199] It should be noted here that users are involved in a combination of multiple operations in any application. The embodiments of the present application only exemplify the operation forms involved in some applications. In actual application, the embodiments of the present application include one or more combinations, which are not limited by the embodiments of the present application.

[0200] Fig.14 This is a schematic diagram of the first scenario of the sliding detection method provided in an embodiment of the present application.

[0201] like Fig.14 As shown, taking the scenario of a user using an audio application as an example, the user performs a sliding operation K1 on the integrated volume key 102 along the Q1 direction, and the electronic device 100 can obtain the sliding force R1 of the sliding operation K1 based on multiple third sensors 30. The sliding force R1 is usually greater than the first detection threshold 0.25N, so that the electronic device 100 can increase the volume. If the current increased volume of the electronic device 100 just meets the user's needs, the user will usually leave the integrated volume key 102 after performing the sliding operation K1 to complete this operation. In this case, the user's misoperation will usually not occur.

[0202] If the user still needs to continue adjusting the volume, the user's finger returns to the initial position of the integrated volume key 102, and performs a sliding operation K2 on the integrated volume key 102 along the Q1 direction again. The electronic device 100 can again obtain the sliding force R2 of the sliding operation K2 based on multiple third sensors 30. The sliding force R2 is usually greater than the first detection threshold 0.25N. In this way, the electronic device 100 can increase the volume again.

[0203] The user can repeat the above process multiple times, which will not be described in detail in this embodiment of the present application.

[0204] That is to say, the user can perform sliding operations along the Q1 direction on the integrated volume key 102 for multiple times, and each adjacent sliding operation is discontinuous, that is, after each sliding operation from the initial position of the integrated volume key 102, the user lifts his finger to perform the next operation. During this operation, the electronic device 100 can determine that the sliding force corresponding to each operation is greater than or equal to the first detection threshold, thereby executing the operation instruction corresponding to each operation.

[0205] In the above scenario, since the user lifts his finger to perform the next operation after each sliding operation, the user's operating habits usually do not cause misoperation. The sliding detection method provided in the embodiment of the present application can accurately execute operating instructions and determine the user's actual usage intention.

[0206] In one implementation, if the user sequentially performs a first operation, a first sub-operation in which the second force is less than a first detection threshold, and a third operation, the electronic device 100 may reduce the volume according to the first operation instruction and reduce the volume according to the third operation instruction, or increase the volume according to the first operation instruction and increase the volume according to the third operation instruction.

[0207] Fig.15 This is a schematic diagram of a second scenario of the sliding detection method provided in an embodiment of the present application.

[0208] like Fig.15 As shown, taking the scenario of a user using an audio application as an example, the user performs a sliding operation K3 on the integrated volume key 102 along the Q1 direction, and the electronic device 100 can obtain the sliding force R3 of the sliding operation K3 based on the multiple third sensors 30, and the sliding force R3 is usually greater than the first detection threshold 0.25N, so that the electronic device 100 can increase the volume. If the current increased volume of the electronic device 100 does not meet the user's needs, after the user performs the sliding operation K3 on the integrated volume key 102, the finger may not leave the integrated volume key 102 due to unconscious operating habits, and perform a back sliding operation K4 along the Q2 direction from the end position of the sliding operation K3 to return to the initial position of the integrated volume key 102. The electronic device 100 can obtain the sliding force R4 of the back sliding operation K4 based on the multiple third sensors 30, and the sliding force R4 is usually less than the first detection threshold 0.25N. In this way, the electronic device 100 does not execute the operation instruction corresponding to the sliding operation K4, does not reduce the volume, and after returning to the initial position of the integrated volume key 102, performs a sliding operation K5 on the integrated volume key 102 along the Q1 direction again. The electronic device 100 can obtain the sliding force R5 of the sliding operation K5 based on multiple third sensors 30. The sliding force R5 is usually greater than the first detection threshold 0.25N. In this way, the electronic device 100 can continue to increase the volume.

[0209] The user can repeat the above process multiple times, which will not be described in detail in this embodiment of the present application.

[0210] That is to say, the user can perform a series of continuous operations such as sliding operation K3-sliding back operation K4-sliding operation K5-sliding back operation K6 (the operation method is the same as the sliding back operation K4, which is not described in detail in this embodiment) on the integrated volume key 102, and the continuous operation is hereinafter referred to as the first continuous operation. In the process of the user performing the first continuous operation, sliding back operation K4, sliding back operation K6, etc. are unconscious operations of the user, and are not operations with the actual use intention of the user. The electronic device 100 can determine that there is no need to execute the operation instructions corresponding to sliding back operation K4 and sliding back operation K6.

[0211] In the above scenario, since the user does not lift his finger to perform the next operation after each sliding operation, the user's operating habits can easily cause misoperation. During the process of the user performing the first continuous operation multiple times, the user's operation is similar to the process of turning the wheel. In this way, the user can not only quickly perform the first continuous operation, but also will not make misoperations during the first continuous operation. The electronic device 100 can match the user's operating habits, accurately distinguish the operation instructions that do not need to be executed, and judge the user's actual usage intention.

[0212] Fig.16 This is the first schematic diagram of the time-force relationship provided in the embodiment of the present application.

[0213] like Fig.16 As shown, with the horizontal axis representing time (s) and the vertical axis representing pressure (N), a schematic diagram of the time-force relationship of the sliding operation K3-the back sliding operation K4-the sliding operation K5 is shown.

[0214] Among them, the sliding operation K3 gradually increases from -0.04N to 0.5N in the time range of 1.1s-1.8s, and gradually decreases from 0.5N to 0.1N in the time range of 1.8s-2.3s. The back sliding operation K4 fluctuates in the pressure range of 0.08N-0.24N in the time range of 2.3s-3.5s. The sliding operation K5 gradually increases from 0.1N to 0.52N in the time range of 3.5s-4.3s, and gradually decreases from 0.52N to -0.04N in the time range of 4.3s-4.9s.

[0215] It should be noted that the pressure value may be a relative pressure difference, and the relative pressure difference may be a pressure relative to a given reference value. A positive pressure value indicates a pressure higher than the reference pressure, and a negative pressure value indicates a pressure lower than the reference pressure.

[0216] Thus, the sliding operation K3 triggers the first detection threshold of 0.25 N in the process of gradually increasing from -0.04 N to 0.5 N, and the sliding operation K5 triggers the first detection threshold of 0.25 N in the process of gradually increasing from 0.1 N to 0.52 N, while the forces corresponding to the back sliding operation K4 are all lower than the first detection threshold of 0.25 N and do not trigger the first detection threshold of 0.25 N. Therefore, the electronic device 100 can determine that there is no need to execute the operation instruction corresponding to the back sliding operation K4.

[0217] The above time-force relationship diagram shows, based on numerical examples, that the electronic device 100 can match the user's operating habits, accurately distinguish operating instructions that do not need to be executed, and determine the user's actual usage intention.

[0218] Fig.17 This is a schematic diagram of the third scenario of the sliding detection method provided in an embodiment of the present application.

[0219] like Fig.17 As shown, taking the scenario of a user using an audio application as an example, the user performs a sliding operation K7 on the integrated volume key 102 along the Q1 direction, and the electronic device 100 can obtain the sliding force R7 of the sliding operation K7 based on the third sensor 30, and the sliding force R7 is usually greater than the first detection threshold 0.25N, so that the electronic device 100 can increase the volume. If the current volume increased by the electronic device 100 is too large, after the user performs the sliding operation K7 on the integrated volume key 102, the finger can not leave the integrated volume key 102, and immediately perform a sliding operation K8 from the end position of the sliding operation K7 along the Q2 direction, sliding back a certain distance, and the electronic device 100 can obtain the sliding force R8 of the sliding operation K8 based on the third sensor 30, and the sliding force R8 is usually greater than or equal to the first detection threshold 0.25N, so that the electronic device 100 can reduce the volume. If the volume of the electronic device 100 is lowered to less than the target volume, the user can perform a sliding operation K9 along the Q1 direction again. The electronic device 100 can obtain the sliding force R9 of the sliding operation K9 based on the third sensor 30. The sliding force R9 is usually greater than the first detection threshold 0.25N. In this way, the electronic device 100 can continue to increase the volume.

[0220] The user can repeat the above process multiple times, which will not be described in detail in this embodiment of the present application.

[0221] That is, the user can perform a series of continuous operations such as sliding operation K7-sliding back operation K8-sliding operation K9, which are hereinafter referred to as the second continuous operation. During the user's second continuous operation, the sliding back operation K8 is an operation with the user's subjective intention, and the electronic device 100 can determine that the operation instruction corresponding to the sliding back operation K8 needs to be executed.

[0222] In the above scenario, after the user performs a sliding operation along the Q1 direction, if the user does not lift the finger to slide back along the Q2 direction, the electronic device 100 can determine whether the operation is a subjective operation of the user or an unconscious operation habit of the user, so as to accurately distinguish the operation instructions and judge the user's actual usage intention.

[0223] Fig.18 This is the second schematic diagram of the time-force relationship provided in the embodiment of the present application.

[0224] like Fig.18 As shown, with the horizontal axis representing time (s) and the vertical axis representing pressure (N), a schematic diagram of the time-force relationship of the sliding operation K7-the back sliding operation K8-the sliding operation K9 is shown.

[0225] Among them, the sliding operation K7 gradually increases from -0.04N to 0.5N in the time range of 0.8s-1.8s, and gradually decreases from 0.5N to 0.25N in the time range of 1.8s-2.5s. The back sliding operation K8 fluctuates in the pressure range of 0.16N-0.3N in the time range of 2.5s-3.6s. The sliding operation K9 gradually increases from 0.16N to 0.5N in the time range of 3.6s-4.5s, and gradually decreases from 0.5N to -0.04N in the time range of 4.5s-5.4s.

[0226] In this way, the sliding operation K7 triggers the first detection threshold of 0.25N in the process of gradually increasing from -0.04N to 0.5N, the sliding operation K8 triggers the first detection threshold of 0.25N in the process of pressure fluctuation in the range of 0.16N-0.3N, and the sliding operation K9 triggers the first detection threshold of 0.25N in the process of gradually increasing from 0.16N to 0.5N. Therefore, the electronic device 100 sequentially executes the sliding operation K7, the sliding operation K8, and the operation instructions corresponding to the sliding operation K9. The electronic device 100 can match the user's operating habits, determine that the sliding operation K8 is an operation instruction that needs to be executed, and judge the user's actual usage intention.

[0227] In one implementation, if the user performs the first operation and the second sub-operation in sequence, the electronic device 100 can reduce the volume according to the first operation instruction and increase the volume according to the second operation instruction, or increase the volume according to the first operation instruction and reduce the volume according to the second operation instruction.

[0228] Fig.19 This is a schematic diagram of the fourth scenario of the sliding detection method provided in the embodiment of the present application.

[0229] like Fig.19As shown, taking the scenario of a user using an audio application as an example, the user performs a sliding operation K10 along the Q1 direction, and the electronic device 100 can obtain the sliding force R10 of the sliding operation K10 based on multiple third sensors 30, and the sliding force R10 is usually greater than the first detection threshold 0.25N, so that the electronic device 100 can increase the volume. If the current volume increased by the electronic device 100 is too large, after the user performs the sliding operation K10, the finger can perform a pressing operation K11, and the electronic device 100 can obtain the pressing force R11 of the pressing operation K11 based on multiple third sensors 30, and the pressing force is usually greater than the second detection threshold 1.3N, so that the electronic device 100 can determine that the user's further operation is an operation with subjective intention. After a certain user reaction time, the finger performs a sliding operation K12 from the pressing position along the Q2 direction, sliding back a certain distance, and the electronic device 100 can obtain the sliding force R12 of the sliding operation K12 based on the third sensor 30, and the sliding force R12 is usually greater than the first detection threshold 0.25N, so that the electronic device 100 can reduce the volume.

[0230] The user can repeat the above process multiple times, which will not be described in detail in this embodiment of the present application.

[0231] That is, the user can perform a series of continuous operations such as sliding operation K10-pressing operation K11-sliding back operation K12, which is hereinafter referred to as the third continuous operation. During the user's third continuous operation, pressing operation K11 and sliding back operation K12 are operations with the user's subjective intention. The electronic device 100 can determine that the user may have a subjective intention to change the direction after performing the pressing operation K11. In this way, the electronic device 100 can accurately distinguish the operation instructions and judge the user's actual usage intention.

[0232] Fig. 20 This is the third schematic diagram of the time-force relationship provided in the embodiment of the present application.

[0233] like Fig. 20 As shown, with the horizontal axis representing time (s) and the vertical axis representing pressure (N), a schematic diagram of the time-force relationship of the sliding operation K10 - the pressing operation K11 - the sliding back operation K12 is shown.

[0234] Among them, the sliding operation K10 gradually increases from -0.04N to 0.45N within the time range of 1s-1.6s, and gradually decreases from 0.45N to 0.3N within the time range of 1.6s-2.7s. The pressing operation K11 gradually increases from 0.3N to 2.25N within the time range of 2.7s-3.5s, and gradually decreases from 2.25N to 0.2N within the time range of 3.5s-4s. The sliding back operation K12 gradually increases from 0.2N to 0.65N within the time range of 4s-4.7s, and gradually decreases from 0.65N to -0.04N within the time range of 4.7s-5.4s.

[0235] In this way, the sliding operation K10 triggers the first detection threshold of 0.25N in the process of gradually increasing from -0.04N to 0.45N, the pressing operation K11 triggers the second detection threshold of 2.25N in the process of gradually increasing from 0.3N to 2.25N, and the sliding back operation K12 triggers the first detection threshold of 0.25N in the process of gradually increasing from 0.2N to 0.65N. Therefore, the electronic device 100 sequentially executes the operation instructions corresponding to the sliding operation K10, the pressing operation K11, and the sliding back operation K12. The electronic device 100 can match the user's operating habits and determine that the operation after the pressing operation K11 is an operation with the user's subjective intention to judge the user's actual usage intention.

[0236] In scenarios where users adjust the volume, they can usually reach the target volume with fewer operations. In other scenarios, more complex operations are usually involved.

[0237] It should be noted here that not only audio applications involve scenarios for adjusting the volume, but video applications also involve scenarios for adjusting the volume. Different types of applications can refer to each other, and the embodiments of the present application will not go into details.

[0238] The following describes how to operate in other applications.

[0239] When the target application is a video application, the electronic device 100 can determine that the first operation instruction executes the function of fast-forwarding the video, and the second operation instruction executes the function of fast-rewinding the video, or determine that the first operation instruction executes the function of fast-rewinding the video, and the second operation instruction executes the function of fast-forwarding the video.

[0240] It should be noted that since video applications involve both volume adjustment and video progress adjustment, the electronic device 100 can distinguish the purpose of the integrated volume key 102 according to different user operation modes to determine whether the user's operation of the integrated volume key 102 is for adjusting the volume or for adjusting the video progress.

[0241] In one implementation, when the user is playing a video in full screen and does not perform other operations, the user's operation on the integrated volume key 102 can be used to adjust the volume. The specific volume adjustment method can refer to the above-mentioned audio application. This embodiment of the application will not be described in detail.

[0242] In one implementation, when a user is playing a video in full screen, if the user needs to adjust the progress of the video, the user can call up the video progress bar. After the electronic device 100 determines that the current page of the display screen displays the video progress bar, it can adjust the video progress in response to the user's operation of the integrated volume key 102.

[0243] In one implementation, if the user sequentially performs a first operation, a first sub-operation in which the second force is less than a first detection threshold, and a third operation, the electronic device 100 can fast forward the video according to the first operation instruction, and fast forward the video according to the third operation instruction, or fast rewind the video according to the first operation instruction, and fast rewind the video according to the third operation instruction. The specific video progress adjustment method in the embodiment of the present application can refer to the above-mentioned audio application, and the embodiment of the present application will not be described in detail.

[0244] When the target application is a browser-type application, the electronic device 100 can determine that the first operation instruction executes the function of scrolling the screen upward, and the second operation instruction executes the function of scrolling the screen downward, or determine that the first operation instruction executes the function of scrolling the screen downward, and the second operation instruction executes the function of scrolling the screen upward.

[0245] In one implementation, if the user performs a first operation, a first sub-operation in which the second force is less than a first detection threshold, and a third operation in sequence, the electronic device 100 can scroll down the screen according to the first operation instruction, and scroll down the screen according to the third operation instruction, or scroll up the screen according to the first operation instruction, and scroll up the screen according to the third operation instruction.

[0246] In one implementation, if the user sequentially performs the first operation, the second sub-operation, and the fourth operation, the electronic device 100 may scroll down the screen according to the first operation instruction, scroll up the screen according to the second operation instruction, and scroll down the screen again according to the fourth operation instruction, or scroll up the screen according to the first operation instruction, scroll down the screen according to the second operation instruction, and scroll up the screen again according to the fourth operation instruction. The specific browsing progress adjustment method in the embodiment of the present application can refer to the above-mentioned audio application, and the embodiment of the present application will not be repeated.

[0247] In addition to the above implementation methods, scenarios where users use browser-type applications also involve the following more complex operation methods.

[0248] Fig.21 This is a fifth scenario schematic diagram of the sliding detection method provided in an embodiment of the present application.

[0249] like Fig.21 As shown, taking the scenario of a user using a browser application as an example, when the user browses the text, for a long text 300, the user may browse to two-thirds of the content of the long text 300 for the first time, and when the user browses again, the user may return to the initial position of the long text 300 because the current browsing progress is not saved. In this way, the user may quickly slide multiple times to locate to two-thirds of the long text 300. Specifically, the user performs a sliding operation K13 along the Q1 direction on the integrated volume key 102, and the electronic device 100 can obtain the sliding force R13 of the sliding operation K13 based on the third sensor 30. The sliding force R13 is usually greater than the first detection threshold 0.25N, so that the electronic device 100 can scroll down to flip through the screen. The user may not locate the target browsing position in a single operation. After the user performs the sliding operation K13, the finger quickly returns to the top of the integrated volume key 102. During this process, the user may not leave the integrated volume key 102 due to the operating habit, that is, the back sliding operation K14 is performed along the Q2 direction from the end position of the sliding operation K13 to return to the top of the integrated volume key 102. The electronic device 100 can obtain the sliding force R14 of the back sliding operation K14 based on the third sensor 30. The sliding force R14 is usually less than the first detection threshold 0.25N. In this way, the electronic device 100 does not execute the operation instruction corresponding to the back sliding operation K14. The user can repeat the process of sliding operation K13-back sliding operation K14 three times in a row to position the electronic device 100 to two-thirds of the long text 300.

[0250] That is to say, the user repeats the sliding operation K13-sliding back operation K14 on the integrated volume key 102 three times in a row. During the three repetitions, the sliding back operation is an unconscious operation of the user and is not an operation with the user's actual intention. The electronic device 100 can determine that there is no need to execute the operation instruction corresponding to the sliding back operation K14 during the three repetitions.

[0251] In the above scenario, since the user performs three repeated sliding operations on the integrated volume key 102 in rapid succession, the user's sliding back operation K14 is likely to cause an erroneous operation. The electronic device 100 can match the user's operating habits, accurately distinguish operating instructions that do not need to be executed, and judge the user's actual usage intention.

[0252] Fig. 22This is the fourth schematic diagram of the time-force relationship provided in the embodiment of the present application.

[0253] like Fig. 22 As shown, with the horizontal axis representing time (s) and the vertical axis representing pressure (N), a schematic diagram of the time-force relationship during three repetitions of the sliding operation K13-back sliding operation K14 is shown.

[0254] Among them, when the user performs the sliding operation K13 for the first time, the sliding operation K13 gradually increases from -0.04N to 0.64N within the time range of 0.5s-0.8s, and gradually decreases from 0.64N to 0.08N within the time range of 0.8s-1.3s. The sliding operation K14 fluctuates in the pressure range of 0.08N-0.15N within the time range of 1.3s-1.7s. When the user performs the sliding operation K13a for the second time, the sliding operation K13a gradually increases from 0.08N to 0.55N within the time range of 1.7s-2s, and gradually decreases from 0.55N to 0.18N within the time range of 2s-2.6s. The sliding operation K14a fluctuates in the pressure range of 0.18N-0.22N within the time range of 2.6s-2.9s. When the user performs the sliding operation K13b for the third time, the sliding operation K13b gradually increases from 0.18N to 0.74N within the time range of 2.9s-3.3s, and gradually decreases from 0.74N to -0.04N within the time range of 3.3s-4.1s.

[0255] In this way, the sliding operation K13 triggered the first detection threshold of 0.25N in the process of gradually increasing from -0.04N to 0.64N, and the corresponding forces of the sliding back operation K14 were all lower than the first detection threshold of 0.25N, and the first detection threshold of 0.25N was not triggered. The sliding operation K13a triggered the first detection threshold of 0.25N in the process of gradually increasing from 0.08N to 0.55N, and the corresponding forces of the sliding back operation K14a were all lower than the first detection threshold of 0.25N, and the first detection threshold of 0.25N was not triggered. The sliding operation K13b triggered the first detection threshold of 0.25N in the process of gradually increasing from 0.18N to 0.74N. The electronic device 100 can match the user's operating habits, accurately determine the operating instructions that do not need to be executed, and determine the user's actual usage intention.

[0256] Fig.23 This is a sixth scenario schematic diagram of the sliding detection method provided in an embodiment of the present application.

[0257] like Fig.23As shown, taking the scenario of a user using a browser application as an example, in the process of the user browsing the text, for the long text 300, the user may browse to one-third of the content of the long text 300 for the first time, and when the user browses again, it may return to the initial position of the long text 300 because the current browsing progress is not saved, so the user can quickly slide multiple times to locate to one-third of the long text 300. However, there is a situation where the user cannot accurately locate to one-third of the long text 300. During the process of multiple quick slides, the user may directly locate to one-half of the long text 300. In this way, the user needs to subjectively slide back from one-half to one-third. Specifically, the user performs a sliding operation K15 along the Q1 direction on the integrated volume key 102, and the electronic device 100 can obtain the sliding force R15 of the sliding operation K15 based on the third sensor 30. The sliding force R15 is usually greater than the first detection threshold 0.25N, so that the electronic device 100 can scroll down to flip through the screen. The user's single operation may still be a certain distance from the target browsing position. After the user performs the sliding operation K15, the finger quickly returns to the top of the integrated volume key 102. In this process, the user may not leave the integrated volume key 102 due to the operating habit, that is, the sliding operation K16 is performed from the end position of the sliding operation K15 along the Q2 direction to return to the top of the integrated volume key 102. The electronic device 100 can obtain the sliding force R16 of the sliding operation K16 based on the third sensor 30, and the sliding force R16 is usually less than the first detection threshold 0.25N. In this way, the electronic device 100 does not execute the operation instruction corresponding to the sliding operation K16. The user can perform the sliding operation K17 on the integrated volume key 102 again along the Q1 direction. The electronic device 100 can obtain the sliding force R17 of the sliding operation K17 based on the third sensor 30. The sliding force R17 is usually greater than the first detection threshold 0.25N. In this way, the electronic device 100 may scroll down the screen to half of the long text 300, and the user needs to continue to adjust the browsing progress. The user can perform a pressing operation K18 at one-half of the long text 300, and the electronic device 100 can obtain the pressing force R18 of the pressing operation K18 based on the third sensor 30. The pressing force is usually greater than the second detection threshold 1.3N. In this way, the electronic device 100 can determine that the user has a subjective intention to change the sliding direction. After a certain user reaction time, the finger performs a back sliding operation K19 from the pressing position along the Q2 direction, sliding back a certain distance. The electronic device 100 can obtain the sliding force R19 of the back sliding operation K19 based on the third sensor 30. The sliding force R19 is usually greater than the first detection threshold 0.25N. In this way, the electronic device 100 can scroll up and flip through the screen, positioning from one-half of the long text 300 to one-third of the long text 300.

[0258] That is to say, the user can perform a series of continuous operations including sliding operation K15-sliding back operation K16-sliding operation K17-pressing operation K18-sliding back operation K19, hereinafter referred to as the fourth continuous operation. During the user's fourth continuous operation, sliding back operation K16 is an unconscious operation of the user, pressing operation K18 and sliding back operation K19 are operations with the user's subjective intention. The electronic device 100 can determine and distinguish the operation instructions and judge the user's actual usage intention.

[0259] Fig.24 This is the fifth schematic diagram of the time-force relationship provided in the embodiment of the present application.

[0260] like Fig.24 As shown, with the horizontal axis being time (s) and the vertical axis being pressure (N), a schematic diagram of the time-force relationship of sliding operation K15-returning sliding operation K16-sliding operation K17-pressing operation K18-returning sliding operation K19 is shown.

[0261] Among them, the sliding operation K15 gradually increases from -0.04N to 0.5N within the time range of 0.4s-0.7s, and gradually decreases from 0.5N to 0.1N within the time range of 0.7s-1.1s. The sliding operation K16 fluctuates within the pressure range of 0.05N-0.1N within the time range of 1.1s-1.3s. The sliding operation K17 gradually increases from 0.1N to 0.55N within the time range of 1.3s-1.8s. There is a slight sliding operation between the sliding operation K17 and the pressing operation K18, which is not introduced in the embodiments of the present application. The pressing operation K18 gradually increases from 0.45N to 1.35N within the time range of 1.8s-2.2s, and gradually decreases from 1.35N to 0.45N within 2.2s-2.5s. During the sliding operation K19, the pressure fluctuated within the pressure range of 0.45N-0.55N during the time range of 2.5s-3.5s, and then gradually decreased from 0.5N to -0.04N.

[0262] In this way, the sliding operation K15 triggers the first detection threshold of 0.25N in the process of gradually increasing from -0.04N to 0.5N, the sliding operation K16 fluctuates in the pressure range of 0.05N-0.1N without triggering the first detection threshold of 0.25N, the sliding operation K17 triggers the first detection threshold of 0.25N in the process of gradually increasing from 0.1N to 0.55N, the pressing operation K18 triggers the second detection threshold of 1.3N in the process of gradually increasing from 0.45N to 1.35N, and the sliding operation K19 triggers the first detection threshold of 0.25N when it fluctuates in the pressure range of 0.45N-0.55N. The electronic device 100 can match the user's operating habits, determine that the sliding operation K16 is an unconscious operation of the user, and determine that the pressing operation K18 and the sliding operation K19 are operations with the user's subjective intention. Therefore, the electronic device 100 can determine and distinguish the operation instructions and judge the user's actual usage intention.

[0263] When the target application is a photography application, the electronic device 100 can determine that the first operation instruction executes the function of increasing the zoom ratio, and the second operation instruction executes the function of decreasing the zoom ratio, or determine that the first operation instruction executes the function of decreasing the zoom ratio, and the second operation instruction executes the function of increasing the zoom ratio.

[0264] In one implementation, if the user sequentially performs a first operation, a first sub-operation in which the second force is less than a first detection threshold, and a third operation, the electronic device 100 may increase the zoom factor according to the first operation instruction, and increase the zoom factor according to the third operation instruction, or decrease the zoom factor according to the first operation instruction, and decrease the zoom factor according to the third operation instruction.

[0265] In one implementation, if the user performs a first operation and a second sub-operation in sequence, the electronic device 100 may increase the zoom factor according to the first operation instruction and decrease the zoom factor according to the second operation instruction, or decrease the zoom factor according to the first operation instruction and increase the zoom factor according to the second operation instruction.

[0266] The specific zoom multiple adjustment method in the embodiment of the present application can refer to the above-mentioned audio application program, which will not be described in detail in the embodiment of the present application.

[0267] It should be noted here that the sliding detection method provided in the embodiments of the present application includes but is not limited to application to the above-mentioned application. For specific implementation methods in other application programs, please refer to the embodiments in the present application, and the present application is not limited to this.

[0268] The sliding detection method shown in the embodiment of the present application can solve the problem that the split volume key is prone to failure and cannot adapt to more complex interaction requirements. For the user's various operation modes in different scenarios, the method shown in the embodiment of the present application can match the user's operation habits, judge the user's actual operation corresponding to the use intention, determine whether the user's current operation is the user's required operation or the user's unconscious operation habit, avoid the user's misoperation, and improve the user experience. The above mainly introduces the scheme provided by the embodiment of the present application from the perspective of the electronic device 100. It can be understood that in order to achieve the above functions, the electronic device 100 includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the steps of a sliding detection method of each example described in the embodiment disclosed in the present application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or the electronic device 100 software driving the hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0269] The embodiment of the present application can divide the above-mentioned electronic device 100 into functional modules or functional units according to the above-mentioned method example. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.

[0270] Fig.25 This is a schematic diagram of a sliding detection device provided by the present application.

[0271] like Fig.25 As shown, the device comprises:

[0272] The first acquisition module is used to obtain a first force of the first operation in response to a first operation performed by a user on a key along a first direction.

[0273] The first execution module is used to determine whether to execute a first operation instruction corresponding to a first operation according to a first force.

[0274] The second acquisition module is used to acquire a second force of the second operation in response to a second operation performed by the user on the key along a second direction when it is determined that the first operation instruction is to be executed, and the second direction is opposite to the first direction.

[0275] The second execution module is used to determine whether to execute a second operation instruction corresponding to a second operation according to the second force. Some other embodiments of the present application provide a sliding detection device.

[0276] In one embodiment, the sliding detection device can implement corresponding functions based on hardware devices. The device may include: a touch screen, a memory, a processor and a communication module. The above-mentioned devices may be connected through one or more communication buses. The above-mentioned devices may be connected through one or more communication buses. The touch screen may include a display panel and a touch sensor, wherein the display panel is used to display an image, and the touch sensor may transmit the detected touch operation to the application processor to determine the type of touch event, and provide visual output related to the touch operation through the display panel. The processor may include one or more processing units, for example: the processor may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor, etc. Among them, different processing units may be independent devices or integrated in one or more processors. The memory is coupled to the processor for storing various software programs and / or computer instructions, and the memory may include a volatile memory and / or a non-volatile memory. When the processor executes the computer instructions, the sliding detection device may perform various functions or steps of the above method embodiments.

[0277] When the software program and / or multiple groups of instructions in the memory are executed by the processor, the sliding detection device implements the following method steps: in response to a first operation of a user on a key along a first direction, a first force of the first operation is obtained; based on the first force, it is determined whether to execute a first operation instruction corresponding to the first operation; when it is determined that the first operation instruction is to be executed, in response to a second operation of the user on the key along a second direction, a second force of the second operation is obtained, the second direction being the opposite direction of the first direction; based on the second force, it is determined whether to execute a second operation instruction corresponding to the second operation.

[0278] The present application also provides an electronic device, including: a processor, a memory and a touch screen; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the sliding detection method in any implementation of the above embodiments.

[0279] The embodiment of the present application also provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected by lines. For example, the interface circuit can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit can be used to send signals to other devices. Exemplarily, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiment of the present application.

[0280] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed in the above-mentioned method embodiment.

[0281] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step executed in the above method embodiment.

[0282] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0283] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0284] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0285] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0286] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0287] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A sliding detection method, characterized in that: The method comprises: In response to a first operation performed by a user on a key along a first direction, obtaining a first force of the first operation; determining, according to the first force, whether to execute a first operation instruction corresponding to the first operation; In the case of determining to execute the first operation instruction, in response to a second operation of the user on the key along a second direction, obtaining a second force of the second operation, where the second direction is the opposite direction of the first direction; Determine whether to execute a second operation instruction corresponding to the second operation according to the second force.

2. The sliding detection method according to claim 1, characterized in that: The determining, according to the first force, whether to execute a first operation instruction corresponding to the first operation includes: If the first force is greater than or equal to a first detection threshold, executing the first operation instruction; If the first force is less than the first detection threshold, the first operation instruction is not executed.

3. The sliding detection method according to claim 1, characterized in that: The determining, according to the second force, whether to execute a second operation instruction corresponding to the second operation includes: When the second operation is a first sub-operation, if the second force is greater than or equal to a first detection threshold, the second operation instruction is executed, and the first sub-operation includes a sliding operation performed by the user along the second direction without releasing the finger from the button after performing the first operation; If the second force is less than the first detection threshold, the second operation instruction is not executed.

4. The sliding detection method according to claim 1, characterized in that: The determining, according to the second force, whether to execute a second operation instruction corresponding to the second operation includes: When the second operation is a second sub-operation, if the second force corresponding to the first pressing operation in the second sub-operation is greater than or equal to the second detection threshold, and the second force corresponding to the first sliding operation in the second sub-operation is greater than or equal to the first detection threshold, execute the second operation instruction; The second sub-operation includes the first pressing operation performed on the key without the user's finger leaving the key after the user performs the first operation, and the first sliding operation performed from the pressing position to the second direction without the user's finger leaving the key after the first pressing operation.

5. The sliding detection method according to claim 3, characterized in that: If the second force is less than the first detection threshold, after not executing the second operation instruction, the method further includes: In response to a third operation performed by the user on the key along the first direction, acquiring a third force of the third operation, wherein the third operation is a sliding operation performed by the user without removing the finger from the key after performing the first sub-operation; If the third force is greater than or equal to the first detection threshold, a third operation instruction corresponding to the third operation is executed.

6. The sliding detection method according to claim 4, characterized in that: After executing the second operation instruction, the method further includes: In response to a fourth operation performed by the user on the key along the first direction, acquiring a fourth force of the fourth operation, wherein the fourth operation is a sliding operation performed by the user without removing the finger from the key after the user performs the second sub-operation; If the fourth force is greater than or equal to the first detection threshold, a fourth operation instruction corresponding to the fourth operation is executed.

7. The sliding detection method according to any one of claims 1 to 6, characterized in that: Before obtaining a first force of the first operation performed by the user on the key along the first direction in response to the first operation performed by the user, the method further includes: Determine whether at least one preset application is in the foreground or background running state; If any of the preset applications is in the foreground or background running state, the function executed by the target operation instruction is determined based on the target application, the target application is the preset application currently in the foreground or background running state, and the target operation instruction includes at least the first operation instruction and the second operation instruction.

8. The sliding detection method according to claim 7, characterized in that: The function of determining the execution of the target operation instruction based on the target application program includes: When the target application is an audio application or a video application, determining that the first operation instruction executes a function of increasing the volume, and the second operation instruction executes a function of decreasing the volume; Alternatively, it is determined that the first operation instruction executes a function of reducing the volume, and the second operation instruction executes a function of increasing the volume.

9. The sliding detection method according to claim 7, characterized in that: The function of determining the execution of the target operation instruction based on the target application program includes: When the target application is a video application, determining that the first operation instruction executes a function of fast-forwarding the video, and the second operation instruction executes a function of fast-rewinding the video; Alternatively, it is determined that the first operation instruction executes a function of rewinding the video, and the second operation instruction executes a function of fast-forwarding the video.

10. The sliding detection method according to claim 7, characterized in that: The function of determining the execution of the target operation instruction based on the target application program includes: When the target application is a browser application, determining that the first operation instruction executes a function of scrolling up and flipping through the screen, and the second operation instruction executes a function of scrolling down and flipping through the screen; Alternatively, it is determined that the first operation instruction executes a function of scrolling down and turning over the screen, and the second operation instruction executes a function of scrolling up and turning over the screen.

11. The sliding detection method according to claim 7, characterized in that: The function of determining the execution of the target operation instruction based on the target application program includes: When the target application is a camera application, determining that the first operation instruction executes a function of increasing the zoom factor, and the second operation instruction executes a function of decreasing the zoom factor; Alternatively, it is determined that the first operation instruction executes a function of reducing the zoom factor, and the second operation instruction executes a function of increasing the zoom factor.

12. The sliding detection method according to claim 1, characterized in that: The button is a press-touch volume button, and the structure of the volume button includes at least one of a cantilever beam structure, a built-in sensor structure, and an ultrasonic structure.

13. The sliding detection method according to claim 1, characterized in that: Before obtaining a first force of the first operation performed by the user on the key along the first direction in response to the first operation performed by the user, the method further includes: Acquire the touch duration of the button by the user, and if the touch duration is greater than or equal to a first touch threshold, control the button to enter a wake-up state; Alternatively, obtaining the number of times the user taps the button, and if the number of times the user taps the button is greater than or equal to a first number threshold, controlling the button to enter the wake-up state; Alternatively, obtaining a touch position of the user on the button, and if the touch position is a preset position, controlling the button to enter the wake-up state; Alternatively, it monitors whether a preset application is running in the foreground or background state, and controls the button to enter the awake state.

14. A sliding detection device, characterized in that: The device comprises: A first acquisition module, configured to acquire a first force of a first operation performed by a user on a key along a first direction; a first execution module, the first execution module being used to determine whether to execute a first operation instruction corresponding to the first operation according to the first force; a second acquisition module, configured to acquire a second force of the second operation in response to a second operation of the user on the key along a second direction when it is determined that the first operation instruction is to be executed, wherein the second direction is opposite to the first direction; A second execution module, wherein the second execution module is used to determine whether to execute a second operation instruction corresponding to the second operation according to the second force.

15. An electronic device, characterized in that: include: A processor and a memory; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method described in any one of claims 1 to 13.

16. A chip system, characterized in that: include: Memory and processor; The memory stores program instructions, and when the program instructions are executed by the processor, the chip system executes the method according to any one of claims 1 to 13.

17. A computer storage medium, characterized in that: The computer-readable storage medium stores program instructions, and when the program instructions are executed on a computer, the computer executes the method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Touch operation method of key device, key device and terminal

    CN106095282A

  • Button function setting method and mobile terminal

    CN106126034A

  • Control method of mobile terminal and mobile terminal

    CN107577446A

  • Information display method and device

    CN107632764A

  • Method for quickly checking LKJ vehicle-mounted data by using screen sliding operation and storage medium

    CN109656454A