Electronic device control method, device, electronic device and readable storage medium

By obtaining the usage scenarios of smartphones and selecting appropriate touch methods, the problem of touch recognition failure is solved, the user experience is improved, and the accuracy and convenience of touch operations are ensured in various scenarios.

CN114415929BActive Publication Date: 2024-10-11VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210083471.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2024-10-11
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

In some special usage scenarios, the touch method of smartphones cannot achieve the purpose of touch recognition, resulting in poor user experience.

Method used

By obtaining the usage scenario of the electronic device and determining the appropriate touch method based on the preset mapping relationship between the usage scenario and the touch method, the user's touch operation can be accurately identified. This method can periodically perform the usage scene acquisition step to determine the current usage scene, and select an appropriate touch method according to different scenes, such as capacitive touch, resistive touch or laser touch, to ensure that the touch method matches the usage scene.

Benefits of technology

It effectively avoids touch recognition failure and improves the user experience. Especially when the user has sweaty fingers, wears gloves, or uses tools, the touch operation can be accurately recognized without additional processing by the user.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114415929B_ABST
    Figure CN114415929B_ABST
Patent Text Reader

Abstract

The present application discloses a control method, device, electronic device and readable storage medium of an electronic device, belonging to the technical field of electronic devices. The method comprises: obtaining a first usage scenario of the electronic device; determining a first touch mode corresponding to the first usage scenario according to a mapping relationship between a preset usage scenario and a touch mode; and controlling the electronic device according to the first touch mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a control method and device for an electronic equipment, an electronic equipment, and a readable storage medium. Background Art

[0002] Smartphones have become an indispensable part of people's lives, and current smartphone control methods are usually based on touch.

[0003] Most of the current touch screens of smart phones are based on capacitive touch, which can achieve the purpose of touch recognition.

[0004] However, in some special usage scenarios, there may be a situation where a certain touch method cannot achieve the purpose of touch recognition, resulting in a poor user experience. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a control method and device for an electronic device, an electronic device, and a readable storage medium, which can enhance the user experience.

[0006] In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, the method comprising: obtaining a first usage scenario of the electronic device; determining a first touch method corresponding to the first usage scenario based on a mapping relationship between preset usage scenarios and touch methods; and controlling the electronic device based on the first touch method.

[0007] In a second aspect, an embodiment of the present application provides a control device for an electronic device, the device comprising: an acquisition module for acquiring a first usage scenario of the electronic device; a determination module for determining a first touch mode corresponding to the first usage scenario based on a mapping relationship between a preset usage scenario and a touch mode; and a processing module for controlling the electronic device according to the first touch mode.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] In the embodiment of the present application, a first usage scenario of the electronic device is obtained; a first touch mode corresponding to the first usage scenario is determined according to a preset mapping relationship between the usage scenario and the touch mode; and the electronic device is controlled according to the first touch mode. It can be seen that in the present embodiment, different usage scenarios use different touch modes to achieve the purpose of touch recognition, which can make the touch mode always match the current usage scenario, avoid failure to achieve the touch purpose, and thus improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a flow chart of a control method of an electronic device provided by this embodiment;

[0014] Figure 2 is a block diagram of a control device of an electronic device provided in this embodiment;

[0015] Figure 3 is a schematic diagram of the hardware structure of an electronic device provided in this embodiment;

[0016] Figure 4 It is a schematic diagram of the hardware structure of another electronic device provided in this embodiment. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0018] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0019] The control method of the electronic device provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0020] Please refer to Figure 1 The present embodiment provides a method for controlling an electronic device, which may include the following steps 110 to 130:

[0021] Step 110: Obtain a first usage scenario of the electronic device.

[0022] The electronic device in this embodiment can be a user's smart phone, which is equipped with a touch screen, and the user can issue corresponding control instructions by operating the touch screen. The implementation subject of this embodiment can be a main control module of the electronic device, and the main control module can use a certain touch mode to identify the control instructions issued by the user through touch operation.

[0023] In detail, the basic touch control methods may include a capacitive touch control method, a resistive touch control method, a laser touch control method, etc. In this embodiment, these basic touch control methods are all provided in the electronic device and can work simultaneously.

[0024] Among them, different basic touch modes have different touch characteristics. Specifically, the capacitive touch mode has the advantages of sensitivity and multi-point touch, the resistive touch mode has the advantages of precision, water stain resistance, and no forced finger contact, and the laser touch mode has the advantages of precision and no forced finger contact.

[0025] For example, when a user performs a touch operation with a sweaty finger or performs a touch operation while wearing gloves, the capacitive touch method generally cannot recognize the touch operation, whereas the resistive touch method and the laser touch method can recognize the touch operation.

[0026] In this way, in order to accurately respond to the control instructions issued by the user through the touch operation, the touch operation can be accurately identified by using the touch mode that meets the use scenario of the electronic device. Based on this, in this embodiment, the use scenario of the electronic device is first obtained so that the corresponding touch mode can be determined according to the use scenario.

[0027] In detail, the step of acquiring the usage scenario of the electronic device can be periodically performed during the use of the electronic device.

[0028] Step 120: Determine a first touch mode corresponding to the first usage scenario according to a preset mapping relationship between usage scenarios and touch modes.

[0029] In this embodiment, different touch modes may be used in different usage scenarios, and the mapping relationship between the usage scenarios and the touch modes may be preset based on experience or the like.

[0030] In a feasible implementation, the touch mode adopted by the control device of the electronic device can be a single touch mode, such as any one of the basic touch modes including capacitive touch mode, resistive touch mode and laser touch mode, or a combined touch mode, such as a combination of the two basic touch modes including resistive touch mode and laser touch mode.

[0031] Taking the example of a user touching a position on the touch screen of an electronic device, for a single touch mode, the single touch mode is directly used to obtain the touch position of the user on the touch screen, and for a combined touch mode, each single touch mode in the combined touch mode can be used separately to obtain the touch position of the user on the touch screen, that is, multiple touch positions can be obtained, and then the obtained multiple touch positions are processed by weighted averaging to obtain a unified touch position.

[0032] Step 130: Control the electronic device according to the first touch control method.

[0033] In this step, after the touch control method that meets the current usage scenario is determined, the electronic device can be controlled according to the touch control method, thereby achieving the purpose of accurate touch control.

[0034] In the embodiment of the present application, a first usage scenario of the electronic device is obtained; a first touch mode corresponding to the first usage scenario is determined according to a preset mapping relationship between the usage scenario and the touch mode; and the electronic device is controlled according to the first touch mode. It can be seen that in the present embodiment, different usage scenarios use different touch modes to achieve the purpose of touch recognition, which can make the touch mode always match the current usage scenario, avoid failure to achieve the touch purpose, and thus improve the user experience.

[0035] In one embodiment of the present invention, the step 110 of obtaining the first usage scenario of the electronic device may include the following steps 1101 to 1102:

[0036] Step 1101, obtaining usage data of the electronic device, wherein the usage data includes at least one of interface operation data, sensor data, and touch data.

[0037] Step 1102: Determine a first usage scenario of the electronic device based on the usage data.

[0038] Feasibly, the first usage scenario includes one of a first preset sub-scenario, a second preset sub-scenario and a third preset sub-scenario.

[0039] In this embodiment, the first preset sub-scenario may be a usage scenario where the user's fingers are sweaty, the user is wearing gloves, or a tool without static electricity is used to perform touch operations. In this case, a resistive touch method or a laser touch method may be used to achieve the purpose of touch recognition.

[0040] The second preset sub-scenario may be a usage scenario for performing refined operations, in which case the resistive touch method and the laser touch method may be used to achieve the purpose of touch recognition.

[0041] The third preset sub-scenario may be a conventional usage scenario for multi-touch, in which case a capacitive touch method may be used to achieve the purpose of touch recognition.

[0042] The following describes the three preset sub-scenarios respectively.

[0043] In this embodiment, whether the electronic device is in a refined operation usage scenario can be determined based on the interface operation data of the electronic device. The preferred touch mode in the refined operation usage scenario can be different from the preferred touch mode in the non-refined operation usage scenario.

[0044] Therefore, before identifying the scene, the association between the electronic device interface scene and the touch mode can be preset.

[0045] For example, when drawing, the user needs to open the drawing software and perform fine operations (specifically, the user can use fingernails, thin stick-like objects, etc.) to touch the screen. At this time, the resistive touch mode and the laser touch mode can be used to achieve the purpose of touch recognition. Therefore, when the scene is recognized as a drawing scene, the corresponding touch mode can be set to be the resistive touch mode and the laser touch mode.

[0046] When users perform routine operations such as browsing photos and playing games, they usually use multi-touch. At this time, capacitive touch can be used to achieve the purpose of touch recognition. Therefore, it can be set that when the scene is recognized as browsing photos, playing games, etc., the corresponding touch mode is capacitive touch.

[0047] Based on the above content, in one embodiment of the present invention, the step 1102 of determining the first usage scenario of the electronic device according to the usage data may include:

[0048] When the usage data is interface operation data of the electronic device, and the interface operation data indicates that the operation interface of the electronic device is the interface of any preset application, the first usage scenario of the electronic device is determined to be a second preset sub-scenario; wherein the touch modes corresponding to the second preset sub-scenario are resistive touch mode and laser touch mode.

[0049] Preferably, the preset application may include an application that requires sophisticated operations, such as mapping software.

[0050] In this embodiment, it is also possible to determine whether the electronic device is in a usage scenario where a resistive touch method or a laser touch method is required to achieve touch recognition based on sensor data and / or touch data of the electronic device.

[0051] Therefore, the association relationship between the sensor data and / or touch data of the electronic device and the touch mode can be preset.

[0052] For example, when a user carries an electronic device for exercise (such as running), the user's fingers are usually prone to sweat stains, and the electronic device will also have a certain position change pattern. In this case, a resistive touch method or a laser touch method can be used to achieve the purpose of touch recognition. Therefore, it can be set that when the scene is recognized as a sports scene, the corresponding touch method is a resistive touch method or a laser touch method.

[0053] Correspondingly, the position change pattern of the electronic device can be obtained through the position sensor, so as to determine whether the user corresponding to the electronic device is in a sports scene.

[0054] Based on the above content, in one embodiment of the present invention, the step 1102 of determining the first usage scenario of the electronic device according to the usage data may include:

[0055] When the usage data is position sensor data of the electronic device and a change pattern of the position sensor data conforms to a preset change pattern, the first usage scenario of the electronic device is determined to be a first preset sub-scenario; wherein the touch mode corresponding to the first preset sub-scenario is a resistive touch mode or a laser touch mode.

[0056] The preset change rule may be a change rule of position sensor data in which the position sensor data of the electronic device changes accordingly due to the user carrying the electronic device for movement. For example, when a user carries a mobile phone on his body and runs, the movement direction and amplitude of the mobile phone will change regularly, and the inertial gyroscope and accelerometer of the mobile phone can sense the change of the position sensor data of the mobile phone. By performing big data analysis on the change, the change rule of the position sensor data corresponding to running can be obtained.

[0057] If the position sensing data conforms to a preset change pattern, it can be determined that the user is carrying the phone while exercising and using the phone in the presence of sweat. At this time, resistive touch or laser touch can be used.

[0058] For another example, it can be set that in a scenario where the operating object wears a tool, the corresponding touch mode is a resistive touch mode or a laser touch mode.

[0059] Correspondingly, whether the operating object is wearing a tool can be determined by fingerprint recognition or image recognition. It is feasible that fingerprint recognition data can be obtained by a fingerprint sensor, and image recognition data can be obtained by a camera.

[0060] Based on this, in one embodiment of the present invention, the step 1102 of determining the first usage scenario of the electronic device according to the usage data may include:

[0061] When the usage data is fingerprint recognition data or image recognition data of the electronic device, and the fingerprint recognition data or image recognition data of the electronic device indicates that the operating object is wearing a tool, the first usage scenario of the electronic device is determined to be a first preset sub-scenario; wherein the touch mode corresponding to the first preset sub-scenario is a resistive touch mode or a laser touch mode.

[0062] The tool worn by the operating object may be a glove worn by the user, a stylus held by the user, etc. When it is determined according to the fingerprint recognition data or the image recognition data that the user uses a tool to perform a touch operation, a resistive touch method or a laser touch method may be used.

[0063] In one embodiment of the present invention, the step 1102 of determining the first usage scenario of the electronic device according to the usage data may include:

[0064] When the usage data is touch data, and the touch data indicates that there is a target touch result and there is no capacitive touch result; or, when the touch data indicates that there are the target touch result and the capacitive touch result and the target touch result and the capacitive touch result are inconsistent, it is determined that the first usage scenario of the electronic device is a first preset sub-scenario; wherein the target touch result includes at least one of a resistive touch result and a laser touch result; wherein the touch mode corresponding to the first preset sub-scenario is a resistive touch mode or a laser touch mode.

[0065] In this embodiment, based on the touch results of various basic touch modes, it can be determined whether the electronic device is in a usage scenario where the user is sweating, wearing gloves, or using tools to perform touch operations. In this usage scenario, a resistive touch mode or a laser touch mode can be used.

[0066] In this embodiment, it is also possible to determine whether the electronic device is in a conventional touch usage scenario based on the touch data. In this case, a capacitive touch method can be used.

[0067] Based on the above content, in one embodiment of the present invention, the step 1102 of determining the first usage scenario of the electronic device according to the usage data may include:

[0068] When the usage data is touch data of the electronic device and the touch data indicates the presence of a capacitive touch result, the first usage scenario of the electronic device is determined to be a third preset sub-scenario; wherein the touch mode corresponding to the third preset sub-scenario is a capacitive touch mode.

[0069] When there is a capacitive touch result, or when there is a capacitive touch result and the capacitive touch result is consistent with the target touch result, it can be determined that the electronic device is currently in the third preset sub-scenario. In this usage scenario, the capacitive touch method can be used.

[0070] It is feasible that in addition to the position sensor camera, this embodiment can also combine data collected by other sensors, such as temperature sensors, distance sensors, light sensors, etc., to determine the usage scenario. For example, users tend to sweat easily in high temperatures, so their fingers carry sweat stains. Users will choose to wear gloves in low temperatures. At this time, resistive touch or laser touch can be used to achieve the purpose of touch recognition. This embodiment will not be explained one by one here.

[0071] Since the present embodiment can intelligently select one or more touch schemes to respond to the user's touch operation according to the user's usage conditions and environment, the user does not need to perform additional processing (such as wiping off sweat, taking off gloves, using a dedicated stylus, etc.), even if the user's fingers are sweaty, the user wears gloves, or the user uses nails to operate, the touch operation purpose required by the user can be achieved, so the user experience is better.

[0072] In this embodiment, after determining the current usage scenario, the accuracy of the scenario determination can be further verified to verify whether the determined usage scenario is consistent with the actual usage scenario. If they are consistent, accurate touch control can be achieved and the touch control effect is better.

[0073] It is feasible to detect the touch effect of the touch mode corresponding to the usage scenario to ensure that the electronic device is accurately controlled based on the touch mode with better touch effect.

[0074] In one embodiment of the present disclosure, the first touch mode includes at least one of at least two preset touch modes.

[0075] In detail, at least two preset touch modes may be a combination of any two of the three basic touch modes: capacitive touch mode, resistive touch mode, and laser touch mode. Correspondingly, the first touch mode may be one or more of these basic touch modes. For example, the first touch mode may be a capacitive touch mode, or a combination of a resistive touch mode and a laser touch mode.

[0076] Based on this, before controlling the electronic device according to the first touch control mode, the method may further include the following B1 to B3:

[0077] B1, in response to a touch operation on the electronic device, determining a first touch result of the touch operation corresponding to the first touch mode, and determining a second touch result of the touch operation corresponding to each of the preset touch modes.

[0078] In this step, after the first touch mode is determined, each basic touch mode can be activated, so that when the user issues a touch operation, at least one basic touch mode can sense the touch operation, thereby obtaining a corresponding touch result.

[0079] For example, when a user touches the touch screen with gloves on, the capacitive touch method usually cannot detect the touch operation and there is no corresponding touch result, but the resistive touch method and the laser touch method can usually detect the touch operation and obtain the corresponding touch result, such as the touch result is data indicating the touch position.

[0080] B2: Determine whether a touch effect of the first touch mode meets a preset requirement according to the first touch result and each of the second touch results.

[0081] In this step, according to the touch results of each basic touch mode and the touch result of the determined touch mode, it can be verified whether the determined touch mode has the expected touch effect.

[0082] In detail, the above preset requirement can be set as needed, for example, it can be set so that the error of the obtained touch position is less than a set threshold.

[0083] For example, if the first touch mode is a capacitive touch mode, when the user touches the touch screen with gloves, the first touch mode cannot detect the touch position, but the other two basic touch modes can detect the touch position, so the touch effect of the first touch mode does not meet the preset requirements.

[0084] For another example, if the first touch mode is a resistive touch mode, when a user touches the touch screen with gloves, both the first touch mode and the laser touch mode can detect the touch position. If the deviation between the two is not large, it can be considered that the touch effect of the first touch mode meets the preset requirements.

[0085] In this embodiment, whether the touch effect of the selected touch mode is good is determined according to the touch results of various basic touch modes, so as to ensure that the electronic device is accurately controlled based on the touch mode with better touch effect.

[0086] B3, when the touch effect of the first touch mode meets the preset requirement, executing the step of controlling the electronic device according to the first touch mode.

[0087] In this step, if the touch effect meets the preset requirement, it can be considered that the touch effect of the selected first touch mode is better, and the electronic device can be accurately controlled accordingly.

[0088] In summary, this embodiment can obtain accurate touch feedback results in various usage scenarios by intelligently selecting one or more basic touch modes to sample data, and effectively improve the pain points of the single capacitive touch solution in real life.

[0089] The embodiments of the present invention can realize that when users use the touch screen in various complex life scenarios, there will be no touch failure or inaccurate recognition. The user does not need to remove gloves for operation, and any pen or other device commonly used in life can be used for refined operations. The whole process can be fully automated and has good practical value.

[0090] The electronic device control method provided in the embodiment of the present application can be executed by a control device of the electronic device. In the embodiment of the present application, the electronic device control method is executed by a control device of the electronic device as an example to illustrate the electronic device control device provided in the embodiment of the present application.

[0091] like Figure 2 As shown, this embodiment provides a control device 200 for an electronic device, which may include an acquisition module 210 , a determination module 220 and a processing module 230 .

[0092] The acquisition module 210 is used to acquire a first usage scenario of the electronic device. The determination module 220 is used to determine a first touch mode corresponding to the first usage scenario according to a preset mapping relationship between usage scenarios and touch modes. The processing module 230 is used to control the electronic device according to the first touch mode.

[0093] In the embodiment of the present application, a first usage scenario of the electronic device is obtained; a first touch mode corresponding to the first usage scenario is determined according to a preset mapping relationship between the usage scenario and the touch mode; and the electronic device is controlled according to the first touch mode. It can be seen that in the present embodiment, different usage scenarios use different touch modes to achieve the purpose of touch recognition, which can make the touch mode always match the current usage scenario, avoid failure to achieve the touch purpose, and thus improve the user experience.

[0094] In one embodiment of the present invention, the acquisition module 210 is used to acquire usage data of the electronic device, wherein the usage data includes at least one of interface operation data, sensor data, and touch data; and determine a first usage scenario of the electronic device based on the usage data.

[0095] In one embodiment of the present invention, the acquisition module 210 is used for, when the usage data is the position sensor data of the electronic device, and the change rule of the position sensor data conforms to the preset change rule;

[0096] or, in the case where the usage data is fingerprint recognition data or image recognition data of the electronic device, and the fingerprint recognition data or image recognition data of the electronic device indicates that the operating subject is wearing a tool;

[0097] or, in the case where the usage data is touch data, and the touch data indicates that there is a target touch result and there is no capacitive touch result;

[0098] Or, when the touch data indicates that the target touch result and the capacitive touch result exist and the target touch result and the capacitive touch result are inconsistent, determining that the first usage scenario of the electronic device is the first preset sub-scenario; wherein the target touch result includes at least one of a resistive touch result and a laser touch result;

[0099] In a case where the usage data is interface operation data of the electronic device, and the interface operation data indicates that the operation interface of the electronic device is an interface of any preset application program, determining that the first usage scenario of the electronic device is a second preset sub-scenario;

[0100] When the usage data is touch data of the electronic device, and the touch data indicates that a capacitive touch result exists, determining that the first usage scenario of the electronic device is a third preset sub-scenario;

[0101] Wherein, the touch mode corresponding to the first preset sub-scene is a resistive touch mode or a laser touch mode;

[0102] The touch modes corresponding to the second preset sub-scenario are a resistive touch mode and a laser touch mode;

[0103] The touch mode corresponding to the third preset sub-scenario is a capacitive touch mode;

[0104] The first usage scenario includes one of a first preset sub-scenario, a second preset sub-scenario, and a third preset sub-scenario.

[0105] In one embodiment of the present invention, the first touch control mode includes at least one of at least two preset touch control modes;

[0106] The processing module 230 is used to determine, in response to a touch operation on the electronic device, a first touch result of the touch operation corresponding to the first touch mode, and determine a second touch result of the touch operation corresponding to each of the preset touch modes respectively; determine whether the touch effect of the first touch mode meets the preset requirements based on the first touch result and each of the second touch results; and if the touch effect of the first touch mode meets the preset requirements, execute the step of controlling the electronic device according to the first touch mode.

[0107] The control device of the electronic device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0108] The control device of the electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0109] The control device of the electronic device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0110] Alternatively, if Figure 3 As shown, an embodiment of the present application also provides an electronic device 300, including a processor 310 and a memory 320, wherein the memory 320 stores programs or instructions that can be executed on the processor 310, and when the program or instructions are executed by the processor 310, the various steps of the control method embodiment of the above-mentioned electronic device are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0111] Figure 4 A schematic diagram of the hardware structure of an electronic device 1000 for implementing an embodiment of the present application.

[0112] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0113] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0114] Among them, the processor 1010 is used to obtain a first usage scenario of the electronic device; determine a first touch method corresponding to the first usage scenario according to a mapping relationship between a preset usage scenario and a touch method; and control the electronic device according to the first touch method.

[0115] In the embodiment of the present application, a first usage scenario of the electronic device is obtained; a first touch mode corresponding to the first usage scenario is determined according to a preset mapping relationship between the usage scenario and the touch mode; and the electronic device is controlled according to the first touch mode. It can be seen that in the present embodiment, different usage scenarios use different touch modes to achieve the purpose of touch recognition, which can make the touch mode always match the current usage scenario, avoid failure to achieve the touch purpose, and thus improve the user experience.

[0116] Optionally, the processor 1010 is used to obtain usage data of the electronic device, where the usage data includes at least one of interface operation data, sensor data, and touch data; and determine a first usage scenario of the electronic device based on the usage data.

[0117] Optionally, the processor 1010 is configured to: when the usage data is position sensor data of the electronic device, and a change rule of the position sensor data conforms to a preset change rule;

[0118] or, in the case where the usage data is fingerprint recognition data or image recognition data of the electronic device, and the fingerprint recognition data or image recognition data of the electronic device indicates that the operating subject is wearing a tool;

[0119] or, in the case where the usage data is touch data, and the touch data indicates that there is a target touch result and there is no capacitive touch result;

[0120] Or, when the touch data indicates that the target touch result and the capacitive touch result exist and the target touch result and the capacitive touch result are inconsistent, determining that the first usage scenario of the electronic device is the first preset sub-scenario; wherein the target touch result includes at least one of a resistive touch result and a laser touch result;

[0121] In a case where the usage data is interface operation data of the electronic device, and the interface operation data indicates that the operation interface of the electronic device is an interface of any preset application program, determining that the first usage scenario of the electronic device is a second preset sub-scenario;

[0122] When the usage data is touch data of the electronic device, and the touch data indicates that a capacitive touch result exists, determining that the first usage scenario of the electronic device is a third preset sub-scenario;

[0123] Wherein, the touch mode corresponding to the first preset sub-scene is a resistive touch mode or a laser touch mode;

[0124] The touch modes corresponding to the second preset sub-scenario are a resistive touch mode and a laser touch mode;

[0125] The touch mode corresponding to the third preset sub-scenario is a capacitive touch mode;

[0126] The first usage scenario includes one of a first preset sub-scenario, a second preset sub-scenario, and a third preset sub-scenario.

[0127] Optionally, the first touch mode includes at least one of at least two preset touch modes; the processor 1010 is used to determine, in response to a touch operation on the electronic device, a first touch result of the touch operation corresponding to the first touch mode, and determine a second touch result of the touch operation corresponding to each of the preset touch modes respectively; determine whether the touch effect of the first touch mode meets the preset requirements based on the first touch result and each of the second touch results; if the touch effect of the first touch mode meets the preset requirements, execute the step of controlling the electronic device according to the first touch mode.

[0128] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0129] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory x09 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0130] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0131] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the control method embodiment of the above-mentioned electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0132] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0133] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the control method embodiment of the above-mentioned electronic device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0134] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0135] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the control method embodiment of the electronic device as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0136] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0138] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for controlling an electronic device, It is characterized in that include: Acquire a first usage scenario of an electronic device; wherein the first usage scenario is determined according to usage data of the electronic device, the first usage scenario includes a second preset sub-scenario, the second preset sub-scenario is determined when the usage data is interface operation data of the electronic device, and the interface operation data indicates that the operation interface of the electronic device is an interface of any preset application program, and the touch modes corresponding to the second preset sub-scenario are a resistive touch mode and a laser touch mode; Determining a first touch mode corresponding to the first usage scenario according to a preset mapping relationship between usage scenarios and touch modes; The electronic device is controlled according to the first touch control mode.

2. The method according to claim 1, It is characterized in that The first usage scenario also includes a first preset sub-scenario, and the touch mode corresponding to the first preset sub-scenario is a resistive touch mode or a laser touch mode. Determining the first usage scenario of the electronic device according to the usage data includes: When the usage data satisfies any one of the following conditions, determining that the first usage scenario of the electronic device is a first preset sub-scenario: The usage data is the position sensor data of the electronic device, and the change rule of the position sensor data conforms to the preset change rule; The usage data is fingerprint recognition data or image recognition data of the electronic device, and the fingerprint recognition data or image recognition data of the electronic device indicates that the operating object is wearing a tool; The usage data is touch data, and the touch data indicates that a target touch result exists and a capacitive touch result does not exist, or the touch data indicates that the target touch result and the capacitive touch result exist and the target touch result and the capacitive touch result are inconsistent; wherein the target touch result includes at least one of a resistive touch result and a laser touch result; or; The first usage scenario also includes a third preset sub-scenario, and the touch mode corresponding to the third preset sub-scenario is a capacitive touch mode. The determining the first usage scenario of the electronic device according to the usage data includes: When the usage data is touch data of the electronic device and the touch data indicates that a capacitive touch result exists, it is determined that the first usage scenario of the electronic device is a third preset sub-scenario.

3. The method according to claim 1, It is characterized in that The first touch mode includes at least one of at least two preset touch modes; Before controlling the electronic device according to the first touch control mode, the method further includes: In response to a touch operation on the electronic device, determining a first touch result of the touch operation corresponding to the first touch mode, and determining a second touch result of the touch operation corresponding to each of the preset touch modes; Determining whether a touch effect of the first touch mode meets a preset requirement according to the first touch result and each of the second touch results; When the touch effect of the first touch mode meets the preset requirement, the step of controlling the electronic device according to the first touch mode is performed.

4. A control device for an electronic device, It is characterized in that include: an acquisition module, configured to acquire a first usage scenario of an electronic device; wherein the first usage scenario is determined according to usage data of the electronic device, the first usage scenario includes a second preset sub-scenario, the second preset sub-scenario is determined when the usage data is interface operation data of the electronic device, and the interface operation data indicates that the operation interface of the electronic device is an interface of any preset application program, and the touch modes corresponding to the second preset sub-scenario are a resistive touch mode and a laser touch mode; a determination module, configured to determine a first touch mode corresponding to the first usage scenario according to a preset mapping relationship between usage scenarios and touch modes; and A processing module is used to control the electronic device according to the first touch mode.

5. The device according to claim 4, It is characterized in that The first usage scenario also includes a first preset sub-scenario, and the touch mode corresponding to the first preset sub-scenario is a resistive touch mode or a laser touch mode. The acquisition module is used to determine that the first usage scenario of the electronic device is the first preset sub-scenario when the usage data satisfies any one of the following items: The usage data is the position sensor data of the electronic device, and the change rule of the position sensor data conforms to the preset change rule; The usage data is fingerprint recognition data or image recognition data of the electronic device, and the fingerprint recognition data or image recognition data of the electronic device indicates that the operating object is wearing a tool; When the usage data is touch data, and the touch data indicates that there is a target touch result and there is no capacitive touch result, or when the touch data indicates that there is the target touch result and the capacitive touch result and the target touch result and the capacitive touch result are inconsistent, determining that the first usage scenario of the electronic device is the first preset sub-scenario; wherein the target touch result includes at least one of a resistive touch result and a laser touch result; The first usage scenario also includes a third preset sub-scenario, and the touch mode corresponding to the third preset sub-scenario is a capacitive touch mode. The acquisition module is used to determine that the first usage scenario of the electronic device is the third preset sub-scenario when the usage data is touch data of the electronic device and the touch data indicates the existence of a capacitive touch result.

6. The device according to claim 4, It is characterized in that The first touch mode includes at least one of at least two preset touch modes; The processing module is used to determine, in response to a touch operation on the electronic device, a first touch result of the touch operation corresponding to the first touch mode, and determine a second touch result of the touch operation corresponding to each of the preset touch modes respectively; determine whether a touch effect of the first touch mode meets a preset requirement based on the first touch result and each of the second touch results; and if the touch effect of the first touch mode meets the preset requirement, execute the step of controlling the electronic device according to the first touch mode.

7. An electronic device, It is characterized in that The electronic device comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control method of the electronic device as described in any one of claims 1 to 3 are implemented.

8. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the control method of the electronic device according to any one of claims 1 to 3 are implemented.